mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 10:37:26 +00:00 
			
		
		
		
	* Update cometbft, cosmos, ethermint, and ibc-go * Replace github.com/tendermint/tendermint by github.com/cometbft/cometbft * Replace github.com/tendermint/tm-db by github.com/cometbft/cometbft-db * Replace gogo/protobuf with cosmos/gogoproto & simapp replacement * Replace cosmos-sdk/simapp/helpers with cosmos-sdk/testutil/sims * Remove no longer used simulations * Replace ibchost with ibcexported See https://github.com/cosmos/ibc-go/blob/v7.2.2/docs/migrations/v6-to-v7.md#ibc-module-constants * Add new consensus params keeper * Add consensus keeper to blockers * Fix keeper and module issues in app.go * Add IsSendEnabledCoins and update SetParams interface changes * Fix protobuf build for cosmos 47 (#1800) * fix cp errors by using -f; fix lint by only linting our proto dir; and use proofs.proto directly from ics23 for ibc-go v7 * run proto-all; commit updated third party deps and swagger changes * regenerate proto files * use correct gocosmos build plugin for buf * re-gen all protobuf files to update paths for new gocosmos plugin * update protoc and buf to latest versions * fix staking keeper issues in app.go * update tally handler for gov changes * chain id fix and flag fixes * update deps for cometbft 47.7 upgrade * remove all module legacy queriers * update stakingKeeper to pointer * Replace ModuleCdc from govv1beta1 to govcodec * remove simulations * abci.LastCommitInfo → abci.CommitInfo * Remove unused code in keys.go * simapp.MakeTestEncodingConfig -> moduletestutil.MakeTestEncodingConfi * Fix chain id issues in tests * Fix remaining unit test issues * Update changelog for upgrade * Fix e2e tests using updated kvtool * Update protonet to v47 compatible genesis * Bump cometbft-db to v0.9.1-kava.1 * Update kvtool * Remove extra changelog * Fix merged rocksdb issues * go mod cleanup * Bump cometbft-db to v9 and go to 1.21 * Bump rocksdb version to v8.10.0 * Update kvtool to latest version * Update gin to v1.9.0 * Use ibctm.ModuleName in app_test * Fallback to genesis chain id instead of client toml * Remove all simulations * Fix cdp migrations issue with v47 * Update dependencies to correct tags --------- Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
		
			
				
	
	
		
			54 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
syntax = "proto3";
 | 
						|
package cosmos.staking.v1beta1;
 | 
						|
 | 
						|
option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types";
 | 
						|
 | 
						|
import "gogoproto/gogo.proto";
 | 
						|
import "cosmos/staking/v1beta1/staking.proto";
 | 
						|
import "cosmos_proto/cosmos.proto";
 | 
						|
import "amino/amino.proto";
 | 
						|
 | 
						|
// GenesisState defines the staking module's genesis state.
 | 
						|
message GenesisState {
 | 
						|
  // params defines all the parameters of related to deposit.
 | 
						|
  Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
 | 
						|
 | 
						|
  // last_total_power tracks the total amounts of bonded tokens recorded during
 | 
						|
  // the previous end block.
 | 
						|
  bytes last_total_power = 2 [
 | 
						|
    (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
 | 
						|
    (gogoproto.nullable)   = false,
 | 
						|
    (amino.dont_omitempty) = true
 | 
						|
  ];
 | 
						|
 | 
						|
  // last_validator_powers is a special index that provides a historical list
 | 
						|
  // of the last-block's bonded validators.
 | 
						|
  repeated LastValidatorPower last_validator_powers = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
 | 
						|
 | 
						|
  // delegations defines the validator set at genesis.
 | 
						|
  repeated Validator validators = 4 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
 | 
						|
 | 
						|
  // delegations defines the delegations active at genesis.
 | 
						|
  repeated Delegation delegations = 5 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
 | 
						|
 | 
						|
  // unbonding_delegations defines the unbonding delegations active at genesis.
 | 
						|
  repeated UnbondingDelegation unbonding_delegations = 6 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
 | 
						|
 | 
						|
  // redelegations defines the redelegations active at genesis.
 | 
						|
  repeated Redelegation redelegations = 7 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
 | 
						|
 | 
						|
  bool exported = 8;
 | 
						|
}
 | 
						|
 | 
						|
// LastValidatorPower required for validator set update logic.
 | 
						|
message LastValidatorPower {
 | 
						|
  option (gogoproto.equal)           = false;
 | 
						|
  option (gogoproto.goproto_getters) = false;
 | 
						|
 | 
						|
  // address is the address of the validator.
 | 
						|
  string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
 | 
						|
 | 
						|
  // power defines the power of the validator.
 | 
						|
  int64 power = 2;
 | 
						|
}
 |