@@ -163,18 +163,19 @@ describe('Neutron / Slinky', () => {
163
163
} ) ;
164
164
165
165
describe ( 'grpc oracle' , ( ) => {
166
- test ( 'query prices' , async ( ) => {
167
- const res : GetPricesResponse = await neutronClient . queryContractSmart (
168
- oracleContract ,
169
- {
170
- get_prices : {
171
- currency_pair_ids : [ 'AAVE/USD' ] ,
172
- } ,
173
- } ,
174
- ) ;
175
- expect ( res . prices ) . toHaveLength ( 1 ) ;
176
- expect ( + res . prices [ 0 ] . price . price ) . toBeGreaterThan ( 0 ) ;
177
- } ) ;
166
+ // this query is restricted currently
167
+ // test('query prices', async () => {
168
+ // const res: GetPricesResponse = await neutronClient.queryContractSmart(
169
+ // oracleContract,
170
+ // {
171
+ // get_prices: {
172
+ // currency_pair_ids: ['AAVE/USD'],
173
+ // },
174
+ // },
175
+ // );
176
+ // expect(res.prices).toHaveLength(1);
177
+ // expect(+res.prices[0].price.price).toBeGreaterThan(0);
178
+ // });
178
179
179
180
test ( 'query price' , async ( ) => {
180
181
const res : GetPriceResponse = await neutronClient . queryContractSmart (
@@ -226,15 +227,16 @@ describe('Neutron / Slinky', () => {
226
227
expect ( res . market ) . toBeDefined ( ) ;
227
228
} ) ;
228
229
229
- test ( 'query market map' , async ( ) => {
230
- const res = await neutronClient . queryContractSmart ( marketmapContract , {
231
- market_map : { } ,
232
- } ) ;
233
- expect ( res ) . toBeDefined ( ) ;
234
- expect ( res . chain_id ) . toBeDefined ( ) ;
235
- expect ( res . market_map ) . toBeDefined ( ) ;
236
- expect ( res . last_updated ) . toBeDefined ( ) ;
237
- } ) ;
230
+ // this query is restricted atm
231
+ // test('query market map', async () => {
232
+ // const res = await neutronClient.queryContractSmart(marketmapContract, {
233
+ // market_map: {},
234
+ // });
235
+ // expect(res).toBeDefined();
236
+ // expect(res.chain_id).toBeDefined();
237
+ // expect(res.market_map).toBeDefined();
238
+ // expect(res.last_updated).toBeDefined();
239
+ // });
238
240
239
241
test ( 'query params' , async ( ) => {
240
242
const res = await neutronClient . queryContractSmart ( marketmapContract , {
0 commit comments