Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6fe638c5b | ||
|
|
ea72e3eb5b | ||
|
|
45c0e16ecd | ||
|
|
5b1823f7eb | ||
|
|
6e998cce3d | ||
|
|
c46740e4e8 | ||
|
|
4e5b98725b | ||
|
|
fca973cd53 | ||
|
|
d1c9a507d9 | ||
|
|
2cfd2f4d20 | ||
|
|
d3b90c068f | ||
|
|
3127c00d05 | ||
|
|
3cdf3065d7 | ||
|
|
973b1fcffb | ||
|
|
4195833d6f | ||
|
|
8f4e62c278 | ||
|
|
2c294af116 | ||
|
|
0f1f3b88b2 | ||
|
|
56b7697dda |
+3
-1
@@ -26,4 +26,6 @@
|
||||
4.16.2
|
||||
|
||||
5.3.2
|
||||
5.5.2
|
||||
5.5.2
|
||||
5.8.2
|
||||
5.8.3
|
||||
@@ -1,5 +1,43 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 5.9.1 Sep 13, 2021
|
||||
|
||||
Upgrade priority: Low. Recommended for chain using Xcm.
|
||||
|
||||
Contributed:
|
||||
|
||||
- Adjust Centrifuge `ProxyType` (Thanks to https://github.com/branan)
|
||||
|
||||
Changes:
|
||||
|
||||
- Additional types for parachain Disputes
|
||||
- Adjust Xcm Error enum types
|
||||
- Add Polkadot 9090 upgrade block
|
||||
- Decoding enhancements with narrowing checks for TS
|
||||
|
||||
|
||||
## 5.8.3 Sep 6, 2021
|
||||
|
||||
Upgrade priority: Low.
|
||||
|
||||
Changes:
|
||||
|
||||
- Adjust Statemint, Rococo and Westend Xcm overrides
|
||||
|
||||
|
||||
## 5.8.2 Sep 6, 2021
|
||||
|
||||
Upgrade priority: Low.
|
||||
|
||||
Contributed:
|
||||
|
||||
- Correct Xcm V1 `MultiLocation` definitions (Thanks to https://github.com/apopiak)
|
||||
|
||||
Changes:
|
||||
|
||||
- Adjust Kusama Xcm overrides
|
||||
|
||||
|
||||
## 5.8.1 Sep 6, 2021
|
||||
|
||||
Upgrade priority: Low.
|
||||
|
||||
+1
-1
@@ -35,6 +35,6 @@
|
||||
"@types/jest": "^27.0.1",
|
||||
"copyfiles": "^2.4.1"
|
||||
},
|
||||
"version": "5.8.1",
|
||||
"version": "5.9.1",
|
||||
"packageManager": "yarn@3.0.1"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-contract",
|
||||
"version": "5.8.1",
|
||||
"version": "5.9.1",
|
||||
"type": "module",
|
||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||
"main": "index.js",
|
||||
@@ -20,8 +20,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/api": "5.8.1",
|
||||
"@polkadot/types": "5.8.1",
|
||||
"@polkadot/api": "5.9.1",
|
||||
"@polkadot/types": "5.9.1",
|
||||
"@polkadot/util": "^7.3.1",
|
||||
"rxjs": "^7.3.0"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', version: '5.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', version: '5.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-derive",
|
||||
"version": "5.8.1",
|
||||
"version": "5.9.1",
|
||||
"type": "module",
|
||||
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
||||
"main": "index.js",
|
||||
@@ -20,15 +20,15 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/api": "5.8.1",
|
||||
"@polkadot/rpc-core": "5.8.1",
|
||||
"@polkadot/types": "5.8.1",
|
||||
"@polkadot/api": "5.9.1",
|
||||
"@polkadot/rpc-core": "5.9.1",
|
||||
"@polkadot/types": "5.9.1",
|
||||
"@polkadot/util": "^7.3.1",
|
||||
"@polkadot/util-crypto": "^7.3.1",
|
||||
"rxjs": "^7.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^7.3.1",
|
||||
"@polkadot/rpc-provider": "5.8.1"
|
||||
"@polkadot/rpc-provider": "5.9.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', version: '5.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', version: '5.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api",
|
||||
"version": "5.8.1",
|
||||
"version": "5.9.1",
|
||||
"type": "module",
|
||||
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
||||
"main": "index.js",
|
||||
@@ -20,12 +20,12 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/api-derive": "5.8.1",
|
||||
"@polkadot/api-derive": "5.9.1",
|
||||
"@polkadot/keyring": "^7.3.1",
|
||||
"@polkadot/rpc-core": "5.8.1",
|
||||
"@polkadot/rpc-provider": "5.8.1",
|
||||
"@polkadot/types": "5.8.1",
|
||||
"@polkadot/types-known": "5.8.1",
|
||||
"@polkadot/rpc-core": "5.9.1",
|
||||
"@polkadot/rpc-provider": "5.9.1",
|
||||
"@polkadot/types": "5.9.1",
|
||||
"@polkadot/types-known": "5.9.1",
|
||||
"@polkadot/util": "^7.3.1",
|
||||
"@polkadot/util-crypto": "^7.3.1",
|
||||
"eventemitter3": "^4.0.7",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', version: '5.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/api', version: '5.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/rpc-core",
|
||||
"version": "5.8.1",
|
||||
"version": "5.9.1",
|
||||
"type": "module",
|
||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||
"main": "index.js",
|
||||
@@ -20,8 +20,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/rpc-provider": "5.8.1",
|
||||
"@polkadot/types": "5.8.1",
|
||||
"@polkadot/rpc-provider": "5.9.1",
|
||||
"@polkadot/types": "5.9.1",
|
||||
"@polkadot/util": "^7.3.1",
|
||||
"rxjs": "^7.3.0"
|
||||
},
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', version: '5.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', version: '5.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/rpc-provider",
|
||||
"version": "5.8.1",
|
||||
"version": "5.9.1",
|
||||
"type": "module",
|
||||
"description": "Transport providers for the API",
|
||||
"main": "index.js",
|
||||
@@ -20,7 +20,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/types": "5.8.1",
|
||||
"@polkadot/types": "5.9.1",
|
||||
"@polkadot/util": "^7.3.1",
|
||||
"@polkadot/util-crypto": "^7.3.1",
|
||||
"@polkadot/x-fetch": "^7.3.1",
|
||||
@@ -30,7 +30,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^7.3.1",
|
||||
"@polkadot/types": "5.8.1",
|
||||
"@polkadot/types": "5.9.1",
|
||||
"mock-socket": "^9.0.3",
|
||||
"nock": "^13.1.3"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', version: '5.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', version: '5.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/typegen",
|
||||
"version": "5.8.1",
|
||||
"version": "5.9.1",
|
||||
"type": "module",
|
||||
"description": "Type generation scripts",
|
||||
"main": "index.js",
|
||||
@@ -29,10 +29,10 @@
|
||||
"@babel/core": "^7.15.5",
|
||||
"@babel/register": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/api": "5.8.1",
|
||||
"@polkadot/rpc-provider": "5.8.1",
|
||||
"@polkadot/types": "5.8.1",
|
||||
"@polkadot/types-support": "5.8.1",
|
||||
"@polkadot/api": "5.9.1",
|
||||
"@polkadot/rpc-provider": "5.9.1",
|
||||
"@polkadot/types": "5.9.1",
|
||||
"@polkadot/types-support": "5.9.1",
|
||||
"@polkadot/util": "^7.3.1",
|
||||
"handlebars": "^4.7.7",
|
||||
"websocket": "^1.0.34",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', version: '5.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', version: '5.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types-known",
|
||||
"version": "5.8.1",
|
||||
"version": "5.9.1",
|
||||
"type": "module",
|
||||
"description": "Known type definitions",
|
||||
"main": "index.js",
|
||||
@@ -21,7 +21,7 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/networks": "^7.3.1",
|
||||
"@polkadot/types": "5.8.1",
|
||||
"@polkadot/types": "5.9.1",
|
||||
"@polkadot/util": "^7.3.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,6 +48,9 @@ const typesModules: Record<string, OverrideModuleType> = {
|
||||
inclusion: {
|
||||
ValidatorIndex: 'ParaValidatorIndex'
|
||||
},
|
||||
paraDisputes: {
|
||||
ValidatorIndex: 'ParaValidatorIndex'
|
||||
},
|
||||
paraInclusion: {
|
||||
ValidatorIndex: 'ParaValidatorIndex'
|
||||
},
|
||||
@@ -60,6 +63,9 @@ const typesModules: Record<string, OverrideModuleType> = {
|
||||
parachains: {
|
||||
Id: 'ParaId'
|
||||
},
|
||||
parasDisputes: {
|
||||
ValidatorIndex: 'ParaValidatorIndex'
|
||||
},
|
||||
parasInclusion: {
|
||||
ValidatorIndex: 'ParaValidatorIndex'
|
||||
},
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-known', version: '5.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-known', version: '5.9.1' };
|
||||
|
||||
@@ -66,19 +66,48 @@ const sharedTypes = {
|
||||
RegistryInfo: {
|
||||
fields: 'Vec<Bytes>',
|
||||
ownerCanBurn: 'bool'
|
||||
},
|
||||
|
||||
ProxyType: {
|
||||
_enum: [
|
||||
'Any',
|
||||
'NonTransfer',
|
||||
'Governance',
|
||||
'Staking',
|
||||
'NonProxy'
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
const standaloneTypes = {
|
||||
...sharedTypes,
|
||||
AccountInfo: 'AccountInfoWithRefCount',
|
||||
Address: 'LookupSource',
|
||||
LookupSource: 'IndicesLookupSource',
|
||||
Multiplier: 'Fixed64',
|
||||
RefCount: 'RefCountTo259'
|
||||
};
|
||||
|
||||
const versioned: OverrideVersionedType[] = [
|
||||
{
|
||||
minmax: [240, 999],
|
||||
minmax: [240, 243],
|
||||
types: {
|
||||
...sharedTypes,
|
||||
AccountInfo: 'AccountInfoWithRefCount',
|
||||
Address: 'LookupSource',
|
||||
LookupSource: 'IndicesLookupSource',
|
||||
Multiplier: 'Fixed64',
|
||||
RefCount: 'RefCountTo259'
|
||||
...standaloneTypes,
|
||||
ProxyType: {
|
||||
_enum: [
|
||||
'Any',
|
||||
'NonTransfer',
|
||||
'Governance',
|
||||
'Staking',
|
||||
'Vesting'
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [244, 999],
|
||||
types: {
|
||||
...standaloneTypes
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -195,6 +195,7 @@ const versioned: OverrideVersionedType[] = [
|
||||
...sharedTypes,
|
||||
AssetInstance: 'AssetInstanceV0',
|
||||
MultiAsset: 'MultiAssetV0',
|
||||
MultiLocation: 'MultiLocationV0',
|
||||
Response: 'ResponseV0',
|
||||
Xcm: 'XcmV0',
|
||||
XcmOrder: 'XcmOrderV0'
|
||||
|
||||
@@ -43,6 +43,7 @@ const versioned: OverrideVersionedType[] = [
|
||||
...sharedTypes,
|
||||
AssetInstance: 'AssetInstanceV0',
|
||||
MultiAsset: 'MultiAssetV0',
|
||||
MultiLocation: 'MultiLocationV0',
|
||||
Response: 'ResponseV0',
|
||||
Xcm: 'XcmV0',
|
||||
XcmOrder: 'XcmOrderV0'
|
||||
|
||||
@@ -24,6 +24,7 @@ const versioned: OverrideVersionedType[] = [
|
||||
},
|
||||
AssetInstance: 'AssetInstanceV0',
|
||||
MultiAsset: 'MultiAssetV0',
|
||||
MultiLocation: 'MultiLocationV0',
|
||||
Response: 'ResponseV0',
|
||||
Xcm: 'XcmV0',
|
||||
XcmOrder: 'XcmOrderV0'
|
||||
|
||||
@@ -94,6 +94,7 @@ const versioned: OverrideVersionedType[] = [
|
||||
...sharedTypes,
|
||||
AssetInstance: 'AssetInstanceV0',
|
||||
MultiAsset: 'MultiAssetV0',
|
||||
MultiLocation: 'MultiLocationV0',
|
||||
Response: 'ResponseV0',
|
||||
Xcm: 'XcmV0',
|
||||
XcmOrder: 'XcmOrderV0'
|
||||
|
||||
@@ -9,7 +9,7 @@ const upgrades: ChainUpgradesRaw = [
|
||||
[528470, 13], [687751, 14], [746085, 15], [787923, 16], [799302, 17],
|
||||
[1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26],
|
||||
[3613564, 27], [3899547, 28], [4345767, 29], [4876134, 30], [5661442, 9050],
|
||||
[6321619, 9080]
|
||||
[6321619, 9080], [6713249, 9090]
|
||||
];
|
||||
|
||||
export default upgrades;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types-support",
|
||||
"version": "5.8.1",
|
||||
"version": "5.9.1",
|
||||
"type": "module",
|
||||
"description": "Supporting files for types, mostly for testing",
|
||||
"main": "index.js",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-support', version: '5.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-support', version: '5.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types",
|
||||
"version": "5.8.1",
|
||||
"version": "5.9.1",
|
||||
"type": "module",
|
||||
"description": "Implementation of the Parity codec",
|
||||
"main": "index.js",
|
||||
@@ -26,7 +26,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^7.3.1",
|
||||
"@polkadot/types-support": "5.8.1",
|
||||
"@polkadot/types-support": "5.9.1",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"bn.js": "^4.12.0"
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ import type { ErrorMetadataLatest, ErrorMetadataV10, ErrorMetadataV11, ErrorMeta
|
||||
import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
||||
import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';
|
||||
import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, CoreAssignment, CoreIndex, CoreOccupied, DisputeStatement, DisputeStatementSet, DoubleVoteReport, DownwardMessage, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PersistedValidationData, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, Scheduling, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersDataTuple, WinningData, WinningDataEntry } from '@polkadot/types/interfaces/parachains';
|
||||
import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, CoreAssignment, CoreIndex, CoreOccupied, DisputeLocation, DisputeResult, DisputeState, DisputeStatement, DisputeStatementSet, DoubleVoteReport, DownwardMessage, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PersistedValidationData, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, Scheduling, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersDataTuple, WinningData, WinningDataEntry } from '@polkadot/types/interfaces/parachains';
|
||||
import type { FeeDetails, InclusionFee, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { Approvals } from '@polkadot/types/interfaces/poll';
|
||||
import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy';
|
||||
@@ -57,7 +57,7 @@ import type { Multiplier } from '@polkadot/types/interfaces/txpayment';
|
||||
import type { ClassDetails, ClassId, ClassMetadata, DepositBalance, DepositBalanceOf, DestroyWitness, InstanceDetails, InstanceId, InstanceMetadata } from '@polkadot/types/interfaces/uniques';
|
||||
import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';
|
||||
import type { VestingInfo } from '@polkadot/types/interfaces/vesting';
|
||||
import type { AssetInstance, AssetInstanceV0, AssetInstanceV1, BodyId, BodyPart, DoubleEncodedCall, Fungibility, InboundStatus, InstructionV2, InteriorMultiLocation, Junction, Junctions, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, NetworkId, OriginKindV0, OriginKindV1, OriginKindV2, OutboundStatus, Outcome, QueryId, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV2Result, VersionMigrationStage, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WildFungibility, WildMultiAsset, WildMultiAssetV1, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmOrder, XcmOrderV0, XcmOrderV1, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm';
|
||||
import type { AssetInstance, AssetInstanceV0, AssetInstanceV1, BodyId, BodyPart, DoubleEncodedCall, Fungibility, InboundStatus, InstructionV2, InteriorMultiLocation, Junction, JunctionV0, JunctionV1, JunctionV2, Junctions, JunctionsV1, JunctionsV2, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, NetworkId, OriginKindV0, OriginKindV1, OriginKindV2, OutboundStatus, Outcome, QueryId, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV2Result, VersionMigrationStage, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WildFungibility, WildMultiAsset, WildMultiAssetV1, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmOrder, XcmOrderV0, XcmOrderV1, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm';
|
||||
|
||||
declare module '@polkadot/types/types/registry' {
|
||||
export interface InterfaceTypes {
|
||||
@@ -274,6 +274,9 @@ declare module '@polkadot/types/types/registry' {
|
||||
DispatchResult: DispatchResult;
|
||||
DispatchResultOf: DispatchResultOf;
|
||||
DispatchResultTo198: DispatchResultTo198;
|
||||
DisputeLocation: DisputeLocation;
|
||||
DisputeResult: DisputeResult;
|
||||
DisputeState: DisputeState;
|
||||
DisputeStatement: DisputeStatement;
|
||||
DisputeStatementSet: DisputeStatementSet;
|
||||
DoubleEncodedCall: DoubleEncodedCall;
|
||||
@@ -484,6 +487,11 @@ declare module '@polkadot/types/types/registry' {
|
||||
Json: Json;
|
||||
Junction: Junction;
|
||||
Junctions: Junctions;
|
||||
JunctionsV1: JunctionsV1;
|
||||
JunctionsV2: JunctionsV2;
|
||||
JunctionV0: JunctionV0;
|
||||
JunctionV1: JunctionV1;
|
||||
JunctionV2: JunctionV2;
|
||||
Justification: Justification;
|
||||
JustificationNotification: JustificationNotification;
|
||||
Justifications: Justifications;
|
||||
|
||||
@@ -208,12 +208,14 @@ export class GenericExtrinsicEra extends Enum implements IExtrinsicEra {
|
||||
/** @internal */
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
private static _decodeExtrinsicEra (value: IExtrinsicEra | MortalMethod | MortalEnumDef | ImmortalEnumDef | Uint8Array | string = new Uint8Array()): Uint8Array | Object | undefined {
|
||||
if (value instanceof GenericExtrinsicEra) {
|
||||
if (!value) {
|
||||
return new Uint8Array([0]);
|
||||
} else if (value instanceof GenericExtrinsicEra) {
|
||||
return GenericExtrinsicEra._decodeExtrinsicEra(value.toU8a());
|
||||
} else if (isHex(value)) {
|
||||
return GenericExtrinsicEra._decodeExtrinsicEra(hexToU8a(value));
|
||||
} else if (!value || isU8a(value)) {
|
||||
return (!value?.length || value[0] === 0)
|
||||
} else if (isU8a(value)) {
|
||||
return (!value.length || value[0] === 0)
|
||||
? new Uint8Array([0])
|
||||
: new Uint8Array([1, value[0], value[1]]);
|
||||
} else if (isObject(value)) {
|
||||
|
||||
@@ -30,10 +30,54 @@ const cumulusTypes = {
|
||||
}
|
||||
};
|
||||
|
||||
const disputeTypes = {
|
||||
DisputeLocation: {
|
||||
_enum: ['Local', 'Remote']
|
||||
},
|
||||
DisputeResult: {
|
||||
_enum: ['Valid', 'Invalid']
|
||||
},
|
||||
DisputeState: {
|
||||
validatorsFor: 'BitVec',
|
||||
validatorsAgainst: 'BitVec',
|
||||
start: 'BlockNumber',
|
||||
concludedAt: 'Option<BlockNumber>'
|
||||
},
|
||||
DisputeStatement: {
|
||||
_enum: {
|
||||
Valid: 'ValidDisputeStatementKind',
|
||||
Invalid: 'InvalidDisputeStatementKind'
|
||||
}
|
||||
},
|
||||
DisputeStatementSet: {
|
||||
candidateHash: 'CandidateHash',
|
||||
session: 'SessionIndex',
|
||||
statements: 'Vec<(DisputeStatement, ParaValidatorIndex, ValidatorSignature)>'
|
||||
},
|
||||
ExplicitDisputeStatement: {
|
||||
valid: 'bool',
|
||||
candidateHash: 'CandidateHash',
|
||||
session: 'SessionIndex'
|
||||
},
|
||||
InvalidDisputeStatementKind: {
|
||||
_enum: ['Explicit']
|
||||
},
|
||||
MultiDisputeStatementSet: 'Vec<DisputeStatementSet>',
|
||||
ValidDisputeStatementKind: {
|
||||
_enum: {
|
||||
Explicit: 'Null',
|
||||
BackingSeconded: 'Hash',
|
||||
BackingValid: 'Hash',
|
||||
ApprovalChecking: 'Null'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
types: {
|
||||
...cumulusTypes,
|
||||
...disputeTypes,
|
||||
...hrmpTypes,
|
||||
...proposeTypes,
|
||||
...slotTypes,
|
||||
@@ -156,36 +200,6 @@ export default {
|
||||
Parachain: 'Null'
|
||||
}
|
||||
},
|
||||
DisputeStatementSet: {
|
||||
candidateHash: 'CandidateHash',
|
||||
session: 'SessionIndex',
|
||||
statements: 'Vec<(DisputeStatement, ParaValidatorIndex, ValidatorSignature)>'
|
||||
},
|
||||
MultiDisputeStatementSet: 'Vec<DisputeStatementSet>',
|
||||
DisputeStatement: {
|
||||
_enum: {
|
||||
Valid: 'ValidDisputeStatementKind',
|
||||
Invalid: 'InvalidDisputeStatementKind'
|
||||
}
|
||||
},
|
||||
ValidDisputeStatementKind: {
|
||||
_enum: {
|
||||
Explicit: 'Null',
|
||||
BackingSeconded: 'Hash',
|
||||
BackingValid: 'Hash',
|
||||
ApprovalChecking: 'Null'
|
||||
}
|
||||
},
|
||||
InvalidDisputeStatementKind: {
|
||||
_enum: [
|
||||
'Explicit'
|
||||
]
|
||||
},
|
||||
ExplicitDisputeStatement: {
|
||||
valid: 'bool',
|
||||
candidateHash: 'CandidateHash',
|
||||
session: 'SessionIndex'
|
||||
},
|
||||
DoubleVoteReport: {
|
||||
identity: 'ValidatorId',
|
||||
first: '(Statement, ValidatorSignature)',
|
||||
|
||||
@@ -176,6 +176,26 @@ export interface CoreOccupied extends Enum {
|
||||
readonly isParachain: boolean;
|
||||
}
|
||||
|
||||
/** @name DisputeLocation */
|
||||
export interface DisputeLocation extends Enum {
|
||||
readonly isLocal: boolean;
|
||||
readonly isRemote: boolean;
|
||||
}
|
||||
|
||||
/** @name DisputeResult */
|
||||
export interface DisputeResult extends Enum {
|
||||
readonly isValid: boolean;
|
||||
readonly isInvalid: boolean;
|
||||
}
|
||||
|
||||
/** @name DisputeState */
|
||||
export interface DisputeState extends Struct {
|
||||
readonly validatorsFor: BitVec;
|
||||
readonly validatorsAgainst: BitVec;
|
||||
readonly start: BlockNumber;
|
||||
readonly concludedAt: Option<BlockNumber>;
|
||||
}
|
||||
|
||||
/** @name DisputeStatement */
|
||||
export interface DisputeStatement extends Enum {
|
||||
readonly isValid: boolean;
|
||||
|
||||
@@ -81,46 +81,9 @@ const location = {
|
||||
}
|
||||
},
|
||||
InteriorMultiLocation: 'Junctions',
|
||||
Junctions: {
|
||||
_enum: {
|
||||
Here: 'Null',
|
||||
X1: 'Junction',
|
||||
X2: '(Junction, Junction)',
|
||||
X3: '(Junction, Junction, Junction)',
|
||||
X4: '(Junction, Junction, Junction, Junction)',
|
||||
X5: '(Junction, Junction, Junction, Junction, Junction)',
|
||||
X6: '(Junction, Junction, Junction, Junction, Junction, Junction)',
|
||||
X7: '(Junction, Junction, Junction, Junction, Junction, Junction, Junction)',
|
||||
X8: '(Junction, Junction, Junction, Junction, Junction, Junction, Junction, Junction)'
|
||||
}
|
||||
},
|
||||
Junction: {
|
||||
_enum: {
|
||||
Parent: 'Null',
|
||||
Parachain: 'Compact<u32>',
|
||||
AccountId32: {
|
||||
network: 'NetworkId',
|
||||
id: 'AccountId'
|
||||
},
|
||||
AccountIndex64: {
|
||||
network: 'NetworkId',
|
||||
index: 'Compact<u64>'
|
||||
},
|
||||
AccountKey20: {
|
||||
network: 'NetworkId',
|
||||
key: '[u8; 20]'
|
||||
},
|
||||
PalletInstance: 'u8',
|
||||
GeneralIndex: 'Compact<u128>',
|
||||
GeneralKey: 'Vec<u8>',
|
||||
OnlyChild: 'Null',
|
||||
Plurality: {
|
||||
id: 'BodyId',
|
||||
part: 'BodyPart'
|
||||
}
|
||||
}
|
||||
},
|
||||
MultiLocation: 'Junctions',
|
||||
Junction: 'JunctionV1',
|
||||
Junctions: 'JunctionsV1',
|
||||
MultiLocation: 'MultiLocationV1',
|
||||
NetworkId: {
|
||||
_enum: {
|
||||
Any: 'Null',
|
||||
|
||||
@@ -221,7 +221,37 @@ export interface InstructionV2 extends Enum {
|
||||
export interface InteriorMultiLocation extends Junctions {}
|
||||
|
||||
/** @name Junction */
|
||||
export interface Junction extends Enum {
|
||||
export interface Junction extends JunctionV1 {}
|
||||
|
||||
/** @name Junctions */
|
||||
export interface Junctions extends JunctionsV1 {}
|
||||
|
||||
/** @name JunctionsV1 */
|
||||
export interface JunctionsV1 extends Enum {
|
||||
readonly isHere: boolean;
|
||||
readonly isX1: boolean;
|
||||
readonly asX1: JunctionV1;
|
||||
readonly isX2: boolean;
|
||||
readonly asX2: ITuple<[JunctionV1, JunctionV1]>;
|
||||
readonly isX3: boolean;
|
||||
readonly asX3: ITuple<[JunctionV1, JunctionV1, JunctionV1]>;
|
||||
readonly isX4: boolean;
|
||||
readonly asX4: ITuple<[JunctionV1, JunctionV1, JunctionV1, JunctionV1]>;
|
||||
readonly isX5: boolean;
|
||||
readonly asX5: ITuple<[JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1]>;
|
||||
readonly isX6: boolean;
|
||||
readonly asX6: ITuple<[JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1]>;
|
||||
readonly isX7: boolean;
|
||||
readonly asX7: ITuple<[JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1]>;
|
||||
readonly isX8: boolean;
|
||||
readonly asX8: ITuple<[JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1]>;
|
||||
}
|
||||
|
||||
/** @name JunctionsV2 */
|
||||
export interface JunctionsV2 extends JunctionsV1 {}
|
||||
|
||||
/** @name JunctionV0 */
|
||||
export interface JunctionV0 extends Enum {
|
||||
readonly isParent: boolean;
|
||||
readonly isParachain: boolean;
|
||||
readonly asParachain: Compact<u32>;
|
||||
@@ -254,27 +284,42 @@ export interface Junction extends Enum {
|
||||
} & Struct;
|
||||
}
|
||||
|
||||
/** @name Junctions */
|
||||
export interface Junctions extends Enum {
|
||||
readonly isHere: boolean;
|
||||
readonly isX1: boolean;
|
||||
readonly asX1: Junction;
|
||||
readonly isX2: boolean;
|
||||
readonly asX2: ITuple<[Junction, Junction]>;
|
||||
readonly isX3: boolean;
|
||||
readonly asX3: ITuple<[Junction, Junction, Junction]>;
|
||||
readonly isX4: boolean;
|
||||
readonly asX4: ITuple<[Junction, Junction, Junction, Junction]>;
|
||||
readonly isX5: boolean;
|
||||
readonly asX5: ITuple<[Junction, Junction, Junction, Junction, Junction]>;
|
||||
readonly isX6: boolean;
|
||||
readonly asX6: ITuple<[Junction, Junction, Junction, Junction, Junction, Junction]>;
|
||||
readonly isX7: boolean;
|
||||
readonly asX7: ITuple<[Junction, Junction, Junction, Junction, Junction, Junction, Junction]>;
|
||||
readonly isX8: boolean;
|
||||
readonly asX8: ITuple<[Junction, Junction, Junction, Junction, Junction, Junction, Junction, Junction]>;
|
||||
/** @name JunctionV1 */
|
||||
export interface JunctionV1 extends Enum {
|
||||
readonly isParachain: boolean;
|
||||
readonly asParachain: Compact<u32>;
|
||||
readonly isAccountId32: boolean;
|
||||
readonly asAccountId32: {
|
||||
readonly network: NetworkId;
|
||||
readonly id: AccountId;
|
||||
} & Struct;
|
||||
readonly isAccountIndex64: boolean;
|
||||
readonly asAccountIndex64: {
|
||||
readonly network: NetworkId;
|
||||
readonly index: Compact<u64>;
|
||||
} & Struct;
|
||||
readonly isAccountKey20: boolean;
|
||||
readonly asAccountKey20: {
|
||||
readonly network: NetworkId;
|
||||
readonly key: U8aFixed;
|
||||
} & Struct;
|
||||
readonly isPalletInstance: boolean;
|
||||
readonly asPalletInstance: u8;
|
||||
readonly isGeneralIndex: boolean;
|
||||
readonly asGeneralIndex: Compact<u128>;
|
||||
readonly isGeneralKey: boolean;
|
||||
readonly asGeneralKey: Bytes;
|
||||
readonly isOnlyChild: boolean;
|
||||
readonly isPlurality: boolean;
|
||||
readonly asPlurality: {
|
||||
readonly id: BodyId;
|
||||
readonly part: BodyPart;
|
||||
} & Struct;
|
||||
}
|
||||
|
||||
/** @name JunctionV2 */
|
||||
export interface JunctionV2 extends JunctionV1 {}
|
||||
|
||||
/** @name MultiAsset */
|
||||
export interface MultiAsset extends MultiAssetV1 {}
|
||||
|
||||
@@ -347,15 +392,33 @@ export interface MultiAssetV1 extends Struct {
|
||||
export interface MultiAssetV2 extends MultiAssetV1 {}
|
||||
|
||||
/** @name MultiLocation */
|
||||
export interface MultiLocation extends Junctions {}
|
||||
export interface MultiLocation extends MultiLocationV1 {}
|
||||
|
||||
/** @name MultiLocationV0 */
|
||||
export interface MultiLocationV0 extends MultiLocation {}
|
||||
export interface MultiLocationV0 extends Enum {
|
||||
readonly isHere: boolean;
|
||||
readonly isX1: boolean;
|
||||
readonly asX1: JunctionV0;
|
||||
readonly isX2: boolean;
|
||||
readonly asX2: ITuple<[JunctionV0, JunctionV0]>;
|
||||
readonly isX3: boolean;
|
||||
readonly asX3: ITuple<[JunctionV0, JunctionV0, JunctionV0]>;
|
||||
readonly isX4: boolean;
|
||||
readonly asX4: ITuple<[JunctionV0, JunctionV0, JunctionV0, JunctionV0]>;
|
||||
readonly isX5: boolean;
|
||||
readonly asX5: ITuple<[JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0]>;
|
||||
readonly isX6: boolean;
|
||||
readonly asX6: ITuple<[JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0]>;
|
||||
readonly isX7: boolean;
|
||||
readonly asX7: ITuple<[JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0]>;
|
||||
readonly isX8: boolean;
|
||||
readonly asX8: ITuple<[JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0]>;
|
||||
}
|
||||
|
||||
/** @name MultiLocationV1 */
|
||||
export interface MultiLocationV1 extends Struct {
|
||||
readonly parents: u8;
|
||||
readonly interior: Junctions;
|
||||
readonly interior: JunctionsV1;
|
||||
}
|
||||
|
||||
/** @name MultiLocationV2 */
|
||||
@@ -591,6 +654,8 @@ export interface XcmErrorV0 extends Enum {
|
||||
readonly isNotWithdrawable: boolean;
|
||||
readonly isLocationCannotHold: boolean;
|
||||
readonly isTooExpensive: boolean;
|
||||
readonly isAssetNotFound: boolean;
|
||||
readonly isRecursionLimitReached: boolean;
|
||||
}
|
||||
|
||||
/** @name XcmErrorV1 */
|
||||
@@ -665,6 +730,7 @@ export interface XcmErrorV2 extends Enum {
|
||||
readonly isTrap: boolean;
|
||||
readonly asTrap: u64;
|
||||
readonly isUnknownClaim: boolean;
|
||||
readonly isInvalidLocation: boolean;
|
||||
}
|
||||
|
||||
/** @name XcmOrder */
|
||||
|
||||
@@ -22,6 +22,32 @@ export const v0: DefinitionsTypes = {
|
||||
Blob: 'Vec<u8>'
|
||||
}
|
||||
},
|
||||
JunctionV0: {
|
||||
_enum: {
|
||||
Parent: 'Null',
|
||||
Parachain: 'Compact<u32>',
|
||||
AccountId32: {
|
||||
network: 'NetworkId',
|
||||
id: 'AccountId'
|
||||
},
|
||||
AccountIndex64: {
|
||||
network: 'NetworkId',
|
||||
index: 'Compact<u64>'
|
||||
},
|
||||
AccountKey20: {
|
||||
network: 'NetworkId',
|
||||
key: '[u8; 20]'
|
||||
},
|
||||
PalletInstance: 'u8',
|
||||
GeneralIndex: 'Compact<u128>',
|
||||
GeneralKey: 'Vec<u8>',
|
||||
OnlyChild: 'Null',
|
||||
Plurality: {
|
||||
id: 'BodyId',
|
||||
part: 'BodyPart'
|
||||
}
|
||||
}
|
||||
},
|
||||
MultiAssetV0: {
|
||||
_enum: {
|
||||
None: 'Null',
|
||||
@@ -50,7 +76,19 @@ export const v0: DefinitionsTypes = {
|
||||
}
|
||||
}
|
||||
},
|
||||
MultiLocationV0: 'MultiLocation',
|
||||
MultiLocationV0: {
|
||||
_enum: {
|
||||
Here: 'Null',
|
||||
X1: 'JunctionV0',
|
||||
X2: '(JunctionV0, JunctionV0)',
|
||||
X3: '(JunctionV0, JunctionV0, JunctionV0)',
|
||||
X4: '(JunctionV0, JunctionV0, JunctionV0, JunctionV0)',
|
||||
X5: '(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)',
|
||||
X6: '(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)',
|
||||
X7: '(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)',
|
||||
X8: '(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)'
|
||||
}
|
||||
},
|
||||
OriginKindV0: {
|
||||
_enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']
|
||||
},
|
||||
@@ -137,7 +175,9 @@ export const v0: DefinitionsTypes = {
|
||||
Barrier: 'Null',
|
||||
NotWithdrawable: 'Null',
|
||||
LocationCannotHold: 'Null',
|
||||
TooExpensive: 'Null'
|
||||
TooExpensive: 'Null',
|
||||
AssetNotFound: 'Null',
|
||||
RecursionLimitReached: 'Null'
|
||||
}
|
||||
},
|
||||
XcmOrderV0: {
|
||||
|
||||
@@ -18,6 +18,44 @@ export const v1: DefinitionsTypes = {
|
||||
Blob: 'Bytes'
|
||||
}
|
||||
},
|
||||
JunctionV1: {
|
||||
_enum: {
|
||||
Parachain: 'Compact<u32>',
|
||||
AccountId32: {
|
||||
network: 'NetworkId',
|
||||
id: 'AccountId'
|
||||
},
|
||||
AccountIndex64: {
|
||||
network: 'NetworkId',
|
||||
index: 'Compact<u64>'
|
||||
},
|
||||
AccountKey20: {
|
||||
network: 'NetworkId',
|
||||
key: '[u8; 20]'
|
||||
},
|
||||
PalletInstance: 'u8',
|
||||
GeneralIndex: 'Compact<u128>',
|
||||
GeneralKey: 'Vec<u8>',
|
||||
OnlyChild: 'Null',
|
||||
Plurality: {
|
||||
id: 'BodyId',
|
||||
part: 'BodyPart'
|
||||
}
|
||||
}
|
||||
},
|
||||
JunctionsV1: {
|
||||
_enum: {
|
||||
Here: 'Null',
|
||||
X1: 'JunctionV1',
|
||||
X2: '(JunctionV1, JunctionV1)',
|
||||
X3: '(JunctionV1, JunctionV1, JunctionV1)',
|
||||
X4: '(JunctionV1, JunctionV1, JunctionV1, JunctionV1)',
|
||||
X5: '(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)',
|
||||
X6: '(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)',
|
||||
X7: '(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)',
|
||||
X8: '(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)'
|
||||
}
|
||||
},
|
||||
MultiAssetsV1: 'Vec<MultiAssetV1>',
|
||||
MultiAssetV1: {
|
||||
id: 'XcmAssetId',
|
||||
@@ -31,7 +69,7 @@ export const v1: DefinitionsTypes = {
|
||||
},
|
||||
MultiLocationV1: {
|
||||
parents: 'u8',
|
||||
interior: 'Junctions'
|
||||
interior: 'JunctionsV1'
|
||||
},
|
||||
OriginKindV1: 'OriginKindV0',
|
||||
ResponseV1: {
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
import type { DefinitionsTypes } from '../../types';
|
||||
|
||||
export const v2: DefinitionsTypes = {
|
||||
JunctionV2: 'JunctionV1',
|
||||
JunctionsV2: 'JunctionsV1',
|
||||
MultiAssetsV2: 'MultiAssetsV1',
|
||||
MultiAssetV2: 'MultiAssetV1',
|
||||
MultiAssetFilterV2: 'MultiAssetFilterV1',
|
||||
@@ -152,7 +154,8 @@ export const v2: DefinitionsTypes = {
|
||||
Unroutable: 'Null',
|
||||
UnknownWeightRequired: 'Null',
|
||||
Trap: 'u64',
|
||||
UnknownClaim: 'Null'
|
||||
UnknownClaim: 'Null',
|
||||
InvalidLocation: 'Null'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -15,11 +15,15 @@ const EMPTY_METADATA = new Uint8Array([0x6d, 0x65, 0x74, 0x61, 9]);
|
||||
const EMPTY_U8A = new Uint8Array();
|
||||
|
||||
function toU8a (value: Uint8Array | string = EMPTY_U8A): Uint8Array {
|
||||
return isHex(value)
|
||||
? toU8a(u8aToU8a(value))
|
||||
: isU8a(value) && value.length === 0
|
||||
if (isHex(value)) {
|
||||
return toU8a(u8aToU8a(value));
|
||||
} else if (isU8a(value)) {
|
||||
return value.length === 0
|
||||
? EMPTY_METADATA
|
||||
: value;
|
||||
}
|
||||
|
||||
throw new Error('Invalid type passed to Metadata constructor');
|
||||
}
|
||||
|
||||
function decodeMetadata (registry: Registry, _value?: Uint8Array | string | Map<string, unknown> | Record<string, unknown>): MetadataVersioned {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types', version: '5.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/types', version: '5.9.1' };
|
||||
|
||||
@@ -1854,40 +1854,40 @@ __metadata:
|
||||
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.15.4
|
||||
"@polkadot/api": 5.8.1
|
||||
"@polkadot/types": 5.8.1
|
||||
"@polkadot/api": 5.9.1
|
||||
"@polkadot/types": 5.9.1
|
||||
"@polkadot/util": ^7.3.1
|
||||
rxjs: ^7.3.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api-derive@5.8.1, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
"@polkadot/api-derive@5.9.1, @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.15.4
|
||||
"@polkadot/api": 5.8.1
|
||||
"@polkadot/api": 5.9.1
|
||||
"@polkadot/keyring": ^7.3.1
|
||||
"@polkadot/rpc-core": 5.8.1
|
||||
"@polkadot/rpc-provider": 5.8.1
|
||||
"@polkadot/types": 5.8.1
|
||||
"@polkadot/rpc-core": 5.9.1
|
||||
"@polkadot/rpc-provider": 5.9.1
|
||||
"@polkadot/types": 5.9.1
|
||||
"@polkadot/util": ^7.3.1
|
||||
"@polkadot/util-crypto": ^7.3.1
|
||||
rxjs: ^7.3.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api@5.8.1, @polkadot/api@workspace:packages/api":
|
||||
"@polkadot/api@5.9.1, @polkadot/api@workspace:packages/api":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api@workspace:packages/api"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.15.4
|
||||
"@polkadot/api-derive": 5.8.1
|
||||
"@polkadot/api-derive": 5.9.1
|
||||
"@polkadot/keyring": ^7.3.1
|
||||
"@polkadot/rpc-core": 5.8.1
|
||||
"@polkadot/rpc-provider": 5.8.1
|
||||
"@polkadot/types": 5.8.1
|
||||
"@polkadot/types-known": 5.8.1
|
||||
"@polkadot/rpc-core": 5.9.1
|
||||
"@polkadot/rpc-provider": 5.9.1
|
||||
"@polkadot/types": 5.9.1
|
||||
"@polkadot/types-known": 5.9.1
|
||||
"@polkadot/util": ^7.3.1
|
||||
"@polkadot/util-crypto": ^7.3.1
|
||||
eventemitter3: ^4.0.7
|
||||
@@ -2012,26 +2012,26 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/rpc-core@5.8.1, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
"@polkadot/rpc-core@5.9.1, @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.15.4
|
||||
"@polkadot/keyring": ^7.3.1
|
||||
"@polkadot/rpc-provider": 5.8.1
|
||||
"@polkadot/types": 5.8.1
|
||||
"@polkadot/rpc-provider": 5.9.1
|
||||
"@polkadot/types": 5.9.1
|
||||
"@polkadot/util": ^7.3.1
|
||||
rxjs: ^7.3.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-provider@5.8.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
"@polkadot/rpc-provider@5.9.1, @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.15.4
|
||||
"@polkadot/keyring": ^7.3.1
|
||||
"@polkadot/types": 5.8.1
|
||||
"@polkadot/types": 5.9.1
|
||||
"@polkadot/util": ^7.3.1
|
||||
"@polkadot/util-crypto": ^7.3.1
|
||||
"@polkadot/x-fetch": ^7.3.1
|
||||
@@ -2059,10 +2059,10 @@ __metadata:
|
||||
"@babel/core": ^7.15.5
|
||||
"@babel/register": ^7.15.3
|
||||
"@babel/runtime": ^7.15.4
|
||||
"@polkadot/api": 5.8.1
|
||||
"@polkadot/rpc-provider": 5.8.1
|
||||
"@polkadot/types": 5.8.1
|
||||
"@polkadot/types-support": 5.8.1
|
||||
"@polkadot/api": 5.9.1
|
||||
"@polkadot/rpc-provider": 5.9.1
|
||||
"@polkadot/types": 5.9.1
|
||||
"@polkadot/types-support": 5.9.1
|
||||
"@polkadot/util": ^7.3.1
|
||||
"@types/websocket": ^1.0.4
|
||||
"@types/yargs": ^17.0.2
|
||||
@@ -2078,18 +2078,18 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-known@5.8.1, @polkadot/types-known@workspace:packages/types-known":
|
||||
"@polkadot/types-known@5.9.1, @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.15.4
|
||||
"@polkadot/networks": ^7.3.1
|
||||
"@polkadot/types": 5.8.1
|
||||
"@polkadot/types": 5.9.1
|
||||
"@polkadot/util": ^7.3.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-support@5.8.1, @polkadot/types-support@workspace:packages/types-support":
|
||||
"@polkadot/types-support@5.9.1, @polkadot/types-support@workspace:packages/types-support":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-support@workspace:packages/types-support"
|
||||
dependencies:
|
||||
@@ -2098,13 +2098,13 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types@5.8.1, @polkadot/types@workspace:packages/types":
|
||||
"@polkadot/types@5.9.1, @polkadot/types@workspace:packages/types":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types@workspace:packages/types"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.15.4
|
||||
"@polkadot/keyring": ^7.3.1
|
||||
"@polkadot/types-support": 5.8.1
|
||||
"@polkadot/types-support": 5.9.1
|
||||
"@polkadot/util": ^7.3.1
|
||||
"@polkadot/util-crypto": ^7.3.1
|
||||
"@types/bn.js": ^4.11.6
|
||||
|
||||
Reference in New Issue
Block a user