-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ConfigService, support mutability of static xcm configs (#124)
- Loading branch information
Showing
12 changed files
with
408 additions
and
197 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@moonbeam-network/xcm-config': minor | ||
'@moonbeam-network/xcm-sdk': minor | ||
--- | ||
|
||
Introduce config service to support mutability of static xcm config |
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 |
---|---|---|
|
@@ -111,3 +111,6 @@ dist | |
|
||
# mac | ||
.DS_Store | ||
|
||
# IntelliJ Idea | ||
.idea |
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
94 changes: 0 additions & 94 deletions
94
packages/config/src/ConfigBuilder/ConfigBuilder.utils.test.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
packages/config/src/ConfigService/ConfigService.interfaces.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,20 @@ | ||
import { AnyChain, Asset, Ecosystem } from '@moonbeam-network/xcm-types'; | ||
import { AssetConfig } from '../types/AssetConfig'; | ||
|
||
export interface IConfigService { | ||
getEcosystemAssets(ecosystem?: Ecosystem): Asset[]; | ||
|
||
getAsset(keyOrAsset: string | Asset): Asset; | ||
|
||
getChain(keyOrAsset: string | AnyChain): AnyChain; | ||
|
||
getSourceChains(asset: Asset, ecosystem: Ecosystem | undefined): AnyChain[]; | ||
|
||
getDestinationChains(asset: Asset, source: AnyChain): AnyChain[]; | ||
|
||
getAssetDestinationConfig( | ||
asset: Asset, | ||
source: AnyChain, | ||
destination: AnyChain, | ||
): AssetConfig; | ||
} |
Oops, something went wrong.