data

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Address  string `json:"address"`
	Nonce    uint64 `json:"nonce"`
	Balance  string `json:"balance"`
	CodeHash []byte `json:"codeHash"`
	RootHash []byte `json:"rootHash"`
}

Account defines the data structure for an account

type Observer

type Observer struct {
	ShardId uint32
	Address string
}

Observer holds an observer data

type ResponseAccount

type ResponseAccount struct {
	AccountData Account `json:"account"`
}

ResponseAccount defines a wrapped account that the node respond with

type ResponseTransaction

type ResponseTransaction struct {
	TxHash string `json:"txHash"`
}

ResponseTransaction defines a response tx holding the resulting hash

type Transaction

type Transaction struct {
	Nonce     uint64   `form:"nonce" json:"nonce"`
	Value     *big.Int `form:"value" json:"value"`
	Receiver  string   `form:"receiver" json:"receiver"`
	Sender    string   `form:"sender" json:"sender"`
	GasPrice  *big.Int `form:"gasPrice" json:"gasPrice,omitempty"`
	GasLimit  *big.Int `form:"gasLimit" json:"gasLimit,omitempty"`
	Data      string   `form:"data" json:"data,omitempty"`
	Signature string   `form:"signature" json:"signature,omitempty"`
	Challenge string   `form:"challenge" json:"challenge,omitempty"`
}

Transaction represents the structure that maps and validates user input for publishing a new transaction

Jump to

Keyboard shortcuts

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