Documentation
¶
Index ¶
- func AllowOutboxCalls(ctx context.Context, network netconf.ID, backends ethbackend.Backends) error
- func DepositedBalance(ctx context.Context, network netconf.ID, backends ethbackend.Backends, ...) (*big.Int, error)
- func MaybeDeploy(ctx context.Context, network netconf.ID, backends ethbackend.Backends) error
- func RequestStatus(ctx context.Context, network netconf.ID, backends ethbackend.Backends, ...) (uint8, error)
- func TestFlow(ctx context.Context, network netconf.Network, endpoints xchain.RPCEndpoints) error
- type App
- func (a App) Address() common.Address
- func (a App) ChainID() uint64
- func (a App) LogCall(ctx context.Context, call bindings.SolveCall) error
- func (a App) LogMetadata(ctx context.Context)
- func (App) Name() string
- func (a App) TokenPrereqs(call bindings.SolveCall) ([]bindings.SolveTokenPrereq, error)
- func (a App) Verify(srcChainID uint64, call bindings.SolveCall, deposits []bindings.SolveDeposit) error
- type CallOption
- type DepositArgs
- type DepositReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowOutboxCalls ¶ added in v0.12.0
AllowOutboxCalls allows the outbox to call the L1 vault deposit method.
func DepositedBalance ¶ added in v0.12.0
func DepositedBalance(ctx context.Context, network netconf.ID, backends ethbackend.Backends, onBehalfOf common.Address) (*big.Int, error)
DepositedBalance returns the balance of onBehalfOf in the vault.
func MaybeDeploy ¶ added in v0.12.0
MaybeDeploy deploys the mock tokens / vaults, and mints solver with mock tokens, if needed.
Types ¶
type App ¶
type App struct {
L1Vault common.Address
L1Token common.Address
L2Token common.Address
L1 evmchain.Metadata
L2 evmchain.Metadata
}
func MustGetApp ¶ added in v0.12.0
func (App) LogMetadata ¶ added in v0.12.0
func (App) TokenPrereqs ¶
type CallOption ¶ added in v0.12.0
func WithInvalidCall ¶ added in v0.12.0
func WithInvalidCall() CallOption
WithInvalidCall returns an option that sets the call target to an invalid address.
type DepositReq ¶
type DepositReq struct {
ID stypes.ReqID // id in inbox
Token common.Address // token address
Deposit DepositArgs // deposit args
}
func RequestDeposit ¶ added in v0.12.0
func RequestDeposit(ctx context.Context, network netconf.ID, backends ethbackend.Backends, inbox common.Address, deposit DepositArgs, opts ...CallOption) (DepositReq, error)
Click to show internal directories.
Click to hide internal directories.