Introduced support for multiple endpoints. The client now rotates between provided endpoints in case of connection issues.
Added two options for introspection on protocol status:
Pass a statusChange callback when creating the client to receive updates on the connection status.
Call the getStatus function on the WsJsonRpcProvider to retrieve the current status of the protocol layer.
Changed
WS Provider:
The client can now proactively trigger a switch to a different endpoint, giving users more control over which endpoint to use.
Fixed
If a connections doesn't open in a timely manner, then the client will try to reconnect with the next endpoint.
pjs-signer: Fix incorrect PJS injected account type
chains: Update lightSyncState
WS Provider:
Automatic timeout handling: the client will now timeout if the connection to the RPC doesn't open in a timely manner and will attempt to reconnect with the next available RPC endpoint.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot will merge this PR once CI passes on it, as requested by @wirednkod.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps polkadot-api from 1.3.3 to 1.4.0.
Release notes
Sourced from polkadot-api's releases.
Commits
a6b40cd
polkadot-api@1.4.0 (#766)fdd25ec
CHANGELOGs4ea1fa5
feat(ws-provider): new APIs and improvements3738123
fix(chains): updatelightSyncState
(#765)685cbf9
chore: update dependencies (#764)81d42b2
fix(codegen): type collision with compact numbers (#763)37dedd4
feat(client): addgetUnsafeApi
(#759)58f8629
fix(json-rpc-provider-proxy): various improvements (#757)f6f7792
chore: fix pnpm lock53c9110
feat(client): addumd
export (#749)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot will merge this PR once CI passes on it, as requested by @wirednkod.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show