types

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 2 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 {
	Nonce string `json:"nonce"`
	Block any    `json:"block"`
}

func (*Block) ProtoReflect

func (*Block) ProtoReflect() protoreflect.Message

type Mempool

type Mempool struct {
	Nonce        string         `json:"nonce"`
	Transactions []*Transaction `json:"txs"`
}

func (*Mempool) ProtoReflect

func (*Mempool) ProtoReflect() protoreflect.Message

type PoolLiquidity

type PoolLiquidity struct {
	PoolId    uint64      `json:"pool_id"`
	Liquidity types.Coins `json:"liquidity"`
}

RPC types used by Indexer

type PoolOfInterest

type PoolOfInterest struct {
	Nonce        string       `json:"nonce"`
	BlockHeight  int64        `json:"block_height"`
	AvgBlockTime float64      `json:"avg_block_time"`
	BlockHash    string       `json:"block_hash"`
	Pools        []PoolStatus `json:"pools"`
	Metadata     any          `json:"metadata"`
}

func (*PoolOfInterest) ProtoReflect

func (*PoolOfInterest) ProtoReflect() protoreflect.Message

type PoolStatus

type PoolStatus struct {
	PoolId         uint64               `json:"pool_id"`
	TotalLiquidity types.Coins          `json:"total_liquidity"`
	Volumes        []PoolStatusVolumeAt `json:"total_volume"`
}

type PoolStatusVolumeAt

type PoolStatusVolumeAt struct {
	BlockHeight       int64       `json:"block_height"`
	Volume            types.Coins `json:"volume"`
	VolumeUSD         []float64   `json:"volume_usd"`
	RelativeVolumeUSD []float64   `json:"relative_volume_usd"`
}

type PoolVolume

type PoolVolume struct {
	PoolId uint64      `json:"pool_id"`
	Volume types.Coins `json:"volume"`
}

type Pools

type Pools struct {
	Nonce        string       `json:"nonce"`
	BlockHeight  int64        `json:"block_height"`
	AvgBlockTime float64      `json:"avg_block_time"`
	BlockHash    string       `json:"block_hash"`
	Pools        []any        `json:"pools"`
	PoolStatus   []PoolStatus `json:"pools_status"`
	Events       any          `json:"events"`
	Metadata     any          `json:"metadata"`
}

func (Pools) ProtoReflect

func (Pools) ProtoReflect() protoreflect.Message

type Transaction

type Transaction struct {
	Nonce    string `json:"nonce"`
	Raw      string `json:"raw"`
	Code     uint32 `json:"code"`
	TxID     string `json:"tx_id"`
	Tx       any    `json:"tx"`
	TxResult any    `json:"tx_result"`
	Metadata any    `json:"metadata"`
}

func (*Transaction) ProtoReflect

func (*Transaction) ProtoReflect() protoreflect.Message

Jump to

Keyboard shortcuts

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