Documentation ¶
Index ¶
- Constants
- Variables
- func CheckOracleInfoExist(ctx *vmstore.VMContext, account types.Address, ot uint32, id types.Hash, ...) bool
- func CheckPublishInfoExist(ctx *vmstore.VMContext, account types.Address, pt uint32, id types.Hash, ...) bool
- func CheckVerifierExist(ctx *vmstore.VMContext, account types.Address, vType uint32) bool
- func CheckVerifierInfoExist(ctx *vmstore.VMContext, account types.Address, vType uint32, vInfo string, ...) bool
- func DoDSettleBillingTypeNames() []string
- func DoDSettleBillingUnitNames() []string
- func DoDSettleBillingUnitRound(unit DoDSettleBillingUnit, s, t int64) int64
- func DoDSettleCalcAdditionPrice(ns, ne int64, np float64, conn *DoDSettleConnectionInfo) (float64, error)
- func DoDSettleCalcAmount(bs, be, s, e int64, price float64, dc *DoDSettleInvoiceConnDynamic) float64
- func DoDSettleCalcBillingUnit(unit DoDSettleBillingUnit, s, e int64) int
- func DoDSettleContractStateNames() []string
- func DoDSettleGetInternalIdByOrderId(ctx *vmstore.VMContext, seller types.Address, orderId string) (types.Hash, error)
- func DoDSettleGetInternalIdListByAddress(ctx *vmstore.VMContext, address types.Address) ([]types.Hash, error)
- func DoDSettleGetProductStorageKeyByProductId(ctx *vmstore.VMContext, pid types.Hash) (types.Hash, error)
- func DoDSettleInheritParam(src, dst *DoDSettleConnectionDynamicParam)
- func DoDSettleInheritRawParam(src *DoDSettleConnectionRawParam, dst *DoDSettleConnectionParam)
- func DoDSettleNeedInvoice(bs, be, s, e int64) bool
- func DoDSettleOrderStateNames() []string
- func DoDSettleOrderTypeNames() []string
- func DoDSettlePaymentTypeNames() []string
- func DoDSettleResponseActionNames() []string
- func DoDSettleServiceClassNames() []string
- func DoDSettleSetProductIdByStorageKey(ctx *vmstore.VMContext, psk types.Hash, productId string, seller types.Address) error
- func DoDSettleSetProductStorageKeyByProductId(ctx *vmstore.VMContext, psk, pid types.Hash) error
- func DoDSettleSetSellerConnectionActive(ctx *vmstore.VMContext, active *DoDSettleConnectionActive, id types.Hash) error
- func DoDSettleUpdateConnection(ctx *vmstore.VMContext, conn *DoDSettleConnectionInfo, id types.Hash) error
- func DoDSettleUpdateConnectionRawParam(ctx *vmstore.VMContext, param *DoDSettleConnectionParam, id types.Hash) error
- func DoDSettleUpdateOrder(ctx *vmstore.VMContext, order *DoDSettleOrderInfo, id types.Hash) error
- func DoDSettleUpdatePAYGTimeSpan(ctx *vmstore.VMContext, productId, orderId string, st, et int64) error
- func DoDSettleUpdateUserProduct(ctx *vmstore.VMContext, buyer, seller types.Address, productId string) error
- func GetConfidantKey(address types.Address, txId, txHeader, rxHeader []byte) []byte
- func GetConfidantRewords(store ledger.Store, confidant types.Address) (map[string]*big.Int, error)
- func GetConfidantRewordsDetail(store ledger.Store, confidant types.Address) (map[string][]*RewardsInfo, error)
- func GetLastMinerRewardHeightByAccount(ctx *vmstore.VMContext, coinbase types.Address) (uint64, error)
- func GetLastRepRewardHeightByAccount(ctx *vmstore.VMContext, account types.Address) (uint64, error)
- func GetPledgeBeneficialAmount(store ledger.Store, beneficial types.Address, pType uint8) *big.Int
- func GetPledgeBeneficialTotalAmount(store ledger.Store, beneficial types.Address) (*big.Int, error)
- func GetPledgeKey(addr types.Address, beneficial types.Address, neoTxId string) []byte
- func GetRewardsKey(txId, txHeader, rxHeader []byte) []byte
- func GetTotalDestroyInfo(store ledger.Store, addr *types.Address) (types.Balance, error)
- func GetTotalPledgeAmount(store ledger.Store) *big.Int
- func GetTotalRewards(store ledger.Store, txId string) (*big.Int, error)
- func KYCActionFromString(action string) (uint8, error)
- func KYCActionToString(action uint8) string
- func KYCIsAdmin(ctx *vmstore.VMContext, addr types.Address) bool
- func KYCIsOperator(ctx *vmstore.VMContext, addr types.Address) bool
- func MinerCalcRewardEndHeight(startHeight uint64, maxEndHeight uint64) uint64
- func MinerPovHeightToCount(height uint64) uint64
- func MinerRoundPovHeight(height uint64, round uint64) uint64
- func OracleInfoCheck(ctx *vmstore.VMContext, account types.Address, ot uint32, id types.Hash, ...) error
- func PackSendBlock(ctx *vmstore.VMContext, param *DestroyParam) (*types.StateBlock, error)
- func PermissionIsAdmin(ctx *vmstore.VMContext, addr types.Address) bool
- func PermissionUpdateNode(csdb *statedb.PovContractStateDB, id, url, comment string) error
- func PovGetNodeRewardHeightByDay(ctx *vmstore.VMContext) (uint64, error)
- func PovHeightRound(height uint64, round uint64) uint64
- func PovHeightToCount(height uint64) uint64
- func PrivacyKVGetValue(ctx *vmstore.VMContext, key []byte) ([]byte, error)
- func PtmKeyInfoCheck(ctx *vmstore.VMContext, pt uint16, pk []byte) error
- func PublishInfoCheck(ctx *vmstore.VMContext, account types.Address, pt uint32, id types.Hash, ...) error
- func RepCalcRewardEndHeight(startHeight uint64, maxEndHeight uint64) uint64
- func RepPovHeightToCount(height uint64) uint64
- func RepRoundPovHeight(height uint64, round uint64) uint64
- func UnPublishInfoCheck(ctx *vmstore.VMContext, account types.Address, pt uint32, id types.Hash, ...) error
- func VerifierPledgeCheck(ctx *vmstore.VMContext, account types.Address) error
- func VerifierRegInfoCheck(ctx *vmstore.VMContext, account types.Address, vType uint32, vInfo string, ...) error
- func VerifierUnRegInfoCheck(ctx *vmstore.VMContext, account types.Address, vType uint32) error
- type AdminAccount
- type CodeInfo
- type DestroyInfo
- type DestroyParam
- type DoDSettleBillingType
- func (z *DoDSettleBillingType) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettleBillingType) EncodeMsg(en *msgp.Writer) (err error)
- func (z DoDSettleBillingType) MarshalMsg(b []byte) (o []byte, err error)
- func (x DoDSettleBillingType) MarshalText() ([]byte, error)
- func (z DoDSettleBillingType) Msgsize() (s int)
- func (x DoDSettleBillingType) String() string
- func (z *DoDSettleBillingType) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (x *DoDSettleBillingType) UnmarshalText(text []byte) error
- type DoDSettleBillingUnit
- func (z *DoDSettleBillingUnit) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettleBillingUnit) EncodeMsg(en *msgp.Writer) (err error)
- func (z DoDSettleBillingUnit) MarshalMsg(b []byte) (o []byte, err error)
- func (x DoDSettleBillingUnit) MarshalText() ([]byte, error)
- func (z DoDSettleBillingUnit) Msgsize() (s int)
- func (x DoDSettleBillingUnit) String() string
- func (z *DoDSettleBillingUnit) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (x *DoDSettleBillingUnit) UnmarshalText(text []byte) error
- type DoDSettleBuyerInvoice
- func (z *DoDSettleBuyerInvoice) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleBuyerInvoice) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleBuyerInvoice) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleBuyerInvoice) Msgsize() (s int)
- func (z *DoDSettleBuyerInvoice) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleChangeConnectionParam
- func (z *DoDSettleChangeConnectionParam) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleChangeConnectionParam) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleChangeConnectionParam) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleChangeConnectionParam) Msgsize() (s int)
- func (z *DoDSettleChangeConnectionParam) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleChangeOrderParam
- func (z *DoDSettleChangeOrderParam) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleChangeOrderParam) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleChangeOrderParam) FromABI(data []byte) error
- func (z *DoDSettleChangeOrderParam) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleChangeOrderParam) Msgsize() (s int)
- func (z *DoDSettleChangeOrderParam) ToABI() ([]byte, error)
- func (z *DoDSettleChangeOrderParam) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (z *DoDSettleChangeOrderParam) Verify() error
- type DoDSettleConnectionActive
- func (z *DoDSettleConnectionActive) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettleConnectionActive) EncodeMsg(en *msgp.Writer) (err error)
- func (z DoDSettleConnectionActive) MarshalMsg(b []byte) (o []byte, err error)
- func (z DoDSettleConnectionActive) Msgsize() (s int)
- func (z *DoDSettleConnectionActive) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleConnectionActiveKey
- func (z *DoDSettleConnectionActiveKey) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleConnectionActiveKey) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleConnectionActiveKey) Hash() types.Hash
- func (z *DoDSettleConnectionActiveKey) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleConnectionActiveKey) Msgsize() (s int)
- func (z *DoDSettleConnectionActiveKey) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleConnectionDynamicParam
- func (z *DoDSettleConnectionDynamicParam) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleConnectionDynamicParam) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleConnectionDynamicParam) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleConnectionDynamicParam) Msgsize() (s int)
- func (z *DoDSettleConnectionDynamicParam) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleConnectionInfo
- func (z *DoDSettleConnectionInfo) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleConnectionInfo) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleConnectionInfo) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleConnectionInfo) Msgsize() (s int)
- func (z *DoDSettleConnectionInfo) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleConnectionLifeTrack
- func (z *DoDSettleConnectionLifeTrack) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleConnectionLifeTrack) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleConnectionLifeTrack) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleConnectionLifeTrack) Msgsize() (s int)
- func (z *DoDSettleConnectionLifeTrack) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleConnectionParam
- func (z *DoDSettleConnectionParam) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleConnectionParam) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleConnectionParam) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleConnectionParam) Msgsize() (s int)
- func (z *DoDSettleConnectionParam) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleConnectionRawParam
- func (z *DoDSettleConnectionRawParam) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleConnectionRawParam) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleConnectionRawParam) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleConnectionRawParam) Msgsize() (s int)
- func (z *DoDSettleConnectionRawParam) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleConnectionStaticParam
- func (z *DoDSettleConnectionStaticParam) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleConnectionStaticParam) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleConnectionStaticParam) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleConnectionStaticParam) Msgsize() (s int)
- func (z *DoDSettleConnectionStaticParam) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleContractState
- func (z *DoDSettleContractState) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettleContractState) EncodeMsg(en *msgp.Writer) (err error)
- func (z DoDSettleContractState) MarshalMsg(b []byte) (o []byte, err error)
- func (x DoDSettleContractState) MarshalText() ([]byte, error)
- func (z DoDSettleContractState) Msgsize() (s int)
- func (x DoDSettleContractState) String() string
- func (z *DoDSettleContractState) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (x *DoDSettleContractState) UnmarshalText(text []byte) error
- type DoDSettleCreateOrderParam
- func (z *DoDSettleCreateOrderParam) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleCreateOrderParam) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleCreateOrderParam) FromABI(data []byte) error
- func (z *DoDSettleCreateOrderParam) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleCreateOrderParam) Msgsize() (s int)
- func (z *DoDSettleCreateOrderParam) ToABI() ([]byte, error)
- func (z *DoDSettleCreateOrderParam) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (z *DoDSettleCreateOrderParam) Verify() error
- type DoDSettleDisconnectInfo
- func (z *DoDSettleDisconnectInfo) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleDisconnectInfo) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleDisconnectInfo) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleDisconnectInfo) Msgsize() (s int)
- func (z *DoDSettleDisconnectInfo) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleInternalIdWrap
- func (z *DoDSettleInternalIdWrap) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettleInternalIdWrap) EncodeMsg(en *msgp.Writer) (err error)
- func (z DoDSettleInternalIdWrap) MarshalMsg(b []byte) (o []byte, err error)
- func (z DoDSettleInternalIdWrap) Msgsize() (s int)
- func (z *DoDSettleInternalIdWrap) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleInvoiceConnDetail
- func (z *DoDSettleInvoiceConnDetail) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleInvoiceConnDetail) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleInvoiceConnDetail) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleInvoiceConnDetail) Msgsize() (s int)
- func (z *DoDSettleInvoiceConnDetail) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleInvoiceConnDynamic
- func (z *DoDSettleInvoiceConnDynamic) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleInvoiceConnDynamic) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleInvoiceConnDynamic) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleInvoiceConnDynamic) Msgsize() (s int)
- func (z *DoDSettleInvoiceConnDynamic) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleInvoiceOrderDetail
- func (z *DoDSettleInvoiceOrderDetail) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleInvoiceOrderDetail) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleInvoiceOrderDetail) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleInvoiceOrderDetail) Msgsize() (s int)
- func (z *DoDSettleInvoiceOrderDetail) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleOrder
- func (z *DoDSettleOrder) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettleOrder) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleOrder) Hash() types.Hash
- func (z DoDSettleOrder) MarshalMsg(b []byte) (o []byte, err error)
- func (z DoDSettleOrder) Msgsize() (s int)
- func (z *DoDSettleOrder) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleOrderInfo
- func (z *DoDSettleOrderInfo) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleOrderInfo) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleOrderInfo) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleOrderInfo) Msgsize() (s int)
- func (z *DoDSettleOrderInfo) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleOrderInvoice
- func (z *DoDSettleOrderInvoice) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleOrderInvoice) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleOrderInvoice) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleOrderInvoice) Msgsize() (s int)
- func (z *DoDSettleOrderInvoice) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleOrderItem
- func (z *DoDSettleOrderItem) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettleOrderItem) EncodeMsg(en *msgp.Writer) (err error)
- func (z DoDSettleOrderItem) MarshalMsg(b []byte) (o []byte, err error)
- func (z DoDSettleOrderItem) Msgsize() (s int)
- func (z *DoDSettleOrderItem) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleOrderLifeTrack
- func (z *DoDSettleOrderLifeTrack) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleOrderLifeTrack) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleOrderLifeTrack) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleOrderLifeTrack) Msgsize() (s int)
- func (z *DoDSettleOrderLifeTrack) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleOrderState
- func (z *DoDSettleOrderState) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettleOrderState) EncodeMsg(en *msgp.Writer) (err error)
- func (z DoDSettleOrderState) MarshalMsg(b []byte) (o []byte, err error)
- func (x DoDSettleOrderState) MarshalText() ([]byte, error)
- func (z DoDSettleOrderState) Msgsize() (s int)
- func (x DoDSettleOrderState) String() string
- func (z *DoDSettleOrderState) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (x *DoDSettleOrderState) UnmarshalText(text []byte) error
- type DoDSettleOrderToProduct
- func (z *DoDSettleOrderToProduct) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleOrderToProduct) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleOrderToProduct) Hash() types.Hash
- func (z *DoDSettleOrderToProduct) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleOrderToProduct) Msgsize() (s int)
- func (z *DoDSettleOrderToProduct) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleOrderType
- func (z *DoDSettleOrderType) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettleOrderType) EncodeMsg(en *msgp.Writer) (err error)
- func (z DoDSettleOrderType) MarshalMsg(b []byte) (o []byte, err error)
- func (x DoDSettleOrderType) MarshalText() ([]byte, error)
- func (z DoDSettleOrderType) Msgsize() (s int)
- func (x DoDSettleOrderType) String() string
- func (z *DoDSettleOrderType) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (x *DoDSettleOrderType) UnmarshalText(text []byte) error
- type DoDSettlePAYGTimeSpan
- func (z *DoDSettlePAYGTimeSpan) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettlePAYGTimeSpan) EncodeMsg(en *msgp.Writer) (err error)
- func (z DoDSettlePAYGTimeSpan) MarshalMsg(b []byte) (o []byte, err error)
- func (z DoDSettlePAYGTimeSpan) Msgsize() (s int)
- func (z *DoDSettlePAYGTimeSpan) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettlePAYGTimeSpanKey
- func (z *DoDSettlePAYGTimeSpanKey) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettlePAYGTimeSpanKey) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettlePAYGTimeSpanKey) Hash() types.Hash
- func (z DoDSettlePAYGTimeSpanKey) MarshalMsg(b []byte) (o []byte, err error)
- func (z DoDSettlePAYGTimeSpanKey) Msgsize() (s int)
- func (z *DoDSettlePAYGTimeSpanKey) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettlePaymentType
- func (z *DoDSettlePaymentType) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettlePaymentType) EncodeMsg(en *msgp.Writer) (err error)
- func (z DoDSettlePaymentType) MarshalMsg(b []byte) (o []byte, err error)
- func (x DoDSettlePaymentType) MarshalText() ([]byte, error)
- func (z DoDSettlePaymentType) Msgsize() (s int)
- func (x DoDSettlePaymentType) String() string
- func (z *DoDSettlePaymentType) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (x *DoDSettlePaymentType) UnmarshalText(text []byte) error
- type DoDSettleProduct
- func (z *DoDSettleProduct) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettleProduct) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleProduct) Hash() types.Hash
- func (z DoDSettleProduct) MarshalMsg(b []byte) (o []byte, err error)
- func (z DoDSettleProduct) Msgsize() (s int)
- func (z *DoDSettleProduct) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleProductInfo
- func (z *DoDSettleProductInfo) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettleProductInfo) EncodeMsg(en *msgp.Writer) (err error)
- func (z DoDSettleProductInfo) MarshalMsg(b []byte) (o []byte, err error)
- func (z DoDSettleProductInfo) Msgsize() (s int)
- func (z *DoDSettleProductInfo) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleProductInvoice
- func (z *DoDSettleProductInvoice) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleProductInvoice) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleProductInvoice) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleProductInvoice) Msgsize() (s int)
- func (z *DoDSettleProductInvoice) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleResponseAction
- func (z *DoDSettleResponseAction) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettleResponseAction) EncodeMsg(en *msgp.Writer) (err error)
- func (z DoDSettleResponseAction) MarshalMsg(b []byte) (o []byte, err error)
- func (x DoDSettleResponseAction) MarshalText() ([]byte, error)
- func (z DoDSettleResponseAction) Msgsize() (s int)
- func (x DoDSettleResponseAction) String() string
- func (z *DoDSettleResponseAction) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (x *DoDSettleResponseAction) UnmarshalText(text []byte) error
- type DoDSettleResponseParam
- func (z *DoDSettleResponseParam) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettleResponseParam) EncodeMsg(en *msgp.Writer) (err error)
- func (z DoDSettleResponseParam) MarshalMsg(b []byte) (o []byte, err error)
- func (z DoDSettleResponseParam) Msgsize() (s int)
- func (z *DoDSettleResponseParam) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleServiceClass
- func (z *DoDSettleServiceClass) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettleServiceClass) EncodeMsg(en *msgp.Writer) (err error)
- func (z DoDSettleServiceClass) MarshalMsg(b []byte) (o []byte, err error)
- func (x DoDSettleServiceClass) MarshalText() ([]byte, error)
- func (z DoDSettleServiceClass) Msgsize() (s int)
- func (x DoDSettleServiceClass) String() string
- func (z *DoDSettleServiceClass) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (x *DoDSettleServiceClass) UnmarshalText(text []byte) error
- type DoDSettleTerminateOrderParam
- func (z *DoDSettleTerminateOrderParam) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleTerminateOrderParam) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleTerminateOrderParam) FromABI(data []byte) error
- func (z *DoDSettleTerminateOrderParam) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleTerminateOrderParam) Msgsize() (s int)
- func (z *DoDSettleTerminateOrderParam) ToABI() ([]byte, error)
- func (z *DoDSettleTerminateOrderParam) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (z *DoDSettleTerminateOrderParam) Verify(ctx *vmstore.VMContext) error
- type DoDSettleUpdateOrderInfoParam
- func (z *DoDSettleUpdateOrderInfoParam) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleUpdateOrderInfoParam) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleUpdateOrderInfoParam) FromABI(data []byte) error
- func (z *DoDSettleUpdateOrderInfoParam) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleUpdateOrderInfoParam) Msgsize() (s int)
- func (z *DoDSettleUpdateOrderInfoParam) ToABI() ([]byte, error)
- func (z *DoDSettleUpdateOrderInfoParam) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (z *DoDSettleUpdateOrderInfoParam) Verify(ctx *vmstore.VMContext) error
- type DoDSettleUpdateProductInfoParam
- func (z *DoDSettleUpdateProductInfoParam) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleUpdateProductInfoParam) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleUpdateProductInfoParam) FromABI(data []byte) error
- func (z *DoDSettleUpdateProductInfoParam) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleUpdateProductInfoParam) Msgsize() (s int)
- func (z *DoDSettleUpdateProductInfoParam) ToABI() ([]byte, error)
- func (z *DoDSettleUpdateProductInfoParam) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (z *DoDSettleUpdateProductInfoParam) Verify(ctx *vmstore.VMContext) error
- type DoDSettleUser
- func (z *DoDSettleUser) DecodeMsg(dc *msgp.Reader) (err error)
- func (z DoDSettleUser) EncodeMsg(en *msgp.Writer) (err error)
- func (z DoDSettleUser) MarshalMsg(b []byte) (o []byte, err error)
- func (z DoDSettleUser) Msgsize() (s int)
- func (z *DoDSettleUser) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleUserInfos
- func (z *DoDSettleUserInfos) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleUserInfos) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleUserInfos) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleUserInfos) Msgsize() (s int)
- func (z *DoDSettleUserInfos) UnmarshalMsg(bts []byte) (o []byte, err error)
- type DoDSettleUserProducts
- func (z *DoDSettleUserProducts) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *DoDSettleUserProducts) EncodeMsg(en *msgp.Writer) (err error)
- func (z *DoDSettleUserProducts) MarshalMsg(b []byte) (o []byte, err error)
- func (z *DoDSettleUserProducts) Msgsize() (s int)
- func (z *DoDSettleUserProducts) UnmarshalMsg(bts []byte) (o []byte, err error)
- type KYCAddress
- func (z *KYCAddress) DecodeMsg(dc *msgp.Reader) (err error)
- func (z KYCAddress) EncodeMsg(en *msgp.Writer) (err error)
- func (z *KYCAddress) GetKey() []byte
- func (z *KYCAddress) GetMixKey() []byte
- func (z KYCAddress) MarshalMsg(b []byte) (o []byte, err error)
- func (z KYCAddress) Msgsize() (s int)
- func (z *KYCAddress) UnmarshalMsg(bts []byte) (o []byte, err error)
- type KYCAdminAccount
- func (z *KYCAdminAccount) DecodeMsg(dc *msgp.Reader) (err error)
- func (z KYCAdminAccount) EncodeMsg(en *msgp.Writer) (err error)
- func (z KYCAdminAccount) MarshalMsg(b []byte) (o []byte, err error)
- func (z KYCAdminAccount) Msgsize() (s int)
- func (z *KYCAdminAccount) UnmarshalMsg(bts []byte) (o []byte, err error)
- type KYCOperatorAccount
- func (z *KYCOperatorAccount) DecodeMsg(dc *msgp.Reader) (err error)
- func (z KYCOperatorAccount) EncodeMsg(en *msgp.Writer) (err error)
- func (z KYCOperatorAccount) MarshalMsg(b []byte) (o []byte, err error)
- func (z KYCOperatorAccount) Msgsize() (s int)
- func (z *KYCOperatorAccount) UnmarshalMsg(bts []byte) (o []byte, err error)
- type KYCStatus
- type MinerRewardInfo
- type MinerRewardParam
- type NEP5PledgeInfo
- func GetBeneficialInfos(store ledger.Store, addr types.Address) ([]*NEP5PledgeInfo, *big.Int)
- func GetBeneficialPledgeInfos(store ledger.Store, beneficial types.Address, pType PledgeType) ([]*NEP5PledgeInfo, *big.Int)
- func GetPledgeInfos(store ledger.Store, addr types.Address) ([]*NEP5PledgeInfo, *big.Int)
- func ParsePledgeInfo(data []byte) (*NEP5PledgeInfo, error)
- func SearchAllPledgeInfos(store ledger.Store) ([]*NEP5PledgeInfo, error)
- type OracleInfo
- func GetAllOracleInfo(store ledger.Store) []*OracleInfo
- func GetOracleInfoByAccount(store ledger.Store, account types.Address) []*OracleInfo
- func GetOracleInfoByAccountAndType(store ledger.Store, account types.Address, ot uint32) []*OracleInfo
- func GetOracleInfoByHash(store ledger.Store, hash types.Hash) []*OracleInfo
- func GetOracleInfoByType(store ledger.Store, ot uint32) []*OracleInfo
- func GetOracleInfoByTypeAndID(store ledger.Store, ot uint32, id types.Hash) []*OracleInfo
- func GetOracleInfoByTypeAndIDAndPk(store ledger.Store, ot uint32, id types.Hash, kt uint16, pk []byte) []*OracleInfo
- type PermNode
- type PledgeParam
- type PledgeResult
- func SearchBeneficialPledgeInfo(store ledger.Store, param *WithdrawPledgeParam) []*PledgeResult
- func SearchBeneficialPledgeInfoByTxId(ctx *vmstore.VMContext, param *WithdrawPledgeParam) *PledgeResult
- func SearchBeneficialPledgeInfoIgnoreWithdrawTime(store ledger.Store, param *WithdrawPledgeParam) []*PledgeResult
- func SearchPledgeInfoWithNEP5TxId(store ledger.Store, param *WithdrawPledgeParam) *PledgeResult
- type PledgeType
- type PrivacyDemoKVABISetPara
- type PtmKeyDeleteInfo
- type PtmKeyInfo
- type PtmKeyStorage
- type PubKeyInfo
- type PublishInfo
- func GetAllPublishInfo(store ledger.Store) []*PublishInfo
- func GetPublishInfo(ctx *vmstore.VMContext, pt uint32, id types.Hash, kt uint16, pk []byte, ...) *PublishInfo
- func GetPublishInfoByAccount(store ledger.Store, account types.Address) []*PublishInfo
- func GetPublishInfoByAccountAndType(store ledger.Store, account types.Address, pt uint32) []*PublishInfo
- func GetPublishInfoByType(store ledger.Store, pt uint32) []*PublishInfo
- func GetPublishInfoByTypeAndId(store ledger.Store, pt uint32, id types.Hash) []*PublishInfo
- type PublishInfoKey
- type RepRewardInfo
- type RepRewardParam
- type RewardsInfo
- type RewardsParam
- type UnPublishInfo
- type VariablePledgeBeneficial
- type VerifierHeartInfo
- type VerifierRegInfo
- type VerifierStorage
- type VerifierUnRegInfo
- type WithdrawPledgeParam
Constants ¶
const ( JsonDestroy = `` /* 626-byte string literal not displayed */ MethodNameDestroy = "Destroy" VariableDestroyInfo = "destroyInfo" KeySize = types.AddressSize + types.HashSize )
const ( JsonDoDSettlement = `` /* 2583-byte string literal not displayed */ MethodNameDoDSettleCreateOrder = "DoDSettleCreateOrder" MethodNameDoDSettleUpdateOrderInfo = "DoDSettleUpdateOrderInfo" MethodNameDoDSettleChangeOrder = "DoDSettleChangeOrder" MethodNameDoDSettleTerminateOrder = "DoDSettleTerminateOrder" MethodNameDoDSettleUpdateProductInfo = "DoDSettleUpdateProductInfo" )
const ( DoDSettleDBTableOrder uint8 = iota DoDSettleDBTableProduct DoDSettleDBTableOrderIdMap DoDSettleDBTableUser DoDSettleDBTableSellerConnActive DoDSettleDBTableBuyerConnActive DoDSettleDBTableConnRawParam DoDSettleDBTablePAYGTimeSpan DoDSettleDBTableProductToOrder DoDSettleDBTableUserProduct DoDSettleDBTableOrderToProduct )
const ( JsonKYCStatus = `` /* 703-byte string literal not displayed */ MethodNameKYCAdminHandOver = "KYCAdminHandOver" MethodNameKYCStatusUpdate = "KYCStatusUpdate" MethodNameKYCTradeAddressUpdate = "KYCTradeAddressUpdate" MethodNameKYCOperatorUpdate = "KYCOperatorUpdate" )
const ( KYCDataAdmin uint8 = iota KYCDataStatus KYCDataAddress KYCDataTradeAddress KYCDataOperator )
const ( KYCActionAdd uint8 = iota KYCActionRemove KYCActionInvalid )
const ( JsonMiner = `` /* 552-byte string literal not displayed */ MethodNameMinerReward = "MinerReward" VariableNameMinerReward = "MinerRewardInfo" )
const ( JsonNEP5Pledge = `` /* 694-byte string literal not displayed */ MethodNEP5Pledge = "NEP5Pledge" MethodWithdrawNEP5Pledge = "WithdrawNEP5Pledge" VariableNEP5PledgeInfo = "nep5PledgeInfo" )
const ( JsonPermission = `` /* 335-byte string literal not displayed */ MethodNamePermissionAdminHandOver = "PermissionAdminHandOver" MethodNamePermissionNodeUpdate = "PermissionNodeUpdate" )
const ( PermissionDataAdmin uint8 = iota PermissionDataNode )
const ( JsonPrivacyDemoKV = `` /* 138-byte string literal not displayed */ MethodNamePrivacyDemoKVSet = "PrivacyDemoKVSet" )
const ( JsonPtmKey = `` /* 369-byte string literal not displayed */ MethodNamePtmKeyDelete = "PtmKeyDelete" MethodNamePtmKeyUpdate = "PtmKeyUpdate" VariableNamePtmKeyStorageVar = "PtmKeyStorageVar" )
const ( // contractAddr(32) + account(32) + btype(2) => pubkey + valid PtmKeyAccIndexS = types.AddressSize + 1 PtmKeyAccIndexE = PtmKeyAccIndexS + 32 PtmKeyBtypeIndexS = PtmKeyAccIndexE + 1 PtmKeyBtypeIndexE = PtmKeyBtypeIndexS + 2 )
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" )
const ( PKDStorageTypeVerifier byte = iota PKDStorageTypePublisher PKDStorageTypeOracle PKDStorageTypeReward )
const ( // contractAddr(32) + pkdType(1) + type(4) + account(32) => info + valid VerifierTypeIndexS = 1 + types.AddressSize VerifierTypeIndexE = VerifierTypeIndexS + 4 VerifierAccIndexS = VerifierTypeIndexE VerifierAccIndexE = VerifierAccIndexS + 32 )
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 )
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 )
const ( JsonRep = `` /* 547-byte string literal not displayed */ MethodNameRepReward = "RepReward" VariableNameRepReward = "RepRewardInfo" )
const ( JsonRewards = `` /* 1272-byte string literal not displayed */ MethodNameUnsignedAirdropRewards = "UnsignedAirdropRewards" MethodNameAirdropRewards = "AirdropRewards" MethodNameUnsignedConfidantRewards = "UnsignedConfidantRewards" MethodNameConfidantRewards = "ConfidantRewards" VariableNameRewards = "rewardsInfo" )
const ( Confidant = iota Rewards )
const (
KYCCommentMaxLen = 128
)
const (
PermissionCommentMaxLen = 128
)
const (
PrivacyDemoKVStorageTypeKV byte = iota
)
Variables ¶
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,
}
)
var (
BlackHoleABI, _ = abi.JSONToABIContract(strings.NewReader(JsonDestroy))
)
var (
DoDSettlementABI, _ = abi.JSONToABIContract(strings.NewReader(JsonDoDSettlement))
)
var (
MinerABI, _ = abi.JSONToABIContract(strings.NewReader(JsonMiner))
)
var (
NEP5PledgeABI, _ = abi.JSONToABIContract(strings.NewReader(JsonNEP5Pledge))
)
var (
PermissionABI, _ = abi.JSONToABIContract(strings.NewReader(JsonPermission))
)
var (
PrivacyDemoKVABI, _ = abi.JSONToABIContract(strings.NewReader(JsonPrivacyDemoKV))
)
var (
PtmKeyABI, _ = abi.JSONToABIContract(strings.NewReader(JsonPtmKey))
)
var (
PublicKeyDistributionABI, _ = abi.JSONToABIContract(strings.NewReader(JsonPublicKeyDistribution))
)
var (
RepABI, _ = abi.JSONToABIContract(strings.NewReader(JsonRep))
)
var (
RewardsABI, _ = abi.JSONToABIContract(strings.NewReader(JsonRewards))
)
Functions ¶
func CheckOracleInfoExist ¶ added in v1.4.0
func CheckPublishInfoExist ¶ added in v1.4.0
func CheckVerifierExist ¶ added in v1.4.0
func CheckVerifierInfoExist ¶ added in v1.4.0
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 DoDSettleGetInternalIdListByAddress ¶ added in v1.4.0
func DoDSettleGetProductStorageKeyByProductId ¶ added in v1.4.0
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 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 DoDSettleSetProductStorageKeyByProductId ¶ added in v1.4.0
func DoDSettleSetSellerConnectionActive ¶ added in v1.4.0
func DoDSettleUpdateConnection ¶ added in v1.4.0
func DoDSettleUpdateConnectionRawParam ¶ added in v1.4.0
func DoDSettleUpdateOrder ¶ added in v1.4.0
func DoDSettleUpdatePAYGTimeSpan ¶ added in v1.4.0
func DoDSettleUpdateUserProduct ¶ added in v1.4.0
func GetConfidantKey ¶ added in v1.2.0
func GetConfidantRewords ¶ added in v1.2.0
func GetConfidantRewordsDetail ¶ added in v1.2.0
func GetLastMinerRewardHeightByAccount ¶ added in v1.3.0
func GetLastRepRewardHeightByAccount ¶ added in v1.3.0
func GetPledgeBeneficialAmount ¶ added in v1.1.0
func GetPledgeBeneficialTotalAmount ¶ added in v1.1.0
func GetPledgeKey ¶
func GetRewardsKey ¶ added in v1.2.0
func GetTotalDestroyInfo ¶ added in v1.3.0
GetTotalDestroyInfo query all destroyed GQAS by account
func GetTotalRewards ¶ added in v1.2.0
func KYCActionFromString ¶ added in v1.4.1
func KYCActionToString ¶ added in v1.4.1
func KYCIsOperator ¶ added in v1.4.1
func MinerCalcRewardEndHeight ¶ added in v1.2.3
func MinerPovHeightToCount ¶ added in v1.2.3
height begin from 0, so height + 1 == blocks count
func MinerRoundPovHeight ¶ added in v1.2.3
func OracleInfoCheck ¶ added in v1.4.0
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 PermissionUpdateNode ¶ added in v1.4.0
func PermissionUpdateNode(csdb *statedb.PovContractStateDB, id, url, comment string) error
func PovGetNodeRewardHeightByDay ¶ added in v1.4.0
func PovHeightRound ¶ added in v1.4.0
func PovHeightToCount ¶ added in v1.4.0
height begin from 0, so height + 1 == blocks count
func PrivacyKVGetValue ¶ added in v1.4.0
func PtmKeyInfoCheck ¶ added in v1.4.0
func PublishInfoCheck ¶ added in v1.4.0
func RepCalcRewardEndHeight ¶ added in v1.3.0
func RepPovHeightToCount ¶ added in v1.3.0
height begin from 0, so height + 1 == blocks count
func RepRoundPovHeight ¶ added in v1.3.0
func UnPublishInfoCheck ¶ added in v1.4.0
func VerifierPledgeCheck ¶ added in v1.4.0
func VerifierRegInfoCheck ¶ added in v1.4.0
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 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
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) 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 (*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 (*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
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 (z *DoDSettleConnectionActiveKey) Hash() types.Hash
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 DoDSettleGetConnectionInfoByProductStorageKey ¶ added in v1.4.0
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 (*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
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 (*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 DoDSettleGetOrderInfoByOrderId ¶ added in v1.4.0
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 (*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
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 (z *DoDSettleOrderToProduct) Hash() types.Hash
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
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
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 (z *DoDSettlePAYGTimeSpanKey) Hash() types.Hash
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 DoDSettleGetProductIdListByAddress ¶ added in v1.4.0
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 (*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
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
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
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 (*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 KYCGetStatusByChainAddress ¶ added in v1.4.1
func KYCGetStatusByTradeAddress ¶ added in v1.4.1
func (KYCStatus) MarshalMsg ¶ added in v1.4.1
MarshalMsg implements msgp.Marshaler
type MinerRewardInfo ¶ added in v1.2.3
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
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
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 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 GetOracleInfoByTypeAndIDAndPk ¶ added in v1.4.0
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 PermissionGetNode ¶ added in v1.4.0
func (PermNode) MarshalMsg ¶ added in v1.4.0
MarshalMsg implements msgp.Marshaler
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 PtmKeyDeleteInfo ¶ added in v1.4.0
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 GetPtmKeyByAccountAndBtype ¶ added in v1.4.0
type PtmKeyStorage ¶ added in v1.4.0
type PubKeyInfo ¶ added in v1.4.0
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 GetPublishInfoByAccount ¶ added in v1.4.0
func GetPublishInfoByAccount(store ledger.Store, account types.Address) []*PublishInfo
func GetPublishInfoByAccountAndType ¶ added in v1.4.0
func GetPublishInfoByType ¶ added in v1.4.0
func GetPublishInfoByType(store ledger.Store, pt uint32) []*PublishInfo
func GetPublishInfoByTypeAndId ¶ added in v1.4.0
type PublishInfoKey ¶ added in v1.4.0
func (*PublishInfoKey) ToRawKey ¶ added in v1.4.0
func (k *PublishInfoKey) ToRawKey() []byte
type RepRewardInfo ¶ added in v1.3.0
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)
type UnPublishInfo ¶ added in v1.4.0
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
func GetAllVerifiers ¶ added in v1.4.0
func GetAllVerifiers(store ledger.Store) ([]*VerifierRegInfo, error)
func GetVerifiersByAccount ¶ added in v1.4.0
func GetVerifiersByType ¶ added in v1.4.0
func GetVerifiersByType(store ledger.Store, vType uint32) ([]*VerifierRegInfo, error)
type VerifierStorage ¶ added in v1.4.0
func GetVerifierInfoByAccountAndType ¶ added in v1.4.0
type VerifierUnRegInfo ¶ added in v1.4.0
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)
Source Files ¶
- abi_blackhole.go
- abi_common.go
- abi_dod_settlement.go
- abi_dod_settlement_types.go
- abi_dod_settlement_types_enum.go
- abi_dod_settlement_types_gen.go
- abi_kyc.go
- abi_kyc_types.go
- abi_kyc_types_gen.go
- abi_miner.go
- abi_nep5_pledge.go
- abi_permission.go
- abi_permission_types.go
- abi_permission_types_gen.go
- abi_privacy_demokv.go
- abi_ptmkey.go
- abi_public_key_distribution.go
- abi_representative.go
- abi_rewards.go
- pledgetype_string.go