Documentation ¶
Index ¶
Constants ¶
View Source
const ( ClaimTypeUnknown = ClaimType(0) ClaimTypeBurn = ClaimType(1) ClaimTypeLock = ClaimType(2) ClaimTypeWithdraw = ClaimType(3) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BurnEvent ¶
type BurnEvent struct { Token common.Address Symbol string Amount *big.Int OwnerFrom common.Address Chain33Receiver []byte Nonce *big.Int }
BurnEvent : struct which represents a BurnEvent event
type BurnEventOnChain33 ¶
type BurnEventOnChain33 struct { Token chain33EvmCommon.Hash160Address Symbol string Amount *big.Int OwnerFrom chain33EvmCommon.Hash160Address EthereumReceiver []byte Nonce *big.Int }
发生在chain33evm上的burn事件,当eth/erc20资产需要提币回到以太坊链上时,会发生该种事件
func UnpackChain33LogBurn ¶
type Chain33EvmEvent ¶
type Chain33EvmEvent int
const ( UnsupportedEvent Chain33EvmEvent = iota //在chain33的evm合约中产生了lock事件 Chain33EventLogLock //在chain33的evm合约中产生了burn事件 Chain33EventLogBurn //在chain33的evm合约中产生了withdraw事件 Chain33EventLogWithdraw )
func (Chain33EvmEvent) String ¶
func (d Chain33EvmEvent) String() string
String : returns the event type as a string
type Chain33Msg ¶
type Chain33Msg struct { ClaimType ClaimType Chain33Sender chain33EvmCommon.Address EthereumReceiver common.Address TokenContractAddress chain33EvmCommon.Address Symbol string Amount *big.Int TxHash []byte Nonce int64 }
Chain33Msg : contains data from MsgBurn and MsgLock events
func ParseBurnLock4chain33 ¶
func ParseBurnLock4chain33(evmEventType Chain33EvmEvent, data []byte, bridgeBankAbi abi.ABI, chain33TxHash []byte) (*Chain33Msg, error)
ParseBurnLock4chain33 ParseBurnLockTxReceipt : parses data from a Burn/Lock/Withdraw event witnessed on chain33 into a Chain33Msg struct
type LockEvent ¶
type LockEvent struct { From common.Address To []byte Token common.Address Symbol string Value *big.Int Nonce *big.Int }
LockEvent : struct which represents a LogLock event
type LockEventOnChain33 ¶
type LockEventOnChain33 struct { From chain33EvmCommon.Hash160Address To []byte Token chain33EvmCommon.Hash160Address Symbol string Value *big.Int Nonce *big.Int }
发生在chain33evm上的lock事件,当bty跨链转移到eth时会发生该种事件
func UnpackChain33LogLock ¶
type LogNewBridgeToken ¶
LogNewBridgeToken ...
type NewProphecyClaimEvent ¶
type NewProphecyClaimEvent struct { ProphecyID *big.Int ClaimType uint8 Chain33Sender []byte EthereumReceiver common.Address ValidatorAddress common.Address TokenAddress common.Address Symbol string Amount *big.Int }
NewProphecyClaimEvent : struct which represents a LogNewProphecyClaim event
type WithdrawEventOnChain33 ¶
type WithdrawEventOnChain33 struct { BridgeToken chain33EvmCommon.Hash160Address Symbol string Amount *big.Int OwnerFrom chain33EvmCommon.Hash160Address EthereumReceiver []byte ProxyReceiver chain33EvmCommon.Hash160Address Nonce *big.Int }
发生在chain33 evm上的withdraw事件,当用户发起通过代理人提币交易时,则弹射出该事件信息
func UnpackLogWithdraw ¶
Click to show internal directories.
Click to hide internal directories.