bridge

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventDeposited = "Deposited"
	EventWithdrawn = "Withdrawn"
	EventBurned    = "Burned"
)

Variables

View Source
var (
	BridgeDepositedEvent   = abis.BridgeABI.Events[EventDeposited]
	BridgeDepositedEventID = types.Hash(BridgeDepositedEvent.ID())
	BridgeWithdrawnEvent   = abis.BridgeABI.Events[EventWithdrawn]
	BridgeWithdrawnEventID = types.Hash(BridgeWithdrawnEvent.ID())
	BridgeEventBurnedEvent = abis.BridgeABI.Events[EventBurned]
	BridgeBurnedEventID    = types.Hash(BridgeEventBurnedEvent.ID())
)

Frequently used methods. Must exist.

Functions

This section is empty.

Types

type BurnedLog

type BurnedLog struct {
	Sender types.Address
	Amount *big.Int
}

func ParseBridgeBurnedLog

func ParseBridgeBurnedLog(log *types.Log) (*BurnedLog, error)

type DepositedLog

type DepositedLog struct {
	Receiver types.Address
	Amount   *big.Int
	Fee      *big.Int
}

func ParseBridgeDepositedLog

func ParseBridgeDepositedLog(log *types.Log) (*DepositedLog, error)

type WithdrawnLog

type WithdrawnLog struct {
	Contract types.Address
	Amount   *big.Int
	Fee      *big.Int
}

func ParseBridgeWithdrawnLog

func ParseBridgeWithdrawnLog(log *types.Log) (*WithdrawnLog, error)

Jump to

Keyboard shortcuts

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