operation

package
v1.1.4-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AmountBytes

func AmountBytes(amount string) []byte

func IntTo32Bytes

func IntTo32Bytes(amount int) []byte

func To32Bytes

func To32Bytes(arr []byte) []byte

Types

type ArbitraryContent added in v1.1.3

type ArbitraryContent struct {
	Data []byte
}

ArbitraryContent implements the Content interface provided by go-merkle and represents the content stored in the tree.

func (ArbitraryContent) CalculateHash added in v1.1.3

func (c ArbitraryContent) CalculateHash() []byte

func (ArbitraryContent) Equals added in v1.1.3

func (c ArbitraryContent) Equals(other merkle.Content) bool

Equals tests for equality of two Contents

type BundleData

type BundleData []byte

BundleData contains specific information about bundle operation

func NewEmptyBundle

func NewEmptyBundle() BundleData

type CSCARootUpdateContent added in v1.1.1

type CSCARootUpdateContent struct {
	Root      []byte
	Timestamp []byte
}

func (CSCARootUpdateContent) CalculateHash added in v1.1.1

func (c CSCARootUpdateContent) CalculateHash() []byte

func (CSCARootUpdateContent) Equals added in v1.1.1

func (c CSCARootUpdateContent) Equals(other merkle.Content) bool

type ChangePartiesContent

type ChangePartiesContent struct {
	NewSet    []*types.Party
	NewKey    string
	Signature string
}

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

func (ChangePartiesContent) Equals

func (c ChangePartiesContent) Equals(other merkle.Content) bool

Equals tests for equality of two Contents

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

func (ContractUpgradeContent) Equals

func (c ContractUpgradeContent) Equals(other merkle.Content) bool

Equals tests for equality of two Contents

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

func (FeeTokenManagementContent) Equals

func (f FeeTokenManagementContent) Equals(other merkle.Content) bool

Equals tests for equality of two Contents

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

func (IdentityAggregatedTransferContent) Equals

Equals tests for equality of two Contents

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

func (IdentityDefaultTransferContent) Equals

Equals tests for equality of two Contents

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

func (IdentityGISTTransferContent) Equals added in v1.1.0

Equals tests for equality of two Contents

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

func (IdentityStateTransferContent) Equals added in v1.1.0

Equals tests for equality of two Contents

type OriginData

type OriginData [32]byte

OriginData contains specific information about network to be transferred from

func NewEmptyOrigin

func NewEmptyOrigin() OriginData

type PassportRootUpdateContent

type PassportRootUpdateContent struct {
	ContractAddress []byte
	Root            []byte
	RootTimestamp   []byte
}

func (PassportRootUpdateContent) CalculateHash

func (c PassportRootUpdateContent) CalculateHash() []byte

func (PassportRootUpdateContent) Equals

func (c PassportRootUpdateContent) Equals(other merkle.Content) bool

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

func (TransferContent) Equals

func (c TransferContent) Equals(other merkle.Content) bool

Equals tests for equality of two Contents

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

func (WorldCoinIdentityTransferContent) Equals added in v1.1.0

Equals tests for equality of two Contents

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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