Documentation
¶
Index ¶
- func CheckDeposits(ctx context.Context, backends ethbackend.Backends, reqs []DepositReq) error
- func Deploy(ctx context.Context, network netconf.Network, backends ethbackend.Backends) error
- type App
- func (t App) Address() common.Address
- func (App) ChainID() uint64
- func (t App) IsAllowedCall(call bindings.SolveCall) bool
- func (t App) TokenPrereqs(call bindings.SolveCall) ([]bindings.SolveTokenPrereq, error)
- func (t App) Verify(srcChainID uint64, call bindings.SolveCall, deposits []bindings.SolveDeposit) error
- type DepositArgs
- type DepositReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDeposits ¶
func CheckDeposits(ctx context.Context, backends ethbackend.Backends, reqs []DepositReq) error
Types ¶
type App ¶
type App struct {
L1Vault common.Address
L1Token common.Address
L2Token common.Address
L1 evmchain.Metadata
L2 evmchain.Metadata
}
func (App) TokenPrereqs ¶
type DepositReq ¶
type DepositReq struct {
ID [32]byte // id in inbox
Token common.Address // token address
Deposit DepositArgs // deposit args
}
func RequestDeposits ¶
func RequestDeposits(ctx context.Context, endpoints xchain.RPCEndpoints, backends ethbackend.Backends) ([]DepositReq, error)
Click to show internal directories.
Click to hide internal directories.