Documentation ¶
Index ¶
Constants ¶
View Source
const ( ClaimTypeBurn = uint8(1) ClaimTypeLock = uint8(2) )
const
Variables ¶
View Source
var EventRecords = make(map[string]LockEvent)
EventRecords : map of transaction hashes to LockEvent structs
Functions ¶
func NewEventWrite ¶
NewEventWrite : add a validator's address to the official claims list
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 Chain33Msg ¶
type Chain33Msg struct { ClaimType Event Chain33Sender []byte EthereumReceiver common.Address TokenContractAddress common.Address Symbol string Amount *big.Int }
Chain33Msg : contains data from MsgBurn and MsgLock events
type Chain33MsgAttributeKey ¶
type Chain33MsgAttributeKey int
Chain33MsgAttributeKey : enum containing supported attribute keys
const ( // UnsupportedAttributeKey : unsupported attribute key UnsupportedAttributeKey Chain33MsgAttributeKey = iota // Chain33Sender : sender's address on Chain33 network Chain33Sender // EthereumReceiver : receiver's address on Ethereum network EthereumReceiver // Coin : coin type Coin // TokenContractAddress : coin's corresponding contract address deployed on the Ethereum network TokenContractAddress )
func (Chain33MsgAttributeKey) String ¶
func (d Chain33MsgAttributeKey) String() string
String : returns the event type as a string
type Event ¶
type Event int
Event : enum containing supported contract events
const ( // Unsupported : unsupported Chain33 or Ethereum event Unsupported Event = iota // MsgBurn : Chain33 event 'Chain33Msg' type MsgBurn MsgBurn // MsgLock : Chain33 event 'Chain33Msg' type MsgLock MsgLock // LogLock : Ethereum event 'LockEvent' LogLock // LogChain33TokenBurn : Ethereum event 'LogChain33TokenBurn' in contract chain33Bank LogChain33TokenBurn // LogNewProphecyClaim : Ethereum event 'NewProphecyClaimEvent' LogNewProphecyClaim )
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 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
Click to show internal directories.
Click to hide internal directories.