contracts

package
v2.7.1-hack+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2019 License: GPL-3.0 Imports: 20 Imported by: 5

Documentation

Index

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

func RewardDrained(reward *Reward, drained bool) bool

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 (*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 (*MethodDexFundBindInviteCode) GetFee

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 (*MethodDexFundCancelDelegateStakeCallback) GetFee

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 (*MethodDexFundCancelDelegateStakeCallbackV2) GetFee

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 (*MethodDexFundCancelStakeById) GetFee

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 (*MethodDexFundConfigMarketAgents) GetFee

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 (*MethodDexFundCreateNewInviter) GetFee

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 (*MethodDexFundDelegateStakeCallback) GetFee

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 (*MethodDexFundDelegateStakeCallbackV2) GetFee

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 (*MethodDexFundDexAdminConfig) GetFee

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 (*MethodDexFundGetTokenInfoCallback) GetFee

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 (*MethodDexFundLockVxForDividend) GetFee

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 (*MethodDexFundMarketAdminConfig) GetFee

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 (*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 (*MethodDexFundPlaceAgentOrder) GetFee

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 (*MethodDexFundSettleMakerMinedVx) GetFee

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 (*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 (*MethodDexFundStakeForMining) GetFee

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 (*MethodDexFundStakeForPrincipalSVIP) GetFee

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 (*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 (*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 (*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 (*MethodDexFundTradeAdminConfig) GetFee

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 (*MethodDexFundTransferTokenOwnership) GetFee

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 (*MethodDexFundTriggerPeriodJob) GetFee

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 (*MethodDexTradeCancelOrderByTransactionHash) GetFee

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 (*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 (*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 (*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 (*MethodUpdateBlockProducingAddress) GetFee

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 (*MethodUpdateRewardWithdrawAddress) GetFee

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

Directories

Path Synopsis
dex

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL