Documentation ¶
Index ¶
- func AddJob(spec string, run RunFunc) *cron.Cron
- func DecOuts(outs []txtool.Out, skr *c_type.PKr) (douts []txtool.DOut)
- func SetUtxoForVersion0(b *Utxo, v0 *Utxo_Version0)
- func SetUtxoForVersion1(b *Utxo, v1 *Utxo_Version1)
- func SetVersion0ForUtxo(v0 *Utxo_Version0, b *Utxo)
- func SetVersion1ForUtxo(v1 *Utxo_Version1, b *Utxo)
- type Account
- type BlockInfo
- type Exchange
- func (self *Exchange) ClearTxParam(txParam *txtool.GTxParam) (count int)
- func (self *Exchange) ClearUsedFlagForPK(pk *c_type.Uint512) (count int)
- func (self *Exchange) ClearUsedFlagForRoot(root c_type.Uint256) (count int)
- func (self *Exchange) DefaultRefundTo(pk *c_type.Uint512) (ret *c_type.PKr)
- func (self *Exchange) FindPkgById(id *c_type.Uint256) (pkg *Pkg)
- func (self *Exchange) FindPkgs(pk *c_type.Uint512, from bool) (pkgs []Pkg)
- func (self *Exchange) FindRoots(pk *c_type.Uint512, currency string, amount *big.Int) (roots prepare.Utxos, remain big.Int)
- func (self *Exchange) FindRootsByTicket(pk *c_type.Uint512, tickets []assets.Ticket) (roots prepare.Utxos, remain map[c_type.Uint256]c_type.Uint256)
- func (self *Exchange) GenMergeTx(mp *MergeParam) (txParam *txtool.GTxParam, e error)
- func (self *Exchange) GenTx(param prepare.PreTxParam) (txParam *txtool.GTxParam, e error)
- func (self *Exchange) GenTxWithSign(param prepare.PreTxParam) (pretx *txtool.GTxParam, tx *txtool.GTx, e error)
- func (self *Exchange) GetBalances(pk c_type.Uint512) (balances map[string]*big.Int, tickets map[string][]*common.Hash)
- func (self *Exchange) GetBlocksInfo(start, end uint64) (blocks []BlockInfo, err error)
- func (self *Exchange) GetCurrencyNumber(pk c_type.Uint512) uint64
- func (self *Exchange) GetLockedBalances(pk c_type.Uint512) (balances map[string]*big.Int)
- func (self *Exchange) GetMaxAvailable(pk c_type.Uint512, currency string) (amount *big.Int)
- func (self *Exchange) GetPkr(pk *c_type.Uint512, index *c_type.Uint256) (pkr c_type.PKr, err error)
- func (self *Exchange) GetPkrEx(pk *c_type.Uint512, index *c_type.Uint256) (pkr c_type.PKrEx, err error)
- func (self *Exchange) GetRecordsByPk(pk *c_type.Uint512, begin, end uint64) (records []Utxo, err error)
- func (self *Exchange) GetRecordsByPkr(pkr c_type.PKr, begin, end uint64) (records []Utxo, err error)
- func (self *Exchange) GetRecordsByTxHash(txHash c_type.Uint256) (records []Utxo, err error)
- func (self *Exchange) GetRoot(root *c_type.Uint256) (utxos *prepare.Utxo)
- func (self *Exchange) GetRootByNil(Nil c_type.Uint256) (root *c_type.Uint256)
- func (self *Exchange) GetUtxoNum(pk c_type.Uint512) map[string]uint64
- func (self *Exchange) IgnorePkrUtxos(pkr c_type.PKr, ignore bool) (utxos []Utxo, e error)
- func (self *Exchange) Merge(pk *c_type.Uint512, currency string, force bool) (count int, txhash c_type.Uint256, e error)
- func (self *Exchange) SetBalancePkr(pk *c_type.Uint512, pkr c_type.PKr) error
- type FetchJob
- type HandleUtxoFunc
- type MergeParam
- type MergeUtxos
- type PkKey
- type Pkg
- type PkrAccount
- type PkrKey
- type RunFunc
- type RunJob
- type Utxo
- type UtxoList
- type Utxo_Version0
- type Utxo_Version1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetUtxoForVersion0 ¶
func SetUtxoForVersion0(b *Utxo, v0 *Utxo_Version0)
func SetUtxoForVersion1 ¶
func SetUtxoForVersion1(b *Utxo, v1 *Utxo_Version1)
func SetVersion0ForUtxo ¶
func SetVersion0ForUtxo(v0 *Utxo_Version0, b *Utxo)
func SetVersion1ForUtxo ¶
func SetVersion1ForUtxo(v1 *Utxo_Version1, b *Utxo)
Types ¶
type Exchange ¶
type Exchange struct {
// contains filtered or unexported fields
}
func CurrentExchange ¶
func CurrentExchange() *Exchange
func NewExchange ¶
func (*Exchange) ClearTxParam ¶
func (*Exchange) ClearUsedFlagForPK ¶
func (*Exchange) ClearUsedFlagForRoot ¶
func (*Exchange) DefaultRefundTo ¶
func (*Exchange) FindRootsByTicket ¶
func (*Exchange) GenMergeTx ¶
func (self *Exchange) GenMergeTx(mp *MergeParam) (txParam *txtool.GTxParam, e error)
func (*Exchange) GenTxWithSign ¶
func (*Exchange) GetBalances ¶
func (*Exchange) GetBlocksInfo ¶
func (*Exchange) GetCurrencyNumber ¶
func (*Exchange) GetLockedBalances ¶
func (*Exchange) GetMaxAvailable ¶
func (*Exchange) GetRecordsByPk ¶
func (*Exchange) GetRecordsByPkr ¶
func (*Exchange) GetRecordsByTxHash ¶
func (*Exchange) GetRootByNil ¶
func (*Exchange) IgnorePkrUtxos ¶
type HandleUtxoFunc ¶
type HandleUtxoFunc func(utxo Utxo)
type MergeParam ¶
type MergeUtxos ¶
type MergeUtxos struct {
// contains filtered or unexported fields
}
type PkrAccount ¶
type Utxo ¶
type Utxo_Version0 ¶
type Utxo_Version1 ¶
type Utxo_Version1 struct {
Ignore bool
}
Click to show internal directories.
Click to hide internal directories.