mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 18:01:39 +00:00
refactor: Simplify the types and properties to keep a consistent structure for the blockchain
This commit is contained in:
+41
-30
@@ -7,7 +7,7 @@ option go_package = "github.com/onsonr/hway/x/did/types";
|
|||||||
|
|
||||||
// GenesisState defines the module genesis state
|
// GenesisState defines the module genesis state
|
||||||
message GenesisState {
|
message GenesisState {
|
||||||
// Params defines all the paramaters of the module.
|
// Params defines all the parameters of the module.
|
||||||
Params params = 1 [(gogoproto.nullable) = false];
|
Params params = 1 [(gogoproto.nullable) = false];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -24,39 +24,50 @@ message Params {
|
|||||||
repeated ChainInfo whitelisted_chains = 2;
|
repeated ChainInfo whitelisted_chains = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
message AssetInfo {
|
message AssetInfo {
|
||||||
string denom = 1;
|
string id = 1;
|
||||||
string asset_type = 2;
|
string denom = 2;
|
||||||
string origin_chain = 3;
|
string symbol = 3;
|
||||||
string origin_denom = 4;
|
string asset_type = 4;
|
||||||
string origin_type = 5;
|
string origin_chain = 5;
|
||||||
string symbol = 6;
|
string origin_denom = 6;
|
||||||
int32 decimals = 7;
|
int32 decimals = 7;
|
||||||
string description = 8;
|
string description = 8;
|
||||||
string image = 9;
|
string image_url = 9;
|
||||||
string coinGeckoId = 10;
|
string coingecko_id = 10;
|
||||||
bool enable = 11;
|
bool is_enabled = 11;
|
||||||
string path = 12;
|
string ibc_path = 12;
|
||||||
string channel = 13;
|
string ibc_channel = 13;
|
||||||
string port = 14;
|
string ibc_port = 14;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ChainInfo {
|
message ChainInfo {
|
||||||
string chain_id_cosmos = 1;
|
string id = 1;
|
||||||
string chain_name = 2;
|
string chain_id = 2;
|
||||||
string symbol = 3;
|
string name = 3;
|
||||||
string bechAccountPrefix = 4;
|
string symbol = 4;
|
||||||
string bechValidatorPrefix = 5;
|
string bech32_prefix = 5;
|
||||||
string origin_genesis_time = 6;
|
string genesis_time = 6;
|
||||||
repeated Meta accountType = 7;
|
repeated Endpoint grpc_endpoints = 7;
|
||||||
repeated Meta grpc_endpoint = 8;
|
repeated Endpoint rest_endpoints = 8;
|
||||||
repeated Meta lcd_endpoint = 9;
|
ExplorerInfo explorer = 9;
|
||||||
Meta explorer = 10;
|
FeeInfo fee_info = 10;
|
||||||
string fee_base = 11;
|
}
|
||||||
repeated string fee_rate = 12;
|
|
||||||
int32 fee_init_gas_limit = 13;
|
message Endpoint {
|
||||||
bool fee_isSimulable = 14;
|
string url = 1;
|
||||||
double simul_gas_multiply = 15;
|
bool is_primary = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message ExplorerInfo {
|
||||||
|
string name = 1;
|
||||||
|
string url = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message FeeInfo {
|
||||||
|
string base_denom = 1;
|
||||||
|
repeated string fee_rates = 2;
|
||||||
|
int32 init_gas_limit = 3;
|
||||||
|
bool is_simulable = 4;
|
||||||
|
double gas_multiply = 5;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user