types

package
v0.14.0-margin.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StakeTokenDenom = "rowan"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Enable             bool   `toml:"enable"`
	Swagger            bool   `toml:"swagger"`
	EnabledUnsafeCors  bool   `toml:"enabled-unsafe-cors"`
	MaxOpenConnections int    `toml:"max-open-connections"`
	RPCReadTimeout     int    `toml:"rpc-read-timeout"`
	RPCWriteTimeout    int    `toml:"rpc-write-timeout"`
	RPCMaxBodyBytes    int    `toml:"rpc-max-body-bytes"`
	Address            string `toml:"address"`
}

type Accounts

type Accounts []struct {
	Type          string      `json:"@type"`
	Address       string      `json:"address"`
	PubKey        interface{} `json:"pub_key"`
	AccountNumber string      `json:"account_number"`
	Sequence      string      `json:"sequence"`
}

type Admin added in v0.13.4

type Admin struct {
	AdminAccounts []AdminAccount `json:"admin_accounts"`
}

type AdminAccount added in v0.13.0

type AdminAccount struct {
	AdminType    int32  `json:"admin_type"`
	AdminAddress string `json:"admin_address"`
}

type AppState

type AppState struct {
	Upgrade       struct{}      `json:"upgrade"`
	Ethbridge     struct{}      `json:"ethbridge"`
	Params        interface{}   `json:"params"`
	Ibc           Ibc           `json:"ibc"`
	Distribution  Distribution  `json:"distribution"`
	Staking       Staking       `json:"staking"`
	Gov           Gov           `json:"gov"`
	Mint          Mint          `json:"mint"`
	Slashing      Slashing      `json:"slashing"`
	Auth          Auth          `json:"auth"`
	AuthZ         AuthZ         `json:"authz"`
	Bank          Bank          `json:"bank"`
	CLP           CLP           `json:"clp"`
	Margin        Margin        `json:"margin"`
	Transfer      Transfer      `json:"transfer"`
	Capability    Capability    `json:"capability"`
	Dispensation  Dispensation  `json:"dispensation"`
	Oracle        Oracle        `json:"oracle"`
	Evidence      EvidenceState `json:"evidence"`
	Genutil       Genutil       `json:"genutil"`
	Crisis        Crisis        `json:"crisis"`
	TokenRegistry TokenRegistry `json:"tokenregistry"`
	Admin         Admin         `json:"admin"`
}

type AppTOML

type AppTOML struct {
	MinimumGasPrices  string        `toml:"minimum-gas-prices"`
	Pruning           string        `toml:"pruning"`
	PruningKeepRecent string        `toml:"pruning-keep-recent"`
	PruningKeepEvery  string        `toml:"pruning-keep-every"`
	PruningInterval   string        `toml:"pruning-interval"`
	HaltHeight        int           `toml:"halt-height"`
	HaltTime          int           `toml:"halt-time"`
	MinRetainBlocks   int           `toml:"min-retain-blocks"`
	InterBlockCache   bool          `toml:"inter-block-cache"`
	IndexEvents       []interface{} `toml:"index-events"`
	Telemetry         Telemetry     `toml:"telemetry"`
	API               API           `toml:"api"`
	Grpc              Grpc          `toml:"grpc"`
	StateSync         StateSync     `toml:"state-sync"`
}

type Auth

type Auth struct {
	Params   Params   `json:"params"`
	Accounts Accounts `json:"accounts"`
}

type AuthZ added in v0.10.1

type AuthZ struct {
	Authorization []string `json:"authorization"`
}

type Balances

type Balances []struct {
	Address string `json:"address"`
	Coins   Coins  `json:"coins"`
}

type Bank

type Bank struct {
	Params        BankParams    `json:"params"`
	Balances      Balances      `json:"balances"`
	Supply        Supply        `json:"supply"`
	DenomMetadata []interface{} `json:"denom_metadata"`
}

type BankParams

type BankParams struct {
	SendEnabled        []interface{} `json:"send_enabled"`
	DefaultSendEnabled bool          `json:"default_send_enabled"`
}

type Block

type Block struct {
	MaxBytes   string `json:"max_bytes"`
	MaxGas     string `json:"max_gas"`
	TimeIotaMs string `json:"time_iota_ms"`
}

type CLP

type CLP struct {
	Params             CLPParams     `json:"params"`
	AddressWhitelist   []string      `json:"address_whitelist"`
	PoolList           []interface{} `json:"pool_list"`
	LiquidityProviders []interface{} `json:"liquidity_providers"`
}

type CLPParams

type CLPParams struct {
	MinCreatePoolThreshold json.Number `json:"min_create_pool_threshold"`
}

type Capability

type Capability struct {
	Index  string        `json:"index"`
	Owners []interface{} `json:"owners"`
}

type ChannelGenesis

type ChannelGenesis struct {
	Channels            []interface{} `json:"channels"`
	Acknowledgements    []interface{} `json:"acknowledgements"`
	Commitments         []interface{} `json:"commitments"`
	Receipts            []interface{} `json:"receipts"`
	SendSequences       []interface{} `json:"send_sequences"`
	RecvSequences       []interface{} `json:"recv_sequences"`
	AckSequences        []interface{} `json:"ack_sequences"`
	NextChannelSequence string        `json:"next_channel_sequence"`
}

type ClientGenesis

type ClientGenesis struct {
	Clients            []interface{}       `json:"clients"`
	ClientsConsensus   []interface{}       `json:"clients_consensus"`
	ClientsMetadata    []interface{}       `json:"clients_metadata"`
	Params             ClientGenesisParams `json:"params"`
	CreateLocalhost    bool                `json:"create_localhost"`
	NextClientSequence string              `json:"next_client_sequence"`
}

type ClientGenesisParams

type ClientGenesisParams struct {
	AllowedClients []string `json:"allowed_clients"`
}

type Coins

type Coins []struct {
	Denom  string `json:"denom"`
	Amount string `json:"amount"`
}

type Commission

type Commission struct {
	Rate          string `json:"rate"`
	MaxRate       string `json:"max_rate"`
	MaxChangeRate string `json:"max_change_rate"`
}

type ConfigTOML

type ConfigTOML struct {
	FastSync               bool            `toml:"fast_sync"`
	FilterPeers            bool            `toml:"filter_peers"`
	ProxyApp               string          `toml:"proxy_app"`
	Moniker                string          `toml:"moniker"`
	DbBackend              string          `toml:"db_backend"`
	DbDir                  string          `toml:"db_dir"`
	LogLevel               string          `toml:"log_level"`
	LogFormat              string          `toml:"log_format"`
	GenesisFile            string          `toml:"genesis_file"`
	PrivValidatorKeyFile   string          `toml:"priv_validator_key_file"`
	PrivValidatorStateFile string          `toml:"priv_validator_state_file"`
	PrivValidatorLaddr     string          `toml:"priv_validator_laddr"`
	NodeKeyFile            string          `toml:"node_key_file"`
	Abci                   string          `toml:"abci"`
	RPC                    RPC             `toml:"rpc"`
	P2P                    P2P             `toml:"p2p"`
	Mempool                Mempool         `toml:"mempool"`
	Statesync              Statesync       `toml:"statesync"`
	Fastsync               Fastsync        `toml:"fastsync"`
	Consensus              Consensus       `toml:"consensus"`
	TxIndex                TxIndex         `toml:"tx_index"`
	Instrumentation        Instrumentation `toml:"instrumentation"`
}

type ConnectionGenesis

type ConnectionGenesis struct {
	Connections            []interface{}           `json:"connections"`
	ClientConnectionPaths  []interface{}           `json:"client_connection_paths"`
	NextConnectionSequence string                  `json:"next_connection_sequence"`
	Params                 ConnectionGenesisParams `json:"params"`
}

type ConnectionGenesisParams added in v0.10.1

type ConnectionGenesisParams struct {
	MaxExpectedTimePerBlock string `json:"max_expected_time_per_block"`
}

type Consensus

type Consensus struct {
	WalFile                     string `toml:"wal_file"`
	TimeoutPropose              string `toml:"timeout_propose"`
	TimeoutProposeDelta         string `toml:"timeout_propose_delta"`
	TimeoutPrevote              string `toml:"timeout_prevote"`
	TimeoutPrevoteDelta         string `toml:"timeout_prevote_delta"`
	TimeoutPrecommit            string `toml:"timeout_precommit"`
	TimeoutPrecommitDelta       string `toml:"timeout_precommit_delta"`
	TimeoutCommit               string `toml:"timeout_commit"`
	DoubleSignCheckHeight       int    `toml:"double_sign_check_height"`
	SkipTimeoutCommit           bool   `toml:"skip_timeout_commit"`
	CreateEmptyBlocks           bool   `toml:"create_empty_blocks"`
	CreateEmptyBlocksInterval   string `toml:"create_empty_blocks_interval"`
	PeerGossipSleepDuration     string `toml:"peer_gossip_sleep_duration"`
	PeerQueryMaj23SleepDuration string `toml:"peer_query_maj23_sleep_duration"`
}

type ConsensusParams

type ConsensusParams struct {
	Version   Version   `json:"version"`
	Block     Block     `json:"block"`
	Evidence  Evidence  `json:"evidence"`
	Validator Validator `json:"validator"`
}

type ConstantFee added in v0.10.1

type ConstantFee struct {
	Amount string `json:"amount"`
	Denom  string `json:"denom"`
}

type Crisis added in v0.10.1

type Crisis struct {
	ConstantFee ConstantFee `json:"constant_fee"`
}

type Description

type Description struct {
	Moniker         string `json:"moniker"`
	Identity        string `json:"identity"`
	Website         string `json:"website"`
	SecurityContact string `json:"security_contact"`
	Details         string `json:"details"`
}

type Dispensation

type Dispensation struct {
	DistributionRecords interface{} `json:"distribution_records"`
	Distributions       interface{} `json:"distributions"`
}

type Distribution

type Distribution struct {
	Params                          DistributionParams `json:"params"`
	FeePool                         FeePool            `json:"fee_pool"`
	DelegatorWithdrawInfos          []interface{}      `json:"delegator_withdraw_infos"`
	PreviousProposer                string             `json:"previous_proposer"`
	OutstandingRewards              []interface{}      `json:"outstanding_rewards"`
	ValidatorAccumulatedCommissions []interface{}      `json:"validator_accumulated_commissions"`
	ValidatorHistoricalRewards      []interface{}      `json:"validator_historical_rewards"`
	ValidatorCurrentRewards         []interface{}      `json:"validator_current_rewards"`
	DelegatorStartingInfos          []interface{}      `json:"delegator_starting_infos"`
	ValidatorSlashEvents            []interface{}      `json:"validator_slash_events"`
}

type DistributionParams

type DistributionParams struct {
	CommunityTax        string `json:"community_tax"`
	BaseProposerReward  string `json:"base_proposer_reward"`
	BonusProposerReward string `json:"bonus_proposer_reward"`
	WithdrawAddrEnabled bool   `json:"withdraw_addr_enabled"`
}

type Evidence

type Evidence struct {
	MaxAgeNumBlocks string `json:"max_age_num_blocks"`
	MaxAgeDuration  string `json:"max_age_duration"`
	MaxBytes        string `json:"max_bytes"`
}

type EvidenceState

type EvidenceState struct {
	Evidence []interface{} `json:"evidence"`
}

type Fastsync

type Fastsync struct {
	Version string `toml:"version"`
}

type Fee

type Fee struct {
	Amount   []interface{} `json:"amount"`
	GasLimit string        `json:"gas_limit"`
	Payer    string        `json:"payer"`
	Granter  string        `json:"granter"`
}

type FeePool

type FeePool struct {
	CommunityPool []interface{} `json:"community_pool"`
}

type GenTxs

type GenTxs []struct {
	Body       GenTxsBody     `json:"body"`
	AuthInfo   GenTxsAuthInfo `json:"auth_info"`
	Signatures []string       `json:"signatures"`
}

type GenTxsAuthInfo

type GenTxsAuthInfo struct {
	SignerInfos SignerInfos `json:"signer_infos"`
	Fee         Fee         `json:"fee"`
}

type GenTxsBody

type GenTxsBody struct {
	Messages                    GenTxsBodyMessages `json:"messages"`
	Memo                        string             `json:"memo"`
	TimeoutHeight               string             `json:"timeout_height"`
	ExtensionOptions            []interface{}      `json:"extension_options"`
	NonCriticalExtensionOptions []interface{}      `json:"non_critical_extension_options"`
}

type GenTxsBodyMessages

type GenTxsBodyMessages []struct {
	Type              string      `json:"@type"`
	Description       Description `json:"description"`
	Commission        Commission  `json:"commission"`
	MinSelfDelegation string      `json:"min_self_delegation"`
	DelegatorAddress  string      `json:"delegator_address"`
	ValidatorAddress  string      `json:"validator_address"`
	Pubkey            Pubkey      `json:"pubkey"`
	Value             Value       `json:"value"`
}

type Genesis

type Genesis struct {
	GenesisTime     time.Time       `json:"genesis_time"`
	ChainID         string          `json:"chain_id"`
	InitialHeight   string          `json:"initial_height"`
	ConsensusParams ConsensusParams `json:"consensus_params"`
	AppHash         string          `json:"app_hash"`
	AppState        AppState        `json:"app_state"`
}

type Genutil

type Genutil struct {
	GenTxs GenTxs `json:"gen_txs"`
}

type Gov

type Gov struct {
	StartingProposalID string           `json:"starting_proposal_id"`
	Deposits           []interface{}    `json:"deposits"`
	Votes              []interface{}    `json:"votes"`
	Proposals          []interface{}    `json:"proposals"`
	DepositParams      GovDepositParams `json:"deposit_params"`
	VotingParams       GovVotingParams  `json:"voting_params"`
	TallyParams        GovTallyParams   `json:"tally_params"`
}

type GovDepositParams

type GovDepositParams struct {
	MinDeposit       GovMinDeposit `json:"min_deposit"`
	MaxDepositPeriod string        `json:"max_deposit_period"`
}

type GovMinDeposit

type GovMinDeposit []struct {
	Denom  string `json:"denom"`
	Amount string `json:"amount"`
}

type GovTallyParams

type GovTallyParams struct {
	Quorum        string `json:"quorum"`
	Threshold     string `json:"threshold"`
	VetoThreshold string `json:"veto_threshold"`
}

type GovVotingParams

type GovVotingParams struct {
	VotingPeriod string `json:"voting_period"`
}

type Grpc

type Grpc struct {
	Enable  bool   `toml:"enable"`
	Address string `toml:"address"`
}

type Ibc

type Ibc struct {
	ClientGenesis     ClientGenesis     `json:"client_genesis"`
	ConnectionGenesis ConnectionGenesis `json:"connection_genesis"`
	ChannelGenesis    ChannelGenesis    `json:"channel_genesis"`
}

type Instrumentation

type Instrumentation struct {
	Prometheus           bool   `toml:"prometheus"`
	PrometheusListenAddr string `toml:"prometheus_listen_addr"`
	MaxOpenConnections   int    `toml:"max_open_connections"`
	Namespace            string `toml:"namespace"`
}

type Key

type Key struct {
	Name      string   `json:"name" yaml:"name"`
	KeyType   string   `json:"type" yaml:"type"`
	Address   string   `json:"address" yaml:"address"`
	PubKey    string   `json:"pubkey" yaml:"pubkey"`
	Mnemonic  string   `json:"mnemonic" yaml:"mnemonic"`
	Threshold int      `json:"threshold" yaml:"threshold"`
	PubKeys   []string `json:"pubkeys" yaml:"pubkeys"`
}

type Keys

type Keys []Key

type Margin added in v0.15.0

type Margin struct {
	Params MarginParams `json:"params"`
}

type MarginParams added in v0.15.0

type MarginParams struct {
	LeverageMax          string      `json:"leverage_max"`
	InterestRateMax      string      `json:"interest_rate_max"`
	InterestRateMin      string      `json:"interest_rate_min"`
	InterestRateIncrease string      `json:"interest_rate_increase"`
	InterestRateDecrease string      `json:"interest_rate_decrease"`
	HealthGainFactor     string      `json:"health_gain_factor"`
	EpochLength          json.Number `json:"epoch_length,omitempty"`
	Pools                []string    `json:"pools,omitempty"`
}

type Mempool

type Mempool struct {
	Recheck               bool   `toml:"recheck"`
	Broadcast             bool   `toml:"broadcast"`
	KeepInvalidTxsInCache bool   `toml:"keep-invalid-txs-in-cache"`
	Size                  int    `toml:"size"`
	MaxTxsBytes           int    `toml:"max_txs_bytes"`
	CacheSize             int    `toml:"cache_size"`
	MaxTxBytes            int    `toml:"max_tx_bytes"`
	MaxBatchBytes         int    `toml:"max_batch_bytes"`
	WalDir                string `toml:"wal_dir"`
}

type Mint

type Mint struct {
	Minter Minter     `json:"minter"`
	Params MintParams `json:"params"`
}

type MintParams

type MintParams struct {
	MintDenom           string `json:"mint_denom"`
	InflationRateChange string `json:"inflation_rate_change"`
	InflationMax        string `json:"inflation_max"`
	InflationMin        string `json:"inflation_min"`
	GoalBonded          string `json:"goal_bonded"`
	BlocksPerYear       string `json:"blocks_per_year"`
}

type Minter

type Minter struct {
	Inflation        string `json:"inflation"`
	AnnualProvisions string `json:"annual_provisions"`
}

type ModeInfo

type ModeInfo struct {
	Single Single `json:"single"`
}

type NodeConfig

type NodeConfig struct {
	FilterPeers            bool            `toml:"filter_peers"`
	FastSync               bool            `toml:"fast_sync"`
	ProxyApp               string          `toml:"proxy_app"`
	Moniker                string          `toml:"moniker"`
	DbBackend              string          `toml:"db_backend"`
	DbDir                  string          `toml:"db_dir"`
	LogLevel               string          `toml:"log_level"`
	LogFormat              string          `toml:"log_format"`
	GenesisFile            string          `toml:"genesis_file"`
	PrivValidatorKeyFile   string          `toml:"priv_validator_key_file"`
	PrivValidatorStateFile string          `toml:"priv_validator_state_file"`
	PrivValidatorLaddr     string          `toml:"priv_validator_laddr"`
	NodeKeyFile            string          `toml:"node_key_file"`
	Abci                   string          `toml:"abci"`
	ProfLaddr              string          `toml:"prof_laddr"`
	Fastsync               Fastsync        `toml:"fastsync"`
	P2P                    P2P             `toml:"p2p"`
	RPC                    RPC             `toml:"rpc"`
	Consensus              Consensus       `toml:"consensus"`
	Mempool                Mempool         `toml:"mempool"`
	Instrumentation        Instrumentation `toml:"instrumentation"`
	TxIndex                TxIndex         `toml:"tx_index"`
}

type Oracle

type Oracle struct {
	AddressWhitelist []interface{} `json:"address_whitelist"`
	AdminAddress     string        `json:"admin_address"`
}

type P2P

type P2P struct {
	Upnp                         bool   `toml:"upnp"`
	AddrBookStrict               bool   `toml:"addr_book_strict"`
	Pex                          bool   `toml:"pex"`
	SeedMode                     bool   `toml:"seed_mode"`
	AllowDuplicateIP             bool   `toml:"allow_duplicate_ip"`
	MaxNumInboundPeers           int    `toml:"max_num_inbound_peers"`
	MaxNumOutboundPeers          int    `toml:"max_num_outbound_peers"`
	MaxPacketMsgPayloadSize      int    `toml:"max_packet_msg_payload_size"`
	SendRate                     int    `toml:"send_rate"`
	RecvRate                     int    `toml:"recv_rate"`
	Laddr                        string `toml:"laddr"`
	ExternalAddress              string `toml:"external_address"`
	Seeds                        string `toml:"seeds"`
	PersistentPeers              string `toml:"persistent_peers"`
	AddrBookFile                 string `toml:"addr_book_file"`
	UnconditionalPeerIds         string `toml:"unconditional_peer_ids"`
	PersistentPeersMaxDialPeriod string `toml:"persistent_peers_max_dial_period"`
	FlushThrottleTimeout         string `toml:"flush_throttle_timeout"`
	PrivatePeerIds               string `toml:"private_peer_ids"`
	HandshakeTimeout             string `toml:"handshake_timeout"`
	DialTimeout                  string `toml:"dial_timeout"`
}

type Params

type Params struct {
	MaxMemoCharacters      string `json:"max_memo_characters"`
	TxSigLimit             string `json:"tx_sig_limit"`
	TxSizeCostPerByte      string `json:"tx_size_cost_per_byte"`
	SigVerifyCostEd25519   string `json:"sig_verify_cost_ed25519"`
	SigVerifyCostSecp256K1 string `json:"sig_verify_cost_secp256k1"`
}

type PoolMultiplier added in v0.13.0

type PoolMultiplier struct {
	Asset      string `json:"asset"`
	Multiplier string `json:"multiplier"`
}

type Pubkey

type Pubkey struct {
	Type string `json:"@type"`
	Key  string `json:"key"`
}

type PublicKey

type PublicKey struct {
	Type string `json:"@type"`
	Key  string `json:"key"`
}

type RPC

type RPC struct {
	Unsafe                    bool     `toml:"unsafe"`
	GrpcMaxOpenConnections    int      `toml:"grpc_max_open_connections"`
	MaxOpenConnections        int      `toml:"max_open_connections"`
	MaxSubscriptionClients    int      `toml:"max_subscription_clients"`
	MaxSubscriptionsPerClient int      `toml:"max_subscriptions_per_client"`
	MaxBodyBytes              int      `toml:"max_body_bytes"`
	MaxHeaderBytes            int      `toml:"max_header_bytes"`
	TimeoutBroadcastTxCommit  string   `toml:"timeout_broadcast_tx_commit"`
	Laddr                     string   `toml:"laddr"`
	GrpcLaddr                 string   `toml:"grpc_laddr"`
	TLSCertFile               string   `toml:"tls_cert_file"`
	TLSKeyFile                string   `toml:"tls_key_file"`
	CorsAllowedOrigins        []string `toml:"cors_allowed_origins"`
	CorsAllowedMethods        []string `toml:"cors_allowed_methods"`
	CorsAllowedHeaders        []string `toml:"cors_allowed_headers"`
}

type Registry added in v0.13.0

type Registry struct {
	Entries []*RegistryEntry `json:"entries"`
}

type RegistryEntry added in v0.13.0

type RegistryEntry struct {
	Decimals                 int64              `json:"deciamls"`
	Denom                    string             `json:"denom"`
	BaseDenom                string             `json:"base_denom"`
	Path                     string             `json:"path"`
	IbcChannelID             string             `json:"ibc_channel_id"`
	IbcCounterpartyChannelID string             `json:"ibc_counterparty_id"`
	DisplayName              string             `json:"display_name"`
	DisplaySymbol            string             `json:"display_symbol"`
	Network                  string             `json:"network"`
	Address                  string             `json:"address"`
	ExternalSymbol           string             `json:"external_symbol"`
	TransferLimit            string             `json:"transfer_limit"`
	Permissions              []types.Permission `json:"permissions"`
	UnitDenom                string             `json:"unit_denom"`
	IbcCounterpartyDenom     string             `json:"ibc_counterparty_denom"`
	IbcCounterpartyChainID   string             `json:"ibc_counterparty_chain_id"`
}

type RewardPeriod added in v0.13.0

type RewardPeriod struct {
	ID          string            `json:"id"`
	StartBlock  json.Number       `json:"start_block"`
	EndBlock    json.Number       `json:"end_block"`
	Allocation  string            `json:"allocation"`
	Multipliers []*PoolMultiplier `json:"multipliers"`
}

type SignerInfos

type SignerInfos []struct {
	PublicKey PublicKey `json:"public_key"`
	ModeInfo  ModeInfo  `json:"mode_info"`
	Sequence  string    `json:"sequence"`
}

type Single

type Single struct {
	Mode string `json:"mode"`
}

type Slashing

type Slashing struct {
	Params       SlashingParams `json:"params"`
	SigningInfos []interface{}  `json:"signing_infos"`
	MissedBlocks []interface{}  `json:"missed_blocks"`
}

type SlashingParams

type SlashingParams struct {
	SignedBlocksWindow      string `json:"signed_blocks_window"`
	MinSignedPerWindow      string `json:"min_signed_per_window"`
	DowntimeJailDuration    string `json:"downtime_jail_duration"`
	SlashFractionDoubleSign string `json:"slash_fraction_double_sign"`
	SlashFractionDowntime   string `json:"slash_fraction_downtime"`
}

type Staking

type Staking struct {
	Params               StakingParams `json:"params"`
	LastTotalPower       string        `json:"last_total_power"`
	LastValidatorPowers  []interface{} `json:"last_validator_powers"`
	Validators           []interface{} `json:"validators"`
	Delegations          []interface{} `json:"delegations"`
	UnbondingDelegations []interface{} `json:"unbonding_delegations"`
	Redelegations        []interface{} `json:"redelegations"`
	Exported             bool          `json:"exported"`
}

type StakingParams

type StakingParams struct {
	UnbondingTime     string      `json:"unbonding_time"`
	MaxValidators     json.Number `json:"max_validators"`
	MaxEntries        json.Number `json:"max_entries"`
	HistoricalEntries json.Number `json:"historical_entries"`
	BondDenom         string      `json:"bond_denom"`
}

type StateSync

type StateSync struct {
	SnapshotInterval   int `toml:"snapshot-interval"`
	SnapshotKeepRecent int `toml:"snapshot-keep-recent"`
}

type Statesync

type Statesync struct {
	Enable        bool   `toml:"enable"`
	RPCServers    string `toml:"rpc_servers"`
	TrustHeight   int    `toml:"trust_height"`
	TrustHash     string `toml:"trust_hash"`
	TrustPeriod   string `toml:"trust_period"`
	DiscoveryTime string `toml:"discovery_time"`
	TempDir       string `toml:"temp_dir"`
}

type Supply

type Supply []struct {
	Denom  string `json:"denom"`
	Amount string `json:"amount"`
}

type Telemetry

type Telemetry struct {
	ServiceName             string        `toml:"service-name"`
	Enabled                 bool          `toml:"enabled"`
	EnableHostname          bool          `toml:"enable-hostname"`
	EnableHostnameLabel     bool          `toml:"enable-hostname-label"`
	EnableServiceLabel      bool          `toml:"enable-service-label"`
	PrometheusRetentionTime int           `toml:"prometheus-retention-time"`
	GlobalLabels            []interface{} `toml:"global-labels"`
}

type TokenRegistry added in v0.13.0

type TokenRegistry struct {
	Registry Registry `json:"registry"`
}

type Transfer

type Transfer struct {
	PortID      string         `json:"port_id"`
	DenomTraces []interface{}  `json:"denom_traces"`
	Params      TransferParams `json:"params"`
}

type TransferParams

type TransferParams struct {
	SendEnabled    bool `json:"send_enabled"`
	ReceiveEnabled bool `json:"receive_enabled"`
}

type TxIndex

type TxIndex struct {
	IndexAllKeys bool   `toml:"index_all_keys"`
	Indexer      string `toml:"indexer"`
	IndexKeys    string `toml:"index_keys"`
}

type Validator

type Validator struct {
	PubKeyTypes []string `json:"pub_key_types"`
}

type Value

type Value struct {
	Denom  string `json:"denom"`
	Amount string `json:"amount"`
}

type Version

type Version struct{}

Jump to

Keyboard shortcuts

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