Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fca68ae286 | ||
|
|
efc4a291b1 | ||
|
|
ed14218205 | ||
|
|
4ec727ed6b | ||
|
|
a1ccedf76e | ||
|
|
ec1f6ca5f5 | ||
|
|
dcca12bc23 | ||
|
|
d9d0d7b0c8 | ||
|
|
1a5de033e6 | ||
|
|
3460a74f7e | ||
|
|
56eee35e05 | ||
|
|
bc81ca45ef | ||
|
|
7a8a4f1c64 | ||
|
|
4c811a3fdd | ||
|
|
6fcd984205 | ||
|
|
62bbf09f5c | ||
|
|
dea14bcfc4 | ||
|
|
5246a6771c | ||
|
|
bc2a51e28e | ||
|
|
dd085cee79 |
@@ -1,5 +1,20 @@
|
||||
# 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
|
||||
|
||||
Contributed:
|
||||
|
||||
+4
-1
@@ -1,4 +1,4 @@
|
||||
3498 Jaco 10.10.1 (#5738)
|
||||
3505 Jaco 10.11.1 (#5759)
|
||||
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||
37 Keith Ingram Update contract types and rpc (#4541)
|
||||
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 扩散性百万甜面包 Typo, deocrateMethod -> decorateMethod (#1594)
|
||||
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 Brad Larson [NEW] Support for custom headers with providers (#2423)
|
||||
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 Satyam Agrawal update as per the 0.97.0-beta.38 release (#1617)
|
||||
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 Sergei Pepyakin INK! -> ink! (#1347)
|
||||
1 Shunji Zhan small polish (#5276)
|
||||
@@ -121,6 +123,7 @@
|
||||
1 Tim B added EthRTApiV5 ifaces (#5680)
|
||||
1 WoeOm adapt Darwinia, Crab Network types (#3498)
|
||||
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 Yuri fixes #3693 Fix uniques return types (#3694)
|
||||
1 Zeke Mostov fix: Allow sudo for polkadot indexed proxy enum (#3286)
|
||||
+6
-6
@@ -14,10 +14,10 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.1",
|
||||
"versions": {
|
||||
"git": "10.10.1",
|
||||
"npm": "10.10.1"
|
||||
"git": "10.11.1",
|
||||
"npm": "10.11.1"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
@@ -40,11 +40,11 @@
|
||||
"test:one": "polkadot-dev-run-test --env node"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.76.29",
|
||||
"@polkadot/dev": "^0.77.1",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/node": "^20.8.6"
|
||||
"@types/node": "^20.9.1"
|
||||
},
|
||||
"resolutions": {
|
||||
"typescript": "^5.1.6"
|
||||
"typescript": "^5.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "API generated augmentation",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-augment#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,15 +18,15 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-base": "10.10.1",
|
||||
"@polkadot/rpc-augment": "10.10.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-augment": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/api-base": "10.11.1",
|
||||
"@polkadot/rpc-augment": "10.11.1",
|
||||
"@polkadot/types": "10.11.1",
|
||||
"@polkadot/types-augment": "10.11.1",
|
||||
"@polkadot/types-codec": "10.11.1",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// 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' };
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-base#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,12 +18,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.10.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/rpc-core": "10.11.1",
|
||||
"@polkadot/types": "10.11.1",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// 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' };
|
||||
|
||||
@@ -16,7 +16,7 @@ export interface SignerOptions {
|
||||
nonce: AnyNumber | Codec;
|
||||
signer?: Signer;
|
||||
tip?: AnyNumber;
|
||||
assetId?: AnyNumber;
|
||||
assetId?: AnyNumber | object;
|
||||
}
|
||||
|
||||
export type SubmittableDryRunResult<ApiType extends ApiTypes> =
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,21 +18,21 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.10.1",
|
||||
"@polkadot/api-augment": "10.10.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/types-create": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/util-crypto": "^12.5.1",
|
||||
"@polkadot/api": "10.11.1",
|
||||
"@polkadot/api-augment": "10.11.1",
|
||||
"@polkadot/types": "10.11.1",
|
||||
"@polkadot/types-codec": "10.11.1",
|
||||
"@polkadot/types-create": "10.11.1",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"@polkadot/util-crypto": "^12.6.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.10.1",
|
||||
"@polkadot/keyring": "^12.5.1"
|
||||
"@polkadot/api-augment": "10.11.1",
|
||||
"@polkadot/keyring": "^12.6.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// 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' };
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,25 +18,25 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.10.1",
|
||||
"@polkadot/api-augment": "10.10.1",
|
||||
"@polkadot/api-base": "10.10.1",
|
||||
"@polkadot/rpc-core": "10.10.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/util-crypto": "^12.5.1",
|
||||
"@polkadot/api": "10.11.1",
|
||||
"@polkadot/api-augment": "10.11.1",
|
||||
"@polkadot/api-base": "10.11.1",
|
||||
"@polkadot/rpc-core": "10.11.1",
|
||||
"@polkadot/types": "10.11.1",
|
||||
"@polkadot/types-codec": "10.11.1",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"@polkadot/util-crypto": "^12.6.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "10.10.1",
|
||||
"@polkadot/api-augment": "10.10.1",
|
||||
"@polkadot/rpc-augment": "10.10.1",
|
||||
"@polkadot/rpc-provider": "10.10.1",
|
||||
"@polkadot/types-support": "10.10.1"
|
||||
"@polkadot/api": "10.11.1",
|
||||
"@polkadot/api-augment": "10.11.1",
|
||||
"@polkadot/rpc-augment": "10.11.1",
|
||||
"@polkadot/rpc-provider": "10.11.1",
|
||||
"@polkadot/types-support": "10.11.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ describe('bounties derive', () => {
|
||||
});
|
||||
|
||||
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 () => {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// 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
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,29 +18,29 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-augment": "10.10.1",
|
||||
"@polkadot/api-base": "10.10.1",
|
||||
"@polkadot/api-derive": "10.10.1",
|
||||
"@polkadot/keyring": "^12.5.1",
|
||||
"@polkadot/rpc-augment": "10.10.1",
|
||||
"@polkadot/rpc-core": "10.10.1",
|
||||
"@polkadot/rpc-provider": "10.10.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-augment": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/types-create": "10.10.1",
|
||||
"@polkadot/types-known": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/util-crypto": "^12.5.1",
|
||||
"@polkadot/api-augment": "10.11.1",
|
||||
"@polkadot/api-base": "10.11.1",
|
||||
"@polkadot/api-derive": "10.11.1",
|
||||
"@polkadot/keyring": "^12.6.1",
|
||||
"@polkadot/rpc-augment": "10.11.1",
|
||||
"@polkadot/rpc-core": "10.11.1",
|
||||
"@polkadot/rpc-provider": "10.11.1",
|
||||
"@polkadot/types": "10.11.1",
|
||||
"@polkadot/types-augment": "10.11.1",
|
||||
"@polkadot/types-codec": "10.11.1",
|
||||
"@polkadot/types-create": "10.11.1",
|
||||
"@polkadot/types-known": "10.11.1",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"@polkadot/util-crypto": "^12.6.1",
|
||||
"eventemitter3": "^5.0.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.10.1",
|
||||
"@polkadot/types-support": "10.10.1"
|
||||
"@polkadot/api-augment": "10.11.1",
|
||||
"@polkadot/types-support": "10.11.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ export abstract class Getters<ApiType extends ApiTypes> extends Init<ApiType> im
|
||||
*
|
||||
* ```javascript
|
||||
* api.tx.balances
|
||||
* .transfer(<recipientId>, <balance>)
|
||||
* .transferAllowDeath(<recipientId>, <balance>)
|
||||
* .signAndSend(<keyPair>, ({status}) => {
|
||||
* console.log('tx status', status.asFinalized.toHex());
|
||||
* });
|
||||
|
||||
@@ -243,7 +243,7 @@ function types (api: ApiPromise): void {
|
||||
|
||||
async function tx (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<void> {
|
||||
// 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>);
|
||||
|
||||
@@ -254,19 +254,19 @@ async function tx (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<voi
|
||||
const nonce = await api.query.system['accountNonce']<Index>(pairs.alice.address);
|
||||
|
||||
(await api.tx.balances
|
||||
.transfer(pairs.bob.address, 12345)
|
||||
.transferAllowDeath(pairs.bob.address, 12345)
|
||||
.signAndSend(pairs.alice, { nonce })
|
||||
).toHex();
|
||||
|
||||
// just with the callback
|
||||
await api.tx.balances
|
||||
.transfer(pairs.bob.address, 12345)
|
||||
.transferAllowDeath(pairs.bob.address, 12345)
|
||||
.signAndSend(pairs.alice, ({ status }: SubmittableResult) => console.log(status.type));
|
||||
|
||||
// with options and the callback
|
||||
const nonce2 = await api.query.system['accountNonce'](pairs.alice.address);
|
||||
const unsub2 = await api.tx.balances
|
||||
.transfer(pairs.bob.address, 12345)
|
||||
.transferAllowDeath(pairs.bob.address, 12345)
|
||||
.signAndSend(pairs.alice, { nonce: nonce2 }, ({ status }: SubmittableResult): void => {
|
||||
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);
|
||||
|
||||
// is
|
||||
if (api.tx.balances.transfer.is(second)) {
|
||||
if (api.tx.balances.transferAllowDeath.is(second)) {
|
||||
const [recipientId, balance] = second.args;
|
||||
|
||||
// should be LookupSource & Balance types
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// 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' };
|
||||
|
||||
@@ -95,7 +95,7 @@ import { toRxMethod } from './decorateMethod.js';
|
||||
* switchMap(([nonce]) =>
|
||||
* api.tx.balances
|
||||
* // create transfer
|
||||
* .transfer(keyring.bob.address, 12345)
|
||||
* .transferAllowDeath(keyring.bob.address, 12345)
|
||||
* // sign the transaction
|
||||
* .sign(keyring.alice, { nonce })
|
||||
* // send the transaction
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "RPC generated augmentation",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-augment#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,13 +18,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.10.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/rpc-core": "10.11.1",
|
||||
"@polkadot/types": "10.11.1",
|
||||
"@polkadot/types-codec": "10.11.1",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
|
||||
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 { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||
@@ -80,9 +80,9 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
||||
**/
|
||||
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: {
|
||||
/**
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// 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' };
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,18 +18,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-augment": "10.10.1",
|
||||
"@polkadot/rpc-provider": "10.10.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/rpc-augment": "10.11.1",
|
||||
"@polkadot/rpc-provider": "10.11.1",
|
||||
"@polkadot/types": "10.11.1",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^12.5.1",
|
||||
"@polkadot/rpc-augment": "10.10.1"
|
||||
"@polkadot/keyring": "^12.6.1",
|
||||
"@polkadot/rpc-augment": "10.11.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// 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' };
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Transport providers for the API",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,26 +18,26 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^12.5.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-support": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/util-crypto": "^12.5.1",
|
||||
"@polkadot/x-fetch": "^12.5.1",
|
||||
"@polkadot/x-global": "^12.5.1",
|
||||
"@polkadot/x-ws": "^12.5.1",
|
||||
"@polkadot/keyring": "^12.6.1",
|
||||
"@polkadot/types": "10.11.1",
|
||||
"@polkadot/types-support": "10.11.1",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"@polkadot/util-crypto": "^12.6.1",
|
||||
"@polkadot/x-fetch": "^12.6.1",
|
||||
"@polkadot/x-global": "^12.6.1",
|
||||
"@polkadot/x-ws": "^12.6.1",
|
||||
"eventemitter3": "^5.0.1",
|
||||
"mock-socket": "^9.3.1",
|
||||
"nock": "^13.3.4",
|
||||
"nock": "^13.3.8",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@substrate/connect": "0.7.33"
|
||||
"@substrate/connect": "0.7.35"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@substrate/connect": "0.7.33"
|
||||
"@substrate/connect": "0.7.35"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// 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!');
|
||||
}
|
||||
|
||||
// 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
|
||||
// of time... In which case we want to make sure that we don't create a new
|
||||
// chain.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Type generation scripts",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,7 +18,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.1",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
|
||||
@@ -28,23 +28,23 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.10.1",
|
||||
"@polkadot/api-augment": "10.10.1",
|
||||
"@polkadot/rpc-augment": "10.10.1",
|
||||
"@polkadot/rpc-provider": "10.10.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-augment": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/types-create": "10.10.1",
|
||||
"@polkadot/types-support": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/util-crypto": "^12.5.1",
|
||||
"@polkadot/x-ws": "^12.5.1",
|
||||
"@polkadot/api": "10.11.1",
|
||||
"@polkadot/api-augment": "10.11.1",
|
||||
"@polkadot/rpc-augment": "10.11.1",
|
||||
"@polkadot/rpc-provider": "10.11.1",
|
||||
"@polkadot/types": "10.11.1",
|
||||
"@polkadot/types-augment": "10.11.1",
|
||||
"@polkadot/types-codec": "10.11.1",
|
||||
"@polkadot/types-create": "10.11.1",
|
||||
"@polkadot/types-support": "10.11.1",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"@polkadot/util-crypto": "^12.6.1",
|
||||
"@polkadot/x-ws": "^12.6.1",
|
||||
"handlebars": "^4.7.8",
|
||||
"tslib": "^2.6.2",
|
||||
"yargs": "^17.7.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/yargs": "^17.0.28"
|
||||
"@types/yargs": "^17.0.31"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// 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' };
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Types generated augmentation",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-augment#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,12 +18,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/types": "10.11.1",
|
||||
"@polkadot/types-codec": "10.11.1",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// 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 { 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 { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations';
|
||||
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 { 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 { 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 { 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';
|
||||
@@ -159,6 +160,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
BeefyPayload: BeefyPayload;
|
||||
BeefyPayloadId: BeefyPayloadId;
|
||||
BeefySignedCommitment: BeefySignedCommitment;
|
||||
BeefyVersionedFinalityProof: BeefyVersionedFinalityProof;
|
||||
BeefyVoteMessage: BeefyVoteMessage;
|
||||
BenchmarkBatch: BenchmarkBatch;
|
||||
BenchmarkConfig: BenchmarkConfig;
|
||||
@@ -1091,6 +1093,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
Tally: Tally;
|
||||
TaskAddress: TaskAddress;
|
||||
TAssetBalance: TAssetBalance;
|
||||
TAssetConversion: TAssetConversion;
|
||||
TAssetDepositBalance: TAssetDepositBalance;
|
||||
Text: Text;
|
||||
Timepoint: Timepoint;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Implementation of the SCALE codec",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-codec#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,17 +18,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/x-bigint": "^12.5.1",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"@polkadot/x-bigint": "^12.6.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-augment": "10.10.1",
|
||||
"@polkadot/types-support": "10.10.1",
|
||||
"@polkadot/util-crypto": "^12.5.1"
|
||||
"@polkadot/types": "10.11.1",
|
||||
"@polkadot/types-augment": "10.11.1",
|
||||
"@polkadot/types-support": "10.11.1",
|
||||
"@polkadot/util-crypto": "^12.6.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ function decodeOption (registry: Registry, Type: CodecClass, value?: unknown): C
|
||||
// convert the actual value into known
|
||||
return new Type(registry, value.value);
|
||||
} 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);
|
||||
} else if (isU8a(value)) {
|
||||
// the isU8a check happens last in the if-tree - since the wrapped value
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// 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' };
|
||||
|
||||
@@ -27,7 +27,7 @@ export type AnyU8a = Uint8Array | number[] | string;
|
||||
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,
|
||||
// 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
|
||||
// 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;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Type creator helpers",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-create#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,14 +18,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/types-codec": "10.11.1",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "10.10.1"
|
||||
"@polkadot/types": "10.11.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// 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,3 +1,3 @@
|
||||
# @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.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Known type definitions",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,17 +18,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/networks": "^12.5.1",
|
||||
"@polkadot/types": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/types-create": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/networks": "^12.6.1",
|
||||
"@polkadot/types": "10.11.1",
|
||||
"@polkadot/types-codec": "10.11.1",
|
||||
"@polkadot/types-create": "10.11.1",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "10.10.1"
|
||||
"@polkadot/api": "10.11.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// 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' };
|
||||
|
||||
@@ -10,8 +10,10 @@ import { versioned as nodeTemplate } from './node-template.js';
|
||||
import { versioned as polkadot } from './polkadot.js';
|
||||
import { versioned as rococo } from './rococo.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 westend } from './westend.js';
|
||||
import { versioned as westmint } from './westmint.js';
|
||||
|
||||
// Type overrides for specific spec types & versions as given in runtimeVersion
|
||||
export const typesSpec: Record<string, OverrideVersionedType[]> = {
|
||||
@@ -22,8 +24,8 @@ export const typesSpec: Record<string, OverrideVersionedType[]> = {
|
||||
polkadot,
|
||||
rococo,
|
||||
shell,
|
||||
statemine: statemint,
|
||||
statemine,
|
||||
statemint,
|
||||
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'
|
||||
}
|
||||
}
|
||||
];
|
||||
@@ -49,7 +49,8 @@ export const versioned: OverrideVersionedType[] = [
|
||||
// metadata V14
|
||||
minmax: [500, undefined],
|
||||
types: {
|
||||
Weight: 'WeightV1'
|
||||
Weight: 'WeightV1',
|
||||
TAssetConversion: 'Option<AssetId>'
|
||||
}
|
||||
}
|
||||
// ,
|
||||
|
||||
@@ -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,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Supporting files for types, mostly for testing",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-support#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,10 +18,10 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// 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
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Implementation of the Parity codec",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -18,20 +18,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.1",
|
||||
"version": "10.11.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^12.5.1",
|
||||
"@polkadot/types-augment": "10.10.1",
|
||||
"@polkadot/types-codec": "10.10.1",
|
||||
"@polkadot/types-create": "10.10.1",
|
||||
"@polkadot/util": "^12.5.1",
|
||||
"@polkadot/util-crypto": "^12.5.1",
|
||||
"@polkadot/keyring": "^12.6.1",
|
||||
"@polkadot/types-augment": "10.11.1",
|
||||
"@polkadot/types-codec": "10.11.1",
|
||||
"@polkadot/types-create": "10.11.1",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"@polkadot/util-crypto": "^12.6.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^12.5.1",
|
||||
"@polkadot/types-support": "10.10.1"
|
||||
"@polkadot/keyring": "^12.6.1",
|
||||
"@polkadot/types-support": "10.11.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ describe('Extrinsic', (): void => {
|
||||
'a90b' + // mortal era
|
||||
'1101' + // nonce, compact 68
|
||||
'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
|
||||
'495e1e506f266418af07fa0c5c108dd436f2faa59fe7d9e54403779f5bbd7718' + // recipient
|
||||
'0bc01eb1fc185f' // value, 104.560 KSM
|
||||
|
||||
@@ -61,7 +61,10 @@ describe('SignerPayload', (): 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(
|
||||
[...test.keys()].includes('assetId')
|
||||
@@ -70,12 +73,18 @@ describe('SignerPayload', (): void => {
|
||||
expect(
|
||||
// @ts-expect-error We don't have getters for this field
|
||||
test.toPayload().assetId
|
||||
).toEqual(123);
|
||||
).toEqual({
|
||||
// eslint-disable-next-line sort-keys
|
||||
parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] }
|
||||
});
|
||||
|
||||
expect(
|
||||
// @ts-expect-error We don't have getters for this field
|
||||
new SignerPayload(registry, { assetId: 0 }).toPayload().assetId
|
||||
).toEqual(0);
|
||||
).toEqual({
|
||||
// eslint-disable-next-line sort-keys
|
||||
parents: 0, interior: { here: null }
|
||||
});
|
||||
|
||||
expect(
|
||||
// @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 => {
|
||||
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 });
|
||||
|
||||
expect(payload.era.toHex()).toEqual(TEST.era);
|
||||
@@ -114,6 +127,10 @@ describe('SignerPayload', (): void => {
|
||||
expect(payload.nonce.eq(TEST.nonce)).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"
|
||||
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: {
|
||||
tip: 'Compact<Balance>',
|
||||
// eslint-disable-next-line sort-keys
|
||||
assetId: 'Option<AssetId>'
|
||||
assetId: 'TAssetConversion'
|
||||
},
|
||||
payload: {}
|
||||
}
|
||||
|
||||
@@ -14,13 +14,15 @@ const CheckMortality: ExtInfo = {
|
||||
}
|
||||
};
|
||||
|
||||
export const substrate: ExtDef = {
|
||||
ChargeTransactionPayment: {
|
||||
extrinsic: {
|
||||
tip: 'Compact<Balance>'
|
||||
},
|
||||
payload: {}
|
||||
const ChargeTransactionPayment: ExtInfo = {
|
||||
extrinsic: {
|
||||
tip: 'Compact<Balance>'
|
||||
},
|
||||
payload: {}
|
||||
};
|
||||
|
||||
export const substrate: ExtDef = {
|
||||
ChargeTransactionPayment,
|
||||
CheckBlockGasLimit: emptyCheck,
|
||||
CheckEra: CheckMortality,
|
||||
CheckGenesis: {
|
||||
@@ -57,5 +59,6 @@ export const substrate: ExtDef = {
|
||||
},
|
||||
CheckWeight: emptyCheck,
|
||||
LockStakingStatus: emptyCheck,
|
||||
SkipCheckIfFeeless: ChargeTransactionPayment,
|
||||
ValidateEquivocationReport: emptyCheck
|
||||
};
|
||||
|
||||
@@ -44,7 +44,7 @@ describe('LookupSource', (): void => {
|
||||
testDecode(
|
||||
'AccountIndex (mixed prefixes)',
|
||||
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'
|
||||
);
|
||||
testDecode(
|
||||
|
||||
@@ -11,5 +11,7 @@ import { runtime } from './runtime.js';
|
||||
export default {
|
||||
rpc: {},
|
||||
runtime,
|
||||
types: {}
|
||||
types: {
|
||||
TAssetConversion: 'Option<MultiLocation>'
|
||||
}
|
||||
} as Definitions;
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* 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';
|
||||
|
||||
@@ -32,6 +32,12 @@ export default {
|
||||
commitment: 'BeefyCommitment',
|
||||
signatures: 'Vec<Option<EcdsaSignature>>'
|
||||
},
|
||||
BeefyVersionedFinalityProof: {
|
||||
_enum: {
|
||||
V0: 'Null',
|
||||
V1: 'BeefySignedCommitment'
|
||||
}
|
||||
},
|
||||
BeefyNextAuthoritySet: {
|
||||
id: 'u64',
|
||||
len: 'u32',
|
||||
|
||||
@@ -10,13 +10,13 @@ export const rpc: DefinitionsRpc = {
|
||||
type: 'H256'
|
||||
},
|
||||
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: [],
|
||||
pubsub: [
|
||||
'justifications',
|
||||
'subscribeJustifications',
|
||||
'unsubscribeJustifications'
|
||||
],
|
||||
type: 'BeefySignedCommitment'
|
||||
type: 'BeefyVersionedFinalityProof'
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* 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 { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||
import type { EcdsaSignature, Signature } from '@polkadot/types/interfaces/extrinsics';
|
||||
@@ -49,6 +49,14 @@ export interface BeefySignedCommitment extends Struct {
|
||||
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 */
|
||||
export interface BeefyVoteMessage extends Struct {
|
||||
readonly commitment: BeefyCommitment;
|
||||
|
||||
@@ -36,5 +36,9 @@ export const substrate: Record<string, Creator> = {
|
||||
heapPages: createSubstrateFn('heapPages', ':heappages', {
|
||||
docs: 'Number of wasm linear memory pages required for execution of the runtime.',
|
||||
type: 'u64'
|
||||
}),
|
||||
intrablockEntropy: createSubstrateFn('intrablockEntropy', ':intrablock_entropy', {
|
||||
docs: 'Current intra-block entropy (a universally unique `[u8; 32]` value) is stored here.',
|
||||
type: '[u8; 32]'
|
||||
})
|
||||
};
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// 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' };
|
||||
|
||||
Reference in New Issue
Block a user