Documentation
¶
Index ¶
- type ActivityStorage
- type Blockchain
- type ReserveCore
- func (self ReserveCore) CancelOrder(id common.ActivityID, exchange common.Exchange) error
- func (self ReserveCore) Deposit(exchange common.Exchange, token common.Token, amount *big.Int, ...) (common.ActivityID, error)
- func (self ReserveCore) SetRates(sources []common.Token, dests []common.Token, rates []*big.Int, ...) (common.ActivityID, error)
- func (self ReserveCore) Trade(exchange common.Exchange, tradeType string, base common.Token, ...) (common.ActivityID, float64, float64, bool, error)
- func (self ReserveCore) Withdraw(exchange common.Exchange, token common.Token, amount *big.Int, ...) (common.ActivityID, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityStorage ¶
type Blockchain ¶
type ReserveCore ¶
type ReserveCore struct {
// contains filtered or unexported fields
}
func NewReserveCore ¶
func NewReserveCore( blockchain Blockchain, storage ActivityStorage, rm ethereum.Address) *ReserveCore
func (ReserveCore) CancelOrder ¶
func (self ReserveCore) CancelOrder(id common.ActivityID, exchange common.Exchange) error
Click to show internal directories.
Click to hide internal directories.