Compare commits

...
2 Commits
Author SHA1 Message Date
github-actions[bot] eee4bf51d6 [CI Skip] release/stable 9.13.3
skip-checks: true
2023-02-01 06:28:13 +00:00
Jaco b9cbb9e2e8 Adjust Weight alias for WeightV0 injection (#5462)
* Adjust Weight alias for WeightV0 injection

* 9.13.3
2023-02-01 08:20:06 +02:00
39 changed files with 210 additions and 199 deletions
+7
View File
@@ -1,5 +1,12 @@
# CHANGELOG
## 9.13.3 Feb 1, 2023
Changes:
- Adjust `Weight` alias detection to cater for `WeightV0/u32` overrides (e.g. early Kusama blocks)
## 9.13.2 Jan 29, 2023
Changes:
+1 -1
View File
@@ -1,4 +1,4 @@
3351 Jaco Allow null as valid param to Int/UInt (#5458)
3352 Jaco Adjust Weight alias for WeightV0 injection (#5462)
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)
+3 -3
View File
@@ -11,10 +11,10 @@
},
"sideEffects": false,
"type": "module",
"version": "9.13.2",
"version": "9.13.3",
"versions": {
"git": "9.13.2",
"npm": "9.13.2"
"git": "9.13.3",
"npm": "9.13.3"
},
"workspaces": [
"packages/*"
+6 -6
View File
@@ -20,15 +20,15 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.13.2",
"version": "9.13.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.13",
"@polkadot/api-base": "9.13.2",
"@polkadot/rpc-augment": "9.13.2",
"@polkadot/types": "9.13.2",
"@polkadot/types-augment": "9.13.2",
"@polkadot/types-codec": "9.13.2",
"@polkadot/api-base": "9.13.3",
"@polkadot/rpc-augment": "9.13.3",
"@polkadot/types": "9.13.3",
"@polkadot/types-augment": "9.13.3",
"@polkadot/types-codec": "9.13.3",
"@polkadot/util": "^10.3.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.13.2' };
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.13.3' };
+3 -3
View File
@@ -20,12 +20,12 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.13.2",
"version": "9.13.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.13",
"@polkadot/rpc-core": "9.13.2",
"@polkadot/types": "9.13.2",
"@polkadot/rpc-core": "9.13.3",
"@polkadot/types": "9.13.3",
"@polkadot/util": "^10.3.1",
"rxjs": "^7.8.0"
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.13.2' };
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.13.3' };
+6 -6
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.13.2",
"version": "9.13.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.13",
"@polkadot/api": "9.13.2",
"@polkadot/types": "9.13.2",
"@polkadot/types-codec": "9.13.2",
"@polkadot/types-create": "9.13.2",
"@polkadot/api": "9.13.3",
"@polkadot/types": "9.13.3",
"@polkadot/types-codec": "9.13.3",
"@polkadot/types-create": "9.13.3",
"@polkadot/util": "^10.3.1",
"@polkadot/util-crypto": "^10.3.1",
"rxjs": "^7.8.0"
},
"devDependencies": {
"@polkadot/api-augment": "9.13.2",
"@polkadot/api-augment": "9.13.3",
"@polkadot/keyring": "^10.3.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.13.2' };
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.13.3' };
+12 -12
View File
@@ -20,25 +20,25 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.13.2",
"version": "9.13.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.13",
"@polkadot/api": "9.13.2",
"@polkadot/api-augment": "9.13.2",
"@polkadot/api-base": "9.13.2",
"@polkadot/rpc-core": "9.13.2",
"@polkadot/types": "9.13.2",
"@polkadot/types-codec": "9.13.2",
"@polkadot/api": "9.13.3",
"@polkadot/api-augment": "9.13.3",
"@polkadot/api-base": "9.13.3",
"@polkadot/rpc-core": "9.13.3",
"@polkadot/types": "9.13.3",
"@polkadot/types-codec": "9.13.3",
"@polkadot/util": "^10.3.1",
"@polkadot/util-crypto": "^10.3.1",
"rxjs": "^7.8.0"
},
"devDependencies": {
"@polkadot/api": "9.13.2",
"@polkadot/api-augment": "9.13.2",
"@polkadot/rpc-augment": "9.13.2",
"@polkadot/rpc-provider": "9.13.2",
"@polkadot/types-support": "9.13.2"
"@polkadot/api": "9.13.3",
"@polkadot/api-augment": "9.13.3",
"@polkadot/rpc-augment": "9.13.3",
"@polkadot/rpc-provider": "9.13.3",
"@polkadot/types-support": "9.13.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.13.2' };
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.13.3' };
+14 -14
View File
@@ -20,29 +20,29 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.13.2",
"version": "9.13.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.13",
"@polkadot/api-augment": "9.13.2",
"@polkadot/api-base": "9.13.2",
"@polkadot/api-derive": "9.13.2",
"@polkadot/api-augment": "9.13.3",
"@polkadot/api-base": "9.13.3",
"@polkadot/api-derive": "9.13.3",
"@polkadot/keyring": "^10.3.1",
"@polkadot/rpc-augment": "9.13.2",
"@polkadot/rpc-core": "9.13.2",
"@polkadot/rpc-provider": "9.13.2",
"@polkadot/types": "9.13.2",
"@polkadot/types-augment": "9.13.2",
"@polkadot/types-codec": "9.13.2",
"@polkadot/types-create": "9.13.2",
"@polkadot/types-known": "9.13.2",
"@polkadot/rpc-augment": "9.13.3",
"@polkadot/rpc-core": "9.13.3",
"@polkadot/rpc-provider": "9.13.3",
"@polkadot/types": "9.13.3",
"@polkadot/types-augment": "9.13.3",
"@polkadot/types-codec": "9.13.3",
"@polkadot/types-create": "9.13.3",
"@polkadot/types-known": "9.13.3",
"@polkadot/util": "^10.3.1",
"@polkadot/util-crypto": "^10.3.1",
"eventemitter3": "^5.0.0",
"rxjs": "^7.8.0"
},
"devDependencies": {
"@polkadot/api-augment": "9.13.2",
"@polkadot/types-support": "9.13.2"
"@polkadot/api-augment": "9.13.3",
"@polkadot/types-support": "9.13.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.13.2' };
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.13.3' };
+4 -4
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.13.2",
"version": "9.13.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.13",
"@polkadot/rpc-core": "9.13.2",
"@polkadot/types": "9.13.2",
"@polkadot/types-codec": "9.13.2",
"@polkadot/rpc-core": "9.13.3",
"@polkadot/types": "9.13.3",
"@polkadot/types-codec": "9.13.3",
"@polkadot/util": "^10.3.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.13.2' };
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.13.3' };
+5 -5
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.13.2",
"version": "9.13.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.13",
"@polkadot/rpc-augment": "9.13.2",
"@polkadot/rpc-provider": "9.13.2",
"@polkadot/types": "9.13.2",
"@polkadot/rpc-augment": "9.13.3",
"@polkadot/rpc-provider": "9.13.3",
"@polkadot/types": "9.13.3",
"@polkadot/util": "^10.3.1",
"rxjs": "^7.8.0"
},
"devDependencies": {
"@polkadot/keyring": "^10.3.1",
"@polkadot/rpc-augment": "9.13.2"
"@polkadot/rpc-augment": "9.13.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.13.2' };
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.13.3' };
+3 -3
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.13.2",
"version": "9.13.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.13",
"@polkadot/keyring": "^10.3.1",
"@polkadot/types": "9.13.2",
"@polkadot/types-support": "9.13.2",
"@polkadot/types": "9.13.3",
"@polkadot/types-support": "9.13.3",
"@polkadot/util": "^10.3.1",
"@polkadot/util-crypto": "^10.3.1",
"@polkadot/x-fetch": "^10.3.1",
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.13.2' };
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.13.3' };
+10 -10
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.13.2",
"version": "9.13.3",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
@@ -33,15 +33,15 @@
"@babel/core": "^7.20.12",
"@babel/register": "^7.18.9",
"@babel/runtime": "^7.20.13",
"@polkadot/api": "9.13.2",
"@polkadot/api-augment": "9.13.2",
"@polkadot/rpc-augment": "9.13.2",
"@polkadot/rpc-provider": "9.13.2",
"@polkadot/types": "9.13.2",
"@polkadot/types-augment": "9.13.2",
"@polkadot/types-codec": "9.13.2",
"@polkadot/types-create": "9.13.2",
"@polkadot/types-support": "9.13.2",
"@polkadot/api": "9.13.3",
"@polkadot/api-augment": "9.13.3",
"@polkadot/rpc-augment": "9.13.3",
"@polkadot/rpc-provider": "9.13.3",
"@polkadot/types": "9.13.3",
"@polkadot/types-augment": "9.13.3",
"@polkadot/types-codec": "9.13.3",
"@polkadot/types-create": "9.13.3",
"@polkadot/types-support": "9.13.3",
"@polkadot/util": "^10.3.1",
"@polkadot/util-crypto": "^10.3.1",
"@polkadot/x-ws": "^10.3.1",
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.13.2' };
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.13.3' };
+3 -3
View File
@@ -20,12 +20,12 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.13.2",
"version": "9.13.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.13",
"@polkadot/types": "9.13.2",
"@polkadot/types-codec": "9.13.2",
"@polkadot/types": "9.13.3",
"@polkadot/types-codec": "9.13.3",
"@polkadot/util": "^10.3.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.13.2' };
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.13.3' };
@@ -52,7 +52,7 @@ import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/ty
import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';
import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
import type { AccountId, AccountId20, AccountId32, AccountId33, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, SlotDuration, StorageData, StorageInfo, StorageProof, TransactionInfo, TransactionLongevity, TransactionPriority, TransactionStorageProof, TransactionTag, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier, WeightV1, WeightV2 } from '@polkadot/types/interfaces/runtime';
import type { AccountId, AccountId20, AccountId32, AccountId33, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, SlotDuration, StorageData, StorageInfo, StorageProof, TransactionInfo, TransactionLongevity, TransactionPriority, TransactionStorageProof, TransactionTag, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier, WeightV0, WeightV1, WeightV2 } from '@polkadot/types/interfaces/runtime';
import type { Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDef, Si0TypeDefArray, Si0TypeDefBitSequence, Si0TypeDefCompact, Si0TypeDefComposite, Si0TypeDefPhantom, Si0TypeDefPrimitive, Si0TypeDefSequence, Si0TypeDefTuple, Si0TypeDefVariant, Si0TypeParameter, Si0Variant, Si1Field, Si1LookupTypeId, Si1Path, Si1Type, Si1TypeDef, Si1TypeDefArray, Si1TypeDefBitSequence, Si1TypeDefCompact, Si1TypeDefComposite, Si1TypeDefPrimitive, Si1TypeDefSequence, Si1TypeDefTuple, Si1TypeDefVariant, Si1TypeParameter, Si1Variant, SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray, SiTypeDefBitSequence, SiTypeDefCompact, SiTypeDefComposite, SiTypeDefPrimitive, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiTypeParameter, SiVariant } from '@polkadot/types/interfaces/scaleInfo';
import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';
import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';
@@ -1153,6 +1153,7 @@ declare module '@polkadot/types/types/registry' {
WeightMultiplier: WeightMultiplier;
WeightPerClass: WeightPerClass;
WeightToFeeCoefficient: WeightToFeeCoefficient;
WeightV0: WeightV0;
WeightV1: WeightV1;
WeightV2: WeightV2;
WildFungibility: WildFungibility;
+4 -4
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.13.2",
"version": "9.13.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.13",
@@ -28,9 +28,9 @@
"@polkadot/x-bigint": "^10.3.1"
},
"devDependencies": {
"@polkadot/types": "9.13.2",
"@polkadot/types-augment": "9.13.2",
"@polkadot/types-support": "9.13.2",
"@polkadot/types": "9.13.3",
"@polkadot/types-augment": "9.13.3",
"@polkadot/types-support": "9.13.3",
"@polkadot/util-crypto": "^10.3.1"
}
}
+5 -11
View File
@@ -87,17 +87,11 @@ export class Vec<T extends Codec> extends AbstractArray<T> {
this.#Type = definition || setDefinition(typeToConstructor<T>(registry, Type));
try {
this.initialU8aLength = (
isU8a(decodeFrom)
? decodeU8aVec(registry, this, decodeFrom, startAt, this.#Type)
: decodeVec(registry, this, decodeFrom, startAt, this.#Type)
)[0];
} catch (e) {
console.error(decodeFrom, length, startAt);
throw e;
}
this.initialU8aLength = (
isU8a(decodeFrom)
? decodeU8aVec(registry, this, decodeFrom, startAt, this.#Type)
: decodeVec(registry, this, decodeFrom, startAt, this.#Type)
)[0];
}
public static with<O extends Codec> (Type: CodecClass<O> | string): CodecClass<Vec<O>> {
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.13.2' };
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.13.3' };
+3 -3
View File
@@ -20,14 +20,14 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.13.2",
"version": "9.13.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.13",
"@polkadot/types-codec": "9.13.2",
"@polkadot/types-codec": "9.13.3",
"@polkadot/util": "^10.3.1"
},
"devDependencies": {
"@polkadot/types": "9.13.2"
"@polkadot/types": "9.13.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.13.2' };
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.13.3' };
+5 -5
View File
@@ -20,17 +20,17 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.13.2",
"version": "9.13.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.13",
"@polkadot/networks": "^10.3.1",
"@polkadot/types": "9.13.2",
"@polkadot/types-codec": "9.13.2",
"@polkadot/types-create": "9.13.2",
"@polkadot/types": "9.13.3",
"@polkadot/types-codec": "9.13.3",
"@polkadot/types-create": "9.13.3",
"@polkadot/util": "^10.3.1"
},
"devDependencies": {
"@polkadot/api": "9.13.2"
"@polkadot/api": "9.13.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.13.2' };
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.13.3' };
+1 -1
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.13.2",
"version": "9.13.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.13",
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.13.2' };
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.13.3' };
+5 -5
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.13.2",
"version": "9.13.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.13",
"@polkadot/keyring": "^10.3.1",
"@polkadot/types-augment": "9.13.2",
"@polkadot/types-codec": "9.13.2",
"@polkadot/types-create": "9.13.2",
"@polkadot/types-augment": "9.13.3",
"@polkadot/types-codec": "9.13.3",
"@polkadot/types-create": "9.13.3",
"@polkadot/util": "^10.3.1",
"@polkadot/util-crypto": "^10.3.1",
"rxjs": "^7.8.0"
},
"devDependencies": {
"@polkadot/keyring": "^10.3.1",
"@polkadot/types-support": "9.13.2"
"@polkadot/types-support": "9.13.3"
}
}
+11 -6
View File
@@ -4,12 +4,12 @@
import type { AnyString, Codec, CodecClass, IU8a, LookupString } from '@polkadot/types-codec/types';
import type { CreateOptions, TypeDef } from '@polkadot/types-create/types';
import type { ExtDef } from '../extrinsic/signedExtensions/types';
import type { ChainProperties, DispatchErrorModule, DispatchErrorModuleU8, DispatchErrorModuleU8a, EventMetadataLatest, Hash, MetadataLatest, SiField, SiLookupTypeId, SiVariant, WeightV2 } from '../interfaces/types';
import type { ChainProperties, DispatchErrorModule, DispatchErrorModuleU8, DispatchErrorModuleU8a, EventMetadataLatest, Hash, MetadataLatest, SiField, SiLookupTypeId, SiVariant, WeightV1, WeightV2 } from '../interfaces/types';
import type { CallFunction, CodecHasher, Definitions, DetectCodec, RegisteredTypes, Registry, RegistryError, RegistryTypes } from '../types';
import { DoNotConstruct, Json, Raw } from '@polkadot/types-codec';
import { constructTypeClass, createClassUnsafe, createTypeUnsafe } from '@polkadot/types-create';
import { assertReturn, BN_ZERO, formatBalance, isFunction, isNumber, isString, isU8a, lazyMethod, logger, objectSpread, stringCamelCase, stringify } from '@polkadot/util';
import { assertReturn, BN_ZERO, formatBalance, isBn, isFunction, isNumber, isString, isU8a, lazyMethod, logger, objectSpread, stringCamelCase, stringify } from '@polkadot/util';
import { blake2AsU8a } from '@polkadot/util-crypto';
import { expandExtensionTypes, fallbackExtensions, findUnknownExtensions } from '../extrinsic/signedExtensions';
@@ -542,18 +542,23 @@ export class TypeRegistry implements Registry {
// default to V1 - this includes 1.5 (with single field)
let weightType = 'WeightV1';
const Clazz = this.get<WeightV2>('SpWeightsWeightV2Weight');
const WeightV2 = this.get<WeightV2>('SpWeightsWeightV2Weight');
// detection for WeightV2 type
if (Clazz) {
const weight = new Clazz(this);
if (WeightV2) {
const weight = new WeightV2(this);
if (weight.refTime && weight.proofSize) {
weightType = 'SpWeightsWeightV2Weight';
}
}
this.register({ Weight: weightType });
if (weightType !== 'WeightV1' || !isBn(this.createType<WeightV1>('Weight'))) {
// where we have an already-supplied override, we don't clobber
// it with our detected value (This protects against pre-defines
// where Weight may be aliassed to WeightV0, e.g. in early Kusama chains)
this.register({ Weight: weightType });
}
};
// sets the metadata
@@ -212,6 +212,7 @@ export default {
},
ValidatorId: 'AccountId',
ValidatorIdOf: 'ValidatorId',
WeightV0: 'u32',
WeightV1: 'u64',
WeightV2: {
refTime: 'Compact<u64>',
@@ -394,6 +394,9 @@ export interface Weight extends WeightV2 {}
/** @name WeightMultiplier */
export interface WeightMultiplier extends Fixed64 {}
/** @name WeightV0 */
export interface WeightV0 extends u32 {}
/** @name WeightV1 */
export interface WeightV1 extends u64 {}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.13.2' };
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.13.3' };
+78 -78
View File
@@ -1988,27 +1988,27 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/api-augment@9.13.2, @polkadot/api-augment@workspace:packages/api-augment":
"@polkadot/api-augment@9.13.3, @polkadot/api-augment@workspace:packages/api-augment":
version: 0.0.0-use.local
resolution: "@polkadot/api-augment@workspace:packages/api-augment"
dependencies:
"@babel/runtime": ^7.20.13
"@polkadot/api-base": 9.13.2
"@polkadot/rpc-augment": 9.13.2
"@polkadot/types": 9.13.2
"@polkadot/types-augment": 9.13.2
"@polkadot/types-codec": 9.13.2
"@polkadot/api-base": 9.13.3
"@polkadot/rpc-augment": 9.13.3
"@polkadot/types": 9.13.3
"@polkadot/types-augment": 9.13.3
"@polkadot/types-codec": 9.13.3
"@polkadot/util": ^10.3.1
languageName: unknown
linkType: soft
"@polkadot/api-base@9.13.2, @polkadot/api-base@workspace:packages/api-base":
"@polkadot/api-base@9.13.3, @polkadot/api-base@workspace:packages/api-base":
version: 0.0.0-use.local
resolution: "@polkadot/api-base@workspace:packages/api-base"
dependencies:
"@babel/runtime": ^7.20.13
"@polkadot/rpc-core": 9.13.2
"@polkadot/types": 9.13.2
"@polkadot/rpc-core": 9.13.3
"@polkadot/types": 9.13.3
"@polkadot/util": ^10.3.1
rxjs: ^7.8.0
languageName: unknown
@@ -2019,56 +2019,56 @@ __metadata:
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@babel/runtime": ^7.20.13
"@polkadot/api": 9.13.2
"@polkadot/api-augment": 9.13.2
"@polkadot/api": 9.13.3
"@polkadot/api-augment": 9.13.3
"@polkadot/keyring": ^10.3.1
"@polkadot/types": 9.13.2
"@polkadot/types-codec": 9.13.2
"@polkadot/types-create": 9.13.2
"@polkadot/types": 9.13.3
"@polkadot/types-codec": 9.13.3
"@polkadot/types-create": 9.13.3
"@polkadot/util": ^10.3.1
"@polkadot/util-crypto": ^10.3.1
rxjs: ^7.8.0
languageName: unknown
linkType: soft
"@polkadot/api-derive@9.13.2, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@9.13.3, @polkadot/api-derive@workspace:packages/api-derive":
version: 0.0.0-use.local
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
dependencies:
"@babel/runtime": ^7.20.13
"@polkadot/api": 9.13.2
"@polkadot/api-augment": 9.13.2
"@polkadot/api-base": 9.13.2
"@polkadot/rpc-augment": 9.13.2
"@polkadot/rpc-core": 9.13.2
"@polkadot/rpc-provider": 9.13.2
"@polkadot/types": 9.13.2
"@polkadot/types-codec": 9.13.2
"@polkadot/types-support": 9.13.2
"@polkadot/api": 9.13.3
"@polkadot/api-augment": 9.13.3
"@polkadot/api-base": 9.13.3
"@polkadot/rpc-augment": 9.13.3
"@polkadot/rpc-core": 9.13.3
"@polkadot/rpc-provider": 9.13.3
"@polkadot/types": 9.13.3
"@polkadot/types-codec": 9.13.3
"@polkadot/types-support": 9.13.3
"@polkadot/util": ^10.3.1
"@polkadot/util-crypto": ^10.3.1
rxjs: ^7.8.0
languageName: unknown
linkType: soft
"@polkadot/api@9.13.2, @polkadot/api@workspace:packages/api":
"@polkadot/api@9.13.3, @polkadot/api@workspace:packages/api":
version: 0.0.0-use.local
resolution: "@polkadot/api@workspace:packages/api"
dependencies:
"@babel/runtime": ^7.20.13
"@polkadot/api-augment": 9.13.2
"@polkadot/api-base": 9.13.2
"@polkadot/api-derive": 9.13.2
"@polkadot/api-augment": 9.13.3
"@polkadot/api-base": 9.13.3
"@polkadot/api-derive": 9.13.3
"@polkadot/keyring": ^10.3.1
"@polkadot/rpc-augment": 9.13.2
"@polkadot/rpc-core": 9.13.2
"@polkadot/rpc-provider": 9.13.2
"@polkadot/types": 9.13.2
"@polkadot/types-augment": 9.13.2
"@polkadot/types-codec": 9.13.2
"@polkadot/types-create": 9.13.2
"@polkadot/types-known": 9.13.2
"@polkadot/types-support": 9.13.2
"@polkadot/rpc-augment": 9.13.3
"@polkadot/rpc-core": 9.13.3
"@polkadot/rpc-provider": 9.13.3
"@polkadot/types": 9.13.3
"@polkadot/types-augment": 9.13.3
"@polkadot/types-codec": 9.13.3
"@polkadot/types-create": 9.13.3
"@polkadot/types-known": 9.13.3
"@polkadot/types-support": 9.13.3
"@polkadot/util": ^10.3.1
"@polkadot/util-crypto": ^10.3.1
eventemitter3: ^5.0.0
@@ -2200,40 +2200,40 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/rpc-augment@9.13.2, @polkadot/rpc-augment@workspace:packages/rpc-augment":
"@polkadot/rpc-augment@9.13.3, @polkadot/rpc-augment@workspace:packages/rpc-augment":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-augment@workspace:packages/rpc-augment"
dependencies:
"@babel/runtime": ^7.20.13
"@polkadot/rpc-core": 9.13.2
"@polkadot/types": 9.13.2
"@polkadot/types-codec": 9.13.2
"@polkadot/rpc-core": 9.13.3
"@polkadot/types": 9.13.3
"@polkadot/types-codec": 9.13.3
"@polkadot/util": ^10.3.1
languageName: unknown
linkType: soft
"@polkadot/rpc-core@9.13.2, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@9.13.3, @polkadot/rpc-core@workspace:packages/rpc-core":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
dependencies:
"@babel/runtime": ^7.20.13
"@polkadot/keyring": ^10.3.1
"@polkadot/rpc-augment": 9.13.2
"@polkadot/rpc-provider": 9.13.2
"@polkadot/types": 9.13.2
"@polkadot/rpc-augment": 9.13.3
"@polkadot/rpc-provider": 9.13.3
"@polkadot/types": 9.13.3
"@polkadot/util": ^10.3.1
rxjs: ^7.8.0
languageName: unknown
linkType: soft
"@polkadot/rpc-provider@9.13.2, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@9.13.3, @polkadot/rpc-provider@workspace:packages/rpc-provider":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
dependencies:
"@babel/runtime": ^7.20.13
"@polkadot/keyring": ^10.3.1
"@polkadot/types": 9.13.2
"@polkadot/types-support": 9.13.2
"@polkadot/types": 9.13.3
"@polkadot/types-support": 9.13.3
"@polkadot/util": ^10.3.1
"@polkadot/util-crypto": ^10.3.1
"@polkadot/x-fetch": ^10.3.1
@@ -2256,15 +2256,15 @@ __metadata:
"@babel/core": ^7.20.12
"@babel/register": ^7.18.9
"@babel/runtime": ^7.20.13
"@polkadot/api": 9.13.2
"@polkadot/api-augment": 9.13.2
"@polkadot/rpc-augment": 9.13.2
"@polkadot/rpc-provider": 9.13.2
"@polkadot/types": 9.13.2
"@polkadot/types-augment": 9.13.2
"@polkadot/types-codec": 9.13.2
"@polkadot/types-create": 9.13.2
"@polkadot/types-support": 9.13.2
"@polkadot/api": 9.13.3
"@polkadot/api-augment": 9.13.3
"@polkadot/rpc-augment": 9.13.3
"@polkadot/rpc-provider": 9.13.3
"@polkadot/types": 9.13.3
"@polkadot/types-augment": 9.13.3
"@polkadot/types-codec": 9.13.3
"@polkadot/types-create": 9.13.3
"@polkadot/types-support": 9.13.3
"@polkadot/util": ^10.3.1
"@polkadot/util-crypto": ^10.3.1
"@polkadot/x-ws": ^10.3.1
@@ -2282,57 +2282,57 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-augment@9.13.2, @polkadot/types-augment@workspace:packages/types-augment":
"@polkadot/types-augment@9.13.3, @polkadot/types-augment@workspace:packages/types-augment":
version: 0.0.0-use.local
resolution: "@polkadot/types-augment@workspace:packages/types-augment"
dependencies:
"@babel/runtime": ^7.20.13
"@polkadot/types": 9.13.2
"@polkadot/types-codec": 9.13.2
"@polkadot/types": 9.13.3
"@polkadot/types-codec": 9.13.3
"@polkadot/util": ^10.3.1
languageName: unknown
linkType: soft
"@polkadot/types-codec@9.13.2, @polkadot/types-codec@workspace:packages/types-codec":
"@polkadot/types-codec@9.13.3, @polkadot/types-codec@workspace:packages/types-codec":
version: 0.0.0-use.local
resolution: "@polkadot/types-codec@workspace:packages/types-codec"
dependencies:
"@babel/runtime": ^7.20.13
"@polkadot/types": 9.13.2
"@polkadot/types-augment": 9.13.2
"@polkadot/types-support": 9.13.2
"@polkadot/types": 9.13.3
"@polkadot/types-augment": 9.13.3
"@polkadot/types-support": 9.13.3
"@polkadot/util": ^10.3.1
"@polkadot/util-crypto": ^10.3.1
"@polkadot/x-bigint": ^10.3.1
languageName: unknown
linkType: soft
"@polkadot/types-create@9.13.2, @polkadot/types-create@workspace:packages/types-create":
"@polkadot/types-create@9.13.3, @polkadot/types-create@workspace:packages/types-create":
version: 0.0.0-use.local
resolution: "@polkadot/types-create@workspace:packages/types-create"
dependencies:
"@babel/runtime": ^7.20.13
"@polkadot/types": 9.13.2
"@polkadot/types-codec": 9.13.2
"@polkadot/types": 9.13.3
"@polkadot/types-codec": 9.13.3
"@polkadot/util": ^10.3.1
languageName: unknown
linkType: soft
"@polkadot/types-known@9.13.2, @polkadot/types-known@workspace:packages/types-known":
"@polkadot/types-known@9.13.3, @polkadot/types-known@workspace:packages/types-known":
version: 0.0.0-use.local
resolution: "@polkadot/types-known@workspace:packages/types-known"
dependencies:
"@babel/runtime": ^7.20.13
"@polkadot/api": 9.13.2
"@polkadot/api": 9.13.3
"@polkadot/networks": ^10.3.1
"@polkadot/types": 9.13.2
"@polkadot/types-codec": 9.13.2
"@polkadot/types-create": 9.13.2
"@polkadot/types": 9.13.3
"@polkadot/types-codec": 9.13.3
"@polkadot/types-create": 9.13.3
"@polkadot/util": ^10.3.1
languageName: unknown
linkType: soft
"@polkadot/types-support@9.13.2, @polkadot/types-support@workspace:packages/types-support":
"@polkadot/types-support@9.13.3, @polkadot/types-support@workspace:packages/types-support":
version: 0.0.0-use.local
resolution: "@polkadot/types-support@workspace:packages/types-support"
dependencies:
@@ -2341,16 +2341,16 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types@9.13.2, @polkadot/types@workspace:packages/types":
"@polkadot/types@9.13.3, @polkadot/types@workspace:packages/types":
version: 0.0.0-use.local
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@babel/runtime": ^7.20.13
"@polkadot/keyring": ^10.3.1
"@polkadot/types-augment": 9.13.2
"@polkadot/types-codec": 9.13.2
"@polkadot/types-create": 9.13.2
"@polkadot/types-support": 9.13.2
"@polkadot/types-augment": 9.13.3
"@polkadot/types-codec": 9.13.3
"@polkadot/types-create": 9.13.3
"@polkadot/types-support": 9.13.3
"@polkadot/util": ^10.3.1
"@polkadot/util-crypto": ^10.3.1
rxjs: ^7.8.0