diff --git a/package.json b/package.json index 2c5a0ab3..06337aa4 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "@cosmos-client/core": "^0.47.4", "@cosmos-client/cosmwasm": "^0.40.3", "@cosmos-client/ibc": "^1.2.1", - "@neutron-org/neutronjsplus": "0.1.0", + "@neutron-org/neutronjsplus": "^0.2.0", "@types/lodash": "^4.14.182", "@types/long": "^4.0.2", "axios": "^0.27.2", @@ -52,8 +52,8 @@ "date-fns": "^2.16.1", "express": "^4.18.2", "jest": "^29.7.0", - "jest-junit": "^16.0.0", "jest-extended": "^4.0.2", + "jest-junit": "^16.0.0", "lodash": "^4.17.21", "long": "^5.2.1", "merkletreejs": "^0.3.9", @@ -89,4 +89,4 @@ "engines": { "node": ">=16.0 <17" } -} \ No newline at end of file +} diff --git a/src/testcases/run_in_band/dex_stargate.test.ts b/src/testcases/run_in_band/dex_stargate.test.ts index 6144f05a..8851f923 100644 --- a/src/testcases/run_in_band/dex_stargate.test.ts +++ b/src/testcases/run_in_band/dex_stargate.test.ts @@ -3,10 +3,9 @@ import { getEventAttributesFromTx, NEUTRON_DENOM, WalletWrapper, -} from '../../helpers/cosmos'; -import { TestStateLocalCosmosTestNet } from '../common_localcosmosnet'; -import { NeutronContract } from '../../helpers/types'; -import { CodeId } from '../../types'; +} from '@neutron-org/neutronjsplus/dist/cosmos'; +import { TestStateLocalCosmosTestNet } from '@neutron-org/neutronjsplus'; +import { NeutronContract, CodeId } from '@neutron-org/neutronjsplus/dist/types'; import { AllInactiveLimitOrderTrancheResponse, AllLimitOrderTrancheResponse, @@ -25,7 +24,9 @@ import { PoolMetadataResponse, PoolReservesResponse, PoolResponse, -} from '../../helpers/dex'; +} from '@neutron-org/neutronjsplus/dist/dex'; + +const config = require('../../config.json'); describe('Neutron / dex module (stargate contract)', () => { let testState: TestStateLocalCosmosTestNet; @@ -36,7 +37,7 @@ describe('Neutron / dex module (stargate contract)', () => { let trancheKeyToQuery: string; beforeAll(async () => { - testState = new TestStateLocalCosmosTestNet(); + testState = new TestStateLocalCosmosTestNet(config); await testState.init(); neutronChain = new CosmosWrapper( testState.sdk1, diff --git a/yarn.lock b/yarn.lock index 565f0c9a..644323d3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1564,10 +1564,10 @@ resolved "https://registry.yarnpkg.com/@ledgerhq/logs/-/logs-5.50.0.tgz#29c6419e8379d496ab6d0426eadf3c4d100cd186" integrity sha512-swKHYCOZUGyVt4ge0u8a7AwNcA//h4nx5wIi0sruGye1IJ5Cva0GyK9L2/WdX+kWVTKp92ZiEo1df31lrWGPgA== -"@neutron-org/neutronjsplus@0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@neutron-org/neutronjsplus/-/neutronjsplus-0.1.0.tgz#69ad24b51b7f0146c7a6a46a53234159101895d7" - integrity sha512-O+1BrUFgtd2AJCUiBbtyiyVqNSphNQd0utIpkNwUy1c2hCGLRKHkBS9mZZTsC5RW4kE98kS/XUwnhZsaDv0PZQ== +"@neutron-org/neutronjsplus@^0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@neutron-org/neutronjsplus/-/neutronjsplus-0.2.0.tgz#f0b21811213acee44820231924ef4897a43123e9" + integrity sha512-G7Ndqskn33XEogOoYUOnCBiaFAYLD46gy12lNIDxgK8rkJl4GWKWv4fRmeJJnl8DxGTdQI4bAF9deD+XzIx+1g== dependencies: "@bufbuild/protobuf" "^1.4.2" "@cosmos-client/core" "^0.47.4"