accounts

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: LGPL-3.0 Imports: 17 Imported by: 2

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"`
	HasCode bool                 `json:"hasCode"`
}

Account for marshal account

type Accounts

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

func New

func New(
	repo *chain.Repository,
	stater *state.Stater,
	callGasLimit uint64,
	forkConfig thor.ForkConfig,
) *Accounts

func (*Accounts) Mount

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

type BatchCallData added in v1.0.5

type BatchCallData struct {
	Clauses    Clauses               `json:"clauses"`
	Gas        uint64                `json:"gas"`
	GasPrice   *math.HexOrDecimal256 `json:"gasPrice"`
	ProvedWork *math.HexOrDecimal256 `json:"provedWork"`
	Caller     *thor.Address         `json:"caller"`
	GasPayer   *thor.Address         `json:"gasPayer"`
	Expiration uint32                `json:"expiration"`
	BlockRef   string                `json:"blockRef"`
}

BatchCallData executes a batch of codes

type BatchCallResults added in v1.0.5

type BatchCallResults []*CallResult

type CallData added in v1.0.5

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

CallData represents contract-call body

type CallResult added in v1.0.5

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 added in v1.0.5

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

type Clauses added in v1.0.5

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