types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Decimals uint64 `toml:"decimals"`
	Denom    string `toml:"denom"`
}

type Config

type Config struct {
	AddressPrefix     string     `toml:"address_prefix"`
	Fees              string     `toml:"fees"`
	GasAdjustment     float64    `toml:"gas_adjustment"`
	Gas               string     `toml:"gas"`
	GRPCServerAddress string     `toml:"grpc_server_address"`
	Key               SigningKey `toml:"key"`
	Memo              string     `toml:"memo"`
	PowerPool         PowerPool  `toml:"power_pool"`
	RPCServerAddress  string     `toml:"rpc_server_address"`
	WebsocketPath     string     `toml:"websocket_path"`
	SignerAccount     string     `toml:"signer_account"`
	Position          Position   `toml:"position"`
}

type GetConfigResponse

type GetConfigResponse struct {
	QueryContract       string `json:"query_contract"`
	FeePoolContract     string `json:"fee_pool_contract"`
	FeeRate             string `json:"fee_rate"`
	PowerAsset          Asset  `json:"power_asset"`
	BaseAsset           Asset  `json:"base_asset"`
	BasePool            Pool   `json:"base_pool"`
	PowerPool           Pool   `json:"power_pool"`
	FundingPeriod       int    `json:"funding_period"`
	BaseDecimals        int    `json:"base_decimals"`
	PowerDecimals       int    `json:"power_decimals"`
	IndexScale          int    `json:"index_scale"`
	MinCollateralAmount string `json:"min_collateral_amount"`
	Version             string `json:"version"`
}

getVaultResponse represents the response structure for querying information about a vault. It includes the operator's address, the amount of collateral, and the short amount of the vault.

type GetStateResponse

type GetStateResponse struct {
	IsOpen              bool   `json:"is_open"`
	IsPaused            bool   `json:"is_paused"`
	LastPause           string `json:"last_pause"`
	NormalisationFactor string `json:"normalisation_factor"`
	LastFundingUpdate   string `json:"last_funding_update"`
}

getVaultResponse represents the response structure for querying information about a vault. It includes the operator's address, the amount of collateral, and the short amount of the vault.

type Pool

type Pool struct {
	ID         uint64 `json:"id"`
	BaseDenom  string `json:"base_denom"`
	QuoteDenom string `json:"quote_denom"`
}

type Position

type Position struct {
	DefaultToken0Amount int64  `toml:"default_token_0_amount"`
	DefaultToken1Amount int64  `toml:"default_token_1_amount"`
	Spread              string `toml:"spread"`
	LpSpread            string `toml:"lp_spread"`
}

type PowerPool

type PowerPool struct {
	PoolID          uint64 `toml:"pool_id"`
	BaseAsset       string `toml:"base_asset"`
	QuoteAsset      string `toml:"quote_asset"`
	ContractAddress string `toml:"contract_address"`
}

type SigningKey

type SigningKey struct {
	AppName string `toml:"app_name"`
	Backend string `toml:"backend"`
	RootDir string `toml:"root_dir"`
}

Jump to

Keyboard shortcuts

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