Skip to content

Commit

Permalink
fix peaqEvm asset configs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaurello committed Jun 5, 2024
1 parent c71d212 commit 6856293
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
31 changes: 21 additions & 10 deletions packages/config/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1331,12 +1331,14 @@ export const peaqEvmAlphanet = new EvmParachain({
decimals: 18,
id: '0xFfFfFffF000000000000000000000000000003e8',
metadataId: 0,
minId: 1000,
},
{
asset: ftmwh,
decimals: 18,
id: '0xFffFffFF000000000000000000000000000003E9',
metadataId: 0,
minId: 1001,
},
],
contracts: {
Expand All @@ -1363,47 +1365,56 @@ export const peaqEvmAlphanet = new EvmParachain({

export const peaqEvm = new EvmParachain({
assetsData: [
{
asset: peaq,
decimals: 18,
},
{
asset: glmr,
decimals: 18,
id: '0xFfFfFffF000000000000000000000000000003e8',
metadataId: 0,
minId: 1000,
},
{
asset: usdcwh,
decimals: 6,
id: '0xFffFffFF000000000000000000000000000003E9',
metadataId: 0,
metadataId: 1001,
minId: 1001,
},
{
asset: weth,
decimals: 18,
id: '0xFFFfFfFf000000000000000000000000000003ea',
metadataId: 0,
metadataId: 1002,
minId: 1002,
},
{
asset: wbtc,
decimals: 8,
id: '0xfffFFFFF000000000000000000000000000003eb',
metadataId: 0,
metadataId: 1003,
minId: 1003,
},
{
asset: dai,
decimals: 18,
id: '0xfFffFFFF000000000000000000000000000003Ec',
metadataId: 0,
metadataId: 1004,
minId: 1004,
},
{
asset: usdtwh,
decimals: 6,
id: '0xfFffffFF000000000000000000000000000003Ed',
metadataId: 0,
metadataId: 1005,
minId: 1005,
},
],
contracts: {
Xtokens: '0x0000000000000000000000000000000000000803',
},
ecosystem: Ecosystem.Polkadot,
genesisHash:
'0xd2a5d385932d1f650dae03ef8e2748983779ee342c614f80854d32b8cd8fa48c',
id: 3338,
isEvmSigner: true,
isTestChain: false,
key: 'peaq-evm',
name: 'Peaq EVM',
Expand Down
6 changes: 1 addition & 5 deletions packages/config/src/configs/moonbeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -846,15 +846,11 @@ export const moonbeamConfig = new ChainConfig({
}),
new AssetConfig({
asset: glmr,
balance: BalanceBuilder().evm().erc20(),
balance: BalanceBuilder().substrate().system().account(),
contract: ContractBuilder().Xtokens().transferWithEvmTo32(),
destination: peaqEvm,
destinationFee: {
amount: 0.00000001,
asset: glmr,
balance: BalanceBuilder().evm().erc20(),
},
fee: {
asset: glmr,
balance: BalanceBuilder().substrate().system().account(),
},
Expand Down

0 comments on commit 6856293

Please sign in to comment.