node

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Version      int32          `json:"version""`
	Blockid      string         `json:"blockid""`
	PreHash      string         `json:"preHash""`
	Height       int64          `json:"height""`
	Timestamp    int64          `json:"timestamp""`
	Transactions []*Transaction `json:"transactions""`
	TxCount      int32          `json:"txCount""`
	NextHash     string         `json:"nextHash""`
}

type CallContractResData

type CallContractResData struct {
	base.BaseResModel
	Body *CallContractResDataBody `json:"body"`
}

func (*CallContractResData) GetEncryptionValue

func (f *CallContractResData) GetEncryptionValue() string

type CallContractResDataBody

type CallContractResDataBody struct {
	TxId      string `json:"txId"`
	QueryInfo string `json:"queryInfo"`
}

type GetBlockInfoResData

type GetBlockInfoResData struct {
	base.BaseResModel
	Body *Block `json:"body"` // 消息体
}

func (*GetBlockInfoResData) GetEncryptionValue

func (f *GetBlockInfoResData) GetEncryptionValue() string

type GetTxInfoResData

type GetTxInfoResData struct {
	base.BaseResModel
	Body *Transaction `json:"body"` // 消息体
}

func (*GetTxInfoResData) GetEncryptionValue

func (f *GetTxInfoResData) GetEncryptionValue() string

type InvokeRequest

type InvokeRequest struct {
	ContractName string `json:"contractName""`
	MethodName   string `json:"methodName""`
	Args         string `json:"args""`
}

type Transaction

type Transaction struct {
	Txid              string           `json:"txId""`
	Blockid           string           `json:"blockId""`
	Version           int32            `json:"version""`
	ContractRequests  []*InvokeRequest `json:"contractRequests""`
	ReceivedTimestamp int64            `json:"receivedTimestamp""`
}

type UPukCallContractResData added in v1.0.4

type UPukCallContractResData struct {
	base.BaseResModel
	Body *UPukCallContractResDataBody `json:"body"`
}

func (*UPukCallContractResData) GetEncryptionValue added in v1.0.4

func (f *UPukCallContractResData) GetEncryptionValue() string

type UPukCallContractResDataBody added in v1.0.4

type UPukCallContractResDataBody struct {
	TxId       string `json:"txId"`
	QueryInfo  string `json:"queryInfo"`
	PreExecRes string `json:"preExecRes"`
}

Jump to

Keyboard shortcuts

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