Documentation ¶
Index ¶
- Constants
- Variables
- func GetPledgeBeneficialKey(beneficial types.Address) []byte
- func GetPledgeKey(addr types.Address, pledgeBeneficialKey []byte) []byte
- func GetStorageKey(key []byte) []byte
- func IsPledgeKey(key []byte) bool
- func NewTokenHash(address types.Address, previous types.Hash, tokenName string) types.Hash
- func ParseTokenInfo(data []byte) (*types.TokenInfo, error)
- type ParamCancelPledge
- type ParamMintage
- type PledgeInfo
- type VariablePledgeBeneficial
Constants ¶
View Source
const ( MethodNameMintage = "Mintage" MethodNameMintageWithdraw = "Withdraw" VariableNameToken = "token" )
View Source
const ( MethodNamePledge = "Pledge" MethodNameWithdrawPledge = "WithdrawPledge" VariableNamePledgeInfo = "pledgeInfo" VariableNamePledgeBeneficial = "pledgeBeneficial" )
Variables ¶
View Source
var (
ABIMintage, _ = abi.JSONToABIContract(strings.NewReader(jsonMintage))
)
View Source
var (
ABIPledge, _ = abi.JSONToABIContract(strings.NewReader(jsonPledge))
)
Functions ¶
func GetPledgeBeneficialKey ¶
func GetStorageKey ¶
func IsPledgeKey ¶
func NewTokenHash ¶
Types ¶
type ParamMintage ¶
type PledgeInfo ¶
Click to show internal directories.
Click to hide internal directories.