Documentation ¶
Index ¶
- func IsHex(s string) bool
- func SetTxForVersion0(b *T, v0 *ZtxVersion_0)
- func SetTxForVersion1(b *T, v1 *ZtxVersion_1)
- func SetTxForVersion2(b *T, v2 *ZtxVersion_2)
- func SetVersion0ForTx(v0 *ZtxVersion_0, b *T)
- func SetVersion1ForTx(v1 *ZtxVersion_1, b *T)
- func SetVersion2ForTx(v2 *ZtxVersion_2, b *T)
- type BuyShareCmd
- type ClosePoolCmd
- type ContractCmd
- type ContractCmdMarshaling
- type ContractData
- type DescCmd
- type PkgClose
- func (self *PkgClose) Clone() (ret PkgClose)
- func (self *PkgClose) ToHash() (ret c_type.Uint256)
- func (self *PkgClose) ToHash_for_gen() (ret c_type.Uint256)
- func (self *PkgClose) ToHash_for_sign() (ret c_type.Uint256)
- func (this PkgClose) ToRef() (ret *PkgClose)
- func (self *PkgClose) Tx1_Hash() (ret c_type.Uint256)
- type PkgCreate
- func (self *PkgCreate) Clone() (ret PkgCreate)
- func (self *PkgCreate) ToHash() (ret c_type.Uint256)
- func (self *PkgCreate) ToHash_for_gen() (ret c_type.Uint256)
- func (self *PkgCreate) ToHash_for_sign() (ret c_type.Uint256)
- func (this PkgCreate) ToRef() (ret *PkgCreate)
- func (self *PkgCreate) Tx1_Hash() (ret c_type.Uint256)
- type PkgDesc_Z
- func (self *PkgDesc_Z) Clone() (ret PkgDesc_Z)
- func (self *PkgDesc_Z) Count() int
- func (self *PkgDesc_Z) ToHash() (ret c_type.Uint256)
- func (self *PkgDesc_Z) ToHash_for_gen() (ret c_type.Uint256)
- func (self *PkgDesc_Z) ToHash_for_sign() (ret c_type.Uint256)
- func (this PkgDesc_Z) ToRef() (ret *PkgDesc_Z)
- func (self *PkgDesc_Z) Tx1_Hash() (ret c_type.Uint256)
- func (self *PkgDesc_Z) Valid() bool
- type PkgTransfer
- func (self *PkgTransfer) Clone() (ret PkgTransfer)
- func (self *PkgTransfer) ToHash() (ret c_type.Uint256)
- func (self *PkgTransfer) ToHash_for_gen() (ret c_type.Uint256)
- func (self *PkgTransfer) ToHash_for_sign() (ret c_type.Uint256)
- func (this PkgTransfer) ToRef() (ret *PkgTransfer)
- func (self *PkgTransfer) Tx1_Hash() (ret c_type.Uint256)
- type RegistPoolCmd
- type T
- func (self *T) ContractAddress() *c_type.PKr
- func (self *T) ContractAsset() *assets.Asset
- func (b *T) DecodeRLP(s *rlp.Stream) error
- func (b *T) EncodeRLP(w io.Writer) error
- func (self *T) IsOpContract() bool
- func (self *T) ToFeeCC_Szk() c_type.Uint256
- func (self *T) ToHash() (ret c_type.Uint256)
- func (self *T) ToHash_for_gen() (ret c_type.Uint256)
- func (self *T) ToHash_for_sign() (ret c_type.Uint256)
- func (self *T) Tx0() (ret *stx_v0.Tx)
- func (self *T) Tx1_Hash() (ret c_type.Uint256)
- func (self *T) Tx1_Hash_Cmd() (ret c_type.Uint256)
- func (self *T) Tx1_Hash_From() (ret c_type.Uint256)
- func (self *T) Tx1_Hash_Pkg() (ret c_type.Uint256)
- func (self *T) Tx1_Hash_Tx1() (ret c_type.Uint256)
- type Tx2
- type ZtxVersion_0
- type ZtxVersion_1
- type ZtxVersion_2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetTxForVersion0 ¶
func SetTxForVersion0(b *T, v0 *ZtxVersion_0)
func SetTxForVersion1 ¶
func SetTxForVersion1(b *T, v1 *ZtxVersion_1)
func SetTxForVersion2 ¶
func SetTxForVersion2(b *T, v2 *ZtxVersion_2)
func SetVersion0ForTx ¶
func SetVersion0ForTx(v0 *ZtxVersion_0, b *T)
func SetVersion1ForTx ¶
func SetVersion1ForTx(v1 *ZtxVersion_1, b *T)
func SetVersion2ForTx ¶
func SetVersion2ForTx(v2 *ZtxVersion_2, b *T)
Types ¶
type BuyShareCmd ¶
type BuyShareCmd struct {}
func (*BuyShareCmd) Asset ¶
func (self *BuyShareCmd) Asset() (ret assets.Asset)
func (*BuyShareCmd) ToHash ¶
func (self *BuyShareCmd) ToHash() (ret c_type.Uint256)
type ClosePoolCmd ¶
type ClosePoolCmd struct {
None byte
}
func (*ClosePoolCmd) ToHash ¶
func (self *ClosePoolCmd) ToHash() (ret c_type.Uint256)
type ContractCmd ¶
func (ContractCmd) MarshalJSON ¶
func (c ContractCmd) MarshalJSON() ([]byte, error)
MarshalJSON marshals as JSON.
func (*ContractCmd) ToHash ¶
func (self *ContractCmd) ToHash() (ret c_type.Uint256)
func (*ContractCmd) UnmarshalJSON ¶
func (c *ContractCmd) UnmarshalJSON(input []byte) error
UnmarshalJSON unmarshals from JSON.
type ContractCmdMarshaling ¶
type ContractCmdMarshaling struct { Asset assets.Asset To *c_type.PKr Data ContractData }
type ContractData ¶
type ContractData []byte
func (ContractData) MarshalText ¶
func (b ContractData) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler
func (*ContractData) UnmarshalText ¶
func (b *ContractData) UnmarshalText(input []byte) error
type DescCmd ¶
type DescCmd struct { RegistPool *RegistPoolCmd `rlp:"nil"` ClosePool *ClosePoolCmd `rlp:"nil"` Contract *ContractCmd `rlp:"nil"` // contains filtered or unexported fields }
func (*DescCmd) ToAssetCC_Szk ¶
type PkgDesc_Z ¶
type PkgDesc_Z struct { Create *PkgCreate `rlp:"nil"` Transfer *PkgTransfer `rlp:"nil"` Close *PkgClose `rlp:"nil"` }
func (*PkgDesc_Z) ToHash_for_gen ¶
func (*PkgDesc_Z) ToHash_for_sign ¶
type PkgTransfer ¶
func (*PkgTransfer) Clone ¶
func (self *PkgTransfer) Clone() (ret PkgTransfer)
func (*PkgTransfer) ToHash ¶
func (self *PkgTransfer) ToHash() (ret c_type.Uint256)
func (*PkgTransfer) ToHash_for_gen ¶
func (self *PkgTransfer) ToHash_for_gen() (ret c_type.Uint256)
func (*PkgTransfer) ToHash_for_sign ¶
func (self *PkgTransfer) ToHash_for_sign() (ret c_type.Uint256)
func (PkgTransfer) ToRef ¶
func (this PkgTransfer) ToRef() (ret *PkgTransfer)
func (*PkgTransfer) Tx1_Hash ¶
func (self *PkgTransfer) Tx1_Hash() (ret c_type.Uint256)
type RegistPoolCmd ¶
func (*RegistPoolCmd) Asset ¶
func (self *RegistPoolCmd) Asset() (ret assets.Asset)
func (*RegistPoolCmd) ToHash ¶
func (self *RegistPoolCmd) ToHash() (ret c_type.Uint256)
type T ¶
type T struct { Ehash c_type.Uint256 From c_type.PKr Fee assets.Token Sign c_type.Uint512 Bcr c_type.Uint256 Bsign c_type.Uint512 Desc_O stx_v0.Desc_O Desc_Z stx_v0.Desc_Z Desc_Pkg PkgDesc_Z Desc_Cmd DescCmd Tx1 stx_v1.Tx // contains filtered or unexported fields }
func (*T) ContractAddress ¶
func (*T) ContractAsset ¶
func (*T) IsOpContract ¶
func (*T) ToFeeCC_Szk ¶
func (*T) ToHash_for_gen ¶
func (*T) ToHash_for_sign ¶
func (*T) Tx1_Hash_Cmd ¶
func (*T) Tx1_Hash_From ¶
func (*T) Tx1_Hash_Pkg ¶
func (*T) Tx1_Hash_Tx1 ¶
type ZtxVersion_0 ¶
type ZtxVersion_1 ¶
type ZtxVersion_1 struct { RegistPool *RegistPoolCmd `rlp:"nil"` ClosePool *ClosePoolCmd `rlp:"nil"` Contract *ContractCmd `rlp:"nil"` }
type ZtxVersion_2 ¶
type ZtxVersion_2 struct { Version0 ZtxVersion_0 Version1 ZtxVersion_1 Tx1 stx_v1.Tx }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.