Documentation ¶
Index ¶
- Constants
- Variables
- func ABI(id string, abiSet *abiSet) *contract.Contract
- func CheckCost(h *host.Host, cost contract.Cost) bool
- func GasABI() *contract.Contract
- func SystemABI() *contract.Contract
- func TokenABI() *contract.Contract
- type Impl
- func (i *Impl) Compile(contract *contract.Contract) (string, error)
- func (i *Impl) Init() error
- func (i *Impl) LoadAndCall(h *host.Host, con *contract.Contract, api string, args ...interface{}) (rtn []interface{}, cost contract.Cost, err error)
- func (i *Impl) Release()
- func (i *Impl) Validate(c *contract.Contract) error
Constants ¶
View Source
const ( TokenInfoMapPrefix = "TI" TokenBalanceMapPrefix = "TB" TokenFreezeMapPrefix = "TF" IssuerMapField = "issuer" SupplyMapField = "supply" TotalSupplyMapField = "totalSupply" CanTransferMapField = "canTransfer" DefaultRateMapField = "defaultRate" DecimalMapField = "decimal" FullNameMapField = "fullName" )
const prefix
View Source
const ( Token721InfoMapPrefix = "T721I" Token721BalanceMapPrefix = "T721B" Token721IssuerMapField = "T721issuer" Token721MetadataMapPrefix = "T721M" Token721MetadataKeySeparator = "#" )
const prefix
View Source
const IOSTRatio int64 = 100000000
IOSTRatio ...
Variables ¶
View Source
var DomainABIs *abiSet
DomainABIs list of domain abi
View Source
var GasFulfillSeconds int64 = 2 * 24 * 3600
GasFulfillSeconds it takes 2 days to fulfill the gas buffer.
View Source
var GasImmediateReward = &common.Fixed{Value: 10000 * 100, Decimal: 2}
GasImmediateReward immediate reward per IOST
View Source
var GasIncreaseRate = GasLimit.Sub(GasImmediateReward).Div(GasFulfillSeconds)
GasIncreaseRate gas increase per IOST per second
View Source
var GasLimit = &common.Fixed{Value: 30000 * 100, Decimal: 2}
GasLimit gas limit per IOST
View Source
var GasMinPledge = &common.Fixed{Value: GasMinPledgeInIOST * IOSTRatio, Decimal: 8}
GasMinPledge Every user must pledge a minimum amount of IOST (including GAS and RAM)
View Source
var GasMinPledgeInIOST int64 = 10
GasMinPledgeInIOST Every user must pledge a minimum amount of IOST
View Source
var UnpledgeFreezeSeconds int64 = 3 * 24 * 3600
UnpledgeFreezeSeconds coins will be frozen for 3 days after being unpledged
Functions ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.