@sablier/indexers 3.0.0-beta.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -39,7 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.constants = void 0;
40
40
  exports.constants = __importStar(require("./constants.js"));
41
41
  __exportStar(require("./enums.js"), exports);
42
- __exportStar(require("./experimental.js"), exports);
43
42
  __exportStar(require("./indexers/index.js"), exports);
44
43
  __exportStar(require("./types.js"), exports);
45
44
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,4DAA4C;AAC5C,6CAA2B;AAC3B,oDAAkC;AAClC,sDAAoC;AACpC,6CAA2B","sourcesContent":["/**\n * @file @see https://docs.sablier.com/api/overview\n */\nexport * as constants from \"./constants.js\";\nexport * from \"./enums.js\";\nexport * from \"./experimental.js\";\nexport * from \"./indexers/index.js\";\nexport * from \"./types.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,4DAA4C;AAC5C,6CAA2B;AAC3B,sDAAoC;AACpC,6CAA2B","sourcesContent":["/**\n * @file @see https://docs.sablier.com/api/overview\n */\nexport * as constants from \"./constants.js\";\nexport * from \"./enums.js\";\nexport * from \"./indexers/index.js\";\nexport * from \"./types.js\";\n"]}
package/dist/esm/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  export * as constants from "./constants.js";
2
2
  export * from "./enums.js";
3
- export * from "./experimental.js";
4
3
  export * from "./indexers/index.js";
5
4
  export * from "./types.js";
6
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC","sourcesContent":["/**\n * @file @see https://docs.sablier.com/api/overview\n */\nexport * as constants from \"./constants.js\";\nexport * from \"./enums.js\";\nexport * from \"./experimental.js\";\nexport * from \"./indexers/index.js\";\nexport * from \"./types.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC","sourcesContent":["/**\n * @file @see https://docs.sablier.com/api/overview\n */\nexport * as constants from \"./constants.js\";\nexport * from \"./enums.js\";\nexport * from \"./indexers/index.js\";\nexport * from \"./types.js\";\n"]}
@@ -1,6 +1,5 @@
1
1
  export * as constants from "./constants.js";
2
2
  export * from "./enums.js";
3
- export * from "./experimental.js";
4
3
  export * from "./indexers/index.js";
5
4
  export * from "./types.js";
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sablier/indexers",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0",
4
4
  "description": "Data indexers for the Sablier Protocol",
5
5
  "homepage": "https://github.com/sablier-labs/indexers#readme",
6
6
  "license": "GPL-3.0-or-later",
@@ -15,7 +15,7 @@
15
15
  "url": "https://sablier.com"
16
16
  },
17
17
  "dependencies": {
18
- "sablier": "^3.3.0"
18
+ "sablier": "^3.3.2"
19
19
  },
20
20
  "exports": {
21
21
  ".": {
@@ -35,9 +35,9 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@biomejs/biome": "^2.4.8",
38
- "@effect/cli": "^0.73.0",
39
- "@effect/platform": "^0.94.0",
40
- "@effect/platform-node": "^0.104.0",
38
+ "@effect/cli": "^0.75.0",
39
+ "@effect/platform": "^0.96.0",
40
+ "@effect/platform-node": "^0.106.0",
41
41
  "@graphprotocol/graph-cli": "0.98.1",
42
42
  "@graphprotocol/graph-ts": "0.38.2",
43
43
  "@graphql-tools/load-files": "^7.0.1",
@@ -61,7 +61,7 @@
61
61
  "dayjs": "^1.11.19",
62
62
  "dependency-cruiser": "^17.3.8",
63
63
  "dotenv": "^17.2.3",
64
- "effect": "^3.19.13",
64
+ "effect": "^3.21.0",
65
65
  "envio": "2.32.10",
66
66
  "graphql": "^16.12.0",
67
67
  "graphql-request": "^7.4.0",
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getExperimentalURL = getExperimentalURL;
4
- const chains_1 = require("sablier/evm/chains");
5
- const getters_js_1 = require("./indexers/getters.js");
6
- function getExperimentalURL(opts) {
7
- const { protocol, vendor } = opts;
8
- if (vendor === "envio") {
9
- const id = {
10
- airdrops: "508d217",
11
- flow: "3b4ea6b",
12
- lockup: "53b7e25",
13
- };
14
- return `https://indexer.hyperindex.xyz/${id[protocol]}/v1/graphql`;
15
- }
16
- const indexer = (0, getters_js_1.getIndexer)({ chainId: chains_1.sepolia.id, protocol, vendor: "graph" });
17
- if (!indexer?.testingURL) {
18
- throw new Error(`Sepolia Indexer not found for protocol ${protocol}`);
19
- }
20
- return indexer.testingURL.replace("sepolia", "experimental");
21
- }
22
- //# sourceMappingURL=experimental.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"experimental.js","sourceRoot":"","sources":["../../src/experimental.ts"],"names":[],"mappings":";;AAkBA,gDAmBC;AA1BD,+CAA6C;AAC7C,sDAAmD;AAMnD,SAAgB,kBAAkB,CAAC,IAGlC;IACC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAClC,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;QACvB,MAAM,EAAE,GAAG;YACT,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,SAAS;SAClB,CAAC;QACF,OAAO,kCAAkC,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC;IACrE,CAAC;IAED,MAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,EAAE,OAAO,EAAE,gBAAO,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IAC/E,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,0CAA0C,QAAQ,EAAE,CAAC,CAAC;IACxE,CAAC;IACD,OAAO,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;AAC/D,CAAC","sourcesContent":["/**\n * @file The experimental indexers are the staging environment where we test new\n * features before they are released. They run on the Sepolia testnet.\n *\n * The experimental indexers are used for generating the GraphQL bindings in:\n * @see {@link file://./gql/flow/envio/gql.ts}\n * @see {@link file://./gql/flow/graph/gql.ts}\n *\n * As well as for the equivalence tests in:\n * @see {@link file://./../tests/vendors/equivalence/create-test.ts}\n */\nimport { sepolia } from \"sablier/evm/chains\";\nimport { getIndexer } from \"./indexers/getters.js\";\nimport type { Indexer } from \"./types.js\";\n\n/**\n * The experimental indexers run on Sepolia.\n */\nexport function getExperimentalURL(opts: {\n protocol: Indexer.Protocol;\n vendor: Indexer.Vendor;\n}): string {\n const { protocol, vendor } = opts;\n if (vendor === \"envio\") {\n const id = {\n airdrops: \"508d217\", // https://envio.dev/app/sablier-labs/merkle-envio\n flow: \"3b4ea6b\", // https://envio.dev/app/sablier-labs/flow-envio\n lockup: \"53b7e25\", // https://envio.dev/app/sablier-labs/lockup-envio\n };\n return `https://indexer.hyperindex.xyz/${id[protocol]}/v1/graphql`;\n }\n\n const indexer = getIndexer({ chainId: sepolia.id, protocol, vendor: \"graph\" });\n if (!indexer?.testingURL) {\n throw new Error(`Sepolia Indexer not found for protocol ${protocol}`);\n }\n return indexer.testingURL.replace(\"sepolia\", \"experimental\");\n}\n"]}
@@ -1,19 +0,0 @@
1
- import { sepolia } from "sablier/evm/chains";
2
- import { getIndexer } from "./indexers/getters.js";
3
- export function getExperimentalURL(opts) {
4
- const { protocol, vendor } = opts;
5
- if (vendor === "envio") {
6
- const id = {
7
- airdrops: "508d217",
8
- flow: "3b4ea6b",
9
- lockup: "53b7e25",
10
- };
11
- return `https://indexer.hyperindex.xyz/${id[protocol]}/v1/graphql`;
12
- }
13
- const indexer = getIndexer({ chainId: sepolia.id, protocol, vendor: "graph" });
14
- if (!indexer?.testingURL) {
15
- throw new Error(`Sepolia Indexer not found for protocol ${protocol}`);
16
- }
17
- return indexer.testingURL.replace("sepolia", "experimental");
18
- }
19
- //# sourceMappingURL=experimental.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"experimental.js","sourceRoot":"","sources":["../../src/experimental.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAMnD,MAAM,UAAU,kBAAkB,CAAC,IAGlC;IACC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAClC,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;QACvB,MAAM,EAAE,GAAG;YACT,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,SAAS;SAClB,CAAC;QACF,OAAO,kCAAkC,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC;IACrE,CAAC;IAED,MAAM,OAAO,GAAG,UAAU,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IAC/E,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,0CAA0C,QAAQ,EAAE,CAAC,CAAC;IACxE,CAAC;IACD,OAAO,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;AAC/D,CAAC","sourcesContent":["/**\n * @file The experimental indexers are the staging environment where we test new\n * features before they are released. They run on the Sepolia testnet.\n *\n * The experimental indexers are used for generating the GraphQL bindings in:\n * @see {@link file://./gql/flow/envio/gql.ts}\n * @see {@link file://./gql/flow/graph/gql.ts}\n *\n * As well as for the equivalence tests in:\n * @see {@link file://./../tests/vendors/equivalence/create-test.ts}\n */\nimport { sepolia } from \"sablier/evm/chains\";\nimport { getIndexer } from \"./indexers/getters.js\";\nimport type { Indexer } from \"./types.js\";\n\n/**\n * The experimental indexers run on Sepolia.\n */\nexport function getExperimentalURL(opts: {\n protocol: Indexer.Protocol;\n vendor: Indexer.Vendor;\n}): string {\n const { protocol, vendor } = opts;\n if (vendor === \"envio\") {\n const id = {\n airdrops: \"508d217\", // https://envio.dev/app/sablier-labs/merkle-envio\n flow: \"3b4ea6b\", // https://envio.dev/app/sablier-labs/flow-envio\n lockup: \"53b7e25\", // https://envio.dev/app/sablier-labs/lockup-envio\n };\n return `https://indexer.hyperindex.xyz/${id[protocol]}/v1/graphql`;\n }\n\n const indexer = getIndexer({ chainId: sepolia.id, protocol, vendor: \"graph\" });\n if (!indexer?.testingURL) {\n throw new Error(`Sepolia Indexer not found for protocol ${protocol}`);\n }\n return indexer.testingURL.replace(\"sepolia\", \"experimental\");\n}\n"]}
@@ -1,6 +0,0 @@
1
- import type { Indexer } from "./types.js";
2
- export declare function getExperimentalURL(opts: {
3
- protocol: Indexer.Protocol;
4
- vendor: Indexer.Vendor;
5
- }): string;
6
- //# sourceMappingURL=experimental.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../../src/experimental.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAK1C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACvC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC;CACxB,GAAG,MAAM,CAgBT"}