Documentation ¶
Index ¶
- Constants
- Variables
- func CalcRewardByDay(db vm_db.VmDb, reader util.ConsensusReader, timestamp int64) (m map[string]*Reward, err error)
- func CalcRewardByDayIndex(db vm_db.VmDb, reader util.ConsensusReader, index uint64) (m map[string]*Reward, err error)
- func CheckMintToken(param abi.ParamMintage) error
- func InitContractsConfig(isTestParam bool)
- func OnNewOrderFailed(order *dex.Order, marketInfo *dex.MarketInfo) ([]*ledger.AccountBlock, error)
- func RewardDrained(reward *Reward, drained bool) bool
- type BuiltinContractMethod
- type ContractsParams
- type MethodAgentCancelPledge
- func (p *MethodAgentCancelPledge) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodAgentCancelPledge) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodAgentCancelPledge) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodAgentCancelPledge) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (p *MethodAgentCancelPledge) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (p *MethodAgentCancelPledge) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodAgentPledge
- func (p *MethodAgentPledge) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodAgentPledge) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodAgentPledge) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodAgentPledge) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (p *MethodAgentPledge) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (p *MethodAgentPledge) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodBurn
- func (p *MethodBurn) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodBurn) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodBurn) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodBurn) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (p *MethodBurn) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (p *MethodBurn) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodCancelPledge
- func (p *MethodCancelPledge) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodCancelPledge) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodCancelPledge) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodCancelPledge) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (p *MethodCancelPledge) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (p *MethodCancelPledge) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodCancelRegister
- func (p *MethodCancelRegister) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodCancelRegister) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodCancelRegister) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodCancelRegister) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (p *MethodCancelRegister) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (p *MethodCancelRegister) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodCancelVote
- func (p *MethodCancelVote) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodCancelVote) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodCancelVote) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodCancelVote) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (p *MethodCancelVote) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (p *MethodCancelVote) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodChangeTokenType
- func (p *MethodChangeTokenType) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodChangeTokenType) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodChangeTokenType) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodChangeTokenType) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (p *MethodChangeTokenType) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (p *MethodChangeTokenType) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundBindInviteCode
- func (md MethodDexFundBindInviteCode) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundBindInviteCode) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundBindInviteCode) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundBindInviteCode) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundBindInviteCode) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundBindInviteCode) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundCancelPledgeCallback
- func (md MethodDexFundCancelPledgeCallback) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundCancelPledgeCallback) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundCancelPledgeCallback) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundCancelPledgeCallback) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundCancelPledgeCallback) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundCancelPledgeCallback) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundConfigMarketsAgent
- func (md MethodDexFundConfigMarketsAgent) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundConfigMarketsAgent) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundConfigMarketsAgent) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundConfigMarketsAgent) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundConfigMarketsAgent) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundConfigMarketsAgent) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundEndorseVxMinePool
- func (md MethodDexFundEndorseVxMinePool) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundEndorseVxMinePool) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundEndorseVxMinePool) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundEndorseVxMinePool) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundEndorseVxMinePool) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundEndorseVxMinePool) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundGetTokenInfoCallback
- func (md MethodDexFundGetTokenInfoCallback) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundGetTokenInfoCallback) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundGetTokenInfoCallback) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundGetTokenInfoCallback) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundGetTokenInfoCallback) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundGetTokenInfoCallback) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundMarketOwnerConfig
- func (md MethodDexFundMarketOwnerConfig) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundMarketOwnerConfig) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundMarketOwnerConfig) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundMarketOwnerConfig) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundMarketOwnerConfig) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundMarketOwnerConfig) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundNewAgentOrder
- func (md MethodDexFundNewAgentOrder) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundNewAgentOrder) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundNewAgentOrder) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundNewAgentOrder) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundNewAgentOrder) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundNewAgentOrder) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundNewInviter
- func (md MethodDexFundNewInviter) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundNewInviter) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundNewInviter) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundNewInviter) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundNewInviter) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundNewInviter) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundNewMarket
- func (md MethodDexFundNewMarket) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundNewMarket) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundNewMarket) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundNewMarket) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundNewMarket) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundNewMarket) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundNewOrder
- func (md *MethodDexFundNewOrder) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundNewOrder) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
- func (md *MethodDexFundNewOrder) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundNewOrder) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundNewOrder) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundNewOrder) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundNotifyTime
- func (md MethodDexFundNotifyTime) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundNotifyTime) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundNotifyTime) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundNotifyTime) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundNotifyTime) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundNotifyTime) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundOwnerConfig
- func (md MethodDexFundOwnerConfig) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundOwnerConfig) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundOwnerConfig) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundOwnerConfig) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundOwnerConfig) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundOwnerConfig) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundOwnerConfigTrade
- func (md MethodDexFundOwnerConfigTrade) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundOwnerConfigTrade) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundOwnerConfigTrade) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundOwnerConfigTrade) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundOwnerConfigTrade) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundOwnerConfigTrade) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundPeriodJob
- func (md MethodDexFundPeriodJob) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundPeriodJob) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundPeriodJob) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundPeriodJob) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundPeriodJob) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundPeriodJob) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundPledgeCallback
- func (md MethodDexFundPledgeCallback) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundPledgeCallback) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundPledgeCallback) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundPledgeCallback) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundPledgeCallback) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundPledgeCallback) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundPledgeForSuperVip
- func (md MethodDexFundPledgeForSuperVip) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundPledgeForSuperVip) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundPledgeForSuperVip) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundPledgeForSuperVip) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundPledgeForSuperVip) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundPledgeForSuperVip) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundPledgeForVip
- func (md MethodDexFundPledgeForVip) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundPledgeForVip) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundPledgeForVip) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundPledgeForVip) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundPledgeForVip) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundPledgeForVip) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundPledgeForVx
- func (md MethodDexFundPledgeForVx) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundPledgeForVx) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundPledgeForVx) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundPledgeForVx) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundPledgeForVx) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundPledgeForVx) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundSettleMakerMinedVx
- func (md MethodDexFundSettleMakerMinedVx) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundSettleMakerMinedVx) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundSettleMakerMinedVx) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundSettleMakerMinedVx) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundSettleMakerMinedVx) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundSettleMakerMinedVx) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundSettleOrders
- func (md MethodDexFundSettleOrders) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundSettleOrders) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundSettleOrders) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundSettleOrders) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundSettleOrders) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundSettleOrders) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundTransferTokenOwner
- func (md MethodDexFundTransferTokenOwner) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundTransferTokenOwner) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundTransferTokenOwner) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundTransferTokenOwner) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundTransferTokenOwner) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundTransferTokenOwner) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundUserDeposit
- func (md *MethodDexFundUserDeposit) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundUserDeposit) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundUserDeposit) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundUserDeposit) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundUserDeposit) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundUserDeposit) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundUserWithdraw
- func (md *MethodDexFundUserWithdraw) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundUserWithdraw) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundUserWithdraw) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundUserWithdraw) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundUserWithdraw) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexFundUserWithdraw) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexTradeCancelOrder
- func (md MethodDexTradeCancelOrder) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexTradeCancelOrder) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
- func (md *MethodDexTradeCancelOrder) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexTradeCancelOrder) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexTradeCancelOrder) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexTradeCancelOrder) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexTradeCancelOrderByHash
- func (md MethodDexTradeCancelOrderByHash) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexTradeCancelOrderByHash) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
- func (md *MethodDexTradeCancelOrderByHash) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexTradeCancelOrderByHash) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexTradeCancelOrderByHash) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexTradeCancelOrderByHash) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexTradeCleanExpireOrders
- func (md MethodDexTradeCleanExpireOrders) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexTradeCleanExpireOrders) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
- func (md *MethodDexTradeCleanExpireOrders) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexTradeCleanExpireOrders) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexTradeCleanExpireOrders) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexTradeCleanExpireOrders) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexTradeNewOrder
- func (md *MethodDexTradeNewOrder) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexTradeNewOrder) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
- func (md *MethodDexTradeNewOrder) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexTradeNewOrder) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexTradeNewOrder) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexTradeNewOrder) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexTradeNotifyNewMarket
- func (md MethodDexTradeNotifyNewMarket) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexTradeNotifyNewMarket) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
- func (md *MethodDexTradeNotifyNewMarket) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexTradeNotifyNewMarket) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexTradeNotifyNewMarket) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (md *MethodDexTradeNotifyNewMarket) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodGetTokenInfo
- func (p *MethodGetTokenInfo) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodGetTokenInfo) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodGetTokenInfo) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodGetTokenInfo) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (p *MethodGetTokenInfo) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (p *MethodGetTokenInfo) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodIssue
- func (p *MethodIssue) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodIssue) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodIssue) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodIssue) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (p *MethodIssue) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (p *MethodIssue) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodMint
- func (p *MethodMint) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodMint) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodMint) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodMint) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (p *MethodMint) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (p *MethodMint) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodPledge
- func (p *MethodPledge) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodPledge) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodPledge) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodPledge) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (p *MethodPledge) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (p *MethodPledge) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodRegister
- func (p *MethodRegister) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodRegister) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodRegister) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodRegister) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (p *MethodRegister) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (p *MethodRegister) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodReward
- func (p *MethodReward) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodReward) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodReward) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodReward) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (p *MethodReward) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (p *MethodReward) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodTransferOwner
- func (p *MethodTransferOwner) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodTransferOwner) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodTransferOwner) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodTransferOwner) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (p *MethodTransferOwner) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (p *MethodTransferOwner) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodUpdateRegistration
- func (p *MethodUpdateRegistration) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodUpdateRegistration) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodUpdateRegistration) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodUpdateRegistration) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (p *MethodUpdateRegistration) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (p *MethodUpdateRegistration) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodVote
- func (p *MethodVote) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodVote) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodVote) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodVote) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (p *MethodVote) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
- func (p *MethodVote) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type NodeConfig
- type Reward
Constants ¶
Variables ¶
View Source
var ( ContractsParamsTest = ContractsParams{ RegisterMinPledgeHeight: 1, PledgeHeight: 1, CreateConsensusGroupPledgeHeight: 1, MintPledgeHeight: 1, ViteXVipPledgeHeight: 1, ViteXSuperVipPledgeHeight: 1, } ContractsParamsMainNet = ContractsParams{ RegisterMinPledgeHeight: 3600 * 24 * 3, PledgeHeight: 3600 * 24 * 3, CreateConsensusGroupPledgeHeight: 3600 * 24 * 3, MintPledgeHeight: 3600 * 24 * 30 * 3, ViteXVipPledgeHeight: 3600 * 24 * 30, ViteXSuperVipPledgeHeight: 3600 * 24 * 30, } )
View Source
var ( Agent = true NoAgent = false NoAgentAddress = types.ZERO_ADDRESS NoBid = uint8(0) )
Functions ¶
func CalcRewardByDay ¶
func CalcRewardByDayIndex ¶
func CheckMintToken ¶ added in v1.3.0
func CheckMintToken(param abi.ParamMintage) error
func OnNewOrderFailed ¶
func OnNewOrderFailed(order *dex.Order, marketInfo *dex.MarketInfo) ([]*ledger.AccountBlock, error)
Types ¶
type BuiltinContractMethod ¶
type BuiltinContractMethod interface { GetFee(block *ledger.AccountBlock) (*big.Int, error) // calc and use quota, check tx data DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error // quota for doSend block GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error) // check status, update state DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error) // receive block quota GetReceiveQuota(gasTable *util.GasTable) uint64 // refund data at receive error GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool) }
type ContractsParams ¶
type ContractsParams struct { RegisterMinPledgeHeight uint64 // Minimum pledge height for register PledgeHeight uint64 // pledge height for stake CreateConsensusGroupPledgeHeight uint64 // Pledge height for registering to be a super node of snapshot group and common delegate group MintPledgeHeight uint64 // Pledge height for mintage if choose to pledge instead of destroy vite token ViteXVipPledgeHeight uint64 // Pledge height for dex_fund contract, in order to upgrade to viteX vip ViteXSuperVipPledgeHeight uint64 // Pledge height for dex_fund contract, in order to upgrade to viteX super vip }
type MethodAgentCancelPledge ¶
type MethodAgentCancelPledge struct{}
func (*MethodAgentCancelPledge) DoReceive ¶
func (p *MethodAgentCancelPledge) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodAgentCancelPledge) DoSend ¶
func (p *MethodAgentCancelPledge) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodAgentCancelPledge) GetFee ¶
func (p *MethodAgentCancelPledge) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodAgentCancelPledge) GetReceiveQuota ¶
func (p *MethodAgentCancelPledge) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodAgentCancelPledge) GetRefundData ¶
func (p *MethodAgentCancelPledge) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodAgentPledge ¶
type MethodAgentPledge struct{}
func (*MethodAgentPledge) DoReceive ¶
func (p *MethodAgentPledge) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodAgentPledge) DoSend ¶
func (p *MethodAgentPledge) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodAgentPledge) GetFee ¶
func (p *MethodAgentPledge) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodAgentPledge) GetReceiveQuota ¶
func (p *MethodAgentPledge) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodAgentPledge) GetRefundData ¶
func (p *MethodAgentPledge) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodBurn ¶ added in v1.3.0
type MethodBurn struct{}
func (*MethodBurn) DoReceive ¶ added in v1.3.0
func (p *MethodBurn) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodBurn) DoSend ¶ added in v1.3.0
func (p *MethodBurn) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodBurn) GetFee ¶ added in v1.3.0
func (p *MethodBurn) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodBurn) GetReceiveQuota ¶
func (p *MethodBurn) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodBurn) GetRefundData ¶ added in v1.3.0
func (p *MethodBurn) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodCancelPledge ¶
type MethodCancelPledge struct{}
func (*MethodCancelPledge) DoReceive ¶
func (p *MethodCancelPledge) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodCancelPledge) DoSend ¶
func (p *MethodCancelPledge) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodCancelPledge) GetFee ¶
func (p *MethodCancelPledge) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodCancelPledge) GetReceiveQuota ¶
func (p *MethodCancelPledge) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodCancelPledge) GetRefundData ¶
func (p *MethodCancelPledge) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodCancelRegister ¶
type MethodCancelRegister struct { }
func (*MethodCancelRegister) DoReceive ¶
func (p *MethodCancelRegister) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodCancelRegister) DoSend ¶
func (p *MethodCancelRegister) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
cancel register to become a super node of a consensus group after registered for 3 month, get 100w ViteToken back
func (*MethodCancelRegister) GetFee ¶
func (p *MethodCancelRegister) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodCancelRegister) GetReceiveQuota ¶
func (p *MethodCancelRegister) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodCancelRegister) GetRefundData ¶
func (p *MethodCancelRegister) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodCancelVote ¶
type MethodCancelVote struct { }
func (*MethodCancelVote) DoReceive ¶
func (p *MethodCancelVote) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodCancelVote) DoSend ¶
func (p *MethodCancelVote) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
cancel vote for a super node of a consensus group
func (*MethodCancelVote) GetFee ¶
func (p *MethodCancelVote) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodCancelVote) GetReceiveQuota ¶
func (p *MethodCancelVote) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodCancelVote) GetRefundData ¶
func (p *MethodCancelVote) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodChangeTokenType ¶ added in v1.3.0
type MethodChangeTokenType struct{}
func (*MethodChangeTokenType) DoReceive ¶ added in v1.3.0
func (p *MethodChangeTokenType) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodChangeTokenType) DoSend ¶ added in v1.3.0
func (p *MethodChangeTokenType) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodChangeTokenType) GetFee ¶ added in v1.3.0
func (p *MethodChangeTokenType) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodChangeTokenType) GetReceiveQuota ¶
func (p *MethodChangeTokenType) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodChangeTokenType) GetRefundData ¶ added in v1.3.0
func (p *MethodChangeTokenType) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundBindInviteCode ¶
type MethodDexFundBindInviteCode struct { }
func (MethodDexFundBindInviteCode) DoReceive ¶
func (md MethodDexFundBindInviteCode) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundBindInviteCode) DoSend ¶
func (md *MethodDexFundBindInviteCode) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundBindInviteCode) GetFee ¶
func (md *MethodDexFundBindInviteCode) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundBindInviteCode) GetReceiveQuota ¶
func (md *MethodDexFundBindInviteCode) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundBindInviteCode) GetRefundData ¶
func (md *MethodDexFundBindInviteCode) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundCancelPledgeCallback ¶
type MethodDexFundCancelPledgeCallback struct { }
func (MethodDexFundCancelPledgeCallback) DoReceive ¶
func (md MethodDexFundCancelPledgeCallback) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundCancelPledgeCallback) DoSend ¶
func (md *MethodDexFundCancelPledgeCallback) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundCancelPledgeCallback) GetFee ¶
func (md *MethodDexFundCancelPledgeCallback) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundCancelPledgeCallback) GetReceiveQuota ¶
func (md *MethodDexFundCancelPledgeCallback) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundCancelPledgeCallback) GetRefundData ¶
func (md *MethodDexFundCancelPledgeCallback) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundConfigMarketsAgent ¶
type MethodDexFundConfigMarketsAgent struct { }
func (MethodDexFundConfigMarketsAgent) DoReceive ¶
func (md MethodDexFundConfigMarketsAgent) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundConfigMarketsAgent) DoSend ¶
func (md *MethodDexFundConfigMarketsAgent) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundConfigMarketsAgent) GetFee ¶
func (md *MethodDexFundConfigMarketsAgent) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundConfigMarketsAgent) GetReceiveQuota ¶
func (md *MethodDexFundConfigMarketsAgent) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundConfigMarketsAgent) GetRefundData ¶
func (md *MethodDexFundConfigMarketsAgent) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundEndorseVxMinePool ¶
type MethodDexFundEndorseVxMinePool struct { }
func (MethodDexFundEndorseVxMinePool) DoReceive ¶
func (md MethodDexFundEndorseVxMinePool) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundEndorseVxMinePool) DoSend ¶
func (md *MethodDexFundEndorseVxMinePool) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundEndorseVxMinePool) GetFee ¶
func (md *MethodDexFundEndorseVxMinePool) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundEndorseVxMinePool) GetReceiveQuota ¶
func (md *MethodDexFundEndorseVxMinePool) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundEndorseVxMinePool) GetRefundData ¶
func (md *MethodDexFundEndorseVxMinePool) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundGetTokenInfoCallback ¶
type MethodDexFundGetTokenInfoCallback struct { }
func (MethodDexFundGetTokenInfoCallback) DoReceive ¶
func (md MethodDexFundGetTokenInfoCallback) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundGetTokenInfoCallback) DoSend ¶
func (md *MethodDexFundGetTokenInfoCallback) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundGetTokenInfoCallback) GetFee ¶
func (md *MethodDexFundGetTokenInfoCallback) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundGetTokenInfoCallback) GetReceiveQuota ¶
func (md *MethodDexFundGetTokenInfoCallback) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundGetTokenInfoCallback) GetRefundData ¶
func (md *MethodDexFundGetTokenInfoCallback) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundMarketOwnerConfig ¶
type MethodDexFundMarketOwnerConfig struct { }
func (MethodDexFundMarketOwnerConfig) DoReceive ¶
func (md MethodDexFundMarketOwnerConfig) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundMarketOwnerConfig) DoSend ¶
func (md *MethodDexFundMarketOwnerConfig) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundMarketOwnerConfig) GetFee ¶
func (md *MethodDexFundMarketOwnerConfig) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundMarketOwnerConfig) GetReceiveQuota ¶
func (md *MethodDexFundMarketOwnerConfig) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundMarketOwnerConfig) GetRefundData ¶
func (md *MethodDexFundMarketOwnerConfig) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundNewAgentOrder ¶
type MethodDexFundNewAgentOrder struct { }
func (MethodDexFundNewAgentOrder) DoReceive ¶
func (md MethodDexFundNewAgentOrder) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundNewAgentOrder) DoSend ¶
func (md *MethodDexFundNewAgentOrder) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundNewAgentOrder) GetFee ¶
func (md *MethodDexFundNewAgentOrder) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundNewAgentOrder) GetReceiveQuota ¶
func (md *MethodDexFundNewAgentOrder) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundNewAgentOrder) GetRefundData ¶
func (md *MethodDexFundNewAgentOrder) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundNewInviter ¶
type MethodDexFundNewInviter struct { }
func (MethodDexFundNewInviter) DoReceive ¶
func (md MethodDexFundNewInviter) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundNewInviter) DoSend ¶
func (md *MethodDexFundNewInviter) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundNewInviter) GetFee ¶
func (md *MethodDexFundNewInviter) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundNewInviter) GetReceiveQuota ¶
func (md *MethodDexFundNewInviter) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundNewInviter) GetRefundData ¶
func (md *MethodDexFundNewInviter) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundNewMarket ¶
type MethodDexFundNewMarket struct { }
func (MethodDexFundNewMarket) DoReceive ¶
func (md MethodDexFundNewMarket) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundNewMarket) DoSend ¶
func (md *MethodDexFundNewMarket) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundNewMarket) GetFee ¶
func (md *MethodDexFundNewMarket) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundNewMarket) GetReceiveQuota ¶
func (md *MethodDexFundNewMarket) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundNewMarket) GetRefundData ¶
func (md *MethodDexFundNewMarket) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundNewOrder ¶
type MethodDexFundNewOrder struct { }
func (*MethodDexFundNewOrder) DoReceive ¶
func (md *MethodDexFundNewOrder) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundNewOrder) DoSend ¶
func (md *MethodDexFundNewOrder) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
func (*MethodDexFundNewOrder) GetFee ¶
func (md *MethodDexFundNewOrder) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundNewOrder) GetReceiveQuota ¶
func (md *MethodDexFundNewOrder) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundNewOrder) GetRefundData ¶
func (md *MethodDexFundNewOrder) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundNotifyTime ¶
type MethodDexFundNotifyTime struct { }
func (MethodDexFundNotifyTime) DoReceive ¶
func (md MethodDexFundNotifyTime) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundNotifyTime) DoSend ¶
func (md *MethodDexFundNotifyTime) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundNotifyTime) GetFee ¶
func (md *MethodDexFundNotifyTime) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundNotifyTime) GetReceiveQuota ¶
func (md *MethodDexFundNotifyTime) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundNotifyTime) GetRefundData ¶
func (md *MethodDexFundNotifyTime) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundOwnerConfig ¶
type MethodDexFundOwnerConfig struct { }
func (MethodDexFundOwnerConfig) DoReceive ¶
func (md MethodDexFundOwnerConfig) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundOwnerConfig) DoSend ¶
func (md *MethodDexFundOwnerConfig) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundOwnerConfig) GetFee ¶
func (md *MethodDexFundOwnerConfig) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundOwnerConfig) GetReceiveQuota ¶
func (md *MethodDexFundOwnerConfig) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundOwnerConfig) GetRefundData ¶
func (md *MethodDexFundOwnerConfig) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundOwnerConfigTrade ¶
type MethodDexFundOwnerConfigTrade struct { }
func (MethodDexFundOwnerConfigTrade) DoReceive ¶
func (md MethodDexFundOwnerConfigTrade) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundOwnerConfigTrade) DoSend ¶
func (md *MethodDexFundOwnerConfigTrade) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundOwnerConfigTrade) GetFee ¶
func (md *MethodDexFundOwnerConfigTrade) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundOwnerConfigTrade) GetReceiveQuota ¶
func (md *MethodDexFundOwnerConfigTrade) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundOwnerConfigTrade) GetRefundData ¶
func (md *MethodDexFundOwnerConfigTrade) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundPeriodJob ¶
type MethodDexFundPeriodJob struct { }
func (MethodDexFundPeriodJob) DoReceive ¶
func (md MethodDexFundPeriodJob) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundPeriodJob) DoSend ¶
func (md *MethodDexFundPeriodJob) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundPeriodJob) GetFee ¶
func (md *MethodDexFundPeriodJob) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundPeriodJob) GetReceiveQuota ¶
func (md *MethodDexFundPeriodJob) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundPeriodJob) GetRefundData ¶
func (md *MethodDexFundPeriodJob) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundPledgeCallback ¶
type MethodDexFundPledgeCallback struct { }
func (MethodDexFundPledgeCallback) DoReceive ¶
func (md MethodDexFundPledgeCallback) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundPledgeCallback) DoSend ¶
func (md *MethodDexFundPledgeCallback) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundPledgeCallback) GetFee ¶
func (md *MethodDexFundPledgeCallback) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundPledgeCallback) GetReceiveQuota ¶
func (md *MethodDexFundPledgeCallback) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundPledgeCallback) GetRefundData ¶
func (md *MethodDexFundPledgeCallback) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundPledgeForSuperVip ¶
type MethodDexFundPledgeForSuperVip struct { }
func (MethodDexFundPledgeForSuperVip) DoReceive ¶
func (md MethodDexFundPledgeForSuperVip) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundPledgeForSuperVip) DoSend ¶
func (md *MethodDexFundPledgeForSuperVip) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundPledgeForSuperVip) GetFee ¶
func (md *MethodDexFundPledgeForSuperVip) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundPledgeForSuperVip) GetReceiveQuota ¶
func (md *MethodDexFundPledgeForSuperVip) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundPledgeForSuperVip) GetRefundData ¶
func (md *MethodDexFundPledgeForSuperVip) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundPledgeForVip ¶
type MethodDexFundPledgeForVip struct { }
func (MethodDexFundPledgeForVip) DoReceive ¶
func (md MethodDexFundPledgeForVip) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundPledgeForVip) DoSend ¶
func (md *MethodDexFundPledgeForVip) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundPledgeForVip) GetFee ¶
func (md *MethodDexFundPledgeForVip) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundPledgeForVip) GetReceiveQuota ¶
func (md *MethodDexFundPledgeForVip) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundPledgeForVip) GetRefundData ¶
func (md *MethodDexFundPledgeForVip) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundPledgeForVx ¶
type MethodDexFundPledgeForVx struct { }
func (MethodDexFundPledgeForVx) DoReceive ¶
func (md MethodDexFundPledgeForVx) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundPledgeForVx) DoSend ¶
func (md *MethodDexFundPledgeForVx) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundPledgeForVx) GetFee ¶
func (md *MethodDexFundPledgeForVx) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundPledgeForVx) GetReceiveQuota ¶
func (md *MethodDexFundPledgeForVx) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundPledgeForVx) GetRefundData ¶
func (md *MethodDexFundPledgeForVx) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundSettleMakerMinedVx ¶
type MethodDexFundSettleMakerMinedVx struct { }
func (MethodDexFundSettleMakerMinedVx) DoReceive ¶
func (md MethodDexFundSettleMakerMinedVx) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundSettleMakerMinedVx) DoSend ¶
func (md *MethodDexFundSettleMakerMinedVx) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundSettleMakerMinedVx) GetFee ¶
func (md *MethodDexFundSettleMakerMinedVx) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundSettleMakerMinedVx) GetReceiveQuota ¶
func (md *MethodDexFundSettleMakerMinedVx) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundSettleMakerMinedVx) GetRefundData ¶
func (md *MethodDexFundSettleMakerMinedVx) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundSettleOrders ¶
type MethodDexFundSettleOrders struct { }
func (MethodDexFundSettleOrders) DoReceive ¶
func (md MethodDexFundSettleOrders) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundSettleOrders) DoSend ¶
func (md *MethodDexFundSettleOrders) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundSettleOrders) GetFee ¶
func (md *MethodDexFundSettleOrders) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundSettleOrders) GetReceiveQuota ¶
func (md *MethodDexFundSettleOrders) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundSettleOrders) GetRefundData ¶
func (md *MethodDexFundSettleOrders) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundTransferTokenOwner ¶
type MethodDexFundTransferTokenOwner struct { }
func (MethodDexFundTransferTokenOwner) DoReceive ¶
func (md MethodDexFundTransferTokenOwner) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundTransferTokenOwner) DoSend ¶
func (md *MethodDexFundTransferTokenOwner) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundTransferTokenOwner) GetFee ¶
func (md *MethodDexFundTransferTokenOwner) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundTransferTokenOwner) GetReceiveQuota ¶
func (md *MethodDexFundTransferTokenOwner) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundTransferTokenOwner) GetRefundData ¶
func (md *MethodDexFundTransferTokenOwner) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundUserDeposit ¶
type MethodDexFundUserDeposit struct { }
func (*MethodDexFundUserDeposit) DoReceive ¶
func (md *MethodDexFundUserDeposit) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundUserDeposit) DoSend ¶
func (md *MethodDexFundUserDeposit) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundUserDeposit) GetFee ¶
func (md *MethodDexFundUserDeposit) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundUserDeposit) GetReceiveQuota ¶
func (md *MethodDexFundUserDeposit) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundUserDeposit) GetRefundData ¶
func (md *MethodDexFundUserDeposit) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexFundUserWithdraw ¶
type MethodDexFundUserWithdraw struct { }
func (*MethodDexFundUserWithdraw) DoReceive ¶
func (md *MethodDexFundUserWithdraw) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundUserWithdraw) DoSend ¶
func (md *MethodDexFundUserWithdraw) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundUserWithdraw) GetFee ¶
func (md *MethodDexFundUserWithdraw) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundUserWithdraw) GetReceiveQuota ¶
func (md *MethodDexFundUserWithdraw) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundUserWithdraw) GetRefundData ¶
func (md *MethodDexFundUserWithdraw) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexTradeCancelOrder ¶
type MethodDexTradeCancelOrder struct { }
func (MethodDexTradeCancelOrder) DoReceive ¶
func (md MethodDexTradeCancelOrder) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexTradeCancelOrder) DoSend ¶
func (md *MethodDexTradeCancelOrder) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
func (*MethodDexTradeCancelOrder) GetFee ¶
func (md *MethodDexTradeCancelOrder) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexTradeCancelOrder) GetReceiveQuota ¶
func (md *MethodDexTradeCancelOrder) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexTradeCancelOrder) GetRefundData ¶
func (md *MethodDexTradeCancelOrder) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexTradeCancelOrderByHash ¶
type MethodDexTradeCancelOrderByHash struct { }
func (MethodDexTradeCancelOrderByHash) DoReceive ¶
func (md MethodDexTradeCancelOrderByHash) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexTradeCancelOrderByHash) DoSend ¶
func (md *MethodDexTradeCancelOrderByHash) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
func (*MethodDexTradeCancelOrderByHash) GetFee ¶
func (md *MethodDexTradeCancelOrderByHash) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexTradeCancelOrderByHash) GetReceiveQuota ¶
func (md *MethodDexTradeCancelOrderByHash) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexTradeCancelOrderByHash) GetRefundData ¶
func (md *MethodDexTradeCancelOrderByHash) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexTradeCleanExpireOrders ¶
type MethodDexTradeCleanExpireOrders struct { }
func (MethodDexTradeCleanExpireOrders) DoReceive ¶
func (md MethodDexTradeCleanExpireOrders) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexTradeCleanExpireOrders) DoSend ¶
func (md *MethodDexTradeCleanExpireOrders) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
func (*MethodDexTradeCleanExpireOrders) GetFee ¶
func (md *MethodDexTradeCleanExpireOrders) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexTradeCleanExpireOrders) GetReceiveQuota ¶
func (md *MethodDexTradeCleanExpireOrders) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexTradeCleanExpireOrders) GetRefundData ¶
func (md *MethodDexTradeCleanExpireOrders) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexTradeNewOrder ¶
type MethodDexTradeNewOrder struct { }
func (*MethodDexTradeNewOrder) DoReceive ¶
func (md *MethodDexTradeNewOrder) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexTradeNewOrder) DoSend ¶
func (md *MethodDexTradeNewOrder) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
func (*MethodDexTradeNewOrder) GetFee ¶
func (md *MethodDexTradeNewOrder) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexTradeNewOrder) GetReceiveQuota ¶
func (md *MethodDexTradeNewOrder) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexTradeNewOrder) GetRefundData ¶
func (md *MethodDexTradeNewOrder) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodDexTradeNotifyNewMarket ¶
type MethodDexTradeNotifyNewMarket struct { }
func (MethodDexTradeNotifyNewMarket) DoReceive ¶
func (md MethodDexTradeNotifyNewMarket) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexTradeNotifyNewMarket) DoSend ¶
func (md *MethodDexTradeNotifyNewMarket) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
func (*MethodDexTradeNotifyNewMarket) GetFee ¶
func (md *MethodDexTradeNotifyNewMarket) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexTradeNotifyNewMarket) GetReceiveQuota ¶
func (md *MethodDexTradeNotifyNewMarket) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexTradeNotifyNewMarket) GetRefundData ¶
func (md *MethodDexTradeNotifyNewMarket) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodGetTokenInfo ¶
type MethodGetTokenInfo struct{}
func (*MethodGetTokenInfo) DoReceive ¶
func (p *MethodGetTokenInfo) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodGetTokenInfo) DoSend ¶
func (p *MethodGetTokenInfo) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodGetTokenInfo) GetFee ¶
func (p *MethodGetTokenInfo) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodGetTokenInfo) GetReceiveQuota ¶
func (p *MethodGetTokenInfo) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodGetTokenInfo) GetRefundData ¶
func (p *MethodGetTokenInfo) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodIssue ¶ added in v1.3.0
type MethodIssue struct{}
func (*MethodIssue) DoReceive ¶ added in v1.3.0
func (p *MethodIssue) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodIssue) DoSend ¶ added in v1.3.0
func (p *MethodIssue) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodIssue) GetFee ¶ added in v1.3.0
func (p *MethodIssue) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodIssue) GetReceiveQuota ¶
func (p *MethodIssue) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodIssue) GetRefundData ¶ added in v1.3.0
func (p *MethodIssue) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodMint ¶ added in v1.3.0
type MethodMint struct{}
func (*MethodMint) DoReceive ¶ added in v1.3.0
func (p *MethodMint) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodMint) DoSend ¶ added in v1.3.0
func (p *MethodMint) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodMint) GetFee ¶ added in v1.3.0
func (p *MethodMint) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodMint) GetReceiveQuota ¶
func (p *MethodMint) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodMint) GetRefundData ¶ added in v1.3.0
func (p *MethodMint) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodPledge ¶
type MethodPledge struct{}
func (*MethodPledge) DoReceive ¶
func (p *MethodPledge) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodPledge) DoSend ¶
func (p *MethodPledge) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodPledge) GetFee ¶
func (p *MethodPledge) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodPledge) GetReceiveQuota ¶
func (p *MethodPledge) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodPledge) GetRefundData ¶
func (p *MethodPledge) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodRegister ¶
type MethodRegister struct { }
func (*MethodRegister) DoReceive ¶
func (p *MethodRegister) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodRegister) DoSend ¶
func (p *MethodRegister) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
register to become a super node of a consensus group, lock 1 million ViteToken for 3 month
func (*MethodRegister) GetFee ¶
func (p *MethodRegister) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodRegister) GetReceiveQuota ¶
func (p *MethodRegister) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodRegister) GetRefundData ¶
func (p *MethodRegister) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodReward ¶
type MethodReward struct { }
func (*MethodReward) DoReceive ¶
func (p *MethodReward) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodReward) DoSend ¶
func (p *MethodReward) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
get reward of generating snapshot block
func (*MethodReward) GetFee ¶
func (p *MethodReward) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodReward) GetReceiveQuota ¶
func (p *MethodReward) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodReward) GetRefundData ¶
func (p *MethodReward) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodTransferOwner ¶ added in v1.3.0
type MethodTransferOwner struct{}
func (*MethodTransferOwner) DoReceive ¶ added in v1.3.0
func (p *MethodTransferOwner) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodTransferOwner) DoSend ¶ added in v1.3.0
func (p *MethodTransferOwner) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodTransferOwner) GetFee ¶ added in v1.3.0
func (p *MethodTransferOwner) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodTransferOwner) GetReceiveQuota ¶
func (p *MethodTransferOwner) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodTransferOwner) GetRefundData ¶ added in v1.3.0
func (p *MethodTransferOwner) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodUpdateRegistration ¶
type MethodUpdateRegistration struct { }
func (*MethodUpdateRegistration) DoReceive ¶
func (p *MethodUpdateRegistration) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodUpdateRegistration) DoSend ¶
func (p *MethodUpdateRegistration) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
update registration info
func (*MethodUpdateRegistration) GetFee ¶
func (p *MethodUpdateRegistration) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodUpdateRegistration) GetReceiveQuota ¶
func (p *MethodUpdateRegistration) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodUpdateRegistration) GetRefundData ¶
func (p *MethodUpdateRegistration) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type MethodVote ¶
type MethodVote struct { }
func (*MethodVote) DoReceive ¶
func (p *MethodVote) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodVote) DoSend ¶
func (p *MethodVote) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
vote for a super node of a consensus group
func (*MethodVote) GetFee ¶
func (p *MethodVote) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodVote) GetReceiveQuota ¶
func (p *MethodVote) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodVote) GetRefundData ¶
func (p *MethodVote) GetRefundData(sendBlock *ledger.AccountBlock) ([]byte, bool)
type NodeConfig ¶
type NodeConfig struct {
// contains filtered or unexported fields
}
type Reward ¶
type Reward struct { VoteReward *big.Int BlockReward *big.Int TotalReward *big.Int BlockNum uint64 ExpectedBlockNum uint64 }
func CalcReward ¶
func CalcReward(reader util.ConsensusReader, db vm_db.VmDb, old *types.Registration, current *ledger.SnapshotBlock) (startTime int64, endTime int64, reward *Reward, drained bool, err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.