Documentation ¶
Index ¶
- Constants
- func ABI(id string, abiSet *abiSet) *contract.Contract
- func CheckCost(h *host.Host, cost contract.Cost) bool
- func DomainABI() *contract.Contract
- func GasABI() *contract.Contract
- func SystemABI() *contract.Contract
- func Token721ABI() *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" OnlyIssuerCanTransferMapField = "onlyIssuerCanTransfer" 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 GasContractName = "gas.iost"
GasContractName the contract name
View Source
const UnpledgeFreezeSeconds int64 = 3 * 24 * 3600
UnpledgeFreezeSeconds coins will be frozen for 3 days after being unpledged
Variables ¶
This section is empty.
Functions ¶
func Token721ABI ¶
Token721ABI generate token.iost abi and contract
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.