Documentation ¶
Index ¶
- func AmountBytes(amount string) []byte
- func IntTo32Bytes(amount int) []byte
- func To32Bytes(arr []byte) []byte
- type BundleData
- type ChangePartiesContent
- type ContentData
- type ContractUpgradeContent
- type FeeTokenManagementContent
- type IdentityAggregatedTransferContent
- type IdentityDefaultTransferContent
- type IdentityGISTTransferContent
- type IdentityStateTransferContent
- type OriginData
- type TransferContent
- type WorldCoinIdentityTransferContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AmountBytes ¶
func IntTo32Bytes ¶
Types ¶
type BundleData ¶
type BundleData []byte
BundleData contains specific information about bundle operation
func NewEmptyBundle ¶
func NewEmptyBundle() BundleData
type ChangePartiesContent ¶
ChangePartiesContent implements the Content interface provided by go-merkle and represents the content stored in the tree.
func (ChangePartiesContent) CalculateHash ¶
func (c ChangePartiesContent) CalculateHash() []byte
type ContentData ¶
type ContentData []byte
ContentData contains specific information for the certain content
func NewEmptyContent ¶
func NewEmptyContent() ContentData
type ContractUpgradeContent ¶
type ContractUpgradeContent struct { Type tokenmanagermoduletypes.UpgradeType ChainName string Contract string NewImplementationContract string ByteCodeHash string BufferAccount string Nonce string }
ContractUpgradeContent implements the Content interface provided by go-merkle and represents the content stored in the tree.
func (ContractUpgradeContent) CalculateHash ¶
func (c ContractUpgradeContent) CalculateHash() []byte
type FeeTokenManagementContent ¶
type FeeTokenManagementContent struct { Nonce []byte TargetNetwork string // Receiver address on target network Receiver []byte // Target bridge contract TargetContract []byte // Can contain any specific data for target chain to validate. Data ContentData }
FeeTokenManagementContent implements the Content interface provided by go-merkle and represents the content stored in the tree.
func (FeeTokenManagementContent) CalculateHash ¶
func (f FeeTokenManagementContent) CalculateHash() []byte
type IdentityAggregatedTransferContent ¶
type IdentityAggregatedTransferContent struct { Contract []byte Chain string GISTHash []byte StateRootHash []byte Timestamp []byte }
IdentityAggregatedTransferContent implements the Content interface provided by go-merkle and represents the content stored in the tree.
func (IdentityAggregatedTransferContent) CalculateHash ¶
func (c IdentityAggregatedTransferContent) CalculateHash() []byte
type IdentityDefaultTransferContent ¶
type IdentityDefaultTransferContent struct { Contract []byte GISTHash []byte Id []byte StateHash []byte StateCreatedAtTimestamp []byte StateCreatedAtBlock []byte StateReplacedBy []byte GISTReplacedBy []byte GISTCreatedAtTimestamp []byte GISTCreatedAtBlock []byte ReplacedStateHash []byte ReplacedGISTHash []byte }
IdentityDefaultTransferContent implements the Content interface provided by go-merkle and represents the content stored in the tree.
func (IdentityDefaultTransferContent) CalculateHash ¶
func (c IdentityDefaultTransferContent) CalculateHash() []byte
type IdentityGISTTransferContent ¶ added in v1.1.0
type IdentityGISTTransferContent struct { Contract []byte GISTHash []byte GISTCreatedAtTimestamp []byte GISTCreatedAtBlock []byte ReplacedGISTHash []byte }
IdentityGISTTransferContent implements the Content interface provided by go-merkle and represents the content stored in the tree.
func (IdentityGISTTransferContent) CalculateHash ¶ added in v1.1.0
func (c IdentityGISTTransferContent) CalculateHash() []byte
type IdentityStateTransferContent ¶ added in v1.1.0
type IdentityStateTransferContent struct { Contract []byte Id []byte StateHash []byte StateCreatedAtTimestamp []byte StateCreatedAtBlock []byte ReplacedStateHash []byte }
IdentityStateTransferContent implements the Content interface provided by go-merkle and represents the content stored in the tree.
func (IdentityStateTransferContent) CalculateHash ¶ added in v1.1.0
func (c IdentityStateTransferContent) CalculateHash() []byte
type OriginData ¶
type OriginData [32]byte
OriginData contains specific information about network to be transferred from
func NewEmptyOrigin ¶
func NewEmptyOrigin() OriginData
type TransferContent ¶
type TransferContent struct { // Hash of the deposit tx info Origin OriginData TargetNetwork string // Receiver address on target network Receiver []byte // Target bridge contract TargetContract []byte // Can contain any specific data for target chain to validate. Data ContentData // Bundle calls data Bundle BundleData }
TransferContent implements the Content interface provided by go-merkle and represents the content stored in the tree.
func (TransferContent) CalculateHash ¶
func (c TransferContent) CalculateHash() []byte
type WorldCoinIdentityTransferContent ¶ added in v1.1.0
type WorldCoinIdentityTransferContent struct { Contract []byte // Previous (replaced) identity state PrevState []byte // Worldcoin identity state State []byte // Worldcoin timestamp Timestamp []byte }
WorldCoinIdentityTransferContent implements the Content interface provided by go-merkle and represents the content stored in the tree.
func (WorldCoinIdentityTransferContent) CalculateHash ¶ added in v1.1.0
func (c WorldCoinIdentityTransferContent) CalculateHash() []byte