accounts

package
v1.2.0-pre-fork6 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: LGPL-3.0 Imports: 18 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 {
	Balance      math.HexOrDecimal256 `json:"balance"`
	Energy       math.HexOrDecimal256 `json:"energy"`
	BoundBalance math.HexOrDecimal256 `json:"boundbalance"`
	BoundEnergy  math.HexOrDecimal256 `json:"boundenergy"`
	HasCode      bool                 `json:"hasCode"`
}

Account for marshal account

type Accounts

type Accounts struct {
	// contains filtered or unexported fields
}

func New

func New(chain *chain.Chain, stateCreator *state.Creator, callGasLimit uint64) *Accounts

func (*Accounts) Mount

func (a *Accounts) Mount(root *mux.Router, pathPrefix string)

type BatchCallData

type BatchCallData struct {
	Clauses  Clauses               `json:"clauses"`
	Gas      uint64                `json:"gas"`
	GasPrice *math.HexOrDecimal256 `json:"gasPrice"`
	Caller   *meter.Address        `json:"caller"`
}

BatchCallData executes a batch of codes

type BatchCallResults

type BatchCallResults []*CallResult

type CallData

type CallData struct {
	Value    *math.HexOrDecimal256 `json:"value"`
	Data     string                `json:"data"`
	Token    byte                  `json:"token"`
	Gas      uint64                `json:"gas"`
	GasPrice *math.HexOrDecimal256 `json:"gasPrice"`
	Caller   *meter.Address        `json:"caller"`
}

CallData represents contract-call body

type CallPow

type CallPow struct {
	Miner      *meter.Address `json:"miner"`
	Nonce      uint64         `json:"nonce"`
	Difficulty big.Int        `json:"difficulty"`
}

type CallResult

type CallResult struct {
	Data      string                   `json:"data"`
	Events    []*transactions.Event    `json:"events"`
	Transfers []*transactions.Transfer `json:"transfers"`
	GasUsed   uint64                   `json:"gasUsed"`
	Reverted  bool                     `json:"reverted"`
	VMError   string                   `json:"vmError"`
}

type Clause

type Clause struct {
	To    *meter.Address        `json:"to"`
	Value *math.HexOrDecimal256 `json:"value"`
	Data  string                `json:"data"`
	Token byte                  `json:"token"`
}

type Clauses

type Clauses []Clause

Clauses array of clauses.

Jump to

Keyboard shortcuts

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