-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support fee calculation for Bifrost (#853)
* fix: support fee calculation for Bifrost * fix: lint error
- Loading branch information
Showing
6 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { ControllerConfig } from '../types/chains-config'; | ||
import { initLRUCache } from './cache/lruCache'; | ||
import { getBlockWeight } from './metadata-consts'; | ||
|
||
/** | ||
* Controllers for Bifrost collator | ||
*/ | ||
export const bifrostControllers: ControllerConfig = { | ||
controllers: [ | ||
'AccountsBalanceInfo', | ||
'AccountsValidate', | ||
'Blocks', | ||
'BlocksExtrinsics', | ||
'NodeNetwork', | ||
'NodeTransactionPool', | ||
'NodeVersion', | ||
'PalletsStorage', | ||
'Paras', | ||
'RuntimeCode', | ||
'RuntimeMetadata', | ||
'RuntimeSpec', | ||
'TransactionDryRun', | ||
'TransactionFeeEstimate', | ||
'TransactionMaterial', | ||
'TransactionSubmit', | ||
], | ||
options: { | ||
finalizes: true, | ||
minCalcFeeRuntime: 1, | ||
blockWeightStore: getBlockWeight('bifrost'), | ||
blockStore: initLRUCache(), | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { MetadataConsts } from '../../types/chains-config'; | ||
import { extrinsicBaseWeight } from './substrateConsts'; | ||
|
||
export const bifrostDefinitions: MetadataConsts[] = [ | ||
{ | ||
runtimeVersions: [ | ||
1, 801, 802, 803, 804, 805, 900, 901, 902, 903, 904, 906, 907, 908, 909, | ||
910, 912, 913, 914, 915, 916, 918, 920, 922, 923, 924, 925, 926, 927, | ||
], | ||
extrinsicBaseWeight, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters