Versions in this module Expand all Collapse all v0 v0.0.1 Dec 23, 2020 Changes in this version + const APPEND_AGENT_DEPOSIT + const BATCH_STAKING_MERGE + const BATCH_WITHDRAW + const CHANGE_VIRTUAL_BANK + const COIN_TRADING + const CONFIRM_CHANGE_VIRTUAL_BANK + const CONFIRM_HETEROGENEOUS_RESET_VIRTUAL_BANK + const CONFIRM_PROPOSAL + const CONFIRM_WITHDRAWAL + const CONTRACT_TOKEN_CROSS_TRANSFER + const DISTRIBUTION_FEE + const EDIT_COIN_TRADING + const FINAL_QUOTATION + const HETEROGENEOUS_CONTRACT_ASSET_REG_COMPLETE + const HETEROGENEOUS_CONTRACT_ASSET_REG_PENDING + const HashLength + const INITIALIZE_HETEROGENEOUS + const LEDGER_ASSET_REG_TRANSFER + const ORDER_CANCEL_CONFIRM + const PROPOSAL + const QUOTATION + const RECHARGE + const REDUCE_AGENT_DEPOSIT + const REGISTERED_CHAIN_CHANGE + const RESET_HETEROGENEOUS_VIRTUAL_BANK + const TRADING_DEAL + const TRADING_ORDER + const TRADING_ORDER_CANCEL + const TX_TYPE_ACCOUNT_ALIAS + const TX_TYPE_ADD_ASSET_TO_CHAIN + const TX_TYPE_CALL_CONTRACT + const TX_TYPE_CANCEL_DEPOSIT + const TX_TYPE_COIN_BASE + const TX_TYPE_CONTRACT_CANCEL_DEPOSIT + const TX_TYPE_CONTRACT_CREATE_AGENT + const TX_TYPE_CONTRACT_DEPOSIT + const TX_TYPE_CONTRACT_RETURN_GAS + const TX_TYPE_CONTRACT_STOP_AGENT + const TX_TYPE_CONTRACT_TRANSFER + const TX_TYPE_CREATE_CONTRACT + const TX_TYPE_CROSS_CHAIN + const TX_TYPE_DELETE_CONTRACT + const TX_TYPE_DEPOSIT + const TX_TYPE_DESTROY_CHAIN_AND_ASSET + const TX_TYPE_RED_PUNISH + const TX_TYPE_REGISTER_AGENT + const TX_TYPE_REGISTER_CHAIN_AND_ASSET + const TX_TYPE_REMOVE_ASSET_FROM_CHAIN + const TX_TYPE_STOP_AGENT + const TX_TYPE_TRANSFER + const TX_TYPE_VERIFIER_CHANGE + const TX_TYPE_VERIFIER_INIT + const TX_TYPE_YELLOW_PUNISH + const VOTE_PROPOSAL + const WITHDRAWAL + type Block struct + Header *BlockHeader + Txs []*Transaction + func ParseBlock(bytes []byte) *Block + func (b *Block) Parse(reader *seria.ByteBufReader) + func (b *Block) Serialize() []byte + type BlockHeader struct + Extend []byte + Height uint32 + MerkleRoot *NulsHash + PackagerPubkey []byte + PreHash *NulsHash + SignData []byte + Time uint32 + TxCount uint32 + func (h *BlockHeader) GetHash() *NulsHash + func (h *BlockHeader) Parse(reader *seria.ByteBufReader) error + func (h *BlockHeader) Serialize() ([]byte, error) + func (h *BlockHeader) SerializeForHash() ([]byte, error) + type Coin struct + Address []byte + Amount *big.Int + AssetsChainId uint16 + AssetsId uint16 + type CoinData struct + Froms []CoinFrom + Tos []CoinTo + func (c *CoinData) Parse(reader *seria.ByteBufReader) error + func (c *CoinData) Serialize() ([]byte, error) + type CoinFrom struct + Locked byte + Nonce []byte + type CoinTo struct + LockValue uint64 + type CommonSignData struct + Signatures []P2PHKSignature + func (s *CommonSignData) Parse(reader *seria.ByteBufReader) error + func (s *CommonSignData) Serialize() ([]byte, error) + type MultiAddressesSignData struct + M byte + PubkeyList [][]byte + func (s *MultiAddressesSignData) Parse(reader *seria.ByteBufReader) error + func (s *MultiAddressesSignData) Serialize() ([]byte, error) + type NulsHash struct + func ImportNulsHash(hashHex string) *NulsHash + func NewNulsHash(bytes []byte) *NulsHash + func (hash *NulsHash) Parse(reader *seria.ByteBufReader) error + func (hash *NulsHash) Serialize() ([]byte, error) + func (hash *NulsHash) String() string + type P2PHKSignature struct + PublicKey []byte + SignValue []byte + type Transaction struct + CoinData []byte + Extend []byte + Remark []byte + SignData []byte + Time uint32 + TxType uint16 + func ParseTransaction(bytes []byte, cursor int) *Transaction + func ParseTransactionByReader(reader *seria.ByteBufReader) *Transaction + func (t *Transaction) CalcHash() error + func (t *Transaction) GetHash() *NulsHash + func (t *Transaction) Parse(reader *seria.ByteBufReader) (errResult error) + func (t *Transaction) Serialize() ([]byte, error) + func (t *Transaction) SerializeForHash() ([]byte, error)