Skip to content

Commit

Permalink
upd sdk: rm get prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
quasisamurai committed May 15, 2024
1 parent 1ddf808 commit 5279c46
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@cosmos-client/core": "^0.47.4",
"@cosmos-client/cosmwasm": "^0.40.3",
"@cosmos-client/ibc": "^1.2.1",
"@neutron-org/neutronjsplus": "https://github.com/neutron-org/neutronjsplus.git#1571861a509c99a035d0451af3224a193802c2de",
"@neutron-org/neutronjsplus": "https://github.com/neutron-org/neutronjsplus.git#ea65c0fb59435b887b08f662f2864d65c225352e",
"@types/lodash": "^4.14.182",
"@types/long": "^5.0.0",
"axios": "^0.27.2",
Expand Down
16 changes: 9 additions & 7 deletions src/testcases/run_in_band/slinky.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import {
GetPricesResponse,
} from '@neutron-org/neutronjsplus/src/oracle';
import {
GetLastUpdatedResponse,
ParamsResponse,
GetMarketMapResponse,
LastUpdatedResponse,
MarketMapResponse,
} from '@neutron-org/neutronjsplus/src/marketmap';

const config = require('../../config.json');
Expand Down Expand Up @@ -204,20 +204,20 @@ describe('Neutron / Slinky', () => {
});

test('query last', async () => {
const res = await neutronChain.queryContract<GetLastUpdatedResponse>(
const res = await neutronChain.queryContract<LastUpdatedResponse>(
contractAddress,
{
get_last_updated: {},
last_updated: {},
},
);
expect(res.last_updated).toBeGreaterThan(0);
});

test('query market', async () => {
const res = await neutronChain.queryContract<GetMarketMapResponse>(
const res = await neutronChain.queryContract<MarketMapResponse>(
contractAddress,
{
get_market_map: {},
market_map: {},
},
);
expect(res.market_map).toBeDefined();
Expand All @@ -235,7 +235,9 @@ describe('Neutron / Slinky', () => {
);
expect(res).toBeDefined();
expect(res.params.version).toEqual(0);
expect(res.params.market_authorities[0]).toEqual('neutron1hxskfdxpp5hqgtjj6am6nkjefhfzj359x0ar3z');
expect(res.params.market_authorities[0]).toEqual(
'neutron1hxskfdxpp5hqgtjj6am6nkjefhfzj359x0ar3z',
);
});
});
});
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1568,9 +1568,9 @@
resolved "https://registry.yarnpkg.com/@ledgerhq/logs/-/logs-5.50.0.tgz#29c6419e8379d496ab6d0426eadf3c4d100cd186"
integrity sha512-swKHYCOZUGyVt4ge0u8a7AwNcA//h4nx5wIi0sruGye1IJ5Cva0GyK9L2/WdX+kWVTKp92ZiEo1df31lrWGPgA==

"@neutron-org/neutronjsplus@https://github.com/neutron-org/neutronjsplus.git#1571861a509c99a035d0451af3224a193802c2de":
"@neutron-org/neutronjsplus@https://github.com/neutron-org/neutronjsplus.git#ea65c0fb59435b887b08f662f2864d65c225352e":
version "0.4.0-rc19"
resolved "https://github.com/neutron-org/neutronjsplus.git#1571861a509c99a035d0451af3224a193802c2de"
resolved "https://github.com/neutron-org/neutronjsplus.git#ea65c0fb59435b887b08f662f2864d65c225352e"
dependencies:
"@bufbuild/protobuf" "^1.4.2"
"@cosmos-client/core" "^0.47.4"
Expand Down

0 comments on commit 5279c46

Please sign in to comment.