Documentation
¶
Index ¶
- type Ethereum
- func (e *Ethereum) Deposit(ctx context.Context, key *ecdsa.PrivateKey, value *big.Int) (*types.Transaction, error)
- func (e *Ethereum) DepositERC20(ctx context.Context, key *ecdsa.PrivateKey, tokenAddress common.Address, ...) (*types.Transaction, error)
- func (e *Ethereum) Exit(ctx context.Context, key *ecdsa.PrivateKey) (*types.Transaction, error)
- func (e *Ethereum) GetBalance(ctx context.Context, address common.Address) (*big.Int, error)
- func (e *Ethereum) GetLastBlockNumber() (*big.Int, error)
- func (e *Ethereum) PushHashBlock(ctx context.Context, key *ecdsa.PrivateKey, blockNumber uint32, hash []byte) (*types.Transaction, error)
- func (e *Ethereum) SendTransactionInWei(ctx context.Context, key *ecdsa.PrivateKey, value *big.Int, to common.Address) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ethereum ¶
type Ethereum struct {
// contains filtered or unexported fields
}
func NewEthereum ¶
func (*Ethereum) Deposit ¶
func (e *Ethereum) Deposit(ctx context.Context, key *ecdsa.PrivateKey, value *big.Int) (*types.Transaction, error)
func (*Ethereum) DepositERC20 ¶
func (*Ethereum) Exit ¶
func (e *Ethereum) Exit(ctx context.Context, key *ecdsa.PrivateKey) (*types.Transaction, error)
func (*Ethereum) GetBalance ¶
func (*Ethereum) PushHashBlock ¶
func (e *Ethereum) PushHashBlock(ctx context.Context, key *ecdsa.PrivateKey, blockNumber uint32, hash []byte) (*types.Transaction, error)
func (*Ethereum) SendTransactionInWei ¶
Click to show internal directories.
Click to hide internal directories.