Documentation ¶
Index ¶
- Constants
- func PovGetPublishState(csdb *statedb.PovContractStateDB, rawKey []byte) (*types.PovPublishState, error)
- func PovGetVerifierState(csdb *statedb.PovContractStateDB, rawKey []byte) (*types.PovVerifierState, error)
- func PovSetPublishState(csdb *statedb.PovContractStateDB, rawKey []byte, ps *types.PovPublishState) error
- func PovSetVerifierState(csdb *statedb.PovContractStateDB, rawKey []byte, ps *types.PovVerifierState) error
- type PKDRewardInfo
- type PKDRewardParam
Constants ¶
View Source
const ( // following prefix should be unique in DPKI contract, not global PovContractStatePrefixPKDPS = byte(1) // publish state PovContractStatePrefixPKDVS = byte(2) // verifier state )
Variables ¶
This section is empty.
Functions ¶
func PovGetPublishState ¶
func PovGetPublishState(csdb *statedb.PovContractStateDB, rawKey []byte) (*types.PovPublishState, error)
func PovGetVerifierState ¶
func PovGetVerifierState(csdb *statedb.PovContractStateDB, rawKey []byte) (*types.PovVerifierState, error)
func PovSetPublishState ¶
func PovSetPublishState(csdb *statedb.PovContractStateDB, rawKey []byte, ps *types.PovPublishState) error
func PovSetVerifierState ¶
func PovSetVerifierState(csdb *statedb.PovContractStateDB, rawKey []byte, ps *types.PovVerifierState) error
Types ¶
type PKDRewardInfo ¶
type PKDRewardInfo struct { Beneficial types.Address `json:"beneficial"` EndHeight uint64 `json:"endHeight"` RewardAmount *big.Int `json:"rewardAmount"` Timestamp int64 `json:"timestamp"` }
func NewPKDRewardInfo ¶
func NewPKDRewardInfo() *PKDRewardInfo
type PKDRewardParam ¶
type PKDRewardParam struct { Account types.Address `json:"account"` Beneficial types.Address `json:"beneficial"` EndHeight uint64 `json:"endHeight"` RewardAmount *big.Int `json:"rewardAmount"` }
func NewPKDRewardParam ¶
func NewPKDRewardParam() *PKDRewardParam
Click to show internal directories.
Click to hide internal directories.