Documentation ¶
Index ¶
- Variables
- func AddJob(spec string, run RunFunc) *cron.Cron
- func DecOuts(outs []light_types.Out, skr *keys.PKr) (douts []light_types.DOut)
- type Account
- type Exchange
- func (self *Exchange) ClearFlag()
- func (self *Exchange) GenTx(param TxParam) (txParam *light_types.GenTxParam, e error)
- func (self *Exchange) GenTxWithSign(param TxParam) (*light_types.GTx, error)
- func (self *Exchange) GetBalances(pk keys.Uint512) (balances map[string]*big.Int)
- func (self *Exchange) GetCurrencyNumber(pk keys.Uint512) uint64
- func (self *Exchange) GetLockedBalances(pk keys.Uint512) (balances map[string]*big.Int)
- func (self *Exchange) GetMaxAvailable(pk keys.Uint512, currency string) (amount *big.Int)
- func (self *Exchange) GetPkr(pk *keys.Uint512, index *keys.Uint256) (pkr keys.PKr, err error)
- func (self *Exchange) GetRecords(pkr keys.PKr, begin, end uint64) (records []Utxo, err error)
- func (self *Exchange) GetUtxoNum(pk keys.Uint512) map[string]uint64
- func (self *Exchange) Merge(pk *keys.Uint512, currency string) (count int, txhash keys.Uint256, e error)
- type FetchJob
- type HandleUtxoFunc
- type PkKey
- type PkrAccount
- type PkrKey
- type Reception
- type RunFunc
- type RunJob
- type TxParam
- type Utxo
- type UtxoList
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Prefix = []byte("Out")
)
Functions ¶
func DecOuts ¶
func DecOuts(outs []light_types.Out, skr *keys.PKr) (douts []light_types.DOut)
Types ¶
type Exchange ¶
type Exchange struct {
// contains filtered or unexported fields
}
func CurrentExchange ¶
func CurrentExchange() *Exchange
func NewExchange ¶
func (*Exchange) GenTx ¶
func (self *Exchange) GenTx(param TxParam) (txParam *light_types.GenTxParam, e error)
func (*Exchange) GenTxWithSign ¶
func (self *Exchange) GenTxWithSign(param TxParam) (*light_types.GTx, error)
func (*Exchange) GetBalances ¶
func (*Exchange) GetCurrencyNumber ¶
func (*Exchange) GetLockedBalances ¶
func (*Exchange) GetMaxAvailable ¶
func (*Exchange) GetRecords ¶
type HandleUtxoFunc ¶
type HandleUtxoFunc func(utxo Utxo)
type PkrAccount ¶
Click to show internal directories.
Click to hide internal directories.