mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 00:35:18 +00:00
ffef832d45
- Upgrade cosmos-sdk to v0.44.5 from v0.39.2 - Add Legacy Tx Endpoint for backwards compatibility - Add IBC v1.2.3 Support Co-authored-by: DracoLi <draco@dracoli.com> Co-authored-by: drklee3 <derrick@dlee.dev> Co-authored-by: denalimarsh <denalimarsh@gmail.com> Co-authored-by: Draco Li <draco@kava.io> Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com> Co-authored-by: Kevin Davis <karzak@users.noreply.github.com> Co-authored-by: Denali Marsh <denali@kava.io>
51 lines
2.1 KiB
Protocol Buffer
51 lines
2.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
package cosmos.auth.v1beta1;
|
|
|
|
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 (gogoproto.goproto_getters) = false;
|
|
option (gogoproto.goproto_stringer) = false;
|
|
option (gogoproto.equal) = false;
|
|
|
|
option (cosmos_proto.implements_interface) = "AccountI";
|
|
|
|
string address = 1;
|
|
google.protobuf.Any pub_key = 2
|
|
[(gogoproto.jsontag) = "public_key,omitempty", (gogoproto.moretags) = "yaml:\"public_key\""];
|
|
uint64 account_number = 3 [(gogoproto.moretags) = "yaml:\"account_number\""];
|
|
uint64 sequence = 4;
|
|
}
|
|
|
|
// ModuleAccount defines an account for modules that holds coins on a pool.
|
|
message ModuleAccount {
|
|
option (gogoproto.goproto_getters) = false;
|
|
option (gogoproto.goproto_stringer) = false;
|
|
option (cosmos_proto.implements_interface) = "ModuleAccountI";
|
|
|
|
BaseAccount base_account = 1 [(gogoproto.embed) = true, (gogoproto.moretags) = "yaml:\"base_account\""];
|
|
string name = 2;
|
|
repeated string permissions = 3;
|
|
}
|
|
|
|
// Params defines the parameters for the auth module.
|
|
message Params {
|
|
option (gogoproto.equal) = true;
|
|
option (gogoproto.goproto_stringer) = false;
|
|
|
|
uint64 max_memo_characters = 1 [(gogoproto.moretags) = "yaml:\"max_memo_characters\""];
|
|
uint64 tx_sig_limit = 2 [(gogoproto.moretags) = "yaml:\"tx_sig_limit\""];
|
|
uint64 tx_size_cost_per_byte = 3 [(gogoproto.moretags) = "yaml:\"tx_size_cost_per_byte\""];
|
|
uint64 sig_verify_cost_ed25519 = 4
|
|
[(gogoproto.customname) = "SigVerifyCostED25519", (gogoproto.moretags) = "yaml:\"sig_verify_cost_ed25519\""];
|
|
uint64 sig_verify_cost_secp256k1 = 5
|
|
[(gogoproto.customname) = "SigVerifyCostSecp256k1", (gogoproto.moretags) = "yaml:\"sig_verify_cost_secp256k1\""];
|
|
}
|