Asupport for NimbusApi on runtime (#5071)
This commit is contained in:
@@ -64,7 +64,8 @@ export { default as xcm } from './xcm/definitions';
|
||||
export { default as contractsAbi } from './contractsAbi/definitions';
|
||||
export { default as eth } from './eth/definitions';
|
||||
|
||||
// orml definitions
|
||||
// additional known/community definitions
|
||||
export { default as nimbus } from './nimbus/definitions';
|
||||
export { default as ormlOracle } from './ormlOracle/definitions';
|
||||
export { default as ormlTokens } from './ormlTokens/definitions';
|
||||
|
||||
|
||||
@@ -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,77 @@
|
||||
// Copyright 2017-2022 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
// deprecated, the NimbusApi is current - this is for backwards compat
|
||||
AuthorFilterAPI: [
|
||||
{
|
||||
methods: {
|
||||
can_author: {
|
||||
description: 'The runtime api used to predict whether an author will be eligible in the given slot',
|
||||
params: [
|
||||
{
|
||||
name: 'author',
|
||||
type: 'AccountId'
|
||||
},
|
||||
{
|
||||
name: 'relayParent',
|
||||
type: 'u32'
|
||||
},
|
||||
{
|
||||
name: 'parentHeader',
|
||||
type: 'Header'
|
||||
}
|
||||
],
|
||||
type: 'bool'
|
||||
}
|
||||
},
|
||||
version: 2
|
||||
},
|
||||
{
|
||||
methods: {
|
||||
can_author: {
|
||||
description: 'The runtime api used to predict whether an author will be eligible in the given slot',
|
||||
params: [
|
||||
{
|
||||
name: 'author',
|
||||
type: 'AccountId'
|
||||
},
|
||||
{
|
||||
name: 'relayParent',
|
||||
type: 'u32'
|
||||
}
|
||||
],
|
||||
type: 'bool'
|
||||
}
|
||||
},
|
||||
version: 1
|
||||
}
|
||||
],
|
||||
NimbusApi: [
|
||||
{
|
||||
methods: {
|
||||
can_author: {
|
||||
description: 'The runtime api used to predict whether a Nimbus author will be eligible in the given slot',
|
||||
params: [
|
||||
{
|
||||
name: 'author',
|
||||
type: 'AccountId'
|
||||
},
|
||||
{
|
||||
name: 'relayParent',
|
||||
type: 'u32'
|
||||
},
|
||||
{
|
||||
name: 'parentHeader',
|
||||
type: 'Header'
|
||||
}
|
||||
],
|
||||
type: 'bool'
|
||||
}
|
||||
},
|
||||
version: 1
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export type PHANTOM_NIMBUS = 'nimbus';
|
||||
@@ -37,6 +37,7 @@ export * from './identity/types';
|
||||
export * from './imOnline/types';
|
||||
export * from './lottery/types';
|
||||
export * from './mmr/types';
|
||||
export * from './nimbus/types';
|
||||
export * from './nompools/types';
|
||||
export * from './offchain/types';
|
||||
export * from './offences/types';
|
||||
|
||||
Reference in New Issue
Block a user