Bump metadata & deps (#5563)
* Bump metadata & deps * Add missing types * Adjust * Debug * Use transferAllowDeath * Use transferAllowDeath in tests * Re-adjust * Bump
This commit is contained in:
@@ -37,11 +37,11 @@ describe('ExtrinsicV4', (): void => {
|
||||
expect(
|
||||
new Extrinsic(
|
||||
registry,
|
||||
tx.balances.transfer(keyring.bob.publicKey, 6969n)
|
||||
tx.balances.transferAllowDeath(keyring.bob.publicKey, 6969n)
|
||||
).toHex()
|
||||
).toEqual(
|
||||
'0x' +
|
||||
'0600' + // balance.transfer
|
||||
'0600' + // balance.transferAllowDeath
|
||||
'00' +
|
||||
'd7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9' +
|
||||
'e56c'
|
||||
@@ -52,7 +52,7 @@ describe('ExtrinsicV4', (): void => {
|
||||
expect(
|
||||
new Extrinsic(
|
||||
registry,
|
||||
tx.balances.transfer(keyring.bob.publicKey, 6969n)
|
||||
tx.balances.transferAllowDeath(keyring.bob.publicKey, 6969n)
|
||||
).sign(keyring.alice, {
|
||||
blockHash: '0xec7afaf1cca720ce88c1d1b689d81f0583cc15a97d621cf046dd9abf605ef22f',
|
||||
genesisHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
|
||||
|
||||
@@ -57,6 +57,19 @@ const disputeTypes = {
|
||||
session: 'SessionIndex',
|
||||
statements: 'Vec<(DisputeStatement, ParaValidatorIndex, ValidatorSignature)>'
|
||||
},
|
||||
ExecutorParam: {
|
||||
_enum: {
|
||||
Phantom: 'Null', // index starts at 1... empty slot at 0
|
||||
MaxMemoryPages: 'u32',
|
||||
StackLogicalMax: 'u32',
|
||||
StackNativeMax: 'u32',
|
||||
PrecheckingMaxMemory: 'u64',
|
||||
PvfPrepTimeout: '(PvfPrepTimeoutKind, u64)',
|
||||
PvfExecTimeout: '(PvfExecTimeoutKind, u64)'
|
||||
}
|
||||
},
|
||||
ExecutorParamsHash: 'Hash',
|
||||
ExecutorParams: 'Vec<ExecutorParam>',
|
||||
ExplicitDisputeStatement: {
|
||||
valid: 'bool',
|
||||
candidateHash: 'CandidateHash',
|
||||
@@ -66,6 +79,12 @@ const disputeTypes = {
|
||||
_enum: ['Explicit']
|
||||
},
|
||||
MultiDisputeStatementSet: 'Vec<DisputeStatementSet>',
|
||||
PvfExecTimeoutKind: {
|
||||
_enum: ['Backing', 'Approval']
|
||||
},
|
||||
PvfPrepTimeoutKind: {
|
||||
_enum: ['Precheck', 'Lenient']
|
||||
},
|
||||
ValidDisputeStatementKind: {
|
||||
_enum: {
|
||||
Explicit: 'Null',
|
||||
|
||||
@@ -180,16 +180,35 @@ const PH_V2_TO_V3: DefinitionsCallEntry['methods'] = {
|
||||
}
|
||||
};
|
||||
|
||||
const PH_V3: DefinitionsCallEntry['methods'] = {
|
||||
disputes: {
|
||||
description: 'Returns all onchain disputes.',
|
||||
params: [],
|
||||
type: 'Vec<(SessionIndex, CandidateHash, DisputeState)>'
|
||||
}
|
||||
};
|
||||
|
||||
const PH_V4: DefinitionsCallEntry['methods'] = {
|
||||
session_executor_params: {
|
||||
description: 'Returns execution parameters for the session.',
|
||||
params: [
|
||||
{
|
||||
name: 'sessionIndex',
|
||||
type: 'SessionIndex'
|
||||
}
|
||||
],
|
||||
type: 'Option<ExecutorParams>'
|
||||
}
|
||||
};
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
ParachainHost: [
|
||||
{
|
||||
methods: objectSpread({
|
||||
disputes: {
|
||||
description: 'Returns all onchain disputes.',
|
||||
params: [],
|
||||
type: 'Vec<(SessionIndex, CandidateHash, DisputeState)>'
|
||||
}
|
||||
}, PH_V1_TO_V2, PH_V2_TO_V3),
|
||||
methods: objectSpread({}, PH_V1_TO_V2, PH_V2_TO_V3, PH_V3, PH_V4),
|
||||
version: 4
|
||||
},
|
||||
{
|
||||
methods: objectSpread({}, PH_V1_TO_V2, PH_V2_TO_V3, PH_V3),
|
||||
version: 3
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { BTreeMap, BitVec, Bytes, Enum, Option, Struct, U8aFixed, Vec, bool, u32 } from '@polkadot/types-codec';
|
||||
import type { BTreeMap, BitVec, Bytes, Enum, Option, Struct, U8aFixed, Vec, bool, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { Signature } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { AccountId, Balance, BalanceOf, BlockNumber, H256, Hash, Header, StorageProof, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||
@@ -251,6 +251,30 @@ export interface DoubleVoteReport extends Struct {
|
||||
/** @name DownwardMessage */
|
||||
export interface DownwardMessage extends Bytes {}
|
||||
|
||||
/** @name ExecutorParam */
|
||||
export interface ExecutorParam extends Enum {
|
||||
readonly isPhantom: boolean;
|
||||
readonly isMaxMemoryPages: boolean;
|
||||
readonly asMaxMemoryPages: u32;
|
||||
readonly isStackLogicalMax: boolean;
|
||||
readonly asStackLogicalMax: u32;
|
||||
readonly isStackNativeMax: boolean;
|
||||
readonly asStackNativeMax: u32;
|
||||
readonly isPrecheckingMaxMemory: boolean;
|
||||
readonly asPrecheckingMaxMemory: u64;
|
||||
readonly isPvfPrepTimeout: boolean;
|
||||
readonly asPvfPrepTimeout: ITuple<[PvfPrepTimeoutKind, u64]>;
|
||||
readonly isPvfExecTimeout: boolean;
|
||||
readonly asPvfExecTimeout: ITuple<[PvfExecTimeoutKind, u64]>;
|
||||
readonly type: 'Phantom' | 'MaxMemoryPages' | 'StackLogicalMax' | 'StackNativeMax' | 'PrecheckingMaxMemory' | 'PvfPrepTimeout' | 'PvfExecTimeout';
|
||||
}
|
||||
|
||||
/** @name ExecutorParams */
|
||||
export interface ExecutorParams extends Vec<ExecutorParam> {}
|
||||
|
||||
/** @name ExecutorParamsHash */
|
||||
export interface ExecutorParamsHash extends Hash {}
|
||||
|
||||
/** @name ExplicitDisputeStatement */
|
||||
export interface ExplicitDisputeStatement extends Struct {
|
||||
readonly valid: bool;
|
||||
@@ -591,6 +615,20 @@ export interface PvfCheckStatement extends Struct {
|
||||
readonly validatorIndex: ParaValidatorIndex;
|
||||
}
|
||||
|
||||
/** @name PvfExecTimeoutKind */
|
||||
export interface PvfExecTimeoutKind extends Enum {
|
||||
readonly isBacking: boolean;
|
||||
readonly isApproval: boolean;
|
||||
readonly type: 'Backing' | 'Approval';
|
||||
}
|
||||
|
||||
/** @name PvfPrepTimeoutKind */
|
||||
export interface PvfPrepTimeoutKind extends Enum {
|
||||
readonly isPrecheck: boolean;
|
||||
readonly isLenient: boolean;
|
||||
readonly type: 'Precheck' | 'Lenient';
|
||||
}
|
||||
|
||||
/** @name QueuedParathread */
|
||||
export interface QueuedParathread extends Struct {
|
||||
readonly claim: ParathreadEntry;
|
||||
|
||||
@@ -48,7 +48,7 @@ describe('extrinsics', (): void => {
|
||||
'4634f7b973084f983ef48e2afbd72a990f7d4dd9d86c39e645cb34d9a45466b6' + // sig1
|
||||
'263f0f2020363a6475f91e323a8b1bd43dedd97e78ec3c5d5b5197466305400e' + // sig2
|
||||
'000000' + // nonce, era, tip
|
||||
'0600' + // balances.transfer
|
||||
'0600' + // balances.transferAllowDeath
|
||||
'ffd7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9' + // to
|
||||
'e56c' // value
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user