-
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.
* add peaq alphanet * add moonbase->peaq config * fix the typo * add to chainlist * add missing config export * -wip- fix config * fix peaq config * add changeset * remomve redundant changeset --------- Co-authored-by: Mario J Maurello <[email protected]> Co-authored-by: mmaurello <[email protected]>
- Loading branch information
1 parent
a883833
commit d8190e7
Showing
6 changed files
with
125 additions
and
0 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,5 @@ | ||
--- | ||
'@moonbeam-network/xcm-config': patch | ||
--- | ||
|
||
Add PEAQ Alphanet configuration |
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
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
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,40 @@ | ||
import { | ||
BalanceBuilder, | ||
ExtrinsicBuilder, | ||
} from '@moonbeam-network/xcm-builder'; | ||
import { agng, dev, ftmwh } from '../assets'; | ||
import { moonbaseAlpha, peaqAlphanet } from '../chains'; | ||
import { AssetConfig } from '../types/AssetConfig'; | ||
import { ChainConfig } from '../types/ChainConfig'; | ||
|
||
export const peaqAlphanetConfig = new ChainConfig({ | ||
assets: [ | ||
new AssetConfig({ | ||
asset: dev, | ||
balance: BalanceBuilder().substrate().assets().account(), | ||
destination: moonbaseAlpha, | ||
destinationFee: { | ||
amount: 0.01, | ||
asset: dev, | ||
balance: BalanceBuilder().substrate().assets().account(), | ||
}, | ||
extrinsic: ExtrinsicBuilder().xTokens().transfer(), | ||
}), | ||
new AssetConfig({ | ||
asset: ftmwh, | ||
balance: BalanceBuilder().substrate().assets().account(), | ||
destination: moonbaseAlpha, | ||
destinationFee: { | ||
amount: 0.04, | ||
asset: dev, | ||
balance: BalanceBuilder().substrate().assets().account(), | ||
}, | ||
extrinsic: ExtrinsicBuilder().xTokens().transferMultiCurrencies(), | ||
fee: { | ||
asset: agng, | ||
balance: BalanceBuilder().substrate().system().account(), | ||
}, | ||
}), | ||
], | ||
chain: peaqAlphanet, | ||
}); |