Compare commits

..
20 Commits
Author SHA1 Message Date
github-actions[bot] fca68ae286 [CI Skip] release/stable 10.11.1
skip-checks: true
2023-11-18 08:18:39 +00:00
Jaco efc4a291b1 10.11.1 (#5759) 2023-11-18 10:11:07 +02:00
github-actions[bot] ed14218205 [CI Skip] bump/beta 10.10.2-8-x
skip-checks: true
2023-11-18 07:58:45 +00:00
Jaco 4ec727ed6b Bump common (#5758) 2023-11-18 09:51:14 +02:00
github-actions[bot] a1ccedf76e [CI Skip] bump/beta 10.10.2-7-x
skip-checks: true
2023-11-18 06:56:19 +00:00
Jaco ec1f6ca5f5 Add SkipCheckIfFeeless signed extension (#5756) 2023-11-18 08:48:42 +02:00
github-actions[bot] dcca12bc23 [CI Skip] bump/beta 10.10.2-6-x
skip-checks: true
2023-11-17 15:16:05 +00:00
Jaco d9d0d7b0c8 Add known intrablockEntropy storage key (#5754) 2023-11-17 17:08:33 +02:00
github-actions[bot] 1a5de033e6 [CI Skip] bump/beta 10.10.2-5-x
skip-checks: true
2023-11-17 08:49:00 +00:00
Jaco 3460a74f7e Bump dev deps, drop Node 16 (#5753) 2023-11-17 10:41:28 +02:00
github-actions[bot] 56eee35e05 [CI Skip] bump/beta 10.10.2-4-x
skip-checks: true
2023-11-16 07:33:57 +00:00
Alberto Nicolas Penayo bc81ca45ef fix: ChargeAssetTxPayment to work with Asset Conversion on Westend's and Kusama's Asset Hubs (#5752)
* fix: added type override for AssetConversion

* fix: modified ChargeAssetTxPayment SE for AssetHub

* fixed ChargeAssetTxPayment for AssetConversion

* ran yarn lint

* added default type for AssetConversion

* added default type TAssetConversion

* ran yarn lint
2023-11-16 09:26:21 +02:00
github-actions[bot] 7a8a4f1c64 [CI Skip] bump/beta 10.10.2-3-x
skip-checks: true
2023-11-02 08:46:25 +00:00
xiaolou86 4c811a3fdd Fix typos (#5747) 2023-11-02 10:36:36 +02:00
github-actions[bot] 6fcd984205 [CI Skip] bump/beta 10.10.2-2-x
skip-checks: true
2023-10-23 08:40:00 +00:00
Jaco 62bbf09f5c Bump dev deps (#5743) 2023-10-23 11:28:37 +03:00
github-actions[bot] dea14bcfc4 [CI Skip] bump/beta 10.10.2-1-x
skip-checks: true
2023-10-19 02:40:59 +00:00
Serban Iorgaandgithub-actions[bot] 5246a6771c Fix beefy::subscribeJustifications() return type (#5740)
* Fix beefy::subscribeJustifications() return type

* yarn build

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-19 05:31:59 +03:00
github-actions[bot] bc2a51e28e [CI Skip] bump/beta 10.10.2-0-x
skip-checks: true
2023-10-15 10:56:57 +00:00
Jaco dd085cee79 Bump TS (#5739) 2023-10-15 13:43:45 +03:00
60 changed files with 1117 additions and 853 deletions
+15
View File
@@ -1,5 +1,20 @@
# CHANGELOG # CHANGELOG
## 10.11.1 Nov 18, 2023
Contributed:
- Support for latest `ChargeAssetTxPayment` (Thanks to https://github.com/bee344)
- Support for latest `beefy::subscribeJustifications()` (Thanks to https://github.com/serban300)
Changes:
- Add known `intrablockEntropy` storage key
- Add support for `SkipCheckIfFeeless` signed extension
- Ensure all usages of `balances.transfer` (in tests) have been removed
- Drop support for Node 16 (EOL 11 Sep 2023)
## 10.10.1 Oct 14, 2023 ## 10.10.1 Oct 14, 2023
Contributed: Contributed:
+4 -1
View File
@@ -1,4 +1,4 @@
3498 Jaco 10.10.1 (#5738) 3505 Jaco 10.11.1 (#5759)
83 Amaury Martiny StatementKind: Regular and Saft (#2303) 83 Amaury Martiny StatementKind: Regular and Saft (#2303)
37 Keith Ingram Update contract types and rpc (#4541) 37 Keith Ingram Update contract types and rpc (#4541)
35 Stefanie Doll Updated child storage parameters (#1709) 35 Stefanie Doll Updated child storage parameters (#1709)
@@ -50,6 +50,7 @@
2 Zannis Kalampoukis fix: Typegen handles structs and vectors of structs without erroring (#4743) 2 Zannis Kalampoukis fix: Typegen handles structs and vectors of structs without erroring (#4743)
2 扩散性百万甜面包 Typo, deocrateMethod -> decorateMethod (#1594) 2 扩散性百万甜面包 Typo, deocrateMethod -> decorateMethod (#1594)
1 Alan Sapede Adds Eth feeHistory & maxPriorityFeePerGas rpc (#4956) 1 Alan Sapede Adds Eth feeHistory & maxPriorityFeePerGas rpc (#4956)
1 Alberto Nicolas Penayo fix: ChargeAssetTxPayment to work with Asset Conversion on Westend's and Kusama's Asset Hubs (#5752)
1 Aleš Ferlan fix: use H160 for address in getTransactionCount (#5472) 1 Aleš Ferlan fix: use H160 for address in getTransactionCount (#5472)
1 Brad Larson [NEW] Support for custom headers with providers (#2423) 1 Brad Larson [NEW] Support for custom headers with providers (#2423)
1 Btwiuse Arch Add side effect check workaround (#4994) (#5009) 1 Btwiuse Arch Add side effect check workaround (#4994) (#5009)
@@ -113,6 +114,7 @@
1 satellitex Add traits replace rules. for invalid cases `::<type>` and `<type>::`. (#885) 1 satellitex Add traits replace rules. for invalid cases `::<type>` and `<type>::`. (#885)
1 Satyam Agrawal update as per the 0.97.0-beta.38 release (#1617) 1 Satyam Agrawal update as per the 0.97.0-beta.38 release (#1617)
1 Sean Young Solang requires u256 and i256 types (#2752) 1 Sean Young Solang requires u256 and i256 types (#2752)
1 Serban Iorga Fix `beefy::subscribeJustifications()` return type (#5740)
1 serge make WS provider timeout configurable (#4758) 1 serge make WS provider timeout configurable (#4758)
1 Sergei Pepyakin INK! -> ink! (#1347) 1 Sergei Pepyakin INK! -> ink! (#1347)
1 Shunji Zhan small polish (#5276) 1 Shunji Zhan small polish (#5276)
@@ -121,6 +123,7 @@
1 Tim B added EthRTApiV5 ifaces (#5680) 1 Tim B added EthRTApiV5 ifaces (#5680)
1 WoeOm adapt Darwinia, Crab Network types (#3498) 1 WoeOm adapt Darwinia, Crab Network types (#3498)
1 Xat_MassacrE Fix packages/types/src/codec/utils/encodeTypes.ts encodeSubTypes bug (#1544) 1 Xat_MassacrE Fix packages/types/src/codec/utils/encodeTypes.ts encodeSubTypes bug (#1544)
1 xiaolou86 Fix typos (#5747)
1 yjh fix MetadataVersioned.asV12 (#2983) 1 yjh fix MetadataVersioned.asV12 (#2983)
1 Yuri fixes #3693 Fix uniques return types (#3694) 1 Yuri fixes #3693 Fix uniques return types (#3694)
1 Zeke Mostov fix: Allow sudo for polkadot indexed proxy enum (#3286) 1 Zeke Mostov fix: Allow sudo for polkadot indexed proxy enum (#3286)
+6 -6
View File
@@ -14,10 +14,10 @@
}, },
"sideEffects": false, "sideEffects": false,
"type": "module", "type": "module",
"version": "10.10.1", "version": "10.11.1",
"versions": { "versions": {
"git": "10.10.1", "git": "10.11.1",
"npm": "10.10.1" "npm": "10.11.1"
}, },
"workspaces": [ "workspaces": [
"packages/*" "packages/*"
@@ -40,11 +40,11 @@
"test:one": "polkadot-dev-run-test --env node" "test:one": "polkadot-dev-run-test --env node"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/dev": "^0.76.29", "@polkadot/dev": "^0.77.1",
"@polkadot/typegen": "workspace:packages/typegen", "@polkadot/typegen": "workspace:packages/typegen",
"@types/node": "^20.8.6" "@types/node": "^20.9.1"
}, },
"resolutions": { "resolutions": {
"typescript": "^5.1.6" "typescript": "^5.2.2"
} }
} }
+8 -8
View File
@@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/api/issues", "bugs": "https://github.com/polkadot-js/api/issues",
"description": "API generated augmentation", "description": "API generated augmentation",
"engines": { "engines": {
"node": ">=16" "node": ">=18"
}, },
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-augment#readme", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-augment#readme",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -18,15 +18,15 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.10.1", "version": "10.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/api-base": "10.10.1", "@polkadot/api-base": "10.11.1",
"@polkadot/rpc-augment": "10.10.1", "@polkadot/rpc-augment": "10.11.1",
"@polkadot/types": "10.10.1", "@polkadot/types": "10.11.1",
"@polkadot/types-augment": "10.10.1", "@polkadot/types-augment": "10.11.1",
"@polkadot/types-codec": "10.10.1", "@polkadot/types-codec": "10.11.1",
"@polkadot/util": "^12.5.1", "@polkadot/util": "^12.6.1",
"tslib": "^2.6.2" "tslib": "^2.6.2"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.10.1' }; export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.11.1' };
+5 -5
View File
@@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/api/issues", "bugs": "https://github.com/polkadot-js/api/issues",
"description": "Interfaces for interacting with contracts and contract ABIs", "description": "Interfaces for interacting with contracts and contract ABIs",
"engines": { "engines": {
"node": ">=16" "node": ">=18"
}, },
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-base#readme", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-base#readme",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -18,12 +18,12 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.10.1", "version": "10.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/rpc-core": "10.10.1", "@polkadot/rpc-core": "10.11.1",
"@polkadot/types": "10.10.1", "@polkadot/types": "10.11.1",
"@polkadot/util": "^12.5.1", "@polkadot/util": "^12.6.1",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"tslib": "^2.6.2" "tslib": "^2.6.2"
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.10.1' }; export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.11.1' };
+1 -1
View File
@@ -16,7 +16,7 @@ export interface SignerOptions {
nonce: AnyNumber | Codec; nonce: AnyNumber | Codec;
signer?: Signer; signer?: Signer;
tip?: AnyNumber; tip?: AnyNumber;
assetId?: AnyNumber; assetId?: AnyNumber | object;
} }
export type SubmittableDryRunResult<ApiType extends ApiTypes> = export type SubmittableDryRunResult<ApiType extends ApiTypes> =
+11 -11
View File
@@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/api/issues", "bugs": "https://github.com/polkadot-js/api/issues",
"description": "Interfaces for interacting with contracts and contract ABIs", "description": "Interfaces for interacting with contracts and contract ABIs",
"engines": { "engines": {
"node": ">=16" "node": ">=18"
}, },
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -18,21 +18,21 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.10.1", "version": "10.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/api": "10.10.1", "@polkadot/api": "10.11.1",
"@polkadot/api-augment": "10.10.1", "@polkadot/api-augment": "10.11.1",
"@polkadot/types": "10.10.1", "@polkadot/types": "10.11.1",
"@polkadot/types-codec": "10.10.1", "@polkadot/types-codec": "10.11.1",
"@polkadot/types-create": "10.10.1", "@polkadot/types-create": "10.11.1",
"@polkadot/util": "^12.5.1", "@polkadot/util": "^12.6.1",
"@polkadot/util-crypto": "^12.5.1", "@polkadot/util-crypto": "^12.6.1",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"tslib": "^2.6.2" "tslib": "^2.6.2"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/api-augment": "10.10.1", "@polkadot/api-augment": "10.11.1",
"@polkadot/keyring": "^12.5.1" "@polkadot/keyring": "^12.6.1"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.10.1' }; export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.11.1' };
+15 -15
View File
@@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/api/issues", "bugs": "https://github.com/polkadot-js/api/issues",
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
"engines": { "engines": {
"node": ">=16" "node": ">=18"
}, },
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -18,25 +18,25 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.10.1", "version": "10.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/api": "10.10.1", "@polkadot/api": "10.11.1",
"@polkadot/api-augment": "10.10.1", "@polkadot/api-augment": "10.11.1",
"@polkadot/api-base": "10.10.1", "@polkadot/api-base": "10.11.1",
"@polkadot/rpc-core": "10.10.1", "@polkadot/rpc-core": "10.11.1",
"@polkadot/types": "10.10.1", "@polkadot/types": "10.11.1",
"@polkadot/types-codec": "10.10.1", "@polkadot/types-codec": "10.11.1",
"@polkadot/util": "^12.5.1", "@polkadot/util": "^12.6.1",
"@polkadot/util-crypto": "^12.5.1", "@polkadot/util-crypto": "^12.6.1",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"tslib": "^2.6.2" "tslib": "^2.6.2"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/api": "10.10.1", "@polkadot/api": "10.11.1",
"@polkadot/api-augment": "10.10.1", "@polkadot/api-augment": "10.11.1",
"@polkadot/rpc-augment": "10.10.1", "@polkadot/rpc-augment": "10.11.1",
"@polkadot/rpc-provider": "10.10.1", "@polkadot/rpc-provider": "10.11.1",
"@polkadot/types-support": "10.10.1" "@polkadot/types-support": "10.11.1"
} }
} }
@@ -74,7 +74,7 @@ describe('bounties derive', () => {
}); });
it('creates proposal', function () { it('creates proposal', function () {
expect(createProposal(api.tx.balances.transfer('5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z', 1))).toBeTruthy(); expect(createProposal(api.tx.balances.transferAllowDeath('5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z', 1))).toBeTruthy();
}); });
it('combines bounties with descriptions', async () => { it('combines bounties with descriptions', async () => {
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '10.10.1' }; export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '10.11.1' };
+18 -18
View File
@@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/api/issues", "bugs": "https://github.com/polkadot-js/api/issues",
"description": "Promise and RxJS wrappers around the Polkadot JS RPC", "description": "Promise and RxJS wrappers around the Polkadot JS RPC",
"engines": { "engines": {
"node": ">=16" "node": ">=18"
}, },
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -18,29 +18,29 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.10.1", "version": "10.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/api-augment": "10.10.1", "@polkadot/api-augment": "10.11.1",
"@polkadot/api-base": "10.10.1", "@polkadot/api-base": "10.11.1",
"@polkadot/api-derive": "10.10.1", "@polkadot/api-derive": "10.11.1",
"@polkadot/keyring": "^12.5.1", "@polkadot/keyring": "^12.6.1",
"@polkadot/rpc-augment": "10.10.1", "@polkadot/rpc-augment": "10.11.1",
"@polkadot/rpc-core": "10.10.1", "@polkadot/rpc-core": "10.11.1",
"@polkadot/rpc-provider": "10.10.1", "@polkadot/rpc-provider": "10.11.1",
"@polkadot/types": "10.10.1", "@polkadot/types": "10.11.1",
"@polkadot/types-augment": "10.10.1", "@polkadot/types-augment": "10.11.1",
"@polkadot/types-codec": "10.10.1", "@polkadot/types-codec": "10.11.1",
"@polkadot/types-create": "10.10.1", "@polkadot/types-create": "10.11.1",
"@polkadot/types-known": "10.10.1", "@polkadot/types-known": "10.11.1",
"@polkadot/util": "^12.5.1", "@polkadot/util": "^12.6.1",
"@polkadot/util-crypto": "^12.5.1", "@polkadot/util-crypto": "^12.6.1",
"eventemitter3": "^5.0.1", "eventemitter3": "^5.0.1",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"tslib": "^2.6.2" "tslib": "^2.6.2"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/api-augment": "10.10.1", "@polkadot/api-augment": "10.11.1",
"@polkadot/types-support": "10.10.1" "@polkadot/types-support": "10.11.1"
} }
} }
+1 -1
View File
@@ -219,7 +219,7 @@ export abstract class Getters<ApiType extends ApiTypes> extends Init<ApiType> im
* *
* ```javascript * ```javascript
* api.tx.balances * api.tx.balances
* .transfer(<recipientId>, <balance>) * .transferAllowDeath(<recipientId>, <balance>)
* .signAndSend(<keyPair>, ({status}) => { * .signAndSend(<keyPair>, ({status}) => {
* console.log('tx status', status.asFinalized.toHex()); * console.log('tx status', status.asFinalized.toHex());
* }); * });
+5 -5
View File
@@ -243,7 +243,7 @@ function types (api: ApiPromise): void {
async function tx (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<void> { async function tx (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<void> {
// transfer, also allows for bigint inputs here // transfer, also allows for bigint inputs here
const transfer = api.tx.balances.transfer(pairs.bob.address, BigInt(123456789)); const transfer = api.tx.balances.transferAllowDeath(pairs.bob.address, BigInt(123456789));
console.log('transfer casted', transfer as IMethod<AnyTuple>, transfer as IExtrinsic<AnyTuple>); console.log('transfer casted', transfer as IMethod<AnyTuple>, transfer as IExtrinsic<AnyTuple>);
@@ -254,19 +254,19 @@ async function tx (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<voi
const nonce = await api.query.system['accountNonce']<Index>(pairs.alice.address); const nonce = await api.query.system['accountNonce']<Index>(pairs.alice.address);
(await api.tx.balances (await api.tx.balances
.transfer(pairs.bob.address, 12345) .transferAllowDeath(pairs.bob.address, 12345)
.signAndSend(pairs.alice, { nonce }) .signAndSend(pairs.alice, { nonce })
).toHex(); ).toHex();
// just with the callback // just with the callback
await api.tx.balances await api.tx.balances
.transfer(pairs.bob.address, 12345) .transferAllowDeath(pairs.bob.address, 12345)
.signAndSend(pairs.alice, ({ status }: SubmittableResult) => console.log(status.type)); .signAndSend(pairs.alice, ({ status }: SubmittableResult) => console.log(status.type));
// with options and the callback // with options and the callback
const nonce2 = await api.query.system['accountNonce'](pairs.alice.address); const nonce2 = await api.query.system['accountNonce'](pairs.alice.address);
const unsub2 = await api.tx.balances const unsub2 = await api.tx.balances
.transfer(pairs.bob.address, 12345) .transferAllowDeath(pairs.bob.address, 12345)
.signAndSend(pairs.alice, { nonce: nonce2 }, ({ status }: SubmittableResult): void => { .signAndSend(pairs.alice, { nonce: nonce2 }, ({ status }: SubmittableResult): void => {
console.log('transfer status:', status.type); console.log('transfer status:', status.type);
@@ -282,7 +282,7 @@ async function tx (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<voi
await api.tx.democracy['proxyVote'](123, { Split: { nay: 456, yay: 123 } }).signAndSend(pairs.alice); await api.tx.democracy['proxyVote'](123, { Split: { nay: 456, yay: 123 } }).signAndSend(pairs.alice);
// is // is
if (api.tx.balances.transfer.is(second)) { if (api.tx.balances.transferAllowDeath.is(second)) {
const [recipientId, balance] = second.args; const [recipientId, balance] = second.args;
// should be LookupSource & Balance types // should be LookupSource & Balance types
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '10.10.1' }; export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '10.11.1' };
+1 -1
View File
@@ -95,7 +95,7 @@ import { toRxMethod } from './decorateMethod.js';
* switchMap(([nonce]) => * switchMap(([nonce]) =>
* api.tx.balances * api.tx.balances
* // create transfer * // create transfer
* .transfer(keyring.bob.address, 12345) * .transferAllowDeath(keyring.bob.address, 12345)
* // sign the transaction * // sign the transaction
* .sign(keyring.alice, { nonce }) * .sign(keyring.alice, { nonce })
* // send the transaction * // send the transaction
+6 -6
View File
@@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/api/issues", "bugs": "https://github.com/polkadot-js/api/issues",
"description": "RPC generated augmentation", "description": "RPC generated augmentation",
"engines": { "engines": {
"node": ">=16" "node": ">=18"
}, },
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-augment#readme", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-augment#readme",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -18,13 +18,13 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.10.1", "version": "10.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/rpc-core": "10.10.1", "@polkadot/rpc-core": "10.11.1",
"@polkadot/types": "10.10.1", "@polkadot/types": "10.11.1",
"@polkadot/types-codec": "10.10.1", "@polkadot/types-codec": "10.11.1",
"@polkadot/util": "^12.5.1", "@polkadot/util": "^12.6.1",
"tslib": "^2.6.2" "tslib": "^2.6.2"
} }
} }
+3 -3
View File
@@ -11,7 +11,7 @@ import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f6
import type { AnyNumber, Codec } from '@polkadot/types-codec/types'; import type { AnyNumber, Codec } from '@polkadot/types-codec/types';
import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author'; import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
import type { EpochAuthorship } from '@polkadot/types/interfaces/babe'; import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy'; import type { BeefyVersionedFinalityProof } from '@polkadot/types/interfaces/beefy';
import type { BlockHash } from '@polkadot/types/interfaces/chain'; import type { BlockHash } from '@polkadot/types/interfaces/chain';
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate'; import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
@@ -80,9 +80,9 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
**/ **/
getFinalizedHead: AugmentedRpc<() => Observable<H256>>; getFinalizedHead: AugmentedRpc<() => Observable<H256>>;
/** /**
* Returns the block most recently finalized by BEEFY, alongside side its justification. * Returns the block most recently finalized by BEEFY, alongside its justification.
**/ **/
subscribeJustifications: AugmentedRpc<() => Observable<BeefySignedCommitment>>; subscribeJustifications: AugmentedRpc<() => Observable<BeefyVersionedFinalityProof>>;
}; };
chain: { chain: {
/** /**
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '10.10.1' }; export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '10.11.1' };
+8 -8
View File
@@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/api/issues", "bugs": "https://github.com/polkadot-js/api/issues",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"engines": { "engines": {
"node": ">=16" "node": ">=18"
}, },
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -18,18 +18,18 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.10.1", "version": "10.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/rpc-augment": "10.10.1", "@polkadot/rpc-augment": "10.11.1",
"@polkadot/rpc-provider": "10.10.1", "@polkadot/rpc-provider": "10.11.1",
"@polkadot/types": "10.10.1", "@polkadot/types": "10.11.1",
"@polkadot/util": "^12.5.1", "@polkadot/util": "^12.6.1",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"tslib": "^2.6.2" "tslib": "^2.6.2"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/keyring": "^12.5.1", "@polkadot/keyring": "^12.6.1",
"@polkadot/rpc-augment": "10.10.1" "@polkadot/rpc-augment": "10.11.1"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '10.10.1' }; export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '10.11.1' };
+13 -13
View File
@@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/api/issues", "bugs": "https://github.com/polkadot-js/api/issues",
"description": "Transport providers for the API", "description": "Transport providers for the API",
"engines": { "engines": {
"node": ">=16" "node": ">=18"
}, },
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -18,26 +18,26 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.10.1", "version": "10.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/keyring": "^12.5.1", "@polkadot/keyring": "^12.6.1",
"@polkadot/types": "10.10.1", "@polkadot/types": "10.11.1",
"@polkadot/types-support": "10.10.1", "@polkadot/types-support": "10.11.1",
"@polkadot/util": "^12.5.1", "@polkadot/util": "^12.6.1",
"@polkadot/util-crypto": "^12.5.1", "@polkadot/util-crypto": "^12.6.1",
"@polkadot/x-fetch": "^12.5.1", "@polkadot/x-fetch": "^12.6.1",
"@polkadot/x-global": "^12.5.1", "@polkadot/x-global": "^12.6.1",
"@polkadot/x-ws": "^12.5.1", "@polkadot/x-ws": "^12.6.1",
"eventemitter3": "^5.0.1", "eventemitter3": "^5.0.1",
"mock-socket": "^9.3.1", "mock-socket": "^9.3.1",
"nock": "^13.3.4", "nock": "^13.3.8",
"tslib": "^2.6.2" "tslib": "^2.6.2"
}, },
"devDependencies": { "devDependencies": {
"@substrate/connect": "0.7.33" "@substrate/connect": "0.7.35"
}, },
"optionalDependencies": { "optionalDependencies": {
"@substrate/connect": "0.7.33" "@substrate/connect": "0.7.35"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '10.10.1' }; export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '10.11.1' };
@@ -99,7 +99,7 @@ export class ScProvider implements ProviderInterface {
throw new Error('Already connected!'); throw new Error('Already connected!');
} }
// it could happen that after emitting `disconnected` due to the fact taht // it could happen that after emitting `disconnected` due to the fact that
// smoldot is syncing, the consumer tries to reconnect after a certain amount // smoldot is syncing, the consumer tries to reconnect after a certain amount
// of time... In which case we want to make sure that we don't create a new // of time... In which case we want to make sure that we don't create a new
// chain. // chain.
+15 -15
View File
@@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/api/issues", "bugs": "https://github.com/polkadot-js/api/issues",
"description": "Type generation scripts", "description": "Type generation scripts",
"engines": { "engines": {
"node": ">=16" "node": ">=18"
}, },
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -18,7 +18,7 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.10.1", "version": "10.11.1",
"main": "index.js", "main": "index.js",
"bin": { "bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs", "polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
@@ -28,23 +28,23 @@
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs" "polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
}, },
"dependencies": { "dependencies": {
"@polkadot/api": "10.10.1", "@polkadot/api": "10.11.1",
"@polkadot/api-augment": "10.10.1", "@polkadot/api-augment": "10.11.1",
"@polkadot/rpc-augment": "10.10.1", "@polkadot/rpc-augment": "10.11.1",
"@polkadot/rpc-provider": "10.10.1", "@polkadot/rpc-provider": "10.11.1",
"@polkadot/types": "10.10.1", "@polkadot/types": "10.11.1",
"@polkadot/types-augment": "10.10.1", "@polkadot/types-augment": "10.11.1",
"@polkadot/types-codec": "10.10.1", "@polkadot/types-codec": "10.11.1",
"@polkadot/types-create": "10.10.1", "@polkadot/types-create": "10.11.1",
"@polkadot/types-support": "10.10.1", "@polkadot/types-support": "10.11.1",
"@polkadot/util": "^12.5.1", "@polkadot/util": "^12.6.1",
"@polkadot/util-crypto": "^12.5.1", "@polkadot/util-crypto": "^12.6.1",
"@polkadot/x-ws": "^12.5.1", "@polkadot/x-ws": "^12.6.1",
"handlebars": "^4.7.8", "handlebars": "^4.7.8",
"tslib": "^2.6.2", "tslib": "^2.6.2",
"yargs": "^17.7.2" "yargs": "^17.7.2"
}, },
"devDependencies": { "devDependencies": {
"@types/yargs": "^17.0.28" "@types/yargs": "^17.0.31"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '10.10.1' }; export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '10.11.1' };
+5 -5
View File
@@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/api/issues", "bugs": "https://github.com/polkadot-js/api/issues",
"description": "Types generated augmentation", "description": "Types generated augmentation",
"engines": { "engines": {
"node": ">=16" "node": ">=18"
}, },
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-augment#readme", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-augment#readme",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -18,12 +18,12 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.10.1", "version": "10.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/types": "10.10.1", "@polkadot/types": "10.11.1",
"@polkadot/types-codec": "10.10.1", "@polkadot/types-codec": "10.11.1",
"@polkadot/util": "^12.5.1", "@polkadot/util": "^12.6.1",
"tslib": "^2.6.2" "tslib": "^2.6.2"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '10.10.1' }; export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '10.11.1' };
@@ -7,6 +7,7 @@ import '@polkadot/types/types/registry';
import type { Data, StorageKey } from '@polkadot/types'; import type { Data, StorageKey } from '@polkadot/types';
import type { BitVec, Bool, Bytes, F32, F64, I128, I16, I256, I32, I64, I8, ISize, Json, Null, OptionBool, Raw, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, f32, f64, i128, i16, i256, i32, i64, i8, isize, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types-codec'; import type { BitVec, Bool, Bytes, F32, F64, I128, I16, I256, I32, I64, I8, ISize, Json, Null, OptionBool, Raw, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, f32, f64, i128, i16, i256, i32, i64, i8, isize, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types-codec';
import type { TAssetConversion } from '@polkadot/types/interfaces/assetConversion';
import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets'; import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets';
import type { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations'; import type { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations';
import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura'; import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura';
@@ -14,7 +15,7 @@ import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interface
import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship'; import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeGenesisConfiguration, BabeGenesisConfigurationV1, BabeWeight, Epoch, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, OpaqueKeyOwnershipProof, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe'; import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeGenesisConfiguration, BabeGenesisConfigurationV1, BabeWeight, Epoch, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, OpaqueKeyOwnershipProof, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe';
import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, ReserveData, ReserveIdentifier, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances'; import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, ReserveData, ReserveIdentifier, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances';
import type { BeefyAuthoritySet, BeefyCommitment, BeefyEquivocationProof, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefyPayloadId, BeefySignedCommitment, BeefyVoteMessage, MmrRootHash, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy'; import type { BeefyAuthoritySet, BeefyCommitment, BeefyEquivocationProof, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefyPayloadId, BeefySignedCommitment, BeefyVersionedFinalityProof, BeefyVoteMessage, MmrRootHash, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
import type { BenchmarkBatch, BenchmarkConfig, BenchmarkList, BenchmarkMetadata, BenchmarkParameter, BenchmarkResult } from '@polkadot/types/interfaces/benchmark'; import type { BenchmarkBatch, BenchmarkConfig, BenchmarkList, BenchmarkMetadata, BenchmarkParameter, BenchmarkResult } from '@polkadot/types/interfaces/benchmark';
import type { CheckInherentsResult, InherentData, InherentIdentifier } from '@polkadot/types/interfaces/blockbuilder'; import type { CheckInherentsResult, InherentData, InherentIdentifier } from '@polkadot/types/interfaces/blockbuilder';
import type { BridgeMessageId, BridgedBlockHash, BridgedBlockNumber, BridgedHeader, CallOrigin, ChainId, DeliveredMessages, DispatchFeePayment, InboundLaneData, InboundRelayer, InitializationData, LaneId, MessageData, MessageKey, MessageNonce, MessagesDeliveryProofOf, MessagesProofOf, OperatingMode, OutboundLaneData, OutboundMessageFee, OutboundPayload, Parameter, RelayerId, UnrewardedRelayer, UnrewardedRelayersState } from '@polkadot/types/interfaces/bridges'; import type { BridgeMessageId, BridgedBlockHash, BridgedBlockNumber, BridgedHeader, CallOrigin, ChainId, DeliveredMessages, DispatchFeePayment, InboundLaneData, InboundRelayer, InitializationData, LaneId, MessageData, MessageKey, MessageNonce, MessagesDeliveryProofOf, MessagesProofOf, OperatingMode, OutboundLaneData, OutboundMessageFee, OutboundPayload, Parameter, RelayerId, UnrewardedRelayer, UnrewardedRelayersState } from '@polkadot/types/interfaces/bridges';
@@ -159,6 +160,7 @@ declare module '@polkadot/types/types/registry' {
BeefyPayload: BeefyPayload; BeefyPayload: BeefyPayload;
BeefyPayloadId: BeefyPayloadId; BeefyPayloadId: BeefyPayloadId;
BeefySignedCommitment: BeefySignedCommitment; BeefySignedCommitment: BeefySignedCommitment;
BeefyVersionedFinalityProof: BeefyVersionedFinalityProof;
BeefyVoteMessage: BeefyVoteMessage; BeefyVoteMessage: BeefyVoteMessage;
BenchmarkBatch: BenchmarkBatch; BenchmarkBatch: BenchmarkBatch;
BenchmarkConfig: BenchmarkConfig; BenchmarkConfig: BenchmarkConfig;
@@ -1091,6 +1093,7 @@ declare module '@polkadot/types/types/registry' {
Tally: Tally; Tally: Tally;
TaskAddress: TaskAddress; TaskAddress: TaskAddress;
TAssetBalance: TAssetBalance; TAssetBalance: TAssetBalance;
TAssetConversion: TAssetConversion;
TAssetDepositBalance: TAssetDepositBalance; TAssetDepositBalance: TAssetDepositBalance;
Text: Text; Text: Text;
Timepoint: Timepoint; Timepoint: Timepoint;
+8 -8
View File
@@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/api/issues", "bugs": "https://github.com/polkadot-js/api/issues",
"description": "Implementation of the SCALE codec", "description": "Implementation of the SCALE codec",
"engines": { "engines": {
"node": ">=16" "node": ">=18"
}, },
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-codec#readme", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-codec#readme",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -18,17 +18,17 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.10.1", "version": "10.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/util": "^12.5.1", "@polkadot/util": "^12.6.1",
"@polkadot/x-bigint": "^12.5.1", "@polkadot/x-bigint": "^12.6.1",
"tslib": "^2.6.2" "tslib": "^2.6.2"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/types": "10.10.1", "@polkadot/types": "10.11.1",
"@polkadot/types-augment": "10.10.1", "@polkadot/types-augment": "10.11.1",
"@polkadot/types-support": "10.10.1", "@polkadot/types-support": "10.11.1",
"@polkadot/util-crypto": "^12.5.1" "@polkadot/util-crypto": "^12.6.1"
} }
} }
+1 -1
View File
@@ -35,7 +35,7 @@ function decodeOption (registry: Registry, Type: CodecClass, value?: unknown): C
// convert the actual value into known // convert the actual value into known
return new Type(registry, value.value); return new Type(registry, value.value);
} else if (isNull(value) || isUndefined(value) || value === '0x' || value instanceof None) { } else if (isNull(value) || isUndefined(value) || value === '0x' || value instanceof None) {
// anyhting empty we pass as-is // anything empty we pass as-is
return new None(registry); return new None(registry);
} else if (isU8a(value)) { } else if (isU8a(value)) {
// the isU8a check happens last in the if-tree - since the wrapped value // the isU8a check happens last in the if-tree - since the wrapped value
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '10.10.1' }; export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '10.11.1' };
+1 -1
View File
@@ -27,7 +27,7 @@ export type AnyU8a = Uint8Array | number[] | string;
export type UIntBitLength = 8 | 16 | 32 | 64 | 128 | 256; export type UIntBitLength = 8 | 16 | 32 | 64 | 128 | 256;
// The 520 here is a weird one - it is explicitly for a [u8; 65] as found as a EcdsaSignature, // The 520 here is a weird one - it is explicitly for a [u8; 65] as found as a EcdsaSignature,
// and 264 here is explicity for a [u8; 33] as found as EcdsaPublic key. // and 264 here is explicitly for a [u8; 33] as found as EcdsaPublic key.
// Likewise 160 is for [u8; 20], which is also a H160, i.e. an Ethereum address. Both these are // Likewise 160 is for [u8; 20], which is also a H160, i.e. an Ethereum address. Both these are
// as a result of the Polkadot claims module. (Technically we don't need the 520 in here) // as a result of the Polkadot claims module. (Technically we don't need the 520 in here)
export type U8aBitLength = 8 | 16 | 32 | 64 | 128 | 160 | 256 | 264 | 512 | 520 | 1024 | 2048; export type U8aBitLength = 8 | 16 | 32 | 64 | 128 | 160 | 256 | 264 | 512 | 520 | 1024 | 2048;
+5 -5
View File
@@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/api/issues", "bugs": "https://github.com/polkadot-js/api/issues",
"description": "Type creator helpers", "description": "Type creator helpers",
"engines": { "engines": {
"node": ">=16" "node": ">=18"
}, },
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-create#readme", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-create#readme",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -18,14 +18,14 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.10.1", "version": "10.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/types-codec": "10.10.1", "@polkadot/types-codec": "10.11.1",
"@polkadot/util": "^12.5.1", "@polkadot/util": "^12.6.1",
"tslib": "^2.6.2" "tslib": "^2.6.2"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/types": "10.10.1" "@polkadot/types": "10.11.1"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '10.10.1' }; export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '10.11.1' };
+1 -1
View File
@@ -1,3 +1,3 @@
# @polkadot/types-known # @polkadot/types-known
Specific known base type overrides (e.g. `Address`, etc) for chains & specs. This does not contain user-specfic types. Specific known base type overrides (e.g. `Address`, etc) for chains & specs. This does not contain user-specific types.
+8 -8
View File
@@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/api/issues", "bugs": "https://github.com/polkadot-js/api/issues",
"description": "Known type definitions", "description": "Known type definitions",
"engines": { "engines": {
"node": ">=16" "node": ">=18"
}, },
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -18,17 +18,17 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.10.1", "version": "10.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/networks": "^12.5.1", "@polkadot/networks": "^12.6.1",
"@polkadot/types": "10.10.1", "@polkadot/types": "10.11.1",
"@polkadot/types-codec": "10.10.1", "@polkadot/types-codec": "10.11.1",
"@polkadot/types-create": "10.10.1", "@polkadot/types-create": "10.11.1",
"@polkadot/util": "^12.5.1", "@polkadot/util": "^12.6.1",
"tslib": "^2.6.2" "tslib": "^2.6.2"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/api": "10.10.1" "@polkadot/api": "10.11.1"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '10.10.1' }; export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '10.11.1' };
+4 -2
View File
@@ -10,8 +10,10 @@ import { versioned as nodeTemplate } from './node-template.js';
import { versioned as polkadot } from './polkadot.js'; import { versioned as polkadot } from './polkadot.js';
import { versioned as rococo } from './rococo.js'; import { versioned as rococo } from './rococo.js';
import { versioned as shell } from './shell.js'; import { versioned as shell } from './shell.js';
import { versioned as statemine } from './statemine.js';
import { versioned as statemint } from './statemint.js'; import { versioned as statemint } from './statemint.js';
import { versioned as westend } from './westend.js'; import { versioned as westend } from './westend.js';
import { versioned as westmint } from './westmint.js';
// Type overrides for specific spec types & versions as given in runtimeVersion // Type overrides for specific spec types & versions as given in runtimeVersion
export const typesSpec: Record<string, OverrideVersionedType[]> = { export const typesSpec: Record<string, OverrideVersionedType[]> = {
@@ -22,8 +24,8 @@ export const typesSpec: Record<string, OverrideVersionedType[]> = {
polkadot, polkadot,
rococo, rococo,
shell, shell,
statemine: statemint, statemine,
statemint, statemint,
westend, westend,
westmint: statemint westmint
}; };
@@ -0,0 +1,62 @@
// Copyright 2017-2023 @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* eslint-disable sort-keys */
import type { OverrideVersionedType } from '@polkadot/types/types';
import { mapXcmTypes } from '@polkadot/types-create';
const sharedTypes = {
DispatchErrorModule: 'DispatchErrorModuleU8',
TAssetBalance: 'u128',
ProxyType: {
_enum: [
'Any',
'NonTransfer',
'CancelProxy',
'Assets',
'AssetOwner',
'AssetManager',
'Staking'
]
},
Weight: 'WeightV1'
};
// these are override types for Statemine, Westmint
export const versioned: OverrideVersionedType[] = [
{
minmax: [0, 3],
types: {
// Enum was modified mid-flight -
// https://github.com/paritytech/substrate/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
DispatchError: 'DispatchErrorPre6First',
...sharedTypes,
...mapXcmTypes('V0')
}
},
{
minmax: [4, 5],
types: {
// As above, see https://github.com/polkadot-js/api/issues/5301
DispatchError: 'DispatchErrorPre6First',
...sharedTypes,
...mapXcmTypes('V1')
}
},
{
// metadata V14
minmax: [500, 9999],
types: {
Weight: 'WeightV1',
TAssetConversion: 'Option<AssetId>'
}
},
{
minmax: [10000, undefined],
types: {
Weight: 'WeightV1'
}
}
];
+2 -1
View File
@@ -49,7 +49,8 @@ export const versioned: OverrideVersionedType[] = [
// metadata V14 // metadata V14
minmax: [500, undefined], minmax: [500, undefined],
types: { types: {
Weight: 'WeightV1' Weight: 'WeightV1',
TAssetConversion: 'Option<AssetId>'
} }
} }
// , // ,
+62
View File
@@ -0,0 +1,62 @@
// Copyright 2017-2023 @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* eslint-disable sort-keys */
import type { OverrideVersionedType } from '@polkadot/types/types';
import { mapXcmTypes } from '@polkadot/types-create';
const sharedTypes = {
DispatchErrorModule: 'DispatchErrorModuleU8',
TAssetBalance: 'u128',
ProxyType: {
_enum: [
'Any',
'NonTransfer',
'CancelProxy',
'Assets',
'AssetOwner',
'AssetManager',
'Staking'
]
},
Weight: 'WeightV1'
};
// these are override types for Statemine, Westmint
export const versioned: OverrideVersionedType[] = [
{
minmax: [0, 3],
types: {
// Enum was modified mid-flight -
// https://github.com/paritytech/substrate/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
DispatchError: 'DispatchErrorPre6First',
...sharedTypes,
...mapXcmTypes('V0')
}
},
{
minmax: [4, 5],
types: {
// As above, see https://github.com/polkadot-js/api/issues/5301
DispatchError: 'DispatchErrorPre6First',
...sharedTypes,
...mapXcmTypes('V1')
}
},
{
// metadata V14
minmax: [500, 9434],
types: {
Weight: 'WeightV1',
TAssetConversion: 'Option<AssetId>'
}
},
{
minmax: [9435, undefined],
types: {
Weight: 'WeightV1'
}
}
];
+3 -3
View File
@@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/api/issues", "bugs": "https://github.com/polkadot-js/api/issues",
"description": "Supporting files for types, mostly for testing", "description": "Supporting files for types, mostly for testing",
"engines": { "engines": {
"node": ">=16" "node": ">=18"
}, },
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-support#readme", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-support#readme",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -18,10 +18,10 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.10.1", "version": "10.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/util": "^12.5.1", "@polkadot/util": "^12.6.1",
"tslib": "^2.6.2" "tslib": "^2.6.2"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '10.10.1' }; export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '10.11.1' };
+10 -10
View File
@@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/api/issues", "bugs": "https://github.com/polkadot-js/api/issues",
"description": "Implementation of the Parity codec", "description": "Implementation of the Parity codec",
"engines": { "engines": {
"node": ">=16" "node": ">=18"
}, },
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -18,20 +18,20 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.10.1", "version": "10.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/keyring": "^12.5.1", "@polkadot/keyring": "^12.6.1",
"@polkadot/types-augment": "10.10.1", "@polkadot/types-augment": "10.11.1",
"@polkadot/types-codec": "10.10.1", "@polkadot/types-codec": "10.11.1",
"@polkadot/types-create": "10.10.1", "@polkadot/types-create": "10.11.1",
"@polkadot/util": "^12.5.1", "@polkadot/util": "^12.6.1",
"@polkadot/util-crypto": "^12.5.1", "@polkadot/util-crypto": "^12.6.1",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"tslib": "^2.6.2" "tslib": "^2.6.2"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/keyring": "^12.5.1", "@polkadot/keyring": "^12.6.1",
"@polkadot/types-support": "10.10.1" "@polkadot/types-support": "10.11.1"
} }
} }
@@ -33,7 +33,7 @@ describe('Extrinsic', (): void => {
'a90b' + // mortal era 'a90b' + // mortal era
'1101' + // nonce, compact 68 '1101' + // nonce, compact 68
'0700ac23fc06' + // tip, 0.03 KSM '0700ac23fc06' + // tip, 0.03 KSM
'0600' + // balances.transfer (on Kusama this was 0400, changed here to match metadata) '0600' + // balances.transferAllowDeath (on Kusama this was 0400, changed here to match metadata)
'00' + // MultiAddress, AccountId of recipient follows '00' + // MultiAddress, AccountId of recipient follows
'495e1e506f266418af07fa0c5c108dd436f2faa59fe7d9e54403779f5bbd7718' + // recipient '495e1e506f266418af07fa0c5c108dd436f2faa59fe7d9e54403779f5bbd7718' + // recipient
'0bc01eb1fc185f' // value, 104.560 KSM '0bc01eb1fc185f' // value, 104.560 KSM
@@ -61,7 +61,10 @@ describe('SignerPayload', (): void => {
}); });
it('handles Option<AssetId> correctly', (): void => { it('handles Option<AssetId> correctly', (): void => {
const test = new SignerPayload(registry, { assetId: 123 }); const test = new SignerPayload(registry, {
// eslint-disable-next-line sort-keys
assetId: { parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] } }
});
expect( expect(
[...test.keys()].includes('assetId') [...test.keys()].includes('assetId')
@@ -70,12 +73,18 @@ describe('SignerPayload', (): void => {
expect( expect(
// @ts-expect-error We don't have getters for this field // @ts-expect-error We don't have getters for this field
test.toPayload().assetId test.toPayload().assetId
).toEqual(123); ).toEqual({
// eslint-disable-next-line sort-keys
parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] }
});
expect( expect(
// @ts-expect-error We don't have getters for this field // @ts-expect-error We don't have getters for this field
new SignerPayload(registry, { assetId: 0 }).toPayload().assetId new SignerPayload(registry, { assetId: 0 }).toPayload().assetId
).toEqual(0); ).toEqual({
// eslint-disable-next-line sort-keys
parents: 0, interior: { here: null }
});
expect( expect(
// @ts-expect-error We don't have getters for this field // @ts-expect-error We don't have getters for this field
@@ -105,7 +114,11 @@ describe('SignerPayload', (): void => {
}); });
it('can be used as a feed to ExtrinsicPayload', (): void => { it('can be used as a feed to ExtrinsicPayload', (): void => {
const signer = new SignerPayload(registry, { ...TEST, assetId: 123 }).toPayload(); const signer = new SignerPayload(registry, {
...TEST,
// eslint-disable-next-line sort-keys
assetId: { parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] } }
}).toPayload();
const payload = registry.createType('ExtrinsicPayload', signer, { version: signer.version }); const payload = registry.createType('ExtrinsicPayload', signer, { version: signer.version });
expect(payload.era.toHex()).toEqual(TEST.era); expect(payload.era.toHex()).toEqual(TEST.era);
@@ -114,6 +127,10 @@ describe('SignerPayload', (): void => {
expect(payload.nonce.eq(TEST.nonce)).toBe(true); expect(payload.nonce.eq(TEST.nonce)).toBe(true);
expect(payload.tip.eq(TEST.tip)).toBe(true); expect(payload.tip.eq(TEST.tip)).toBe(true);
// @ts-expect-error assetId is of unknown type, so we don't know about "isSome" // @ts-expect-error assetId is of unknown type, so we don't know about "isSome"
expect(payload.inner?.get('assetId')?.isSome && payload.inner?.get('assetId')?.eq(123)).toBe(true); expect(payload.inner?.get('assetId')?.isSome && payload.inner?.get('assetId')
?.eq(registry.createType('MultiLocation', {
// eslint-disable-next-line sort-keys
parents: 0, interior: { X2: [{ palletInstance: 50 }, { generalIndex: 123 }] }
}))).toBe(true);
}); });
}); });
@@ -8,7 +8,7 @@ export const statemint: ExtDef = {
extrinsic: { extrinsic: {
tip: 'Compact<Balance>', tip: 'Compact<Balance>',
// eslint-disable-next-line sort-keys // eslint-disable-next-line sort-keys
assetId: 'Option<AssetId>' assetId: 'TAssetConversion'
}, },
payload: {} payload: {}
} }
@@ -14,13 +14,15 @@ const CheckMortality: ExtInfo = {
} }
}; };
export const substrate: ExtDef = { const ChargeTransactionPayment: ExtInfo = {
ChargeTransactionPayment: { extrinsic: {
extrinsic: { tip: 'Compact<Balance>'
tip: 'Compact<Balance>'
},
payload: {}
}, },
payload: {}
};
export const substrate: ExtDef = {
ChargeTransactionPayment,
CheckBlockGasLimit: emptyCheck, CheckBlockGasLimit: emptyCheck,
CheckEra: CheckMortality, CheckEra: CheckMortality,
CheckGenesis: { CheckGenesis: {
@@ -57,5 +59,6 @@ export const substrate: ExtDef = {
}, },
CheckWeight: emptyCheck, CheckWeight: emptyCheck,
LockStakingStatus: emptyCheck, LockStakingStatus: emptyCheck,
SkipCheckIfFeeless: ChargeTransactionPayment,
ValidateEquivocationReport: emptyCheck ValidateEquivocationReport: emptyCheck
}; };
@@ -44,7 +44,7 @@ describe('LookupSource', (): void => {
testDecode( testDecode(
'AccountIndex (mixed prefixes)', 'AccountIndex (mixed prefixes)',
registry.createType('IndicesLookupSource', '118r'), registry.createType('IndicesLookupSource', '118r'),
// NOTE Expected adress here is encoded with prefix 42, input above with 1 // NOTE Expected address here is encoded with prefix 42, input above with 1
'25GUyv' '25GUyv'
); );
testDecode( testDecode(
@@ -11,5 +11,7 @@ import { runtime } from './runtime.js';
export default { export default {
rpc: {}, rpc: {},
runtime, runtime,
types: {} types: {
TAssetConversion: 'Option<MultiLocation>'
}
} as Definitions; } as Definitions;
@@ -1,4 +1,10 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit // Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */ /* eslint-disable */
import type { Option } from '@polkadot/types-codec';
import type { MultiLocation } from '@polkadot/types/interfaces/xcm';
/** @name TAssetConversion */
export interface TAssetConversion extends Option<MultiLocation> {}
export type PHANTOM_ASSETCONVERSION = 'assetConversion'; export type PHANTOM_ASSETCONVERSION = 'assetConversion';
@@ -32,6 +32,12 @@ export default {
commitment: 'BeefyCommitment', commitment: 'BeefyCommitment',
signatures: 'Vec<Option<EcdsaSignature>>' signatures: 'Vec<Option<EcdsaSignature>>'
}, },
BeefyVersionedFinalityProof: {
_enum: {
V0: 'Null',
V1: 'BeefySignedCommitment'
}
},
BeefyNextAuthoritySet: { BeefyNextAuthoritySet: {
id: 'u64', id: 'u64',
len: 'u32', len: 'u32',
+2 -2
View File
@@ -10,13 +10,13 @@ export const rpc: DefinitionsRpc = {
type: 'H256' type: 'H256'
}, },
subscribeJustifications: { subscribeJustifications: {
description: 'Returns the block most recently finalized by BEEFY, alongside side its justification.', description: 'Returns the block most recently finalized by BEEFY, alongside its justification.',
params: [], params: [],
pubsub: [ pubsub: [
'justifications', 'justifications',
'subscribeJustifications', 'subscribeJustifications',
'unsubscribeJustifications' 'unsubscribeJustifications'
], ],
type: 'BeefySignedCommitment' type: 'BeefyVersionedFinalityProof'
} }
}; };
+9 -1
View File
@@ -1,7 +1,7 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit // Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */ /* eslint-disable */
import type { Bytes, Option, Struct, U8aFixed, Vec, u32, u64 } from '@polkadot/types-codec'; import type { Bytes, Enum, Option, Struct, U8aFixed, Vec, u32, u64 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types'; import type { ITuple } from '@polkadot/types-codec/types';
import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
import type { EcdsaSignature, Signature } from '@polkadot/types/interfaces/extrinsics'; import type { EcdsaSignature, Signature } from '@polkadot/types/interfaces/extrinsics';
@@ -49,6 +49,14 @@ export interface BeefySignedCommitment extends Struct {
readonly signatures: Vec<Option<EcdsaSignature>>; readonly signatures: Vec<Option<EcdsaSignature>>;
} }
/** @name BeefyVersionedFinalityProof */
export interface BeefyVersionedFinalityProof extends Enum {
readonly isV0: boolean;
readonly isV1: boolean;
readonly asV1: BeefySignedCommitment;
readonly type: 'V0' | 'V1';
}
/** @name BeefyVoteMessage */ /** @name BeefyVoteMessage */
export interface BeefyVoteMessage extends Struct { export interface BeefyVoteMessage extends Struct {
readonly commitment: BeefyCommitment; readonly commitment: BeefyCommitment;
@@ -36,5 +36,9 @@ export const substrate: Record<string, Creator> = {
heapPages: createSubstrateFn('heapPages', ':heappages', { heapPages: createSubstrateFn('heapPages', ':heappages', {
docs: 'Number of wasm linear memory pages required for execution of the runtime.', docs: 'Number of wasm linear memory pages required for execution of the runtime.',
type: 'u64' type: 'u64'
}),
intrablockEntropy: createSubstrateFn('intrablockEntropy', ':intrablock_entropy', {
docs: 'Current intra-block entropy (a universally unique `[u8; 32]` value) is stored here.',
type: '[u8; 32]'
}) })
}; };
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '10.10.1' }; export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '10.11.1' };
+725 -655
View File
File diff suppressed because it is too large Load Diff