From c7421bd09f35032ddf39513f127248cc9bb28a02 Mon Sep 17 00:00:00 2001 From: Clara van Staden Date: Fri, 27 Sep 2024 11:56:54 +0200 Subject: [PATCH] Adds paseo UI (#1276) * adds paseo UI * remove muse and bump versions * remove muse and bump versions * remove veth token * paseo things * fix subscan urls * revert version * fix versions --- web/packages/api/package.json | 2 +- web/packages/api/src/environment.ts | 93 ++++++++++++++++++++++++ web/packages/contract-types/package.json | 2 +- web/packages/contracts/package.json | 2 +- web/pnpm-lock.yaml | 2 + 5 files changed, 98 insertions(+), 3 deletions(-) diff --git a/web/packages/api/package.json b/web/packages/api/package.json index 9b772d4884..12c71f87e5 100644 --- a/web/packages/api/package.json +++ b/web/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@snowbridge/api", - "version": "0.1.19", + "version": "0.1.20", "description": "Snowbridge API client", "license": "Apache-2.0", "repository": { diff --git a/web/packages/api/src/environment.ts b/web/packages/api/src/environment.ts index 3ccf1ef787..22691c60c2 100644 --- a/web/packages/api/src/environment.ts +++ b/web/packages/api/src/environment.ts @@ -306,6 +306,99 @@ export const SNOWBRIDGE_ENV: { [id: string]: SnowbridgeEnvironment } = { }, }, }, + paseo_sepolia: { + name: "paseo_sepolia", + ethChainId: 11155111, + locations: [ + { + id: "ethereum", + name: "Ethereum", + type: "ethereum", + destinationIds: ["assethub"], + erc20tokensReceivable: [ + { + id: "WETH", + address: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14", + minimumTransferAmount: 15_000_000_000_000n, + } + ], + }, + { + id: "assethub", + name: "Asset Hub", + type: "substrate", + destinationIds: ["ethereum"], + paraInfo: { + paraId: 1000, + destinationFeeDOT: 0n, + skipExistentialDepositCheck: false, + addressType: "32byte", + decimals: 10, + maxConsumers: 16, + }, + erc20tokensReceivable: [ + { + id: "WETH", + address: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14", + minimumTransferAmount: 15_000_000_000_000n, + } + ], + } + ], + config: { + BEACON_HTTP_API: "https://lodestar-sepolia.chainsafe.io", + ETHEREUM_API: (key) => `https://eth-sepolia.g.alchemy.com/v2/${key}`, + RELAY_CHAIN_URL: "wss://paseo-rpc.dwellir.com", + ASSET_HUB_URL: "wss://asset-hub-paseo-rpc.dwellir.com", + BRIDGE_HUB_URL: "wss://bridge-hub-paseo.dotters.network", + PARACHAINS: [], + GATEWAY_CONTRACT: "0x5a84b15B618beEE6F6285F6bd2bA20a08673e473", + BEEFY_CONTRACT: "0xE7388f953f50d377D131350490156dB649E5DC10", + ASSET_HUB_PARAID: 1000, + BRIDGE_HUB_PARAID: 1002, + PRIMARY_GOVERNANCE_CHANNEL_ID: + "0x0000000000000000000000000000000000000000000000000000000000000001", + SECONDARY_GOVERNANCE_CHANNEL_ID: + "0x0000000000000000000000000000000000000000000000000000000000000002", + RELAYERS: [ + { + name: "beacon", + account: "5E4Hf7LzHE4W3jabjLWSP8p8RzEa9ednwRivFEwYAprzpgwc", + type: "substrate", + }, + { + name: "beefy", + account: "0xc189De708158e75E5C88C0ABfA5F9a26C71F54D1", + type: "ethereum", + }, + { + name: "parachain-primary-gov", + account: "0x4BBa8c0e87242897521Ba598d327bE8280032609", + type: "ethereum", + }, + { + name: "parachain-secondary-gov", + account: "0x4BBa8c0e87242897521Ba598d327bE8280032609", + type: "ethereum", + }, + { + name: "execution-assethub", + account: "5HT2ysqEg6SXghQ3NGXp1VWT22hhj48Um8UAwk6Udg8ZCEv8", + type: "substrate", + }, + { + name: "parachain-assethub", + account: "0x4BBa8c0e87242897521Ba598d327bE8280032609", + type: "ethereum", + }, + ], + SUBSCAN_API: { + RELAY_CHAIN_URL: "https://paseo.api.subscan.io/", + ASSET_HUB_URL: "https://assethub-paseo.api.subscan.io", + BRIDGE_HUB_URL: "https://bridgehub-paseo.api.subscan.io", + }, + }, + }, polkadot_mainnet: { name: "polkadot_mainnet", ethChainId: 1, diff --git a/web/packages/contract-types/package.json b/web/packages/contract-types/package.json index 174ced3685..a47dc81ab6 100644 --- a/web/packages/contract-types/package.json +++ b/web/packages/contract-types/package.json @@ -1,6 +1,6 @@ { "name": "@snowbridge/contract-types", - "version": "0.1.19", + "version": "0.1.20", "description": "Snowbridge contract type bindings", "license": "Apache-2.0", "repository": { diff --git a/web/packages/contracts/package.json b/web/packages/contracts/package.json index e639c095aa..4dca5f6033 100644 --- a/web/packages/contracts/package.json +++ b/web/packages/contracts/package.json @@ -1,6 +1,6 @@ { "name": "@snowbridge/contracts", - "version": "0.1.19", + "version": "0.1.20", "description": "Snowbridge contract source and abi.", "license": "Apache-2.0", "repository": { diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index d43ffb9035..7603881159 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -104,6 +104,8 @@ importers: specifier: ^5.4.5 version: 5.5.4 + packages/contracts: {} + packages/operations: dependencies: '@aws-sdk/client-cloudwatch':