devapp

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDeposits

func CheckDeposits(ctx context.Context, backends ethbackend.Backends, reqs []DepositReq) error

func Deploy

func Deploy(ctx context.Context, network netconf.Network, backends ethbackend.Backends) error

Deploy deploys the mock tokens and vaults to devnet.

Types

type App

type App struct {
	L1Vault common.Address
	L1Token common.Address
	L2Token common.Address
	L1      evmchain.Metadata
	L2      evmchain.Metadata
}

func GetApp

func GetApp() App

func (App) Address

func (t App) Address() common.Address

func (App) ChainID

func (App) ChainID() uint64

func (App) IsAllowedCall

func (t App) IsAllowedCall(call bindings.SolveCall) bool

func (App) TokenPrereqs

func (t App) TokenPrereqs(call bindings.SolveCall) ([]bindings.SolveTokenPrereq, error)

func (App) Verify

func (t App) Verify(srcChainID uint64, call bindings.SolveCall, deposits []bindings.SolveDeposit) error

type DepositArgs

type DepositArgs struct {
	OnBehalfOf common.Address
	Amount     *big.Int
}

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)

Jump to

Keyboard shortcuts

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