Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuripetusko committed Jun 12, 2024
1 parent 3d6ce13 commit 2e6fb76
Show file tree
Hide file tree
Showing 7 changed files with 265 additions and 171 deletions.
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"@babel/plugin-proposal-optional-chaining": "^7.13.8",
"@babel/preset-env": "^7.13.9",
"@babel/preset-typescript": "^7.13.0",
"@polkadot/api": "^10.11.2",
"@polkadot/extension-dapp": "^0.46.6",
"@polkadot/api": "^11.2.1",
"@polkadot/extension-dapp": "^0.47.5",
"@polkadot/keyring": "^12.6.2",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
Expand All @@ -42,7 +42,7 @@
"prettier": "^2.8.8",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
"typescript": "^5.4.5"
},
"dependencies": {
"@types/react": "18.0.24",
Expand Down
11 changes: 9 additions & 2 deletions packages/core/test/helpers/fetch-system-properties.test.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { ApiPromise, WsProvider } from '@polkadot/api';
import { fetchSystemProperties } from '../../src/helpers/fetch-system-properties';

function createApi(wsUrl: string): Promise<ApiPromise> {
const createApi = async(wsUrl: string) => {
jest.setTimeout(30000);

const provider = new WsProvider(wsUrl);
// const provider = new WsProvider('wss://westend-rpc.polkadot.io/');
// const provider = new WsProvider('ws://127.0.0.1:9944/');

return new ApiPromise({ provider }).isReady;
const api = new ApiPromise({ provider })

await api.isReady;
return api
}

// Test fetchSystemProperties
Expand All @@ -21,6 +24,8 @@ describe('utils: fetchSystemProperties', () => {
tokenDecimals: 12,
tokenSymbol: 'KSM',
});

await api.disconnect();
});

it('Should return and parse POLKADOT systemProperties', async () => {
Expand All @@ -31,5 +36,7 @@ describe('utils: fetchSystemProperties', () => {
tokenDecimals: 10,
tokenSymbol: 'DOT',
});

await api.disconnect();
});
});
4 changes: 2 additions & 2 deletions packages/dotsama-wallet-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
"dependencies": {
"@chakra-ui/react": "^2.6.1",
"@chakra-ui/system": "^2.5.7",
"@polkadot/react-identicon": "^3.6.4",
"@polkadot/react-identicon": "^3.6.6",
"@react-icons/all-files": "^4.1.0",
"@substra-hooks/core": "^0.0.61",
"fuse.js": "^6.6.2",
"react-copy-to-clipboard": "^5.1.0",
"zustand": "^4.1.3",
"typescript": "^5.0.4"
"typescript": "^5.4.5"
},
"devDependencies": {
"@chakra-ui/icons": "2.0.19",
Expand Down
1 change: 1 addition & 0 deletions packages/example-nextjs/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "@polkadot/api-augment";
7 changes: 5 additions & 2 deletions packages/example-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@
"framer-motion": "^7.6.2",
"next": "13.4.2",
"react": "18.2.0",
"react-dom": "18.2.0"
"react-dom": "18.2.0",
"@polkadot/api": "^11.2.1",
"@polkadot/extension-dapp": "^0.47.5",
"@polkadot/react-identicon": "^3.6.6"
},
"devDependencies": {
"@types/node": "18.16.12",
"@types/react": "18.0.14",
"eslint": "8.40.0",
"eslint-config-next": "13.4.2",
"typescript": "5.0.4"
"typescript": "5.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/example-nextjs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "es2020",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
Expand Down
Loading

0 comments on commit 2e6fb76

Please sign in to comment.