Documentation ¶
Index ¶
- type Conn
- func (conn *Conn) Client() *ethclient.Client
- func (conn *Conn) Network() string
- func (b *Conn) NewAccount(value int64, from *bind.TransactOpts) (common.Address, *bind.TransactOpts, error)
- func (conn *Conn) OrderbookAddress() common.Address
- func (b *Conn) PatchedWaitDeployed(ctx context.Context, tx *types.Transaction) (common.Address, error)
- func (b *Conn) PatchedWaitMined(ctx context.Context, tx *types.Transaction) (*types.Receipt, error)
- func (conn *Conn) RenExAtomicInfoAddress() common.Address
- func (conn *Conn) RenExAtomicSwapperAddress() common.Address
- func (conn *Conn) RenExSettlementAddress() common.Address
- func (b *Conn) Transfer(to common.Address, from *bind.TransactOpts, value int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) NewAccount ¶
func (b *Conn) NewAccount(value int64, from *bind.TransactOpts) (common.Address, *bind.TransactOpts, error)
NewAccount creates a new account and funds it with ether
func (*Conn) OrderbookAddress ¶
func (*Conn) PatchedWaitDeployed ¶
func (b *Conn) PatchedWaitDeployed(ctx context.Context, tx *types.Transaction) (common.Address, error)
PatchedWaitDeployed waits for a contract deployment transaction and returns the on-chain contract address when it is mined. It stops waiting when ctx is canceled.
TODO: THIS DOES NOT WORK WITH PARITY, WHICH SENDS A TRANSACTION RECEIPT UPON RECEIVING A TX, NOT AFTER IT'S MINED
func (*Conn) PatchedWaitMined ¶
PatchedWaitMined waits for tx to be mined on the blockchain. It stops waiting when the context is canceled.
TODO: THIS DOES NOT WORK WITH PARITY, WHICH SENDS A TRANSACTION RECEIPT UPON RECEIVING A TX, NOT AFTER IT'S MINED
func (*Conn) RenExAtomicInfoAddress ¶
func (*Conn) RenExAtomicSwapperAddress ¶
func (*Conn) RenExSettlementAddress ¶
Click to show internal directories.
Click to hide internal directories.