codec_test

package
v0.0.0-...-77dcbbd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package codec_test is a test package for codec.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transaction

type Transaction struct {
	ID              codec.Hex   `json:"id"`
	Module          string      `json:"module" fieldNumber:"1"`
	Command         string      `json:"commandID" fieldNumber:"2"`
	Nonce           uint64      `json:"nonce,string" fieldNumber:"3"`
	Fee             uint64      `json:"fee,string" fieldNumber:"4"`
	SenderPublicKey codec.Hex   `json:"senderPublicKey" fieldNumber:"5"`
	Params          codec.Hex   `json:"params" fieldNumber:"6"`
	Signatures      []codec.Hex `json:"signatures" fieldNumber:"7"`
}

func (*Transaction) Decode

func (e *Transaction) Decode(data []byte) error

func (*Transaction) DecodeFromReader

func (e *Transaction) DecodeFromReader(reader *codec.Reader) error

func (*Transaction) DecodeStrict

func (e *Transaction) DecodeStrict(data []byte) error

func (*Transaction) DecodeStrictFromReader

func (e *Transaction) DecodeStrictFromReader(reader *codec.Reader) error

func (*Transaction) Encode

func (e *Transaction) Encode() []byte

func (*Transaction) MustDecode

func (e *Transaction) MustDecode(data []byte)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL