types

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_DENON           = "uhby"
	DEFAULT_CHAIN_ID        = "hobby_9000-1"
	DEFAULT_KEY_PHRASE      = "88888888"
	DEFAULT_NODE_CMD        = "hobbyd"
	DEFAULT_CONFIG_FILE     = "config.yml"
	DEFAULT_KEYRING_BACKEND = KEYRING_BACKEND_FILE
)
View Source
const (
	EXEC_CMD_WHICH = "which"
	EXEC_CMD_COPY  = "cp"
	EXEC_CMD_SHELL = "sh"
	EXEC_CMD_MKDIR = "mkdir"
)
View Source
const (
	COMMAND_NAME_EXPECT  = "expect"
	COMMAND_NAME_YUM     = "yum"
	COMMAND_NAME_APT_GET = "apt-get"
)
View Source
const (
	COSMOS_P2P_PORT      = "26656"
	COSMOS_RPC_PORT      = "26657"
	COSMOS_GRPC_PORT     = "9090"
	COSMOS_GRPC_WEB_PORT = "9091"
)
View Source
const (
	EXPORT_KEY_FILE      = "/tmp/account.key"
	KEYRING_BACKEND_TEST = "test"
	KEYRING_BACKEND_FILE = "file"
)
View Source
const (
	FILE_NAME_APP     = "app.toml"
	FILE_NAME_CONFIG  = "config.toml"
	FILE_NAME_GENESIS = "genesis.json"
	CONFIG_SUBPATH    = "config"
)
View Source
const (
	EXEC_SHELL_ARG = "-c"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	AppDbBackend        string        `toml:"app-db-backend"`
	HaltHeight          int           `toml:"halt-height"`
	HaltTime            int           `toml:"halt-time"`
	IavlCacheSize       int           `toml:"iavl-cache-size"`
	IavlDisableFastnode bool          `toml:"iavl-disable-fastnode"`
	IavlLazyLoading     bool          `toml:"iavl-lazy-loading"`
	IndexEvents         []interface{} `toml:"index-events"`
	InterBlockCache     bool          `toml:"inter-block-cache"`
	MinRetainBlocks     int           `toml:"min-retain-blocks"`
	MinimumGasPrices    string        `toml:"minimum-gas-prices"`
	Pruning             string        `toml:"pruning"`
	PruningInterval     string        `toml:"pruning-interval"`
	PruningKeepRecent   string        `toml:"pruning-keep-recent"`
	API                 struct {
		Address            string `toml:"address"`
		Enable             bool   `toml:"enable"`
		EnabledUnsafeCors  bool   `toml:"enabled-unsafe-cors"`
		MaxOpenConnections int    `toml:"max-open-connections"`
		RPCMaxBodyBytes    int    `toml:"rpc-max-body-bytes"`
		RPCReadTimeout     int    `toml:"rpc-read-timeout"`
		RPCWriteTimeout    int    `toml:"rpc-write-timeout"`
		Swagger            bool   `toml:"swagger"`
	} `toml:"api"`
	Grpc struct {
		Address        string `toml:"address"`
		Enable         bool   `toml:"enable"`
		MaxRecvMsgSize string `toml:"max-recv-msg-size"`
		MaxSendMsgSize string `toml:"max-send-msg-size"`
	} `toml:"grpc"`
	GrpcWeb struct {
		Address          string `toml:"address"`
		Enable           bool   `toml:"enable"`
		EnableUnsafeCors bool   `toml:"enable-unsafe-cors"`
	} `toml:"grpc-web"`
	Mempool struct {
		MaxTxs string `toml:"max-txs"`
	} `toml:"mempool"`
	Rosetta struct {
		Address             string `toml:"address"`
		Blockchain          string `toml:"blockchain"`
		DenomToSuggest      string `toml:"denom-to-suggest"`
		Enable              bool   `toml:"enable"`
		EnableFeeSuggestion bool   `toml:"enable-fee-suggestion"`
		GasToSuggest        int    `toml:"gas-to-suggest"`
		Network             string `toml:"network"`
		Offline             bool   `toml:"offline"`
		Retries             int    `toml:"retries"`
	} `toml:"rosetta"`
	RPC struct {
		CorsAllowedOrigins []string `toml:"cors_allowed_origins"`
	} `toml:"rpc"`
	StateSync struct {
		SnapshotInterval   int `toml:"snapshot-interval"`
		SnapshotKeepRecent int `toml:"snapshot-keep-recent"`
	} `toml:"state-sync"`
	Store struct {
		Streamers []interface{} `toml:"streamers"`
	} `toml:"store"`
	Streamers struct {
		File struct {
			Fsync           string   `toml:"fsync"`
			Keys            []string `toml:"keys"`
			OutputMetadata  string   `toml:"output-metadata"`
			Prefix          string   `toml:"prefix"`
			StopNodeOnError string   `toml:"stop-node-on-error"`
			WriteDir        string   `toml:"write_dir"`
		} `toml:"file"`
	} `toml:"streamers"`
	Telemetry struct {
		EnableHostname          bool     `toml:"enable-hostname"`
		EnableHostnameLabel     bool     `toml:"enable-hostname-label"`
		EnableServiceLabel      bool     `toml:"enable-service-label"`
		Enabled                 bool     `toml:"enabled"`
		GlobalLabels            []string `toml:"global-labels"`
		PrometheusRetentionTime int      `toml:"prometheus-retention-time"`
		ServiceName             string   `toml:"service-name"`
	} `toml:"telemetry"`
}

type ClientConfig

type ClientConfig struct {
	BroadcastMode  string `toml:"broadcast-mode"`
	ChainID        string `toml:"chain-id"`
	KeyringBackend string `toml:"keyring-backend"`
	Node           string `toml:"node"`
	Output         string `toml:"output"`
}

type CosmosConfig

type CosmosConfig struct {
	ProxyApp               string `toml:"proxy_app"`
	Moniker                string `toml:"moniker"`
	BlockSync              bool   `toml:"block_sync"`
	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"`
	FilterPeers            bool   `toml:"filter_peers"`
	RPC                    struct {
		Laddr                                string   `toml:"laddr"`
		CorsAllowedOrigins                   []string `toml:"cors_allowed_origins"`
		CorsAllowedMethods                   []string `toml:"cors_allowed_methods"`
		CorsAllowedHeaders                   []string `toml:"cors_allowed_headers"`
		GrpcLaddr                            string   `toml:"grpc_laddr"`
		GrpcMaxOpenConnections               int      `toml:"grpc_max_open_connections"`
		Unsafe                               bool     `toml:"unsafe"`
		MaxOpenConnections                   int      `toml:"max_open_connections"`
		MaxSubscriptionClients               int      `toml:"max_subscription_clients"`
		MaxSubscriptionsPerClient            int      `toml:"max_subscriptions_per_client"`
		ExperimentalSubscriptionBufferSize   int      `toml:"experimental_subscription_buffer_size"`
		ExperimentalWebsocketWriteBufferSize int      `toml:"experimental_websocket_write_buffer_size"`
		ExperimentalCloseOnSlowClient        bool     `toml:"experimental_close_on_slow_client"`
		TimeoutBroadcastTxCommit             string   `toml:"timeout_broadcast_tx_commit"`
		MaxBodyBytes                         int      `toml:"max_body_bytes"`
		MaxHeaderBytes                       int      `toml:"max_header_bytes"`
		TLSCertFile                          string   `toml:"tls_cert_file"`
		TLSKeyFile                           string   `toml:"tls_key_file"`
		PprofLaddr                           string   `toml:"pprof_laddr"`
	} `toml:"rpc"`
	P2P struct {
		Laddr                        string `toml:"laddr"`
		ExternalAddress              string `toml:"external_address"`
		Seeds                        string `toml:"seeds"`
		PersistentPeers              string `toml:"persistent_peers"`
		Upnp                         bool   `toml:"upnp"`
		AddrBookFile                 string `toml:"addr_book_file"`
		AddrBookStrict               bool   `toml:"addr_book_strict"`
		MaxNumInboundPeers           int    `toml:"max_num_inbound_peers"`
		MaxNumOutboundPeers          int    `toml:"max_num_outbound_peers"`
		UnconditionalPeerIds         string `toml:"unconditional_peer_ids"`
		PersistentPeersMaxDialPeriod string `toml:"persistent_peers_max_dial_period"`
		FlushThrottleTimeout         string `toml:"flush_throttle_timeout"`
		MaxPacketMsgPayloadSize      int    `toml:"max_packet_msg_payload_size"`
		SendRate                     int    `toml:"send_rate"`
		RecvRate                     int    `toml:"recv_rate"`
		Pex                          bool   `toml:"pex"`
		SeedMode                     bool   `toml:"seed_mode"`
		PrivatePeerIds               string `toml:"private_peer_ids"`
		AllowDuplicateIP             bool   `toml:"allow_duplicate_ip"`
		HandshakeTimeout             string `toml:"handshake_timeout"`
		DialTimeout                  string `toml:"dial_timeout"`
	} `toml:"p2p"`
	Mempool struct {
		Version               string `toml:"version"`
		Recheck               bool   `toml:"recheck"`
		Broadcast             bool   `toml:"broadcast"`
		WalDir                string `toml:"wal_dir"`
		Size                  int    `toml:"size"`
		MaxTxsBytes           int    `toml:"max_txs_bytes"`
		CacheSize             int    `toml:"cache_size"`
		KeepInvalidTxsInCache bool   `toml:"keep-invalid-txs-in-cache"`
		MaxTxBytes            int    `toml:"max_tx_bytes"`
		MaxBatchBytes         int    `toml:"max_batch_bytes"`
		TTLDuration           string `toml:"ttl-duration"`
		TTLNumBlocks          int    `toml:"ttl-num-blocks"`
	} `toml:"mempool"`
	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"`
		ChunkRequestTimeout string `toml:"chunk_request_timeout"`
		ChunkFetchers       string `toml:"chunk_fetchers"`
	} `toml:"statesync"`
	Blocksync struct {
		Version string `toml:"version"`
	} `toml:"blocksync"`
	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"`
	} `toml:"consensus"`
	Storage struct {
		DiscardAbciResponses bool `toml:"discard_abci_responses"`
	} `toml:"storage"`
	TxIndex struct {
		Indexer  string `toml:"indexer"`
		PsqlConn string `toml:"psql-conn"`
	} `toml:"tx_index"`
	Instrumentation struct {
		Prometheus           bool   `toml:"prometheus"`
		PrometheusListenAddr string `toml:"prometheus_listen_addr"`
		MaxOpenConnections   int    `toml:"max_open_connections"`
		Namespace            string `toml:"namespace"`
	} `toml:"instrumentation"`
}

type GenesisConfig

type GenesisConfig struct {
	GenesisTime     time.Time `json:"genesis_time"`
	ChainId         string    `json:"chain_id"`
	InitialHeight   string    `json:"initial_height"`
	ConsensusParams struct {
		Block struct {
			MaxBytes string `json:"max_bytes"`
			MaxGas   string `json:"max_gas"`
		} `json:"block"`
		Evidence struct {
			MaxAgeNumBlocks string `json:"max_age_num_blocks"`
			MaxAgeDuration  string `json:"max_age_duration"`
			MaxBytes        string `json:"max_bytes"`
		} `json:"evidence"`
		Validator struct {
			PubKeyTypes []string `json:"pub_key_types"`
		} `json:"validator"`
		Version struct {
			App string `json:"app"`
		} `json:"version"`
	} `json:"consensus_params"`
	AppHash  string `json:"app_hash"`
	AppState struct {
		Solomachine string `json:"06-solomachine"`
		Tendermint  string `json:"07-tendermint"`
		Auth        struct {
			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"`
			} `json:"params"`
			Accounts []struct {
				Type          string `json:"@type"`
				Address       string `json:"address"`
				PubKey        string `json:"pub_key"`
				AccountNumber string `json:"account_number"`
				Sequence      string `json:"sequence"`
			} `json:"accounts"`
		} `json:"auth"`
		Authz struct {
			Authorization []interface{} `json:"authorization"`
		} `json:"authz"`
		Claims struct {
			ClaimsRecords []interface{} `json:"claims_records" yaml:"claims_records"`
			Params        struct {
				AirdropStartTime   time.Time `json:"airdrop_start_time" yaml:"airdrop_start_time"`
				AuthorizedChannels []string  `json:"authorized_channels" yaml:"authorized_channels"`
				ClaimsDenom        string    `json:"claims_denom" yaml:"claims_denom"`
				DurationOfDecay    string    `json:"duration_of_decay" yaml:"duration_of_decay"`
				DurationUntilDecay string    `json:"duration_until_decay" yaml:"duration_until_decay"`
				EnableClaims       bool      `json:"enable_claims" yaml:"enable_claims"`
				EvmChannels        []string  `json:"evm_channels" yaml:"evm_channels"`
			} `json:"params" yaml:"params"`
		} `json:"claims" yaml:"claims"`
		Evm struct {
			Accounts []interface{} `json:"accounts"`
			Params   struct {
				ActivePrecompiles   []string `json:"active_precompiles" yaml:"active_precompiles"`
				AllowUnprotectedTxs bool     `json:"allow_unprotected_txs" yaml:"allow_unprotected"`
				ChainConfig         struct {
					ArrowGlacierBlock   string `json:"arrow_glacier_block" yaml:"arrow_glacier_block"`
					BerlinBlock         string `json:"berlin_block" yaml:"berlin_block"`
					ByzantiumBlock      string `json:"byzantium_block" yaml:"byzantium_block"`
					CancunBlock         string `json:"cancun_block" yaml:"cancun_block"`
					ConstantinopleBlock string `json:"constantinople_block" yaml:"constantinople_block"`
					DaoForkBlock        string `json:"dao_fork_block" yaml:"dao_fork_block"`
					DaoForkSupport      bool   `json:"dao_fork_support" yaml:"dao_fork_support"`
					Eip150Block         string `json:"eip150_block" yaml:"eip_150_block"`
					Eip150Hash          string `json:"eip150_hash" yaml:"eip_150_hash"`
					Eip155Block         string `json:"eip155_block" yaml:"eip_155_block"`
					Eip158Block         string `json:"eip158_block" yaml:"eip_158_block"`
					GrayGlacierBlock    string `json:"gray_glacier_block" yaml:"gray_glacier_block"`
					HomesteadBlock      string `json:"homestead_block" yaml:"homestead_block"`
					IstanbulBlock       string `json:"istanbul_block" yaml:"istanbul_block"`
					LondonBlock         string `json:"london_block" yaml:"london_block"`
					MergeNetsplitBlock  string `json:"merge_netsplit_block" yaml:"merge_netsplit_block"`
					MuirGlacierBlock    string `json:"muir_glacier_block" yaml:"muir_glacier_block"`
					PetersburgBlock     string `json:"petersburg_block" yaml:"petersburg_block"`
					ShanghaiBlock       string `json:"shanghai_block" yaml:"shanghai_block"`
				} `json:"chain_config"`
				EnableCall   bool     `json:"enable_call" yaml:"enable_call"`
				EnableCreate bool     `json:"enable_create" yaml:"enable_create"`
				EvmDenom     string   `json:"evm_denom" yaml:"evm_denom"`
				ExtraEips    []string `json:"extra_eips" yaml:"extra_eips"`
			} `json:"params"`
		} `json:"evm"`

		Feemarket struct {
			BlockGas string `json:"block_gas" yaml:"block_gas"`
			Params   struct {
				BaseFee                  string `json:"base_fee" yaml:"base_fee"`
				BaseFeeChangeDenominator int    `json:"base_fee_change_denominator" yaml:"base_fee_change_denominator"`
				ElasticityMultiplier     int    `json:"elasticity_multiplier" yaml:"elasticity_multiplier"`
				EnableHeight             string `json:"enable_height" yaml:"enable_height"`
				MinGasMultiplier         string `json:"min_gas_multiplier" yaml:"min_gas_multiplier"`
				MinGasPrice              string `json:"min_gas_price" yaml:"min_gas_price"`
				NoBaseFee                bool   `json:"no_base_fee" yaml:"no_base_fee"`
			} `json:"params" yaml:"params"`
		} `json:"feemarket" yaml:"feemarket"`
		Bank struct {
			Params struct {
				SendEnabled        []bank.SendEnabled `json:"send_enabled"`
				DefaultSendEnabled bool               `json:"default_send_enabled"`
			} `json:"params"`
			Balances []struct {
				Address string `json:"address"`
				Coins   []struct {
					Denom  string `json:"denom"`
					Amount string `json:"amount"`
				} `json:"coins"`
			} `json:"balances"`
			Supply        []sdk.Coin         `json:"supply"`
			DenomMetadata []bank.Metadata    `json:"denom_metadata"`
			SendEnabled   []bank.SendEnabled `json:"send_enabled"`
		} `json:"bank"`
		Capability struct {
			Index  string        `json:"index"`
			Owners []interface{} `json:"owners"`
		} `json:"capability"`
		Consensus interface{} `json:"consensus"`
		Crisis    struct {
			ConstantFee struct {
				Amount string `json:"amount"`
				Denom  string `json:"denom"`
			} `json:"constant_fee"`
		} `json:"crisis"`
		Distribution struct {
			DelegatorStartingInfos []dist.DelegatorStartingInfoRecord `json:"delegator_starting_infos"`
			DelegatorWithdrawInfos []dist.DelegatorWithdrawInfo       `json:"delegator_withdraw_infos"`
			FeePool                struct {
				CommunityPool []dist.FeePool `json:"community_pool"`
			} `json:"fee_pool"`
			OutstandingRewards []sdk.DecCoins `json:"outstanding_rewards"`
			Params             struct {
				BaseProposerReward  string `json:"base_proposer_reward"`
				BonusProposerReward string `json:"bonus_proposer_reward"`
				CommunityTax        string `json:"community_tax"`
				WithdrawAddrEnabled bool   `json:"withdraw_addr_enabled"`
			} `json:"params"`
			PreviousProposer                string                                  `json:"previous_proposer"`
			ValidatorAccumulatedCommissions []dist.ValidatorAccumulatedCommission   `json:"validator_accumulated_commissions"`
			ValidatorCurrentRewards         []dist.ValidatorCurrentRewardsRecord    `json:"validator_current_rewards"`
			ValidatorHistoricalRewards      []dist.ValidatorHistoricalRewardsRecord `json:"validator_historical_rewards"`
			ValidatorSlashEvents            []dist.ValidatorSlashEvent              `json:"validator_slash_events"`
		} `json:"distribution"`
		Evidence struct {
			Evidence []interface{} `json:"evidence"`
		} `json:"evidence"`
		Feegrant struct {
			Allowances []interface{} `json:"allowances"`
		} `json:"feegrant"`
		Genutil struct {
			GenTxs []struct {
				Body struct {
					Messages []struct {
						Type        string `json:"@type"`
						Description struct {
							Moniker         string `json:"moniker"`
							Identity        string `json:"identity"`
							Website         string `json:"website"`
							SecurityContact string `json:"security_contact"`
							Details         string `json:"details"`
						} `json:"description"`
						Commission struct {
							Rate          string `json:"rate"`
							MaxRate       string `json:"max_rate"`
							MaxChangeRate string `json:"max_change_rate"`
						} `json:"commission"`
						MinSelfDelegation string `json:"min_self_delegation"`
						DelegatorAddress  string `json:"delegator_address"`
						ValidatorAddress  string `json:"validator_address"`
						Pubkey            struct {
							Type string `json:"@type"`
							Key  string `json:"key"`
						} `json:"pubkey"`
						Value struct {
							Denom  string `json:"denom"`
							Amount string `json:"amount"`
						} `json:"value"`
					} `json:"messages"`
					Memo                        string        `json:"memo"`
					TimeoutHeight               string        `json:"timeout_height"`
					ExtensionOptions            []interface{} `json:"extension_options"`
					NonCriticalExtensionOptions []interface{} `json:"non_critical_extension_options"`
				} `json:"body"`
				AuthInfo struct {
					SignerInfos []struct {
						PublicKey struct {
							Type string `json:"@type"`
							Key  string `json:"key"`
						} `json:"public_key"`
						ModeInfo struct {
							Single struct {
								Mode string `json:"mode"`
							} `json:"single"`
						} `json:"mode_info"`
						Sequence string `json:"sequence"`
					} `json:"signer_infos"`
					Fee struct {
						Amount   []interface{} `json:"amount"`
						GasLimit string        `json:"gas_limit"`
						Payer    string        `json:"payer"`
						Granter  string        `json:"granter"`
					} `json:"fee"`
					Tip interface{} `json:"tip"`
				} `json:"auth_info"`
				Signatures []string `json:"signatures"`
			} `json:"gen_txs"`
		} `json:"genutil"`
		Gov struct {
			DepositParams interface{}   `json:"deposit_params"`
			Deposits      []interface{} `json:"deposits"`
			Params        struct {
				BurnProposalDepositPrevote bool   `json:"burn_proposal_deposit_prevote"`
				BurnVoteQuorum             bool   `json:"burn_vote_quorum"`
				BurnVoteVeto               bool   `json:"burn_vote_veto"`
				MaxDepositPeriod           string `json:"max_deposit_period"`
				MinDeposit                 []struct {
					Amount string `json:"amount"`
					Denom  string `json:"denom"`
				} `json:"min_deposit"`
				MinInitialDepositRatio string `json:"min_initial_deposit_ratio"`
				Quorum                 string `json:"quorum"`
				Threshold              string `json:"threshold"`
				VetoThreshold          string `json:"veto_threshold"`
				VotingPeriod           string `json:"voting_period"`
			} `json:"params"`
			Proposals          []interface{} `json:"proposals"`
			StartingProposalId string        `json:"starting_proposal_id"`
			TallyParams        interface{}   `json:"tally_params"`
			Votes              []interface{} `json:"votes"`
			VotingParams       interface{}   `json:"voting_params"`
		} `json:"gov"`
		Group struct {
			GroupMembers   []interface{} `json:"group_members"`
			GroupPolicies  []interface{} `json:"group_policies"`
			GroupPolicySeq string        `json:"group_policy_seq"`
			GroupSeq       string        `json:"group_seq"`
			Groups         []interface{} `json:"groups"`
			ProposalSeq    string        `json:"proposal_seq"`
			Proposals      []interface{} `json:"proposals"`
			Votes          []interface{} `json:"votes"`
		} `json:"group"`
		Ibc struct {
			ChannelGenesis struct {
				AckSequences        []interface{} `json:"ack_sequences"`
				Acknowledgements    []interface{} `json:"acknowledgements"`
				Channels            []interface{} `json:"channels"`
				Commitments         []interface{} `json:"commitments"`
				NextChannelSequence string        `json:"next_channel_sequence"`
				Receipts            []interface{} `json:"receipts"`
				RecvSequences       []interface{} `json:"recv_sequences"`
				SendSequences       []interface{} `json:"send_sequences"`
			} `json:"channel_genesis"`
			ClientGenesis struct {
				Clients            []interface{} `json:"clients"`
				ClientsConsensus   []interface{} `json:"clients_consensus"`
				ClientsMetadata    []interface{} `json:"clients_metadata"`
				CreateLocalhost    bool          `json:"create_localhost"`
				NextClientSequence string        `json:"next_client_sequence"`
				Params             struct {
					AllowedClients []string `json:"allowed_clients"`
				} `json:"params"`
			} `json:"client_genesis"`
			ConnectionGenesis struct {
				ClientConnectionPaths  []interface{} `json:"client_connection_paths"`
				Connections            []interface{} `json:"connections"`
				NextConnectionSequence string        `json:"next_connection_sequence"`
				Params                 struct {
					MaxExpectedTimePerBlock string `json:"max_expected_time_per_block"`
				} `json:"params"`
			} `json:"connection_genesis"`
		} `json:"ibc"`
		Interchainaccounts struct {
			ControllerGenesisState struct {
				ActiveChannels     []interface{} `json:"active_channels"`
				InterchainAccounts []interface{} `json:"interchain_accounts"`
				Params             struct {
					ControllerEnabled bool `json:"controller_enabled"`
				} `json:"params"`
				Ports []interface{} `json:"ports"`
			} `json:"controller_genesis_state"`
			HostGenesisState struct {
				ActiveChannels     []interface{} `json:"active_channels"`
				InterchainAccounts []interface{} `json:"interchain_accounts"`
				Params             struct {
					AllowMessages []string `json:"allow_messages"`
					HostEnabled   bool     `json:"host_enabled"`
				} `json:"params"`
				Port string `json:"port"`
			} `json:"host_genesis_state"`
		} `json:"interchainaccounts"`
		Mint struct {
			Minter struct {
				AnnualProvisions string `json:"annual_provisions"`
				Inflation        string `json:"inflation"`
			} `json:"minter"`
			Params struct {
				BlocksPerYear       string `json:"blocks_per_year"`
				GoalBonded          string `json:"goal_bonded"`
				InflationMax        string `json:"inflation_max"`
				InflationMin        string `json:"inflation_min"`
				InflationRateChange string `json:"inflation_rate_change"`
				MintDenom           string `json:"mint_denom"`
				Reduction           struct {
					Enable          bool     `json:"enable"`
					TotalProvisions string   `json:"total_provisions"`
					Heights         []uint64 `json:"heights"`
				} `json:"reduction"`
			} `json:"params"`
		} `json:"mint"`
		Params   interface{} `json:"params"`
		Slashing struct {
			MissedBlocks []interface{} `json:"missed_blocks"`
			Params       struct {
				DowntimeJailDuration    string `json:"downtime_jail_duration"`
				MinSignedPerWindow      string `json:"min_signed_per_window"`
				SignedBlocksWindow      string `json:"signed_blocks_window"`
				SlashFractionDoubleSign string `json:"slash_fraction_double_sign"`
				SlashFractionDowntime   string `json:"slash_fraction_downtime"`
			} `json:"params"`
			SigningInfos []interface{} `json:"signing_infos"`
		} `json:"slashing"`
		Staking struct {
			Delegations         []interface{} `json:"delegations"`
			Exported            bool          `json:"exported"`
			LastTotalPower      string        `json:"last_total_power"`
			LastValidatorPowers []interface{} `json:"last_validator_powers"`
			Params              struct {
				BondDenom         string `json:"bond_denom"`
				HistoricalEntries int64  `json:"historical_entries"`
				MaxEntries        int64  `json:"max_entries"`
				MaxValidators     string `json:"max_validators"`
				MinCommissionRate string `json:"min_commission_rate"`
				UnbondingTime     string `json:"unbonding_time"`
			} `json:"params"`
			Redelegations        []interface{} `json:"redelegations"`
			UnbondingDelegations []interface{} `json:"unbonding_delegations"`
			Validators           []interface{} `json:"validators"`
		} `json:"staking"`
		Transfer struct {
			DenomTraces []interface{} `json:"denom_traces"`
			Params      struct {
				ReceiveEnabled bool `json:"receive_enabled"`
				SendEnabled    bool `json:"send_enabled"`
			} `json:"params"`
			PortId        string        `json:"port_id"`
			TotalEscrowed []interface{} `json:"total_escrowed"`
		} `json:"transfer"`
		Upgrade struct {
		} `json:"upgrade"`
		Vesting struct {
		} `json:"vesting"`
	} `json:"app_state"`
}

type IgniteConfig

type IgniteConfig struct {
	Version  int `yaml:"version" json:"version"`
	Accounts []struct {
		Name  string   `yaml:"name" json:"name,omitempty"`
		Coins []string `yaml:"coins" json:"coins,omitempty"`
	} `yaml:"accounts" json:"accounts"`
	Client struct {
		Openapi struct {
			Path string `yaml:"path" json:"path,omitempty"`
		} `yaml:"openapi" json:"openapi"`
	} `yaml:"client" json:"client"`
	Validators []struct {
		Name   string `yaml:"name" json:"name"`
		Bonded string `yaml:"bonded" json:"bonded"`
		Home   string `yaml:"home" json:"home"`
		IP     string `yaml:"ip" json:"ip"`
		App    struct {
			MinimumGasPrices string `yaml:"minimum-gas-prices" json:"minimum-gas-prices"`
			API              struct {
				Enable            bool   `yaml:"enable" json:"enable,omitempty"`
				EnabledUnsafeCors bool   `yaml:"enabled-unsafe-cors" json:"enabled-unsafe-cors,omitempty"`
				Address           string `yaml:"address" json:"address,omitempty"`
			} `yaml:"api"`
			Grpc struct {
				Enable  bool   `yaml:"enable" json:"enable,omitempty"`
				Address string `yaml:"address" json:"address,omitempty"`
			} `yaml:"grpc"`
			GrpcWeb struct {
				Address          string `yaml:"address" json:"address,omitempty"`
				Enable           bool   `yaml:"enable" json:"enable,omitempty"`
				EnableUnsafeCors bool   `yaml:"enable-unsafe-cors" json:"enable-unsafe-cors,omitempty"`
			} `yaml:"grpc-web" json:"grpc-web"`
		} `yaml:"app" json:"app"`
		Config struct {
			Consensus struct {
				TimeoutCommit string `yaml:"timeout_commit" json:"timeout_commit,omitempty"`
			} `yaml:"consensus" json:"consensus"`
			ProxyApp string `yaml:"proxy_app" json:"proxy_app"`
			Moniker  string `yaml:"moniker" json:"moniker"`
			RPC      struct {
				MaxBodyBytes string `yaml:"max_body_bytes" json:"max_body_bytes"`
				Laddr        string `yaml:"laddr" json:"laddr,omitempty"`
			} `yaml:"rpc" json:"rpc"`
			P2P struct {
				Laddr            string `yaml:"laddr" json:"laddr,omitempty"`
				PersistentPeers  string `yaml:"persistent_peers" json:"persistent_peers,omitempty"`
				AllowDuplicateIP bool   `yaml:"allow_duplicate_ip" json:"allow_duplicate_ip,omitempty"`
			} `yaml:"p2p" json:"p2p"`
			Instrumentation struct {
				Prometheus           bool   `yaml:"prometheus" json:"prometheus"`
				PrometheusListenAddr string `yaml:"prometheus_listen_addr" json:"prometheus_listen_addr"`
			} `yaml:"instrumentation" json:"instrumentation"`
		} `yaml:"config" json:"config"`
	} `yaml:"validators" json:"validators"`
	Genesis struct {
		ChainID         string `yaml:"chain_id" json:"chain_id""`
		InitialHeight   string `yaml:"initial_height" json:"initial_height"`
		GenesisTime     string `yaml:"genesis_time" json:"genesis_time"`
		ConsensusParams struct {
			Block struct {
				MaxBytes string `yaml:"max_bytes" json:"max_bytes"`
				MaxGas   string `yaml:"max_gas" json:"max_gas"`
			} `yaml:"block" json:"block"`
			Evidence struct {
				MaxAgeNumBlocks string `yaml:"max_age_num_blocks" json:"max_age_num_blocks"`
				MaxAgeDuration  string `yaml:"max_age_duration" json:"max_age_duration"`
				MaxBytes        string `yaml:"max_bytes" json:"max_bytes"`
			} `yaml:"evidence" json:"evidence"`
			Validator struct {
				PubKeyTypes []string `yaml:"pub_key_types" json:"pub_key_types"`
			} `yaml:"validator" json:"validator"`
			Version struct {
				App string `yaml:"app" json:"app"`
			} `yaml:"version" json:"version"`
		} `yaml:"consensus_params" json:"consensus_params"`
		AppState struct {
			Claims struct {
				ClaimsRecords []interface{} `json:"claims_records" yaml:"claims_records"`
				Params        struct {
					AirdropStartTime   time.Time `json:"airdrop_start_time" yaml:"airdrop_start_time"`
					AuthorizedChannels []string  `json:"authorized_channels" yaml:"authorized_channels"`
					ClaimsDenom        string    `json:"claims_denom" yaml:"claims_denom"`
					DurationOfDecay    string    `json:"duration_of_decay" yaml:"duration_of_decay"`
					DurationUntilDecay string    `json:"duration_until_decay" yaml:"duration_until_decay"`
					EnableClaims       bool      `json:"enable_claims" yaml:"enable_claims"`
					EvmChannels        []string  `json:"evm_channels" yaml:"evm_channels"`
				} `json:"params" yaml:"params"`
			} `json:"claims" yaml:"claims"`
			Evm struct {
				Accounts []interface{} `json:"accounts"`
				Params   struct {
					ActivePrecompiles   []string `json:"active_precompiles" yaml:"active_precompiles"`
					AllowUnprotectedTxs bool     `json:"allow_unprotected_txs" yaml:"allow_unprotected"`
					ChainConfig         struct {
						ArrowGlacierBlock   string `json:"arrow_glacier_block" yaml:"arrow_glacier_block"`
						BerlinBlock         string `json:"berlin_block" yaml:"berlin_block"`
						ByzantiumBlock      string `json:"byzantium_block" yaml:"byzantium_block"`
						CancunBlock         string `json:"cancun_block" yaml:"cancun_block"`
						ConstantinopleBlock string `json:"constantinople_block" yaml:"constantinople_block"`
						DaoForkBlock        string `json:"dao_fork_block" yaml:"dao_fork_block"`
						DaoForkSupport      bool   `json:"dao_fork_support" yaml:"dao_fork_support"`
						Eip150Block         string `json:"eip150_block" yaml:"eip_150_block"`
						Eip150Hash          string `json:"eip150_hash" yaml:"eip_150_hash"`
						Eip155Block         string `json:"eip155_block" yaml:"eip_155_block"`
						Eip158Block         string `json:"eip158_block" yaml:"eip_158_block"`
						GrayGlacierBlock    string `json:"gray_glacier_block" yaml:"gray_glacier_block"`
						HomesteadBlock      string `json:"homestead_block" yaml:"homestead_block"`
						IstanbulBlock       string `json:"istanbul_block" yaml:"istanbul_block"`
						LondonBlock         string `json:"london_block" yaml:"london_block"`
						MergeNetsplitBlock  string `json:"merge_netsplit_block" yaml:"merge_netsplit_block"`
						MuirGlacierBlock    string `json:"muir_glacier_block" yaml:"muir_glacier_block"`
						PetersburgBlock     string `json:"petersburg_block" yaml:"petersburg_block"`
						ShanghaiBlock       string `json:"shanghai_block" yaml:"shanghai_block"`
					} `json:"chain_config"`
					EnableCall   bool     `json:"enable_call" yaml:"enable_call"`
					EnableCreate bool     `json:"enable_create" yaml:"enable_create"`
					EvmDenom     string   `json:"evm_denom" yaml:"evm_denom"`
					ExtraEips    []string `json:"extra_eips" yaml:"extra_eips"`
				} `json:"params"`
			} `json:"evm"`

			Feemarket struct {
				BlockGas string `json:"block_gas" yaml:"block_gas"`
				Params   struct {
					BaseFee                  string `json:"base_fee" yaml:"base_fee"`
					BaseFeeChangeDenominator int    `json:"base_fee_change_denominator" yaml:"base_fee_change_denominator"`
					ElasticityMultiplier     int    `json:"elasticity_multiplier" yaml:"elasticity_multiplier"`
					EnableHeight             string `json:"enable_height" yaml:"enable_height"`
					MinGasMultiplier         string `json:"min_gas_multiplier" yaml:"min_gas_multiplier"`
					MinGasPrice              string `json:"min_gas_price" yaml:"min_gas_price"`
					NoBaseFee                bool   `json:"no_base_fee" yaml:"no_base_fee"`
				} `json:"params" yaml:"params"`
			} `json:"feemarket" yaml:"feemarket"`

			Bank struct {
				DenomMetadata []struct {
					Description string `yaml:"description" json:"description,omitempty"`
					Base        string `yaml:"base" json:"base,omitempty"`
					Display     string `yaml:"display" json:"display,omitempty"`
					Name        string `yaml:"name" json:"name,omitempty"`
					Symbol      string `yaml:"symbol" json:"symbol,omitempty"`
					URI         string `yaml:"uri" json:"uri,omitempty"`
					DenomUnits  []struct {
						Aliases  []interface{} `yaml:"aliases" json:"aliases,omitempty"`
						Denom    string        `yaml:"denom" json:"denom,omitempty"`
						Exponent int           `yaml:"exponent" json:"exponent,omitempty"`
					} `yaml:"denom_units" json:"denom_units,omitempty"`
				} `yaml:"denom_metadata" json:"denom_metadata"`
			} `yaml:"bank" json:"bank"`
			Staking struct {
				Params struct {
					BondDenom     string `yaml:"bond_denom" json:"bond_denom,omitempty"`
					MaxValidators string `yaml:"max_validators" json:"max_validators,omitempty"`
				} `yaml:"params" json:"params"`
			} `yaml:"staking" json:"staking"`
			Mint struct {
				Minter struct {
					AnnualProvisions string ` yaml:"annual_provisions" json:"annual_provisions,omitempty"`
					Inflation        string `yaml:"inflation" json:"inflation,omitempty"`
				} `yaml:"minter" json:"minter"`
				Params struct {
					MintDenom           string `yaml:"mint_denom" json:"mint_denom,omitempty"`
					BlocksPerYear       string `yaml:"blocks_per_year" json:"blocks_per_year"`
					GoalBonded          string `yaml:"goal_bonded" json:"goal_bonded"`
					InflationMax        string `yaml:"inflation_max" json:"inflation_max"`
					InflationMin        string `yaml:"inflation_min" json:"inflation_min"`
					InflationRateChange string `yaml:"inflation_rate_change" json:"inflation_rate_change"`
					Reduction           struct {
						Enable          bool     `yaml:"enable" json:"enable"`
						TotalProvisions string   `yaml:"total_provisions" json:"total_provisions"`
						Heights         []uint64 `yaml:"heights" json:"heights"`
					} `yaml:"reduction" json:"reduction"`
				} `yaml:"params" json:"params"`
			} `yaml:"mint" json:"mint"`
			Gov struct {
				Params struct {
					MinDeposit []struct {
						Amount string `yaml:"amount" json:"amount" `
						Denom  string `yaml:"denom" json:"denom" `
					} `yaml:"min_deposit" json:"min_deposit"`
				} `yaml:"params" json:"params"`
			} `yaml:"gov" json:"gov"`
			Distribution struct {
				Params struct {
					BaseProposerReward  string ` yaml:"base_proposer_reward" json:"base_proposer_reward,omitempty"`
					BonusProposerReward string `yaml:"bonus_proposer_reward" json:"bonus_proposer_reward,omitempty"`
					CommunityTax        string `yaml:"community_tax" json:"community_tax,omitempty"`
					WithdrawAddrEnabled bool   `yaml:"withdraw_addr_enabled" json:"withdraw_addr_enabled,omitempty"`
				} `yaml:"params" json:"params"`
			} `yaml:"distribution" json:"distribution"`
			Crisis struct {
				ConstantFee struct {
					Amount string `yaml:"amount" json:"amount,omitempty"`
					Denom  string `yaml:"denom" json:"denom,omitempty"`
				} `yaml:"constant_fee" json:"constant_fee"`
			} `yaml:"crisis" json:"crisis"`
		} `yaml:"app_state" json:"app_state"`
	} `yaml:"genesis" json:"genesis"`
}

func (IgniteConfig) GetAccountBalances

func (m IgniteConfig) GetAccountBalances(name string) string

func (IgniteConfig) GetValidatorHost

func (m IgniteConfig) GetValidatorHost(strValidatorName string) string

type NodePeer added in v0.3.0

type NodePeer struct {
	Name            string
	Peer            string
	PersistentPeers []string
}

type Option added in v0.3.0

type Option struct {
	Debug          bool   // debug mode on
	ConfigPath     string // config file path
	NodeCmd        string // chain node command
	DefaultDenom   string // default denom
	ChainID        string // chain id
	KeyPhrase      string // pass phrase to protect keys
	KeyringBackend string // keyring backend
}

Jump to

Keyboard shortcuts

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