Documentation ¶
Index ¶
- Constants
- Variables
- func IsChainContractAddress(address Address) bool
- func IsContractAddress(address Address) bool
- func IsValidHexAddress(hexStr string) bool
- func KeypairFromPrivateKey(privateKey string) (ed25519.PublicKey, ed25519.PrivateKey)
- func KeypairFromSeed(seed string, index uint32) (ed25519.PublicKey, ed25519.PrivateKey, error)
- type Account
- func (a *Account) Address() Address
- func (z *Account) DecodeMsg(dc *msgp.Reader) (err error)
- func (z Account) EncodeMsg(en *msgp.Writer) (err error)
- func (z Account) MarshalMsg(b []byte) (o []byte, err error)
- func (z Account) Msgsize() (s int)
- func (a *Account) PrivateKey() ed25519.PrivateKey
- func (a *Account) Sign(hash Hash) Signature
- func (a *Account) String() string
- func (z *Account) UnmarshalMsg(bts []byte) (o []byte, err error)
- type AccountMeta
- func (z *AccountMeta) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *AccountMeta) EncodeMsg(en *msgp.Writer) (err error)
- func (a *AccountMeta) GetBalance() Balance
- func (a *AccountMeta) GetNetwork() Balance
- func (a *AccountMeta) GetOracle() Balance
- func (a *AccountMeta) GetStorage() Balance
- func (a *AccountMeta) GetVote() Balance
- func (z *AccountMeta) MarshalMsg(b []byte) (o []byte, err error)
- func (z *AccountMeta) Msgsize() (s int)
- func (am *AccountMeta) Token(tt Hash) *TokenMeta
- func (a *AccountMeta) TotalBalance() Balance
- func (z *AccountMeta) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (a *AccountMeta) VoteWeight() Balance
- type Address
- func (addr Address) Bytes() []byte
- func (addr Address) Checksum() []byte
- func (z *Address) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *Address) EncodeMsg(en *msgp.Writer) (err error)
- func (addr *Address) ExtensionType() int8
- func (addr Address) IsZero() bool
- func (addr *Address) Len() int
- func (addr Address) MarshalBinaryTo(text []byte) error
- func (z *Address) MarshalMsg(b []byte) (o []byte, err error)
- func (addr Address) MarshalText() (text []byte, err error)
- func (z *Address) Msgsize() (s int)
- func (addr *Address) SetBytes(b []byte) error
- func (addr Address) String() string
- func (addr *Address) ToHash() Hash
- func (addr *Address) UnmarshalBinary(text []byte) error
- func (z *Address) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (addr *Address) UnmarshalText(text []byte) error
- func (addr Address) Verify(data []byte, signature []byte) bool
- type AddressToken
- type Balance
- func (b Balance) Add(n Balance) Balance
- func (b Balance) Bytes() []byte
- func (b Balance) Compare(n Balance) BalanceComp
- func (b Balance) Div(n int64) (Balance, error)
- func (b Balance) Equal(b2 Balance) bool
- func (b *Balance) ExtensionType() int8
- func (b Balance) IsZero() bool
- func (b *Balance) Len() int
- func (b *Balance) MarshalBinaryTo(text []byte) error
- func (b Balance) MarshalJSON() ([]byte, error)
- func (b Balance) MarshalText() ([]byte, error)
- func (b Balance) Mul(n int64) Balance
- func (b Balance) String() string
- func (b Balance) Sub(n Balance) Balance
- func (b *Balance) UnmarshalBinary(text []byte) error
- func (b *Balance) UnmarshalJSON(text []byte) error
- func (b *Balance) UnmarshalText(text []byte) error
- type BalanceComp
- type Benefit
- func (z *Benefit) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *Benefit) EncodeMsg(en *msgp.Writer) (err error)
- func (z *Benefit) MarshalMsg(b []byte) (o []byte, err error)
- func (z *Benefit) Msgsize() (s int)
- func (b *Benefit) String() string
- func (z *Benefit) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Block
- type BlockType
- func (z *BlockType) DecodeMsg(dc *msgp.Reader) (err error)
- func (z BlockType) EncodeMsg(en *msgp.Writer) (err error)
- func (e BlockType) Equal(t BlockType) bool
- func (e BlockType) MarshalJSON() ([]byte, error)
- func (z BlockType) MarshalMsg(b []byte) (o []byte, err error)
- func (z BlockType) Msgsize() (s int)
- func (t BlockType) String() string
- func (e *BlockType) UnmarshalJSON(b []byte) error
- func (z *BlockType) UnmarshalMsg(bts []byte) (o []byte, err error)
- type ContractAbi
- func (z *ContractAbi) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *ContractAbi) EncodeMsg(en *msgp.Writer) (err error)
- func (c *ContractAbi) ExtensionType() int8
- func (c *ContractAbi) Len() int
- func (c *ContractAbi) MarshalBinaryTo(text []byte) error
- func (z *ContractAbi) MarshalMsg(b []byte) (o []byte, err error)
- func (z *ContractAbi) Msgsize() (s int)
- func (c *ContractAbi) UnmarshalBinary(text []byte) error
- func (z *ContractAbi) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Frontier
- func (z *Frontier) DecodeMsg(dc *msgp.Reader) (err error)
- func (z Frontier) EncodeMsg(en *msgp.Writer) (err error)
- func (f *Frontier) IsZero() bool
- func (z Frontier) MarshalMsg(b []byte) (o []byte, err error)
- func (z Frontier) Msgsize() (s int)
- func (z *Frontier) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Frontiers
- func (z *Frontiers) DecodeMsg(dc *msgp.Reader) (err error)
- func (z Frontiers) EncodeMsg(en *msgp.Writer) (err error)
- func (fs Frontiers) Len() int
- func (fs Frontiers) Less(i, j int) bool
- func (z Frontiers) MarshalMsg(b []byte) (o []byte, err error)
- func (z Frontiers) Msgsize() (s int)
- func (fs Frontiers) Swap(i, j int)
- func (z *Frontiers) UnmarshalMsg(bts []byte) (o []byte, err error)
- type GenesisTokenInfo
- type Hash
- func (h Hash) Bytes() []byte
- func (h Hash) Cmp(h2 Hash) int
- func (z *Hash) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *Hash) EncodeMsg(en *msgp.Writer) (err error)
- func (h *Hash) ExtensionType() int8
- func (h *Hash) IsZero() bool
- func (h *Hash) Len() int
- func (h Hash) MarshalBinaryTo(text []byte) error
- func (z *Hash) MarshalMsg(b []byte) (o []byte, err error)
- func (h Hash) MarshalText() (text []byte, err error)
- func (z *Hash) Msgsize() (s int)
- func (h *Hash) Of(hexString string) error
- func (h Hash) String() string
- func (h *Hash) UnmarshalBinary(text []byte) error
- func (z *Hash) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (h *Hash) UnmarshalText(text []byte) error
- type PendingInfo
- type PendingKey
- type PerformanceTime
- type PovAccountState
- func (as *PovAccountState) Clone() *PovAccountState
- func (z *PovAccountState) DecodeMsg(dc *msgp.Reader) (err error)
- func (as *PovAccountState) Deserialize(text []byte) error
- func (z *PovAccountState) EncodeMsg(en *msgp.Writer) (err error)
- func (as *PovAccountState) GetTokenState(tokenType Hash) *PovTokenState
- func (z *PovAccountState) MarshalMsg(b []byte) (o []byte, err error)
- func (z *PovAccountState) Msgsize() (s int)
- func (as *PovAccountState) Serialize() ([]byte, error)
- func (as *PovAccountState) String() string
- func (as *PovAccountState) TotalBalance() Balance
- func (z *PovAccountState) UnmarshalMsg(bts []byte) (o []byte, err error)
- type PovBlock
- func (blk *PovBlock) Clone() *PovBlock
- func (blk *PovBlock) ComputeHash() Hash
- func (blk *PovBlock) ComputeVoteHash() Hash
- func (z *PovBlock) DecodeMsg(dc *msgp.Reader) (err error)
- func (blk *PovBlock) Deserialize(text []byte) error
- func (z *PovBlock) EncodeMsg(en *msgp.Writer) (err error)
- func (blk *PovBlock) GetBody() *PovBody
- func (blk *PovBlock) GetCoinbase() Address
- func (blk *PovBlock) GetHash() Hash
- func (blk *PovBlock) GetHeader() *PovHeader
- func (blk *PovBlock) GetHeight() uint64
- func (blk *PovBlock) GetMerkleRoot() Hash
- func (blk *PovBlock) GetNonce() uint64
- func (blk *PovBlock) GetPrevious() Hash
- func (blk *PovBlock) GetSignature() Signature
- func (blk *PovBlock) GetStateHash() Hash
- func (blk *PovBlock) GetTarget() Signature
- func (blk *PovBlock) GetTimestamp() int64
- func (blk *PovBlock) GetTxNum() uint32
- func (blk *PovBlock) GetVoteSignature() Signature
- func (z *PovBlock) MarshalMsg(b []byte) (o []byte, err error)
- func (z *PovBlock) Msgsize() (s int)
- func (blk *PovBlock) Serialize() ([]byte, error)
- func (blk *PovBlock) String() string
- func (z *PovBlock) UnmarshalMsg(bts []byte) (o []byte, err error)
- type PovBlockFrom
- type PovBlocks
- func (z *PovBlocks) DecodeMsg(dc *msgp.Reader) (err error)
- func (bs *PovBlocks) Deserialize(text []byte) error
- func (z PovBlocks) EncodeMsg(en *msgp.Writer) (err error)
- func (z PovBlocks) MarshalMsg(b []byte) (o []byte, err error)
- func (z PovBlocks) Msgsize() (s int)
- func (bs *PovBlocks) Serialize() ([]byte, error)
- func (z *PovBlocks) UnmarshalMsg(bts []byte) (o []byte, err error)
- type PovBody
- func (z *PovBody) DecodeMsg(dc *msgp.Reader) (err error)
- func (body *PovBody) Deserialize(text []byte) error
- func (z *PovBody) EncodeMsg(en *msgp.Writer) (err error)
- func (z *PovBody) MarshalMsg(b []byte) (o []byte, err error)
- func (z *PovBody) Msgsize() (s int)
- func (body *PovBody) Serialize() ([]byte, error)
- func (z *PovBody) UnmarshalMsg(bts []byte) (o []byte, err error)
- type PovHeader
- func (header *PovHeader) ComputeHash() Hash
- func (header *PovHeader) ComputeVoteHash() Hash
- func (header *PovHeader) Copy() *PovHeader
- func (z *PovHeader) DecodeMsg(dc *msgp.Reader) (err error)
- func (header *PovHeader) Deserialize(text []byte) error
- func (z *PovHeader) EncodeMsg(en *msgp.Writer) (err error)
- func (header *PovHeader) GetCoinbase() Address
- func (header *PovHeader) GetHash() Hash
- func (header *PovHeader) GetHeight() uint64
- func (header *PovHeader) GetMerkleRoot() Hash
- func (header *PovHeader) GetNonce() uint64
- func (header *PovHeader) GetPrevious() Hash
- func (header *PovHeader) GetSignature() Signature
- func (header *PovHeader) GetStateHash() Hash
- func (header *PovHeader) GetTarget() Signature
- func (header *PovHeader) GetTimestamp() int64
- func (header *PovHeader) GetTxNum() uint32
- func (header *PovHeader) GetVoteSignature() Signature
- func (z *PovHeader) MarshalMsg(b []byte) (o []byte, err error)
- func (z *PovHeader) Msgsize() (s int)
- func (header *PovHeader) Serialize() ([]byte, error)
- func (z *PovHeader) UnmarshalMsg(bts []byte) (o []byte, err error)
- type PovMinerDayStat
- func (z *PovMinerDayStat) DecodeMsg(dc *msgp.Reader) (err error)
- func (mds *PovMinerDayStat) Deserialize(text []byte) error
- func (z *PovMinerDayStat) EncodeMsg(en *msgp.Writer) (err error)
- func (z *PovMinerDayStat) MarshalMsg(b []byte) (o []byte, err error)
- func (z *PovMinerDayStat) Msgsize() (s int)
- func (mds *PovMinerDayStat) Serialize() ([]byte, error)
- func (z *PovMinerDayStat) UnmarshalMsg(bts []byte) (o []byte, err error)
- type PovMinerStatItem
- func (z *PovMinerStatItem) DecodeMsg(dc *msgp.Reader) (err error)
- func (msi *PovMinerStatItem) Deserialize(text []byte) error
- func (z PovMinerStatItem) EncodeMsg(en *msgp.Writer) (err error)
- func (z PovMinerStatItem) MarshalMsg(b []byte) (o []byte, err error)
- func (z PovMinerStatItem) Msgsize() (s int)
- func (msi *PovMinerStatItem) Serialize() ([]byte, error)
- func (z *PovMinerStatItem) UnmarshalMsg(bts []byte) (o []byte, err error)
- type PovRepState
- func (rs *PovRepState) CalcTotal() Balance
- func (rs *PovRepState) Clone() *PovRepState
- func (z *PovRepState) DecodeMsg(dc *msgp.Reader) (err error)
- func (rs *PovRepState) Deserialize(text []byte) error
- func (z *PovRepState) EncodeMsg(en *msgp.Writer) (err error)
- func (z *PovRepState) MarshalMsg(b []byte) (o []byte, err error)
- func (z *PovRepState) Msgsize() (s int)
- func (rs *PovRepState) Serialize() ([]byte, error)
- func (rs *PovRepState) String() string
- func (z *PovRepState) UnmarshalMsg(bts []byte) (o []byte, err error)
- type PovTokenState
- func (ts *PovTokenState) Clone() *PovTokenState
- func (z *PovTokenState) DecodeMsg(dc *msgp.Reader) (err error)
- func (ts *PovTokenState) Deserialize(text []byte) error
- func (z *PovTokenState) EncodeMsg(en *msgp.Writer) (err error)
- func (z *PovTokenState) MarshalMsg(b []byte) (o []byte, err error)
- func (z *PovTokenState) Msgsize() (s int)
- func (ts *PovTokenState) Serialize() ([]byte, error)
- func (ts *PovTokenState) String() string
- func (z *PovTokenState) UnmarshalMsg(bts []byte) (o []byte, err error)
- type PovTransaction
- func (z *PovTransaction) DecodeMsg(dc *msgp.Reader) (err error)
- func (tx *PovTransaction) Deserialize(text []byte) error
- func (z PovTransaction) EncodeMsg(en *msgp.Writer) (err error)
- func (tx *PovTransaction) GetHash() Hash
- func (z PovTransaction) MarshalMsg(b []byte) (o []byte, err error)
- func (z PovTransaction) Msgsize() (s int)
- func (tx *PovTransaction) Serialize() ([]byte, error)
- func (z *PovTransaction) UnmarshalMsg(bts []byte) (o []byte, err error)
- type PovTransactions
- type PovTxByHash
- type PovTxLookup
- func (z *PovTxLookup) DecodeMsg(dc *msgp.Reader) (err error)
- func (txl *PovTxLookup) Deserialize(text []byte) error
- func (z PovTxLookup) EncodeMsg(en *msgp.Writer) (err error)
- func (z PovTxLookup) MarshalMsg(b []byte) (o []byte, err error)
- func (z PovTxLookup) Msgsize() (s int)
- func (txl *PovTxLookup) Serialize() ([]byte, error)
- func (z *PovTxLookup) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Seed
- func (s *Seed) Account(index uint32) (*Account, error)
- func (s *Seed) ExtensionType() int8
- func (s *Seed) IsZero() bool
- func (s *Seed) Len() int
- func (s *Seed) MarshalBinaryTo(text []byte) error
- func (s *Seed) MarshalJSON() ([]byte, error)
- func (s *Seed) MasterAddress() Address
- func (s *Seed) String() string
- func (s *Seed) UnmarshalBinary(text []byte) error
- type Signature
- func (s Signature) Bytes() []byte
- func (s *Signature) ExtensionType() int8
- func (s *Signature) FromBigInt(num *big.Int) error
- func (s *Signature) IsZero() bool
- func (s *Signature) Len() int
- func (s Signature) MarshalBinaryTo(text []byte) error
- func (s Signature) MarshalText() (text []byte, err error)
- func (s *Signature) Of(hexString string) error
- func (s Signature) String() string
- func (s *Signature) ToBigInt() *big.Int
- func (s *Signature) UnmarshalBinary(text []byte) error
- func (s *Signature) UnmarshalText(text []byte) error
- type SmartContractBlock
- func (z *SmartContractBlock) DecodeMsg(dc *msgp.Reader) (err error)
- func (sc *SmartContractBlock) Deserialize(text []byte) error
- func (z *SmartContractBlock) EncodeMsg(en *msgp.Writer) (err error)
- func (sc *SmartContractBlock) GetHash() Hash
- func (sc *SmartContractBlock) IsValid() bool
- func (z *SmartContractBlock) MarshalMsg(b []byte) (o []byte, err error)
- func (z *SmartContractBlock) Msgsize() (s int)
- func (sc *SmartContractBlock) Serialize() ([]byte, error)
- func (sc *SmartContractBlock) Size() int
- func (sc *SmartContractBlock) String() string
- func (z *SmartContractBlock) UnmarshalMsg(bts []byte) (o []byte, err error)
- type StateBlock
- func (b *StateBlock) Clone() *StateBlock
- func (z *StateBlock) DecodeMsg(dc *msgp.Reader) (err error)
- func (b *StateBlock) Deserialize(text []byte) error
- func (z *StateBlock) EncodeMsg(en *msgp.Writer) (err error)
- func (b *StateBlock) GetAddress() Address
- func (b *StateBlock) GetBalance() Balance
- func (b *StateBlock) GetData() []byte
- func (b *StateBlock) GetExtra() Hash
- func (b *StateBlock) GetHash() Hash
- func (b *StateBlock) GetLink() Hash
- func (b *StateBlock) GetMessage() Hash
- func (b *StateBlock) GetNetwork() Balance
- func (b *StateBlock) GetOracle() Balance
- func (b *StateBlock) GetPrevious() Hash
- func (b *StateBlock) GetReceiver() []byte
- func (b *StateBlock) GetRepresentative() Address
- func (b *StateBlock) GetSender() []byte
- func (b *StateBlock) GetSignature() Signature
- func (b *StateBlock) GetStorage() Balance
- func (b *StateBlock) GetTimestamp() int64
- func (b *StateBlock) GetToken() Hash
- func (b *StateBlock) GetType() BlockType
- func (b *StateBlock) GetVote() Balance
- func (b *StateBlock) GetWork() Work
- func (b *StateBlock) IsContractBlock() bool
- func (b *StateBlock) IsOpen() bool
- func (b *StateBlock) IsReceiveBlock() bool
- func (b *StateBlock) IsSendBlock() bool
- func (b *StateBlock) IsValid() bool
- func (z *StateBlock) MarshalMsg(b []byte) (o []byte, err error)
- func (z *StateBlock) Msgsize() (s int)
- func (b *StateBlock) Parent() Hash
- func (b *StateBlock) Root() Hash
- func (b *StateBlock) Serialize() ([]byte, error)
- func (b *StateBlock) Size() int
- func (b *StateBlock) String() string
- func (b *StateBlock) TotalBalance() Balance
- func (z *StateBlock) UnmarshalMsg(bts []byte) (o []byte, err error)
- type StateBlockList
- func (z *StateBlockList) DecodeMsg(dc *msgp.Reader) (err error)
- func (bs *StateBlockList) Deserialize(text []byte) error
- func (z StateBlockList) EncodeMsg(en *msgp.Writer) (err error)
- func (z StateBlockList) MarshalMsg(b []byte) (o []byte, err error)
- func (z StateBlockList) Msgsize() (s int)
- func (bs *StateBlockList) Serialize() ([]byte, error)
- func (z *StateBlockList) UnmarshalMsg(bts []byte) (o []byte, err error)
- type SynchronizedKind
- func (z *SynchronizedKind) DecodeMsg(dc *msgp.Reader) (err error)
- func (z SynchronizedKind) EncodeMsg(en *msgp.Writer) (err error)
- func (z SynchronizedKind) MarshalMsg(b []byte) (o []byte, err error)
- func (z SynchronizedKind) Msgsize() (s int)
- func (z *SynchronizedKind) UnmarshalMsg(bts []byte) (o []byte, err error)
- type TimeSorter
- type TokenInfo
- type TokenMeta
- type TrieNode
- type UncheckedBlockWalkFunc
- type UncheckedKind
- func (z *UncheckedKind) DecodeMsg(dc *msgp.Reader) (err error)
- func (z UncheckedKind) EncodeMsg(en *msgp.Writer) (err error)
- func (z UncheckedKind) MarshalMsg(b []byte) (o []byte, err error)
- func (z UncheckedKind) Msgsize() (s int)
- func (z *UncheckedKind) UnmarshalMsg(bts []byte) (o []byte, err error)
- type VmLog
- type VmLogs
- func (z *VmLogs) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *VmLogs) EncodeMsg(en *msgp.Writer) (err error)
- func (vl *VmLogs) Hash() *Hash
- func (z *VmLogs) MarshalMsg(b []byte) (o []byte, err error)
- func (z *VmLogs) Msgsize() (s int)
- func (z *VmLogs) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Work
- func (w *Work) ExtensionType() int8
- func (w Work) IsValid(root Hash) bool
- func (w *Work) Len() int
- func (w *Work) MarshalBinaryTo(text []byte) error
- func (w Work) MarshalText() (text []byte, err error)
- func (w *Work) ParseWorkHexString(hexString string) error
- func (w Work) String() string
- func (w *Work) UnmarshalBinary(text []byte) error
- func (w *Work) UnmarshalText(text []byte) error
- type Worker
Constants ¶
const ( // AddressPrefix is the prefix of qlc addresses. AddressPrefix = "qlc_" // AddressSize represents the binary size of a qlc address (a public key). AddressSize = ed25519.PublicKeySize // AddressLen represents the string length of a qlc address. AddressLen = 60 )
const ( AddressExtensionType = 99 BalanceExtensionType = 100 HashExtensionType = 101 SeedExtensionType = 102 SignatureExtensionType = 103 WorkExtensionType = 104 AbiExtensionType = 105 )
const (
// BalanceMaxPrecision balance max precision
BalanceMaxPrecision = 11
)
const (
FrontierSize = AddressSize + HashSize
)
const ( //HashSize size of hash HashSize = blake2b.Size256 )
const (
// SeedSize size of the seed
SeedSize = 32
)
const ( //SignatureSize size of signature SignatureSize = ed25519.SignatureSize )
const (
//WorkSize work size
WorkSize = 8
)
Variables ¶
var ( // ZeroAddress ZeroAddress = Address{} MintageAddress, _ = HexToAddress("qlc_3qjky1ptg9qkzm8iertdzrnx9btjbaea33snh1w4g395xqqczye4kgcfyfs1") NEP5PledgeAddress, _ = HexToAddress("qlc_3fwi6r1fzjwmiys819pw8jxrcmcottsj4iq56kkgcmzi3b87596jwskwqrr5") RewardsAddress, _ = HexToAddress("qlc_3oinqggowa7f1rsjfmib476ggz6s4fp8578odjzerzztkrifqkqdz5zjztb3") // Builtin contract addresses without private key hold by anyone MinerAddress, _ = GenerateBuiltinContractAddress(21) ChainContractAddressList = []Address{NEP5PledgeAddress, MintageAddress, RewardsAddress, MinerAddress} // AddressEncoding is a base32 encoding using addressEncodingAlphabet as its // alphabet. AddressEncoding = base32.NewEncoding(addressEncodingAlphabet) )
var ( ErrBadBlockType = errors.New("bad block type") ErrNotABlock = errors.New("block type is not_a_block") )
var WorkThreshold = uint64(0xfffffe0000000000)
var ( // ZeroBalance zero ZeroBalance = Balance{big.NewInt(0)} )
var ZeroHash = Hash{}
var ZeroSeed = Seed{}
ZeroAddress
var ZeroSignature = Signature{}
Functions ¶
func IsChainContractAddress ¶ added in v1.2.3
func IsContractAddress ¶ added in v1.2.3
func IsValidHexAddress ¶
IsValidHexAddress check Hex address string is valid
func KeypairFromPrivateKey ¶
func KeypairFromPrivateKey(privateKey string) (ed25519.PublicKey, ed25519.PrivateKey)
KeypairFromPrivateKey generate key pair from private key
func KeypairFromSeed ¶
KeypairFromSeed generate key pair from seed
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func NewAccount ¶
func NewAccount(key ed25519.PrivateKey) *Account
NewAccount creates a new account with the given private key.
func (Account) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (Account) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*Account) PrivateKey ¶ added in v0.0.5
func (a *Account) PrivateKey() ed25519.PrivateKey
type AccountMeta ¶
type AccountMeta struct { Address Address `msg:"account,extension" json:"account"` CoinBalance Balance `msg:"balance,extension" json:"balance"` CoinVote Balance `msg:"vote,extension" json:"vote"` CoinNetwork Balance `msg:"network,extension" json:"network"` CoinStorage Balance `msg:"storage,extension" json:"storage"` CoinOracle Balance `msg:"oracle,extension" json:"oracle"` Tokens []*TokenMeta `msg:"tokens" json:"tokens"` }
func (*AccountMeta) DecodeMsg ¶
func (z *AccountMeta) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*AccountMeta) EncodeMsg ¶
func (z *AccountMeta) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*AccountMeta) GetBalance ¶ added in v1.1.1
func (a *AccountMeta) GetBalance() Balance
func (*AccountMeta) GetNetwork ¶ added in v1.1.1
func (a *AccountMeta) GetNetwork() Balance
func (*AccountMeta) GetOracle ¶ added in v1.1.1
func (a *AccountMeta) GetOracle() Balance
func (*AccountMeta) GetStorage ¶ added in v1.1.1
func (a *AccountMeta) GetStorage() Balance
func (*AccountMeta) GetVote ¶ added in v1.1.1
func (a *AccountMeta) GetVote() Balance
func (*AccountMeta) MarshalMsg ¶
func (z *AccountMeta) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*AccountMeta) Msgsize ¶
func (z *AccountMeta) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*AccountMeta) Token ¶
func (am *AccountMeta) Token(tt Hash) *TokenMeta
Token get token meta by token type hash
func (*AccountMeta) TotalBalance ¶ added in v1.1.0
func (a *AccountMeta) TotalBalance() Balance
func (*AccountMeta) UnmarshalMsg ¶
func (z *AccountMeta) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
func (*AccountMeta) VoteWeight ¶ added in v1.1.0
func (a *AccountMeta) VoteWeight() Balance
type Address ¶
type Address [AddressSize]byte
Address of account
func BytesToAddress ¶
BytesToAddress convert byte array to Address
func GenerateAddress ¶
func GenerateAddress() (Address, ed25519.PrivateKey, error)
GenerateAddress generate qlc address
func GenerateBuiltinContractAddress ¶ added in v1.2.3
func HexToAddress ¶
HexToAddress convert hex address string to Address
func PubToAddress ¶
PubToAddress convert ed25519.PublicKey to Address
func (*Address) ExtensionType ¶
ExtensionType implements Extension.ExtensionType interface
func (Address) MarshalBinaryTo ¶
ExtensionType implements Extension.MarshalBinaryTo interface
func (*Address) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (Address) MarshalText ¶
MarshalText implements encoding.Textmarshaler
func (*Address) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*Address) UnmarshalBinary ¶
ExtensionType implements Extension.UnmarshalBinary interface
func (*Address) UnmarshalMsg ¶
UnmarshalMsg implements msgp.Unmarshaler
func (*Address) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler
type AddressToken ¶ added in v1.2.3
func (AddressToken) String ¶ added in v1.2.3
func (at AddressToken) String() string
type Balance ¶
Balance of account
func BytesToBalance ¶
BytesToBalance create balance from byte slice
func NewBalance ¶ added in v1.2.3
func StringToBalance ¶
StringToBalance create balance from string
func (Balance) Bytes ¶
Bytes returns the binary representation of this Balance with the given endianness.
func (*Balance) ExtensionType ¶
ExtensionType implements Extension.ExtensionType interface
func (*Balance) MarshalBinaryTo ¶
ExtensionType implements Extension.UnmarshalBinary interface
func (Balance) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (Balance) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Balance) UnmarshalBinary ¶
ExtensionType implements Extension.UnmarshalBinary interface
func (*Balance) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Balance) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
type BalanceComp ¶
type BalanceComp byte
BalanceComp compare
const ( //BalanceCompEqual equal compare BalanceCompEqual BalanceComp = iota //BalanceCompBigger bigger compare BalanceCompBigger //BalanceCompSmaller smaller compare BalanceCompSmaller )
type Benefit ¶ added in v1.1.0
type Benefit struct { Balance Balance `msg:"balance,extension" json:"balance"` Vote Balance `msg:"vote,extension" json:"vote"` Network Balance `msg:"network,extension" json:"network"` Storage Balance `msg:"storage,extension" json:"storage"` Oracle Balance `msg:"oracle,extension" json:"oracle"` Total Balance `msg:"total,extension" json:"total"` }
func (*Benefit) MarshalMsg ¶ added in v1.1.0
MarshalMsg implements msgp.Marshaler
type BlockType ¶
type BlockType byte
func (BlockType) MarshalJSON ¶
func (BlockType) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (BlockType) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*BlockType) UnmarshalJSON ¶
type ContractAbi ¶
type ContractAbi struct { Abi []byte `msg:"abi" json:"abi"` AbiLength uint64 `msg:"abiLength" json:"abiLength"` AbiHash Hash `msg:"abiHash,extension" json:"abiHash"` }
func (*ContractAbi) DecodeMsg ¶
func (z *ContractAbi) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*ContractAbi) EncodeMsg ¶
func (z *ContractAbi) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*ContractAbi) ExtensionType ¶
func (c *ContractAbi) ExtensionType() int8
ExtensionType implements Extension.ExtensionType interface
func (*ContractAbi) Len ¶
func (c *ContractAbi) Len() int
ExtensionType implements Extension.Len interface
func (*ContractAbi) MarshalBinaryTo ¶
func (c *ContractAbi) MarshalBinaryTo(text []byte) error
ExtensionType implements Extension.MarshalBinaryTo interface
func (*ContractAbi) MarshalMsg ¶
func (z *ContractAbi) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*ContractAbi) Msgsize ¶
func (z *ContractAbi) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*ContractAbi) UnmarshalBinary ¶
func (c *ContractAbi) UnmarshalBinary(text []byte) error
ExtensionType implements Extension.UnmarshalBinary interface
func (*ContractAbi) UnmarshalMsg ¶
func (z *ContractAbi) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type Frontier ¶
type Frontier struct { HeaderBlock Hash `msg:"headerblock,extension" json:"headerblock"` OpenBlock Hash `msg:"openblock,extension" json:"openblock"` }
func (Frontier) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Frontiers ¶
type Frontiers []*Frontier
func (Frontiers) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type GenesisTokenInfo ¶ added in v1.1.0
type GenesisTokenInfo struct { TokenId Hash `json:"tokenId"` TokenName string `json:"tokenName"` TokenSymbol string `json:"tokenSymbol"` TotalSupply *big.Int `json:"totalSupply"` Decimals uint8 `json:"decimals"` Owner Address `json:"owner"` PledgeAmount *big.Int `json:"pledgeAmount"` WithdrawTime int64 `json:"withdrawTime"` PledgeAddress Address `json:"pledgeAddress"` }
type Hash ¶
Hash blake2b hash
func BytesToHash ¶ added in v0.0.9
func (*Hash) ExtensionType ¶
ExtensionType implements Extension.ExtensionType interface
func (Hash) MarshalBinaryTo ¶
ExtensionType implements Extension.MarshalBinaryTo interface
func (*Hash) MarshalMsg ¶ added in v1.1.0
MarshalMsg implements msgp.Marshaler
func (Hash) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Hash) Msgsize ¶ added in v1.1.0
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*Hash) UnmarshalBinary ¶
ExtensionType implements Extension.UnmarshalBinary interface
func (*Hash) UnmarshalMsg ¶ added in v1.1.0
UnmarshalMsg implements msgp.Unmarshaler
func (*Hash) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler
type PendingInfo ¶
type PendingInfo struct { Source Address `msg:"source,extension" json:"source"` Amount Balance `msg:"amount,extension" json:"amount"` Type Hash `msg:"type,extension" json:"type"` }
func (*PendingInfo) DecodeMsg ¶
func (z *PendingInfo) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (PendingInfo) EncodeMsg ¶
func (z PendingInfo) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (PendingInfo) MarshalMsg ¶
func (z PendingInfo) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (PendingInfo) Msgsize ¶
func (z PendingInfo) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*PendingInfo) UnmarshalMsg ¶
func (z *PendingInfo) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type PendingKey ¶
type PendingKey struct { Address Address `msg:"account,extension" json:"account"` Hash Hash `msg:"hash,extension" json:"hash"` }
func (*PendingKey) DecodeMsg ¶
func (z *PendingKey) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (PendingKey) EncodeMsg ¶
func (z PendingKey) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (PendingKey) MarshalMsg ¶
func (z PendingKey) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (PendingKey) Msgsize ¶
func (z PendingKey) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*PendingKey) UnmarshalMsg ¶
func (z *PendingKey) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type PerformanceTime ¶ added in v0.0.5
type PerformanceTime struct { Hash Hash `json:"hash"` //block hash T0 int64 `json:"t0"` //The time when the block message was received for the first time T1 int64 `json:"t1"` //The time when the block was confirmed T2 int64 `json:"t2"` //The time when the block begin consensus T3 int64 `json:"t3"` //The time when the block first consensus complete }
func NewPerformanceTime ¶ added in v0.0.5
func NewPerformanceTime() *PerformanceTime
func (*PerformanceTime) String ¶ added in v0.0.5
func (p *PerformanceTime) String() string
String implements the fmt.Stringer interface.
type PovAccountState ¶ added in v1.2.3
type PovAccountState struct { Balance Balance `msg:"balance,extension" json:"balance"` Vote Balance `msg:"vote,extension" json:"vote"` Network Balance `msg:"network,extension" json:"network"` Storage Balance `msg:"storage,extension" json:"storage"` Oracle Balance `msg:"oracle,extension" json:"oracle"` TokenStates []*PovTokenState `msg:"tokenStates" json:"tokenStates"` RepState *PovRepState `msg:"repState" json:"repState"` }
func NewPovAccountState ¶ added in v1.2.3
func NewPovAccountState() *PovAccountState
func (*PovAccountState) Clone ¶ added in v1.2.3
func (as *PovAccountState) Clone() *PovAccountState
func (*PovAccountState) DecodeMsg ¶ added in v1.2.3
func (z *PovAccountState) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*PovAccountState) Deserialize ¶ added in v1.2.3
func (as *PovAccountState) Deserialize(text []byte) error
func (*PovAccountState) EncodeMsg ¶ added in v1.2.3
func (z *PovAccountState) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*PovAccountState) GetTokenState ¶ added in v1.2.3
func (as *PovAccountState) GetTokenState(tokenType Hash) *PovTokenState
func (*PovAccountState) MarshalMsg ¶ added in v1.2.3
func (z *PovAccountState) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*PovAccountState) Msgsize ¶ added in v1.2.3
func (z *PovAccountState) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*PovAccountState) Serialize ¶ added in v1.2.3
func (as *PovAccountState) Serialize() ([]byte, error)
func (*PovAccountState) String ¶ added in v1.2.3
func (as *PovAccountState) String() string
func (*PovAccountState) TotalBalance ¶ added in v1.2.3
func (as *PovAccountState) TotalBalance() Balance
func (*PovAccountState) UnmarshalMsg ¶ added in v1.2.3
func (z *PovAccountState) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type PovBlock ¶ added in v1.2.3
type PovBlock struct { Hash Hash `msg:"hash,extension" json:"hash"` Previous Hash `msg:"previous,extension" json:"previous"` MerkleRoot Hash `msg:"merkleRoot,extension" json:"merkleRoot"` Nonce uint64 `msg:"nonce" json:"nonce"` VoteSignature Signature `msg:"voteSignature,extension" json:"voteSignature"` Height uint64 `msg:"height" json:"height"` Timestamp int64 `msg:"timestamp" json:"timestamp"` Target Signature `msg:"target,extension" json:"target"` Coinbase Address `msg:"coinbase,extension" json:"coinbase"` TxNum uint32 `msg:"txNum" json:"txNum"` StateHash Hash `msg:"stateHash,extension" json:"stateHash"` Signature Signature `msg:"signature,extension" json:"signature"` Transactions []*PovTransaction `msg:"transactions" json:"transactions"` }
PovBlock represents an entire block in the PoV blockchain.
func NewPovBlockWithBody ¶ added in v1.2.3
func NewPovBlockWithHeader ¶ added in v1.2.3
func (*PovBlock) ComputeHash ¶ added in v1.2.3
func (*PovBlock) ComputeVoteHash ¶ added in v1.2.3
func (*PovBlock) Deserialize ¶ added in v1.2.3
func (*PovBlock) GetCoinbase ¶ added in v1.2.3
func (*PovBlock) GetMerkleRoot ¶ added in v1.2.3
func (*PovBlock) GetPrevious ¶ added in v1.2.3
func (*PovBlock) GetSignature ¶ added in v1.2.3
func (*PovBlock) GetStateHash ¶ added in v1.2.3
func (*PovBlock) GetTimestamp ¶ added in v1.2.3
func (*PovBlock) GetVoteSignature ¶ added in v1.2.3
func (*PovBlock) MarshalMsg ¶ added in v1.2.3
MarshalMsg implements msgp.Marshaler
type PovBlockFrom ¶ added in v1.2.3
type PovBlockFrom uint16
const ( Unkonwn PovBlockFrom = iota PovBlockFromLocal PovBlockFromRemoteBroadcast PovBlockFromRemoteFetch PovBlockFromRemoteSync )
func (*PovBlockFrom) DecodeMsg ¶ added in v1.2.3
func (z *PovBlockFrom) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (PovBlockFrom) EncodeMsg ¶ added in v1.2.3
func (z PovBlockFrom) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (PovBlockFrom) MarshalMsg ¶ added in v1.2.3
func (z PovBlockFrom) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (PovBlockFrom) Msgsize ¶ added in v1.2.3
func (z PovBlockFrom) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*PovBlockFrom) UnmarshalMsg ¶ added in v1.2.3
func (z *PovBlockFrom) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type PovBlocks ¶ added in v1.2.3
type PovBlocks []*PovBlock
func (*PovBlocks) Deserialize ¶ added in v1.2.3
func (PovBlocks) MarshalMsg ¶ added in v1.2.3
MarshalMsg implements msgp.Marshaler
type PovBody ¶ added in v1.2.3
type PovBody struct {
Transactions []*PovTransaction `msg:"transactions" json:"transactions"`
}
PovBody is a simple (mutable, non-safe) data container for storing and moving a block's data contents (transactions) together.
func (*PovBody) Deserialize ¶ added in v1.2.3
func (*PovBody) MarshalMsg ¶ added in v1.2.3
MarshalMsg implements msgp.Marshaler
type PovHeader ¶ added in v1.2.3
type PovHeader struct { Hash Hash `msg:"hash,extension" json:"hash"` Previous Hash `msg:"previous,extension" json:"previous"` MerkleRoot Hash `msg:"merkleRoot,extension" json:"merkleRoot"` Nonce uint64 `msg:"nonce" json:"nonce"` VoteSignature Signature `msg:"voteSignature,extension" json:"voteSignature"` Height uint64 `msg:"height" json:"height"` Timestamp int64 `msg:"timestamp" json:"timestamp"` Target Signature `msg:"target,extension" json:"target"` Coinbase Address `msg:"coinbase,extension" json:"coinbase"` TxNum uint32 `msg:"txNum" json:"txNum"` StateHash Hash `msg:"stateHash,extension" json:"stateHash"` Signature Signature `msg:"signature,extension" json:"signature"` }
PovHeader represents a block header in the PoV blockchain.
func (*PovHeader) ComputeHash ¶ added in v1.2.3
func (*PovHeader) ComputeVoteHash ¶ added in v1.2.3
func (*PovHeader) Deserialize ¶ added in v1.2.3
func (*PovHeader) GetCoinbase ¶ added in v1.2.3
func (*PovHeader) GetMerkleRoot ¶ added in v1.2.3
func (*PovHeader) GetPrevious ¶ added in v1.2.3
func (*PovHeader) GetSignature ¶ added in v1.2.3
func (*PovHeader) GetStateHash ¶ added in v1.2.3
func (*PovHeader) GetTimestamp ¶ added in v1.2.3
func (*PovHeader) GetVoteSignature ¶ added in v1.2.3
func (*PovHeader) MarshalMsg ¶ added in v1.2.3
MarshalMsg implements msgp.Marshaler
type PovMinerDayStat ¶ added in v1.2.3
type PovMinerDayStat struct { DayIndex uint32 `msg:"dayIndex" json:"dayIndex"` MinerNum uint32 `msg:"minerNum" json:"minerNum"` MinerStats map[string]*PovMinerStatItem `msg:"minerStats" json:"minerStats"` }
func NewPovMinerDayStat ¶ added in v1.2.3
func NewPovMinerDayStat() *PovMinerDayStat
func (*PovMinerDayStat) DecodeMsg ¶ added in v1.2.3
func (z *PovMinerDayStat) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*PovMinerDayStat) Deserialize ¶ added in v1.2.3
func (mds *PovMinerDayStat) Deserialize(text []byte) error
func (*PovMinerDayStat) EncodeMsg ¶ added in v1.2.3
func (z *PovMinerDayStat) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*PovMinerDayStat) MarshalMsg ¶ added in v1.2.3
func (z *PovMinerDayStat) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*PovMinerDayStat) Msgsize ¶ added in v1.2.3
func (z *PovMinerDayStat) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*PovMinerDayStat) Serialize ¶ added in v1.2.3
func (mds *PovMinerDayStat) Serialize() ([]byte, error)
func (*PovMinerDayStat) UnmarshalMsg ¶ added in v1.2.3
func (z *PovMinerDayStat) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type PovMinerStatItem ¶ added in v1.2.3
type PovMinerStatItem struct { FirstHeight uint64 `msg:"firstHeight" json:"firstHeight"` LastHeight uint64 `msg:"lastHeight" json:"lastHeight"` BlockNum uint32 `msg:"blockNum" json:"blockNum"` }
func (*PovMinerStatItem) DecodeMsg ¶ added in v1.2.3
func (z *PovMinerStatItem) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*PovMinerStatItem) Deserialize ¶ added in v1.2.3
func (msi *PovMinerStatItem) Deserialize(text []byte) error
func (PovMinerStatItem) EncodeMsg ¶ added in v1.2.3
func (z PovMinerStatItem) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (PovMinerStatItem) MarshalMsg ¶ added in v1.2.3
func (z PovMinerStatItem) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (PovMinerStatItem) Msgsize ¶ added in v1.2.3
func (z PovMinerStatItem) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*PovMinerStatItem) Serialize ¶ added in v1.2.3
func (msi *PovMinerStatItem) Serialize() ([]byte, error)
func (*PovMinerStatItem) UnmarshalMsg ¶ added in v1.2.3
func (z *PovMinerStatItem) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type PovRepState ¶ added in v1.2.3
type PovRepState struct { Balance Balance `msg:"balance,extension" json:"balance"` Vote Balance `msg:"vote,extension" json:"vote"` Network Balance `msg:"network,extension" json:"network"` Storage Balance `msg:"storage,extension" json:"storage"` Oracle Balance `msg:"oracle,extension" json:"oracle"` Total Balance `msg:"total,extension" json:"total"` }
func NewPovRepState ¶ added in v1.2.3
func NewPovRepState() *PovRepState
func (*PovRepState) CalcTotal ¶ added in v1.2.3
func (rs *PovRepState) CalcTotal() Balance
func (*PovRepState) Clone ¶ added in v1.2.3
func (rs *PovRepState) Clone() *PovRepState
func (*PovRepState) DecodeMsg ¶ added in v1.2.3
func (z *PovRepState) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*PovRepState) Deserialize ¶ added in v1.2.3
func (rs *PovRepState) Deserialize(text []byte) error
func (*PovRepState) EncodeMsg ¶ added in v1.2.3
func (z *PovRepState) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*PovRepState) MarshalMsg ¶ added in v1.2.3
func (z *PovRepState) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*PovRepState) Msgsize ¶ added in v1.2.3
func (z *PovRepState) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*PovRepState) Serialize ¶ added in v1.2.3
func (rs *PovRepState) Serialize() ([]byte, error)
func (*PovRepState) String ¶ added in v1.2.3
func (rs *PovRepState) String() string
func (*PovRepState) UnmarshalMsg ¶ added in v1.2.3
func (z *PovRepState) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type PovTokenState ¶ added in v1.2.3
type PovTokenState struct { Type Hash `msg:"type,extension" json:"type"` Hash Hash `msg:"hash,extension" json:"hash"` Representative Address `msg:"rep,extension" json:"representative"` Balance Balance `msg:"balance,extension" json:"balance"` }
func NewPovTokenState ¶ added in v1.2.3
func NewPovTokenState() *PovTokenState
func (*PovTokenState) Clone ¶ added in v1.2.3
func (ts *PovTokenState) Clone() *PovTokenState
func (*PovTokenState) DecodeMsg ¶ added in v1.2.3
func (z *PovTokenState) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*PovTokenState) Deserialize ¶ added in v1.2.3
func (ts *PovTokenState) Deserialize(text []byte) error
func (*PovTokenState) EncodeMsg ¶ added in v1.2.3
func (z *PovTokenState) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*PovTokenState) MarshalMsg ¶ added in v1.2.3
func (z *PovTokenState) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*PovTokenState) Msgsize ¶ added in v1.2.3
func (z *PovTokenState) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*PovTokenState) Serialize ¶ added in v1.2.3
func (ts *PovTokenState) Serialize() ([]byte, error)
func (*PovTokenState) String ¶ added in v1.2.3
func (ts *PovTokenState) String() string
func (*PovTokenState) UnmarshalMsg ¶ added in v1.2.3
func (z *PovTokenState) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type PovTransaction ¶ added in v1.2.3
type PovTransaction struct { Hash Hash `msg:"hash,extension" json:"hash"` Block *StateBlock `msg:"-" json:"-"` }
PovTransaction represents an state block metadata in the PoV block.
func (*PovTransaction) DecodeMsg ¶ added in v1.2.3
func (z *PovTransaction) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*PovTransaction) Deserialize ¶ added in v1.2.3
func (tx *PovTransaction) Deserialize(text []byte) error
func (PovTransaction) EncodeMsg ¶ added in v1.2.3
func (z PovTransaction) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*PovTransaction) GetHash ¶ added in v1.2.3
func (tx *PovTransaction) GetHash() Hash
func (PovTransaction) MarshalMsg ¶ added in v1.2.3
func (z PovTransaction) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (PovTransaction) Msgsize ¶ added in v1.2.3
func (z PovTransaction) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*PovTransaction) Serialize ¶ added in v1.2.3
func (tx *PovTransaction) Serialize() ([]byte, error)
func (*PovTransaction) UnmarshalMsg ¶ added in v1.2.3
func (z *PovTransaction) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type PovTransactions ¶ added in v1.2.3
type PovTransactions []*PovTransaction
PovTransactions is a PovTransaction slice type for basic sorting.
func (PovTransactions) Len ¶ added in v1.2.3
func (s PovTransactions) Len() int
Len returns the length of s.
func (PovTransactions) Swap ¶ added in v1.2.3
func (s PovTransactions) Swap(i, j int)
Swap swaps the i'th and the j'th element in s.
type PovTxByHash ¶ added in v1.2.3
type PovTxByHash PovTransactions
PovTxByHash implements the sort interface to allow sorting a list of transactions by their hash.
func (PovTxByHash) Len ¶ added in v1.2.3
func (s PovTxByHash) Len() int
func (PovTxByHash) Less ¶ added in v1.2.3
func (s PovTxByHash) Less(i, j int) bool
func (PovTxByHash) Swap ¶ added in v1.2.3
func (s PovTxByHash) Swap(i, j int)
type PovTxLookup ¶ added in v1.2.3
type PovTxLookup struct { BlockHash Hash `msg:"blockHash,extension" json:"blockHash"` BlockHeight uint64 `msg:"blockHeight" json:"blockHeight"` TxIndex uint64 `msg:"txIndex" json:"txIndex"` }
TxLookupEntry is a positional metadata to help looking up the data content of a transaction given only its hash.
func (*PovTxLookup) DecodeMsg ¶ added in v1.2.3
func (z *PovTxLookup) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*PovTxLookup) Deserialize ¶ added in v1.2.3
func (txl *PovTxLookup) Deserialize(text []byte) error
func (PovTxLookup) EncodeMsg ¶ added in v1.2.3
func (z PovTxLookup) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (PovTxLookup) MarshalMsg ¶ added in v1.2.3
func (z PovTxLookup) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (PovTxLookup) Msgsize ¶ added in v1.2.3
func (z PovTxLookup) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*PovTxLookup) Serialize ¶ added in v1.2.3
func (txl *PovTxLookup) Serialize() ([]byte, error)
func (*PovTxLookup) UnmarshalMsg ¶ added in v1.2.3
func (z *PovTxLookup) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type Seed ¶
Seed of account
func BytesToSeed ¶
func (*Seed) ExtensionType ¶
ExtensionType implements Extension.ExtensionType interface
func (*Seed) MarshalBinaryTo ¶
ExtensionType implements Extension.MarshalBinaryTo interface
func (*Seed) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface
func (*Seed) MasterAddress ¶
MasterAddress the first address generate by seed
func (*Seed) UnmarshalBinary ¶
ExtensionType implements Extension.UnmarshalBinary interface
type Signature ¶
type Signature [SignatureSize]byte
Signature of block
func BytesToSignature ¶ added in v1.2.0
func NewSignature ¶ added in v1.2.3
func (*Signature) ExtensionType ¶
ExtensionType implements Extension.ExtensionType interface
func (*Signature) FromBigInt ¶ added in v1.2.3
FromBigInt converts a big.Int into a types.Signature.
func (Signature) MarshalBinaryTo ¶
ExtensionType implements Extension.MarshalBinaryTo interface
func (Signature) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Signature) ToBigInt ¶ added in v1.2.3
ToBigInt converts a types.Signature into a big.Int that can be used to perform math comparisons.
func (*Signature) UnmarshalBinary ¶
ExtensionType implements Extension.UnmarshalBinary interface
func (*Signature) UnmarshalText ¶
type SmartContractBlock ¶
type SmartContractBlock struct { Address Address `msg:"address,extension" json:"address"` InternalAccount Address `msg:"internalAccount,extension" json:"internalAccount"` ExtraAddress []Address `msg:"extraAddress" json:"extraAddress,omitempty"` Owner Address `msg:"owner,extension" json:"owner"` Abi ContractAbi `msg:"contract,extension" json:"contract"` AbiSchema string `msg:"schema" json:"schema"` IsUseStorage bool `msg:"isUseStorage" json:"isUseStorage"` Work Work `msg:"work,extension" json:"work"` Signature Signature `msg:"signature,extension" json:"signature"` Version uint64 `msg:"version" json:"version"` }
func (*SmartContractBlock) DecodeMsg ¶
func (z *SmartContractBlock) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*SmartContractBlock) Deserialize ¶ added in v0.0.9
func (sc *SmartContractBlock) Deserialize(text []byte) error
func (*SmartContractBlock) EncodeMsg ¶
func (z *SmartContractBlock) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*SmartContractBlock) GetHash ¶
func (sc *SmartContractBlock) GetHash() Hash
func (*SmartContractBlock) MarshalMsg ¶
func (z *SmartContractBlock) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*SmartContractBlock) Msgsize ¶
func (z *SmartContractBlock) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*SmartContractBlock) Serialize ¶ added in v0.0.9
func (sc *SmartContractBlock) Serialize() ([]byte, error)
func (*SmartContractBlock) Size ¶
func (sc *SmartContractBlock) Size() int
func (*SmartContractBlock) String ¶ added in v0.0.9
func (sc *SmartContractBlock) String() string
func (*SmartContractBlock) UnmarshalMsg ¶
func (z *SmartContractBlock) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type StateBlock ¶
type StateBlock struct { Type BlockType `msg:"type" json:"type"` Token Hash `msg:"token,extension" json:"token"` Address Address `msg:"address,extension" json:"address"` Balance Balance `msg:"balance,extension" json:"balance"` Vote Balance `msg:"vote,extension" json:"vote"` Network Balance `msg:"network,extension" json:"network"` Storage Balance `msg:"storage,extension" json:"storage"` Oracle Balance `msg:"oracle,extension" json:"oracle"` Previous Hash `msg:"previous,extension" json:"previous"` Link Hash `msg:"link,extension" json:"link"` Sender []byte `msg:"sender" json:"sender,omitempty"` Receiver []byte `msg:"receiver" json:"receiver,omitempty"` Message Hash `msg:"message,extension" json:"message,omitempty"` Data []byte `msg:"data" json:"data,omitempty"` PoVHeight uint64 `msg:"povHeight" json:"povHeight"` Timestamp int64 `msg:"timestamp" json:"timestamp"` Extra Hash `msg:"extra,extension" json:"extra,omitempty"` Representative Address `msg:"representative,extension" json:"representative"` Work Work `msg:"work,extension" json:"work"` Signature Signature `msg:"signature,extension" json:"signature"` }
func (*StateBlock) Clone ¶ added in v0.0.9
func (b *StateBlock) Clone() *StateBlock
func (*StateBlock) DecodeMsg ¶
func (z *StateBlock) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*StateBlock) Deserialize ¶ added in v0.0.9
func (b *StateBlock) Deserialize(text []byte) error
func (*StateBlock) EncodeMsg ¶
func (z *StateBlock) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*StateBlock) GetAddress ¶ added in v0.0.9
func (b *StateBlock) GetAddress() Address
func (*StateBlock) GetBalance ¶
func (b *StateBlock) GetBalance() Balance
func (*StateBlock) GetData ¶ added in v0.0.9
func (b *StateBlock) GetData() []byte
func (*StateBlock) GetExtra ¶ added in v0.0.9
func (b *StateBlock) GetExtra() Hash
func (*StateBlock) GetHash ¶
func (b *StateBlock) GetHash() Hash
func (*StateBlock) GetLink ¶
func (b *StateBlock) GetLink() Hash
func (*StateBlock) GetMessage ¶ added in v0.0.9
func (b *StateBlock) GetMessage() Hash
func (*StateBlock) GetNetwork ¶ added in v1.1.0
func (b *StateBlock) GetNetwork() Balance
func (*StateBlock) GetOracle ¶ added in v1.1.0
func (b *StateBlock) GetOracle() Balance
func (*StateBlock) GetPrevious ¶ added in v0.0.9
func (b *StateBlock) GetPrevious() Hash
func (*StateBlock) GetReceiver ¶ added in v0.0.9
func (b *StateBlock) GetReceiver() []byte
func (*StateBlock) GetRepresentative ¶
func (b *StateBlock) GetRepresentative() Address
func (*StateBlock) GetSender ¶ added in v0.0.9
func (b *StateBlock) GetSender() []byte
func (*StateBlock) GetSignature ¶ added in v0.0.9
func (b *StateBlock) GetSignature() Signature
func (*StateBlock) GetStorage ¶ added in v1.1.0
func (b *StateBlock) GetStorage() Balance
func (*StateBlock) GetTimestamp ¶ added in v1.1.0
func (b *StateBlock) GetTimestamp() int64
func (*StateBlock) GetToken ¶
func (b *StateBlock) GetToken() Hash
func (*StateBlock) GetType ¶
func (b *StateBlock) GetType() BlockType
func (*StateBlock) GetVote ¶ added in v1.1.0
func (b *StateBlock) GetVote() Balance
func (*StateBlock) GetWork ¶ added in v0.0.9
func (b *StateBlock) GetWork() Work
func (*StateBlock) IsContractBlock ¶ added in v0.0.9
func (b *StateBlock) IsContractBlock() bool
func (*StateBlock) IsOpen ¶ added in v1.2.0
func (b *StateBlock) IsOpen() bool
func (*StateBlock) IsReceiveBlock ¶ added in v0.0.9
func (b *StateBlock) IsReceiveBlock() bool
func (*StateBlock) IsSendBlock ¶ added in v0.0.9
func (b *StateBlock) IsSendBlock() bool
func (*StateBlock) IsValid ¶
func (b *StateBlock) IsValid() bool
func (*StateBlock) MarshalMsg ¶
func (z *StateBlock) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*StateBlock) Msgsize ¶
func (z *StateBlock) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*StateBlock) Parent ¶ added in v1.0.1
func (b *StateBlock) Parent() Hash
func (*StateBlock) Root ¶
func (b *StateBlock) Root() Hash
func (*StateBlock) Serialize ¶ added in v0.0.9
func (b *StateBlock) Serialize() ([]byte, error)
func (*StateBlock) Size ¶
func (b *StateBlock) Size() int
func (*StateBlock) String ¶ added in v0.0.9
func (b *StateBlock) String() string
func (*StateBlock) TotalBalance ¶ added in v1.1.0
func (b *StateBlock) TotalBalance() Balance
func (*StateBlock) UnmarshalMsg ¶
func (z *StateBlock) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type StateBlockList ¶ added in v1.2.3
type StateBlockList []*StateBlock
func (*StateBlockList) DecodeMsg ¶ added in v1.2.3
func (z *StateBlockList) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*StateBlockList) Deserialize ¶ added in v1.2.3
func (bs *StateBlockList) Deserialize(text []byte) error
func (StateBlockList) EncodeMsg ¶ added in v1.2.3
func (z StateBlockList) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (StateBlockList) MarshalMsg ¶ added in v1.2.3
func (z StateBlockList) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (StateBlockList) Msgsize ¶ added in v1.2.3
func (z StateBlockList) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*StateBlockList) Serialize ¶ added in v1.2.3
func (bs *StateBlockList) Serialize() ([]byte, error)
func (*StateBlockList) UnmarshalMsg ¶ added in v1.2.3
func (z *StateBlockList) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type SynchronizedKind ¶ added in v0.0.9
type SynchronizedKind byte
const ( Synchronized SynchronizedKind = iota UnSynchronized )
func (*SynchronizedKind) DecodeMsg ¶ added in v0.0.9
func (z *SynchronizedKind) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (SynchronizedKind) EncodeMsg ¶ added in v0.0.9
func (z SynchronizedKind) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (SynchronizedKind) MarshalMsg ¶ added in v0.0.9
func (z SynchronizedKind) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (SynchronizedKind) Msgsize ¶ added in v0.0.9
func (z SynchronizedKind) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*SynchronizedKind) UnmarshalMsg ¶ added in v0.0.9
func (z *SynchronizedKind) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type TimeSorter ¶ added in v1.2.3
type TimeSorter []int64
timeSorter implements sort.Interface to allow a slice of timestamps to be sorted.
func (TimeSorter) Len ¶ added in v1.2.3
func (s TimeSorter) Len() int
Len returns the number of timestamps in the slice. It is part of the sort.Interface implementation.
func (TimeSorter) Less ¶ added in v1.2.3
func (s TimeSorter) Less(i, j int) bool
Less returns whether the timstamp with index i should sort before the timestamp with index j. It is part of the sort.Interface implementation.
func (TimeSorter) Swap ¶ added in v1.2.3
func (s TimeSorter) Swap(i, j int)
Swap swaps the timestamps at the passed indices. It is part of the sort.Interface implementation.
type TokenInfo ¶ added in v0.0.9
type TokenInfo struct { TokenId Hash `json:"tokenId"` TokenName string `json:"tokenName"` TokenSymbol string `json:"tokenSymbol"` TotalSupply *big.Int `json:"totalSupply"` Decimals uint8 `json:"decimals"` Owner Address `json:"owner"` PledgeAmount *big.Int `json:"pledgeAmount"` WithdrawTime int64 `json:"withdrawTime"` PledgeAddress Address `json:"pledgeAddress"` NEP5TxId string `json:"NEP5TxId"` }
type TokenMeta ¶
type TokenMeta struct { //TokenAccount Address `msg:"tokenAccount,extension" json:"token_account"` Type Hash `msg:"type,extension" json:"type"` Header Hash `msg:"header,extension" json:"header"` Representative Address `msg:"rep,extension" json:"representative"` OpenBlock Hash `msg:"open,extension" json:"open"` Balance Balance `msg:"balance,extension" json:"balance"` BelongTo Address `msg:"account,extension" json:"account"` Modified int64 `msg:"modified" json:"modified"` BlockCount int64 `msg:"blockCount," json:"blockCount"` }
func (*TokenMeta) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type TrieNode ¶ added in v1.1.0
type TrieNode struct { Hash *Hash `msg:"hash,extension" json:"hash"` Type byte `msg:"type" json:"type"` Children map[string][]byte `msg:"children" json:"children,omitempty"` Key []byte `msg:"key" json:"key,omitempty"` Child []byte `msg:"child" json:"child,omitempty"` Value []byte `msg:"value" json:"value,omitempty"` }
func (*TrieNode) MarshalMsg ¶ added in v1.1.0
MarshalMsg implements msgp.Marshaler
type UncheckedBlockWalkFunc ¶
type UncheckedBlockWalkFunc func(block *StateBlock, link Hash, unCheckType UncheckedKind, sync SynchronizedKind) error
type UncheckedKind ¶
type UncheckedKind byte
const ( UncheckedKindPrevious UncheckedKind = iota UncheckedKindLink UncheckedKindTokenInfo )
func (*UncheckedKind) DecodeMsg ¶
func (z *UncheckedKind) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (UncheckedKind) EncodeMsg ¶
func (z UncheckedKind) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (UncheckedKind) MarshalMsg ¶
func (z UncheckedKind) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (UncheckedKind) Msgsize ¶
func (z UncheckedKind) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*UncheckedKind) UnmarshalMsg ¶
func (z *UncheckedKind) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type VmLog ¶ added in v1.1.0
type VmLog struct { Topics []Hash `msg:"topics" json:"topics"` Data []byte `msg:"data" json:"data"` }
func (*VmLog) MarshalMsg ¶ added in v1.1.0
MarshalMsg implements msgp.Marshaler
type VmLogs ¶ added in v1.1.0
type VmLogs struct {
Logs []*VmLog `msg:"logs" json:"logs"`
}
func (*VmLogs) MarshalMsg ¶ added in v1.1.0
MarshalMsg implements msgp.Marshaler
type Work ¶
type Work uint64
Work PoW work
func (*Work) ExtensionType ¶
ExtensionType implements Extension.ExtensionType interface
func (*Work) MarshalBinaryTo ¶
ExtensionType implements Extension.MarshalBinaryTo interface
func (Work) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Work) ParseWorkHexString ¶
ParseWorkHexString create Work from hex string
func (*Work) UnmarshalBinary ¶
ExtensionType implements Extension.UnmarshalBinary interface
func (*Work) UnmarshalText ¶
Source Files ¶
- abi.go
- abi_gen.go
- account.go
- account_gen.go
- address.go
- address_gen.go
- balance.go
- benefit.go
- benefit_gen.go
- block.go
- block_contract.go
- block_contract_gen.go
- block_gen.go
- block_pov.go
- block_pov_gen.go
- block_state.go
- block_state_gen.go
- extension.go
- frontier.go
- frontier_gen.go
- hash.go
- hash_gen.go
- node.go
- node_gen.go
- performance_time.go
- seed.go
- signature.go
- state_pov.go
- state_pov_gen.go
- time_sorter.go
- token.go
- types.go
- unchecked.go
- unchecked_gen.go
- vmlog.go
- vmlog_gen.go
- work.go
- work_default.go