Skip to content

Commit

Permalink
Merge pull request #47 from scio-labs/feat/42-usePSP22Balances-ignore…
Browse files Browse the repository at this point in the history
…s-active-chain

Feat: usePSP22Balances ignores active chain
  • Loading branch information
wottpal authored Nov 16, 2023
2 parents d646840 + ca9ce54 commit 754334b
Show file tree
Hide file tree
Showing 10 changed files with 301 additions and 234 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-gorillas-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@scio-labs/use-inkathon': patch
---

Improve fetching of PSP22 balances.
5 changes: 5 additions & 0 deletions .changeset/quick-dragons-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@scio-labs/use-inkathon': minor
---

Improve PSP22 balance helpers to only fetch tokens applicable for the active chain.
6 changes: 6 additions & 0 deletions .changeset/tall-mayflies-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@scio-labs/use-inkathon': minor
---

- usePSP22Balances checks if `originChain` matches `activeChain` before fetching PSP22 tokens balance.
- Improve formats and add INW testnet contract address on `PSP22_ASSETS.json`.
12 changes: 6 additions & 6 deletions examples/react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.34",
"@types/react-dom": "^18.2.14",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"@vitejs/plugin-react-swc": "^3.4.1",
"eslint": "^8.52.0",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.4",
"prettier": "^3.0.3",
"prettier": "^3.1.0",
"typescript": "^5.0.2",
"vite": "^4.5.0"
}
Expand Down
8 changes: 4 additions & 4 deletions examples/scripts-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
},
"devDependencies": {
"@polkadot/types": "^10.10.1",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"eslint": "^8.52.0",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"prettier": "^3.0.3",
"prettier": "^3.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
}
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@types/node": "^18.18.8",
"@types/react": "^18.2.34",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"@types/node": "^18.18.9",
"@types/react": "^18.2.37",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"concurrently": "^8.2.2",
"eslint": "^8.52.0",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-react": "^7.33.2",
"lint-staged": "^15.0.2",
"prettier": "^3.0.3",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"simple-git-hooks": "^2.9.0",
"tsup": "^7.2.0",
"typedoc": "^0.25.3",
Expand Down
Loading

0 comments on commit 754334b

Please sign in to comment.