Skip to content

Commit

Permalink
Merge pull request #49 from scio-labs/changeset-release/main
Browse files Browse the repository at this point in the history
chore(changeset): Bump version & Update docs
  • Loading branch information
wottpal authored Nov 16, 2023
2 parents 754334b + 68e8784 commit 9818f1f
Show file tree
Hide file tree
Showing 90 changed files with 112 additions and 115 deletions.
5 changes: 0 additions & 5 deletions .changeset/ninety-gorillas-suffer.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quick-dragons-shout.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/tall-mayflies-carry.md

This file was deleted.

13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @scio-labs/use-inkathon

## 0.5.0

### Minor Changes

- [#47](https://github.com/scio-labs/use-inkathon/pull/47) [`64f6e51`](https://github.com/scio-labs/use-inkathon/commit/64f6e51a0d529541cdd0464ccc2af18bb21564c9) Thanks [@ical10](https://github.com/ical10)! - Improve PSP22 balance helpers to only fetch tokens applicable for the active chain.

- [#47](https://github.com/scio-labs/use-inkathon/pull/47) [`35d0f00`](https://github.com/scio-labs/use-inkathon/commit/35d0f006e3cc8fd3a1a2d92c097a28993be5331b) Thanks [@ical10](https://github.com/ical10)! - - usePSP22Balances checks if `originChain` matches `activeChain` before fetching PSP22 tokens balance.
- Improve formats and add INW testnet contract address on `PSP22_ASSETS.json`.

### Patch Changes

- [#47](https://github.com/scio-labs/use-inkathon/pull/47) [`ca9ce54`](https://github.com/scio-labs/use-inkathon/commit/ca9ce5473ad36b368ab89663757b2b32388a5166) Thanks [@ical10](https://github.com/ical10)! - Improve fetching of PSP22 balances.

## 0.4.4

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions docs/enums/AssetType.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/enums/SubstrateExplorer.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/enums/SubstrateWalletPlatform.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/enums/UseInkathonErrorCode.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/UseInkathonProvider.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/accountArraysAreEqual.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/accountsAreEqual.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/checkIfBalanceSufficient.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/contractCallDryRun.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/contractQuery.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/contractTx.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/decodeOutput.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/deployContract.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/enableWallet.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/formatBalance.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getAbiMessage.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getBalance.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getDeployment.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getDeploymentContract.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getExtrinsicErrorMessage.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getGasLimit.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getMaxGasLimit.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getNightlyConnectAdapter.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/functions/getPSP22Balances.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getSubstrateChain.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getSubstrateWallet.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/initPolkadotJs.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/isWalletInstalled.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/parsePSP22Balance.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/registerDeployment.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/registerDeployments.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/transferBalance.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/transferFullBalance.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/unwrapResultOrDefault.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/unwrapResultOrError.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/useBalance.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/useContract.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/useInkathon.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/usePSP22Balances.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/useRegisteredContract.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/watchBalance.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/functions/watchPSP22Balances.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/ChainAsset.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/SubstrateChain.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/SubstrateDeployment.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/SubstrateWallet.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/UseInkathonError.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/UseInkathonProviderProps.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/BalanceData.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/BalanceFormatterOptions.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/ContractTxResult.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/ExstrinsicThrowErrorMessage.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/PSP22BalanceData.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/PolkadotBalanceFormatterOptions.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/TokenData.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/TransferBalanceResult.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/UseInkathonProviderContextType.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/agungTestnet.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/alephzero.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/alephzeroSigner.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/alephzeroTestnet.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/allSubstrateChains.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/allSubstrateWallets.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/amplitude.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/amplitudeTestnet.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/astar.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/bitCountryAlphaTestnet.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/development.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/khala.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/nightly.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/nightlyConnect.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/nova.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/pendulum.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/phala.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/phalaPOC5Testnet.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/polkadotjs.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/psp22Abi.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/rococo.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/shibuya.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/shiden.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/subwallet.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/t0rnTestnet.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/talisman.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@scio-labs/use-inkathon",
"author": "Scio Labs <[email protected]> (https://scio.xyz)",
"version": "0.4.4",
"version": "0.5.0",
"description": "Typesafe React Hooks abstracting functionality by polkadot.js for working with Substrate-based networks and ink! Smart Contracts.",
"homepage": "https://inkathon.xyz",
"license": "GPL-3.0",
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/decodeOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export function decodeOutput(
? JSON.stringify(output.Err, null, 2)
: output.Err?.toString() ?? 'Error'
: output !== 'Ok'
? output?.toString() || 'Error'
: 'Error'
? output?.toString() || 'Error'
: 'Error'

const okText = isOk(r)
? typeof output === 'object'
Expand Down

0 comments on commit 9818f1f

Please sign in to comment.