Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6fe638c5b | ||
|
|
ea72e3eb5b | ||
|
|
45c0e16ecd | ||
|
|
5b1823f7eb | ||
|
|
6e998cce3d | ||
|
|
c46740e4e8 | ||
|
|
4e5b98725b | ||
|
|
fca973cd53 | ||
|
|
d1c9a507d9 | ||
|
|
2cfd2f4d20 | ||
|
|
d3b90c068f | ||
|
|
3127c00d05 |
@@ -1,5 +1,21 @@
|
||||
# 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.
|
||||
|
||||
+1
-1
@@ -35,6 +35,6 @@
|
||||
"@types/jest": "^27.0.1",
|
||||
"copyfiles": "^2.4.1"
|
||||
},
|
||||
"version": "5.8.3",
|
||||
"version": "5.9.1",
|
||||
"packageManager": "yarn@3.0.1"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-contract",
|
||||
"version": "5.8.3",
|
||||
"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.3",
|
||||
"@polkadot/types": "5.8.3",
|
||||
"@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.3' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', version: '5.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-derive",
|
||||
"version": "5.8.3",
|
||||
"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.3",
|
||||
"@polkadot/rpc-core": "5.8.3",
|
||||
"@polkadot/types": "5.8.3",
|
||||
"@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.3"
|
||||
"@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.3' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', version: '5.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api",
|
||||
"version": "5.8.3",
|
||||
"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.3",
|
||||
"@polkadot/api-derive": "5.9.1",
|
||||
"@polkadot/keyring": "^7.3.1",
|
||||
"@polkadot/rpc-core": "5.8.3",
|
||||
"@polkadot/rpc-provider": "5.8.3",
|
||||
"@polkadot/types": "5.8.3",
|
||||
"@polkadot/types-known": "5.8.3",
|
||||
"@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.3' };
|
||||
export const packageInfo = { name: '@polkadot/api', version: '5.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/rpc-core",
|
||||
"version": "5.8.3",
|
||||
"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.3",
|
||||
"@polkadot/types": "5.8.3",
|
||||
"@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.3' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', version: '5.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/rpc-provider",
|
||||
"version": "5.8.3",
|
||||
"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.3",
|
||||
"@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.3",
|
||||
"@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.3' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', version: '5.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/typegen",
|
||||
"version": "5.8.3",
|
||||
"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.3",
|
||||
"@polkadot/rpc-provider": "5.8.3",
|
||||
"@polkadot/types": "5.8.3",
|
||||
"@polkadot/types-support": "5.8.3",
|
||||
"@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.3' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', version: '5.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types-known",
|
||||
"version": "5.8.3",
|
||||
"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.3",
|
||||
"@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.3' };
|
||||
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
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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.3",
|
||||
"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.3' };
|
||||
export const packageInfo = { name: '@polkadot/types-support', version: '5.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types",
|
||||
"version": "5.8.3",
|
||||
"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.3",
|
||||
"@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';
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -654,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 */
|
||||
@@ -728,6 +730,7 @@ export interface XcmErrorV2 extends Enum {
|
||||
readonly isTrap: boolean;
|
||||
readonly asTrap: u64;
|
||||
readonly isUnknownClaim: boolean;
|
||||
readonly isInvalidLocation: boolean;
|
||||
}
|
||||
|
||||
/** @name XcmOrder */
|
||||
|
||||
@@ -175,7 +175,9 @@ export const v0: DefinitionsTypes = {
|
||||
Barrier: 'Null',
|
||||
NotWithdrawable: 'Null',
|
||||
LocationCannotHold: 'Null',
|
||||
TooExpensive: 'Null'
|
||||
TooExpensive: 'Null',
|
||||
AssetNotFound: 'Null',
|
||||
RecursionLimitReached: 'Null'
|
||||
}
|
||||
},
|
||||
XcmOrderV0: {
|
||||
|
||||
@@ -154,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.3' };
|
||||
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.3
|
||||
"@polkadot/types": 5.8.3
|
||||
"@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.3, @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.3
|
||||
"@polkadot/api": 5.9.1
|
||||
"@polkadot/keyring": ^7.3.1
|
||||
"@polkadot/rpc-core": 5.8.3
|
||||
"@polkadot/rpc-provider": 5.8.3
|
||||
"@polkadot/types": 5.8.3
|
||||
"@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.3, @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.3
|
||||
"@polkadot/api-derive": 5.9.1
|
||||
"@polkadot/keyring": ^7.3.1
|
||||
"@polkadot/rpc-core": 5.8.3
|
||||
"@polkadot/rpc-provider": 5.8.3
|
||||
"@polkadot/types": 5.8.3
|
||||
"@polkadot/types-known": 5.8.3
|
||||
"@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.3, @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.3
|
||||
"@polkadot/types": 5.8.3
|
||||
"@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.3, @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.3
|
||||
"@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.3
|
||||
"@polkadot/rpc-provider": 5.8.3
|
||||
"@polkadot/types": 5.8.3
|
||||
"@polkadot/types-support": 5.8.3
|
||||
"@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.3, @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.3
|
||||
"@polkadot/types": 5.9.1
|
||||
"@polkadot/util": ^7.3.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-support@5.8.3, @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.3, @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.3
|
||||
"@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