-
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.
Pendulum integration with Moonbeam (#176)
* -wip- initial commit * fix genesis hash and ss58 * apply unlimited weight to precompile calls * revert changes in settings test * change script execution * add changeset * install bun for scripts * remove ts-node from tsconfig * revert tsconfig changes * Pendulum - Moonbeam config * finish config * remove changeset * add changeset
- Loading branch information
Showing
6 changed files
with
112 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,6 @@ | ||
--- | ||
'@moonbeam-network/xcm-config': patch | ||
'@moonbeam-network/xcm-sdk': patch | ||
--- | ||
|
||
Pendulum integration with Moonbeam |
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,41 @@ | ||
import { | ||
BalanceBuilder, | ||
ExtrinsicBuilder, | ||
FeeBuilder, | ||
} from '@moonbeam-network/xcm-builder'; | ||
import { glmr, pen } from '../assets'; | ||
import { moonbeam, pendulum } from '../chains'; | ||
import { AssetConfig } from '../types/AssetConfig'; | ||
import { ChainConfig } from '../types/ChainConfig'; | ||
|
||
export const pendulumConfig = new ChainConfig({ | ||
assets: [ | ||
new AssetConfig({ | ||
asset: pen, | ||
balance: BalanceBuilder().substrate().system().account(), | ||
destination: moonbeam, | ||
destinationFee: { | ||
amount: FeeBuilder().assetManager().assetTypeUnitsPerSecond(), | ||
asset: pen, | ||
balance: BalanceBuilder().substrate().system().account(), | ||
}, | ||
extrinsic: ExtrinsicBuilder().xTokens().transfer(), | ||
}), | ||
new AssetConfig({ | ||
asset: glmr, | ||
balance: BalanceBuilder().substrate().tokens().accounts(), | ||
destination: moonbeam, | ||
destinationFee: { | ||
amount: 0.01, | ||
asset: glmr, | ||
balance: BalanceBuilder().substrate().tokens().accounts(), | ||
}, | ||
extrinsic: ExtrinsicBuilder().xTokens().transfer(), | ||
fee: { | ||
asset: pen, | ||
balance: BalanceBuilder().substrate().system().account(), | ||
}, | ||
}), | ||
], | ||
chain: pendulum, | ||
}); |