models

package
v0.0.0-...-335c537 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.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 Block

type Block struct {
	Header *types.Header `json:",omitempty"`
	Body   *types.Body   `json:",omitempty"`
}

Block is an Ethereum block as returned by Ethereum client. swagger:model block

type BlockNoBody

type BlockNoBody struct {
	Header *types.Header `json:",omitempty"`
}

BlockNoBody is an Ethereum block with header only as returned by Ethereum client. swagger:model blockNoBody

type Error

type Error struct {
	// The error message
	// required: true
	Error string `json:"error"`
}

Error is a generic error returned in API response. swagger:model error

type Group

type Group struct {
	// example: DeFi Indexes
	Name string
	// example: [0,1,2,3,4,5]
	Indexes []int64
}

Group is a contract group. swagger:model group

type Groups

type Groups struct {
	// example: [12,13]
	GroupIDs []int64 `json:"group_ids"`
}

Groups holds a list of group IDs. swagger:model groupIDs

type Index

type Index struct {
	// example: DeFi Index (1)
	Name string
	// example: 150000000000000000
	EthPriceInWei int64
	// example: 9500
	UsdPriceInCents int64
	// example: 250000000
	UsdCapitalization int64
	// example: -45
	PercentageChange int64
}

Index is a contract index. swagger:model index

Jump to

Keyboard shortcuts

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