Skip to content
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
6 changes: 6 additions & 0 deletions web/packages/api/src/parachains/hydration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ export class HydrationParachain extends ParachainBase {
}

const assetId = Number(id.args[0]?.toString())
const lockdownState: any =
await this.provider.query.circuitBreaker.assetLockdownState(assetId)
if (!lockdownState.isSome || !lockdownState.unwrap().isUnlocked) {
continue
}

Comment on lines +43 to +48

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this circuit breaker now?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's Hydration's pallet-circuit-breaker. assetLockdownState tracks whether an asset is locked down (a runtime safety mechanism that restricts transfers/trading for that asset). We only include assets that are explicitly present and Unlocked, so locked-down tokens like WETH don't show up in generated routes where transfers would fail.

const asset: any = (
await this.provider.query.assetRegistry.assets(assetId)
).toPrimitive()
Expand Down
94 changes: 9 additions & 85 deletions web/packages/registry/src/polkadot_mainnet_bridge_info.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,22 +322,16 @@ const registry = {
},
assets: [
"0x9d39a5de30e57443bff2a8307a4256c8797a3497",
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0x5a98fcbea516cf06857215779fd812ca3bef1b32",
"0x45804880de22913dafe09f4980848ece6ecbaf78",
"0xcccccccccc33d538dbc2ee4feab0a7a1ff4e8a94",
"0xa3931d71877c0e7a3148cb7eb4463524fec27fbd",
"0x57e114b691db790c35207b2e685d4a43181e6061",
"0x8236a87084f8b84306f72007f36f2618a5634494",
"0x38eeb52f0771140d10c4e9a9a72349a329fe8a6a",
"0xd166337499e176bbc38a1fbd113ab144e5bd2df7",
"0x56072c95faa701256059aa122697b133aded9279",
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"0xaa7a9ca87d3694b5755f213b5d04094b8d0f0a6f",
"0x18084fba666a33d37592fa2633fd49a74dd93a88",
"0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
"0xe9f6d9898f9269b519e1435e6ebaff766c7f46bf",
"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
"0x0000000000000000000000000000000000000000",
"0xdac17f958d2ee523a2206206994597c13d831ec7",
"0x514910771af9ca656af840dff83e8264ecf986ca",
Expand All @@ -354,21 +348,16 @@ const registry = {
id: 2034,
},
assets: [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0x5a98fcbea516cf06857215779fd812ca3bef1b32",
"0x45804880de22913dafe09f4980848ece6ecbaf78",
"0xcccccccccc33d538dbc2ee4feab0a7a1ff4e8a94",
"0x57e114b691db790c35207b2e685d4a43181e6061",
"0x8236a87084f8b84306f72007f36f2618a5634494",
"0x38eeb52f0771140d10c4e9a9a72349a329fe8a6a",
"0xd166337499e176bbc38a1fbd113ab144e5bd2df7",
"0x56072c95faa701256059aa122697b133aded9279",
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"0xaa7a9ca87d3694b5755f213b5d04094b8d0f0a6f",
"0x18084fba666a33d37592fa2633fd49a74dd93a88",
"0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
"0xe9f6d9898f9269b519e1435e6ebaff766c7f46bf",
"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
"0x0000000000000000000000000000000000000000",
"0xdac17f958d2ee523a2206206994597c13d831ec7",
"0x514910771af9ca656af840dff83e8264ecf986ca",
Expand Down Expand Up @@ -430,22 +419,16 @@ const registry = {
},
assets: [
"0x9d39a5de30e57443bff2a8307a4256c8797a3497",
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0x5a98fcbea516cf06857215779fd812ca3bef1b32",
"0x45804880de22913dafe09f4980848ece6ecbaf78",
"0xcccccccccc33d538dbc2ee4feab0a7a1ff4e8a94",
"0xa3931d71877c0e7a3148cb7eb4463524fec27fbd",
"0x57e114b691db790c35207b2e685d4a43181e6061",
"0x8236a87084f8b84306f72007f36f2618a5634494",
"0x38eeb52f0771140d10c4e9a9a72349a329fe8a6a",
"0xd166337499e176bbc38a1fbd113ab144e5bd2df7",
"0x56072c95faa701256059aa122697b133aded9279",
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"0xaa7a9ca87d3694b5755f213b5d04094b8d0f0a6f",
"0x18084fba666a33d37592fa2633fd49a74dd93a88",
"0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
"0xe9f6d9898f9269b519e1435e6ebaff766c7f46bf",
"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
"0x0000000000000000000000000000000000000000",
"0xdac17f958d2ee523a2206206994597c13d831ec7",
"0x514910771af9ca656af840dff83e8264ecf986ca",
Expand All @@ -462,20 +445,15 @@ const registry = {
id: 2034,
},
assets: [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0x5a98fcbea516cf06857215779fd812ca3bef1b32",
"0x45804880de22913dafe09f4980848ece6ecbaf78",
"0xcccccccccc33d538dbc2ee4feab0a7a1ff4e8a94",
"0x57e114b691db790c35207b2e685d4a43181e6061",
"0x8236a87084f8b84306f72007f36f2618a5634494",
"0x38eeb52f0771140d10c4e9a9a72349a329fe8a6a",
"0xd166337499e176bbc38a1fbd113ab144e5bd2df7",
"0x56072c95faa701256059aa122697b133aded9279",
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"0x18084fba666a33d37592fa2633fd49a74dd93a88",
"0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
"0xe9f6d9898f9269b519e1435e6ebaff766c7f46bf",
"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
"0x0000000000000000000000000000000000000000",
"0xdac17f958d2ee523a2206206994597c13d831ec7",
"0x514910771af9ca656af840dff83e8264ecf986ca",
Expand Down Expand Up @@ -522,7 +500,6 @@ const registry = {
id: 10,
},
assets: [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"0x0000000000000000000000000000000000000000",
],
Expand All @@ -537,7 +514,6 @@ const registry = {
id: 2034,
},
assets: [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"0x0000000000000000000000000000000000000000",
],
Expand Down Expand Up @@ -582,7 +558,6 @@ const registry = {
id: 8453,
},
assets: [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"0x0000000000000000000000000000000000000000",
],
Expand All @@ -597,7 +572,6 @@ const registry = {
id: 2034,
},
assets: [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"0x0000000000000000000000000000000000000000",
],
Expand Down Expand Up @@ -642,7 +616,6 @@ const registry = {
id: 42161,
},
assets: [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"0x0000000000000000000000000000000000000000",
],
Expand All @@ -657,14 +630,13 @@ const registry = {
id: 2034,
},
assets: [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"0x0000000000000000000000000000000000000000",
],
},
],
registry: {
timestamp: "2026-06-12T06:19:27.228Z",
timestamp: "2026-06-28T06:07:00.628Z",
environment: "polkadot_mainnet",
ethChainId: 1,
gatewayAddress: "0x27ca963c279c93801941e1eb8799c23f407d68e7",
Expand All @@ -678,7 +650,7 @@ const registry = {
accountType: "AccountId32",
name: "Polkadot",
specName: "polkadot",
specVersion: 2002001,
specVersion: 2003000,
},
bridgeHub: {
tokenSymbols: "DOT",
Expand All @@ -688,7 +660,7 @@ const registry = {
accountType: "AccountId32",
name: "Polkadot BridgeHub",
specName: "bridge-hub-polkadot",
specVersion: 2002001,
specVersion: 2003000,
},
ethereumChains: {
ethereum_1: {
Expand Down Expand Up @@ -1201,7 +1173,7 @@ const registry = {
accountType: "AccountId32",
name: "Polkadot Asset Hub",
specName: "statemint",
specVersion: 2002001,
specVersion: 2003001,
},
assets: {
"0x9d39a5de30e57443bff2a8307a4256c8797a3497": {
Expand Down Expand Up @@ -2030,7 +2002,7 @@ const registry = {
evmChainId: 996,
name: "Bifrost Polkadot",
specName: "bifrost_polkadot",
specVersion: 24002,
specVersion: 25000,
},
assets: {
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
Expand All @@ -2050,7 +2022,7 @@ const registry = {
isSufficient: false,
},
},
estimatedExecutionFeeDOT: 56125754n,
estimatedExecutionFeeDOT: 50670981n,
estimatedDeliveryFeeDOT: 307100000n,
},
polkadot_2034: {
Expand Down Expand Up @@ -2078,7 +2050,7 @@ const registry = {
evmChainId: 222222,
name: "Hydration",
specName: "hydradx",
specVersion: 419,
specVersion: 428,
},
assets: {
"0x45804880de22913dafe09f4980848ece6ecbaf78": {
Expand Down Expand Up @@ -2145,14 +2117,6 @@ const registry = {
decimals: 18,
isSufficient: true,
},
"0xe9f6d9898f9269b519e1435e6ebaff766c7f46bf": {
token: "0xe9f6d9898f9269b519e1435e6ebaff766c7f46bf",
name: "",
minimumBalance: 1n,
symbol: "",
decimals: 0,
isSufficient: false,
},
"0xcccccccccc33d538dbc2ee4feab0a7a1ff4e8a94": {
token: "0xcccccccccc33d538dbc2ee4feab0a7a1ff4e8a94",
name: "Centrifuge",
Expand Down Expand Up @@ -2185,30 +2149,6 @@ const registry = {
decimals: 18,
isSufficient: true,
},
"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599": {
token: "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
name: "Wrapped Bitcoin",
minimumBalance: 23n,
symbol: "WBTC",
decimals: 8,
isSufficient: true,
},
"0xa3931d71877c0e7a3148cb7eb4463524fec27fbd": {
token: "0xa3931d71877c0e7a3148cb7eb4463524fec27fbd",
name: "Savings USDS",
minimumBalance: 9910802775024780n,
symbol: "sUSDS",
decimals: 18,
isSufficient: true,
},
"0xd166337499e176bbc38a1fbd113ab144e5bd2df7": {
token: "0xd166337499e176bbc38a1fbd113ab144e5bd2df7",
name: "Saturn sUSDat",
minimumBalance: 20012007204322600n,
symbol: "sUSDat",
decimals: 18,
isSufficient: true,
},
"0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0": {
token: "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
name: "Wrapped staked ETH",
Expand All @@ -2233,24 +2173,8 @@ const registry = {
decimals: 18,
isSufficient: true,
},
"0x8236a87084f8b84306f72007f36f2618a5634494": {
token: "0x8236a87084f8b84306f72007f36f2618a5634494",
name: "Lombard Staked BTC",
minimumBalance: 11n,
symbol: "LBTC",
decimals: 8,
isSufficient: true,
},
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
token: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
name: "Wrapped Ethereum",
minimumBalance: 6009615384615n,
symbol: "WETH",
decimals: 18,
isSufficient: true,
},
},
estimatedExecutionFeeDOT: 3168492n,
estimatedExecutionFeeDOT: 3618870n,
estimatedDeliveryFeeDOT: 307100000n,
},
polkadot_2043: {
Expand Down Expand Up @@ -2358,7 +2282,7 @@ const registry = {
accountType: "AccountId32",
name: "Kusama Asset Hub",
specName: "statemine",
specVersion: 2002000,
specVersion: 2003000,
},
assets: {
"0x9d39a5de30e57443bff2a8307a4256c8797a3497": {
Expand Down
Loading