This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BEEFY light client V3 (paritytech#735)
- Loading branch information
Showing
42 changed files
with
1,592 additions
and
1,186 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -7,8 +7,13 @@ | |
"test": "turbo run test", | ||
"lint": "turbo run lint" | ||
}, | ||
|
||
"devDependencies": { | ||
"turbo": "^1.6.3" | ||
}, | ||
"overrides": { | ||
"@[email protected]>@polkadot/util": "10.1.11", | ||
"@[email protected]>@polkadot/util-crypto": "10.1.11", | ||
"@[email protected]>@polkadot/util": "10.1.11", | ||
"@[email protected]>@polkadot/util-crypto": "10.1.11" | ||
} | ||
} |
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,32 @@ | ||
interface EnvironmentConfig { | ||
basicChannelSourceID: number, | ||
incentivizedChannelSourceID: number, | ||
incentivizedChannelFee: string, | ||
parachainID: number, | ||
randaoCommitDelay: number, | ||
randaoCommitExpiration: number, | ||
} | ||
|
||
interface Config { | ||
[network: string]: EnvironmentConfig; | ||
} | ||
|
||
const config: Config = { | ||
default: { | ||
basicChannelSourceID: 0, | ||
incentivizedChannelSourceID: 1, | ||
incentivizedChannelFee: "1000000000000000000", | ||
parachainID: 1000, | ||
randaoCommitDelay: 3, | ||
randaoCommitExpiration: 8 | ||
} | ||
} | ||
|
||
const getConfigForNetwork = (network: string): EnvironmentConfig => { | ||
if (network in config) { | ||
return config[network] | ||
} | ||
return config.default | ||
} | ||
|
||
export { getConfigForNetwork } |
Oops, something went wrong.