types

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2016 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

TODO: [ben] this is poorly constructed but copied over from eris-db/erisdb/pipe/types to make incremental changes and allow for a discussion around the proper defintion of the needed types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountList

type AccountList struct {
	Accounts []*account.Account `json:"accounts"`
}

Accounts

type BlockchainInfo

type BlockchainInfo struct {
	ChainId           string           `json:"chain_id"`
	GenesisHash       []byte           `json:"genesis_hash"`
	LatestBlockHeight int              `json:"latest_block_height"`
	LatestBlock       *types.BlockMeta `json:"latest_block"`
}

BlockchainInfo

type Blocks

type Blocks struct {
	MinHeight  int                `json:"min_height"`
	MaxHeight  int                `json:"max_height"`
	BlockMetas []*types.BlockMeta `json:"block_metas"`
}

GetBlocks

type Call

type Call struct {
	Return  string `json:"return"`
	GasUsed int64  `json:"gas_used"`
}

Call or CallCode

type ChainId

type ChainId struct {
	ChainId string `json:"chain_id"`
}

type ClientVersion

type ClientVersion struct {
	ClientVersion string `json:"client_version"`
}

type EventSub

type EventSub struct {
	SubId string `json:"sub_id"`
}

EventSubscribe

type EventUnsub

type EventUnsub struct {
	Result bool `json:"result"`
}

EventUnsubscribe

type GenesisHash

type GenesisHash struct {
	Hash []byte `json:"hash"`
}

Genesis hash

type LatestBlockHeight

type LatestBlockHeight struct {
	Height int `json:"height"`
}

Get the latest

type Listeners

type Listeners struct {
	Listeners []string `json:"listeners"`
}

type Listening

type Listening struct {
	Listening bool `json:"listening"`
}

type Moniker

type Moniker struct {
	Moniker string `json:"moniker"`
}

type NameRegEntry

type NameRegEntry struct {
	Name    string `json:"name"`    // registered name for the entry
	Owner   []byte `json:"owner"`   // address that created the entry
	Data    string `json:"data"`    // data to store under this name
	Expires int    `json:"expires"` // block at which this entry expires
}

type PollResponse

type PollResponse struct {
	Events []interface{} `json:"events"`
}

EventPoll

type ResultListNames

type ResultListNames struct {
	BlockHeight int             `json:"block_height"`
	Names       []*NameRegEntry `json:"names"`
}

type Storage

type Storage struct {
	StorageRoot  []byte        `json:"storage_root"`
	StorageItems []StorageItem `json:"storage_items"`
}

Account storage

type StorageItem

type StorageItem struct {
	Key   []byte `json:"key"`
	Value []byte `json:"value"`
}

A contract account storage item.

type ValidatorList

type ValidatorList struct {
	BlockHeight         int                `json:"block_height"`
	BondedValidators    []*types.Validator `json:"bonded_validators"`
	UnbondingValidators []*types.Validator `json:"unbonding_validators"`
}

Validators

Jump to

Keyboard shortcuts

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