Skip to content

Commit

Permalink
finish config
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaurello committed Dec 29, 2023
1 parent 4ee462b commit 71ee287
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 18 deletions.
4 changes: 2 additions & 2 deletions packages/config/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ export const pendulum = new Parachain({
{
asset: glmr,
decimals: 18,
id: { XCM: 1 },
id: { XCM: 6 },
},
],
ecosystem: Ecosystem.Polkadot,
Expand All @@ -1180,7 +1180,7 @@ export const pendulum = new Parachain({
name: 'Pendulum',
parachainId: 2094,
ss58Format: 56,
ws: 'wss://pendulum-rpc.dwellir.com/',
ws: 'wss://rpc-pendulum.prd.pendulumchain.tech',
});

export const pendulumAlphanet = new Parachain({
Expand Down
41 changes: 26 additions & 15 deletions packages/config/src/configs/moonbeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,17 @@ export const moonbeamConfig = new ChainConfig({
balance: BalanceBuilder().substrate().system().account(),
},
}),
new AssetConfig({
asset: glmr,
balance: BalanceBuilder().substrate().system().account(),
contract: ContractBuilder().Xtokens().transfer(),
destination: pendulum,
destinationFee: {
amount: 0.0002, //
asset: glmr,
balance: BalanceBuilder().substrate().system().account(),
},
}),
new AssetConfig({
asset: aca,
balance: BalanceBuilder().substrate().assets().account(),
Expand Down Expand Up @@ -356,6 +367,21 @@ export const moonbeamConfig = new ChainConfig({
balance: BalanceBuilder().substrate().system().account(),
},
}),
new AssetConfig({
asset: pen,
balance: BalanceBuilder().substrate().assets().account(),
contract: ContractBuilder().Xtokens().transfer(),
destination: pendulum,
destinationFee: {
amount: 0.01,
asset: pen,
balance: BalanceBuilder().substrate().assets().account(),
},
fee: {
asset: glmr,
balance: BalanceBuilder().substrate().system().account(),
},
}),
new AssetConfig({
asset: pha,
balance: BalanceBuilder().substrate().assets().account(),
Expand Down Expand Up @@ -581,21 +607,6 @@ export const moonbeamConfig = new ChainConfig({
balance: BalanceBuilder().substrate().system().account(),
},
}),
new AssetConfig({
asset: pen,
balance: BalanceBuilder().substrate().assets().account(),
contract: ContractBuilder().Xtokens().transfer(),
destination: pendulum,
destinationFee: {
amount: 0.01,
asset: pen,
balance: BalanceBuilder().substrate().assets().account(),
},
fee: {
asset: glmr,
balance: BalanceBuilder().substrate().system().account(),
},
}),
new AssetConfig({
asset: sub,
balance: BalanceBuilder().substrate().assets().account(),
Expand Down
2 changes: 1 addition & 1 deletion packages/config/src/configs/pendulum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const pendulumConfig = new ChainConfig({
balance: BalanceBuilder().substrate().tokens().accounts(),
destination: moonbeam,
destinationFee: {
amount: 0.01, // TODO
amount: 0.01,
asset: glmr,
balance: BalanceBuilder().substrate().tokens().accounts(),
},
Expand Down

0 comments on commit 71ee287

Please sign in to comment.