abi

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

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 GetPledgeBeneficialKey(beneficial types.Address) []byte

func GetPledgeKey

func GetPledgeKey(addr types.Address, pledgeBeneficialKey []byte) []byte

func GetStorageKey

func GetStorageKey(key []byte) []byte

func IsPledgeKey

func IsPledgeKey(key []byte) bool

func NewTokenHash

func NewTokenHash(address types.Address, previous types.Hash, tokenName string) types.Hash

func ParseTokenInfo

func ParseTokenInfo(data []byte) (*types.TokenInfo, error)

Types

type ParamCancelPledge

type ParamCancelPledge struct {
	Beneficial types.Address
	Amount     *big.Int
}

type ParamMintage

type ParamMintage struct {
	TokenId     types.Hash
	TokenName   string
	TokenSymbol string
	TotalSupply *big.Int
	Decimals    uint8
}

type PledgeInfo

type PledgeInfo struct {
	Amount            *big.Int
	WithdrawTime      uint64
	BeneficialAddress types.Address
}

type VariablePledgeBeneficial

type VariablePledgeBeneficial struct {
	Amount *big.Int
}

Jump to

Keyboard shortcuts

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