diff --git a/.env.development b/.env.development index deaad357bd..32373fdc53 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ VITE_PROVIDER_URL=wss://rpc.nice.hydration.cloud VITE_DOMAIN_URL=https://testnet-mining-app.hydradx.io VITE_INDEXER_URL=https://archive.nice.hydration.cloud/graphql -VITE_SQUID_URL=https://data-squid.nice.hydration.cloud/graphql +VITE_SQUID_URL=https://galacticcouncil.squids.live/hydration-pools:unified-prod/api/graphql VITE_GRAFANA_URL=https://grafana-api.play.hydration.cloud/api/ds/query VITE_GRAFANA_DSN=11 VITE_ENV=development @@ -11,9 +11,5 @@ VITE_HDX_CAIP_ID=polkadot:afdc188f45c71dacbaa0b62e16a91f72 VITE_STABLECOIN_ASSET_ID=10 VITE_FF_DISPLAY_ASSET_ENABLED=true VITE_FF_ADD_TOKEN=true -VITE_REFERENDUM_LINK=https://hydradx.subsquare.io/democracy/referendum -VITE_REFERENDUM_DATA_URL=https://hydradx.subsquare.io/api/democracy/referendums VITE_EVM_CHAIN_ID=222222 VITE_EVM_NATIVE_ASSET_ID=20 -VITE_MIGRATION_TRIGGER_DOMAIN="deploy-preview-1334--testnet-hydra-app.netlify.app" -VITE_MIGRATION_TARGET_DOMAIN="testnet-app.hydradx.io" \ No newline at end of file diff --git a/.env.production b/.env.production index 6f234678b2..b30aad5009 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ VITE_PROVIDER_URL=wss://rpc.hydradx.cloud VITE_DOMAIN_URL=https://app.hydration.net VITE_INDEXER_URL=https://explorer.hydradx.cloud/graphql -VITE_SQUID_URL=https://hydra-data-squid.play.hydration.cloud/graphql +VITE_SQUID_URL=https://galacticcouncil.squids.live/hydration-pools:unified-prod/api/graphql VITE_GRAFANA_URL=https://grafana.hydradx.cloud/api/ds/query VITE_GRAFANA_DSN=10 VITE_ENV=production @@ -11,9 +11,5 @@ VITE_HDX_CAIP_ID=polkadot:afdc188f45c71dacbaa0b62e16a91f72 VITE_STABLECOIN_ASSET_ID=10 VITE_FF_DISPLAY_ASSET_ENABLED=false VITE_FF_ADD_TOKEN=true -VITE_REFERENDUM_LINK=https://hydradx.subsquare.io/democracy/referendum -VITE_REFERENDUM_DATA_URL=https://hydradx.subsquare.io/api/democracy/referendums VITE_EVM_CHAIN_ID=222222 VITE_EVM_NATIVE_ASSET_ID=20 -VITE_MIGRATION_TRIGGER_DOMAIN="app.hydradx.io" -VITE_MIGRATION_TARGET_DOMAIN="app.hydration.net" \ No newline at end of file diff --git a/.env.rococo b/.env.rococo index 3a170bb9eb..2713e4010d 100644 --- a/.env.rococo +++ b/.env.rococo @@ -1,7 +1,7 @@ -VITE_PROVIDER_URL=wss://rpc.nice.hydration.cloud -VITE_DOMAIN_URL=https://rococo-app.hydradx.io -VITE_INDEXER_URL=https://hydradx-rococo-explorer.play.hydration.cloud/graphql -VITE_SQUID_URL=https://squid.subsquid.io/hydradx-rococo-data-squid/v/v1/graphql +VITE_PROVIDER_URL=wss://paseo-rpc.play.hydration.cloud +VITE_DOMAIN_URL=https://paseo-app.hydration.net +VITE_INDEXER_URL=https://explorer.hydradx.cloud/graphql +VITE_SQUID_URL=https://galacticcouncil.squids.live/hydration-paseo-pools:prod/api/graphql VITE_GRAFANA_URL=https://grafana-api.play.hydration.cloud/api/ds/query VITE_GRAFANA_DSN=11 VITE_ENV=rococo @@ -11,9 +11,5 @@ VITE_HDX_CAIP_ID=polkadot:afdc188f45c71dacbaa0b62e16a91f72 VITE_STABLECOIN_ASSET_ID=10 VITE_FF_DISPLAY_ASSET_ENABLED=false VITE_FF_ADD_TOKEN=false -VITE_REFERENDUM_LINK=https://hydradx.subsquare.io/democracy/referendum -VITE_REFERENDUM_DATA_URL=https://hydradx.subsquare.io/api/democracy/referendums VITE_EVM_CHAIN_ID= VITE_EVM_NATIVE_ASSET_ID=20 -VITE_MIGRATION_TRIGGER_DOMAIN="" -VITE_MIGRATION_TARGET_DOMAIN="" \ No newline at end of file diff --git a/.eslintignore b/.eslintignore index 0d655a6d1b..4a641536fd 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,2 @@ src/interfaces/* +src/graphql/__generated__/* \ No newline at end of file diff --git a/.gitignore b/.gitignore index d46b32f206..af45afe8c3 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,7 @@ yarn-error.log* .idea .vscode +.cursor # generated /pages diff --git a/.papi/descriptors/.gitignore b/.papi/descriptors/.gitignore new file mode 100644 index 0000000000..46d96ea47e --- /dev/null +++ b/.papi/descriptors/.gitignore @@ -0,0 +1,3 @@ +* +!.gitignore +!package.json \ No newline at end of file diff --git a/.papi/descriptors/package.json b/.papi/descriptors/package.json new file mode 100644 index 0000000000..994629e782 --- /dev/null +++ b/.papi/descriptors/package.json @@ -0,0 +1,24 @@ +{ + "version": "0.1.0-autogenerated.2598177068035235261", + "name": "@polkadot-api/descriptors", + "files": [ + "dist" + ], + "exports": { + ".": { + "types": "./dist/index.d.ts", + "module": "./dist/index.mjs", + "import": "./dist/index.mjs", + "require": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "module": "./dist/index.mjs", + "browser": "./dist/index.mjs", + "types": "./dist/index.d.ts", + "sideEffects": false, + "peerDependencies": { + "polkadot-api": "*" + } +} diff --git a/.papi/metadata/assethub.scale b/.papi/metadata/assethub.scale new file mode 100644 index 0000000000..b48010a4ca Binary files /dev/null and b/.papi/metadata/assethub.scale differ diff --git a/.papi/polkadot-api.json b/.papi/polkadot-api.json new file mode 100644 index 0000000000..b3ee8b1919 --- /dev/null +++ b/.papi/polkadot-api.json @@ -0,0 +1,10 @@ +{ + "version": 0, + "descriptorPath": ".papi/descriptors", + "entries": { + "assethub": { + "wsUrl": "wss://polkadot-asset-hub-rpc.polkadot.io", + "metadata": ".papi/metadata/assethub.scale" + } + } +} \ No newline at end of file diff --git a/graphql.config.ts b/graphql.config.ts new file mode 100644 index 0000000000..a071bf62d8 --- /dev/null +++ b/graphql.config.ts @@ -0,0 +1,14 @@ +import type { IGraphQLConfig } from "graphql-config" + +export default { + projects: { + indexer: { + schema: "./schema.indexer.graphql", + documents: "./src/**/*.indexer.graphql", + }, + squid: { + schema: "./schema.squid.graphql", + documents: "./src/**/*.squid.graphql", + }, + }, +} satisfies IGraphQLConfig diff --git a/index.html b/index.html index 77cc83da9c..58fcb9656c 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ - + @@ -26,10 +26,11 @@ - +
-