@@ -15,11 +15,11 @@ func (suite *KeeperTestSuite) TestQueryDelegatorSignals() {
15
15
// setup
16
16
signals := []types.Signal {
17
17
{
18
- ID : "crypto_price.bandusd " ,
18
+ ID : "CS:BAND-USD " ,
19
19
Power : 1e9 ,
20
20
},
21
21
{
22
- ID : "crypto_price.btcusd " ,
22
+ ID : "CS:BTC-USD " ,
23
23
Power : 1e9 ,
24
24
},
25
25
}
@@ -45,12 +45,12 @@ func (suite *KeeperTestSuite) TestQueryPrices() {
45
45
// setup
46
46
prices := []* types.Price {
47
47
{
48
- SignalID : "crypto_price.atomusd " ,
48
+ SignalID : "CS:ATOM-USD " ,
49
49
Price : 100000000 ,
50
50
Timestamp : 1234567890 ,
51
51
},
52
52
{
53
- SignalID : "crypto_price.bandusd " ,
53
+ SignalID : "CS:BAND-USD " ,
54
54
Price : 200000000 ,
55
55
Timestamp : 1234567890 ,
56
56
},
@@ -97,7 +97,7 @@ func (suite *KeeperTestSuite) TestQueryPrices() {
97
97
"filter" ,
98
98
func () {
99
99
req = & types.QueryPricesRequest {
100
- SignalIds : []string {"crypto_price.bandusd " },
100
+ SignalIds : []string {"CS:BAND-USD " },
101
101
}
102
102
expRes = & types.QueryPricesResponse {
103
103
Prices : prices [1 :],
@@ -130,23 +130,23 @@ func (suite *KeeperTestSuite) TestQueryPrice() {
130
130
// setup
131
131
132
132
price := types.Price {
133
- SignalID : "crypto_price.bandusd " ,
133
+ SignalID : "CS:BAND-USD " ,
134
134
Price : 100000000 ,
135
135
Timestamp : 1234567890 ,
136
136
}
137
137
suite .feedsKeeper .SetPrice (ctx , price )
138
138
139
139
// query and check
140
140
res , err := queryClient .Price (context .Background (), & types.QueryPriceRequest {
141
- SignalId : "crypto_price.bandusd " ,
141
+ SignalId : "CS:BAND-USD " ,
142
142
})
143
143
suite .Require ().NoError (err )
144
144
suite .Require ().Equal (& types.QueryPriceResponse {
145
145
Price : price ,
146
146
}, res )
147
147
148
148
res , err = queryClient .Price (context .Background (), & types.QueryPriceRequest {
149
- SignalId : "crypto_price.atomusd " ,
149
+ SignalId : "CS:ATOM-USD " ,
150
150
})
151
151
suite .Require ().ErrorContains (err , "price not found" )
152
152
suite .Require ().Nil (res )
@@ -158,11 +158,11 @@ func (suite *KeeperTestSuite) TestQueryValidatorPrices() {
158
158
// setup
159
159
feeds := []types.Feed {
160
160
{
161
- SignalID : "crypto_price.atomusd " ,
161
+ SignalID : "CS:ATOM-USD " ,
162
162
Interval : 100 ,
163
163
},
164
164
{
165
- SignalID : "crypto_price.bandusd " ,
165
+ SignalID : "CS:BAND-USD " ,
166
166
Interval : 100 ,
167
167
},
168
168
}
@@ -172,13 +172,13 @@ func (suite *KeeperTestSuite) TestQueryValidatorPrices() {
172
172
valPrices := []types.ValidatorPrice {
173
173
{
174
174
Validator : ValidValidator .String (),
175
- SignalID : "crypto_price.atomusd " ,
175
+ SignalID : "CS:ATOM-USD " ,
176
176
Price : 1e9 ,
177
177
Timestamp : ctx .BlockTime ().Unix (),
178
178
},
179
179
{
180
180
Validator : ValidValidator .String (),
181
- SignalID : "crypto_price.bandusd " ,
181
+ SignalID : "CS:BAND-USD " ,
182
182
Price : 1e9 ,
183
183
Timestamp : ctx .BlockTime ().Unix (),
184
184
},
@@ -199,7 +199,7 @@ func (suite *KeeperTestSuite) TestQueryValidatorPrices() {
199
199
// query with specific SignalIds
200
200
res , err = queryClient .ValidatorPrices (context .Background (), & types.QueryValidatorPricesRequest {
201
201
Validator : ValidValidator .String (),
202
- SignalIds : []string {"crypto_price.atomusd " },
202
+ SignalIds : []string {"CS:ATOM-USD " },
203
203
})
204
204
suite .Require ().NoError (err )
205
205
suite .Require ().Equal (& types.QueryValidatorPricesResponse {
@@ -218,7 +218,7 @@ func (suite *KeeperTestSuite) TestQueryValidatorPrices() {
218
218
// query with specific SignalIds for invalid validator
219
219
res , err = queryClient .ValidatorPrices (context .Background (), & types.QueryValidatorPricesRequest {
220
220
Validator : InvalidValidator .String (),
221
- SignalIds : []string {"crypto_price.atomusd " },
221
+ SignalIds : []string {"CS:ATOM-USD " },
222
222
})
223
223
suite .Require ().NoError (err )
224
224
suite .Require ().Equal (& types.QueryValidatorPricesResponse {
@@ -253,11 +253,11 @@ func (suite *KeeperTestSuite) TestQuerySignalTotalPowers() {
253
253
// setup
254
254
signals := []* types.Signal {
255
255
{
256
- ID : "crypto_price.atomusd " ,
256
+ ID : "CS:ATOM-USD " ,
257
257
Power : 100000000 ,
258
258
},
259
259
{
260
- ID : "crypto_price.bandusd " ,
260
+ ID : "CS:BAND-USD " ,
261
261
Power : 100000000 ,
262
262
},
263
263
}
@@ -303,7 +303,7 @@ func (suite *KeeperTestSuite) TestQuerySignalTotalPowers() {
303
303
"filter" ,
304
304
func () {
305
305
req = & types.QuerySignalTotalPowersRequest {
306
- SignalIds : []string {"crypto_price.bandusd " },
306
+ SignalIds : []string {"CS:BAND-USD " },
307
307
}
308
308
expRes = & types.QuerySignalTotalPowersResponse {
309
309
SignalTotalPowers : signals [1 :],
@@ -363,7 +363,7 @@ func (suite *KeeperTestSuite) TestQuerySupportedFeeds() {
363
363
func () {
364
364
feeds := []types.Feed {
365
365
{
366
- SignalID : "crypto_price.bandusd " ,
366
+ SignalID : "CS:BAND-USD " ,
367
367
Power : 36000000000 ,
368
368
Interval : 100 ,
369
369
},
@@ -373,7 +373,7 @@ func (suite *KeeperTestSuite) TestQuerySupportedFeeds() {
373
373
374
374
feedWithDeviations := []types.FeedWithDeviation {
375
375
{
376
- SignalID : "crypto_price.bandusd " ,
376
+ SignalID : "CS:BAND-USD " ,
377
377
Power : 36000000000 ,
378
378
Interval : 100 ,
379
379
DeviationBasisPoint : 83 ,
0 commit comments