Documentation ¶
Index ¶
- Variables
- type Address
- type Denom
- type Proof
- func (*Proof) Descriptor() ([]byte, []int)deprecated
- func (x *Proof) GetAuditPath() []byte
- func (x *Proof) GetLeafIndex() uint64
- func (x *Proof) GetTreeSize() uint64
- func (*Proof) ProtoMessage()
- func (x *Proof) ProtoReflect() protoreflect.Message
- func (x *Proof) Reset()
- func (x *Proof) String() string
- type RollupId
- type Uint128
Constants ¶
This section is empty.
Variables ¶
var File_astria_primitive_v1_types_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` // contains filtered or unexported fields }
An Astria `Address`.
Astria addresses are derived from the ed25519 public key, using the first 20 bytes of the sha256 hash.
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type Denom ¶
type Denom struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` BaseDenom string `protobuf:"bytes,2,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` // contains filtered or unexported fields }
/ Represents a denomination of some asset used within the sequencer. / The `id` is used to identify the asset and for balance accounting.
func (*Denom) ProtoReflect ¶
func (x *Denom) ProtoReflect() protoreflect.Message
type Proof ¶
type Proof struct { // A sequence of 32 byte hashes used to reconstruct a Merkle Tree Hash. AuditPath []byte `protobuf:"bytes,1,opt,name=audit_path,json=auditPath,proto3" json:"audit_path,omitempty"` // The index of the leaf this proof applies to. LeafIndex uint64 `protobuf:"varint,2,opt,name=leaf_index,json=leafIndex,proto3" json:"leaf_index,omitempty"` // The total size of the tree this proof was derived from. TreeSize uint64 `protobuf:"varint,3,opt,name=tree_size,json=treeSize,proto3" json:"tree_size,omitempty"` // contains filtered or unexported fields }
A proof for a tree of the given size containing the audit path from a leaf to the root.
func (*Proof) ProtoReflect ¶
func (x *Proof) ProtoReflect() protoreflect.Message
type RollupId ¶
type RollupId struct { Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` // contains filtered or unexported fields }
A `RollupId` is a unique identifier for a rollup chain. It must be 32 bytes long. It can be derived from a string using a sha256 hash.
func (*RollupId) ProtoReflect ¶
func (x *RollupId) ProtoReflect() protoreflect.Message
type Uint128 ¶
type Uint128 struct { Lo uint64 `protobuf:"varint,1,opt,name=lo,proto3" json:"lo,omitempty"` Hi uint64 `protobuf:"varint,2,opt,name=hi,proto3" json:"hi,omitempty"` // contains filtered or unexported fields }
A 128 bit unsigned integer encoded in protobuf.,
Protobuf does not support integers larger than 64 bits, so this message encodes a u128 by splitting it into its upper 64 and lower 64 bits, each encoded as a uint64.
A native u128 x can then be constructed by casting both integers to u128, left shifting hi by 64 positions and adding lo:
x = (hi as u128) << 64 + (lo as u128)
func (*Uint128) ProtoReflect ¶
func (x *Uint128) ProtoReflect() protoreflect.Message