ethereum

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ETH

type ETH struct {
	Exchange *Exchange
	Token    *Token
}

func (*ETH) New

func (e *ETH) New(user base.BaseUser, signer bind.SignerFn, client *ethclient.Client) *ETH

type ETHClient

type ETHClient struct {
	base.BaseUser
	// contains filtered or unexported fields
}

type Exchange

type Exchange struct {
	ETHClient
	// contains filtered or unexported fields
}

func (*Exchange) Deposit

func (e *Exchange) Deposit(amount *big.Int, positionId *big.Int, transact *bind.TransactOpts) (*types.Transaction, error)

func (*Exchange) GetWithdrawalBalance

func (e *Exchange) GetWithdrawalBalance() (*big.Int, error)

func (*Exchange) New

func (e *Exchange) New(c ETHClient) *Exchange

func (*Exchange) RegisterUser

func (e *Exchange) RegisterUser(signature []byte, transact *bind.TransactOpts) (*types.Transaction, error)

func (*Exchange) Withdraw

func (e *Exchange) Withdraw(transact *bind.TransactOpts) (*types.Transaction, error)

type Token

type Token struct {
	ETHClient
	// contains filtered or unexported fields
}

func (*Token) GetAllowance

func (t *Token) GetAllowance() (*big.Int, error)

func (*Token) New

func (t *Token) New(e ETHClient) *Token

func (*Token) SetAllowance

func (t *Token) SetAllowance(amount *big.Int, transact *bind.TransactOpts)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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