Documentation ¶
Index ¶
- Constants
- Variables
- func CalcRewardByDay(db vm_db.VmDb, reader util.ConsensusReader, timestamp int64) (m map[string]*Reward, index uint64, 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 OnPlaceOrderFailed(db vm_db.VmDb, 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, sbHeight uint64) ([]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, sbHeight uint64) ([]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, sbHeight uint64) ([]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, sbHeight uint64) ([]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, sbHeight uint64) ([]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, sbHeight uint64) ([]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, sbHeight uint64) ([]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, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundBindInviteCode) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundCancelDelegateStakeCallback
- func (md MethodDexFundCancelDelegateStakeCallback) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundCancelDelegateStakeCallback) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundCancelDelegateStakeCallback) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundCancelDelegateStakeCallback) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundCancelDelegateStakeCallback) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundCancelDelegateStakeCallback) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundConfigMarketAgents
- func (md MethodDexFundConfigMarketAgents) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundConfigMarketAgents) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundConfigMarketAgents) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundConfigMarketAgents) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundConfigMarketAgents) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundConfigMarketAgents) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundCreateNewInviter
- func (md MethodDexFundCreateNewInviter) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundCreateNewInviter) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundCreateNewInviter) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundCreateNewInviter) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundCreateNewInviter) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundCreateNewInviter) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundDelegateStakeCallback
- func (md MethodDexFundDelegateStakeCallback) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundDelegateStakeCallback) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundDelegateStakeCallback) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundDelegateStakeCallback) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundDelegateStakeCallback) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundDelegateStakeCallback) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundDeposit
- func (md *MethodDexFundDeposit) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundDeposit) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundDeposit) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundDeposit) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundDeposit) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundDeposit) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundDexAdminConfig
- func (md MethodDexFundDexAdminConfig) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundDexAdminConfig) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundDexAdminConfig) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundDexAdminConfig) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundDexAdminConfig) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundDexAdminConfig) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundEndorseVx
- func (md MethodDexFundEndorseVx) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundEndorseVx) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundEndorseVx) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundEndorseVx) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundEndorseVx) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundEndorseVx) 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, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundGetTokenInfoCallback) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundMarketAdminConfig
- func (md MethodDexFundMarketAdminConfig) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundMarketAdminConfig) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundMarketAdminConfig) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundMarketAdminConfig) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundMarketAdminConfig) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundMarketAdminConfig) 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, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundNotifyTime) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundOpenNewMarket
- func (md MethodDexFundOpenNewMarket) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundOpenNewMarket) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundOpenNewMarket) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundOpenNewMarket) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundOpenNewMarket) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundOpenNewMarket) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundPlaceAgentOrder
- func (md MethodDexFundPlaceAgentOrder) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundPlaceAgentOrder) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundPlaceAgentOrder) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundPlaceAgentOrder) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundPlaceAgentOrder) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundPlaceAgentOrder) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundPlaceOrder
- func (md *MethodDexFundPlaceOrder) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundPlaceOrder) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
- func (md *MethodDexFundPlaceOrder) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundPlaceOrder) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundPlaceOrder) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundPlaceOrder) 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, sbHeight uint64) ([]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, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundSettleOrders) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundStakeForMining
- func (md MethodDexFundStakeForMining) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundStakeForMining) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundStakeForMining) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundStakeForMining) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundStakeForMining) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundStakeForMining) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundStakeForSVIP
- func (md MethodDexFundStakeForSVIP) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundStakeForSVIP) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundStakeForSVIP) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundStakeForSVIP) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundStakeForSVIP) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundStakeForSVIP) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundStakeForVIP
- func (md MethodDexFundStakeForVIP) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundStakeForVIP) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundStakeForVIP) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundStakeForVIP) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundStakeForVIP) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundStakeForVIP) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundTradeAdminConfig
- func (md MethodDexFundTradeAdminConfig) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundTradeAdminConfig) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundTradeAdminConfig) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundTradeAdminConfig) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundTradeAdminConfig) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundTradeAdminConfig) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundTransferTokenOwnership
- func (md MethodDexFundTransferTokenOwnership) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundTransferTokenOwnership) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundTransferTokenOwnership) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundTransferTokenOwnership) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundTransferTokenOwnership) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundTransferTokenOwnership) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundTriggerPeriodJob
- func (md MethodDexFundTriggerPeriodJob) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundTriggerPeriodJob) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundTriggerPeriodJob) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundTriggerPeriodJob) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundTriggerPeriodJob) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundTriggerPeriodJob) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexFundWithdraw
- func (md *MethodDexFundWithdraw) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundWithdraw) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundWithdraw) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundWithdraw) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexFundWithdraw) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundWithdraw) 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, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexTradeCancelOrder) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexTradeCancelOrderByTransactionHash
- func (md MethodDexTradeCancelOrderByTransactionHash) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexTradeCancelOrderByTransactionHash) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
- func (md *MethodDexTradeCancelOrderByTransactionHash) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexTradeCancelOrderByTransactionHash) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexTradeCancelOrderByTransactionHash) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexTradeCancelOrderByTransactionHash) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexTradeClearExpiredOrders
- func (md MethodDexTradeClearExpiredOrders) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexTradeClearExpiredOrders) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
- func (md *MethodDexTradeClearExpiredOrders) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexTradeClearExpiredOrders) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexTradeClearExpiredOrders) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexTradeClearExpiredOrders) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexTradePlaceOrder
- func (md *MethodDexTradePlaceOrder) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexTradePlaceOrder) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
- func (md *MethodDexTradePlaceOrder) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexTradePlaceOrder) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexTradePlaceOrder) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexTradePlaceOrder) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type MethodDexTradeSyncNewMarket
- func (md MethodDexTradeSyncNewMarket) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexTradeSyncNewMarket) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
- func (md *MethodDexTradeSyncNewMarket) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexTradeSyncNewMarket) GetReceiveQuota(gasTable *util.GasTable) uint64
- func (md *MethodDexTradeSyncNewMarket) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexTradeSyncNewMarket) 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, sbHeight uint64) ([]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, sbHeight uint64) ([]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, sbHeight uint64) ([]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, sbHeight uint64) ([]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, sbHeight uint64) ([]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, sbHeight uint64) ([]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, sbHeight uint64) ([]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, sbHeight uint64) ([]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, sbHeight uint64) ([]byte, bool)
- func (p *MethodVote) GetSendQuota(data []byte, gasTable *util.GasTable) (uint64, error)
- type NodeConfig
- type Reward
Constants ¶
View Source
const ( GetRewardTimeLimit int64 = 3600 // Cannot get snapshot block reward of current few blocks, for latest snapshot block could be reverted PledgeHeightMax uint64 = 3600 * 24 * 365 )
Variables ¶
View Source
var ( SbpStakeAmountPreMainnet = new(big.Int).Mul(big.NewInt(5e5), util.AttovPerVite) SbpStakeAmountMainnet = new(big.Int).Mul(big.NewInt(1e6), util.AttovPerVite) )
View Source
var ( ContractsParamsTest = ContractsParams{ RegisterMinPledgeHeight: 1, PledgeHeight: 1, CreateConsensusGroupPledgeHeight: 1, MintPledgeHeight: 1, DexVipStakeHeight: 1, DexSuperVipStakeHeight: 1, } ContractsParamsMainNet = ContractsParams{ RegisterMinPledgeHeight: 3600 * 24 * 3, PledgeHeight: 3600 * 24 * 3, CreateConsensusGroupPledgeHeight: 3600 * 24 * 3, MintPledgeHeight: 3600 * 24 * 30 * 3, DexVipStakeHeight: 3600 * 24 * 30, DexSuperVipStakeHeight: 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 InitContractsConfig ¶
func InitContractsConfig(isTestParam bool)
func OnPlaceOrderFailed ¶
func OnPlaceOrderFailed(db vm_db.VmDb, order *dex.Order, marketInfo *dex.MarketInfo) ([]*ledger.AccountBlock, error)
func RewardDrained ¶
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, sbHeight uint64) ([]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 DexVipStakeHeight uint64 // Pledge height for dex_fund contract, in order to upgrade to dex vip DexSuperVipStakeHeight uint64 // Pledge height for dex_fund contract, in order to upgrade to dex super vip }
type MethodAgentCancelPledge ¶
type MethodAgentCancelPledge struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodAgentCancelPledge) GetSendQuota ¶
type MethodAgentPledge ¶
type MethodAgentPledge struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodAgentPledge) GetSendQuota ¶
type MethodBurn ¶ added in v1.3.0
type MethodBurn struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodBurn) GetSendQuota ¶
type MethodCancelPledge ¶
type MethodCancelPledge struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodCancelPledge) GetSendQuota ¶
type MethodCancelRegister ¶
type MethodCancelRegister struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodCancelRegister) GetSendQuota ¶
type MethodCancelVote ¶
type MethodCancelVote struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodCancelVote) GetSendQuota ¶
type MethodChangeTokenType ¶ added in v1.3.0
type MethodChangeTokenType struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodChangeTokenType) GetSendQuota ¶
type MethodDexFundBindInviteCode ¶
type MethodDexFundBindInviteCode struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundBindInviteCode) GetSendQuota ¶
type MethodDexFundCancelDelegateStakeCallback ¶
type MethodDexFundCancelDelegateStakeCallback struct {
MethodName string
}
func (MethodDexFundCancelDelegateStakeCallback) DoReceive ¶
func (md MethodDexFundCancelDelegateStakeCallback) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundCancelDelegateStakeCallback) DoSend ¶
func (md *MethodDexFundCancelDelegateStakeCallback) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundCancelDelegateStakeCallback) GetFee ¶
func (md *MethodDexFundCancelDelegateStakeCallback) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundCancelDelegateStakeCallback) GetReceiveQuota ¶
func (md *MethodDexFundCancelDelegateStakeCallback) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundCancelDelegateStakeCallback) GetRefundData ¶
func (md *MethodDexFundCancelDelegateStakeCallback) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundCancelDelegateStakeCallback) GetSendQuota ¶
type MethodDexFundConfigMarketAgents ¶
type MethodDexFundConfigMarketAgents struct {
MethodName string
}
func (MethodDexFundConfigMarketAgents) DoReceive ¶
func (md MethodDexFundConfigMarketAgents) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundConfigMarketAgents) DoSend ¶
func (md *MethodDexFundConfigMarketAgents) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundConfigMarketAgents) GetFee ¶
func (md *MethodDexFundConfigMarketAgents) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundConfigMarketAgents) GetReceiveQuota ¶
func (md *MethodDexFundConfigMarketAgents) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundConfigMarketAgents) GetRefundData ¶
func (md *MethodDexFundConfigMarketAgents) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundConfigMarketAgents) GetSendQuota ¶
type MethodDexFundCreateNewInviter ¶
type MethodDexFundCreateNewInviter struct {
MethodName string
}
func (MethodDexFundCreateNewInviter) DoReceive ¶
func (md MethodDexFundCreateNewInviter) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundCreateNewInviter) DoSend ¶
func (md *MethodDexFundCreateNewInviter) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundCreateNewInviter) GetFee ¶
func (md *MethodDexFundCreateNewInviter) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundCreateNewInviter) GetReceiveQuota ¶
func (md *MethodDexFundCreateNewInviter) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundCreateNewInviter) GetRefundData ¶
func (md *MethodDexFundCreateNewInviter) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundCreateNewInviter) GetSendQuota ¶
type MethodDexFundDelegateStakeCallback ¶
type MethodDexFundDelegateStakeCallback struct {
MethodName string
}
func (MethodDexFundDelegateStakeCallback) DoReceive ¶
func (md MethodDexFundDelegateStakeCallback) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundDelegateStakeCallback) DoSend ¶
func (md *MethodDexFundDelegateStakeCallback) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundDelegateStakeCallback) GetFee ¶
func (md *MethodDexFundDelegateStakeCallback) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundDelegateStakeCallback) GetReceiveQuota ¶
func (md *MethodDexFundDelegateStakeCallback) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundDelegateStakeCallback) GetRefundData ¶
func (md *MethodDexFundDelegateStakeCallback) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundDelegateStakeCallback) GetSendQuota ¶
type MethodDexFundDeposit ¶
type MethodDexFundDeposit struct {
MethodName string
}
func (*MethodDexFundDeposit) DoReceive ¶
func (md *MethodDexFundDeposit) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundDeposit) DoSend ¶
func (md *MethodDexFundDeposit) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundDeposit) GetFee ¶
func (md *MethodDexFundDeposit) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundDeposit) GetReceiveQuota ¶
func (md *MethodDexFundDeposit) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundDeposit) GetRefundData ¶
func (md *MethodDexFundDeposit) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundDeposit) GetSendQuota ¶
type MethodDexFundDexAdminConfig ¶
type MethodDexFundDexAdminConfig struct {
MethodName string
}
func (MethodDexFundDexAdminConfig) DoReceive ¶
func (md MethodDexFundDexAdminConfig) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundDexAdminConfig) DoSend ¶
func (md *MethodDexFundDexAdminConfig) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundDexAdminConfig) GetFee ¶
func (md *MethodDexFundDexAdminConfig) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundDexAdminConfig) GetReceiveQuota ¶
func (md *MethodDexFundDexAdminConfig) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundDexAdminConfig) GetRefundData ¶
func (md *MethodDexFundDexAdminConfig) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundDexAdminConfig) GetSendQuota ¶
type MethodDexFundEndorseVx ¶
type MethodDexFundEndorseVx struct {
MethodName string
}
func (MethodDexFundEndorseVx) DoReceive ¶
func (md MethodDexFundEndorseVx) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundEndorseVx) DoSend ¶
func (md *MethodDexFundEndorseVx) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundEndorseVx) GetFee ¶
func (md *MethodDexFundEndorseVx) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundEndorseVx) GetReceiveQuota ¶
func (md *MethodDexFundEndorseVx) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundEndorseVx) GetRefundData ¶
func (md *MethodDexFundEndorseVx) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundEndorseVx) GetSendQuota ¶
type MethodDexFundGetTokenInfoCallback ¶
type MethodDexFundGetTokenInfoCallback struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundGetTokenInfoCallback) GetSendQuota ¶
type MethodDexFundMarketAdminConfig ¶
type MethodDexFundMarketAdminConfig struct {
MethodName string
}
func (MethodDexFundMarketAdminConfig) DoReceive ¶
func (md MethodDexFundMarketAdminConfig) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundMarketAdminConfig) DoSend ¶
func (md *MethodDexFundMarketAdminConfig) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundMarketAdminConfig) GetFee ¶
func (md *MethodDexFundMarketAdminConfig) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundMarketAdminConfig) GetReceiveQuota ¶
func (md *MethodDexFundMarketAdminConfig) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundMarketAdminConfig) GetRefundData ¶
func (md *MethodDexFundMarketAdminConfig) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundMarketAdminConfig) GetSendQuota ¶
type MethodDexFundNotifyTime ¶
type MethodDexFundNotifyTime struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundNotifyTime) GetSendQuota ¶
type MethodDexFundOpenNewMarket ¶
type MethodDexFundOpenNewMarket struct {
MethodName string
}
func (MethodDexFundOpenNewMarket) DoReceive ¶
func (md MethodDexFundOpenNewMarket) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundOpenNewMarket) DoSend ¶
func (md *MethodDexFundOpenNewMarket) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundOpenNewMarket) GetFee ¶
func (md *MethodDexFundOpenNewMarket) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundOpenNewMarket) GetReceiveQuota ¶
func (md *MethodDexFundOpenNewMarket) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundOpenNewMarket) GetRefundData ¶
func (md *MethodDexFundOpenNewMarket) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundOpenNewMarket) GetSendQuota ¶
type MethodDexFundPlaceAgentOrder ¶
type MethodDexFundPlaceAgentOrder struct {
MethodName string
}
func (MethodDexFundPlaceAgentOrder) DoReceive ¶
func (md MethodDexFundPlaceAgentOrder) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundPlaceAgentOrder) DoSend ¶
func (md *MethodDexFundPlaceAgentOrder) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundPlaceAgentOrder) GetFee ¶
func (md *MethodDexFundPlaceAgentOrder) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundPlaceAgentOrder) GetReceiveQuota ¶
func (md *MethodDexFundPlaceAgentOrder) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundPlaceAgentOrder) GetRefundData ¶
func (md *MethodDexFundPlaceAgentOrder) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundPlaceAgentOrder) GetSendQuota ¶
type MethodDexFundPlaceOrder ¶
type MethodDexFundPlaceOrder struct {
MethodName string
}
func (*MethodDexFundPlaceOrder) DoReceive ¶
func (md *MethodDexFundPlaceOrder) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundPlaceOrder) DoSend ¶
func (md *MethodDexFundPlaceOrder) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
func (*MethodDexFundPlaceOrder) GetFee ¶
func (md *MethodDexFundPlaceOrder) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundPlaceOrder) GetReceiveQuota ¶
func (md *MethodDexFundPlaceOrder) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundPlaceOrder) GetRefundData ¶
func (md *MethodDexFundPlaceOrder) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundPlaceOrder) GetSendQuota ¶
type MethodDexFundSettleMakerMinedVx ¶
type MethodDexFundSettleMakerMinedVx struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundSettleMakerMinedVx) GetSendQuota ¶
type MethodDexFundSettleOrders ¶
type MethodDexFundSettleOrders struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundSettleOrders) GetSendQuota ¶
type MethodDexFundStakeForMining ¶
type MethodDexFundStakeForMining struct {
MethodName string
}
func (MethodDexFundStakeForMining) DoReceive ¶
func (md MethodDexFundStakeForMining) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundStakeForMining) DoSend ¶
func (md *MethodDexFundStakeForMining) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundStakeForMining) GetFee ¶
func (md *MethodDexFundStakeForMining) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundStakeForMining) GetReceiveQuota ¶
func (md *MethodDexFundStakeForMining) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundStakeForMining) GetRefundData ¶
func (md *MethodDexFundStakeForMining) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundStakeForMining) GetSendQuota ¶
type MethodDexFundStakeForSVIP ¶
type MethodDexFundStakeForSVIP struct {
MethodName string
}
func (MethodDexFundStakeForSVIP) DoReceive ¶
func (md MethodDexFundStakeForSVIP) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundStakeForSVIP) DoSend ¶
func (md *MethodDexFundStakeForSVIP) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundStakeForSVIP) GetFee ¶
func (md *MethodDexFundStakeForSVIP) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundStakeForSVIP) GetReceiveQuota ¶
func (md *MethodDexFundStakeForSVIP) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundStakeForSVIP) GetRefundData ¶
func (md *MethodDexFundStakeForSVIP) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundStakeForSVIP) GetSendQuota ¶
type MethodDexFundStakeForVIP ¶
type MethodDexFundStakeForVIP struct {
MethodName string
}
func (MethodDexFundStakeForVIP) DoReceive ¶
func (md MethodDexFundStakeForVIP) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundStakeForVIP) DoSend ¶
func (md *MethodDexFundStakeForVIP) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundStakeForVIP) GetFee ¶
func (md *MethodDexFundStakeForVIP) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundStakeForVIP) GetReceiveQuota ¶
func (md *MethodDexFundStakeForVIP) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundStakeForVIP) GetRefundData ¶
func (md *MethodDexFundStakeForVIP) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundStakeForVIP) GetSendQuota ¶
type MethodDexFundTradeAdminConfig ¶
type MethodDexFundTradeAdminConfig struct {
MethodName string
}
func (MethodDexFundTradeAdminConfig) DoReceive ¶
func (md MethodDexFundTradeAdminConfig) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundTradeAdminConfig) DoSend ¶
func (md *MethodDexFundTradeAdminConfig) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundTradeAdminConfig) GetFee ¶
func (md *MethodDexFundTradeAdminConfig) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundTradeAdminConfig) GetReceiveQuota ¶
func (md *MethodDexFundTradeAdminConfig) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundTradeAdminConfig) GetRefundData ¶
func (md *MethodDexFundTradeAdminConfig) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundTradeAdminConfig) GetSendQuota ¶
type MethodDexFundTransferTokenOwnership ¶
type MethodDexFundTransferTokenOwnership struct {
MethodName string
}
func (MethodDexFundTransferTokenOwnership) DoReceive ¶
func (md MethodDexFundTransferTokenOwnership) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundTransferTokenOwnership) DoSend ¶
func (md *MethodDexFundTransferTokenOwnership) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundTransferTokenOwnership) GetFee ¶
func (md *MethodDexFundTransferTokenOwnership) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundTransferTokenOwnership) GetReceiveQuota ¶
func (md *MethodDexFundTransferTokenOwnership) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundTransferTokenOwnership) GetRefundData ¶
func (md *MethodDexFundTransferTokenOwnership) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundTransferTokenOwnership) GetSendQuota ¶
type MethodDexFundTriggerPeriodJob ¶
type MethodDexFundTriggerPeriodJob struct {
MethodName string
}
func (MethodDexFundTriggerPeriodJob) DoReceive ¶
func (md MethodDexFundTriggerPeriodJob) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundTriggerPeriodJob) DoSend ¶
func (md *MethodDexFundTriggerPeriodJob) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundTriggerPeriodJob) GetFee ¶
func (md *MethodDexFundTriggerPeriodJob) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundTriggerPeriodJob) GetReceiveQuota ¶
func (md *MethodDexFundTriggerPeriodJob) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundTriggerPeriodJob) GetRefundData ¶
func (md *MethodDexFundTriggerPeriodJob) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundTriggerPeriodJob) GetSendQuota ¶
type MethodDexFundWithdraw ¶
type MethodDexFundWithdraw struct {
MethodName string
}
func (*MethodDexFundWithdraw) DoReceive ¶
func (md *MethodDexFundWithdraw) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundWithdraw) DoSend ¶
func (md *MethodDexFundWithdraw) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundWithdraw) GetFee ¶
func (md *MethodDexFundWithdraw) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundWithdraw) GetReceiveQuota ¶
func (md *MethodDexFundWithdraw) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexFundWithdraw) GetRefundData ¶
func (md *MethodDexFundWithdraw) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundWithdraw) GetSendQuota ¶
type MethodDexTradeCancelOrder ¶
type MethodDexTradeCancelOrder struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodDexTradeCancelOrder) GetSendQuota ¶
type MethodDexTradeCancelOrderByTransactionHash ¶
type MethodDexTradeCancelOrderByTransactionHash struct {
MethodName string
}
func (MethodDexTradeCancelOrderByTransactionHash) DoReceive ¶
func (md MethodDexTradeCancelOrderByTransactionHash) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexTradeCancelOrderByTransactionHash) DoSend ¶
func (md *MethodDexTradeCancelOrderByTransactionHash) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
func (*MethodDexTradeCancelOrderByTransactionHash) GetFee ¶
func (md *MethodDexTradeCancelOrderByTransactionHash) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexTradeCancelOrderByTransactionHash) GetReceiveQuota ¶
func (md *MethodDexTradeCancelOrderByTransactionHash) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexTradeCancelOrderByTransactionHash) GetRefundData ¶
func (md *MethodDexTradeCancelOrderByTransactionHash) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexTradeCancelOrderByTransactionHash) GetSendQuota ¶
type MethodDexTradeClearExpiredOrders ¶
type MethodDexTradeClearExpiredOrders struct {
MethodName string
}
func (MethodDexTradeClearExpiredOrders) DoReceive ¶
func (md MethodDexTradeClearExpiredOrders) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexTradeClearExpiredOrders) DoSend ¶
func (md *MethodDexTradeClearExpiredOrders) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
func (*MethodDexTradeClearExpiredOrders) GetFee ¶
func (md *MethodDexTradeClearExpiredOrders) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexTradeClearExpiredOrders) GetReceiveQuota ¶
func (md *MethodDexTradeClearExpiredOrders) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexTradeClearExpiredOrders) GetRefundData ¶
func (md *MethodDexTradeClearExpiredOrders) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexTradeClearExpiredOrders) GetSendQuota ¶
type MethodDexTradePlaceOrder ¶
type MethodDexTradePlaceOrder struct {
MethodName string
}
func (*MethodDexTradePlaceOrder) DoReceive ¶
func (md *MethodDexTradePlaceOrder) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexTradePlaceOrder) DoSend ¶
func (md *MethodDexTradePlaceOrder) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
func (*MethodDexTradePlaceOrder) GetFee ¶
func (md *MethodDexTradePlaceOrder) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexTradePlaceOrder) GetReceiveQuota ¶
func (md *MethodDexTradePlaceOrder) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexTradePlaceOrder) GetRefundData ¶
func (md *MethodDexTradePlaceOrder) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexTradePlaceOrder) GetSendQuota ¶
type MethodDexTradeSyncNewMarket ¶
type MethodDexTradeSyncNewMarket struct {
MethodName string
}
func (MethodDexTradeSyncNewMarket) DoReceive ¶
func (md MethodDexTradeSyncNewMarket) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexTradeSyncNewMarket) DoSend ¶
func (md *MethodDexTradeSyncNewMarket) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) (err error)
func (*MethodDexTradeSyncNewMarket) GetFee ¶
func (md *MethodDexTradeSyncNewMarket) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexTradeSyncNewMarket) GetReceiveQuota ¶
func (md *MethodDexTradeSyncNewMarket) GetReceiveQuota(gasTable *util.GasTable) uint64
func (*MethodDexTradeSyncNewMarket) GetRefundData ¶
func (md *MethodDexTradeSyncNewMarket) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexTradeSyncNewMarket) GetSendQuota ¶
type MethodGetTokenInfo ¶
type MethodGetTokenInfo struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodGetTokenInfo) GetSendQuota ¶
type MethodIssue ¶ added in v1.3.0
type MethodIssue struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodIssue) GetSendQuota ¶
type MethodMint ¶ added in v1.3.0
type MethodMint struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodMint) GetSendQuota ¶
type MethodPledge ¶
type MethodPledge struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodPledge) GetSendQuota ¶
type MethodRegister ¶
type MethodRegister struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodRegister) GetSendQuota ¶
type MethodReward ¶
type MethodReward struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodReward) GetSendQuota ¶
type MethodTransferOwner ¶ added in v1.3.0
type MethodTransferOwner struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodTransferOwner) GetSendQuota ¶
type MethodUpdateRegistration ¶
type MethodUpdateRegistration struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodUpdateRegistration) GetSendQuota ¶
type MethodVote ¶
type MethodVote struct {
MethodName string
}
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, sbHeight uint64) ([]byte, bool)
func (*MethodVote) GetSendQuota ¶
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.