Documentation
¶
Index ¶
- Constants
- Variables
- type AccountState
- type AssetState
- type ContractState
- func (contractState *ContractState) Bytes() []byte
- func (contractState *ContractState) Deserialize(r io.Reader) error
- func (contractState *ContractState) IsMultiSigContract() bool
- func (contractState *ContractState) IsSignatureCotract() bool
- func (contractState *ContractState) Serialize(w io.Writer) error
- type IStateKeyInterface
- type IStateValueInterface
- type StateBase
- type StorageItem
- type StorageKey
Constants ¶
View Source
const (
MaxByteTypeSize = 1
)
Variables ¶
View Source
var ( StatesMap = map[blockchain.EntryPrefix]IStateValueInterface{ blockchain.ST_Contract: new(ContractState), blockchain.ST_Account: new(AccountState), blockchain.ST_AssetState: new(AssetState), blockchain.ST_Storage: new(StorageItem), } )
Functions ¶
This section is empty.
Types ¶
type AccountState ¶
type AccountState struct { StateBase ProgramHash common.Uint168 IsFrozen bool Balances map[common.Uint256]common.Fixed64 }
func NewAccountState ¶
func (*AccountState) Bytes ¶
func (accountState *AccountState) Bytes() []byte
func (*AccountState) Deserialize ¶
func (accountState *AccountState) Deserialize(r io.Reader) error
type AssetState ¶
type AssetState struct { StateBase AssetId common.Uint256 AssetType types.AssetType Name string Amount common.Fixed64 Avaliable common.Fixed64 Precision byte FeeMode byte Fee common.Fixed64 FeeAddress common.Uint168 Owner *crypto.PublicKey Admin common.Uint168 Issuer common.Uint168 Expiration uint32 IsFrozen bool }
func (*AssetState) Bytes ¶
func (assetState *AssetState) Bytes() []byte
func (*AssetState) Deserialize ¶
func (assetState *AssetState) Deserialize(r io.Reader) error
type ContractState ¶
type ContractState struct { StateBase Code *types.FunctionCode Name string Version string Author string Email string Description string ProgramHash common.Uint168 }
func NewContractState ¶
func NewContractState() *ContractState
func (*ContractState) Bytes ¶
func (contractState *ContractState) Bytes() []byte
func (*ContractState) Deserialize ¶
func (contractState *ContractState) Deserialize(r io.Reader) error
func (*ContractState) IsMultiSigContract ¶
func (contractState *ContractState) IsMultiSigContract() bool
func (*ContractState) IsSignatureCotract ¶
func (contractState *ContractState) IsSignatureCotract() bool
type IStateKeyInterface ¶
type IStateValueInterface ¶
func GetStateValue ¶
func GetStateValue(prefix blockchain.EntryPrefix, data []byte) (IStateValueInterface, error)
type StorageItem ¶
func NewStorageItem ¶
func NewStorageItem(value []byte) *StorageItem
func (*StorageItem) Bytes ¶
func (storageItem *StorageItem) Bytes() []byte
func (*StorageItem) Deserialize ¶
func (storageItem *StorageItem) Deserialize(r io.Reader) error
type StorageKey ¶
func NewStorageKey ¶
func NewStorageKey(codeHash *common.Uint168, key []byte) *StorageKey
func (*StorageKey) Deserialize ¶
func (storageKey *StorageKey) Deserialize(r io.Reader) error
Click to show internal directories.
Click to hide internal directories.