Adjust support fo US English as per substrate (#811)
* Rename ExtinsicStatus Finalised -> Finalized * Finalised heads -> Finalized
This commit is contained in:
@@ -33,7 +33,7 @@ const getBlockHash: RpcMethodOpt = {
|
||||
type: 'Hash'
|
||||
};
|
||||
|
||||
const getFinalisedHead: RpcMethodOpt = {
|
||||
const getFinalizedHead: RpcMethodOpt = {
|
||||
description: 'Get hash of the last finalised block in the canon chain',
|
||||
params: [],
|
||||
type: 'Hash'
|
||||
@@ -58,11 +58,12 @@ const subscribeNewHead: RpcMethodOpt = {
|
||||
type: 'Header'
|
||||
};
|
||||
|
||||
const subscribeFinalisedHeads: RpcMethodOpt = {
|
||||
description: 'Retrieves the best finalised header via subscription',
|
||||
const subscribeFinalizedHeads: RpcMethodOpt = {
|
||||
description: 'Retrieves the best finalized header via subscription',
|
||||
params: [],
|
||||
pubsub: [
|
||||
'finalisedHead',
|
||||
'finalizedHead',
|
||||
// TODO US spelling
|
||||
'subscribeFinalisedHeads',
|
||||
'unsubscribeFinalisedHeads'
|
||||
],
|
||||
@@ -93,10 +94,12 @@ export default {
|
||||
methods: {
|
||||
getBlock: createMethod(section, 'getBlock', getBlock),
|
||||
getBlockHash: createMethod(section, 'getBlockHash', getBlockHash),
|
||||
getFinalisedHead: createMethod(section, 'getFinalisedHead', getFinalisedHead),
|
||||
// TODO US spelling
|
||||
getFinalizedHead: createMethod(section, 'getFinalisedHead', getFinalizedHead),
|
||||
getHeader: createMethod(section, 'getHeader', getHeader),
|
||||
getRuntimeVersion: createMethod(section, 'getRuntimeVersion', getRuntimeVersion),
|
||||
subscribeFinalisedHeads: createMethod(section, 'subscribeFinalisedHeads', subscribeFinalisedHeads),
|
||||
// TODO US spelling
|
||||
subscribeFinalizedHeads: createMethod(section, 'subscribeFinalisedHeads', subscribeFinalizedHeads),
|
||||
subscribeRuntimeVersion: createMethod(section, 'subscribeRuntimeVersion', subscribeRuntimeVersion),
|
||||
subscribeNewHead: createMethod(section, 'subscribeNewHead', subscribeNewHead)
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
import { CodecTypes } from '@polkadot/types/classes';
|
||||
|
||||
type PubSub = [string, string, string];
|
||||
|
||||
export type RpcParam = {
|
||||
isOptional: boolean,
|
||||
name: string,
|
||||
@@ -17,7 +19,7 @@ export type RpcMethodOpt = {
|
||||
isSigned?: boolean,
|
||||
isSubscription?: boolean,
|
||||
params: Array<RpcParam>,
|
||||
pubsub?: [string, string, string],
|
||||
pubsub?: PubSub,
|
||||
type: CodecTypes
|
||||
};
|
||||
|
||||
@@ -30,7 +32,7 @@ export type RpcMethod = {
|
||||
isSubscription: boolean,
|
||||
method: string,
|
||||
params: Array<RpcParam>,
|
||||
pubsub: [string, string, string],
|
||||
pubsub: PubSub,
|
||||
section: string,
|
||||
type: CodecTypes
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user