mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-25 15:55:18 +00:00
614d4e40fe
* 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>
59 lines
2.4 KiB
Protocol Buffer
59 lines
2.4 KiB
Protocol Buffer
syntax = "proto3";
|
|
package cosmos.auth.v1beta1;
|
|
|
|
import "amino/amino.proto";
|
|
import "cosmos_proto/cosmos.proto";
|
|
import "gogoproto/gogo.proto";
|
|
import "google/protobuf/any.proto";
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/auth/types";
|
|
|
|
// BaseAccount defines a base account type. It contains all the necessary fields
|
|
// for basic account functionality. Any custom account type should extend this
|
|
// type for additional functionality (e.g. vesting).
|
|
message BaseAccount {
|
|
option (amino.name) = "cosmos-sdk/BaseAccount";
|
|
option (gogoproto.goproto_getters) = false;
|
|
option (gogoproto.equal) = false;
|
|
option (cosmos_proto.implements_interface) = "cosmos.auth.v1beta1.AccountI";
|
|
|
|
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
google.protobuf.Any pub_key = 2 [(gogoproto.jsontag) = "public_key,omitempty", (amino.field_name) = "public_key"];
|
|
uint64 account_number = 3;
|
|
uint64 sequence = 4;
|
|
}
|
|
|
|
// ModuleAccount defines an account for modules that holds coins on a pool.
|
|
message ModuleAccount {
|
|
option (amino.name) = "cosmos-sdk/ModuleAccount";
|
|
option (gogoproto.goproto_getters) = false;
|
|
option (cosmos_proto.implements_interface) = "cosmos.auth.v1beta1.ModuleAccountI";
|
|
|
|
BaseAccount base_account = 1 [(gogoproto.embed) = true];
|
|
string name = 2;
|
|
repeated string permissions = 3;
|
|
}
|
|
|
|
// ModuleCredential represents a unclaimable pubkey for base accounts controlled by modules.
|
|
//
|
|
// Since: cosmos-sdk 0.47
|
|
message ModuleCredential {
|
|
// module_name is the name of the module used for address derivation (passed into address.Module).
|
|
string module_name = 1;
|
|
// derivation_keys is for deriving a module account address (passed into address.Module)
|
|
// adding more keys creates sub-account addresses (passed into address.Derive)
|
|
repeated bytes derivation_keys = 2;
|
|
}
|
|
|
|
// Params defines the parameters for the auth module.
|
|
message Params {
|
|
option (amino.name) = "cosmos-sdk/x/auth/Params";
|
|
option (gogoproto.equal) = true;
|
|
|
|
uint64 max_memo_characters = 1;
|
|
uint64 tx_sig_limit = 2;
|
|
uint64 tx_size_cost_per_byte = 3;
|
|
uint64 sig_verify_cost_ed25519 = 4 [(gogoproto.customname) = "SigVerifyCostED25519"];
|
|
uint64 sig_verify_cost_secp256k1 = 5 [(gogoproto.customname) = "SigVerifyCostSecp256k1"];
|
|
}
|