Versions in this module Expand all Collapse all v1 v1.8.3 Jan 28, 2022 Changes in this version + var SPARSE_MERKLE_PLACEHOLDER_HASH = types.CreateLiteralHash("SPARSE_MERKLE_PLACEHOLDER_HASH") + func AddressKeyHash(address types.AccountAddress) (types.HashValue, error) + func Bytes2Bits(data []byte) []int + func GetCrossChainEventRawData(ccEvtData []byte) ([]byte, error) + func HashSha(data []byte) []byte + func IsInstanceOf(objectPtr, typePtr interface{}) bool + func VerifyEventProof(proof *TransactionInfoProof, txnAccumulatorRoot types.HashValue, ...) (*types.ContractEventV0, error) + type AccumulatorProof struct + type ContractEvent struct + V Event + type CrossChainEvent struct + ProxyOrAssetContract []byte + RawData []byte + Sender []byte + ToChainId uint64 + ToContract []byte + TxId []byte + func BcsDeserializeCrossChainEvent(input []byte) (CrossChainEvent, error) + func DeserializeCrossChainEvent(deserializer serde.Deserializer) (CrossChainEvent, error) + func (obj *CrossChainEvent) BcsSerialize() ([]byte, error) + func (obj *CrossChainEvent) Serialize(serializer serde.Serializer) error + type Event struct + EventData []byte + Key string + SequenceNumber int + TypeTag TypeTag_Struct + type EventWithProof struct + Event string + Proof Siblings + type Handler struct + func NewHandler() *Handler + func (h *Handler) MakeDepositProposal(service *native.NativeService) (*scom.MakeTxParam, error) + type Leaf struct + type Siblings struct + Sibling []string + type SparseMerkleProof struct + type SparseMerkleProofJson struct + Leaf []string + Siblings []string + type StarcoinToPolyHeaderOrCrossChainMsg struct + AccessPath *string + EventIndex *int + type StateProof struct + type StateProofJson struct + AccountProof SparseMerkleProofJson + AccountState []byte + AccountStateProof SparseMerkleProofJson + type StateWithProof struct + type StateWithProofJson struct + Proof StateProofJson + State []byte + type StructTag struct + Address string + Module string + Name string + TypeParams []string + type TransactionInfoProof struct + AccessPath *string + EventIndex *int + EventWithProof EventWithProof + Proof Siblings + StateWithProof StateWithProofJson + TransactionInfo stc.TransactionInfo + type TypeTag_Struct struct + Value StructTag