-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LAOS alphanet integration initial commit
- Loading branch information
Showing
8 changed files
with
163 additions
and
3 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
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,37 @@ | ||
import { | ||
BalanceBuilder, | ||
ExtrinsicBuilder, | ||
} from '@moonbeam-network/xcm-builder'; | ||
import { maos } from '../assets'; | ||
import { laosAlphanet, moonbaseAlpha } from '../chains'; | ||
import { ChainRoutes } from '../types/ChainRoutes'; | ||
|
||
export const laosAlphanetRoutes = new ChainRoutes({ | ||
chain: laosAlphanet, | ||
routes: [ | ||
{ | ||
source: { | ||
asset: maos, | ||
balance: BalanceBuilder().substrate().system().account(), | ||
}, | ||
destination: { | ||
asset: maos, | ||
chain: moonbaseAlpha, | ||
balance: BalanceBuilder().evm().erc20(), | ||
fee: { | ||
// TODO current configuration for xcmPaymentApi is not compatible with how the MAOS asset version Id works in Moonbase | ||
// using fixed fee until future refactoring of xcmPaymentApi for generic chains | ||
amount: 0.1, | ||
// amount: FeeBuilder() | ||
// .xcmPaymentApi() | ||
// .xcmPaymentFee({ isAssetReserveChain: false }), | ||
asset: maos, | ||
}, | ||
}, | ||
extrinsic: ExtrinsicBuilder() | ||
.polkadotXcm() | ||
.transferAssetsUsingTypeAndThen() | ||
.here(), | ||
}, | ||
], | ||
}); |
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