Documentation ¶
Index ¶
- Constants
- func BytesConcat(key []byte, i []byte) []byte
- func Hash(prefix, data []byte) []byte
- func HashSha(data []byte) []byte
- func HashValueEqual(hash1, hash2 HashValue) bool
- func PrefixHash(name string) []byte
- func ToBcsDifficulty(source string) [32]uint8
- type AbortLocation
- type AbortLocation__Module
- type AbortLocation__Script
- type AccessPath
- type AccountAddress
- type AccountResource
- type AccountState
- type AccumulatorInfo
- type ArgumentABI
- type AuthenticationKey
- type BlockHeader
- func (header *BlockHeader) BcsSerialize() ([]byte, error)
- func (header BlockHeader) GetDifficulty() *big.Int
- func (header BlockHeader) GetHash() (*HashValue, error)
- func (header *BlockHeader) Serialize(serializer serde.Serializer) error
- func (header BlockHeader) ToHeaderBlob() ([]byte, error)
- func (header BlockHeader) ToRawBlockHeader() RawBlockHeader
- type BlockHeaderAndBlockInfo
- type BlockHeaderExtra
- type BlockInfo
- type BlockMetadata
- type ChainId
- type ContractEvent
- type ContractEventV0
- type ContractEvent__V0
- type DataPath
- type DataPath__Code
- type DataPath__Resource
- type DataType
- type DataType__Code
- type DataType__Resource
- type Ed25519PrivateKey
- type Ed25519PublicKey
- type Ed25519Signature
- type EventHandle
- type EventKey
- type HashValue
- func BcsDeserializeHashValue(input []byte) (HashValue, error)
- func CreateLiteralHash(word string) (*HashValue, error)
- func DeserializeHashValue(deserializer serde.Deserializer) (HashValue, error)
- func ToHashValue(hash string) (HashValue, error)
- func ToHashValues(hashes []string) ([]HashValue, error)
- type Identifier
- type KeptVMStatus
- type KeptVMStatus__Executed
- type KeptVMStatus__ExecutionFailure
- type KeptVMStatus__MiscellaneousError
- type KeptVMStatus__MoveAbort
- type KeptVMStatus__OutOfGas
- type KeyRotationCapabilityResource
- type Module
- type ModuleId
- type MultiEd25519PrivateKey
- type MultiEd25519PublicKey
- type MultiEd25519Signature
- type Package
- type RawBlockHeader
- type RawUserTransaction
- type Script
- type ScriptABI
- type ScriptABI__ScriptFunction
- type ScriptABI__TransactionScript
- type ScriptFunction
- type ScriptFunctionABI
- type SignedMessage
- type SignedUserTransaction
- type SigningMessage
- type SparseMerkleInternalNode
- type SparseMerkleLeafNode
- type StructTag
- type Transaction
- type TransactionArgument
- type TransactionArgument__Address
- type TransactionArgument__Bool
- type TransactionArgument__U128
- type TransactionArgument__U64
- type TransactionArgument__U8
- type TransactionArgument__U8Vector
- type TransactionArgument__VecAccountAddress
- type TransactionArgument__VecBytes
- type TransactionArgument__VecU128
- type TransactionAuthenticator
- type TransactionAuthenticator__Ed25519
- type TransactionAuthenticator__MultiEd25519
- type TransactionInfo
- type TransactionPayload
- type TransactionPayload__Package
- type TransactionPayload__Script
- type TransactionPayload__ScriptFunction
- type TransactionScriptABI
- type Transaction__BlockMetadata
- type Transaction__UserTransaction
- type TypeArgumentABI
- type TypeTag
- type TypeTag__Address
- type TypeTag__Bool
- type TypeTag__Signer
- type TypeTag__Struct
- type TypeTag__U128
- type TypeTag__U64
- type TypeTag__U8
- type TypeTag__Vector
- type VecAccountAddress
- type VecBytes
- type VecU128
- type WithdrawCapabilityResource
- type WriteOp
- type WriteOp__Deletion
- type WriteOp__Value
- type WriteSet
- type WriteSetMut
Constants ¶
View Source
const ( Ed25519Key byte = 0 MultiEd25519Key byte = 1 AccountAddressLength = 16 AuthenticationKeyLength = 32 )
Variables ¶
This section is empty.
Functions ¶
func BytesConcat ¶
func HashValueEqual ¶
func PrefixHash ¶
func ToBcsDifficulty ¶
Types ¶
type AbortLocation ¶
type AbortLocation interface { Serialize(serializer serde.Serializer) error BcsSerialize() ([]byte, error) // contains filtered or unexported methods }
func BcsDeserializeAbortLocation ¶
func BcsDeserializeAbortLocation(input []byte) (AbortLocation, error)
func DeserializeAbortLocation ¶
func DeserializeAbortLocation(deserializer serde.Deserializer) (AbortLocation, error)
type AbortLocation__Module ¶
type AbortLocation__Module struct {
Value ModuleId
}
func (*AbortLocation__Module) BcsSerialize ¶
func (obj *AbortLocation__Module) BcsSerialize() ([]byte, error)
func (*AbortLocation__Module) Serialize ¶
func (obj *AbortLocation__Module) Serialize(serializer serde.Serializer) error
type AbortLocation__Script ¶
type AbortLocation__Script struct { }
func (*AbortLocation__Script) BcsSerialize ¶
func (obj *AbortLocation__Script) BcsSerialize() ([]byte, error)
func (*AbortLocation__Script) Serialize ¶
func (obj *AbortLocation__Script) Serialize(serializer serde.Serializer) error
type AccessPath ¶
type AccessPath struct { Field0 AccountAddress Field1 DataPath }
func BcsDeserializeAccessPath ¶
func BcsDeserializeAccessPath(input []byte) (AccessPath, error)
func DeserializeAccessPath ¶
func DeserializeAccessPath(deserializer serde.Deserializer) (AccessPath, error)
func (*AccessPath) BcsSerialize ¶
func (obj *AccessPath) BcsSerialize() ([]byte, error)
func (*AccessPath) Serialize ¶
func (obj *AccessPath) Serialize(serializer serde.Serializer) error
type AccountAddress ¶
type AccountAddress [16]uint8
func AccountAddressValueOf ¶
func AccountAddressValueOf(b []byte) (AccountAddress, error)
func BcsDeserializeAccountAddress ¶
func BcsDeserializeAccountAddress(input []byte) (AccountAddress, error)
func DeserializeAccountAddress ¶
func DeserializeAccountAddress(deserializer serde.Deserializer) (AccountAddress, error)
func ToAccountAddress ¶
func ToAccountAddress(addr string) (*AccountAddress, error)
func (*AccountAddress) BcsSerialize ¶
func (obj *AccountAddress) BcsSerialize() ([]byte, error)
func (*AccountAddress) Serialize ¶
func (obj *AccountAddress) Serialize(serializer serde.Serializer) error
type AccountResource ¶
type AccountResource struct { AuthenticationKey []uint8 WithdrawalCapability *WithdrawCapabilityResource KeyRotationCapability *KeyRotationCapabilityResource WithdrawEvents EventHandle DepositEvents EventHandle AcceptTokenEvents EventHandle SequenceNumber uint64 }
func BcsDeserializeAccountResource ¶
func BcsDeserializeAccountResource(input []byte) (AccountResource, error)
func DeserializeAccountResource ¶
func DeserializeAccountResource(deserializer serde.Deserializer) (AccountResource, error)
func (*AccountResource) BcsSerialize ¶
func (obj *AccountResource) BcsSerialize() ([]byte, error)
func (*AccountResource) Serialize ¶
func (obj *AccountResource) Serialize(serializer serde.Serializer) error
type AccountState ¶
type AccountState struct {
StorageRoots []*HashValue
}
func BcsDeserializeAccountState ¶
func BcsDeserializeAccountState(input []byte) (AccountState, error)
func DeserializeAccountState ¶
func DeserializeAccountState(deserializer serde.Deserializer) (AccountState, error)
func (*AccountState) BcsSerialize ¶
func (obj *AccountState) BcsSerialize() ([]byte, error)
func (*AccountState) Serialize ¶
func (obj *AccountState) Serialize(serializer serde.Serializer) error
type AccumulatorInfo ¶
type AccumulatorInfo struct { AccumulatorRoot HashValue FrozenSubtreeRoots []HashValue NumLeaves uint64 NumNodes uint64 }
func BcsDeserializeAccumulatorInfo ¶
func BcsDeserializeAccumulatorInfo(input []byte) (AccumulatorInfo, error)
func DeserializeAccumulatorInfo ¶
func DeserializeAccumulatorInfo(deserializer serde.Deserializer) (AccumulatorInfo, error)
func (*AccumulatorInfo) BcsSerialize ¶
func (obj *AccumulatorInfo) BcsSerialize() ([]byte, error)
func (*AccumulatorInfo) Serialize ¶
func (obj *AccumulatorInfo) Serialize(serializer serde.Serializer) error
type ArgumentABI ¶
func BcsDeserializeArgumentABI ¶
func BcsDeserializeArgumentABI(input []byte) (ArgumentABI, error)
func DeserializeArgumentABI ¶
func DeserializeArgumentABI(deserializer serde.Deserializer) (ArgumentABI, error)
func (*ArgumentABI) BcsSerialize ¶
func (obj *ArgumentABI) BcsSerialize() ([]byte, error)
func (*ArgumentABI) Serialize ¶
func (obj *ArgumentABI) Serialize(serializer serde.Serializer) error
type AuthenticationKey ¶
type AuthenticationKey []byte
func AuthKey ¶
func AuthKey(transactionAuthenticator TransactionAuthenticator) AuthenticationKey
func BcsDeserializeAuthenticationKey ¶
func BcsDeserializeAuthenticationKey(input []byte) (AuthenticationKey, error)
func DeserializeAuthenticationKey ¶
func DeserializeAuthenticationKey(deserializer serde.Deserializer) (AuthenticationKey, error)
func (*AuthenticationKey) BcsSerialize ¶
func (key *AuthenticationKey) BcsSerialize() ([]byte, error)
func (*AuthenticationKey) DerivedAddress ¶
func (key *AuthenticationKey) DerivedAddress() (AccountAddress, error)
func (*AuthenticationKey) Serialize ¶
func (key *AuthenticationKey) Serialize(serializer serde.Serializer) error
type BlockHeader ¶
type BlockHeader struct { ParentHash HashValue Timestamp uint64 Number uint64 Author AccountAddress AuthorAuthKey *AuthenticationKey TxnAccumulatorRoot HashValue BlockAccumulatorRoot HashValue StateRoot HashValue GasUsed uint64 Difficulty [32]uint8 BodyHash HashValue ChainId ChainId Nonce uint32 Extra BlockHeaderExtra }
func BcsDeserializeBlockHeader ¶
func BcsDeserializeBlockHeader(input []byte) (BlockHeader, error)
func DeserializeBlockHeader ¶
func DeserializeBlockHeader(deserializer serde.Deserializer) (BlockHeader, error)
func (*BlockHeader) BcsSerialize ¶
func (header *BlockHeader) BcsSerialize() ([]byte, error)
func (BlockHeader) GetDifficulty ¶
func (header BlockHeader) GetDifficulty() *big.Int
func (BlockHeader) GetHash ¶
func (header BlockHeader) GetHash() (*HashValue, error)
func (*BlockHeader) Serialize ¶
func (header *BlockHeader) Serialize(serializer serde.Serializer) error
func (BlockHeader) ToHeaderBlob ¶
func (header BlockHeader) ToHeaderBlob() ([]byte, error)
func (BlockHeader) ToRawBlockHeader ¶
func (header BlockHeader) ToRawBlockHeader() RawBlockHeader
type BlockHeaderAndBlockInfo ¶
type BlockHeaderAndBlockInfo struct { BlockHeader BlockHeader BlockInfo BlockInfo }
func BcsDeserializeBlockHeaderAndBlockInfo ¶
func BcsDeserializeBlockHeaderAndBlockInfo(input []byte) (BlockHeaderAndBlockInfo, error)
func DeserializeBlockHeaderAndBlockInfo ¶
func DeserializeBlockHeaderAndBlockInfo(deserializer serde.Deserializer) (BlockHeaderAndBlockInfo, error)
func (*BlockHeaderAndBlockInfo) BcsSerialize ¶
func (obj *BlockHeaderAndBlockInfo) BcsSerialize() ([]byte, error)
func (*BlockHeaderAndBlockInfo) Serialize ¶
func (obj *BlockHeaderAndBlockInfo) Serialize(serializer serde.Serializer) error
type BlockHeaderExtra ¶
type BlockHeaderExtra [4]uint8
func BcsDeserializeBlockHeaderExtra ¶
func BcsDeserializeBlockHeaderExtra(input []byte) (BlockHeaderExtra, error)
func DeserializeBlockHeaderExtra ¶
func DeserializeBlockHeaderExtra(deserializer serde.Deserializer) (BlockHeaderExtra, error)
func (*BlockHeaderExtra) BcsSerialize ¶
func (obj *BlockHeaderExtra) BcsSerialize() ([]byte, error)
func (*BlockHeaderExtra) Serialize ¶
func (obj *BlockHeaderExtra) Serialize(serializer serde.Serializer) error
type BlockInfo ¶
type BlockInfo struct { BlockHash HashValue TotalDifficulty [32]uint8 TxnAccumulatorInfo AccumulatorInfo BlockAccumulatorInfo AccumulatorInfo }
func BcsDeserializeBlockInfo ¶
func DeserializeBlockInfo ¶
func DeserializeBlockInfo(deserializer serde.Deserializer) (BlockInfo, error)
func (*BlockInfo) BcsSerialize ¶
type BlockMetadata ¶
type BlockMetadata struct { ParentHash HashValue Timestamp uint64 Author AccountAddress AuthorAuthKey *AuthenticationKey Uncles uint64 Number uint64 ChainId ChainId ParentGasUsed uint64 }
func BcsDeserializeBlockMetadata ¶
func BcsDeserializeBlockMetadata(input []byte) (BlockMetadata, error)
func DeserializeBlockMetadata ¶
func DeserializeBlockMetadata(deserializer serde.Deserializer) (BlockMetadata, error)
func (*BlockMetadata) BcsSerialize ¶
func (obj *BlockMetadata) BcsSerialize() ([]byte, error)
func (*BlockMetadata) Serialize ¶
func (obj *BlockMetadata) Serialize(serializer serde.Serializer) error
type ChainId ¶
type ChainId struct {
Id uint8
}
func BcsDeserializeChainId ¶
func DeserializeChainId ¶
func DeserializeChainId(deserializer serde.Deserializer) (ChainId, error)
func (*ChainId) BcsSerialize ¶
type ContractEvent ¶
type ContractEvent interface { Serialize(serializer serde.Serializer) error BcsSerialize() ([]byte, error) CryptoHash() (*HashValue, error) // contains filtered or unexported methods }
func BcsDeserializeContractEvent ¶
func BcsDeserializeContractEvent(input []byte) (ContractEvent, error)
func DeserializeContractEvent ¶
func DeserializeContractEvent(deserializer serde.Deserializer) (ContractEvent, error)
type ContractEventV0 ¶
func BcsDeserializeContractEventV0 ¶
func BcsDeserializeContractEventV0(input []byte) (ContractEventV0, error)
func DeserializeContractEventV0 ¶
func DeserializeContractEventV0(deserializer serde.Deserializer) (ContractEventV0, error)
func (*ContractEventV0) BcsSerialize ¶
func (obj *ContractEventV0) BcsSerialize() ([]byte, error)
func (*ContractEventV0) Serialize ¶
func (obj *ContractEventV0) Serialize(serializer serde.Serializer) error
type ContractEvent__V0 ¶
type ContractEvent__V0 struct {
Value ContractEventV0
}
func (*ContractEvent__V0) BcsSerialize ¶
func (event *ContractEvent__V0) BcsSerialize() ([]byte, error)
func (ContractEvent__V0) CryptoHash ¶
func (event ContractEvent__V0) CryptoHash() (*HashValue, error)
func (*ContractEvent__V0) Serialize ¶
func (event *ContractEvent__V0) Serialize(serializer serde.Serializer) error
type DataPath ¶
type DataPath interface { Serialize(serializer serde.Serializer) error BcsSerialize() ([]byte, error) // contains filtered or unexported methods }
func BcsDeserializeDataPath ¶
func DeserializeDataPath ¶
func DeserializeDataPath(deserializer serde.Deserializer) (DataPath, error)
type DataPath__Code ¶
type DataPath__Code struct {
Value Identifier
}
func (*DataPath__Code) BcsSerialize ¶
func (obj *DataPath__Code) BcsSerialize() ([]byte, error)
func (*DataPath__Code) Serialize ¶
func (obj *DataPath__Code) Serialize(serializer serde.Serializer) error
type DataPath__Resource ¶
type DataPath__Resource struct {
Value StructTag
}
func (*DataPath__Resource) BcsSerialize ¶
func (obj *DataPath__Resource) BcsSerialize() ([]byte, error)
func (*DataPath__Resource) Serialize ¶
func (obj *DataPath__Resource) Serialize(serializer serde.Serializer) error
type DataType ¶
type DataType interface { Serialize(serializer serde.Serializer) error BcsSerialize() ([]byte, error) // contains filtered or unexported methods }
func BcsDeserializeDataType ¶
func DeserializeDataType ¶
func DeserializeDataType(deserializer serde.Deserializer) (DataType, error)
type DataType__Code ¶
type DataType__Code struct { }
func (*DataType__Code) BcsSerialize ¶
func (obj *DataType__Code) BcsSerialize() ([]byte, error)
func (*DataType__Code) Serialize ¶
func (obj *DataType__Code) Serialize(serializer serde.Serializer) error
type DataType__Resource ¶
type DataType__Resource struct { }
func (*DataType__Resource) BcsSerialize ¶
func (obj *DataType__Resource) BcsSerialize() ([]byte, error)
func (*DataType__Resource) Serialize ¶
func (obj *DataType__Resource) Serialize(serializer serde.Serializer) error
type Ed25519PrivateKey ¶
type Ed25519PrivateKey []byte
func BcsDeserializeEd25519PrivateKey ¶
func BcsDeserializeEd25519PrivateKey(input []byte) (Ed25519PrivateKey, error)
func DeserializeEd25519PrivateKey ¶
func DeserializeEd25519PrivateKey(deserializer serde.Deserializer) (Ed25519PrivateKey, error)
func (*Ed25519PrivateKey) BcsSerialize ¶
func (obj *Ed25519PrivateKey) BcsSerialize() ([]byte, error)
func (*Ed25519PrivateKey) Serialize ¶
func (obj *Ed25519PrivateKey) Serialize(serializer serde.Serializer) error
type Ed25519PublicKey ¶
type Ed25519PublicKey []byte
func BcsDeserializeEd25519PublicKey ¶
func BcsDeserializeEd25519PublicKey(input []byte) (Ed25519PublicKey, error)
func DeserializeEd25519PublicKey ¶
func DeserializeEd25519PublicKey(deserializer serde.Deserializer) (Ed25519PublicKey, error)
func (*Ed25519PublicKey) BcsSerialize ¶
func (obj *Ed25519PublicKey) BcsSerialize() ([]byte, error)
func (*Ed25519PublicKey) Serialize ¶
func (obj *Ed25519PublicKey) Serialize(serializer serde.Serializer) error
type Ed25519Signature ¶
type Ed25519Signature []byte
func BcsDeserializeEd25519Signature ¶
func BcsDeserializeEd25519Signature(input []byte) (Ed25519Signature, error)
func DeserializeEd25519Signature ¶
func DeserializeEd25519Signature(deserializer serde.Deserializer) (Ed25519Signature, error)
func (*Ed25519Signature) BcsSerialize ¶
func (obj *Ed25519Signature) BcsSerialize() ([]byte, error)
func (*Ed25519Signature) Serialize ¶
func (obj *Ed25519Signature) Serialize(serializer serde.Serializer) error
type EventHandle ¶
func BcsDeserializeEventHandle ¶
func BcsDeserializeEventHandle(input []byte) (EventHandle, error)
func DeserializeEventHandle ¶
func DeserializeEventHandle(deserializer serde.Deserializer) (EventHandle, error)
func (*EventHandle) BcsSerialize ¶
func (obj *EventHandle) BcsSerialize() ([]byte, error)
func (*EventHandle) Serialize ¶
func (obj *EventHandle) Serialize(serializer serde.Serializer) error
type EventKey ¶
type EventKey []byte
func BcsDeserializeEventKey ¶
func DeserializeEventKey ¶
func DeserializeEventKey(deserializer serde.Deserializer) (EventKey, error)
func (*EventKey) BcsSerialize ¶
type HashValue ¶
type HashValue []byte
func BcsDeserializeHashValue ¶
func CreateLiteralHash ¶
func DeserializeHashValue ¶
func DeserializeHashValue(deserializer serde.Deserializer) (HashValue, error)
func ToHashValue ¶
func ToHashValues ¶
func (*HashValue) BcsSerialize ¶
type Identifier ¶
type Identifier string
func BcsDeserializeIdentifier ¶
func BcsDeserializeIdentifier(input []byte) (Identifier, error)
func DeserializeIdentifier ¶
func DeserializeIdentifier(deserializer serde.Deserializer) (Identifier, error)
func (*Identifier) BcsSerialize ¶
func (obj *Identifier) BcsSerialize() ([]byte, error)
func (*Identifier) Serialize ¶
func (obj *Identifier) Serialize(serializer serde.Serializer) error
type KeptVMStatus ¶
type KeptVMStatus interface { Serialize(serializer serde.Serializer) error BcsSerialize() ([]byte, error) // contains filtered or unexported methods }
func BcsDeserializeKeptVMStatus ¶
func BcsDeserializeKeptVMStatus(input []byte) (KeptVMStatus, error)
func DeserializeKeptVMStatus ¶
func DeserializeKeptVMStatus(deserializer serde.Deserializer) (KeptVMStatus, error)
type KeptVMStatus__Executed ¶
type KeptVMStatus__Executed struct { }
func (*KeptVMStatus__Executed) BcsSerialize ¶
func (obj *KeptVMStatus__Executed) BcsSerialize() ([]byte, error)
func (*KeptVMStatus__Executed) Serialize ¶
func (obj *KeptVMStatus__Executed) Serialize(serializer serde.Serializer) error
type KeptVMStatus__ExecutionFailure ¶
type KeptVMStatus__ExecutionFailure struct { Location AbortLocation Function uint16 CodeOffset uint16 }
func (*KeptVMStatus__ExecutionFailure) BcsSerialize ¶
func (obj *KeptVMStatus__ExecutionFailure) BcsSerialize() ([]byte, error)
func (*KeptVMStatus__ExecutionFailure) Serialize ¶
func (obj *KeptVMStatus__ExecutionFailure) Serialize(serializer serde.Serializer) error
type KeptVMStatus__MiscellaneousError ¶
type KeptVMStatus__MiscellaneousError struct { }
func (*KeptVMStatus__MiscellaneousError) BcsSerialize ¶
func (obj *KeptVMStatus__MiscellaneousError) BcsSerialize() ([]byte, error)
func (*KeptVMStatus__MiscellaneousError) Serialize ¶
func (obj *KeptVMStatus__MiscellaneousError) Serialize(serializer serde.Serializer) error
type KeptVMStatus__MoveAbort ¶
type KeptVMStatus__MoveAbort struct { Field0 AbortLocation Field1 uint64 }
func (*KeptVMStatus__MoveAbort) BcsSerialize ¶
func (obj *KeptVMStatus__MoveAbort) BcsSerialize() ([]byte, error)
func (*KeptVMStatus__MoveAbort) Serialize ¶
func (obj *KeptVMStatus__MoveAbort) Serialize(serializer serde.Serializer) error
type KeptVMStatus__OutOfGas ¶
type KeptVMStatus__OutOfGas struct { }
func (*KeptVMStatus__OutOfGas) BcsSerialize ¶
func (obj *KeptVMStatus__OutOfGas) BcsSerialize() ([]byte, error)
func (*KeptVMStatus__OutOfGas) Serialize ¶
func (obj *KeptVMStatus__OutOfGas) Serialize(serializer serde.Serializer) error
type KeyRotationCapabilityResource ¶
type KeyRotationCapabilityResource struct {
AccountAddress AccountAddress
}
func BcsDeserializeKeyRotationCapabilityResource ¶
func BcsDeserializeKeyRotationCapabilityResource(input []byte) (KeyRotationCapabilityResource, error)
func DeserializeKeyRotationCapabilityResource ¶
func DeserializeKeyRotationCapabilityResource(deserializer serde.Deserializer) (KeyRotationCapabilityResource, error)
func (*KeyRotationCapabilityResource) BcsSerialize ¶
func (obj *KeyRotationCapabilityResource) BcsSerialize() ([]byte, error)
func (*KeyRotationCapabilityResource) Serialize ¶
func (obj *KeyRotationCapabilityResource) Serialize(serializer serde.Serializer) error
type Module ¶
type Module struct {
Code []byte
}
func BcsDeserializeModule ¶
func DeserializeModule ¶
func DeserializeModule(deserializer serde.Deserializer) (Module, error)
func (*Module) BcsSerialize ¶
type ModuleId ¶
type ModuleId struct { Address AccountAddress Name Identifier }
func BcsDeserializeModuleId ¶
func DeserializeModuleId ¶
func DeserializeModuleId(deserializer serde.Deserializer) (ModuleId, error)
func (*ModuleId) BcsSerialize ¶
type MultiEd25519PrivateKey ¶
type MultiEd25519PrivateKey []byte
func BcsDeserializeMultiEd25519PrivateKey ¶
func BcsDeserializeMultiEd25519PrivateKey(input []byte) (MultiEd25519PrivateKey, error)
func DeserializeMultiEd25519PrivateKey ¶
func DeserializeMultiEd25519PrivateKey(deserializer serde.Deserializer) (MultiEd25519PrivateKey, error)
func (*MultiEd25519PrivateKey) BcsSerialize ¶
func (obj *MultiEd25519PrivateKey) BcsSerialize() ([]byte, error)
func (*MultiEd25519PrivateKey) Serialize ¶
func (obj *MultiEd25519PrivateKey) Serialize(serializer serde.Serializer) error
type MultiEd25519PublicKey ¶
type MultiEd25519PublicKey []byte
func BcsDeserializeMultiEd25519PublicKey ¶
func BcsDeserializeMultiEd25519PublicKey(input []byte) (MultiEd25519PublicKey, error)
func DeserializeMultiEd25519PublicKey ¶
func DeserializeMultiEd25519PublicKey(deserializer serde.Deserializer) (MultiEd25519PublicKey, error)
func (*MultiEd25519PublicKey) BcsSerialize ¶
func (obj *MultiEd25519PublicKey) BcsSerialize() ([]byte, error)
func (*MultiEd25519PublicKey) Serialize ¶
func (obj *MultiEd25519PublicKey) Serialize(serializer serde.Serializer) error
type MultiEd25519Signature ¶
type MultiEd25519Signature []byte
func BcsDeserializeMultiEd25519Signature ¶
func BcsDeserializeMultiEd25519Signature(input []byte) (MultiEd25519Signature, error)
func DeserializeMultiEd25519Signature ¶
func DeserializeMultiEd25519Signature(deserializer serde.Deserializer) (MultiEd25519Signature, error)
func (*MultiEd25519Signature) BcsSerialize ¶
func (obj *MultiEd25519Signature) BcsSerialize() ([]byte, error)
func (*MultiEd25519Signature) Serialize ¶
func (obj *MultiEd25519Signature) Serialize(serializer serde.Serializer) error
type Package ¶
type Package struct { PackageAddress AccountAddress Modules []Module InitScript *ScriptFunction }
func BcsDeserializePackage ¶
func DeserializePackage ¶
func DeserializePackage(deserializer serde.Deserializer) (Package, error)
func (*Package) BcsSerialize ¶
type RawBlockHeader ¶
type RawBlockHeader struct { ParentHash HashValue Timestamp uint64 Number uint64 Author AccountAddress AuthorAuthKey *AuthenticationKey AccumulatorRoot HashValue ParentBlockAccumulatorRoot HashValue StateRoot HashValue GasUsed uint64 Difficulty [32]uint8 BodyHash HashValue ChainId ChainId }
func BcsDeserializeRawBlockHeader ¶
func BcsDeserializeRawBlockHeader(input []byte) (RawBlockHeader, error)
func DeserializeRawBlockHeader ¶
func DeserializeRawBlockHeader(deserializer serde.Deserializer) (RawBlockHeader, error)
func (*RawBlockHeader) BcsSerialize ¶
func (header *RawBlockHeader) BcsSerialize() ([]byte, error)
func (RawBlockHeader) CryptoHash ¶
func (header RawBlockHeader) CryptoHash() (*HashValue, error)
func (*RawBlockHeader) Serialize ¶
func (header *RawBlockHeader) Serialize(serializer serde.Serializer) error
type RawUserTransaction ¶
type RawUserTransaction struct { Sender AccountAddress SequenceNumber uint64 Payload TransactionPayload MaxGasAmount uint64 GasUnitPrice uint64 GasTokenCode string ExpirationTimestampSecs uint64 ChainId ChainId }
func BcsDeserializeRawUserTransaction ¶
func BcsDeserializeRawUserTransaction(input []byte) (RawUserTransaction, error)
func DeserializeRawUserTransaction ¶
func DeserializeRawUserTransaction(deserializer serde.Deserializer) (RawUserTransaction, error)
func (*RawUserTransaction) BcsSerialize ¶
func (obj *RawUserTransaction) BcsSerialize() ([]byte, error)
func (*RawUserTransaction) Serialize ¶
func (obj *RawUserTransaction) Serialize(serializer serde.Serializer) error
type Script ¶
func BcsDeserializeScript ¶
func DeserializeScript ¶
func DeserializeScript(deserializer serde.Deserializer) (Script, error)
func (*Script) BcsSerialize ¶
type ScriptABI ¶
type ScriptABI interface { Serialize(serializer serde.Serializer) error BcsSerialize() ([]byte, error) // contains filtered or unexported methods }
func BcsDeserializeScriptABI ¶
func DeserializeScriptABI ¶
func DeserializeScriptABI(deserializer serde.Deserializer) (ScriptABI, error)
type ScriptABI__ScriptFunction ¶
type ScriptABI__ScriptFunction struct {
Value ScriptFunctionABI
}
func (*ScriptABI__ScriptFunction) BcsSerialize ¶
func (obj *ScriptABI__ScriptFunction) BcsSerialize() ([]byte, error)
func (*ScriptABI__ScriptFunction) Serialize ¶
func (obj *ScriptABI__ScriptFunction) Serialize(serializer serde.Serializer) error
type ScriptABI__TransactionScript ¶
type ScriptABI__TransactionScript struct {
Value TransactionScriptABI
}
func (*ScriptABI__TransactionScript) BcsSerialize ¶
func (obj *ScriptABI__TransactionScript) BcsSerialize() ([]byte, error)
func (*ScriptABI__TransactionScript) Serialize ¶
func (obj *ScriptABI__TransactionScript) Serialize(serializer serde.Serializer) error
type ScriptFunction ¶
type ScriptFunction struct { Module ModuleId Function Identifier TyArgs []TypeTag Args [][]byte }
func BcsDeserializeScriptFunction ¶
func BcsDeserializeScriptFunction(input []byte) (ScriptFunction, error)
func DeserializeScriptFunction ¶
func DeserializeScriptFunction(deserializer serde.Deserializer) (ScriptFunction, error)
func (*ScriptFunction) BcsSerialize ¶
func (obj *ScriptFunction) BcsSerialize() ([]byte, error)
func (*ScriptFunction) Serialize ¶
func (obj *ScriptFunction) Serialize(serializer serde.Serializer) error
type ScriptFunctionABI ¶
type ScriptFunctionABI struct { Name string ModuleName ModuleId Doc string TyArgs []TypeArgumentABI Args []ArgumentABI }
func BcsDeserializeScriptFunctionABI ¶
func BcsDeserializeScriptFunctionABI(input []byte) (ScriptFunctionABI, error)
func DeserializeScriptFunctionABI ¶
func DeserializeScriptFunctionABI(deserializer serde.Deserializer) (ScriptFunctionABI, error)
func (*ScriptFunctionABI) BcsSerialize ¶
func (obj *ScriptFunctionABI) BcsSerialize() ([]byte, error)
func (*ScriptFunctionABI) Serialize ¶
func (obj *ScriptFunctionABI) Serialize(serializer serde.Serializer) error
type SignedMessage ¶
type SignedMessage struct { Account AccountAddress Message SigningMessage Authenticator TransactionAuthenticator ChainId ChainId }
func BcsDeserializeSignedMessage ¶
func BcsDeserializeSignedMessage(input []byte) (SignedMessage, error)
func DeserializeSignedMessage ¶
func DeserializeSignedMessage(deserializer serde.Deserializer) (SignedMessage, error)
func (*SignedMessage) BcsSerialize ¶
func (obj *SignedMessage) BcsSerialize() ([]byte, error)
func (*SignedMessage) Serialize ¶
func (obj *SignedMessage) Serialize(serializer serde.Serializer) error
type SignedUserTransaction ¶
type SignedUserTransaction struct { RawTxn RawUserTransaction Authenticator TransactionAuthenticator }
func BcsDeserializeSignedUserTransaction ¶
func BcsDeserializeSignedUserTransaction(input []byte) (SignedUserTransaction, error)
func DeserializeSignedUserTransaction ¶
func DeserializeSignedUserTransaction(deserializer serde.Deserializer) (SignedUserTransaction, error)
func (*SignedUserTransaction) BcsSerialize ¶
func (obj *SignedUserTransaction) BcsSerialize() ([]byte, error)
func (*SignedUserTransaction) Serialize ¶
func (obj *SignedUserTransaction) Serialize(serializer serde.Serializer) error
type SigningMessage ¶
type SigningMessage []uint8
func BcsDeserializeSigningMessage ¶
func BcsDeserializeSigningMessage(input []byte) (SigningMessage, error)
func DeserializeSigningMessage ¶
func DeserializeSigningMessage(deserializer serde.Deserializer) (SigningMessage, error)
func (*SigningMessage) BcsSerialize ¶
func (message *SigningMessage) BcsSerialize() ([]byte, error)
func (SigningMessage) HashBytes ¶
func (message SigningMessage) HashBytes() []byte
func (*SigningMessage) Serialize ¶
func (message *SigningMessage) Serialize(serializer serde.Serializer) error
type SparseMerkleInternalNode ¶
func BcsDeserializeSparseMerkleInternalNode ¶
func BcsDeserializeSparseMerkleInternalNode(input []byte) (SparseMerkleInternalNode, error)
func DeserializeSparseMerkleInternalNode ¶
func DeserializeSparseMerkleInternalNode(deserializer serde.Deserializer) (SparseMerkleInternalNode, error)
func (*SparseMerkleInternalNode) BcsSerialize ¶
func (node *SparseMerkleInternalNode) BcsSerialize() ([]byte, error)
func (SparseMerkleInternalNode) CryptoHash ¶
func (node SparseMerkleInternalNode) CryptoHash() (*HashValue, error)
func (*SparseMerkleInternalNode) Serialize ¶
func (node *SparseMerkleInternalNode) Serialize(serializer serde.Serializer) error
type SparseMerkleLeafNode ¶
func BcsDeserializeSparseMerkleLeafNode ¶
func BcsDeserializeSparseMerkleLeafNode(input []byte) (SparseMerkleLeafNode, error)
func DeserializeSparseMerkleLeafNode ¶
func DeserializeSparseMerkleLeafNode(deserializer serde.Deserializer) (SparseMerkleLeafNode, error)
func (*SparseMerkleLeafNode) BcsSerialize ¶
func (node *SparseMerkleLeafNode) BcsSerialize() ([]byte, error)
func (SparseMerkleLeafNode) CryptoHash ¶
func (node SparseMerkleLeafNode) CryptoHash() (*HashValue, error)
func (*SparseMerkleLeafNode) Serialize ¶
func (node *SparseMerkleLeafNode) Serialize(serializer serde.Serializer) error
type StructTag ¶
type StructTag struct { Address AccountAddress Module Identifier Name Identifier TypeParams []TypeTag }
func BcsDeserializeStructTag ¶
func DeserializeStructTag ¶
func DeserializeStructTag(deserializer serde.Deserializer) (StructTag, error)
func (*StructTag) BcsSerialize ¶
type Transaction ¶
type Transaction interface { Serialize(serializer serde.Serializer) error BcsSerialize() ([]byte, error) // contains filtered or unexported methods }
func BcsDeserializeTransaction ¶
func BcsDeserializeTransaction(input []byte) (Transaction, error)
func DeserializeTransaction ¶
func DeserializeTransaction(deserializer serde.Deserializer) (Transaction, error)
type TransactionArgument ¶
type TransactionArgument interface { Serialize(serializer serde.Serializer) error BcsSerialize() ([]byte, error) // contains filtered or unexported methods }
func BcsDeserializeTransactionArgument ¶
func BcsDeserializeTransactionArgument(input []byte) (TransactionArgument, error)
func DeserializeTransactionArgument ¶
func DeserializeTransactionArgument(deserializer serde.Deserializer) (TransactionArgument, error)
type TransactionArgument__Address ¶
type TransactionArgument__Address struct {
Value AccountAddress
}
func (*TransactionArgument__Address) BcsSerialize ¶
func (obj *TransactionArgument__Address) BcsSerialize() ([]byte, error)
func (*TransactionArgument__Address) Serialize ¶
func (obj *TransactionArgument__Address) Serialize(serializer serde.Serializer) error
type TransactionArgument__Bool ¶
type TransactionArgument__Bool bool
func (*TransactionArgument__Bool) BcsSerialize ¶
func (obj *TransactionArgument__Bool) BcsSerialize() ([]byte, error)
func (*TransactionArgument__Bool) Serialize ¶
func (obj *TransactionArgument__Bool) Serialize(serializer serde.Serializer) error
type TransactionArgument__U128 ¶
func (*TransactionArgument__U128) BcsSerialize ¶
func (obj *TransactionArgument__U128) BcsSerialize() ([]byte, error)
func (*TransactionArgument__U128) Serialize ¶
func (obj *TransactionArgument__U128) Serialize(serializer serde.Serializer) error
type TransactionArgument__U64 ¶
type TransactionArgument__U64 uint64
func (*TransactionArgument__U64) BcsSerialize ¶
func (obj *TransactionArgument__U64) BcsSerialize() ([]byte, error)
func (*TransactionArgument__U64) Serialize ¶
func (obj *TransactionArgument__U64) Serialize(serializer serde.Serializer) error
type TransactionArgument__U8 ¶
type TransactionArgument__U8 uint8
func (*TransactionArgument__U8) BcsSerialize ¶
func (obj *TransactionArgument__U8) BcsSerialize() ([]byte, error)
func (*TransactionArgument__U8) Serialize ¶
func (obj *TransactionArgument__U8) Serialize(serializer serde.Serializer) error
type TransactionArgument__U8Vector ¶
type TransactionArgument__U8Vector []byte
func (*TransactionArgument__U8Vector) BcsSerialize ¶
func (obj *TransactionArgument__U8Vector) BcsSerialize() ([]byte, error)
func (*TransactionArgument__U8Vector) Serialize ¶
func (obj *TransactionArgument__U8Vector) Serialize(serializer serde.Serializer) error
type TransactionArgument__VecAccountAddress ¶
type TransactionArgument__VecAccountAddress struct {
Value VecAccountAddress
}
func (*TransactionArgument__VecAccountAddress) BcsSerialize ¶
func (obj *TransactionArgument__VecAccountAddress) BcsSerialize() ([]byte, error)
func (*TransactionArgument__VecAccountAddress) Serialize ¶
func (obj *TransactionArgument__VecAccountAddress) Serialize(serializer serde.Serializer) error
type TransactionArgument__VecBytes ¶
type TransactionArgument__VecBytes struct {
Value VecBytes
}
func (*TransactionArgument__VecBytes) BcsSerialize ¶
func (obj *TransactionArgument__VecBytes) BcsSerialize() ([]byte, error)
func (*TransactionArgument__VecBytes) Serialize ¶
func (obj *TransactionArgument__VecBytes) Serialize(serializer serde.Serializer) error
type TransactionArgument__VecU128 ¶
type TransactionArgument__VecU128 struct {
Value VecU128
}
func (*TransactionArgument__VecU128) BcsSerialize ¶
func (obj *TransactionArgument__VecU128) BcsSerialize() ([]byte, error)
func (*TransactionArgument__VecU128) Serialize ¶
func (obj *TransactionArgument__VecU128) Serialize(serializer serde.Serializer) error
type TransactionAuthenticator ¶
type TransactionAuthenticator interface { Serialize(serializer serde.Serializer) error BcsSerialize() ([]byte, error) // contains filtered or unexported methods }
func BcsDeserializeTransactionAuthenticator ¶
func BcsDeserializeTransactionAuthenticator(input []byte) (TransactionAuthenticator, error)
func DeserializeTransactionAuthenticator ¶
func DeserializeTransactionAuthenticator(deserializer serde.Deserializer) (TransactionAuthenticator, error)
type TransactionAuthenticator__Ed25519 ¶
type TransactionAuthenticator__Ed25519 struct { PublicKey Ed25519PublicKey Signature Ed25519Signature }
func (*TransactionAuthenticator__Ed25519) BcsSerialize ¶
func (obj *TransactionAuthenticator__Ed25519) BcsSerialize() ([]byte, error)
func (*TransactionAuthenticator__Ed25519) Serialize ¶
func (obj *TransactionAuthenticator__Ed25519) Serialize(serializer serde.Serializer) error
type TransactionAuthenticator__MultiEd25519 ¶
type TransactionAuthenticator__MultiEd25519 struct { PublicKey MultiEd25519PublicKey Signature MultiEd25519Signature }
func (*TransactionAuthenticator__MultiEd25519) BcsSerialize ¶
func (obj *TransactionAuthenticator__MultiEd25519) BcsSerialize() ([]byte, error)
func (*TransactionAuthenticator__MultiEd25519) Serialize ¶
func (obj *TransactionAuthenticator__MultiEd25519) Serialize(serializer serde.Serializer) error
type TransactionInfo ¶
type TransactionInfo struct { TransactionHash HashValue StateRootHash HashValue EventRootHash HashValue GasUsed uint64 Status KeptVMStatus }
func BcsDeserializeTransactionInfo ¶
func BcsDeserializeTransactionInfo(input []byte) (TransactionInfo, error)
func DeserializeTransactionInfo ¶
func DeserializeTransactionInfo(deserializer serde.Deserializer) (TransactionInfo, error)
func (*TransactionInfo) BcsSerialize ¶
func (info *TransactionInfo) BcsSerialize() ([]byte, error)
func (TransactionInfo) CryptoHash ¶
func (info TransactionInfo) CryptoHash() (*HashValue, error)
func (*TransactionInfo) Serialize ¶
func (info *TransactionInfo) Serialize(serializer serde.Serializer) error
type TransactionPayload ¶
type TransactionPayload interface { Serialize(serializer serde.Serializer) error BcsSerialize() ([]byte, error) // contains filtered or unexported methods }
func BcsDeserializeTransactionPayload ¶
func BcsDeserializeTransactionPayload(input []byte) (TransactionPayload, error)
func DeserializeTransactionPayload ¶
func DeserializeTransactionPayload(deserializer serde.Deserializer) (TransactionPayload, error)
type TransactionPayload__Package ¶
type TransactionPayload__Package struct {
Value Package
}
func (*TransactionPayload__Package) BcsSerialize ¶
func (obj *TransactionPayload__Package) BcsSerialize() ([]byte, error)
func (*TransactionPayload__Package) Serialize ¶
func (obj *TransactionPayload__Package) Serialize(serializer serde.Serializer) error
type TransactionPayload__Script ¶
type TransactionPayload__Script struct {
Value Script
}
func (*TransactionPayload__Script) BcsSerialize ¶
func (obj *TransactionPayload__Script) BcsSerialize() ([]byte, error)
func (*TransactionPayload__Script) Serialize ¶
func (obj *TransactionPayload__Script) Serialize(serializer serde.Serializer) error
type TransactionPayload__ScriptFunction ¶
type TransactionPayload__ScriptFunction struct {
Value ScriptFunction
}
func (*TransactionPayload__ScriptFunction) BcsSerialize ¶
func (obj *TransactionPayload__ScriptFunction) BcsSerialize() ([]byte, error)
func (*TransactionPayload__ScriptFunction) Serialize ¶
func (obj *TransactionPayload__ScriptFunction) Serialize(serializer serde.Serializer) error
type TransactionScriptABI ¶
type TransactionScriptABI struct { Name string Doc string Code []byte TyArgs []TypeArgumentABI Args []ArgumentABI }
func BcsDeserializeTransactionScriptABI ¶
func BcsDeserializeTransactionScriptABI(input []byte) (TransactionScriptABI, error)
func DeserializeTransactionScriptABI ¶
func DeserializeTransactionScriptABI(deserializer serde.Deserializer) (TransactionScriptABI, error)
func (*TransactionScriptABI) BcsSerialize ¶
func (obj *TransactionScriptABI) BcsSerialize() ([]byte, error)
func (*TransactionScriptABI) Serialize ¶
func (obj *TransactionScriptABI) Serialize(serializer serde.Serializer) error
type Transaction__BlockMetadata ¶
type Transaction__BlockMetadata struct {
Value BlockMetadata
}
func (*Transaction__BlockMetadata) BcsSerialize ¶
func (obj *Transaction__BlockMetadata) BcsSerialize() ([]byte, error)
func (*Transaction__BlockMetadata) Serialize ¶
func (obj *Transaction__BlockMetadata) Serialize(serializer serde.Serializer) error
type Transaction__UserTransaction ¶
type Transaction__UserTransaction struct {
Value SignedUserTransaction
}
func (*Transaction__UserTransaction) BcsSerialize ¶
func (obj *Transaction__UserTransaction) BcsSerialize() ([]byte, error)
func (*Transaction__UserTransaction) Serialize ¶
func (obj *Transaction__UserTransaction) Serialize(serializer serde.Serializer) error
type TypeArgumentABI ¶
type TypeArgumentABI struct {
Name string
}
func BcsDeserializeTypeArgumentABI ¶
func BcsDeserializeTypeArgumentABI(input []byte) (TypeArgumentABI, error)
func DeserializeTypeArgumentABI ¶
func DeserializeTypeArgumentABI(deserializer serde.Deserializer) (TypeArgumentABI, error)
func (*TypeArgumentABI) BcsSerialize ¶
func (obj *TypeArgumentABI) BcsSerialize() ([]byte, error)
func (*TypeArgumentABI) Serialize ¶
func (obj *TypeArgumentABI) Serialize(serializer serde.Serializer) error
type TypeTag ¶
type TypeTag interface { Serialize(serializer serde.Serializer) error BcsSerialize() ([]byte, error) // contains filtered or unexported methods }
func BcsDeserializeTypeTag ¶
func DeserializeTypeTag ¶
func DeserializeTypeTag(deserializer serde.Deserializer) (TypeTag, error)
type TypeTag__Address ¶
type TypeTag__Address struct { }
func (*TypeTag__Address) BcsSerialize ¶
func (obj *TypeTag__Address) BcsSerialize() ([]byte, error)
func (*TypeTag__Address) Serialize ¶
func (obj *TypeTag__Address) Serialize(serializer serde.Serializer) error
type TypeTag__Bool ¶
type TypeTag__Bool struct { }
func (*TypeTag__Bool) BcsSerialize ¶
func (obj *TypeTag__Bool) BcsSerialize() ([]byte, error)
func (*TypeTag__Bool) Serialize ¶
func (obj *TypeTag__Bool) Serialize(serializer serde.Serializer) error
type TypeTag__Signer ¶
type TypeTag__Signer struct { }
func (*TypeTag__Signer) BcsSerialize ¶
func (obj *TypeTag__Signer) BcsSerialize() ([]byte, error)
func (*TypeTag__Signer) Serialize ¶
func (obj *TypeTag__Signer) Serialize(serializer serde.Serializer) error
type TypeTag__Struct ¶
type TypeTag__Struct struct {
Value StructTag
}
func (*TypeTag__Struct) BcsSerialize ¶
func (obj *TypeTag__Struct) BcsSerialize() ([]byte, error)
func (*TypeTag__Struct) Serialize ¶
func (obj *TypeTag__Struct) Serialize(serializer serde.Serializer) error
type TypeTag__U128 ¶
type TypeTag__U128 struct { }
func (*TypeTag__U128) BcsSerialize ¶
func (obj *TypeTag__U128) BcsSerialize() ([]byte, error)
func (*TypeTag__U128) Serialize ¶
func (obj *TypeTag__U128) Serialize(serializer serde.Serializer) error
type TypeTag__U64 ¶
type TypeTag__U64 struct { }
func (*TypeTag__U64) BcsSerialize ¶
func (obj *TypeTag__U64) BcsSerialize() ([]byte, error)
func (*TypeTag__U64) Serialize ¶
func (obj *TypeTag__U64) Serialize(serializer serde.Serializer) error
type TypeTag__U8 ¶
type TypeTag__U8 struct { }
func (*TypeTag__U8) BcsSerialize ¶
func (obj *TypeTag__U8) BcsSerialize() ([]byte, error)
func (*TypeTag__U8) Serialize ¶
func (obj *TypeTag__U8) Serialize(serializer serde.Serializer) error
type TypeTag__Vector ¶
type TypeTag__Vector struct {
Value TypeTag
}
func (*TypeTag__Vector) BcsSerialize ¶
func (obj *TypeTag__Vector) BcsSerialize() ([]byte, error)
func (*TypeTag__Vector) Serialize ¶
func (obj *TypeTag__Vector) Serialize(serializer serde.Serializer) error
type VecAccountAddress ¶
type VecAccountAddress []AccountAddress
func BcsDeserializeVecAccountAddress ¶
func BcsDeserializeVecAccountAddress(input []byte) (VecAccountAddress, error)
func DeserializeVecAccountAddress ¶
func DeserializeVecAccountAddress(deserializer serde.Deserializer) (VecAccountAddress, error)
func (*VecAccountAddress) BcsSerialize ¶
func (obj *VecAccountAddress) BcsSerialize() ([]byte, error)
func (*VecAccountAddress) Serialize ¶
func (obj *VecAccountAddress) Serialize(serializer serde.Serializer) error
type VecBytes ¶
type VecBytes [][]byte
func BcsDeserializeVecBytes ¶
func DeserializeVecBytes ¶
func DeserializeVecBytes(deserializer serde.Deserializer) (VecBytes, error)
func (*VecBytes) BcsSerialize ¶
type VecU128 ¶
func BcsDeserializeVecU128 ¶
func DeserializeVecU128 ¶
func DeserializeVecU128(deserializer serde.Deserializer) (VecU128, error)
func (*VecU128) BcsSerialize ¶
type WithdrawCapabilityResource ¶
type WithdrawCapabilityResource struct {
AccountAddress AccountAddress
}
func BcsDeserializeWithdrawCapabilityResource ¶
func BcsDeserializeWithdrawCapabilityResource(input []byte) (WithdrawCapabilityResource, error)
func DeserializeWithdrawCapabilityResource ¶
func DeserializeWithdrawCapabilityResource(deserializer serde.Deserializer) (WithdrawCapabilityResource, error)
func (*WithdrawCapabilityResource) BcsSerialize ¶
func (obj *WithdrawCapabilityResource) BcsSerialize() ([]byte, error)
func (*WithdrawCapabilityResource) Serialize ¶
func (obj *WithdrawCapabilityResource) Serialize(serializer serde.Serializer) error
type WriteOp ¶
type WriteOp interface { Serialize(serializer serde.Serializer) error BcsSerialize() ([]byte, error) // contains filtered or unexported methods }
func BcsDeserializeWriteOp ¶
func DeserializeWriteOp ¶
func DeserializeWriteOp(deserializer serde.Deserializer) (WriteOp, error)
type WriteOp__Deletion ¶
type WriteOp__Deletion struct { }
func (*WriteOp__Deletion) BcsSerialize ¶
func (obj *WriteOp__Deletion) BcsSerialize() ([]byte, error)
func (*WriteOp__Deletion) Serialize ¶
func (obj *WriteOp__Deletion) Serialize(serializer serde.Serializer) error
type WriteOp__Value ¶
type WriteOp__Value []byte
func (*WriteOp__Value) BcsSerialize ¶
func (obj *WriteOp__Value) BcsSerialize() ([]byte, error)
func (*WriteOp__Value) Serialize ¶
func (obj *WriteOp__Value) Serialize(serializer serde.Serializer) error
type WriteSet ¶
type WriteSet struct {
Value WriteSetMut
}
func BcsDeserializeWriteSet ¶
func DeserializeWriteSet ¶
func DeserializeWriteSet(deserializer serde.Deserializer) (WriteSet, error)
func (*WriteSet) BcsSerialize ¶
type WriteSetMut ¶
type WriteSetMut struct { WriteSet []struct { Field0 AccessPath Field1 WriteOp } }
func BcsDeserializeWriteSetMut ¶
func BcsDeserializeWriteSetMut(input []byte) (WriteSetMut, error)
func DeserializeWriteSetMut ¶
func DeserializeWriteSetMut(deserializer serde.Deserializer) (WriteSetMut, error)
func (*WriteSetMut) BcsSerialize ¶
func (obj *WriteSetMut) BcsSerialize() ([]byte, error)
func (*WriteSetMut) Serialize ¶
func (obj *WriteSetMut) Serialize(serializer serde.Serializer) error
Click to show internal directories.
Click to hide internal directories.