primitivev1

package
v1.34.0-20240504023111... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: unknown License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor deprecated

func (*Address) Descriptor() ([]byte, []int)

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetInner

func (x *Address) GetInner() []byte

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

func (x *Address) ProtoReflect() protoreflect.Message

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

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) Descriptor deprecated

func (*Denom) Descriptor() ([]byte, []int)

Deprecated: Use Denom.ProtoReflect.Descriptor instead.

func (*Denom) GetBaseDenom

func (x *Denom) GetBaseDenom() string

func (*Denom) GetId

func (x *Denom) GetId() []byte

func (*Denom) ProtoMessage

func (*Denom) ProtoMessage()

func (*Denom) ProtoReflect

func (x *Denom) ProtoReflect() protoreflect.Message

func (*Denom) Reset

func (x *Denom) Reset()

func (*Denom) String

func (x *Denom) String() string

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) Descriptor deprecated

func (*Proof) Descriptor() ([]byte, []int)

Deprecated: Use Proof.ProtoReflect.Descriptor instead.

func (*Proof) GetAuditPath

func (x *Proof) GetAuditPath() []byte

func (*Proof) GetLeafIndex

func (x *Proof) GetLeafIndex() uint64

func (*Proof) GetTreeSize

func (x *Proof) GetTreeSize() uint64

func (*Proof) ProtoMessage

func (*Proof) ProtoMessage()

func (*Proof) ProtoReflect

func (x *Proof) ProtoReflect() protoreflect.Message

func (*Proof) Reset

func (x *Proof) Reset()

func (*Proof) String

func (x *Proof) String() string

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) Descriptor deprecated

func (*RollupId) Descriptor() ([]byte, []int)

Deprecated: Use RollupId.ProtoReflect.Descriptor instead.

func (*RollupId) GetInner

func (x *RollupId) GetInner() []byte

func (*RollupId) ProtoMessage

func (*RollupId) ProtoMessage()

func (*RollupId) ProtoReflect

func (x *RollupId) ProtoReflect() protoreflect.Message

func (*RollupId) Reset

func (x *RollupId) Reset()

func (*RollupId) String

func (x *RollupId) String() string

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) Descriptor deprecated

func (*Uint128) Descriptor() ([]byte, []int)

Deprecated: Use Uint128.ProtoReflect.Descriptor instead.

func (*Uint128) GetHi

func (x *Uint128) GetHi() uint64

func (*Uint128) GetLo

func (x *Uint128) GetLo() uint64

func (*Uint128) ProtoMessage

func (*Uint128) ProtoMessage()

func (*Uint128) ProtoReflect

func (x *Uint128) ProtoReflect() protoreflect.Message

func (*Uint128) Reset

func (x *Uint128) Reset()

func (*Uint128) String

func (x *Uint128) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL