mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
40 lines
679 B
Protocol Buffer
40 lines
679 B
Protocol Buffer
syntax = "proto3";
|
|
package oracle.v1;
|
|
|
|
import "cosmos/orm/v1/orm.proto";
|
|
|
|
option go_package = "github.com/onsonr/sonr/x/oracle/types";
|
|
|
|
// https://github.com/cosmos/cosmos-sdk/blob/main/orm/README.md
|
|
|
|
message Balance {
|
|
option (cosmos.orm.v1.table) = {
|
|
id: 1
|
|
primary_key: {fields: "account"}
|
|
index: {
|
|
id: 1
|
|
fields: "amount"
|
|
}
|
|
};
|
|
|
|
string account = 1;
|
|
uint64 amount = 2;
|
|
}
|
|
|
|
message Account {
|
|
option (cosmos.orm.v1.table) = {
|
|
id: 2
|
|
primary_key: {fields: "id"}
|
|
index: {
|
|
id: 1
|
|
fields: "address,chain,network"
|
|
unique: true
|
|
}
|
|
};
|
|
|
|
uint64 id = 1;
|
|
string address = 2;
|
|
string chain = 3;
|
|
string network = 4;
|
|
}
|