Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfNil ¶
func CheckIfNil(args *vmcommon.ContractCallInput) error
CheckIfNil verifies if contract call input is not nil
func NewStakingSmartContract ¶
func NewStakingSmartContract(stakeValue *big.Int, unBoundPeriod uint64, eei vm.SystemEI) (*stakingSC, error)
NewStakingSmartContract creates a staking smart contract
func NewVMContext ¶
func NewVMContext(blockChainHook vmcommon.BlockchainHook, cryptoHook vmcommon.CryptoHook) (*vmContext, error)
NewVMContext creates a context where smart contracts can run and write
Types ¶
type StakingData ¶ added in v1.0.39
type StakingData struct { StartNonce uint64 `json:"StartNonce"` Staked bool `json:"Staked"` UnStakedNonce uint64 `json:"UnStakedNonce"` Address []byte `json:"Address"` StakeValue *big.Int `json:"StakeValue"` }
StakingData represents a data transfer object for details about staking
Click to show internal directories.
Click to hide internal directories.