Documentation ¶
Index ¶
- func BlockKey(num uint64, hash *c_type.Uint256) []byte
- func GetRootByRootCM(db serodb.Getter, root_cm *c_type.Uint256) (root *c_type.Uint256)
- func HashIndexAr(index uint64) (ret c_type.Uint256)
- func HashIndexRsk(index uint64) (ret c_type.Uint256)
- func PkgKey(root *c_type.Uint256) []byte
- func PutBlock(db serodb.Putter, num uint64, hash *c_type.Uint256, block *Block)
- func PutPkg(db serodb.Putter, hash *c_type.Uint256, pkg *ZPkg)
- func PutRoot(db serodb.Putter, root *c_type.Uint256, rs *RootState)
- func Root2TxHashKey(root *c_type.Uint256) []byte
- func RootCM2RootKey(root_cm *c_type.Uint256) []byte
- func SetOSForVersion0(b *OutState, v0 *OutState_Version0)
- func SetOSForVersion1(b *OutState, v1 *OutState_Version1)
- func SetVersion0ForOS(v0 *OutState_Version0, b *OutState)
- func SetVersion1ForOS(v1 *OutState_Version1, b *OutState)
- func UpdateOutStat(db serodb.Putter, root *c_type.Uint256, os *OutStat)
- type Block
- type BlockGet
- type OutStat
- type OutStatGet
- type OutState
- func (self *OutState) Clone() (ret OutState)
- func (b *OutState) DecodeRLP(s *rlp.Stream) error
- func (b *OutState) EncodeRLP(w io.Writer) error
- func (self *OutState) GenRootCM()
- func (out *OutState) IsSzk() bool
- func (out *OutState) IsZero() bool
- func (self *OutState) Serial() (ret []byte, e error)
- func (self *OutState) ToPKr() *c_type.PKr
- func (self *OutState) TryGetOutCM() (ret *c_type.Uint256)
- func (out *OutState) TxType() string
- type OutState0Get
- type OutState_Version0
- type OutState_Version1
- type PkgGet
- type RootState
- type RootStateGet
- type ZPkg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRootByRootCM ¶
func HashIndexAr ¶
func HashIndexRsk ¶
func Root2TxHashKey ¶
func RootCM2RootKey ¶
func SetOSForVersion0 ¶
func SetOSForVersion0(b *OutState, v0 *OutState_Version0)
func SetOSForVersion1 ¶
func SetOSForVersion1(b *OutState, v1 *OutState_Version1)
func SetVersion0ForOS ¶
func SetVersion0ForOS(v0 *OutState_Version0, b *OutState)
func SetVersion1ForOS ¶
func SetVersion1ForOS(v1 *OutState_Version1, b *OutState)
Types ¶
type OutStatGet ¶
type OutStatGet struct {
// contains filtered or unexported fields
}
func (*OutStatGet) Unserial ¶
func (self *OutStatGet) Unserial(v []byte) (e error)
type OutState ¶
type OutState struct { Index uint64 Out_O *stx_v0.Out_O `rlp:"nil"` Out_Z *stx_v0.Out_Z `rlp:"nil"` Out_P *stx_v1.Out_P `rlp:"nil"` Out_C *stx_v1.Out_C `rlp:"nil"` OutCM *c_type.Uint256 `rlp:"nil"` RootCM *c_type.Uint256 `rlp:"nil"` }
func (*OutState) TryGetOutCM ¶
type OutState0Get ¶
type OutState0Get struct {
Out *OutState
}
func (*OutState0Get) Unserial ¶
func (self *OutState0Get) Unserial(v []byte) (e error)
type OutState_Version0 ¶
type OutState_Version1 ¶
type RootStateGet ¶
type RootStateGet struct {
Out *RootState
}
func (*RootStateGet) Unserial ¶
func (self *RootStateGet) Unserial(v []byte) (e error)
Click to show internal directories.
Click to hide internal directories.