Documentation ¶
Index ¶
- Variables
- func CalcRewardByCycle(db vm_db.VmDb, reader util.ConsensusReader, timestamp int64) (m map[string]*Reward, index uint64, err error)
- func CalcRewardByIndex(db vm_db.VmDb, reader util.ConsensusReader, index uint64) (m map[string]*Reward, err error)
- func InitContractsConfig(isTestParam bool)
- func NewLog(c abi.ABIContract, name string, params ...interface{}) *ledger.VmLog
- 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 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.QuotaTable) uint64
- func (p *MethodBurn) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodBurn) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodCancelDelegateStake
- func (p *MethodCancelDelegateStake) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodCancelDelegateStake) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodCancelDelegateStake) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodCancelDelegateStake) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (p *MethodCancelDelegateStake) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodCancelDelegateStake) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodCancelStake
- func (p *MethodCancelStake) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodCancelStake) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodCancelStake) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodCancelStake) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (p *MethodCancelStake) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodCancelStake) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodCancelStakeV3
- func (p *MethodCancelStakeV3) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodCancelStakeV3) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodCancelStakeV3) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodCancelStakeV3) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (p *MethodCancelStakeV3) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodCancelStakeV3) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (p *MethodCancelVote) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodCancelVote) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodDelegateStake
- func (p *MethodDelegateStake) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodDelegateStake) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodDelegateStake) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodDelegateStake) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (p *MethodDelegateStake) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodDelegateStake) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundBindInviteCode) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundBindInviteCode) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundCancelDelegateStakeCallback) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundCancelDelegateStakeCallback) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodDexFundCancelDelegateStakeCallbackV2
- func (md MethodDexFundCancelDelegateStakeCallbackV2) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundCancelDelegateStakeCallbackV2) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundCancelDelegateStakeCallbackV2) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundCancelDelegateStakeCallbackV2) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (md *MethodDexFundCancelDelegateStakeCallbackV2) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundCancelDelegateStakeCallbackV2) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodDexFundCancelStakeById
- func (md MethodDexFundCancelStakeById) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundCancelStakeById) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundCancelStakeById) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundCancelStakeById) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (md *MethodDexFundCancelStakeById) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundCancelStakeById) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundConfigMarketAgents) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundConfigMarketAgents) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundCreateNewInviter) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundCreateNewInviter) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundDelegateStakeCallback) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundDelegateStakeCallback) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodDexFundDelegateStakeCallbackV2
- func (md MethodDexFundDelegateStakeCallbackV2) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) (blocks []*ledger.AccountBlock, err error)
- func (md *MethodDexFundDelegateStakeCallbackV2) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundDelegateStakeCallbackV2) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundDelegateStakeCallbackV2) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (md *MethodDexFundDelegateStakeCallbackV2) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundDelegateStakeCallbackV2) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundDeposit) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundDeposit) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundDexAdminConfig) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundDexAdminConfig) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundEndorseVx) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundEndorseVx) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundGetTokenInfoCallback) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundGetTokenInfoCallback) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodDexFundLockVxForDividend
- func (md MethodDexFundLockVxForDividend) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundLockVxForDividend) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundLockVxForDividend) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundLockVxForDividend) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (md *MethodDexFundLockVxForDividend) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundLockVxForDividend) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundMarketAdminConfig) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundMarketAdminConfig) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundNotifyTime) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundNotifyTime) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundOpenNewMarket) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundOpenNewMarket) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundPlaceAgentOrder) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundPlaceAgentOrder) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundPlaceOrder) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundPlaceOrder) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundSettleMakerMinedVx) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundSettleMakerMinedVx) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundSettleOrders) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundSettleOrders) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodDexFundStakeForMining
- func (md MethodDexFundStakeForMining) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) (appendBlocks []*ledger.AccountBlock, err 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.QuotaTable) uint64
- func (md *MethodDexFundStakeForMining) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundStakeForMining) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodDexFundStakeForPrincipalSVIP
- func (md MethodDexFundStakeForPrincipalSVIP) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundStakeForPrincipalSVIP) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundStakeForPrincipalSVIP) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundStakeForPrincipalSVIP) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (md *MethodDexFundStakeForPrincipalSVIP) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundStakeForPrincipalSVIP) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundStakeForSVIP) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundStakeForSVIP) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundStakeForVIP) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundStakeForVIP) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodDexFundSwitchConfig
- func (md MethodDexFundSwitchConfig) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (md *MethodDexFundSwitchConfig) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (md *MethodDexFundSwitchConfig) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (md *MethodDexFundSwitchConfig) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (md *MethodDexFundSwitchConfig) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundSwitchConfig) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodDexFundTradeAdminConfig
- func (md MethodDexFundTradeAdminConfig) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) (blocks []*ledger.AccountBlock, err 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.QuotaTable) uint64
- func (md *MethodDexFundTradeAdminConfig) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundTradeAdminConfig) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundTransferTokenOwnership) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundTransferTokenOwnership) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundTriggerPeriodJob) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundTriggerPeriodJob) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexFundWithdraw) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexFundWithdraw) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexTradeCancelOrder) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexTradeCancelOrder) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexTradeCancelOrderByTransactionHash) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexTradeCancelOrderByTransactionHash) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexTradeClearExpiredOrders) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexTradeClearExpiredOrders) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexTradePlaceOrder) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexTradePlaceOrder) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (md *MethodDexTradeSyncNewMarket) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (md *MethodDexTradeSyncNewMarket) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodDisableReIssue
- func (p *MethodDisableReIssue) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodDisableReIssue) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodDisableReIssue) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodDisableReIssue) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (p *MethodDisableReIssue) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodDisableReIssue) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (p *MethodGetTokenInfo) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodGetTokenInfo) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (p *MethodIssue) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodIssue) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodReIssue
- func (p *MethodReIssue) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodReIssue) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodReIssue) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodReIssue) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (p *MethodReIssue) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodReIssue) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (p *MethodRegister) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodRegister) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodRevoke
- func (p *MethodRevoke) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodRevoke) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodRevoke) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodRevoke) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (p *MethodRevoke) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodRevoke) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodStake
- func (p *MethodStake) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodStake) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodStake) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodStake) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (p *MethodStake) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodStake) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodStakeV3
- func (p *MethodStakeV3) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodStakeV3) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodStakeV3) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodStakeV3) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (p *MethodStakeV3) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodStakeV3) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodTransferOwnership
- func (p *MethodTransferOwnership) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodTransferOwnership) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodTransferOwnership) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodTransferOwnership) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (p *MethodTransferOwnership) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodTransferOwnership) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodUpdateBlockProducingAddress
- func (p *MethodUpdateBlockProducingAddress) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodUpdateBlockProducingAddress) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodUpdateBlockProducingAddress) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodUpdateBlockProducingAddress) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (p *MethodUpdateBlockProducingAddress) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodUpdateBlockProducingAddress) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodUpdateRewardWithdrawAddress
- func (p *MethodUpdateRewardWithdrawAddress) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodUpdateRewardWithdrawAddress) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodUpdateRewardWithdrawAddress) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodUpdateRewardWithdrawAddress) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (p *MethodUpdateRewardWithdrawAddress) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodUpdateRewardWithdrawAddress) GetSendQuota(data []byte, gasTable *util.QuotaTable) (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.QuotaTable) uint64
- func (p *MethodVote) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodVote) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type MethodWithdrawReward
- func (p *MethodWithdrawReward) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, ...) ([]*ledger.AccountBlock, error)
- func (p *MethodWithdrawReward) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
- func (p *MethodWithdrawReward) GetFee(block *ledger.AccountBlock) (*big.Int, error)
- func (p *MethodWithdrawReward) GetReceiveQuota(gasTable *util.QuotaTable) uint64
- func (p *MethodWithdrawReward) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
- func (p *MethodWithdrawReward) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
- type Reward
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SbpStakeAmountPreMainnet defines SBP register stake amount before leaf fork SbpStakeAmountPreMainnet = new(big.Int).Mul(big.NewInt(5e5), util.AttovPerVite) // SbpStakeAmountMainnet defines SBP register stake amount after leaf fork SbpStakeAmountMainnet = new(big.Int).Mul(big.NewInt(1e6), util.AttovPerVite) )
Functions ¶
func CalcRewardByCycle ¶
func CalcRewardByCycle(db vm_db.VmDb, reader util.ConsensusReader, timestamp int64) (m map[string]*Reward, index uint64, err error)
CalcRewardByCycle calculates reward of all sbps in one cycle
func CalcRewardByIndex ¶
func CalcRewardByIndex(db vm_db.VmDb, reader util.ConsensusReader, index uint64) (m map[string]*Reward, err error)
CalcRewardByIndex calculates reward of all sbps in one cycle
func InitContractsConfig ¶
func InitContractsConfig(isTestParam bool)
InitContractsConfig init params of built-in contracts.This method is supposed be called when the node started.
func NewLog ¶
func NewLog(c abi.ABIContract, name string, params ...interface{}) *ledger.VmLog
NewLog generate vm log
func OnPlaceOrderFailed ¶
func OnPlaceOrderFailed(db vm_db.VmDb, order *dex.Order, marketInfo *dex.MarketInfo) ([]*ledger.AccountBlock, error)
func RewardDrained ¶
RewardDrained checks whether reward is drained
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.QuotaTable) (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.QuotaTable) uint64 // refund data at receive error GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool) }
BuiltinContractMethod defines interfaces of built-in contract method
func GetBuiltinContractMethod ¶
func GetBuiltinContractMethod(addr types.Address, methodSelector []byte, sbHeight uint64) (BuiltinContractMethod, bool, error)
GetBuiltinContractMethod finds method instance of built-in contract method by address and method id
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.QuotaTable) uint64
func (*MethodBurn) GetRefundData ¶ added in v1.3.0
func (p *MethodBurn) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodBurn) GetSendQuota ¶
func (p *MethodBurn) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodCancelDelegateStake ¶
type MethodCancelDelegateStake struct {
MethodName string
}
func (*MethodCancelDelegateStake) DoReceive ¶
func (p *MethodCancelDelegateStake) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodCancelDelegateStake) DoSend ¶
func (p *MethodCancelDelegateStake) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodCancelDelegateStake) GetFee ¶
func (p *MethodCancelDelegateStake) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodCancelDelegateStake) GetReceiveQuota ¶
func (p *MethodCancelDelegateStake) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodCancelDelegateStake) GetRefundData ¶
func (p *MethodCancelDelegateStake) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodCancelDelegateStake) GetSendQuota ¶
func (p *MethodCancelDelegateStake) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodCancelStake ¶
type MethodCancelStake struct {
MethodName string
}
func (*MethodCancelStake) DoReceive ¶
func (p *MethodCancelStake) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodCancelStake) DoSend ¶
func (p *MethodCancelStake) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodCancelStake) GetFee ¶
func (p *MethodCancelStake) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodCancelStake) GetReceiveQuota ¶
func (p *MethodCancelStake) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodCancelStake) GetRefundData ¶
func (p *MethodCancelStake) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodCancelStake) GetSendQuota ¶
func (p *MethodCancelStake) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodCancelStakeV3 ¶
type MethodCancelStakeV3 struct {
MethodName string
}
func (*MethodCancelStakeV3) DoReceive ¶
func (p *MethodCancelStakeV3) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodCancelStakeV3) DoSend ¶
func (p *MethodCancelStakeV3) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodCancelStakeV3) GetFee ¶
func (p *MethodCancelStakeV3) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodCancelStakeV3) GetReceiveQuota ¶
func (p *MethodCancelStakeV3) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodCancelStakeV3) GetRefundData ¶
func (p *MethodCancelStakeV3) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodCancelStakeV3) GetSendQuota ¶
func (p *MethodCancelStakeV3) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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
func (*MethodCancelVote) GetFee ¶
func (p *MethodCancelVote) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodCancelVote) GetReceiveQuota ¶
func (p *MethodCancelVote) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodCancelVote) GetRefundData ¶
func (p *MethodCancelVote) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodCancelVote) GetSendQuota ¶
func (p *MethodCancelVote) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodDelegateStake ¶
type MethodDelegateStake struct {
MethodName string
}
func (*MethodDelegateStake) DoReceive ¶
func (p *MethodDelegateStake) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDelegateStake) DoSend ¶
func (p *MethodDelegateStake) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDelegateStake) GetFee ¶
func (p *MethodDelegateStake) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDelegateStake) GetReceiveQuota ¶
func (p *MethodDelegateStake) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodDelegateStake) GetRefundData ¶
func (p *MethodDelegateStake) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDelegateStake) GetSendQuota ¶
func (p *MethodDelegateStake) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundBindInviteCode) GetRefundData ¶
func (md *MethodDexFundBindInviteCode) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundBindInviteCode) GetSendQuota ¶
func (md *MethodDexFundBindInviteCode) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundCancelDelegateStakeCallback) GetRefundData ¶
func (md *MethodDexFundCancelDelegateStakeCallback) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundCancelDelegateStakeCallback) GetSendQuota ¶
func (md *MethodDexFundCancelDelegateStakeCallback) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodDexFundCancelDelegateStakeCallbackV2 ¶
type MethodDexFundCancelDelegateStakeCallbackV2 struct {
MethodName string
}
func (MethodDexFundCancelDelegateStakeCallbackV2) DoReceive ¶
func (md MethodDexFundCancelDelegateStakeCallbackV2) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundCancelDelegateStakeCallbackV2) DoSend ¶
func (md *MethodDexFundCancelDelegateStakeCallbackV2) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundCancelDelegateStakeCallbackV2) GetFee ¶
func (md *MethodDexFundCancelDelegateStakeCallbackV2) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundCancelDelegateStakeCallbackV2) GetReceiveQuota ¶
func (md *MethodDexFundCancelDelegateStakeCallbackV2) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodDexFundCancelDelegateStakeCallbackV2) GetRefundData ¶
func (md *MethodDexFundCancelDelegateStakeCallbackV2) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundCancelDelegateStakeCallbackV2) GetSendQuota ¶
func (md *MethodDexFundCancelDelegateStakeCallbackV2) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodDexFundCancelStakeById ¶
type MethodDexFundCancelStakeById struct {
MethodName string
}
func (MethodDexFundCancelStakeById) DoReceive ¶
func (md MethodDexFundCancelStakeById) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundCancelStakeById) DoSend ¶
func (md *MethodDexFundCancelStakeById) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundCancelStakeById) GetFee ¶
func (md *MethodDexFundCancelStakeById) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundCancelStakeById) GetReceiveQuota ¶
func (md *MethodDexFundCancelStakeById) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodDexFundCancelStakeById) GetRefundData ¶
func (md *MethodDexFundCancelStakeById) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundCancelStakeById) GetSendQuota ¶
func (md *MethodDexFundCancelStakeById) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundConfigMarketAgents) GetRefundData ¶
func (md *MethodDexFundConfigMarketAgents) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundConfigMarketAgents) GetSendQuota ¶
func (md *MethodDexFundConfigMarketAgents) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundCreateNewInviter) GetRefundData ¶
func (md *MethodDexFundCreateNewInviter) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundCreateNewInviter) GetSendQuota ¶
func (md *MethodDexFundCreateNewInviter) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundDelegateStakeCallback) GetRefundData ¶
func (md *MethodDexFundDelegateStakeCallback) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundDelegateStakeCallback) GetSendQuota ¶
func (md *MethodDexFundDelegateStakeCallback) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodDexFundDelegateStakeCallbackV2 ¶
type MethodDexFundDelegateStakeCallbackV2 struct {
MethodName string
}
func (MethodDexFundDelegateStakeCallbackV2) DoReceive ¶
func (md MethodDexFundDelegateStakeCallbackV2) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) (blocks []*ledger.AccountBlock, err error)
func (*MethodDexFundDelegateStakeCallbackV2) DoSend ¶
func (md *MethodDexFundDelegateStakeCallbackV2) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundDelegateStakeCallbackV2) GetFee ¶
func (md *MethodDexFundDelegateStakeCallbackV2) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundDelegateStakeCallbackV2) GetReceiveQuota ¶
func (md *MethodDexFundDelegateStakeCallbackV2) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodDexFundDelegateStakeCallbackV2) GetRefundData ¶
func (md *MethodDexFundDelegateStakeCallbackV2) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundDelegateStakeCallbackV2) GetSendQuota ¶
func (md *MethodDexFundDelegateStakeCallbackV2) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundDeposit) GetRefundData ¶
func (md *MethodDexFundDeposit) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundDeposit) GetSendQuota ¶
func (md *MethodDexFundDeposit) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundDexAdminConfig) GetRefundData ¶
func (md *MethodDexFundDexAdminConfig) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundDexAdminConfig) GetSendQuota ¶
func (md *MethodDexFundDexAdminConfig) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundEndorseVx) GetRefundData ¶
func (md *MethodDexFundEndorseVx) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundEndorseVx) GetSendQuota ¶
func (md *MethodDexFundEndorseVx) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundGetTokenInfoCallback) GetRefundData ¶
func (md *MethodDexFundGetTokenInfoCallback) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundGetTokenInfoCallback) GetSendQuota ¶
func (md *MethodDexFundGetTokenInfoCallback) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodDexFundLockVxForDividend ¶
type MethodDexFundLockVxForDividend struct {
MethodName string
}
func (MethodDexFundLockVxForDividend) DoReceive ¶
func (md MethodDexFundLockVxForDividend) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundLockVxForDividend) DoSend ¶
func (md *MethodDexFundLockVxForDividend) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundLockVxForDividend) GetFee ¶
func (md *MethodDexFundLockVxForDividend) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundLockVxForDividend) GetReceiveQuota ¶
func (md *MethodDexFundLockVxForDividend) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodDexFundLockVxForDividend) GetRefundData ¶
func (md *MethodDexFundLockVxForDividend) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundLockVxForDividend) GetSendQuota ¶
func (md *MethodDexFundLockVxForDividend) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundMarketAdminConfig) GetRefundData ¶
func (md *MethodDexFundMarketAdminConfig) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundMarketAdminConfig) GetSendQuota ¶
func (md *MethodDexFundMarketAdminConfig) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundNotifyTime) GetRefundData ¶
func (md *MethodDexFundNotifyTime) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundNotifyTime) GetSendQuota ¶
func (md *MethodDexFundNotifyTime) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundOpenNewMarket) GetRefundData ¶
func (md *MethodDexFundOpenNewMarket) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundOpenNewMarket) GetSendQuota ¶
func (md *MethodDexFundOpenNewMarket) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundPlaceAgentOrder) GetRefundData ¶
func (md *MethodDexFundPlaceAgentOrder) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundPlaceAgentOrder) GetSendQuota ¶
func (md *MethodDexFundPlaceAgentOrder) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundPlaceOrder) GetRefundData ¶
func (md *MethodDexFundPlaceOrder) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundPlaceOrder) GetSendQuota ¶
func (md *MethodDexFundPlaceOrder) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundSettleMakerMinedVx) GetRefundData ¶
func (md *MethodDexFundSettleMakerMinedVx) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundSettleMakerMinedVx) GetSendQuota ¶
func (md *MethodDexFundSettleMakerMinedVx) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundSettleOrders) GetRefundData ¶
func (md *MethodDexFundSettleOrders) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundSettleOrders) GetSendQuota ¶
func (md *MethodDexFundSettleOrders) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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) (appendBlocks []*ledger.AccountBlock, err 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.QuotaTable) uint64
func (*MethodDexFundStakeForMining) GetRefundData ¶
func (md *MethodDexFundStakeForMining) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundStakeForMining) GetSendQuota ¶
func (md *MethodDexFundStakeForMining) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodDexFundStakeForPrincipalSVIP ¶
type MethodDexFundStakeForPrincipalSVIP struct {
MethodName string
}
func (MethodDexFundStakeForPrincipalSVIP) DoReceive ¶
func (md MethodDexFundStakeForPrincipalSVIP) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundStakeForPrincipalSVIP) DoSend ¶
func (md *MethodDexFundStakeForPrincipalSVIP) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundStakeForPrincipalSVIP) GetFee ¶
func (md *MethodDexFundStakeForPrincipalSVIP) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundStakeForPrincipalSVIP) GetReceiveQuota ¶
func (md *MethodDexFundStakeForPrincipalSVIP) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodDexFundStakeForPrincipalSVIP) GetRefundData ¶
func (md *MethodDexFundStakeForPrincipalSVIP) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundStakeForPrincipalSVIP) GetSendQuota ¶
func (md *MethodDexFundStakeForPrincipalSVIP) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundStakeForSVIP) GetRefundData ¶
func (md *MethodDexFundStakeForSVIP) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundStakeForSVIP) GetSendQuota ¶
func (md *MethodDexFundStakeForSVIP) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundStakeForVIP) GetRefundData ¶
func (md *MethodDexFundStakeForVIP) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundStakeForVIP) GetSendQuota ¶
func (md *MethodDexFundStakeForVIP) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodDexFundSwitchConfig ¶
type MethodDexFundSwitchConfig struct {
MethodName string
}
func (MethodDexFundSwitchConfig) DoReceive ¶
func (md MethodDexFundSwitchConfig) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDexFundSwitchConfig) DoSend ¶
func (md *MethodDexFundSwitchConfig) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDexFundSwitchConfig) GetFee ¶
func (md *MethodDexFundSwitchConfig) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDexFundSwitchConfig) GetReceiveQuota ¶
func (md *MethodDexFundSwitchConfig) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodDexFundSwitchConfig) GetRefundData ¶
func (md *MethodDexFundSwitchConfig) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundSwitchConfig) GetSendQuota ¶
func (md *MethodDexFundSwitchConfig) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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) (blocks []*ledger.AccountBlock, err 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.QuotaTable) uint64
func (*MethodDexFundTradeAdminConfig) GetRefundData ¶
func (md *MethodDexFundTradeAdminConfig) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundTradeAdminConfig) GetSendQuota ¶
func (md *MethodDexFundTradeAdminConfig) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundTransferTokenOwnership) GetRefundData ¶
func (md *MethodDexFundTransferTokenOwnership) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundTransferTokenOwnership) GetSendQuota ¶
func (md *MethodDexFundTransferTokenOwnership) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundTriggerPeriodJob) GetRefundData ¶
func (md *MethodDexFundTriggerPeriodJob) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundTriggerPeriodJob) GetSendQuota ¶
func (md *MethodDexFundTriggerPeriodJob) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexFundWithdraw) GetRefundData ¶
func (md *MethodDexFundWithdraw) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexFundWithdraw) GetSendQuota ¶
func (md *MethodDexFundWithdraw) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexTradeCancelOrder) GetRefundData ¶
func (md *MethodDexTradeCancelOrder) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexTradeCancelOrder) GetSendQuota ¶
func (md *MethodDexTradeCancelOrder) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexTradeCancelOrderByTransactionHash) GetRefundData ¶
func (md *MethodDexTradeCancelOrderByTransactionHash) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexTradeCancelOrderByTransactionHash) GetSendQuota ¶
func (md *MethodDexTradeCancelOrderByTransactionHash) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexTradeClearExpiredOrders) GetRefundData ¶
func (md *MethodDexTradeClearExpiredOrders) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexTradeClearExpiredOrders) GetSendQuota ¶
func (md *MethodDexTradeClearExpiredOrders) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexTradePlaceOrder) GetRefundData ¶
func (md *MethodDexTradePlaceOrder) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexTradePlaceOrder) GetSendQuota ¶
func (md *MethodDexTradePlaceOrder) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodDexTradeSyncNewMarket) GetRefundData ¶
func (md *MethodDexTradeSyncNewMarket) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDexTradeSyncNewMarket) GetSendQuota ¶
func (md *MethodDexTradeSyncNewMarket) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodDisableReIssue ¶
type MethodDisableReIssue struct {
MethodName string
}
func (*MethodDisableReIssue) DoReceive ¶
func (p *MethodDisableReIssue) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodDisableReIssue) DoSend ¶
func (p *MethodDisableReIssue) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodDisableReIssue) GetFee ¶
func (p *MethodDisableReIssue) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodDisableReIssue) GetReceiveQuota ¶
func (p *MethodDisableReIssue) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodDisableReIssue) GetRefundData ¶
func (p *MethodDisableReIssue) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodDisableReIssue) GetSendQuota ¶
func (p *MethodDisableReIssue) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodGetTokenInfo) GetRefundData ¶
func (p *MethodGetTokenInfo) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodGetTokenInfo) GetSendQuota ¶
func (p *MethodGetTokenInfo) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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.QuotaTable) uint64
func (*MethodIssue) GetRefundData ¶ added in v1.3.0
func (p *MethodIssue) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodIssue) GetSendQuota ¶
func (p *MethodIssue) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodReIssue ¶
type MethodReIssue struct {
MethodName string
}
func (*MethodReIssue) DoReceive ¶
func (p *MethodReIssue) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodReIssue) DoSend ¶
func (p *MethodReIssue) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodReIssue) GetFee ¶
func (p *MethodReIssue) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodReIssue) GetReceiveQuota ¶
func (p *MethodReIssue) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodReIssue) GetRefundData ¶
func (p *MethodReIssue) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodReIssue) GetSendQuota ¶
func (p *MethodReIssue) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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
func (*MethodRegister) GetFee ¶
func (p *MethodRegister) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodRegister) GetReceiveQuota ¶
func (p *MethodRegister) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodRegister) GetRefundData ¶
func (p *MethodRegister) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodRegister) GetSendQuota ¶
func (p *MethodRegister) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodRevoke ¶
type MethodRevoke struct {
MethodName string
}
func (*MethodRevoke) DoReceive ¶
func (p *MethodRevoke) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodRevoke) DoSend ¶
func (p *MethodRevoke) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodRevoke) GetFee ¶
func (p *MethodRevoke) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodRevoke) GetReceiveQuota ¶
func (p *MethodRevoke) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodRevoke) GetRefundData ¶
func (p *MethodRevoke) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodRevoke) GetSendQuota ¶
func (p *MethodRevoke) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodStake ¶
type MethodStake struct {
MethodName string
}
func (*MethodStake) DoReceive ¶
func (p *MethodStake) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodStake) DoSend ¶
func (p *MethodStake) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodStake) GetFee ¶
func (p *MethodStake) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodStake) GetReceiveQuota ¶
func (p *MethodStake) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodStake) GetRefundData ¶
func (p *MethodStake) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodStake) GetSendQuota ¶
func (p *MethodStake) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodStakeV3 ¶
type MethodStakeV3 struct {
MethodName string
}
func (*MethodStakeV3) DoReceive ¶
func (p *MethodStakeV3) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodStakeV3) DoSend ¶
func (p *MethodStakeV3) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodStakeV3) GetFee ¶
func (p *MethodStakeV3) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodStakeV3) GetReceiveQuota ¶
func (p *MethodStakeV3) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodStakeV3) GetRefundData ¶
func (p *MethodStakeV3) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodStakeV3) GetSendQuota ¶
func (p *MethodStakeV3) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodTransferOwnership ¶
type MethodTransferOwnership struct {
MethodName string
}
func (*MethodTransferOwnership) DoReceive ¶
func (p *MethodTransferOwnership) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodTransferOwnership) DoSend ¶
func (p *MethodTransferOwnership) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodTransferOwnership) GetFee ¶
func (p *MethodTransferOwnership) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodTransferOwnership) GetReceiveQuota ¶
func (p *MethodTransferOwnership) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodTransferOwnership) GetRefundData ¶
func (p *MethodTransferOwnership) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodTransferOwnership) GetSendQuota ¶
func (p *MethodTransferOwnership) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodUpdateBlockProducingAddress ¶
type MethodUpdateBlockProducingAddress struct {
MethodName string
}
func (*MethodUpdateBlockProducingAddress) DoReceive ¶
func (p *MethodUpdateBlockProducingAddress) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodUpdateBlockProducingAddress) DoSend ¶
func (p *MethodUpdateBlockProducingAddress) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodUpdateBlockProducingAddress) GetFee ¶
func (p *MethodUpdateBlockProducingAddress) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodUpdateBlockProducingAddress) GetReceiveQuota ¶
func (p *MethodUpdateBlockProducingAddress) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodUpdateBlockProducingAddress) GetRefundData ¶
func (p *MethodUpdateBlockProducingAddress) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodUpdateBlockProducingAddress) GetSendQuota ¶
func (p *MethodUpdateBlockProducingAddress) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodUpdateRewardWithdrawAddress ¶
type MethodUpdateRewardWithdrawAddress struct {
MethodName string
}
func (*MethodUpdateRewardWithdrawAddress) DoReceive ¶
func (p *MethodUpdateRewardWithdrawAddress) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodUpdateRewardWithdrawAddress) DoSend ¶
func (p *MethodUpdateRewardWithdrawAddress) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodUpdateRewardWithdrawAddress) GetFee ¶
func (p *MethodUpdateRewardWithdrawAddress) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodUpdateRewardWithdrawAddress) GetReceiveQuota ¶
func (p *MethodUpdateRewardWithdrawAddress) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodUpdateRewardWithdrawAddress) GetRefundData ¶
func (p *MethodUpdateRewardWithdrawAddress) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodUpdateRewardWithdrawAddress) GetSendQuota ¶
func (p *MethodUpdateRewardWithdrawAddress) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
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
func (*MethodVote) GetFee ¶
func (p *MethodVote) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodVote) GetReceiveQuota ¶
func (p *MethodVote) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodVote) GetRefundData ¶
func (p *MethodVote) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodVote) GetSendQuota ¶
func (p *MethodVote) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type MethodWithdrawReward ¶
type MethodWithdrawReward struct {
MethodName string
}
func (*MethodWithdrawReward) DoReceive ¶
func (p *MethodWithdrawReward) DoReceive(db vm_db.VmDb, block *ledger.AccountBlock, sendBlock *ledger.AccountBlock, vm vmEnvironment) ([]*ledger.AccountBlock, error)
func (*MethodWithdrawReward) DoSend ¶
func (p *MethodWithdrawReward) DoSend(db vm_db.VmDb, block *ledger.AccountBlock) error
func (*MethodWithdrawReward) GetFee ¶
func (p *MethodWithdrawReward) GetFee(block *ledger.AccountBlock) (*big.Int, error)
func (*MethodWithdrawReward) GetReceiveQuota ¶
func (p *MethodWithdrawReward) GetReceiveQuota(gasTable *util.QuotaTable) uint64
func (*MethodWithdrawReward) GetRefundData ¶
func (p *MethodWithdrawReward) GetRefundData(sendBlock *ledger.AccountBlock, sbHeight uint64) ([]byte, bool)
func (*MethodWithdrawReward) GetSendQuota ¶
func (p *MethodWithdrawReward) GetSendQuota(data []byte, gasTable *util.QuotaTable) (uint64, error)
type Reward ¶
type Reward struct { VoteReward *big.Int BlockReward *big.Int TotalReward *big.Int BlockNum uint64 ExpectedBlockNum uint64 }
Reward defines snapshot reward details
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)
CalcReward calculates available reward of a sbp
Source Files ¶
Click to show internal directories.
Click to hide internal directories.