Documentation ¶
Index ¶
- Constants
- Variables
- func ABI(id string, abiSet *abiSet, version string) *contract.Contract
- func CheckCost(h *host.Host, cost contract.Cost) bool
- func DomainABI() *contract.Contract
- func GasABI() *contract.Contract
- func SystemABI() *contract.Contract
- func SystemContractABI(conID, version string) *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 ¶
View Source
var ( SystemPermission = "system" TokenPermission = "token" TransferPermission = "transfer" //ActivePermission = "active" DomainPermission = "domain" AdminAccount = "admin" )
permission used by native contract
Functions ¶
func SystemContractABI ¶
SystemContractABI return system contract abi
func Token721ABI ¶
Token721ABI generate token.iost abi and contract
Types ¶
Click to show internal directories.
Click to hide internal directories.