Skip to content

Commit b4ada10

Browse files
Neuroweb mainnet config (#1570)
* add nw to parachains and exceptions * update registry * revert acala
1 parent 30f3900 commit b4ada10

File tree

3 files changed

+182
-67
lines changed

3 files changed

+182
-67
lines changed

web/packages/api/src/assets_v2.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -959,15 +959,25 @@ export function defaultPathFilter(envName: string): (_: Path) => boolean {
959959
return false
960960
}
961961

962-
// Disable TRAC from going to any but hydration
962+
// Allow TRAC to go to Hydration (2034) and Neuroweb (2043) only
963963
if (
964964
path.asset === "0xaa7a9ca87d3694b5755f213b5d04094b8d0f0a6f" &&
965-
((path.destination !== 2034 && path.type === "ethereum") ||
965+
((path.destination !== 2034 && path.destination !== 2043 && path.type === "ethereum") ||
966966
(path.source !== 2034 && path.type === "substrate"))
967967
) {
968968
return false
969969
}
970970

971+
// Disallow TRAC from Neuroweb back to Ethereum
972+
if (
973+
path.asset === "0xaa7a9ca87d3694b5755f213b5d04094b8d0f0a6f" &&
974+
path.source === 2043 &&
975+
path.type === "substrate" &&
976+
path.destinationType === "ethereum"
977+
) {
978+
return false
979+
}
980+
971981
// Disable stable coins in the UI from Ethereum to Polkadot
972982
if (
973983
(path.asset === "0x9d39a5de30e57443bff2a8307a4256c8797a3497" || // Staked USDe

web/packages/api/src/environment.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ export const SNOWBRIDGE_ENV: { [id: string]: SnowbridgeEnvironment } = {
512512
"2030": "wss://bifrost-polkadot.ibp.network",
513513
"2004": "wss://moonbeam-rpc.n.dwellir.com",
514514
"2000": "wss://acala-rpc.dwellir.com",
515+
"2043": "wss://parachain-rpc.origin-trail.network",
515516
// TODO: Add back in jampton once we have an indexer in place.
516517
//"3397": "wss://rpc.jamton.network",
517518
},

0 commit comments

Comments
 (0)