abi

package
v1.4.2-beta Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JsonDestroy = `` /* 626-byte string literal not displayed */

	MethodNameDestroy   = "Destroy"
	VariableDestroyInfo = "destroyInfo"
	KeySize             = types.AddressSize + types.HashSize
)
View Source
const (
	JsonDoDSettlement = `` /* 2583-byte string literal not displayed */

	MethodNameDoDSettleCreateOrder       = "DoDSettleCreateOrder"
	MethodNameDoDSettleUpdateOrderInfo   = "DoDSettleUpdateOrderInfo"
	MethodNameDoDSettleChangeOrder       = "DoDSettleChangeOrder"
	MethodNameDoDSettleTerminateOrder    = "DoDSettleTerminateOrder"
	MethodNameDoDSettleUpdateProductInfo = "DoDSettleUpdateProductInfo"
)
View Source
const (
	DoDSettleDBTableOrder uint8 = iota
	DoDSettleDBTableProduct
	DoDSettleDBTableOrderIdMap
	DoDSettleDBTableUser
	DoDSettleDBTableSellerConnActive
	DoDSettleDBTableBuyerConnActive
	DoDSettleDBTableConnRawParam
	DoDSettleDBTablePAYGTimeSpan
	DoDSettleDBTableProductToOrder
	DoDSettleDBTableUserProduct
	DoDSettleDBTableOrderToProduct
)
View Source
const (
	JsonKYCStatus = `` /* 703-byte string literal not displayed */

	MethodNameKYCAdminHandOver      = "KYCAdminHandOver"
	MethodNameKYCStatusUpdate       = "KYCStatusUpdate"
	MethodNameKYCTradeAddressUpdate = "KYCTradeAddressUpdate"
	MethodNameKYCOperatorUpdate     = "KYCOperatorUpdate"
)
View Source
const (
	KYCDataAdmin uint8 = iota
	KYCDataStatus
	KYCDataAddress
	KYCDataTradeAddress
	KYCDataOperator
)
View Source
const (
	KYCActionAdd uint8 = iota
	KYCActionRemove
	KYCActionInvalid
)
View Source
const (
	JsonMiner = `` /* 552-byte string literal not displayed */

	MethodNameMinerReward   = "MinerReward"
	VariableNameMinerReward = "MinerRewardInfo"
)
View Source
const (
	JsonNEP5Pledge = `` /* 694-byte string literal not displayed */

	MethodNEP5Pledge         = "NEP5Pledge"
	MethodWithdrawNEP5Pledge = "WithdrawNEP5Pledge"
	VariableNEP5PledgeInfo   = "nep5PledgeInfo"
)
View Source
const (
	JsonPermission = `` /* 335-byte string literal not displayed */

	MethodNamePermissionAdminHandOver = "PermissionAdminHandOver"
	MethodNamePermissionNodeUpdate    = "PermissionNodeUpdate"
)
View Source
const (
	PermissionDataAdmin uint8 = iota
	PermissionDataNode
)
View Source
const (
	JsonPrivacyDemoKV = `` /* 138-byte string literal not displayed */

	MethodNamePrivacyDemoKVSet = "PrivacyDemoKVSet"
)
View Source
const (
	JsonPtmKey = `` /* 369-byte string literal not displayed */

	MethodNamePtmKeyDelete       = "PtmKeyDelete"
	MethodNamePtmKeyUpdate       = "PtmKeyUpdate"
	VariableNamePtmKeyStorageVar = "PtmKeyStorageVar"
)
View Source
const (
	// contractAddr(32) + account(32) + btype(2) => pubkey + valid
	PtmKeyAccIndexS   = types.AddressSize + 1
	PtmKeyAccIndexE   = PtmKeyAccIndexS + 32
	PtmKeyBtypeIndexS = PtmKeyAccIndexE + 1
	PtmKeyBtypeIndexE = PtmKeyBtypeIndexS + 2
)
View Source
const (
	JsonPublicKeyDistribution = `` /* 2356-byte string literal not displayed */

	MethodNamePKDVerifierRegister   = "PKDVerifierRegister"
	MethodNamePKDVerifierUnregister = "PKDVerifierUnregister"
	MethodNamePKDVerifierHeart      = "PKDVerifierHeart"
	MethodNamePKDOracle             = "PKDOracle"
	MethodNamePKDPublish            = "PKDPublish"
	MethodNamePKDUnPublish          = "PKDUnPublish"
	MethodNamePKDReward             = "PKDReward"
	VariableNamePKDPublishInfo      = "PKDPublishInfo"
	VariableNamePKDOracleInfo       = "PKDOracleInfo"
	VariableNamePKDVerifierInfo     = "PKDVerifierInfo"
	VariableNamePKDRewardInfo       = "PKDRewardInfo"
)
View Source
const (
	PKDStorageTypeVerifier byte = iota
	PKDStorageTypePublisher
	PKDStorageTypeOracle
	PKDStorageTypeReward
)
View Source
const (
	// contractAddr(32) + pkdType(1) + type(4) + account(32) => info + valid
	VerifierTypeIndexS = 1 + types.AddressSize
	VerifierTypeIndexE = VerifierTypeIndexS + 4
	VerifierAccIndexS  = VerifierTypeIndexE
	VerifierAccIndexE  = VerifierAccIndexS + 32
)
View Source
const (
	// contractAddr(32) + pkdType(1) + type(4) + id(32) + pk(32) + blockHash(32) + account(32) => code(16)
	OracleTypeIndexS = 1 + types.AddressSize
	OracleTypeIndexE = OracleTypeIndexS + 4
	OracleIdIndexS   = OracleTypeIndexE
	OracleIdIndexE   = OracleIdIndexS + sha256.Size
	OraclePkIndexS   = OracleIdIndexE
	OraclePkIndexE   = OraclePkIndexS + ed25519.PublicKeySize
	OracleHashIndexS = OraclePkIndexE
	OracleHashIndexE = OracleHashIndexS + 32
	OracleAccIndexS  = OracleHashIndexE
	OracleAccIndexE  = OracleAccIndexS + 32
)
View Source
const (
	// each accounts or different accounts can send type + id + pk multiple times, so we need a flag to distinguish,
	// here we use previous block's hash
	//  contractAddr(32) + pkdType(1) + type(4) + id(32) + pk(32) + prevHash(32) => account + verifiers + codes + fee
	PublishTypeIndexS = 1 + types.AddressSize
	PublishTypeIndexE = PublishTypeIndexS + 4
	PublishIdIndexS   = PublishTypeIndexE
	PublishIdIndexE   = PublishIdIndexS + sha256.Size
	PublishPkIndexS   = PublishIdIndexE
	PublishPkIndexE   = PublishPkIndexS + ed25519.PublicKeySize
	PublishHashIndexS = PublishPkIndexE
	PublishHashIndexE = PublishHashIndexS + 32
)
View Source
const (
	JsonRep = `` /* 547-byte string literal not displayed */

	MethodNameRepReward   = "RepReward"
	VariableNameRepReward = "RepRewardInfo"
)
View Source
const (
	JsonRewards = `` /* 1272-byte string literal not displayed */

	MethodNameUnsignedAirdropRewards   = "UnsignedAirdropRewards"
	MethodNameAirdropRewards           = "AirdropRewards"
	MethodNameUnsignedConfidantRewards = "UnsignedConfidantRewards"
	MethodNameConfidantRewards         = "ConfidantRewards"
	VariableNameRewards                = "rewardsInfo"
)
View Source
const (
	Confidant = iota
	Rewards
)
View Source
const (
	KYCCommentMaxLen = 128
)
View Source
const (
	PermissionCommentMaxLen = 128
)
View Source
const (
	PrivacyDemoKVStorageTypeKV byte = iota
)

Variables

View Source
var (
	KYCStatusABI, _ = abi.JSONToABIContract(strings.NewReader(JsonKYCStatus))
	KYCStatusMap    = map[string]bool{
		"KYC_STATUS_NOT_STARTED":            true,
		"KYC_STATUS_IN_PROGRESS":            true,
		"KYC_STATUS_PROCESSING":             true,
		"KYC_STATUS_FAILED_JUMIO":           true,
		"KYC_STATUS_FAILED_COMPLYADVANTAGE": true,
		"KYC_STATUS_DENIED":                 true,
		"KYC_STATUS_PENDING":                true,
		"KYC_STATUS_PENDING_INSTITUTION":    true,
		"KYC_STATUS_APPROVED":               true,
		"KYC_STATUS_SET_FOR_CLOSURE":        true,
	}
)

Functions

func CheckOracleInfoExist added in v1.4.0

func CheckOracleInfoExist(ctx *vmstore.VMContext, account types.Address, ot uint32, id types.Hash, kt uint16, pk []byte, hash types.Hash) bool

func CheckPublishInfoExist added in v1.4.0

func CheckPublishInfoExist(ctx *vmstore.VMContext, account types.Address, pt uint32, id types.Hash, kt uint16, pk []byte, hash types.Hash) bool

func CheckVerifierExist added in v1.4.0

func CheckVerifierExist(ctx *vmstore.VMContext, account types.Address, vType uint32) bool

func CheckVerifierInfoExist added in v1.4.0

func CheckVerifierInfoExist(ctx *vmstore.VMContext, account types.Address, vType uint32, vInfo string, vKey []byte) bool

func DoDSettleBillingTypeNames added in v1.4.0

func DoDSettleBillingTypeNames() []string

DoDSettleBillingTypeNames returns a list of possible string values of DoDSettleBillingType.

func DoDSettleBillingUnitNames added in v1.4.0

func DoDSettleBillingUnitNames() []string

DoDSettleBillingUnitNames returns a list of possible string values of DoDSettleBillingUnit.

func DoDSettleBillingUnitRound added in v1.4.0

func DoDSettleBillingUnitRound(unit DoDSettleBillingUnit, s, t int64) int64

func DoDSettleCalcAdditionPrice added in v1.4.0

func DoDSettleCalcAdditionPrice(ns, ne int64, np float64, conn *DoDSettleConnectionInfo) (float64, error)

func DoDSettleCalcAmount added in v1.4.0

func DoDSettleCalcAmount(bs, be, s, e int64, price float64, dc *DoDSettleInvoiceConnDynamic) float64

func DoDSettleCalcBillingUnit added in v1.4.0

func DoDSettleCalcBillingUnit(unit DoDSettleBillingUnit, s, e int64) int

func DoDSettleContractStateNames added in v1.4.0

func DoDSettleContractStateNames() []string

DoDSettleContractStateNames returns a list of possible string values of DoDSettleContractState.

func DoDSettleGetInternalIdByOrderId added in v1.4.0

func DoDSettleGetInternalIdByOrderId(ctx *vmstore.VMContext, seller types.Address, orderId string) (types.Hash, error)

func DoDSettleGetInternalIdListByAddress added in v1.4.0

func DoDSettleGetInternalIdListByAddress(ctx *vmstore.VMContext, address types.Address) ([]types.Hash, error)

func DoDSettleGetProductStorageKeyByProductId added in v1.4.0

func DoDSettleGetProductStorageKeyByProductId(ctx *vmstore.VMContext, pid types.Hash) (types.Hash, error)

func DoDSettleInheritParam added in v1.4.0

func DoDSettleInheritParam(src, dst *DoDSettleConnectionDynamicParam)

func DoDSettleInheritRawParam added in v1.4.0

func DoDSettleInheritRawParam(src *DoDSettleConnectionRawParam, dst *DoDSettleConnectionParam)

func DoDSettleNeedInvoice added in v1.4.0

func DoDSettleNeedInvoice(bs, be, s, e int64) bool

func DoDSettleOrderStateNames added in v1.4.0

func DoDSettleOrderStateNames() []string

DoDSettleOrderStateNames returns a list of possible string values of DoDSettleOrderState.

func DoDSettleOrderTypeNames added in v1.4.0

func DoDSettleOrderTypeNames() []string

DoDSettleOrderTypeNames returns a list of possible string values of DoDSettleOrderType.

func DoDSettlePaymentTypeNames added in v1.4.0

func DoDSettlePaymentTypeNames() []string

DoDSettlePaymentTypeNames returns a list of possible string values of DoDSettlePaymentType.

func DoDSettleResponseActionNames added in v1.4.0

func DoDSettleResponseActionNames() []string

DoDSettleResponseActionNames returns a list of possible string values of DoDSettleResponseAction.

func DoDSettleServiceClassNames added in v1.4.0

func DoDSettleServiceClassNames() []string

DoDSettleServiceClassNames returns a list of possible string values of DoDSettleServiceClass.

func DoDSettleSetProductIdByStorageKey added in v1.4.0

func DoDSettleSetProductIdByStorageKey(ctx *vmstore.VMContext, psk types.Hash, productId string, seller types.Address) error

func DoDSettleSetProductStorageKeyByProductId added in v1.4.0

func DoDSettleSetProductStorageKeyByProductId(ctx *vmstore.VMContext, psk, pid types.Hash) error

func DoDSettleSetSellerConnectionActive added in v1.4.0

func DoDSettleSetSellerConnectionActive(ctx *vmstore.VMContext, active *DoDSettleConnectionActive, id types.Hash) error

func DoDSettleUpdateConnection added in v1.4.0

func DoDSettleUpdateConnection(ctx *vmstore.VMContext, conn *DoDSettleConnectionInfo, id types.Hash) error

func DoDSettleUpdateConnectionRawParam added in v1.4.0

func DoDSettleUpdateConnectionRawParam(ctx *vmstore.VMContext, param *DoDSettleConnectionParam, id types.Hash) error

func DoDSettleUpdateOrder added in v1.4.0

func DoDSettleUpdateOrder(ctx *vmstore.VMContext, order *DoDSettleOrderInfo, id types.Hash) error

func DoDSettleUpdatePAYGTimeSpan added in v1.4.0

func DoDSettleUpdatePAYGTimeSpan(ctx *vmstore.VMContext, productId, orderId string, st, et int64) error

func DoDSettleUpdateUserProduct added in v1.4.0

func DoDSettleUpdateUserProduct(ctx *vmstore.VMContext, buyer, seller types.Address, productId string) error

func GetConfidantKey added in v1.2.0

func GetConfidantKey(address types.Address, txId, txHeader, rxHeader []byte) []byte

func GetConfidantRewords added in v1.2.0

func GetConfidantRewords(store ledger.Store, confidant types.Address) (map[string]*big.Int, error)

func GetConfidantRewordsDetail added in v1.2.0

func GetConfidantRewordsDetail(store ledger.Store, confidant types.Address) (map[string][]*RewardsInfo, error)

func GetLastMinerRewardHeightByAccount added in v1.3.0

func GetLastMinerRewardHeightByAccount(ctx *vmstore.VMContext, coinbase types.Address) (uint64, error)

func GetLastRepRewardHeightByAccount added in v1.3.0

func GetLastRepRewardHeightByAccount(ctx *vmstore.VMContext, account types.Address) (uint64, error)

func GetPledgeBeneficialAmount added in v1.1.0

func GetPledgeBeneficialAmount(store ledger.Store, beneficial types.Address, pType uint8) *big.Int

func GetPledgeBeneficialTotalAmount added in v1.1.0

func GetPledgeBeneficialTotalAmount(store ledger.Store, beneficial types.Address) (*big.Int, error)

func GetPledgeKey

func GetPledgeKey(addr types.Address, beneficial types.Address, neoTxId string) []byte

func GetRewardsKey added in v1.2.0

func GetRewardsKey(txId, txHeader, rxHeader []byte) []byte

func GetTotalDestroyInfo added in v1.3.0

func GetTotalDestroyInfo(store ledger.Store, addr *types.Address) (types.Balance, error)

GetTotalDestroyInfo query all destroyed GQAS by account

func GetTotalPledgeAmount added in v1.2.0

func GetTotalPledgeAmount(store ledger.Store) *big.Int

func GetTotalRewards added in v1.2.0

func GetTotalRewards(store ledger.Store, txId string) (*big.Int, error)

func KYCActionFromString added in v1.4.1

func KYCActionFromString(action string) (uint8, error)

func KYCActionToString added in v1.4.1

func KYCActionToString(action uint8) string

func KYCIsAdmin added in v1.4.1

func KYCIsAdmin(ctx *vmstore.VMContext, addr types.Address) bool

func KYCIsOperator added in v1.4.1

func KYCIsOperator(ctx *vmstore.VMContext, addr types.Address) bool

func MinerCalcRewardEndHeight added in v1.2.3

func MinerCalcRewardEndHeight(startHeight uint64, maxEndHeight uint64) uint64

func MinerPovHeightToCount added in v1.2.3

func MinerPovHeightToCount(height uint64) uint64

height begin from 0, so height + 1 == blocks count

func MinerRoundPovHeight added in v1.2.3

func MinerRoundPovHeight(height uint64, round uint64) uint64

func OracleInfoCheck added in v1.4.0

func OracleInfoCheck(ctx *vmstore.VMContext, account types.Address, ot uint32, id types.Hash, kt uint16, pk []byte, code string, hash types.Hash) error

func PackSendBlock added in v1.3.0

func PackSendBlock(ctx *vmstore.VMContext, param *DestroyParam) (*types.StateBlock, error)

func PermissionIsAdmin added in v1.4.0

func PermissionIsAdmin(ctx *vmstore.VMContext, addr types.Address) bool

func PermissionUpdateNode added in v1.4.0

func PermissionUpdateNode(csdb *statedb.PovContractStateDB, id, url, comment string) error

func PovGetNodeRewardHeightByDay added in v1.4.0

func PovGetNodeRewardHeightByDay(ctx *vmstore.VMContext) (uint64, error)

func PovHeightRound added in v1.4.0

func PovHeightRound(height uint64, round uint64) uint64

func PovHeightToCount added in v1.4.0

func PovHeightToCount(height uint64) uint64

height begin from 0, so height + 1 == blocks count

func PrivacyKVGetValue added in v1.4.0

func PrivacyKVGetValue(ctx *vmstore.VMContext, key []byte) ([]byte, error)

func PtmKeyInfoCheck added in v1.4.0

func PtmKeyInfoCheck(ctx *vmstore.VMContext, pt uint16, pk []byte) error

func PublishInfoCheck added in v1.4.0

func PublishInfoCheck(ctx *vmstore.VMContext, account types.Address, pt uint32, id types.Hash, kt uint16, pk []byte, fee types.Balance) error

func RepCalcRewardEndHeight added in v1.3.0

func RepCalcRewardEndHeight(startHeight uint64, maxEndHeight uint64) uint64

func RepPovHeightToCount added in v1.3.0

func RepPovHeightToCount(height uint64) uint64

height begin from 0, so height + 1 == blocks count

func RepRoundPovHeight added in v1.3.0

func RepRoundPovHeight(height uint64, round uint64) uint64

func UnPublishInfoCheck added in v1.4.0

func UnPublishInfoCheck(ctx *vmstore.VMContext, account types.Address, pt uint32, id types.Hash, kt uint16, pk []byte, hash types.Hash) error

func VerifierPledgeCheck added in v1.4.0

func VerifierPledgeCheck(ctx *vmstore.VMContext, account types.Address) error

func VerifierRegInfoCheck added in v1.4.0

func VerifierRegInfoCheck(ctx *vmstore.VMContext, account types.Address, vType uint32, vInfo string, vKey []byte) error

func VerifierUnRegInfoCheck added in v1.4.0

func VerifierUnRegInfoCheck(ctx *vmstore.VMContext, account types.Address, vType uint32) error

Types

type AdminAccount added in v1.4.0

type AdminAccount struct {
	Account types.Address `msg:"-" json:"account"`
	Comment string        `msg:"c" json:"comment"`
	Valid   bool          `msg:"v" json:"valid"`
}

func PermissionGetAdmin added in v1.4.0

func PermissionGetAdmin(ctx *vmstore.VMContext) ([]*AdminAccount, error)

func (*AdminAccount) DecodeMsg added in v1.4.0

func (z *AdminAccount) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (AdminAccount) EncodeMsg added in v1.4.0

func (z AdminAccount) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (AdminAccount) MarshalMsg added in v1.4.0

func (z AdminAccount) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (AdminAccount) Msgsize added in v1.4.0

func (z AdminAccount) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*AdminAccount) UnmarshalMsg added in v1.4.0

func (z *AdminAccount) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type CodeInfo added in v1.4.0

type CodeInfo struct {
	Code    string
	KeyType uint16
	PubKey  []byte
}

type DestroyInfo added in v1.3.0

type DestroyInfo struct {
	Owner     types.Address `json:"owner"`
	Previous  types.Hash    `json:"previous"`
	Token     types.Hash    `json:"token"`
	Amount    *big.Int      `json:"amount"`
	TimeStamp int64         `json:"timestamp"`
}

func GetDestroyInfoDetail added in v1.3.0

func GetDestroyInfoDetail(store ledger.Store, addr *types.Address) ([]*DestroyInfo, error)

GetDestroyInfoDetail query destroyed GQAS detail by account

func ParseDestroyInfo added in v1.3.0

func ParseDestroyInfo(data []byte) (*DestroyInfo, error)

ParseDestroyInfo decode data into `DestroyInfo`

type DestroyParam added in v1.3.0

type DestroyParam struct {
	Owner    types.Address   `json:"owner"`
	Previous types.Hash      `json:"previous"`
	Token    types.Hash      `json:"token"`
	Amount   *big.Int        `json:"amount"`
	Sign     types.Signature `json:"signature"`
}

func (*DestroyParam) Signature added in v1.3.0

func (param *DestroyParam) Signature(acc *types.Account) (types.Signature, error)

func (*DestroyParam) String added in v1.4.0

func (param *DestroyParam) String() string

func (*DestroyParam) Verify added in v1.3.0

func (param *DestroyParam) Verify() (bool, error)

Verify destroy params

type DoDSettleBillingType added in v1.4.0

type DoDSettleBillingType int

ENUM( null PAYG DOD )

const (
	// DoDSettleBillingTypeNull is a DoDSettleBillingType of type Null
	DoDSettleBillingTypeNull DoDSettleBillingType = iota
	// DoDSettleBillingTypePAYG is a DoDSettleBillingType of type PAYG
	DoDSettleBillingTypePAYG
	// DoDSettleBillingTypeDOD is a DoDSettleBillingType of type DOD
	DoDSettleBillingTypeDOD
)

func ParseDoDSettleBillingType added in v1.4.0

func ParseDoDSettleBillingType(name string) (DoDSettleBillingType, error)

ParseDoDSettleBillingType attempts to convert a string to a DoDSettleBillingType

func (*DoDSettleBillingType) DecodeMsg added in v1.4.0

func (z *DoDSettleBillingType) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettleBillingType) EncodeMsg added in v1.4.0

func (z DoDSettleBillingType) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (DoDSettleBillingType) MarshalMsg added in v1.4.0

func (z DoDSettleBillingType) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettleBillingType) MarshalText added in v1.4.0

func (x DoDSettleBillingType) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method

func (DoDSettleBillingType) Msgsize added in v1.4.0

func (z DoDSettleBillingType) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (DoDSettleBillingType) String added in v1.4.0

func (x DoDSettleBillingType) String() string

String implements the Stringer interface.

func (*DoDSettleBillingType) UnmarshalMsg added in v1.4.0

func (z *DoDSettleBillingType) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

func (*DoDSettleBillingType) UnmarshalText added in v1.4.0

func (x *DoDSettleBillingType) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method

type DoDSettleBillingUnit added in v1.4.0

type DoDSettleBillingUnit int

ENUM( null year month week day hour minute second )

const (
	// DoDSettleBillingUnitNull is a DoDSettleBillingUnit of type Null
	DoDSettleBillingUnitNull DoDSettleBillingUnit = iota
	// DoDSettleBillingUnitYear is a DoDSettleBillingUnit of type Year
	DoDSettleBillingUnitYear
	// DoDSettleBillingUnitMonth is a DoDSettleBillingUnit of type Month
	DoDSettleBillingUnitMonth
	// DoDSettleBillingUnitWeek is a DoDSettleBillingUnit of type Week
	DoDSettleBillingUnitWeek
	// DoDSettleBillingUnitDay is a DoDSettleBillingUnit of type Day
	DoDSettleBillingUnitDay
	// DoDSettleBillingUnitHour is a DoDSettleBillingUnit of type Hour
	DoDSettleBillingUnitHour
	// DoDSettleBillingUnitMinute is a DoDSettleBillingUnit of type Minute
	DoDSettleBillingUnitMinute
	// DoDSettleBillingUnitSecond is a DoDSettleBillingUnit of type Second
	DoDSettleBillingUnitSecond
)

func ParseDoDSettleBillingUnit added in v1.4.0

func ParseDoDSettleBillingUnit(name string) (DoDSettleBillingUnit, error)

ParseDoDSettleBillingUnit attempts to convert a string to a DoDSettleBillingUnit

func (*DoDSettleBillingUnit) DecodeMsg added in v1.4.0

func (z *DoDSettleBillingUnit) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettleBillingUnit) EncodeMsg added in v1.4.0

func (z DoDSettleBillingUnit) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (DoDSettleBillingUnit) MarshalMsg added in v1.4.0

func (z DoDSettleBillingUnit) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettleBillingUnit) MarshalText added in v1.4.0

func (x DoDSettleBillingUnit) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method

func (DoDSettleBillingUnit) Msgsize added in v1.4.0

func (z DoDSettleBillingUnit) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (DoDSettleBillingUnit) String added in v1.4.0

func (x DoDSettleBillingUnit) String() string

String implements the Stringer interface.

func (*DoDSettleBillingUnit) UnmarshalMsg added in v1.4.0

func (z *DoDSettleBillingUnit) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

func (*DoDSettleBillingUnit) UnmarshalText added in v1.4.0

func (x *DoDSettleBillingUnit) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method

type DoDSettleBuyerInvoice added in v1.4.0

type DoDSettleBuyerInvoice struct {
	InvoiceId            types.Hash                     `json:"invoiceId"`
	OrderCount           int                            `json:"orderCount"`
	TotalConnectionCount int                            `json:"totalConnectionCount"`
	TotalAmount          float64                        `json:"totalAmount"`
	Currency             string                         `json:"currency"`
	StartTime            int64                          `json:"startTime"`
	EndTime              int64                          `json:"endTime"`
	Flight               bool                           `json:"flight"`
	Split                bool                           `json:"split"`
	Buyer                *DoDSettleUser                 `json:"buyer"`
	Seller               *DoDSettleUser                 `json:"seller"`
	Orders               []*DoDSettleInvoiceOrderDetail `json:"orders"`
}

func DoDSettleGenerateInvoiceByBuyer added in v1.4.0

func DoDSettleGenerateInvoiceByBuyer(ctx *vmstore.VMContext, seller, buyer types.Address, start, end int64, flight,
	split bool) (*DoDSettleBuyerInvoice, error)

func (*DoDSettleBuyerInvoice) DecodeMsg added in v1.4.0

func (z *DoDSettleBuyerInvoice) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleBuyerInvoice) EncodeMsg added in v1.4.0

func (z *DoDSettleBuyerInvoice) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleBuyerInvoice) MarshalMsg added in v1.4.0

func (z *DoDSettleBuyerInvoice) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleBuyerInvoice) Msgsize added in v1.4.0

func (z *DoDSettleBuyerInvoice) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleBuyerInvoice) UnmarshalMsg added in v1.4.0

func (z *DoDSettleBuyerInvoice) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleChangeConnectionParam added in v1.4.0

type DoDSettleChangeConnectionParam struct {
	ProductId string `json:"productId" msg:"p"`
	DoDSettleConnectionDynamicParam
}

func (*DoDSettleChangeConnectionParam) DecodeMsg added in v1.4.0

func (z *DoDSettleChangeConnectionParam) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleChangeConnectionParam) EncodeMsg added in v1.4.0

func (z *DoDSettleChangeConnectionParam) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleChangeConnectionParam) MarshalMsg added in v1.4.0

func (z *DoDSettleChangeConnectionParam) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleChangeConnectionParam) Msgsize added in v1.4.0

func (z *DoDSettleChangeConnectionParam) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleChangeConnectionParam) UnmarshalMsg added in v1.4.0

func (z *DoDSettleChangeConnectionParam) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleChangeOrderParam added in v1.4.0

type DoDSettleChangeOrderParam struct {
	Buyer       *DoDSettleUser                    `json:"buyer" msg:"b"`
	Seller      *DoDSettleUser                    `json:"seller" msg:"s"`
	Connections []*DoDSettleChangeConnectionParam `json:"connections" msg:"c"`
}

func (*DoDSettleChangeOrderParam) DecodeMsg added in v1.4.0

func (z *DoDSettleChangeOrderParam) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleChangeOrderParam) EncodeMsg added in v1.4.0

func (z *DoDSettleChangeOrderParam) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleChangeOrderParam) FromABI added in v1.4.0

func (z *DoDSettleChangeOrderParam) FromABI(data []byte) error

func (*DoDSettleChangeOrderParam) MarshalMsg added in v1.4.0

func (z *DoDSettleChangeOrderParam) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleChangeOrderParam) Msgsize added in v1.4.0

func (z *DoDSettleChangeOrderParam) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleChangeOrderParam) ToABI added in v1.4.0

func (z *DoDSettleChangeOrderParam) ToABI() ([]byte, error)

func (*DoDSettleChangeOrderParam) UnmarshalMsg added in v1.4.0

func (z *DoDSettleChangeOrderParam) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

func (*DoDSettleChangeOrderParam) Verify added in v1.4.0

func (z *DoDSettleChangeOrderParam) Verify() error

type DoDSettleConnectionActive added in v1.4.0

type DoDSettleConnectionActive struct {
	ActiveAt int64 `json:"activeAt" msg:"a"`
}

func DoDSettleGetSellerConnectionActive added in v1.4.0

func DoDSettleGetSellerConnectionActive(ctx *vmstore.VMContext, id types.Hash) (*DoDSettleConnectionActive, error)

func (*DoDSettleConnectionActive) DecodeMsg added in v1.4.0

func (z *DoDSettleConnectionActive) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettleConnectionActive) EncodeMsg added in v1.4.0

func (z DoDSettleConnectionActive) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (DoDSettleConnectionActive) MarshalMsg added in v1.4.0

func (z DoDSettleConnectionActive) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettleConnectionActive) Msgsize added in v1.4.0

func (z DoDSettleConnectionActive) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleConnectionActive) UnmarshalMsg added in v1.4.0

func (z *DoDSettleConnectionActive) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleConnectionActiveKey added in v1.4.0

type DoDSettleConnectionActiveKey struct {
	InternalId types.Hash
	ProductId  string
}

func (*DoDSettleConnectionActiveKey) DecodeMsg added in v1.4.0

func (z *DoDSettleConnectionActiveKey) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleConnectionActiveKey) EncodeMsg added in v1.4.0

func (z *DoDSettleConnectionActiveKey) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleConnectionActiveKey) Hash added in v1.4.0

func (*DoDSettleConnectionActiveKey) MarshalMsg added in v1.4.0

func (z *DoDSettleConnectionActiveKey) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleConnectionActiveKey) Msgsize added in v1.4.0

func (z *DoDSettleConnectionActiveKey) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleConnectionActiveKey) UnmarshalMsg added in v1.4.0

func (z *DoDSettleConnectionActiveKey) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleConnectionDynamicParam added in v1.4.0

type DoDSettleConnectionDynamicParam struct {
	OrderId        string                `json:"orderId,omitempty" msg:"oi"`
	InternalId     string                `json:"internalId,omitempty" msg:"-"`
	ItemId         string                `json:"itemId,omitempty" msg:"ii"`
	OrderItemId    string                `json:"orderItemId,omitempty" msg:"oii"`
	QuoteId        string                `json:"quoteId,omitempty" msg:"q"`
	QuoteItemId    string                `json:"quoteItemId,omitempty" msg:"qi"`
	ConnectionName string                `json:"connectionName,omitempty" msg:"cn"`
	PaymentType    DoDSettlePaymentType  `json:"paymentType,omitempty" msg:"pt"`
	BillingType    DoDSettleBillingType  `json:"billingType,omitempty" msg:"bt"`
	Currency       string                `json:"currency,omitempty" msg:"cr"`
	ServiceClass   DoDSettleServiceClass `json:"serviceClass,omitempty" msg:"scs"`
	Bandwidth      string                `json:"bandwidth,omitempty" msg:"bw"`
	BillingUnit    DoDSettleBillingUnit  `json:"billingUnit,omitempty" msg:"bu"`
	Price          float64               `json:"price,omitempty" msg:"p"`
	Addition       float64               `json:"addition" msg:"ad"`
	StartTime      int64                 `json:"startTime" msg:"st"`
	StartTimeStr   string                `json:"startTimeStr,omitempty" msg:"-"`
	EndTime        int64                 `json:"endTime" msg:"et"`
	EndTimeStr     string                `json:"endTimeStr,omitempty" msg:"-"`
}

func (*DoDSettleConnectionDynamicParam) DecodeMsg added in v1.4.0

func (z *DoDSettleConnectionDynamicParam) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleConnectionDynamicParam) EncodeMsg added in v1.4.0

func (z *DoDSettleConnectionDynamicParam) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleConnectionDynamicParam) MarshalMsg added in v1.4.0

func (z *DoDSettleConnectionDynamicParam) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleConnectionDynamicParam) Msgsize added in v1.4.0

func (z *DoDSettleConnectionDynamicParam) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleConnectionDynamicParam) UnmarshalMsg added in v1.4.0

func (z *DoDSettleConnectionDynamicParam) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleConnectionInfo added in v1.4.0

type DoDSettleConnectionInfo struct {
	DoDSettleConnectionStaticParam
	Active     *DoDSettleConnectionDynamicParam   `json:"active" msg:"ac"`
	Done       []*DoDSettleConnectionDynamicParam `json:"done" msg:"do"`
	Disconnect *DoDSettleDisconnectInfo           `json:"disconnect" msg:"dis"`
	Track      []*DoDSettleConnectionLifeTrack    `json:"track" msg:"t"`
}

func DoDSettleGetConnectionInfoByProductId added in v1.4.0

func DoDSettleGetConnectionInfoByProductId(ctx *vmstore.VMContext, seller types.Address, productId string) (*DoDSettleConnectionInfo, error)

func DoDSettleGetConnectionInfoByProductStorageKey added in v1.4.0

func DoDSettleGetConnectionInfoByProductStorageKey(ctx *vmstore.VMContext, hash types.Hash) (*DoDSettleConnectionInfo, error)

func (*DoDSettleConnectionInfo) DecodeMsg added in v1.4.0

func (z *DoDSettleConnectionInfo) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleConnectionInfo) EncodeMsg added in v1.4.0

func (z *DoDSettleConnectionInfo) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleConnectionInfo) MarshalMsg added in v1.4.0

func (z *DoDSettleConnectionInfo) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleConnectionInfo) Msgsize added in v1.4.0

func (z *DoDSettleConnectionInfo) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleConnectionInfo) UnmarshalMsg added in v1.4.0

func (z *DoDSettleConnectionInfo) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleConnectionLifeTrack added in v1.4.0

type DoDSettleConnectionLifeTrack struct {
	OrderType DoDSettleOrderType               `json:"orderType,omitempty" msg:"ot"`
	OrderId   string                           `json:"orderId,omitempty" msg:"oi"`
	Time      int64                            `json:"time,omitempty" msg:"t"`
	Changed   *DoDSettleConnectionDynamicParam `json:"changed,omitempty" msg:"c"`
}

func (*DoDSettleConnectionLifeTrack) DecodeMsg added in v1.4.0

func (z *DoDSettleConnectionLifeTrack) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleConnectionLifeTrack) EncodeMsg added in v1.4.0

func (z *DoDSettleConnectionLifeTrack) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleConnectionLifeTrack) MarshalMsg added in v1.4.0

func (z *DoDSettleConnectionLifeTrack) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleConnectionLifeTrack) Msgsize added in v1.4.0

func (z *DoDSettleConnectionLifeTrack) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleConnectionLifeTrack) UnmarshalMsg added in v1.4.0

func (z *DoDSettleConnectionLifeTrack) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleConnectionParam added in v1.4.0

type DoDSettleConnectionParam struct {
	DoDSettleConnectionStaticParam
	DoDSettleConnectionDynamicParam
}

func (*DoDSettleConnectionParam) DecodeMsg added in v1.4.0

func (z *DoDSettleConnectionParam) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleConnectionParam) EncodeMsg added in v1.4.0

func (z *DoDSettleConnectionParam) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleConnectionParam) MarshalMsg added in v1.4.0

func (z *DoDSettleConnectionParam) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleConnectionParam) Msgsize added in v1.4.0

func (z *DoDSettleConnectionParam) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleConnectionParam) UnmarshalMsg added in v1.4.0

func (z *DoDSettleConnectionParam) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleConnectionRawParam added in v1.4.0

type DoDSettleConnectionRawParam struct {
	ItemId            string                `json:"itemId,omitempty" msg:"ii"`
	BuyerProductId    string                `json:"buyerProductId,omitempty" msg:"bp"`
	ProductOfferingId string                `json:"productOfferingId,omitempty" msg:"po"`
	SrcCompanyName    string                `json:"srcCompanyName,omitempty" msg:"scn"`
	SrcRegion         string                `json:"srcRegion,omitempty" msg:"sr"`
	SrcCity           string                `json:"srcCity,omitempty" msg:"sc"`
	SrcDataCenter     string                `json:"srcDataCenter,omitempty" msg:"sdc"`
	SrcPort           string                `json:"srcPort,omitempty" msg:"sp"`
	DstCompanyName    string                `json:"dstCompanyName,omitempty" msg:"dcn"`
	DstRegion         string                `json:"dstRegion,omitempty" msg:"dr"`
	DstCity           string                `json:"dstCity,omitempty" msg:"dc"`
	DstDataCenter     string                `json:"dstDataCenter,omitempty" msg:"ddc"`
	DstPort           string                `json:"dstPort,omitempty" msg:"dp"`
	ConnectionName    string                `json:"connectionName,omitempty" msg:"cn"`
	PaymentType       DoDSettlePaymentType  `json:"paymentType,omitempty" msg:"pt"`
	BillingType       DoDSettleBillingType  `json:"billingType,omitempty" msg:"bt"`
	Currency          string                `json:"currency,omitempty" msg:"cr"`
	ServiceClass      DoDSettleServiceClass `json:"serviceClass,omitempty" msg:"scs"`
	Bandwidth         string                `json:"bandwidth,omitempty" msg:"bw"`
	BillingUnit       DoDSettleBillingUnit  `json:"billingUnit,omitempty" msg:"bu"`
	Price             float64               `json:"price,omitempty" msg:"p"`
	StartTime         int64                 `json:"startTime" msg:"st"`
	EndTime           int64                 `json:"endTime" msg:"et"`
}

func DoDSettleGetConnectionRawParam added in v1.4.0

func DoDSettleGetConnectionRawParam(ctx *vmstore.VMContext, id types.Hash) (*DoDSettleConnectionRawParam, error)

func (*DoDSettleConnectionRawParam) DecodeMsg added in v1.4.0

func (z *DoDSettleConnectionRawParam) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleConnectionRawParam) EncodeMsg added in v1.4.0

func (z *DoDSettleConnectionRawParam) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleConnectionRawParam) MarshalMsg added in v1.4.0

func (z *DoDSettleConnectionRawParam) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleConnectionRawParam) Msgsize added in v1.4.0

func (z *DoDSettleConnectionRawParam) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleConnectionRawParam) UnmarshalMsg added in v1.4.0

func (z *DoDSettleConnectionRawParam) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleConnectionStaticParam added in v1.4.0

type DoDSettleConnectionStaticParam struct {
	BuyerProductId    string `json:"buyerProductId,omitempty" msg:"bp"`
	ProductOfferingId string `json:"productOfferingId,omitempty" msg:"po"`
	ProductId         string `json:"productId,omitempty" msg:"pi"`
	SrcCompanyName    string `json:"srcCompanyName,omitempty" msg:"scn"`
	SrcRegion         string `json:"srcRegion,omitempty" msg:"sr"`
	SrcCity           string `json:"srcCity,omitempty" msg:"sc"`
	SrcDataCenter     string `json:"srcDataCenter,omitempty" msg:"sdc"`
	SrcPort           string `json:"srcPort,omitempty" msg:"sp"`
	DstCompanyName    string `json:"dstCompanyName,omitempty" msg:"dcn"`
	DstRegion         string `json:"dstRegion,omitempty" msg:"dr"`
	DstCity           string `json:"dstCity,omitempty" msg:"dc"`
	DstDataCenter     string `json:"dstDataCenter,omitempty" msg:"ddc"`
	DstPort           string `json:"dstPort,omitempty" msg:"dp"`
}

func (*DoDSettleConnectionStaticParam) DecodeMsg added in v1.4.0

func (z *DoDSettleConnectionStaticParam) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleConnectionStaticParam) EncodeMsg added in v1.4.0

func (z *DoDSettleConnectionStaticParam) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleConnectionStaticParam) MarshalMsg added in v1.4.0

func (z *DoDSettleConnectionStaticParam) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleConnectionStaticParam) Msgsize added in v1.4.0

func (z *DoDSettleConnectionStaticParam) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleConnectionStaticParam) UnmarshalMsg added in v1.4.0

func (z *DoDSettleConnectionStaticParam) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleContractState added in v1.4.0

type DoDSettleContractState int

ENUM( null request confirmed rejected )

const (
	// DoDSettleContractStateNull is a DoDSettleContractState of type Null
	DoDSettleContractStateNull DoDSettleContractState = iota
	// DoDSettleContractStateRequest is a DoDSettleContractState of type Request
	DoDSettleContractStateRequest
	// DoDSettleContractStateConfirmed is a DoDSettleContractState of type Confirmed
	DoDSettleContractStateConfirmed
	// DoDSettleContractStateRejected is a DoDSettleContractState of type Rejected
	DoDSettleContractStateRejected
)

func ParseDoDSettleContractState added in v1.4.0

func ParseDoDSettleContractState(name string) (DoDSettleContractState, error)

ParseDoDSettleContractState attempts to convert a string to a DoDSettleContractState

func (*DoDSettleContractState) DecodeMsg added in v1.4.0

func (z *DoDSettleContractState) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettleContractState) EncodeMsg added in v1.4.0

func (z DoDSettleContractState) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (DoDSettleContractState) MarshalMsg added in v1.4.0

func (z DoDSettleContractState) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettleContractState) MarshalText added in v1.4.0

func (x DoDSettleContractState) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method

func (DoDSettleContractState) Msgsize added in v1.4.0

func (z DoDSettleContractState) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (DoDSettleContractState) String added in v1.4.0

func (x DoDSettleContractState) String() string

String implements the Stringer interface.

func (*DoDSettleContractState) UnmarshalMsg added in v1.4.0

func (z *DoDSettleContractState) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

func (*DoDSettleContractState) UnmarshalText added in v1.4.0

func (x *DoDSettleContractState) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method

type DoDSettleCreateOrderParam added in v1.4.0

type DoDSettleCreateOrderParam struct {
	Buyer       *DoDSettleUser              `json:"buyer" msg:"b"`
	Seller      *DoDSettleUser              `json:"seller" msg:"s"`
	Connections []*DoDSettleConnectionParam `json:"connections,omitempty" msg:"c"`
}

func (*DoDSettleCreateOrderParam) DecodeMsg added in v1.4.0

func (z *DoDSettleCreateOrderParam) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleCreateOrderParam) EncodeMsg added in v1.4.0

func (z *DoDSettleCreateOrderParam) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleCreateOrderParam) FromABI added in v1.4.0

func (z *DoDSettleCreateOrderParam) FromABI(data []byte) error

func (*DoDSettleCreateOrderParam) MarshalMsg added in v1.4.0

func (z *DoDSettleCreateOrderParam) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleCreateOrderParam) Msgsize added in v1.4.0

func (z *DoDSettleCreateOrderParam) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleCreateOrderParam) ToABI added in v1.4.0

func (z *DoDSettleCreateOrderParam) ToABI() ([]byte, error)

func (*DoDSettleCreateOrderParam) UnmarshalMsg added in v1.4.0

func (z *DoDSettleCreateOrderParam) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

func (*DoDSettleCreateOrderParam) Verify added in v1.4.0

func (z *DoDSettleCreateOrderParam) Verify() error

type DoDSettleDisconnectInfo added in v1.4.0

type DoDSettleDisconnectInfo struct {
	OrderId      string  `json:"orderId,omitempty" msg:"oi"`
	OrderItemId  string  `json:"orderItemId,omitempty" msg:"oii"`
	QuoteId      string  `json:"quoteId,omitempty" msg:"q"`
	QuoteItemId  string  `json:"quoteItemId,omitempty" msg:"qi"`
	Price        float64 `json:"price,omitempty" msg:"p"`
	Currency     string  `json:"currency,omitempty" msg:"cr"`
	DisconnectAt int64   `json:"disconnectAt,omitempty" msg:"d"`
}

func (*DoDSettleDisconnectInfo) DecodeMsg added in v1.4.0

func (z *DoDSettleDisconnectInfo) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleDisconnectInfo) EncodeMsg added in v1.4.0

func (z *DoDSettleDisconnectInfo) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleDisconnectInfo) MarshalMsg added in v1.4.0

func (z *DoDSettleDisconnectInfo) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleDisconnectInfo) Msgsize added in v1.4.0

func (z *DoDSettleDisconnectInfo) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleDisconnectInfo) UnmarshalMsg added in v1.4.0

func (z *DoDSettleDisconnectInfo) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleInternalIdWrap added in v1.4.0

type DoDSettleInternalIdWrap struct {
	InternalId types.Hash `json:"id" msg:"i,extension"`
}

func (*DoDSettleInternalIdWrap) DecodeMsg added in v1.4.0

func (z *DoDSettleInternalIdWrap) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettleInternalIdWrap) EncodeMsg added in v1.4.0

func (z DoDSettleInternalIdWrap) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (DoDSettleInternalIdWrap) MarshalMsg added in v1.4.0

func (z DoDSettleInternalIdWrap) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettleInternalIdWrap) Msgsize added in v1.4.0

func (z DoDSettleInternalIdWrap) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleInternalIdWrap) UnmarshalMsg added in v1.4.0

func (z *DoDSettleInternalIdWrap) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleInvoiceConnDetail added in v1.4.0

type DoDSettleInvoiceConnDetail struct {
	ConnectionAmount float64 `json:"connectionAmount"`
	DoDSettleConnectionStaticParam
	Usage []*DoDSettleInvoiceConnDynamic `json:"usage"`
}

func DoDSettleCalcConnInvoice added in v1.4.0

func DoDSettleCalcConnInvoice(conn *DoDSettleConnectionInfo, order *DoDSettleOrderInfo, start, end, now int64, flight,
	split bool) *DoDSettleInvoiceConnDetail

func DoDSettleGetProductInvoice added in v1.4.0

func DoDSettleGetProductInvoice(conn *DoDSettleConnectionInfo, start, end int64, flight, split bool) (*DoDSettleInvoiceConnDetail, error)

func (*DoDSettleInvoiceConnDetail) DecodeMsg added in v1.4.0

func (z *DoDSettleInvoiceConnDetail) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleInvoiceConnDetail) EncodeMsg added in v1.4.0

func (z *DoDSettleInvoiceConnDetail) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleInvoiceConnDetail) MarshalMsg added in v1.4.0

func (z *DoDSettleInvoiceConnDetail) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleInvoiceConnDetail) Msgsize added in v1.4.0

func (z *DoDSettleInvoiceConnDetail) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleInvoiceConnDetail) UnmarshalMsg added in v1.4.0

func (z *DoDSettleInvoiceConnDetail) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleInvoiceConnDynamic added in v1.4.0

type DoDSettleInvoiceConnDynamic struct {
	DoDSettleConnectionDynamicParam
	InvoiceStartTime    int64              `json:"invoiceStartTime,omitempty"`
	InvoiceStartTimeStr string             `json:"invoiceStartTimeStr,omitempty"`
	InvoiceEndTime      int64              `json:"invoiceEndTime,omitempty"`
	InvoiceEndTimeStr   string             `json:"invoiceEndTimeStr,omitempty"`
	InvoiceUnitCount    int                `json:"invoiceUnitCount,omitempty"`
	OrderType           DoDSettleOrderType `json:"orderType,omitempty"`
	Amount              float64            `json:"amount"`
}

func (*DoDSettleInvoiceConnDynamic) DecodeMsg added in v1.4.0

func (z *DoDSettleInvoiceConnDynamic) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleInvoiceConnDynamic) EncodeMsg added in v1.4.0

func (z *DoDSettleInvoiceConnDynamic) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleInvoiceConnDynamic) MarshalMsg added in v1.4.0

func (z *DoDSettleInvoiceConnDynamic) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleInvoiceConnDynamic) Msgsize added in v1.4.0

func (z *DoDSettleInvoiceConnDynamic) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleInvoiceConnDynamic) UnmarshalMsg added in v1.4.0

func (z *DoDSettleInvoiceConnDynamic) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleInvoiceOrderDetail added in v1.4.0

type DoDSettleInvoiceOrderDetail struct {
	OrderId         string                        `json:"orderId"`
	InternalId      types.Hash                    `json:"internalId"`
	ConnectionCount int                           `json:"connectionCount"`
	OrderAmount     float64                       `json:"orderAmount"`
	Connections     []*DoDSettleInvoiceConnDetail `json:"connections"`
}

func DoDSettleGetOrderInvoice added in v1.4.0

func DoDSettleGetOrderInvoice(ctx *vmstore.VMContext, seller types.Address, order *DoDSettleOrderInfo, start, end int64,
	flight, split bool) (*DoDSettleInvoiceOrderDetail, error)

func (*DoDSettleInvoiceOrderDetail) DecodeMsg added in v1.4.0

func (z *DoDSettleInvoiceOrderDetail) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleInvoiceOrderDetail) EncodeMsg added in v1.4.0

func (z *DoDSettleInvoiceOrderDetail) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleInvoiceOrderDetail) MarshalMsg added in v1.4.0

func (z *DoDSettleInvoiceOrderDetail) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleInvoiceOrderDetail) Msgsize added in v1.4.0

func (z *DoDSettleInvoiceOrderDetail) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleInvoiceOrderDetail) UnmarshalMsg added in v1.4.0

func (z *DoDSettleInvoiceOrderDetail) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleOrder added in v1.4.0

type DoDSettleOrder struct {
	Seller  types.Address `json:"seller" msg:"s,extension"`
	OrderId string        `json:"orderId,omitempty" msg:"o"`
}

func DoDSettleGetOrderIdListByAddress added in v1.4.0

func DoDSettleGetOrderIdListByAddress(ctx *vmstore.VMContext, address types.Address) ([]*DoDSettleOrder, error)

func (*DoDSettleOrder) DecodeMsg added in v1.4.0

func (z *DoDSettleOrder) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettleOrder) EncodeMsg added in v1.4.0

func (z DoDSettleOrder) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleOrder) Hash added in v1.4.0

func (z *DoDSettleOrder) Hash() types.Hash

func (DoDSettleOrder) MarshalMsg added in v1.4.0

func (z DoDSettleOrder) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettleOrder) Msgsize added in v1.4.0

func (z DoDSettleOrder) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleOrder) UnmarshalMsg added in v1.4.0

func (z *DoDSettleOrder) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleOrderInfo added in v1.4.0

type DoDSettleOrderInfo struct {
	Buyer         *DoDSettleUser              `json:"buyer" msg:"b"`
	Seller        *DoDSettleUser              `json:"seller" msg:"s"`
	OrderId       string                      `json:"orderId,omitempty" msg:"oi"`
	InternalId    string                      `json:"internalId,omitempty" msg:"i"`
	OrderType     DoDSettleOrderType          `json:"orderType,omitempty" msg:"ot"`
	OrderState    DoDSettleOrderState         `json:"orderState" msg:"os"`
	ContractState DoDSettleContractState      `json:"contractState" msg:"cs"`
	Connections   []*DoDSettleConnectionParam `json:"connections" msg:"c"`
	Track         []*DoDSettleOrderLifeTrack  `json:"track" msg:"t"`
}

func DoDSettleGetOrderInfoByInternalId added in v1.4.0

func DoDSettleGetOrderInfoByInternalId(ctx *vmstore.VMContext, id types.Hash) (*DoDSettleOrderInfo, error)

func DoDSettleGetOrderInfoByOrderId added in v1.4.0

func DoDSettleGetOrderInfoByOrderId(ctx *vmstore.VMContext, seller types.Address, orderId string) (*DoDSettleOrderInfo, error)

func NewOrderInfo added in v1.4.0

func NewOrderInfo() *DoDSettleOrderInfo

func (*DoDSettleOrderInfo) DecodeMsg added in v1.4.0

func (z *DoDSettleOrderInfo) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleOrderInfo) EncodeMsg added in v1.4.0

func (z *DoDSettleOrderInfo) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleOrderInfo) MarshalMsg added in v1.4.0

func (z *DoDSettleOrderInfo) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleOrderInfo) Msgsize added in v1.4.0

func (z *DoDSettleOrderInfo) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleOrderInfo) UnmarshalMsg added in v1.4.0

func (z *DoDSettleOrderInfo) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleOrderInvoice added in v1.4.0

type DoDSettleOrderInvoice struct {
	InvoiceId            types.Hash                   `json:"invoiceId"`
	TotalConnectionCount int                          `json:"totalConnectionCount"`
	TotalAmount          float64                      `json:"totalAmount"`
	Currency             string                       `json:"currency"`
	StartTime            int64                        `json:"startTime"`
	EndTime              int64                        `json:"endTime"`
	Flight               bool                         `json:"flight"`
	Split                bool                         `json:"split"`
	Buyer                *DoDSettleUser               `json:"buyer"`
	Seller               *DoDSettleUser               `json:"seller"`
	Order                *DoDSettleInvoiceOrderDetail `json:"order"`
}

func DoDSettleGenerateInvoiceByOrder added in v1.4.0

func DoDSettleGenerateInvoiceByOrder(ctx *vmstore.VMContext, seller types.Address, orderId string, start, end int64,
	flight, split bool) (*DoDSettleOrderInvoice, error)

func (*DoDSettleOrderInvoice) DecodeMsg added in v1.4.0

func (z *DoDSettleOrderInvoice) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleOrderInvoice) EncodeMsg added in v1.4.0

func (z *DoDSettleOrderInvoice) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleOrderInvoice) MarshalMsg added in v1.4.0

func (z *DoDSettleOrderInvoice) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleOrderInvoice) Msgsize added in v1.4.0

func (z *DoDSettleOrderInvoice) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleOrderInvoice) UnmarshalMsg added in v1.4.0

func (z *DoDSettleOrderInvoice) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleOrderItem added in v1.4.0

type DoDSettleOrderItem struct {
	ItemId      string `json:"itemId" msg:"i"`
	OrderItemId string `json:"orderItemId" msg:"o"`
}

func (*DoDSettleOrderItem) DecodeMsg added in v1.4.0

func (z *DoDSettleOrderItem) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettleOrderItem) EncodeMsg added in v1.4.0

func (z DoDSettleOrderItem) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (DoDSettleOrderItem) MarshalMsg added in v1.4.0

func (z DoDSettleOrderItem) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettleOrderItem) Msgsize added in v1.4.0

func (z DoDSettleOrderItem) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleOrderItem) UnmarshalMsg added in v1.4.0

func (z *DoDSettleOrderItem) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleOrderLifeTrack added in v1.4.0

type DoDSettleOrderLifeTrack struct {
	ContractState DoDSettleContractState `json:"contractState" msg:"cs"`
	OrderState    DoDSettleOrderState    `json:"orderState" msg:"os"`
	Reason        string                 `json:"reason,omitempty" msg:"r"`
	Time          int64                  `json:"time" msg:"t"`
	Hash          types.Hash             `json:"hash" msg:"h,extension"`
}

func (*DoDSettleOrderLifeTrack) DecodeMsg added in v1.4.0

func (z *DoDSettleOrderLifeTrack) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleOrderLifeTrack) EncodeMsg added in v1.4.0

func (z *DoDSettleOrderLifeTrack) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleOrderLifeTrack) MarshalMsg added in v1.4.0

func (z *DoDSettleOrderLifeTrack) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleOrderLifeTrack) Msgsize added in v1.4.0

func (z *DoDSettleOrderLifeTrack) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleOrderLifeTrack) UnmarshalMsg added in v1.4.0

func (z *DoDSettleOrderLifeTrack) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleOrderState added in v1.4.0

type DoDSettleOrderState int

ENUM( null success complete fail )

const (
	// DoDSettleOrderStateNull is a DoDSettleOrderState of type Null
	DoDSettleOrderStateNull DoDSettleOrderState = iota
	// DoDSettleOrderStateSuccess is a DoDSettleOrderState of type Success
	DoDSettleOrderStateSuccess
	// DoDSettleOrderStateComplete is a DoDSettleOrderState of type Complete
	DoDSettleOrderStateComplete
	// DoDSettleOrderStateFail is a DoDSettleOrderState of type Fail
	DoDSettleOrderStateFail
)

func ParseDoDSettleOrderState added in v1.4.0

func ParseDoDSettleOrderState(name string) (DoDSettleOrderState, error)

ParseDoDSettleOrderState attempts to convert a string to a DoDSettleOrderState

func (*DoDSettleOrderState) DecodeMsg added in v1.4.0

func (z *DoDSettleOrderState) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettleOrderState) EncodeMsg added in v1.4.0

func (z DoDSettleOrderState) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (DoDSettleOrderState) MarshalMsg added in v1.4.0

func (z DoDSettleOrderState) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettleOrderState) MarshalText added in v1.4.0

func (x DoDSettleOrderState) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method

func (DoDSettleOrderState) Msgsize added in v1.4.0

func (z DoDSettleOrderState) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (DoDSettleOrderState) String added in v1.4.0

func (x DoDSettleOrderState) String() string

String implements the Stringer interface.

func (*DoDSettleOrderState) UnmarshalMsg added in v1.4.0

func (z *DoDSettleOrderState) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

func (*DoDSettleOrderState) UnmarshalText added in v1.4.0

func (x *DoDSettleOrderState) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method

type DoDSettleOrderToProduct added in v1.4.0

type DoDSettleOrderToProduct struct {
	Seller      types.Address
	OrderId     string
	OrderItemId string
}

func (*DoDSettleOrderToProduct) DecodeMsg added in v1.4.0

func (z *DoDSettleOrderToProduct) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleOrderToProduct) EncodeMsg added in v1.4.0

func (z *DoDSettleOrderToProduct) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleOrderToProduct) Hash added in v1.4.0

func (*DoDSettleOrderToProduct) MarshalMsg added in v1.4.0

func (z *DoDSettleOrderToProduct) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleOrderToProduct) Msgsize added in v1.4.0

func (z *DoDSettleOrderToProduct) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleOrderToProduct) UnmarshalMsg added in v1.4.0

func (z *DoDSettleOrderToProduct) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleOrderType added in v1.4.0

type DoDSettleOrderType int

ENUM( null create change terminate )

const (
	// DoDSettleOrderTypeNull is a DoDSettleOrderType of type Null
	DoDSettleOrderTypeNull DoDSettleOrderType = iota
	// DoDSettleOrderTypeCreate is a DoDSettleOrderType of type Create
	DoDSettleOrderTypeCreate
	// DoDSettleOrderTypeChange is a DoDSettleOrderType of type Change
	DoDSettleOrderTypeChange
	// DoDSettleOrderTypeTerminate is a DoDSettleOrderType of type Terminate
	DoDSettleOrderTypeTerminate
)

func ParseDoDSettleOrderType added in v1.4.0

func ParseDoDSettleOrderType(name string) (DoDSettleOrderType, error)

ParseDoDSettleOrderType attempts to convert a string to a DoDSettleOrderType

func (*DoDSettleOrderType) DecodeMsg added in v1.4.0

func (z *DoDSettleOrderType) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettleOrderType) EncodeMsg added in v1.4.0

func (z DoDSettleOrderType) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (DoDSettleOrderType) MarshalMsg added in v1.4.0

func (z DoDSettleOrderType) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettleOrderType) MarshalText added in v1.4.0

func (x DoDSettleOrderType) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method

func (DoDSettleOrderType) Msgsize added in v1.4.0

func (z DoDSettleOrderType) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (DoDSettleOrderType) String added in v1.4.0

func (x DoDSettleOrderType) String() string

String implements the Stringer interface.

func (*DoDSettleOrderType) UnmarshalMsg added in v1.4.0

func (z *DoDSettleOrderType) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

func (*DoDSettleOrderType) UnmarshalText added in v1.4.0

func (x *DoDSettleOrderType) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method

type DoDSettlePAYGTimeSpan added in v1.4.0

type DoDSettlePAYGTimeSpan struct {
	StartTime int64 `msg:"s"`
	EndTime   int64 `msg:"e"`
}

func DoDSettleGetPAYGTimeSpan added in v1.4.0

func DoDSettleGetPAYGTimeSpan(ctx *vmstore.VMContext, productId, orderId string) (*DoDSettlePAYGTimeSpan, error)

func (*DoDSettlePAYGTimeSpan) DecodeMsg added in v1.4.0

func (z *DoDSettlePAYGTimeSpan) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettlePAYGTimeSpan) EncodeMsg added in v1.4.0

func (z DoDSettlePAYGTimeSpan) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (DoDSettlePAYGTimeSpan) MarshalMsg added in v1.4.0

func (z DoDSettlePAYGTimeSpan) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettlePAYGTimeSpan) Msgsize added in v1.4.0

func (z DoDSettlePAYGTimeSpan) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettlePAYGTimeSpan) UnmarshalMsg added in v1.4.0

func (z *DoDSettlePAYGTimeSpan) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettlePAYGTimeSpanKey added in v1.4.0

type DoDSettlePAYGTimeSpanKey struct {
	ProductId string
	OrderId   string
}

func (*DoDSettlePAYGTimeSpanKey) DecodeMsg added in v1.4.0

func (z *DoDSettlePAYGTimeSpanKey) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettlePAYGTimeSpanKey) EncodeMsg added in v1.4.0

func (z DoDSettlePAYGTimeSpanKey) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettlePAYGTimeSpanKey) Hash added in v1.4.0

func (DoDSettlePAYGTimeSpanKey) MarshalMsg added in v1.4.0

func (z DoDSettlePAYGTimeSpanKey) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettlePAYGTimeSpanKey) Msgsize added in v1.4.0

func (z DoDSettlePAYGTimeSpanKey) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettlePAYGTimeSpanKey) UnmarshalMsg added in v1.4.0

func (z *DoDSettlePAYGTimeSpanKey) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettlePaymentType added in v1.4.0

type DoDSettlePaymentType int

ENUM( null invoice stableCoin )

const (
	// DoDSettlePaymentTypeNull is a DoDSettlePaymentType of type Null
	DoDSettlePaymentTypeNull DoDSettlePaymentType = iota
	// DoDSettlePaymentTypeInvoice is a DoDSettlePaymentType of type Invoice
	DoDSettlePaymentTypeInvoice
	// DoDSettlePaymentTypeStableCoin is a DoDSettlePaymentType of type StableCoin
	DoDSettlePaymentTypeStableCoin
)

func ParseDoDSettlePaymentType added in v1.4.0

func ParseDoDSettlePaymentType(name string) (DoDSettlePaymentType, error)

ParseDoDSettlePaymentType attempts to convert a string to a DoDSettlePaymentType

func (*DoDSettlePaymentType) DecodeMsg added in v1.4.0

func (z *DoDSettlePaymentType) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettlePaymentType) EncodeMsg added in v1.4.0

func (z DoDSettlePaymentType) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (DoDSettlePaymentType) MarshalMsg added in v1.4.0

func (z DoDSettlePaymentType) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettlePaymentType) MarshalText added in v1.4.0

func (x DoDSettlePaymentType) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method

func (DoDSettlePaymentType) Msgsize added in v1.4.0

func (z DoDSettlePaymentType) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (DoDSettlePaymentType) String added in v1.4.0

func (x DoDSettlePaymentType) String() string

String implements the Stringer interface.

func (*DoDSettlePaymentType) UnmarshalMsg added in v1.4.0

func (z *DoDSettlePaymentType) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

func (*DoDSettlePaymentType) UnmarshalText added in v1.4.0

func (x *DoDSettlePaymentType) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method

type DoDSettleProduct added in v1.4.0

type DoDSettleProduct struct {
	Seller    types.Address `json:"seller" msg:"s,extension"`
	ProductId string        `json:"productId,omitempty" msg:"p"`
}

func DoDSettleGetProductIdByStorageKey added in v1.4.0

func DoDSettleGetProductIdByStorageKey(ctx *vmstore.VMContext, psk types.Hash) (*DoDSettleProduct, error)

func DoDSettleGetProductIdListByAddress added in v1.4.0

func DoDSettleGetProductIdListByAddress(ctx *vmstore.VMContext, address types.Address) ([]*DoDSettleProduct, error)

func (*DoDSettleProduct) DecodeMsg added in v1.4.0

func (z *DoDSettleProduct) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettleProduct) EncodeMsg added in v1.4.0

func (z DoDSettleProduct) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleProduct) Hash added in v1.4.0

func (z *DoDSettleProduct) Hash() types.Hash

func (DoDSettleProduct) MarshalMsg added in v1.4.0

func (z DoDSettleProduct) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettleProduct) Msgsize added in v1.4.0

func (z DoDSettleProduct) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleProduct) UnmarshalMsg added in v1.4.0

func (z *DoDSettleProduct) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleProductInfo added in v1.4.0

type DoDSettleProductInfo struct {
	OrderItemId string `json:"orderItemId" msg:"oii"`
	ProductId   string `json:"productId" msg:"pi"`
	Active      bool   `json:"active" msg:"a"`
}

func (*DoDSettleProductInfo) DecodeMsg added in v1.4.0

func (z *DoDSettleProductInfo) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettleProductInfo) EncodeMsg added in v1.4.0

func (z DoDSettleProductInfo) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (DoDSettleProductInfo) MarshalMsg added in v1.4.0

func (z DoDSettleProductInfo) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettleProductInfo) Msgsize added in v1.4.0

func (z DoDSettleProductInfo) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleProductInfo) UnmarshalMsg added in v1.4.0

func (z *DoDSettleProductInfo) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleProductInvoice added in v1.4.0

type DoDSettleProductInvoice struct {
	InvoiceId   types.Hash                  `json:"invoiceId"`
	TotalAmount float64                     `json:"totalAmount"`
	Currency    string                      `json:"currency"`
	StartTime   int64                       `json:"startTime"`
	EndTime     int64                       `json:"endTime"`
	Flight      bool                        `json:"flight"`
	Split       bool                        `json:"split"`
	Buyer       *DoDSettleUser              `json:"buyer"`
	Seller      *DoDSettleUser              `json:"seller"`
	Connection  *DoDSettleInvoiceConnDetail `json:"connection"`
}

func DoDSettleGenerateInvoiceByProduct added in v1.4.0

func DoDSettleGenerateInvoiceByProduct(ctx *vmstore.VMContext, seller types.Address, productId string, start, end int64,
	flight, split bool) (*DoDSettleProductInvoice, error)

func (*DoDSettleProductInvoice) DecodeMsg added in v1.4.0

func (z *DoDSettleProductInvoice) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleProductInvoice) EncodeMsg added in v1.4.0

func (z *DoDSettleProductInvoice) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleProductInvoice) MarshalMsg added in v1.4.0

func (z *DoDSettleProductInvoice) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleProductInvoice) Msgsize added in v1.4.0

func (z *DoDSettleProductInvoice) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleProductInvoice) UnmarshalMsg added in v1.4.0

func (z *DoDSettleProductInvoice) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleResponseAction added in v1.4.0

type DoDSettleResponseAction int

ENUM( null confirm reject )

const (
	// DoDSettleResponseActionNull is a DoDSettleResponseAction of type Null
	DoDSettleResponseActionNull DoDSettleResponseAction = iota
	// DoDSettleResponseActionConfirm is a DoDSettleResponseAction of type Confirm
	DoDSettleResponseActionConfirm
	// DoDSettleResponseActionReject is a DoDSettleResponseAction of type Reject
	DoDSettleResponseActionReject
)

func ParseDoDSettleResponseAction added in v1.4.0

func ParseDoDSettleResponseAction(name string) (DoDSettleResponseAction, error)

ParseDoDSettleResponseAction attempts to convert a string to a DoDSettleResponseAction

func (*DoDSettleResponseAction) DecodeMsg added in v1.4.0

func (z *DoDSettleResponseAction) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettleResponseAction) EncodeMsg added in v1.4.0

func (z DoDSettleResponseAction) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (DoDSettleResponseAction) MarshalMsg added in v1.4.0

func (z DoDSettleResponseAction) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettleResponseAction) MarshalText added in v1.4.0

func (x DoDSettleResponseAction) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method

func (DoDSettleResponseAction) Msgsize added in v1.4.0

func (z DoDSettleResponseAction) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (DoDSettleResponseAction) String added in v1.4.0

func (x DoDSettleResponseAction) String() string

String implements the Stringer interface.

func (*DoDSettleResponseAction) UnmarshalMsg added in v1.4.0

func (z *DoDSettleResponseAction) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

func (*DoDSettleResponseAction) UnmarshalText added in v1.4.0

func (x *DoDSettleResponseAction) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method

type DoDSettleResponseParam added in v1.4.0

type DoDSettleResponseParam struct {
	RequestHash types.Hash              `json:"requestHash" msg:"-"`
	Action      DoDSettleResponseAction `json:"action" msg:"c"`
}

func (*DoDSettleResponseParam) DecodeMsg added in v1.4.0

func (z *DoDSettleResponseParam) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettleResponseParam) EncodeMsg added in v1.4.0

func (z DoDSettleResponseParam) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (DoDSettleResponseParam) MarshalMsg added in v1.4.0

func (z DoDSettleResponseParam) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettleResponseParam) Msgsize added in v1.4.0

func (z DoDSettleResponseParam) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleResponseParam) UnmarshalMsg added in v1.4.0

func (z *DoDSettleResponseParam) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleServiceClass added in v1.4.0

type DoDSettleServiceClass int

ENUM( null gold silver bronze )

const (
	// DoDSettleServiceClassNull is a DoDSettleServiceClass of type Null
	DoDSettleServiceClassNull DoDSettleServiceClass = iota
	// DoDSettleServiceClassGold is a DoDSettleServiceClass of type Gold
	DoDSettleServiceClassGold
	// DoDSettleServiceClassSilver is a DoDSettleServiceClass of type Silver
	DoDSettleServiceClassSilver
	// DoDSettleServiceClassBronze is a DoDSettleServiceClass of type Bronze
	DoDSettleServiceClassBronze
)

func ParseDoDSettleServiceClass added in v1.4.0

func ParseDoDSettleServiceClass(name string) (DoDSettleServiceClass, error)

ParseDoDSettleServiceClass attempts to convert a string to a DoDSettleServiceClass

func (*DoDSettleServiceClass) DecodeMsg added in v1.4.0

func (z *DoDSettleServiceClass) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettleServiceClass) EncodeMsg added in v1.4.0

func (z DoDSettleServiceClass) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (DoDSettleServiceClass) MarshalMsg added in v1.4.0

func (z DoDSettleServiceClass) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettleServiceClass) MarshalText added in v1.4.0

func (x DoDSettleServiceClass) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method

func (DoDSettleServiceClass) Msgsize added in v1.4.0

func (z DoDSettleServiceClass) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (DoDSettleServiceClass) String added in v1.4.0

func (x DoDSettleServiceClass) String() string

String implements the Stringer interface.

func (*DoDSettleServiceClass) UnmarshalMsg added in v1.4.0

func (z *DoDSettleServiceClass) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

func (*DoDSettleServiceClass) UnmarshalText added in v1.4.0

func (x *DoDSettleServiceClass) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method

type DoDSettleTerminateOrderParam added in v1.4.0

type DoDSettleTerminateOrderParam struct {
	Buyer       *DoDSettleUser                    `json:"buyer" msg:"b"`
	Seller      *DoDSettleUser                    `json:"seller" msg:"s"`
	Connections []*DoDSettleChangeConnectionParam `json:"connections" msg:"c"`
}

func (*DoDSettleTerminateOrderParam) DecodeMsg added in v1.4.0

func (z *DoDSettleTerminateOrderParam) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleTerminateOrderParam) EncodeMsg added in v1.4.0

func (z *DoDSettleTerminateOrderParam) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleTerminateOrderParam) FromABI added in v1.4.0

func (z *DoDSettleTerminateOrderParam) FromABI(data []byte) error

func (*DoDSettleTerminateOrderParam) MarshalMsg added in v1.4.0

func (z *DoDSettleTerminateOrderParam) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleTerminateOrderParam) Msgsize added in v1.4.0

func (z *DoDSettleTerminateOrderParam) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleTerminateOrderParam) ToABI added in v1.4.0

func (z *DoDSettleTerminateOrderParam) ToABI() ([]byte, error)

func (*DoDSettleTerminateOrderParam) UnmarshalMsg added in v1.4.0

func (z *DoDSettleTerminateOrderParam) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

func (*DoDSettleTerminateOrderParam) Verify added in v1.4.0

type DoDSettleUpdateOrderInfoParam added in v1.4.0

type DoDSettleUpdateOrderInfoParam struct {
	Buyer       types.Address         `json:"buyer" msg:"-"`
	InternalId  types.Hash            `json:"internalId,omitempty" msg:"i,extension"`
	OrderId     string                `json:"orderId,omitempty" msg:"oi"`
	OrderItemId []*DoDSettleOrderItem `json:"orderItemId" msg:"oii"`
	Status      DoDSettleOrderState   `json:"status,omitempty" msg:"s"`
	FailReason  string                `json:"failReason,omitempty" msg:"fr"`
}

func (*DoDSettleUpdateOrderInfoParam) DecodeMsg added in v1.4.0

func (z *DoDSettleUpdateOrderInfoParam) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleUpdateOrderInfoParam) EncodeMsg added in v1.4.0

func (z *DoDSettleUpdateOrderInfoParam) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleUpdateOrderInfoParam) FromABI added in v1.4.0

func (z *DoDSettleUpdateOrderInfoParam) FromABI(data []byte) error

func (*DoDSettleUpdateOrderInfoParam) MarshalMsg added in v1.4.0

func (z *DoDSettleUpdateOrderInfoParam) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleUpdateOrderInfoParam) Msgsize added in v1.4.0

func (z *DoDSettleUpdateOrderInfoParam) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleUpdateOrderInfoParam) ToABI added in v1.4.0

func (z *DoDSettleUpdateOrderInfoParam) ToABI() ([]byte, error)

func (*DoDSettleUpdateOrderInfoParam) UnmarshalMsg added in v1.4.0

func (z *DoDSettleUpdateOrderInfoParam) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

func (*DoDSettleUpdateOrderInfoParam) Verify added in v1.4.0

type DoDSettleUpdateProductInfoParam added in v1.4.0

type DoDSettleUpdateProductInfoParam struct {
	Address     types.Address           `json:"address" msg:"-"`
	OrderId     string                  `json:"orderId" msg:"oi"`
	ProductInfo []*DoDSettleProductInfo `json:"productInfo" msg:"p"`
}

func (*DoDSettleUpdateProductInfoParam) DecodeMsg added in v1.4.0

func (z *DoDSettleUpdateProductInfoParam) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleUpdateProductInfoParam) EncodeMsg added in v1.4.0

func (z *DoDSettleUpdateProductInfoParam) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleUpdateProductInfoParam) FromABI added in v1.4.0

func (z *DoDSettleUpdateProductInfoParam) FromABI(data []byte) error

func (*DoDSettleUpdateProductInfoParam) MarshalMsg added in v1.4.0

func (z *DoDSettleUpdateProductInfoParam) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleUpdateProductInfoParam) Msgsize added in v1.4.0

func (z *DoDSettleUpdateProductInfoParam) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleUpdateProductInfoParam) ToABI added in v1.4.0

func (z *DoDSettleUpdateProductInfoParam) ToABI() ([]byte, error)

func (*DoDSettleUpdateProductInfoParam) UnmarshalMsg added in v1.4.0

func (z *DoDSettleUpdateProductInfoParam) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

func (*DoDSettleUpdateProductInfoParam) Verify added in v1.4.0

type DoDSettleUser added in v1.4.0

type DoDSettleUser struct {
	Address types.Address `json:"address" msg:"a,extension"`
	Name    string        `json:"name" msg:"n"`
}

func (*DoDSettleUser) DecodeMsg added in v1.4.0

func (z *DoDSettleUser) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DoDSettleUser) EncodeMsg added in v1.4.0

func (z DoDSettleUser) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (DoDSettleUser) MarshalMsg added in v1.4.0

func (z DoDSettleUser) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DoDSettleUser) Msgsize added in v1.4.0

func (z DoDSettleUser) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleUser) UnmarshalMsg added in v1.4.0

func (z *DoDSettleUser) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleUserInfos added in v1.4.0

type DoDSettleUserInfos struct {
	InternalIds []*DoDSettleInternalIdWrap `json:"internalIds,omitempty" msg:"i"`
	OrderIds    []*DoDSettleOrder          `json:"orderIds,omitempty" msg:"o"`
}

func (*DoDSettleUserInfos) DecodeMsg added in v1.4.0

func (z *DoDSettleUserInfos) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleUserInfos) EncodeMsg added in v1.4.0

func (z *DoDSettleUserInfos) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleUserInfos) MarshalMsg added in v1.4.0

func (z *DoDSettleUserInfos) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleUserInfos) Msgsize added in v1.4.0

func (z *DoDSettleUserInfos) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleUserInfos) UnmarshalMsg added in v1.4.0

func (z *DoDSettleUserInfos) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DoDSettleUserProducts added in v1.4.0

type DoDSettleUserProducts struct {
	Products []*DoDSettleProduct `json:"products" msg:"p"`
}

func (*DoDSettleUserProducts) DecodeMsg added in v1.4.0

func (z *DoDSettleUserProducts) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DoDSettleUserProducts) EncodeMsg added in v1.4.0

func (z *DoDSettleUserProducts) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DoDSettleUserProducts) MarshalMsg added in v1.4.0

func (z *DoDSettleUserProducts) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DoDSettleUserProducts) Msgsize added in v1.4.0

func (z *DoDSettleUserProducts) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DoDSettleUserProducts) UnmarshalMsg added in v1.4.0

func (z *DoDSettleUserProducts) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type KYCAddress added in v1.4.1

type KYCAddress struct {
	ChainAddress types.Address `msg:"-" json:"chainAddress"`
	Action       uint8         `msg:"-" json:"action"`
	TradeAddress string        `msg:"t" json:"tradeAddress"`
	Comment      string        `msg:"c" json:"comment"`
	Valid        bool          `msg:"v" json:"valid"`
}

func KYCGetTradeAddress added in v1.4.1

func KYCGetTradeAddress(ctx *vmstore.VMContext, address types.Address) ([]*KYCAddress, error)

func (*KYCAddress) DecodeMsg added in v1.4.1

func (z *KYCAddress) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (KYCAddress) EncodeMsg added in v1.4.1

func (z KYCAddress) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*KYCAddress) GetKey added in v1.4.1

func (z *KYCAddress) GetKey() []byte

func (*KYCAddress) GetMixKey added in v1.4.1

func (z *KYCAddress) GetMixKey() []byte

func (KYCAddress) MarshalMsg added in v1.4.1

func (z KYCAddress) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (KYCAddress) Msgsize added in v1.4.1

func (z KYCAddress) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*KYCAddress) UnmarshalMsg added in v1.4.1

func (z *KYCAddress) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type KYCAdminAccount added in v1.4.1

type KYCAdminAccount struct {
	Account types.Address `msg:"-" json:"account"`
	Comment string        `msg:"c" json:"comment"`
	Valid   bool          `msg:"v" json:"valid"`
}

func KYCGetAdmin added in v1.4.1

func KYCGetAdmin(ctx *vmstore.VMContext) ([]*KYCAdminAccount, error)

func (*KYCAdminAccount) DecodeMsg added in v1.4.1

func (z *KYCAdminAccount) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (KYCAdminAccount) EncodeMsg added in v1.4.1

func (z KYCAdminAccount) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (KYCAdminAccount) MarshalMsg added in v1.4.1

func (z KYCAdminAccount) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (KYCAdminAccount) Msgsize added in v1.4.1

func (z KYCAdminAccount) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*KYCAdminAccount) UnmarshalMsg added in v1.4.1

func (z *KYCAdminAccount) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type KYCOperatorAccount added in v1.4.1

type KYCOperatorAccount struct {
	Account types.Address `msg:"-" json:"account"`
	Action  uint8         `msg:"-" json:"action"`
	Comment string        `msg:"c" json:"comment"`
	Valid   bool          `msg:"v" json:"valid"`
}

func KYCGetOperator added in v1.4.1

func KYCGetOperator(ctx *vmstore.VMContext) ([]*KYCOperatorAccount, error)

func (*KYCOperatorAccount) DecodeMsg added in v1.4.1

func (z *KYCOperatorAccount) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (KYCOperatorAccount) EncodeMsg added in v1.4.1

func (z KYCOperatorAccount) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (KYCOperatorAccount) MarshalMsg added in v1.4.1

func (z KYCOperatorAccount) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (KYCOperatorAccount) Msgsize added in v1.4.1

func (z KYCOperatorAccount) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*KYCOperatorAccount) UnmarshalMsg added in v1.4.1

func (z *KYCOperatorAccount) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type KYCStatus added in v1.4.1

type KYCStatus struct {
	ChainAddress types.Address `msg:"-" json:"chainAddress"`
	Status       string        `msg:"s" json:"status"`
	Valid        bool          `msg:"v" json:"valid"`
}

func KYCGetAllStatus added in v1.4.1

func KYCGetAllStatus(ctx *vmstore.VMContext) ([]*KYCStatus, error)

func KYCGetStatusByChainAddress added in v1.4.1

func KYCGetStatusByChainAddress(ctx *vmstore.VMContext, address types.Address) (*KYCStatus, error)

func KYCGetStatusByTradeAddress added in v1.4.1

func KYCGetStatusByTradeAddress(ctx *vmstore.VMContext, address string) (*KYCStatus, error)

func (*KYCStatus) DecodeMsg added in v1.4.1

func (z *KYCStatus) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (KYCStatus) EncodeMsg added in v1.4.1

func (z KYCStatus) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (KYCStatus) MarshalMsg added in v1.4.1

func (z KYCStatus) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (KYCStatus) Msgsize added in v1.4.1

func (z KYCStatus) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*KYCStatus) UnmarshalMsg added in v1.4.1

func (z *KYCStatus) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type MinerRewardInfo added in v1.2.3

type MinerRewardInfo struct {
	Beneficial   types.Address `json:"beneficial"`
	StartHeight  uint64        `json:"startHeight"`
	EndHeight    uint64        `json:"endHeight"`
	RewardBlocks uint64        `json:"rewardBlocks"`
	RewardAmount *big.Int      `json:"rewardAmount"`
	Timestamp    int64         `json:"_"`
}

type MinerRewardParam added in v1.2.3

type MinerRewardParam struct {
	Coinbase     types.Address `json:"coinbase"`
	Beneficial   types.Address `json:"beneficial"`
	StartHeight  uint64        `json:"startHeight"`
	EndHeight    uint64        `json:"endHeight"`
	RewardBlocks uint64        `json:"rewardBlocks"`
	RewardAmount *big.Int      `json:"rewardAmount"`
}

func (*MinerRewardParam) Verify added in v1.2.3

func (p *MinerRewardParam) Verify() (bool, error)

type NEP5PledgeInfo added in v1.1.0

type NEP5PledgeInfo struct {
	PType         uint8
	Amount        *big.Int
	WithdrawTime  int64
	Beneficial    types.Address
	PledgeAddress types.Address
	NEP5TxId      string
}

func GetBeneficialInfos added in v1.1.0

func GetBeneficialInfos(store ledger.Store, addr types.Address) ([]*NEP5PledgeInfo, *big.Int)

GetPledgeInfos get pledge info list by pledge address

func GetBeneficialPledgeInfos added in v1.1.0

func GetBeneficialPledgeInfos(store ledger.Store, beneficial types.Address, pType PledgeType) ([]*NEP5PledgeInfo, *big.Int)

GetBeneficialPledgeInfos get pledge info by beneficial address and pledge type

func GetPledgeInfos added in v1.1.0

func GetPledgeInfos(store ledger.Store, addr types.Address) ([]*NEP5PledgeInfo, *big.Int)

GetPledgeInfos get pledge info list by pledge address

func ParsePledgeInfo added in v1.1.0

func ParsePledgeInfo(data []byte) (*NEP5PledgeInfo, error)

ParsePledgeInfo convert data to NEP5PledgeInfo

func SearchAllPledgeInfos added in v1.1.0

func SearchAllPledgeInfos(store ledger.Store) ([]*NEP5PledgeInfo, error)

func (*NEP5PledgeInfo) ToABI added in v1.4.0

func (info *NEP5PledgeInfo) ToABI() ([]byte, error)

type OracleInfo added in v1.4.0

type OracleInfo struct {
	Account types.Address
	OType   uint32
	OID     types.Hash
	KeyType uint16
	PubKey  []byte
	Code    string
	Hash    types.Hash
}

func GetAllOracleInfo added in v1.4.0

func GetAllOracleInfo(store ledger.Store) []*OracleInfo

func GetOracleInfoByAccount added in v1.4.0

func GetOracleInfoByAccount(store ledger.Store, account types.Address) []*OracleInfo

func GetOracleInfoByAccountAndType added in v1.4.0

func GetOracleInfoByAccountAndType(store ledger.Store, account types.Address, ot uint32) []*OracleInfo

func GetOracleInfoByHash added in v1.4.0

func GetOracleInfoByHash(store ledger.Store, hash types.Hash) []*OracleInfo

func GetOracleInfoByType added in v1.4.0

func GetOracleInfoByType(store ledger.Store, ot uint32) []*OracleInfo

func GetOracleInfoByTypeAndID added in v1.4.0

func GetOracleInfoByTypeAndID(store ledger.Store, ot uint32, id types.Hash) []*OracleInfo

func GetOracleInfoByTypeAndIDAndPk added in v1.4.0

func GetOracleInfoByTypeAndIDAndPk(store ledger.Store, ot uint32, id types.Hash, kt uint16, pk []byte) []*OracleInfo

type PermNode added in v1.4.0

type PermNode struct {
	NodeId  string `msg:"-" json:"nodeId"`
	NodeUrl string `msg:"nu" json:"nodeUrl"`
	Comment string `msg:"c" json:"comment"`
	Valid   bool   `msg:"s" json:"valid"`
}

func PermissionGetAllNodes added in v1.4.0

func PermissionGetAllNodes(store ledger.Store) ([]*PermNode, error)

func PermissionGetNode added in v1.4.0

func PermissionGetNode(ctx *vmstore.VMContext, id string) (*PermNode, error)

func (*PermNode) DecodeMsg added in v1.4.0

func (z *PermNode) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (PermNode) EncodeMsg added in v1.4.0

func (z PermNode) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (PermNode) MarshalMsg added in v1.4.0

func (z PermNode) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (PermNode) Msgsize added in v1.4.0

func (z PermNode) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*PermNode) UnmarshalMsg added in v1.4.0

func (z *PermNode) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type PledgeParam added in v1.1.0

type PledgeParam struct {
	Beneficial    types.Address
	PledgeAddress types.Address
	PType         uint8
	NEP5TxId      string
}

func ParsePledgeParam added in v1.1.0

func ParsePledgeParam(data []byte) (*PledgeParam, error)

ParsePledgeParam convert data to PledgeParam

func (*PledgeParam) ToABI added in v1.4.0

func (param *PledgeParam) ToABI() ([]byte, error)

type PledgeResult added in v1.1.0

type PledgeResult struct {
	Key        []byte
	PledgeInfo *NEP5PledgeInfo
}

func SearchBeneficialPledgeInfo added in v1.1.0

func SearchBeneficialPledgeInfo(store ledger.Store, param *WithdrawPledgeParam) []*PledgeResult

func SearchBeneficialPledgeInfoByTxId added in v1.1.1

func SearchBeneficialPledgeInfoByTxId(ctx *vmstore.VMContext, param *WithdrawPledgeParam) *PledgeResult

func SearchBeneficialPledgeInfoIgnoreWithdrawTime added in v1.1.0

func SearchBeneficialPledgeInfoIgnoreWithdrawTime(store ledger.Store, param *WithdrawPledgeParam) []*PledgeResult

func SearchPledgeInfoWithNEP5TxId added in v1.1.2

func SearchPledgeInfoWithNEP5TxId(store ledger.Store, param *WithdrawPledgeParam) *PledgeResult

type PledgeType added in v1.1.0

type PledgeType uint8
const (
	Network PledgeType = iota
	Vote
	Storage
	Oracle
	Invalid
)

func StringToPledgeType added in v1.4.0

func StringToPledgeType(sType string) (PledgeType, error)

string to pledge type

func (PledgeType) String added in v1.1.0

func (i PledgeType) String() string

type PrivacyDemoKVABISetPara added in v1.4.0

type PrivacyDemoKVABISetPara struct {
	Key   []byte
	Value []byte
}

type PtmKeyDeleteInfo added in v1.4.0

type PtmKeyDeleteInfo struct {
	Account types.Address `msg:"-" json:"account"`
	Btype   uint16        `msg:"b" json:"btype"`
}

type PtmKeyInfo added in v1.4.0

type PtmKeyInfo struct {
	Account types.Address `msg:"-" json:"account"`
	Btype   uint16        `msg:"b" json:"btype"`
	Pubkey  string        `msg:"k" json:"pubkey"`
}

func GetPtmKeyByAccount added in v1.4.0

func GetPtmKeyByAccount(ctx *vmstore.VMContext, account types.Address) ([]*PtmKeyInfo, error)

func GetPtmKeyByAccountAndBtype added in v1.4.0

func GetPtmKeyByAccountAndBtype(ctx *vmstore.VMContext, account types.Address, vBtype uint16) ([]*PtmKeyInfo, error)

type PtmKeyStorage added in v1.4.0

type PtmKeyStorage struct {
	Pubkey string `msg:"k" json:"pubkey"`
	Valid  bool   `msg:"v" json:"valid"`
}

type PubKeyInfo added in v1.4.0

type PubKeyInfo struct {
	Account   types.Address
	Verifiers []types.Address
	Codes     []types.Hash
	Fee       *big.Int
	Valid     bool
	KeyType   uint16
	PubKey    []byte
}

func GetPublishInfoByKey added in v1.4.0

func GetPublishInfoByKey(ctx *vmstore.VMContext, pt uint32, pid types.Hash, kt uint16, pk []byte, blkHash types.Hash) *PubKeyInfo

type PublishInfo added in v1.4.0

type PublishInfo struct {
	Account   types.Address
	PType     uint32
	PID       types.Hash
	KeyType   uint16
	PubKey    []byte
	Verifiers []types.Address
	Codes     []types.Hash
	Fee       *big.Int
	Hash      types.Hash
}

func GetAllPublishInfo added in v1.4.0

func GetAllPublishInfo(store ledger.Store) []*PublishInfo

func GetPublishInfo added in v1.4.0

func GetPublishInfo(ctx *vmstore.VMContext, pt uint32, id types.Hash, kt uint16, pk []byte, hash types.Hash) *PublishInfo

func GetPublishInfoByAccount added in v1.4.0

func GetPublishInfoByAccount(store ledger.Store, account types.Address) []*PublishInfo

func GetPublishInfoByAccountAndType added in v1.4.0

func GetPublishInfoByAccountAndType(store ledger.Store, account types.Address, pt uint32) []*PublishInfo

func GetPublishInfoByType added in v1.4.0

func GetPublishInfoByType(store ledger.Store, pt uint32) []*PublishInfo

func GetPublishInfoByTypeAndId added in v1.4.0

func GetPublishInfoByTypeAndId(store ledger.Store, pt uint32, id types.Hash) []*PublishInfo

type PublishInfoKey added in v1.4.0

type PublishInfoKey struct {
	PType  uint32
	PID    types.Hash
	PubKey []byte
	Hash   types.Hash
}

func (*PublishInfoKey) ToRawKey added in v1.4.0

func (k *PublishInfoKey) ToRawKey() []byte

type RepRewardInfo added in v1.3.0

type RepRewardInfo struct {
	Beneficial   types.Address `json:"beneficial"`
	StartHeight  uint64        `json:"startHeight"`
	EndHeight    uint64        `json:"endHeight"`
	RewardBlocks uint64        `json:"rewardBlocks"`
	RewardAmount *big.Int      `json:"rewardAmount"`
	Timestamp    int64         `json:"_"`
}

type RepRewardParam added in v1.3.0

type RepRewardParam struct {
	Account      types.Address `json:"account"`
	Beneficial   types.Address `json:"beneficial"`
	StartHeight  uint64        `json:"startHeight"`
	EndHeight    uint64        `json:"endHeight"`
	RewardBlocks uint64        `json:"rewardBlocks"`
	RewardAmount *big.Int      `json:"rewardAmount"`
}

func (*RepRewardParam) Verify added in v1.3.0

func (p *RepRewardParam) Verify() (bool, error)

type RewardsInfo added in v1.2.0

type RewardsInfo struct {
	Type     uint8         `json:"type"`
	From     types.Address `json:"from"`
	To       types.Address `json:"to"`
	TxHeader types.Hash    `json:"txHeader"`
	RxHeader types.Hash    `json:"rxHeader"`
	Amount   *big.Int      `json:"amount"`
}

func GetRewardsDetail added in v1.2.0

func GetRewardsDetail(store ledger.Store, txId string) ([]*RewardsInfo, error)

func ParseRewardsInfo added in v1.2.0

func ParseRewardsInfo(data []byte) (*RewardsInfo, error)

func (*RewardsInfo) ToABI added in v1.4.0

func (info *RewardsInfo) ToABI() ([]byte, error)

type RewardsParam added in v1.2.0

type RewardsParam struct {
	Id         types.Hash      `json:"id"`
	Beneficial types.Address   `json:"beneficial"`
	TxHeader   types.Hash      `json:"txHeader"`
	RxHeader   types.Hash      `json:"rxHeader"`
	Amount     *big.Int        `json:"amount"`
	Sign       types.Signature `json:"signature"`
}

func ParseRewardsParam added in v1.4.0

func ParseRewardsParam(name string, data []byte) (*RewardsParam, error)

func (*RewardsParam) ToSignedABI added in v1.4.0

func (ap *RewardsParam) ToSignedABI(name string) ([]byte, error)

func (*RewardsParam) ToUnsignedABI added in v1.4.0

func (ap *RewardsParam) ToUnsignedABI(name string) ([]byte, error)

func (*RewardsParam) Verify added in v1.2.0

func (ap *RewardsParam) Verify(address types.Address, methodName string) (bool, error)

type UnPublishInfo added in v1.4.0

type UnPublishInfo struct {
	Account types.Address
	PType   uint32
	PID     types.Hash
	KeyType uint16
	PubKey  []byte
	Hash    types.Hash
}

type VariablePledgeBeneficial

type VariablePledgeBeneficial struct {
	Amount *big.Int
	PType  PledgeType
}

type VerifierHeartInfo added in v1.4.0

type VerifierHeartInfo struct {
	VType []uint32
}

type VerifierRegInfo added in v1.4.0

type VerifierRegInfo struct {
	Account types.Address
	VType   uint32
	VInfo   string
	VKey    []byte
}

func GetAllVerifiers added in v1.4.0

func GetAllVerifiers(store ledger.Store) ([]*VerifierRegInfo, error)

func GetVerifiersByAccount added in v1.4.0

func GetVerifiersByAccount(store ledger.Store, account types.Address) ([]*VerifierRegInfo, error)

func GetVerifiersByType added in v1.4.0

func GetVerifiersByType(store ledger.Store, vType uint32) ([]*VerifierRegInfo, error)

type VerifierStorage added in v1.4.0

type VerifierStorage struct {
	VInfo string
	VKey  []byte
	Valid bool
}

func GetVerifierInfoByAccountAndType added in v1.4.0

func GetVerifierInfoByAccountAndType(ctx *vmstore.VMContext, account types.Address, vType uint32) (*VerifierStorage, error)

type VerifierUnRegInfo added in v1.4.0

type VerifierUnRegInfo struct {
	Account types.Address
	VType   uint32
}

type WithdrawPledgeParam added in v1.0.3

type WithdrawPledgeParam struct {
	Beneficial types.Address `json:"beneficial"`
	Amount     *big.Int      `json:"amount"`
	PType      uint8         `json:"pType"`
	NEP5TxId   string        `json:"nep5TxId"`
}

func ParseWithdrawPledgeParam added in v1.4.0

func ParseWithdrawPledgeParam(data []byte) (*WithdrawPledgeParam, error)

ParsePledgeParam convert data to PledgeParam

func (*WithdrawPledgeParam) ToABI added in v1.4.0

func (param *WithdrawPledgeParam) ToABI() ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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