Skip to content

refactor: use deployments package #308

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 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
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# directories
.docusaurus
build
node_modules
repos
src/autogen/**/*.mdx
static

# files
babel.config.js
docusaurus.config.ts
sidebars.js
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
.docusaurus
build
node_modules
src/autogen/**/*.mdx

# files
*.env
*.log
*.tsbuildinfo
.DS_Store
.eslintcache
.pnp.*
package-lock.json
pnpm-lock.yaml
yarn.lock
3 changes: 2 additions & 1 deletion .lintstagedrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
"*.{json,md,mdx,ts,tsx,yml}": "bun run fix"
"*.{md,mdx,ts,tsx}": "bun run fix"
"*.{json,md,mdx,ts,tsx,yml}": "bun run prettier:write"
5 changes: 2 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# directories
.cache-loader
.docusaurus
build
node_modules
repos
src/autogen/**/*.mdx
static

# files
.pnp.*
package-lock.json
pnpm-lock.yaml
3,505 changes: 1,632 additions & 1,873 deletions bun.lock

Large diffs are not rendered by default.

192 changes: 13 additions & 179 deletions docs/api/airdrops/02-airdrops-endpoints.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ sidebar_position: 2
title: "Endpoints"
---

import DeprecatedSubgraphs from "@site/docs/snippets/DeprecatedSubgraphs.mdx";
import EnvioEndpoints from "@site/docs/snippets/EnvioEndpoints.mdx";
import TheGraphEndpoints from "@site/docs/snippets/TheGraphEndpoints.mdx";
import TableEnvios from "@site/src/autogen/airdrops/envios.mdx";
import TableSubgraphs from "@site/src/autogen/airdrops/subgraphs.mdx";
import DeprecatedSubgraphs from "@site/src/components/atoms/DeprecatedSubgraphs";
import LinkPreview from "@site/src/components/molecules/LinkPreview";
import ExplainerEnvio from "@site/src/snippets/ExplainerEnvio.mdx";
import ExplainerTheGraph from "@site/src/snippets/ExplainerTheGraph.mdx";

# Airdrops Endpoints

Expand All @@ -28,7 +30,7 @@ explore the source code on GitHub:

## Indexers

The following indexers (Envio, The Graph) track the events emitted by the Sablier Airdrops contracts, specifically the
Envio and The Graph index the events emitted by the Sablier Airdrops contracts, specifically the
ones in charge of Merkle distributions. It deals with airdrops-specific actions like the factory creating an airstream
campaign, admin clawbacks, or users claiming stream NFTs as defined in the attached Merkle tree.

Expand All @@ -48,11 +50,11 @@ new [Lockup](/api/lockup/overview) streams.

### Endpoints

| Chain | Endpoint |
| ---------- | ------------------------------------------------- |
| All Chains | https://indexer.hyperindex.xyz/508d217/v1/graphql |
<ExplainerEnvio />

<EnvioEndpoints />
#### Table

<TableEnvios />

## The Graph

Expand All @@ -67,177 +69,9 @@ new [Lockup](/api/lockup/overview) streams.

### Endpoints

<TheGraphEndpoints />
<ExplainerTheGraph />
<DeprecatedSubgraphs protocol="airdrops" />

| Chain | Explorer | Production Node | Testing Node |
| ---------------- | ----------------------------------------------------------------------- | ------------------------------------------------------ | ------------------------------------------ |
| Ethereum | [sablier-airdrops-ethereum-mainnet][explorer-airdrops-ethereum-mainnet] | [The Graph Network][network-airdrops-ethereum-mainnet] | [Studio][studio-airdrops-ethereum-mainnet] |
| Abstract | [sablier-airdrops-abstract][explorer-airdrops-abstract] | [The Graph Network][network-airdrops-abstract] | [Studio][studio-airdrops-abstract] |
| Arbitrum | [sablier-airdrops-arbitrum][explorer-airdrops-arbitrum] | [The Graph Network][network-airdrops-arbitrum] | [Studio][studio-airdrops-arbitrum] |
| Avalanche | [sablier-airdrops-avalanche][explorer-airdrops-avalanche] | [The Graph Network][network-airdrops-avalanche] | [Studio][studio-airdrops-avalanche] |
| Base | [sablier-airdrops-base][explorer-airdrops-base] | [The Graph Network][network-airdrops-base] | [Studio][studio-airdrops-base] |
| Berachain | [sablier-airdrops-berachain][explorer-airdrops-berachain] | [The Graph Network][network-airdrops-berachain] | [Studio][studio-airdrops-berachain] |
| Blast | [sablier-airdrops-blast][explorer-airdrops-blast] | [The Graph Network][network-airdrops-blast] | [Studio][studio-airdrops-blast] |
| BNB Chain | [sablier-airdrops-bsc][explorer-airdrops-bsc] | [The Graph Network][network-airdrops-bsc] | [Studio][studio-airdrops-bsc] |
| Chiliz Chain | [sablier-airdrops-chiliz][explorer-airdrops-chiliz] | [The Graph Network][network-airdrops-chiliz] | [Studio][studio-airdrops-chiliz] |
| Gnosis | [sablier-airdrops-gnosis][explorer-airdrops-gnosis] | [The Graph Network][network-airdrops-gnosis] | [Studio][studio-airdrops-gnosis] |
| IoTeX | [sablier-airdrops-iotex][explorer-airdrops-iotex] | [The Graph Network][network-airdrops-iotex] | [Studio][studio-airdrops-iotex] |
| Linea | [sablier-airdrops-linea][explorer-airdrops-linea] | [The Graph Network][network-airdrops-linea] | [Studio][studio-airdrops-linea] |
| Lightlink | [sablier-airdrops-lightlink][explorer-airdrops-lightlink] | [LightLink Node][custom-airdrops-lightlink] | N/A |
| Mode | [sablier-airdrops-mode][explorer-airdrops-mode] | [The Graph Network][network-airdrops-mode] | [Studio][studio-airdrops-mode] |
| Optimism | [sablier-airdrops-optimism][explorer-airdrops-optimism] | [The Graph Network][network-airdrops-optimism] | [Studio][studio-airdrops-optimism] |
| Polygon | [sablier-airdrops-polygon][explorer-airdrops-polygon] | [The Graph Network][network-airdrops-polygon] | [Studio][studio-airdrops-polygon] |
| Scroll | [sablier-airdrops-scroll][explorer-airdrops-scroll] | [The Graph Network][network-airdrops-scroll] | [Studio][studio-airdrops-scroll] |
| XDC | [sablier-airdrops-xdc][explorer-airdrops-xdc] | [XDC Node][custom-airdrops-xdc] | N/A |
| zkSync | [sablier-airdrops-zksync][explorer-airdrops-zksync] | [The Graph Network][network-airdrops-zksync] | [Studio][studio-airdrops-zksync] |
| Arbitrum Sepolia | [sablier-airdrops-arbitrum-sepolia][explorer-airdrops-arbitrum-sepolia] | [The Graph Network][network-airdrops-arbitrum-sepolia] | [Studio][studio-airdrops-arbitrum-sepolia] |
| Base Sepolia | [sablier-airdrops-base-sepolia][explorer-airdrops-base-sepolia] | [The Graph Network][network-airdrops-base-sepolia] | [Studio][studio-airdrops-base-sepolia] |
| Ethereum Sepolia | [sablier-airdrops-ethereum-sepolia][explorer-airdrops-ethereum-sepolia] | [The Graph Network][network-airdrops-ethereum-sepolia] | [Studio][studio-airdrops-ethereum-sepolia] |
| Optimism Sepolia | [sablier-airdrops-optimism-sepolia][explorer-airdrops-optimism-sepolia] | [The Graph Network][network-airdrops-optimism-sepolia] | [Studio][studio-airdrops-optimism-sepolia] |

[^1]: The testing nodes may be rate-limited.

{/* --------------------------------------------------------------------------------------------------------------------------------- */}
{/* --------------------------------------------------------------------------------------------------------------------------------- */}
{/* --------------------------------------------------------------------------------------------------------------------------------- */}

{/* MAINNETS */}

{/* Chain: Ethereum Mainnet */}

[explorer-airdrops-ethereum-mainnet]: https://thegraph.com/explorer/subgraphs/DFD73EcSue44R7mpHvXeyvcgaT8tR1iKakZFjBsiFpjs
[studio-airdrops-ethereum-mainnet]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-ethereum/version/latest
[network-airdrops-ethereum-mainnet]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/DFD73EcSue44R7mpHvXeyvcgaT8tR1iKakZFjBsiFpjs

{/* Chain: Abstract */}

[network-airdrops-abstract]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/DRrf6mYEhRt9QieKvTjDHnSWcBm3GW96hpedMKVxLABx
[explorer-airdrops-abstract]: https://thegraph.com/explorer/subgraphs/DRrf6mYEhRt9QieKvTjDHnSWcBm3GW96hpedMKVxLABx
[studio-airdrops-abstract]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-abstract/version/latest

{/* Chain: Arbitrum */}

[network-airdrops-arbitrum]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/HkHDg6NVVVeobhpcU4pTPMktyC25zd6xAQBGpYrWDgRr
[explorer-airdrops-arbitrum]: https://thegraph.com/explorer/subgraphs/HkHDg6NVVVeobhpcU4pTPMktyC25zd6xAQBGpYrWDgRr
[studio-airdrops-arbitrum]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-arbitrum/version/latest

{/* Chain: Avalanche */}

[network-airdrops-avalanche]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/CpbN5Ps25UzqfdoqYdrjoSK4Him6nwDvdLK6a2sGS1PA
[explorer-airdrops-avalanche]: https://thegraph.com/explorer/subgraphs/CpbN5Ps25UzqfdoqYdrjoSK4Him6nwDvdLK6a2sGS1PA
[studio-airdrops-avalanche]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-avalanche/version/latest

{/* Chain: Base */}

[network-airdrops-base]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/4SxPXkQNifgBYqje2C4yP5gz69erZwtD7GuLWgXHSLGe
[explorer-airdrops-base]: https://thegraph.com/explorer/subgraphs/4SxPXkQNifgBYqje2C4yP5gz69erZwtD7GuLWgXHSLGe
[studio-airdrops-base]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-base/version/latest

{/* Chain: Berachain */}

[network-airdrops-berachain]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/CnYsdmzuY3Mebwywvqv1WrXw9UZuPMTrxoGgR2UdThJE
[explorer-airdrops-berachain]: https://thegraph.com/explorer/subgraphs/CnYsdmzuY3Mebwywvqv1WrXw9UZuPMTrxoGgR2UdThJE
[studio-airdrops-berachain]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-berachain/version/latest

{/* Chain: Blast */}

[network-airdrops-blast]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/657bogqYaDSSeqsoJcJ1kRqGnc3jC15UmcVLzsYxyxKK
[explorer-airdrops-blast]: https://thegraph.com/explorer/subgraphs/657bogqYaDSSeqsoJcJ1kRqGnc3jC15UmcVLzsYxyxKK
[studio-airdrops-blast]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-blast/version/latest

{/* Chain: BSC */}

[network-airdrops-bsc]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/FXQT42kQPvpMJgsF5Bs6CqpxVvPP1LBqEhWThCCLMeGL
[explorer-airdrops-bsc]: https://thegraph.com/explorer/subgraphs/FXQT42kQPvpMJgsF5Bs6CqpxVvPP1LBqEhWThCCLMeGL
[studio-airdrops-bsc]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-bsc/version/latest

{/* Chain: Chiliz */}

[network-airdrops-chiliz]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/6LK1aqrhzZCp6c88MEBDAR1VDLpZQiXpBKkceJ5Lu4LU
[explorer-airdrops-chiliz]: https://thegraph.com/explorer/subgraphs/6LK1aqrhzZCp6c88MEBDAR1VDLpZQiXpBKkceJ5Lu4LU
[studio-airdrops-chiliz]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-chiliz/version/latest

{/* Chain: Gnosis */}

[network-airdrops-gnosis]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/kQEY5PYbjx4SMKyMUwqJHRLDzKH1aUqGsf1cnibU7Kn
[explorer-airdrops-gnosis]: https://thegraph.com/explorer/subgraphs/kQEY5PYbjx4SMKyMUwqJHRLDzKH1aUqGsf1cnibU7Kn
[studio-airdrops-gnosis]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-gnosis/version/latest

{/* Chain: Iotex */}

[network-airdrops-iotex]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/G39uCzr1FDY7pBFe8DwShAxhMeC6dbZetutVg6wjtks3
[explorer-airdrops-iotex]: https://thegraph.com/explorer/subgraphs/G39uCzr1FDY7pBFe8DwShAxhMeC6dbZetutVg6wjtks3
[studio-airdrops-iotex]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-gnosis/version/latest

{/* Chain: Linea */}

[network-airdrops-linea]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/6koYFSd8FQizdQWLTdRpL1yTmAbpMgN1vZN5W6ajZiTN
[explorer-airdrops-linea]: https://thegraph.com/explorer/subgraphs/6koYFSd8FQizdQWLTdRpL1yTmAbpMgN1vZN5W6ajZiTN
[studio-airdrops-linea]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-linea/version/latest

{/* Chain: LightLink */}

[explorer-airdrops-lightlink]: https://graph.phoenix.lightlink.io/query/subgraphs/name/lightlink/sablier-airdrops-lightlink/graphql
[custom-airdrops-lightlink]: https://graph.phoenix.lightlink.io/query/subgraphs/name/lightlink/sablier-airdrops-lightlink

{/* Chain: Mode */}

[network-airdrops-mode]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/HZMkVX5c2qf7BqbidwpcQMsHGWTDdEKwVjnwenzo9s6m
[explorer-airdrops-mode]: https://thegraph.com/explorer/subgraphs/HZMkVX5c2qf7BqbidwpcQMsHGWTDdEKwVjnwenzo9s6m
[studio-airdrops-mode]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-mode/version/latest

{/* Chain: Optimism */}

[network-airdrops-optimism]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/CHJtCNDzPqngpa1YJoaVrjuufZL6k6VkEkG9ZFUMQzF7
[explorer-airdrops-optimism]: https://thegraph.com/explorer/subgraphs/CHJtCNDzPqngpa1YJoaVrjuufZL6k6VkEkG9ZFUMQzF7
[studio-airdrops-optimism]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-optimism/version/latest

{/* Chain: Polygon */}

[network-airdrops-polygon]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/FRbBKiDyM5YpFAqHLXRfQWwQdMGzFL82hqoPXPpXzAHE
[explorer-airdrops-polygon]: https://thegraph.com/explorer/subgraphs/FRbBKiDyM5YpFAqHLXRfQWwQdMGzFL82hqoPXPpXzAHE
[studio-airdrops-polygon]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-polygon/version/latest

{/* Chain: Scroll */}

[network-airdrops-scroll]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/Ev4xS8VxuoUcpgqz5A2BkTgQxQeskm4Fg41XzVJ2DX9
[explorer-airdrops-scroll]: https://thegraph.com/explorer/subgraphs/Ev4xS8VxuoUcpgqz5A2BkTgQxQeskm4Fg41XzVJ2DX9
[studio-airdrops-scroll]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-scroll/version/latest

{/* Chain: XDC */}

[explorer-airdrops-xdc]: https://graphql.xinfin.network/subgraphs/name/xdc/sablier-airdrops-xdc/graphql
[custom-airdrops-xdc]: https://graphql.xinfin.network/subgraphs/name/xdc/sablier-airdrops-xdc

{/* Chain: zkSync */}

[network-airdrops-zksync]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/64iDUwNVWKukw67nqTXif5taEfLug4Qf1c2suAv5hrqN
[explorer-airdrops-zksync]: https://thegraph.com/explorer/subgraphs/64iDUwNVWKukw67nqTXif5taEfLug4Qf1c2suAv5hrqN
[studio-airdrops-zksync]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-zksync/version/latest

{/* TESTNETS */}

{/* Chain: Arbitrum Sepolia */}

[network-airdrops-arbitrum-sepolia]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/3S7v3VkDq8XMBd8EFVhKur2Vk44xScaW8a4BRjoPuYWk
[explorer-airdrops-arbitrum-sepolia]: https://thegraph.com/explorer/subgraphs/3S7v3VkDq8XMBd8EFVhKur2Vk44xScaW8a4BRjoPuYWk
[studio-airdrops-arbitrum-sepolia]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-arbitrum-sepolia/version/latest

{/* Chain: Base Sepolia */}

[network-airdrops-base-sepolia]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/4R2hm27YJ7CVEJ97BbBJz2r4KTKYc8sTqqzrD8UzEfJt
[explorer-airdrops-base-sepolia]: https://thegraph.com/explorer/subgraphs/4R2hm27YJ7CVEJ97BbBJz2r4KTKYc8sTqqzrD8UzEfJt
[studio-airdrops-base-sepolia]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-base-sepolia/version/latest

{/* Chain: Ethereum Sepolia */}

[network-airdrops-ethereum-sepolia]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/8PLGDyXEsPgRTAnozL7MAjmTUFY4TBzs8i4F9Pq3wwSh
[explorer-airdrops-ethereum-sepolia]: https://thegraph.com/explorer/subgraphs/8PLGDyXEsPgRTAnozL7MAjmTUFY4TBzs8i4F9Pq3wwSh
[studio-airdrops-ethereum-sepolia]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-sepolia/version/latest

{/* Chain: Optimism Sepolia */}
#### Table

[network-airdrops-optimism-sepolia]: https://gateway.thegraph.com/api/API_KEY/subgraphs/id/3kp1eR2T1XpvvLkSZ7Wtt45DbDaiykTes478RZ7zwTz
[explorer-airdrops-optimism-sepolia]: https://thegraph.com/explorer/subgraphs/3kp1eR2T1XpvvLkSZ7Wtt45DbDaiykTes478RZ7zwTz
[studio-airdrops-optimism-sepolia]: https://api.studio.thegraph.com/query/57079/sablier-airdrops-optimism-sepolia/version/latest
<TableSubgraphs />
2 changes: 1 addition & 1 deletion docs/api/airdrops/06-previous-endpoints.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebar_position: 6
title: "Previous Endpoints"
---

import DeprecatedEndpoints from "@site/docs/snippets/DeprecatedEndpoints.mdx";
import DeprecatedEndpoints from "@site/src/snippets/DeprecatedEndpoints.mdx";

<DeprecatedEndpoints />

Expand Down
Loading