Runtime older offchain & txqueue, additional pow (#5012)

This commit is contained in:
Jaco
2022-07-01 14:40:00 +03:00
committed by GitHub
parent ef6cbce6e5
commit 72a6f60498
8 changed files with 106 additions and 0 deletions
@@ -30,6 +30,7 @@ export { default as imOnline } from './imOnline/definitions';
export { default as lottery } from './lottery/definitions';
export { default as mmr } from './mmr/definitions';
export { default as offences } from './offences/definitions';
export { default as pow } from './pow/definitions';
export { default as proxy } from './proxy/definitions';
export { default as recovery } from './recovery/definitions';
export { default as scheduler } from './scheduler/definitions';
@@ -19,6 +19,21 @@ export const runtime: DefinitionsCall = {
}
},
version: 2
},
{
methods: {
offchain_worker: {
description: 'Starts the off-chain task for given block header.',
params: [
{
name: 'number',
type: 'BlockNumber'
}
],
type: 'Null'
}
},
version: 1
}
]
};
@@ -0,0 +1,15 @@
// Copyright 2017-2022 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
// order important in structs... :)
/* eslint-disable sort-keys */
import type { Definitions } from '../../types';
import { runtime } from './runtime';
export default {
rpc: {},
runtime,
types: {}
} as Definitions;
@@ -0,0 +1,4 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
export * from './types';
@@ -0,0 +1,32 @@
// Copyright 2017-2022 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DefinitionsCall } from '../../types';
export const runtime: DefinitionsCall = {
DifficultyApi: [
{
methods: {
difficulty: {
description: 'Return the target difficulty of the next block.',
params: [],
// This is Difficulty in the original, however this is chain-specific
type: 'Raw'
}
},
version: 1
}
],
TimestampApi: [
{
methods: {
timestamp: {
description: 'API necessary for timestamp-based difficulty adjustment algorithms.',
params: [],
type: 'Moment'
}
},
version: 1
}
]
};
@@ -0,0 +1,4 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
export type PHANTOM_POW = 'pow';
@@ -27,6 +27,40 @@ export const runtime: DefinitionsCall = {
}
},
version: 3
},
{
methods: {
validate_transaction: {
description: 'Validate the transaction.',
params: [
{
name: 'source',
type: 'TransactionSource'
},
{
name: 'tx',
type: 'Extrinsic'
}
],
type: 'TransactionValidity'
}
},
version: 2
},
{
methods: {
validate_transaction: {
description: 'Validate the transaction.',
params: [
{
name: 'tx',
type: 'Extrinsic'
}
],
type: 'TransactionValidity'
}
},
version: 1
}
]
};
+1
View File
@@ -44,6 +44,7 @@ export * from './ormlTokens/types';
export * from './parachains/types';
export * from './payment/types';
export * from './poll/types';
export * from './pow/types';
export * from './proxy/types';
export * from './purchase/types';
export * from './recovery/types';