diff --git a/src/chains-config/bifrostPolkadotControllers.ts b/src/chains-config/bifrostPolkadotControllers.ts new file mode 100644 index 000000000..77f428169 --- /dev/null +++ b/src/chains-config/bifrostPolkadotControllers.ts @@ -0,0 +1,47 @@ +// Copyright 2017-2022 Parity Technologies (UK) Ltd. +// This file is part of Substrate API Sidecar. +// +// Substrate API Sidecar is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +import { ControllerConfig } from '../types/chains-config'; +import { initLRUCache } from './cache/lruCache'; + +/** + * Controllers for Bifrost collator + */ +export const bifrostPolkadotControllers: ControllerConfig = { + controllers: [ + 'AccountsBalanceInfo', + 'AccountsValidate', + 'Blocks', + 'BlocksExtrinsics', + 'NodeNetwork', + 'NodeTransactionPool', + 'NodeVersion', + 'PalletsStorage', + 'Paras', + 'RuntimeCode', + 'RuntimeMetadata', + 'RuntimeSpec', + 'TransactionDryRun', + 'TransactionFeeEstimate', + 'TransactionMaterial', + 'TransactionSubmit', + ], + options: { + finalizes: true, + minCalcFeeRuntime: 1, + blockStore: initLRUCache(), + }, +}; diff --git a/src/chains-config/index.ts b/src/chains-config/index.ts index 95cfa0353..b38b7eebe 100644 --- a/src/chains-config/index.ts +++ b/src/chains-config/index.ts @@ -23,6 +23,7 @@ import { ControllerConfig } from '../types/chains-config'; import { acalaControllers } from './acalaControllers'; import { astarControllers } from './astarControllers'; import { bifrostControllers } from './bifrostControllers'; +import { bifrostPolkadotControllers } from './bifrostPolkadotControllers'; import { calamariControllers } from './calamariControllers'; import { crustControllers } from './crustControllers'; import { defaultControllers } from './defaultControllers'; @@ -69,6 +70,7 @@ const specToControllerMap: { [x: string]: ControllerConfig } = { manta: mantaControllers, crust: crustControllers, bifrost: bifrostControllers, + bifrost_polkadot: bifrostPolkadotControllers, heiko: heikoControllers, parallel: parallelControllers, };