refactor: remove unused code related to whitelisted assets

This commit is contained in:
Prad Nukala
2024-09-27 20:58:05 -04:00
parent 88a3d9da1c
commit 92ff87cc2c
57 changed files with 25331 additions and 15090 deletions
+32 -3
View File
@@ -1,8 +1,8 @@
syntax = "proto3";
package oracle.v1;
import "gogoproto/gogo.proto";
import "amino/amino.proto";
import "gogoproto/gogo.proto";
option go_package = "github.com/onsonr/sonr/x/oracle/types";
@@ -18,5 +18,34 @@ message Params {
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;
bool some_value = 2;
}
Assets assets = 1;
}
message Assets {
option (amino.name) = "oracle/assets";
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;
repeated AssetInfo assets = 1;
}
// AssetInfo defines the asset info
message AssetInfo {
// The coin type index for bip44 path
int64 index = 1;
// The hrp for bech32 address
string hrp = 2;
// The coin symbol
string symbol = 3;
// The coin name
string asset_type = 4;
// The name of the asset
string name = 5;
// The icon url
string icon_url = 6;
}
+29 -9
View File
@@ -7,13 +7,33 @@ option go_package = "github.com/onsonr/sonr/x/oracle/types";
// https://github.com/cosmos/cosmos-sdk/blob/main/orm/README.md
message ExampleData {
option (cosmos.orm.v1.table) = {
id: 1;
primary_key: { fields: "account" }
index: { id: 1 fields: "amount" }
};
message Balance {
option (cosmos.orm.v1.table) = {
id: 1
primary_key: {fields: "account"}
index: {
id: 1
fields: "amount"
}
};
bytes account = 1;
uint64 amount = 2;
}
string account = 1;
uint64 amount = 2;
}
message Account {
option (cosmos.orm.v1.table) = {
id: 2
primary_key: {fields: "id"}
index: {
id: 1
fields: "account"
unique: true
}
};
uint64 id = 1;
string account = 2;
string chain = 3;
string network = 4;
}