bridge

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-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 added in v1.1.2

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

func ParseBridgeBurnedLog added in v1.1.2

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