genesis

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Type                     string              `json:"@type"`
	Address                  *string             `json:"address,omitempty"`
	PubKey                   interface{}         `json:"pub_key"`
	AccountNumber            *string             `json:"account_number,omitempty"`
	Sequence                 *string             `json:"sequence,omitempty"`
	BaseVestingAccount       *BaseVestingAccount `json:"base_vesting_account,omitempty"`
	BaseAccount              *BaseAccount        `json:"base_account,omitempty"`
	ModuleAccountName        *string             `json:"name,omitempty"`
	ModuleAccountPermissions []string            `json:"permissions,omitempty"`
}

type AppState

type AppState struct {
	Auth         Auth             `json:"auth"`
	Bank         Bank             `json:"bank"`
	Capability   Capability       `json:"capability"`
	Chainmain    Chainmain        `json:"chainmain"`
	Distribution Distribution     `json:"distribution"`
	Evidence     AppStateEvidence `json:"evidence"`
	Genutil      Genutil          `json:"genutil"`
	Gov          Gov              `json:"gov"`
	Ibc          Ibc              `json:"ibc"`
	Mint         Mint             `json:"mint"`
	Params       interface{}      `json:"params"`
	Slashing     Slashing         `json:"slashing"`
	Staking      Staking          `json:"staking"`
	Supply       Supply           `json:"supply"`
	Transfer     Transfer         `json:"transfer"`
	Upgrade      Upgrade          `json:"upgrade"`
	Vesting      Vesting          `json:"vesting"`
}

type AppStateEvidence

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

type Auth

type Auth struct {
	Params   AuthParams `json:"params"`
	Accounts []Account  `json:"accounts"`
}

type AuthInfo

type AuthInfo struct {
	SignerInfos []SignerInfo `json:"signer_infos"`
	Fee         Fee          `json:"fee"`
}

type AuthParams

type AuthParams 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 Balance

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

type Bank

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

type BankParams

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

type BankParamsSendEnabled

type BankParamsSendEnabled struct {
	Denom   string `json:"denom"`
	Enabled bool   `json:"enabled"`
}

type BaseAccount

type BaseAccount struct {
	Address       string      `json:"address"`
	PubKey        interface{} `json:"pub_key"`
	AccountNumber string      `json:"account_number"`
	Sequence      string      `json:"sequence"`
}

type BaseVestingAccount

type BaseVestingAccount struct {
	BaseAccount      BaseAccount   `json:"base_account"`
	OriginalVesting  []MinDeposit  `json:"original_vesting"`
	DelegatedFree    []interface{} `json:"delegated_free"`
	DelegatedVesting []interface{} `json:"delegated_vesting"`
	EndTime          string        `json:"end_time"`
}

type Block

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

type Body

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

type Capability

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

type Chainmain

type Chainmain struct {
}

type ChannelGenesis

type 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"`
}

type ClientGenesis

type 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             ClientGenesisParams `json:"params"`
}

type ClientGenesisParams

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

type Commission

type Commission struct {
	CommissionRates CommissionRates `json:"commission_rates"`
	UpdateTime      string          `json:"update_time"`
}

type CommissionRates

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

type ConnectionGenesis

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

type ConsensusParams

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

type ConsensusParamsEvidence

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

type ConsensusParamsValidator

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

type ConsensusPubkey

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

type CreateGenesisValidatorParams

type CreateGenesisValidatorParams struct {
	Status            constants.Status           `json:"status"`
	Description       model.ValidatorDescription `json:"description"`
	Commission        model.ValidatorCommission  `json:"commission"`
	MinSelfDelegation string                     `json:"minSelfDelegation"`
	DelegatorAddress  string                     `json:"delegatorAddress"`
	ValidatorAddress  string                     `json:"validatorAddress"`
	TendermintPubkey  string                     `json:"tendermintPubkey"`
	Amount            coin.Coin                  `json:"amount"`
	Jailed            bool                       `json:"jailed"`
}

type DenomMetadatum

type DenomMetadatum struct {
	Description string      `json:"description"`
	DenomUnits  []DenomUnit `json:"denom_units"`
	Base        string      `json:"base"`
	Display     string      `json:"display"`
}

type DenomUnit

type DenomUnit struct {
	Denom    string   `json:"denom"`
	Exponent int64    `json:"exponent"`
	Aliases  []string `json:"aliases"`
}

type DepositParams

type DepositParams struct {
	MaxDepositPeriod string       `json:"max_deposit_period"`
	MinDeposit       []MinDeposit `json:"min_deposit"`
}

type Description

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

type Distribution

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

type DistributionParams

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

type Fee

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

type FeePool

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

type GenTx

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

type Genesis

type Genesis struct {
	GenesisTime     string          `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"`
	Validators      []Validator     `json:"validators"`
}

type Genutil

type Genutil struct {
	GenTxs []GenTx `json:"gen_txs"`
}

type Gov

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

type Ibc

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

type MinDeposit

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

type Mint

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

type MintParams

type MintParams 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"`
}

type Minter

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

type ModeInfo

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

type PubKey

type PubKey struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

type PublicKey

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

type SignerInfo

type SignerInfo struct {
	PublicKey PublicKey   `json:"public_key"`
	ModeInfo  ModeInfo    `json:"mode_info"`
	Sequence  interface{} `json:"sequence"`
}

type Single

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

type Slashing

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

type SlashingParams

type SlashingParams 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"`
}

type Staking

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

type StakingParams

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

type StakingValidator

type StakingValidator struct {
	Commission        Commission      `json:"commission"`
	ConsensusPubkey   ConsensusPubkey `json:"consensus_pubkey"`
	DelegatorShares   string          `json:"delegator_shares"`
	Description       Description     `json:"description"`
	Jailed            bool            `json:"jailed"`
	MinSelfDelegation string          `json:"min_self_delegation"`
	OperatorAddress   string          `json:"operator_address"`
	Status            string          `json:"status"`
	Tokens            string          `json:"tokens"`
	UnbondingHeight   string          `json:"unbonding_height"`
	UnbondingTime     string          `json:"unbonding_time"`
}

type Supply

type Supply struct {
}

type TallyParams

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

type Transfer

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

type TransferParams

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

type Upgrade

type Upgrade struct {
}

type Validator

type Validator struct {
	Address string `json:"address"`
	PubKey  PubKey `json:"pub_key"`
	Power   string `json:"power"`
	Name    string `json:"name"`
}

type Vesting

type Vesting struct {
}

type VotingParams

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

Jump to

Keyboard shortcuts

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