Skip to content

Commit

Permalink
remove non-determenicic queries (tmp)
Browse files Browse the repository at this point in the history
  • Loading branch information
jd authored and jd committed Jan 14, 2025
1 parent 9f851f2 commit c798da6
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions src/testcases/run_in_band/slinky.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,18 +163,19 @@ describe('Neutron / Slinky', () => {
});

describe('grpc oracle', () => {
test('query prices', async () => {
const res: GetPricesResponse = await neutronClient.queryContractSmart(
oracleContract,
{
get_prices: {
currency_pair_ids: ['AAVE/USD'],
},
},
);
expect(res.prices).toHaveLength(1);
expect(+res.prices[0].price.price).toBeGreaterThan(0);
});
// this query is restricted currently
// test('query prices', async () => {
// const res: GetPricesResponse = await neutronClient.queryContractSmart(
// oracleContract,
// {
// get_prices: {
// currency_pair_ids: ['AAVE/USD'],
// },
// },
// );
// expect(res.prices).toHaveLength(1);
// expect(+res.prices[0].price.price).toBeGreaterThan(0);
// });

test('query price', async () => {
const res: GetPriceResponse = await neutronClient.queryContractSmart(
Expand Down Expand Up @@ -226,15 +227,16 @@ describe('Neutron / Slinky', () => {
expect(res.market).toBeDefined();
});

test('query market map', async () => {
const res = await neutronClient.queryContractSmart(marketmapContract, {
market_map: {},
});
expect(res).toBeDefined();
expect(res.chain_id).toBeDefined();
expect(res.market_map).toBeDefined();
expect(res.last_updated).toBeDefined();
});
// this query is restricted atm
// test('query market map', async () => {
// const res = await neutronClient.queryContractSmart(marketmapContract, {
// market_map: {},
// });
// expect(res).toBeDefined();
// expect(res.chain_id).toBeDefined();
// expect(res.market_map).toBeDefined();
// expect(res.last_updated).toBeDefined();
// });

test('query params', async () => {
const res = await neutronClient.queryContractSmart(marketmapContract, {
Expand Down

0 comments on commit c798da6

Please sign in to comment.