Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove rococo config deprecated #1331

Merged
merged 3 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
144 changes: 0 additions & 144 deletions web/packages/api/src/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,150 +172,6 @@ export const SNOWBRIDGE_ENV: { [id: string]: SnowbridgeEnvironment } = {
],
},
},
rococo_sepolia: {
name: "rococo_sepolia",
ethChainId: 11155111,
locations: [
{
id: "ethereum",
name: "Ethereum",
type: "ethereum",
destinationIds: ["assethub", "muse"],
erc20tokensReceivable: [
{
id: "WETH",
address: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
minimumTransferAmount: 15_000_000_000_000n,
},
{
id: "vETH",
address: "0xc3d088842dcf02c13699f936bb83dfbbc6f721ab",
minimumTransferAmount: 1n,
},
{
id: "MUSE",
address: "0xb34a6924a02100ba6ef12af1c798285e8f7a16ee",
minimumTransferAmount: 1n,
},
{
id: "RILT",
address: "0x45Ffe5A44Dae5438Ee7FdD26EE5bEFaD13d52832",
minimumTransferAmount: 1n,
},
],
},
{
id: "assethub",
name: "Asset Hub",
type: "substrate",
destinationIds: ["ethereum"],
paraInfo: {
paraId: 1000,
destinationFeeDOT: 0n,
skipExistentialDepositCheck: false,
addressType: "32byte",
decimals: 12,
maxConsumers: 16,
},
erc20tokensReceivable: [
{
id: "WETH",
address: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
minimumTransferAmount: 15_000_000_000_000n,
},
{
id: "vETH",
address: "0xc3d088842dcf02c13699f936bb83dfbbc6f721ab",
minimumTransferAmount: 1n,
},
{
id: "MUSE",
address: "0xb34a6924a02100ba6ef12af1c798285e8f7a16ee",
minimumTransferAmount: 1n,
},
{
id: "RILT",
address: "0x45Ffe5A44Dae5438Ee7FdD26EE5bEFaD13d52832",
minimumTransferAmount: 1n,
},
],
},
{
id: "muse",
name: "Muse",
type: "substrate",
destinationIds: [],
paraInfo: {
paraId: 3369,
destinationFeeDOT: 200_000_000_000n,
skipExistentialDepositCheck: true,
addressType: "20byte",
decimals: 18,
maxConsumers: 16,
},
erc20tokensReceivable: [
{
id: "MUSE",
address: "0xb34a6924a02100ba6ef12af1c798285e8f7a16ee",
minimumTransferAmount: 10_000_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: "https://rococo-rpc.polkadot.io",
ASSET_HUB_URL: "wss://rococo-asset-hub-rpc.polkadot.io",
BRIDGE_HUB_URL: "https://rococo-bridge-hub-rpc.polkadot.io",
PARACHAINS: ["https://rococo-muse-rpc.polkadot.io"],
GATEWAY_CONTRACT: "0x5b4909ce6ca82d2ce23bd46738953c7959e710cd",
BEEFY_CONTRACT: "0x27e5e17ac995d3d720c311e1e9560e28f5855fb1",
ASSET_HUB_PARAID: 1000,
BRIDGE_HUB_PARAID: 1013,
PRIMARY_GOVERNANCE_CHANNEL_ID:
"0x0000000000000000000000000000000000000000000000000000000000000001",
SECONDARY_GOVERNANCE_CHANNEL_ID:
"0x0000000000000000000000000000000000000000000000000000000000000002",
RELAYERS: [
{
name: "beacon",
account: "5FyC9GkHhiAYjMtddwVNc2gx8wBjH9gpMKWbQ1QVXmmJtr8M",
type: "substrate",
},
{
name: "beefy",
account: "0xF061685F2B729b89a7A5966B3ab9aee15269e8FE",
type: "ethereum",
},
{
name: "parachain-primary-gov",
account: "0xE3f4e40E0dB2F828e248dB2790958035BaB1a4B5",
type: "ethereum",
},
{
name: "parachain-secondary-gov",
account: "0x71429d3B9d68557C2F49e42e12B9cf7edAADCe3D",
type: "ethereum",
},
{
name: "execution-assethub",
account: "5GeLu5rPcaoZ2RVDbhX8DKJt8NxnKn6DvvjfuhnwTZyYRY59",
type: "substrate",
},
{
name: "parachain-assethub",
account: "0x0b65d43d159f1C40Bad7768fd59667E3104a2ECE",
type: "ethereum",
},
],
SUBSCAN_API: {
RELAY_CHAIN_URL: "https://rococo.api.subscan.io",
ASSET_HUB_URL: "https://assethub-rococo.api.subscan.io",
BRIDGE_HUB_URL: "https://bridgehub-rococo.api.subscan.io",
},
},
},
paseo_sepolia: {
name: "paseo_sepolia",
ethChainId: 11155111,
Expand Down
9 changes: 4 additions & 5 deletions web/packages/operations/src/transfer_to_ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ const transfer = async () => {
const context = await contextFactory({
ethereum: {
execution_url: process.env["EXECUTION_NODE_URL"] || config.ETHEREUM_API(process.env.REACT_APP_INFURA_KEY || ""),
beacon_url: config.BEACON_HTTP_API,
beacon_url: process.env["BEACON_NODE_URL"] || config.BEACON_HTTP_API,
},
polkadot: {
url: {
bridgeHub: config.BRIDGE_HUB_URL,
assetHub: config.ASSET_HUB_URL,
relaychain: config.RELAY_CHAIN_URL,
parachains: config.PARACHAINS,
bridgeHub: process.env["BRIDGE_HUB_URL"] || config.BRIDGE_HUB_URL,
assetHub: process.env["ASSET_HUB_URL"] || config.ASSET_HUB_URL,
relaychain: process.env["RELAY_CHAIN_URL"] || config.RELAY_CHAIN_URL,
},
},
appContracts: {
Expand Down
9 changes: 4 additions & 5 deletions web/packages/operations/src/transfer_to_polkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ const transfer = async () => {
const context = await contextFactory({
ethereum: {
execution_url: process.env["EXECUTION_NODE_URL"] || config.ETHEREUM_API(process.env.REACT_APP_INFURA_KEY || ""),
beacon_url: config.BEACON_HTTP_API,
beacon_url: process.env["BEACON_NODE_URL"] || config.BEACON_HTTP_API,
},
polkadot: {
url: {
bridgeHub: config.BRIDGE_HUB_URL,
assetHub: config.ASSET_HUB_URL,
relaychain: config.RELAY_CHAIN_URL,
parachains: config.PARACHAINS,
bridgeHub: process.env["BRIDGE_HUB_URL"] || config.BRIDGE_HUB_URL,
assetHub: process.env["ASSET_HUB_URL"] || config.ASSET_HUB_URL,
relaychain: process.env["RELAY_CHAIN_URL"] || config.RELAY_CHAIN_URL,
},
},
appContracts: {
Expand Down