msg

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MainchainDeposit uint8 = 0

MsgType

View Source
const MainchainWithdraw uint8 = 2
View Source
const SidechainWithdraw uint8 = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainId

type ChainId uint8

type Message

type Message struct {
	ChainType    uint8
	MsgType      uint8
	DepositId    *big.Int
	WithdrawId   *big.Int
	Owner        common.Address
	TokenAddress common.Address
	Standard     uint32
	TokenNumber  *big.Int
}

Message is used as a generic format to communicate between chains

func NewFungibleTokenDeposit added in v1.1.3

func NewFungibleTokenDeposit(chainType uint8, msgType uint8, depositId *big.Int, owner common.Address, tokenAddress common.Address, standard uint32, tokenNumber *big.Int) Message

func NewFungibleTokenWithdraw added in v1.1.3

func NewFungibleTokenWithdraw(chainType uint8, msgType uint8, withdrawId *big.Int, owner common.Address, tokenAddress common.Address, standard uint32, tokenNumber *big.Int) Message

type Nonce

type Nonce uint64

func (Nonce) Big

func (n Nonce) Big() *big.Int

type ResourceId

type ResourceId [32]byte

func (ResourceId) Hex

func (r ResourceId) Hex() string

type TransferType

type TransferType string
var FungibleTransfer TransferType = "FungibleTransfer"
var NonFungibleTransfer TransferType = "NonFungibleTransfer"

Jump to

Keyboard shortcuts

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