Documentation ¶
Index ¶
- Constants
- Variables
- func ParseULEB128(data []byte, offset int) (int, int, error)
- func SerializeULEB128(value int) []byte
- func SerializeUint16(value uint16) []byte
- func SerializeUint64(i uint64) []byte
- type AccountAddress
- type AppId
- type Argument
- type ArgumentInput
- type ArgumentNestedResult
- type ArgumentResult
- type ArgumentType
- type AuthenticatorStateUpdate
- type CallArg
- type CallArgType
- type ChangeEpoch
- type Command
- type CommandType
- type ConsensusCommitPrologue
- type ConsensusCommitPrologueV2
- type ConsensusCommitPrologueV3
- type EndOfEpochTransactionKind
- type Envelope
- type GasData
- type GenesisTransaction
- type Intent
- type IntentScope
- type IntentVersion
- type MakeMoveVec
- type MergeCoins
- type ObjectArg
- type ObjectArgType
- type ObjectDigest
- type ObjectID
- type ObjectRef
- type ProgrammableMoveCall
- type ProgrammableTransaction
- type Publish
- type PublishData
- type RandomnessStateUpdate
- type SequenceNumber
- type SharedObject
- type SplitCoins
- type StructInput
- type SuiAddress
- type TransactionData
- type TransactionDataV1
- type TransactionDataV2
- type TransactionDataVersion
- type TransactionDataWithIntent
- type TransactionExpiration
- type TransactionExpirationType
- type TransactionKind
- type TransactionKindType
- type TransferObjects
- type TypeInput
- type TypeInputType
- type Upgrade
Constants ¶
View Source
const ( ErrNotEnoughDataStr = "not enough data" ErrInvalidEnumValueStr = "invalid enum value" ErrNotImplementedStr = "not implemented" )
Variables ¶
View Source
var ErrInvalidEnumValue error
View Source
var ErrNotEnoughData error
View Source
var ErrNotImplemented error
Functions ¶
func SerializeULEB128 ¶
func SerializeUint16 ¶
func SerializeUint64 ¶
Types ¶
type AccountAddress ¶
type AccountAddress [32]byte
func (*AccountAddress) ToBytes ¶
func (c *AccountAddress) ToBytes() []byte
type Argument ¶
type Argument struct { ArgumentType ArgumentType ArgumentInput ArgumentInput ArgumentResult ArgumentResult ArgumentNestedResult ArgumentNestedResult }
type ArgumentInput ¶
type ArgumentInput uint16
type ArgumentNestedResult ¶
type ArgumentResult ¶
type ArgumentResult uint16
type ArgumentType ¶
type ArgumentType int
const ( ArgumentTypeGasCoin ArgumentType = 0 ArgumentTypeInput ArgumentType = 1 ArgumentTypeResult ArgumentType = 2 ArgumentTypeNestedResult ArgumentType = 3 )
type AuthenticatorStateUpdate ¶
type AuthenticatorStateUpdate struct { }
func (*AuthenticatorStateUpdate) Parse ¶
func (c *AuthenticatorStateUpdate) Parse(data []byte, offset int) (int, error)
func (*AuthenticatorStateUpdate) ToBytes ¶
func (c *AuthenticatorStateUpdate) ToBytes() []byte
type CallArg ¶
type CallArg struct { Type CallArgType Pure []byte Object *ObjectArg }
type CallArgType ¶
type CallArgType int
const ( CallArgTypePure CallArgType = 0 CallArgTypeObject CallArgType = 1 )
type ChangeEpoch ¶
type ChangeEpoch struct { }
func (*ChangeEpoch) ToBytes ¶
func (c *ChangeEpoch) ToBytes() []byte
type Command ¶
type Command struct { Type CommandType MoveCall *ProgrammableMoveCall TransferObjects *TransferObjects SplitCoins *SplitCoins MergeCoins *MergeCoins Publish *Publish MakeMoveVec *MakeMoveVec Upgrade *Upgrade }
type CommandType ¶
type CommandType int
const ( CommandTypeMoveCall CommandType = 0 CommandTypeTransferObjects CommandType = 1 CommandTypeSplitCoins CommandType = 2 CommandTypeMergeCoins CommandType = 3 CommandTypePublish CommandType = 4 CommandTypeMakeMoveVec CommandType = 5 CommandTypeUpgrade CommandType = 6 )
type ConsensusCommitPrologue ¶
type ConsensusCommitPrologue struct { }
func (*ConsensusCommitPrologue) Parse ¶
func (c *ConsensusCommitPrologue) Parse(data []byte, offset int) (int, error)
func (*ConsensusCommitPrologue) ToBytes ¶
func (c *ConsensusCommitPrologue) ToBytes() []byte
type ConsensusCommitPrologueV2 ¶
type ConsensusCommitPrologueV2 struct { }
func (*ConsensusCommitPrologueV2) Parse ¶
func (c *ConsensusCommitPrologueV2) Parse(data []byte, offset int) (int, error)
func (*ConsensusCommitPrologueV2) ToBytes ¶
func (c *ConsensusCommitPrologueV2) ToBytes() []byte
type ConsensusCommitPrologueV3 ¶
type ConsensusCommitPrologueV3 struct { }
func (*ConsensusCommitPrologueV3) Parse ¶
func (c *ConsensusCommitPrologueV3) Parse(data []byte, offset int) (int, error)
func (*ConsensusCommitPrologueV3) ToBytes ¶
func (c *ConsensusCommitPrologueV3) ToBytes() []byte
type EndOfEpochTransactionKind ¶
type EndOfEpochTransactionKind struct { }
func (*EndOfEpochTransactionKind) Parse ¶
func (c *EndOfEpochTransactionKind) Parse(data []byte, offset int) (int, error)
func (*EndOfEpochTransactionKind) ToBytes ¶
func (c *EndOfEpochTransactionKind) ToBytes() []byte
type Envelope ¶
type Envelope struct {
TransactionDataWithIntent TransactionDataWithIntent
}
type GasData ¶
type GasData struct { Payment []ObjectRef Owner SuiAddress Price uint64 Budget uint64 }
type GenesisTransaction ¶
type GenesisTransaction struct { }
func (*GenesisTransaction) Parse ¶
func (c *GenesisTransaction) Parse(data []byte, offset int) (int, error)
func (*GenesisTransaction) ToBytes ¶
func (c *GenesisTransaction) ToBytes() []byte
type Intent ¶
type Intent struct { Scope IntentScope Version IntentVersion AppId AppId }
type IntentScope ¶
type IntentScope int
const ( IntentScopeTransactionData IntentScope = 0 IntentScopeTransactionEffects IntentScope = 1 IntentScopeCheckpointSummary IntentScope = 2 IntentScopePersonalMessage IntentScope = 3 IntentScopeSenderSignedTransaction IntentScope = 4 IntentScopeProofOfPossession IntentScope = 5 IntentScopeHeaderDigest IntentScope = 6 IntentScopeBridgeEventUnused IntentScope = 7 IntentScopeConsensusBlock IntentScope = 8 IntentScopeDiscoveryPeers IntentScope = 9 )
type MakeMoveVec ¶
type MakeMoveVec struct { }
func (*MakeMoveVec) ToBytes ¶
func (c *MakeMoveVec) ToBytes() []byte
type MergeCoins ¶
func (*MergeCoins) ToBytes ¶
func (c *MergeCoins) ToBytes() []byte
type ObjectArg ¶
type ObjectArg struct { Type ObjectArgType ImmOrOwnedObject *ObjectRef Receiving *ObjectRef }
type ObjectArgType ¶
type ObjectArgType int
const ( ObjectArgTypeImmOrOwnedObject ObjectArgType = 0 ObjectArgTypeReceiving ObjectArgType = 2 )
type ObjectDigest ¶
type ObjectDigest struct {
Digest []byte
}
func (*ObjectDigest) SetBase58 ¶
func (c *ObjectDigest) SetBase58(base58Data string)
func (*ObjectDigest) String ¶
func (c *ObjectDigest) String() string
func (*ObjectDigest) ToBytes ¶
func (c *ObjectDigest) ToBytes() []byte
type ObjectRef ¶
type ObjectRef struct { ObjectID ObjectID SequenceNumber SequenceNumber ObjectDigest ObjectDigest }
type ProgrammableMoveCall ¶
type ProgrammableMoveCall struct { Package ObjectID Module string Function string TypeArguments []TypeInput Arguments []Argument }
func (*ProgrammableMoveCall) Parse ¶
func (c *ProgrammableMoveCall) Parse(data []byte, offset int) (int, error)
func (*ProgrammableMoveCall) ToBytes ¶
func (c *ProgrammableMoveCall) ToBytes() []byte
type ProgrammableTransaction ¶
func (*ProgrammableTransaction) Parse ¶
func (c *ProgrammableTransaction) Parse(data []byte, offset int) (int, error)
func (*ProgrammableTransaction) ToBytes ¶
func (c *ProgrammableTransaction) ToBytes() []byte
type Publish ¶
type Publish struct { Data []PublishData ObjectIDs []ObjectID }
type PublishData ¶
type PublishData struct {
Data []byte
}
type RandomnessStateUpdate ¶
type RandomnessStateUpdate struct { }
func (*RandomnessStateUpdate) Parse ¶
func (r *RandomnessStateUpdate) Parse(data []byte, offset int) (int, error)
func (*RandomnessStateUpdate) ToBytes ¶
func (r *RandomnessStateUpdate) ToBytes() []byte
type SequenceNumber ¶
type SequenceNumber uint64
func (SequenceNumber) String ¶
func (c SequenceNumber) String() string
type SharedObject ¶
type SharedObject struct {}
func (*SharedObject) ToBytes ¶
func (c *SharedObject) ToBytes() []byte
type SplitCoins ¶
func (*SplitCoins) ToBytes ¶
func (c *SplitCoins) ToBytes() []byte
type StructInput ¶
type StructInput struct { Address AccountAddress Module string Name string TypeParams []TypeInput }
func (*StructInput) ToBytes ¶
func (c *StructInput) ToBytes() []byte
type SuiAddress ¶
type SuiAddress [32]byte
func (*SuiAddress) String ¶
func (c *SuiAddress) String() string
func (*SuiAddress) ToBytes ¶
func (c *SuiAddress) ToBytes() []byte
type TransactionData ¶
type TransactionData struct { Version TransactionDataVersion V1 *TransactionDataV1 V2 *TransactionDataV2 }
func NewTransactionData ¶
func NewTransactionData() *TransactionData
func NewTransactionDataV1 ¶
func NewTransactionDataV1() *TransactionData
func NewTransactionDataV2 ¶
func NewTransactionDataV2() *TransactionData
func (*TransactionData) Parse ¶
func (c *TransactionData) Parse(data []byte, offset int) (int, error)
func (*TransactionData) ToBytes ¶
func (c *TransactionData) ToBytes() []byte
type TransactionDataV1 ¶
type TransactionDataV1 struct { Kind *TransactionKind Sender SuiAddress GasData *GasData Expiration *TransactionExpiration }
func (*TransactionDataV1) Parse ¶
func (c *TransactionDataV1) Parse(data []byte, offset int) (int, error)
func (*TransactionDataV1) ToBytes ¶
func (c *TransactionDataV1) ToBytes() []byte
type TransactionDataV2 ¶
type TransactionDataV2 struct { }
func (*TransactionDataV2) Parse ¶
func (c *TransactionDataV2) Parse(data []byte, offset int) (int, error)
func (*TransactionDataV2) ToBytes ¶
func (c *TransactionDataV2) ToBytes() []byte
type TransactionDataVersion ¶
type TransactionDataVersion int
const ( TransactionDataVersionV1 TransactionDataVersion = 0 TransactionDataVersionV2 TransactionDataVersion = 1 )
type TransactionDataWithIntent ¶
type TransactionDataWithIntent struct { Intent *Intent Data *TransactionData }
type TransactionExpiration ¶
type TransactionExpiration struct { Kind TransactionExpirationType EpochId uint64 }
func NewTransactionExpiration ¶
func NewTransactionExpiration() *TransactionExpiration
func (*TransactionExpiration) Parse ¶
func (c *TransactionExpiration) Parse(data []byte, offset int) (int, error)
func (*TransactionExpiration) ToBytes ¶
func (c *TransactionExpiration) ToBytes() []byte
type TransactionExpirationType ¶
type TransactionExpirationType int
const ( TransactionExpirationKindNone TransactionExpirationType = 0 TransactionExpirationKindEpoch TransactionExpirationType = 1 )
type TransactionKind ¶
type TransactionKind struct { Type TransactionKindType ProgrammableTransaction *ProgrammableTransaction ChangeEpoch *ChangeEpoch Genesis *GenesisTransaction ConsensusCommitPrologue *ConsensusCommitPrologue AuthenticatorStateUpdate *AuthenticatorStateUpdate EndOfEpochTransaction []*EndOfEpochTransactionKind RandomnessStateUpdate *RandomnessStateUpdate ConsensusCommitPrologueV2 *ConsensusCommitPrologueV2 ConsensusCommitPrologueV3 *ConsensusCommitPrologueV3 }
func (*TransactionKind) Parse ¶
func (c *TransactionKind) Parse(data []byte, offset int) (int, error)
func (*TransactionKind) ToBytes ¶
func (c *TransactionKind) ToBytes() []byte
type TransactionKindType ¶
type TransactionKindType int
const ( ProgrammableTransactionType TransactionKindType = 0 ChangeEpochType TransactionKindType = 1 GenesisType TransactionKindType = 2 ConsensusCommitPrologueType TransactionKindType = 3 AuthenticatorStateUpdateType TransactionKindType = 4 EndOfEpochTransactionType TransactionKindType = 5 RandomnessStateUpdateType TransactionKindType = 6 ConsensusCommitPrologueV2Type TransactionKindType = 7 ConsensusCommitPrologueV3Type TransactionKindType = 8 )
type TransferObjects ¶
func (*TransferObjects) Parse ¶
func (c *TransferObjects) Parse(data []byte, offset int) (int, error)
func (*TransferObjects) ToBytes ¶
func (c *TransferObjects) ToBytes() []byte
type TypeInput ¶
type TypeInput struct { Type TypeInputType VectorTypeInput *TypeInput StructInput *StructInput }
type TypeInputType ¶
type TypeInputType int
const ( TypeInputBool TypeInputType = 0 TypeInputU8 TypeInputType = 1 TypeInputU64 TypeInputType = 2 TypeInputU128 TypeInputType = 3 TypeInputAddress TypeInputType = 4 TypeInputSigner TypeInputType = 5 TypeInputVector TypeInputType = 6 TypeInputStruct TypeInputType = 7 TypeInputU16 TypeInputType = 8 TypeInputU32 TypeInputType = 9 TypeInputU256 TypeInputType = 10 )
Source Files ¶
- account_address.go
- api_id.go
- argument.go
- authenticator_state_update.go
- bsc.go
- call_arg.go
- change_epoch.go
- command.go
- consensus_commit_prologue.go
- consensus_commit_prologue_v2.go
- consensus_commit_prologue_v3.go
- end_of_epoch_transaction_kind.go
- errors.go
- evnelope.go
- gas_data.go
- genesis_transaction.go
- intent.go
- intent_scope.go
- intent_version.go
- make_move_vec.go
- merge_coins.go
- object_arg.go
- object_digest.go
- object_id.go
- object_ref.go
- programmable_move_call.go
- programmable_transaction.go
- publish.go
- randomness_state_update.go
- shared_object.go
- split_coins.go
- struct_input.go
- sui_address.go
- transaction_data.go
- transaction_data_v1.go
- transaction_data_v2.go
- transaction_data_with_intent.go
- transaction_expiration.go
- transaction_kind.go
- transfer_objects.go
- type_input.go
- upgrade.go
Click to show internal directories.
Click to hide internal directories.