Documentation ¶
Index ¶
- type ETH
- type ETHClient
- type Exchange
- func (e *Exchange) Deposit(amount *big.Int, publicKey string, positionId *big.Int, ...) (*types.Transaction, error)
- func (e *Exchange) DepositAsMessage(amount *big.Int, publicKey string, positionId *big.Int) (to common.Address, payload []byte, err error)
- func (e *Exchange) GetWithdrawalBalance(publicKey string) (*big.Int, error)
- func (e *Exchange) New(c ETHClient) *Exchange
- func (e *Exchange) RegisterUser(signature []byte, publicKey string, transact *bind.TransactOpts) (*types.Transaction, error)
- func (e *Exchange) RegisterUserAsMessage(signature []byte, publicKey string) (to common.Address, payload []byte, err error)
- func (e *Exchange) Withdraw(publicKey string, transact *bind.TransactOpts) (*types.Transaction, error)
- func (e *Exchange) WithdrawAsMessage(publicKey string) (to common.Address, payload []byte, err error)
- type Token
- func (t *Token) GetAddress() string
- func (t *Token) GetAllowance() (*big.Int, error)
- func (t *Token) GetContract() *abi.Erc20
- func (t *Token) New(e ETHClient) *Token
- func (t *Token) SetAllowance(amount *big.Int, transact *bind.TransactOpts) (*types.Transaction, error)
- func (t *Token) SetAllowanceAsMessage(amount *big.Int) (to common.Address, payload []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exchange ¶
type Exchange struct { ETHClient // contains filtered or unexported fields }
func (*Exchange) DepositAsMessage ¶ added in v0.3.2
func (*Exchange) GetWithdrawalBalance ¶
func (*Exchange) RegisterUser ¶
func (e *Exchange) RegisterUser(signature []byte, publicKey string, transact *bind.TransactOpts) (*types.Transaction, error)
func (*Exchange) RegisterUserAsMessage ¶ added in v0.3.2
func (*Exchange) Withdraw ¶
func (e *Exchange) Withdraw(publicKey string, transact *bind.TransactOpts) (*types.Transaction, error)
type Token ¶
type Token struct { ETHClient // contains filtered or unexported fields }
func (*Token) GetAddress ¶ added in v0.3.3
func (*Token) GetContract ¶ added in v0.1.7
func (*Token) SetAllowance ¶
func (t *Token) SetAllowance(amount *big.Int, transact *bind.TransactOpts) (*types.Transaction, error)
Click to show internal directories.
Click to hide internal directories.