bridge

package
v0.0.0-...-24e5678 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BridgeContract

type BridgeContract struct {
	// contains filtered or unexported fields
}

func (*BridgeContract) Address

func (cont *BridgeContract) Address() common.Address

func (*BridgeContract) Front

func (cont *BridgeContract) Front() interface{}

func (*BridgeContract) Init

func (cont *BridgeContract) Init(addr common.Address, master common.Address)

func (*BridgeContract) Master

func (cont *BridgeContract) Master() common.Address

func (*BridgeContract) Name

func (cont *BridgeContract) Name() string

func (*BridgeContract) OnCreate

func (cont *BridgeContract) OnCreate(cc *types.ContractContext, Args []byte) error

func (*BridgeContract) OnReward

func (cont *BridgeContract) OnReward(cc *types.ContractContext, b *types.Block, CountMap map[common.Address]uint32) (map[common.Address]*amount.Amount, error)

type BridgeContractConstruction

type BridgeContractConstruction struct {
	Bank         common.Address
	FeeOwner     common.Address
	MeverseToken common.Address
}

func (*BridgeContractConstruction) ReadFrom

func (s *BridgeContractConstruction) ReadFrom(r io.Reader) (int64, error)

func (*BridgeContractConstruction) WriteTo

func (s *BridgeContractConstruction) WriteTo(w io.Writer) (int64, error)

type BridgeFront

type BridgeFront interface {
	//////////////////////////////////////////////////
	// Public Reader Functions
	//////////////////////////////////////////////////
	MeverseToken(cc *types.ContractContext) common.Address
	Bank(cc *types.ContractContext) common.Address
	FeeOwner(cc *types.ContractContext) common.Address
	TransferFeeInfoToChain(cc *types.ContractContext, chain string) *amount.Amount
	TokenFeeInfoFromChain(cc *types.ContractContext, chain string) uint16
	GetSequenceFrom(cc *types.ContractContext, user common.Address, chain string) *big.Int
	GetSequenceTo(cc *types.ContractContext, user common.Address, chain string) *big.Int

	AllowanceTokenFromGateway(cc *types.ContractContext, token common.Address, from common.Address) (*amount.Amount, error)
	BalanceOfToGateway(cc *types.ContractContext, token common.Address, from common.Address) (*amount.Amount, error)
	StringToBytes32(source string) []byte
}

type SendMaintokenInfo

type SendMaintokenInfo struct {
	// contains filtered or unexported fields
}

func (*SendMaintokenInfo) ReadFrom

func (s *SendMaintokenInfo) ReadFrom(r io.Reader) (int64, error)

func (*SendMaintokenInfo) WriteTo

func (s *SendMaintokenInfo) WriteTo(w io.Writer) (int64, error)

Jump to

Keyboard shortcuts

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