xwctypes

package
v0.0.0-...-fa704fd Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RpcAccountJson

type RpcAccountJson struct {
	Name string `json:"name"`
	Addr string `json:"addr"`
}

type RpcBalance

type RpcBalance struct {
	Amount  uint64
	AssetId string
}

type RpcBalanceJson

type RpcBalanceJson struct {
	Amount  interface{} `json:"amount"`
	AssetId string      `json:"asset_id"`
}

type RpcBlock

type RpcBlock struct {
	Previous              xwcfmt.Hash
	Timestamp             uint64
	Trxfee                uint64
	Miner                 string
	TransactionMerkleRoot xwcfmt.Hash
	Extensions            []interface{}
	NextSecretHash        xwcfmt.Hash
	PreviousSecret        xwcfmt.Hash
	MinerSignature        []byte
	Transactions          []interface{}
	Number                uint64
	BlockId               xwcfmt.Hash
	SigningKey            string
	Reward                uint64
	TransactionIds        []xwcfmt.Hash
}

type RpcBlockJson

type RpcBlockJson struct {
	Previous              string        `json:"previous"`
	Timestamp             string        `json:"timestamp"`
	Trxfee                uint64        `json:"trxfee"`
	Miner                 string        `json:"miner"`
	TransactionMerkleRoot string        `json:"transaction_merkle_root"`
	Extensions            []interface{} `json:"extensions"`
	NextSecretHash        string        `json:"next_secret_hash"`
	PreviousSecret        string        `json:"previous_secret"`
	MinerSignature        string        `json:"miner_signature"`
	Transactions          []interface{} `json:"transactions"`
	Number                uint64        `json:"number"`
	BlockId               string        `json:"block_id"`
	SigningKey            string        `json:"signing_key"`
	Reward                uint64        `json:"reward"`
	TransactionIds        []string      `json:"transaction_ids"`
}

type RpcCodePrintable

type RpcCodePrintable struct {
	Abi                        []string    `json:"abi"`
	OfflineAbi                 []string    `json:"offline_abi"`
	Events                     []string    `json:"events"`
	PrintableStorageProperties interface{} `json:"printable_storage_properties"`
	PrintableCode              string      `json:"printable_code"`
	CodeHash                   string      `json:"code_hash"`
}

type RpcContractJson

type RpcContractJson struct {
	Id                string           `json:"id"`
	OwnerAddress      string           `json:"owner_address"`
	OwnerName         string           `json:"owner_name"`
	Name              string           `json:"name"`
	Description       string           `json:"description"`
	TypeOfContract    string           `json:"type_of_contract"`
	RegisteredBlock   uint64           `json:"registered_block"`
	RegisteredTrx     string           `json:"registered_trx"`
	NativeContractKey string           `json:"native_contract_key"`
	Derived           interface{}      `json:"derived"`
	CodePrintable     RpcCodePrintable `json:"code_printable"`
	CreateTime        string           `json:"createtime"`
}

type RpcEvent

type RpcEvent struct {
	ContractAddress common.Address
	CallerAddr      common.Address
	EventName       string
	EventArg        string
	BlockNum        uint64
	OpNum           uint64
}

type RpcEventJson

type RpcEventJson struct {
	ContractAddress string `json:"contract_address"`
	CallerAddr      string `json:"caller_addr"`
	EventName       string `json:"event_name"`
	EventArg        string `json:"event_arg"`
	BlockNum        uint64 `json:"block_num"`
	OpNum           uint64 `json:"op_num"`
}

type RpcHeader

type RpcHeader struct {
}

type RpcInfo

type RpcInfo struct {
	HeadBlockNum       uint64
	HeadBlockId        xwcfmt.Hash
	ChainId            common.Hash
	Participation      float64
	RoundParticipation float64
}

type RpcInfoJson

type RpcInfoJson struct {
	HeadBlockNum       uint64 `json:"head_block_num"`
	HeadBlockId        string `json:"head_block_id"`
	ChainId            string `json:"chain_id"`
	Participation      string `json:"participation"`
	RoundParticipation string `json:"round_participation"`
}

type RpcTransaction

type RpcTransaction struct {
	RefBlockNum    uint64
	RefBlockPrefix uint64
	Expiration     uint64
	Operations     []interface{}
	Extensions     []interface{}
	Signatures     [][]byte
	BlockNum       uint64
	TrxId          xwcfmt.Hash
}

type RpcTransactionJson

type RpcTransactionJson struct {
	RefBlockNum    uint64        `json:"ref_block_num"`
	RefBlockPrefix uint64        `json:"ref_block_prefix"`
	Expiration     string        `json:"expiration"`
	Operations     []interface{} `json:"operations"`
	Extensions     []interface{} `json:"extensions"`
	Signatures     []string      `json:"signatures"`
	BlockNum       uint64        `json:"block_num"`
	TrxId          string        `json:"trxid"`
}

type RpcTransactionReceipt

type RpcTransactionReceipt struct {
	TrxId       common.Hash
	BlockNum    uint64
	Events      []RpcEvent
	ExecSucceed bool
	AcctualFee  uint64
	Invoker     common.Address
}

type RpcTransactionReceiptJson

type RpcTransactionReceiptJson struct {
	TrxId       string         `json:"trx_id"`
	BlockNum    uint64         `json:"block_num"`
	Events      []RpcEventJson `json:"events"`
	ExecSucceed bool           `json:"exec_succeed"`
	AcctualFee  uint64         `json:"acctual_fee"`
	Invoker     string         `json:"invoker"`
}

Jump to

Keyboard shortcuts

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