ethbridge

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 22 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployChallengeFactory added in v0.7.0

func DeployChallengeFactory(auth *bind.TransactOpts, client ethutils.EthClient) (ethcommon.Address, error)

func DeployRollupFactory added in v0.7.0

func DeployRollupFactory(auth *bind.TransactOpts, client ethutils.EthClient) (ethcommon.Address, error)

func GetReceiptBlockID added in v0.6.0

func GetReceiptBlockID(receipt *types.Receipt) *common.BlockId

func WaitForReceiptWithResults

func WaitForReceiptWithResults(ctx context.Context, client ethutils.EthClient, from ethcommon.Address, tx *types.Transaction, methodName string) (*types.Receipt, error)

func WaitForReceiptWithResultsSimple added in v0.7.0

func WaitForReceiptWithResultsSimple(ctx context.Context, client ethutils.ReceiptFetcher, txHash ethcommon.Hash) (*types.Receipt, error)

Types

type ArbAddresses

type ArbAddresses struct {
	ArbFactory string `json:"ArbFactory"`
}

func (ArbAddresses) ArbFactoryAddress

func (a ArbAddresses) ArbFactoryAddress() common.Address

type EthArbAuthClient

type EthArbAuthClient struct {
	*EthArbClient
	// contains filtered or unexported fields
}

func NewEthAuthClient

func NewEthAuthClient(client ethutils.EthClient, auth *bind.TransactOpts) *EthArbAuthClient

func (*EthArbAuthClient) Address

func (c *EthArbAuthClient) Address() common.Address

func (*EthArbAuthClient) NewArbFactory

func (c *EthArbAuthClient) NewArbFactory(address common.Address) (arbbridge.ArbFactory, error)

func (*EthArbAuthClient) NewChallengeFactory

func (c *EthArbAuthClient) NewChallengeFactory(address common.Address) (arbbridge.ChallengeFactory, error)

func (*EthArbAuthClient) NewExecutionChallenge

func (c *EthArbAuthClient) NewExecutionChallenge(address common.Address) (arbbridge.ExecutionChallenge, error)

func (*EthArbAuthClient) NewGlobalInbox

func (c *EthArbAuthClient) NewGlobalInbox(address common.Address, rollupAddress common.Address) (arbbridge.GlobalInbox, error)

func (*EthArbAuthClient) NewIERC20 added in v0.7.0

func (c *EthArbAuthClient) NewIERC20(address common.Address) (arbbridge.IERC20, error)

func (*EthArbAuthClient) NewInboxTopChallenge

func (c *EthArbAuthClient) NewInboxTopChallenge(address common.Address) (arbbridge.InboxTopChallenge, error)

func (*EthArbAuthClient) NewRollup

func (c *EthArbAuthClient) NewRollup(address common.Address) (arbbridge.ArbRollup, error)

type EthArbClient

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

func NewEthClient

func NewEthClient(client ethutils.EthClient) *EthArbClient

func (*EthArbClient) BlockIdForHeight

func (c *EthArbClient) BlockIdForHeight(ctx context.Context, height *common.TimeBlocks) (*common.BlockId, error)

func (*EthArbClient) GetBalance

func (c *EthArbClient) GetBalance(ctx context.Context, account common.Address) (*big.Int, error)

func (*EthArbClient) NewArbFactoryWatcher

func (c *EthArbClient) NewArbFactoryWatcher(address common.Address) (arbbridge.ArbFactoryWatcher, error)

func (*EthArbClient) NewExecutionChallengeWatcher

func (c *EthArbClient) NewExecutionChallengeWatcher(address common.Address) (arbbridge.ExecutionChallengeWatcher, error)

func (*EthArbClient) NewGlobalInboxWatcher added in v0.6.5

func (c *EthArbClient) NewGlobalInboxWatcher(address common.Address, rollupAddress common.Address) (arbbridge.GlobalInboxWatcher, error)

func (*EthArbClient) NewIERC20Watcher added in v0.7.0

func (c *EthArbClient) NewIERC20Watcher(address common.Address) (arbbridge.IERC20Watcher, error)

func (*EthArbClient) NewInboxTopChallengeWatcher

func (c *EthArbClient) NewInboxTopChallengeWatcher(address common.Address) (arbbridge.InboxTopChallengeWatcher, error)

func (*EthArbClient) NewRollupWatcher

func (c *EthArbClient) NewRollupWatcher(address common.Address) (arbbridge.ArbRollupWatcher, error)

func (*EthArbClient) SubscribeBlockHeaders

func (c *EthArbClient) SubscribeBlockHeaders(ctx context.Context, startBlockId *common.BlockId) (<-chan arbbridge.MaybeBlockId, error)

func (*EthArbClient) SubscribeBlockHeadersAfter added in v0.7.0

func (c *EthArbClient) SubscribeBlockHeadersAfter(ctx context.Context, prevBlockId *common.BlockId) (<-chan arbbridge.MaybeBlockId, error)

func (*EthArbClient) TimestampForBlockHash added in v0.7.0

func (c *EthArbClient) TimestampForBlockHash(ctx context.Context, hash common.Hash) (*big.Int, error)

type IERC20 added in v0.7.0

type IERC20 struct {
	*IERC20Watcher
	// contains filtered or unexported fields
}

func (*IERC20) Approve added in v0.7.0

func (con *IERC20) Approve(ctx context.Context, spender common.Address, amount *big.Int) error

type IERC20Watcher added in v0.7.0

type IERC20Watcher struct {
	IERC20 *ethbridgecontracts.IERC20
	// contains filtered or unexported fields
}

func (*IERC20Watcher) Allowance added in v0.7.0

func (con *IERC20Watcher) Allowance(ctx context.Context, owner, spender common.Address) (*big.Int, error)

func (*IERC20Watcher) BalanceOf added in v0.7.0

func (con *IERC20Watcher) BalanceOf(ctx context.Context, account common.Address) (*big.Int, error)

type MerkleTree

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

func NewMerkleTree

func NewMerkleTree(elements []common.Hash) *MerkleTree

func (*MerkleTree) GetNode

func (m *MerkleTree) GetNode(index int) common.Hash

func (*MerkleTree) GetProof

func (m *MerkleTree) GetProof(index int) []common.Hash

func (*MerkleTree) GetProofFlat

func (m *MerkleTree) GetProofFlat(index int) []byte

func (*MerkleTree) GetRoot

func (m *MerkleTree) GetRoot() common.Hash

type TransactAuth

type TransactAuth struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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