-
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: add blockWeightStore and fee calc support for common good parach…
…ains
- Loading branch information
Showing
5 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/chains-config/metadata-consts/commonParachainsConsts.ts
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,22 @@ | ||
/** | ||
* WEIGHT NOTES (STATEMINE | STATEMINT) | ||
* | ||
* The following weights are used for common good parachains such as statemine, and | ||
* statemint. Both are using the same fee calculation currently and share the same | ||
* integer values. | ||
* | ||
*/ | ||
|
||
import { IPerClass } from 'src/types/chains-config'; | ||
|
||
export const perClassCommonParachains: IPerClass = { | ||
normal: { | ||
baseExtrinsic: BigInt(125000000), | ||
}, | ||
operational: { | ||
baseExtrinsic: BigInt(125000000), | ||
}, | ||
mandatory: { | ||
baseExtrinsic: BigInt(125000000), | ||
}, | ||
}; |
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,19 @@ | ||
import { MetadataConsts } from '../../types/chains-config'; | ||
import { perClassCommonParachains } from './commonParachainsConsts'; | ||
import { perClass } from './substrateConsts'; | ||
|
||
/** | ||
* Statemine before runtime version 601 uses the same weight fees as | ||
* substrateConsts `perClass`, therefore both objects within the statemine | ||
* definitions will have the `perClass` key, but their values will differ. | ||
*/ | ||
export const statemineDefinitions: MetadataConsts[] = [ | ||
{ | ||
runtimeVersions: [601], | ||
perClass: perClassCommonParachains, | ||
}, | ||
{ | ||
runtimeVersions: [1, 2, 3, 4, 5], | ||
perClass, | ||
}, | ||
]; |
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,9 @@ | ||
import { MetadataConsts } from '../../types/chains-config'; | ||
import { perClassCommonParachains } from './commonParachainsConsts'; | ||
|
||
export const statemintDefinitions: MetadataConsts[] = [ | ||
{ | ||
runtimeVersions: [2, 601], | ||
perClass: perClassCommonParachains, | ||
}, | ||
]; |
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