@settlemint/sdk-cli 0.9.3-pra0f7c804 → 0.9.3-pra4969835
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/cli.js +176 -169
- package/dist/cli.js.map +17 -18
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -19613,7 +19613,7 @@ var require_lib4 = __commonJS((exports, module) => {
|
|
|
19613
19613
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
19614
19614
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
19615
19615
|
var getPathInfo = (cmd, {
|
|
19616
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
19616
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.rdir9WG5Oe:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
19617
19617
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
19618
19618
|
delimiter: optDelimiter = delimiter
|
|
19619
19619
|
}) => {
|
|
@@ -19817,7 +19817,7 @@ var require_lib5 = __commonJS((exports, module) => {
|
|
|
19817
19817
|
let pathToInitial;
|
|
19818
19818
|
try {
|
|
19819
19819
|
pathToInitial = which.sync(initialCmd, {
|
|
19820
|
-
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
19820
|
+
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.rdir9WG5Oe:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
19821
19821
|
pathext: options.env && findInObject(options.env, "PATHEXT") || process.env.PATHEXT
|
|
19822
19822
|
}).toLowerCase();
|
|
19823
19823
|
} catch (err) {
|
|
@@ -20534,7 +20534,7 @@ var require_lib6 = __commonJS((exports, module) => {
|
|
|
20534
20534
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
20535
20535
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
20536
20536
|
var getPathInfo = (cmd, {
|
|
20537
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
20537
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.rdir9WG5Oe:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
20538
20538
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
20539
20539
|
delimiter: optDelimiter = delimiter
|
|
20540
20540
|
}) => {
|
|
@@ -223327,7 +223327,7 @@ ${Bt.cyan(Yt)}
|
|
|
223327
223327
|
code: "ENOENT"
|
|
223328
223328
|
}), getPathInfo = (e9, t7) => {
|
|
223329
223329
|
var r6 = t7.colon || or;
|
|
223330
|
-
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
223330
|
+
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.rdir9WG5Oe:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(r6)];
|
|
223331
223331
|
var n6 = nr ? t7.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
223332
223332
|
var a5 = nr ? n6.split(r6) : [""];
|
|
223333
223333
|
if (nr) {
|
|
@@ -226464,7 +226464,7 @@ ${whileRunning(e9)}`;
|
|
|
226464
226464
|
};
|
|
226465
226465
|
ni = Object.assign(async function _main() {
|
|
226466
226466
|
var e9 = new Cli({
|
|
226467
|
-
binaryVersion: "0.9.3-
|
|
226467
|
+
binaryVersion: "0.9.3-pra4969835",
|
|
226468
226468
|
binaryLabel: "gql.tada CLI",
|
|
226469
226469
|
binaryName: "gql.tada"
|
|
226470
226470
|
});
|
|
@@ -234964,7 +234964,7 @@ var require_which2 = __commonJS((exports, module) => {
|
|
|
234964
234964
|
const colon = opt2.colon || COLON;
|
|
234965
234965
|
const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
|
|
234966
234966
|
...isWindows2 ? [process.cwd()] : [],
|
|
234967
|
-
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
234967
|
+
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.rdir9WG5Oe:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(colon)
|
|
234968
234968
|
];
|
|
234969
234969
|
const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
234970
234970
|
const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
|
|
@@ -256788,7 +256788,7 @@ ${error.stack}`));
|
|
|
256788
256788
|
var package_default = {
|
|
256789
256789
|
name: "@settlemint/sdk-cli",
|
|
256790
256790
|
description: "SettleMint SDK, integrate SettleMint into your application with ease.",
|
|
256791
|
-
version: "0.9.3-
|
|
256791
|
+
version: "0.9.3-pra4969835",
|
|
256792
256792
|
type: "module",
|
|
256793
256793
|
private: false,
|
|
256794
256794
|
license: "FSL-1.1-MIT",
|
|
@@ -256841,8 +256841,8 @@ var package_default = {
|
|
|
256841
256841
|
"@inquirer/input": "4.1.1",
|
|
256842
256842
|
"@inquirer/password": "4.0.4",
|
|
256843
256843
|
"@inquirer/select": "4.0.4",
|
|
256844
|
-
"@settlemint/sdk-js": "0.9.3-
|
|
256845
|
-
"@settlemint/sdk-utils": "0.9.3-
|
|
256844
|
+
"@settlemint/sdk-js": "0.9.3-pra4969835",
|
|
256845
|
+
"@settlemint/sdk-utils": "0.9.3-pra4969835",
|
|
256846
256846
|
"get-tsconfig": "4.8.1",
|
|
256847
256847
|
giget: "1.2.3"
|
|
256848
256848
|
},
|
|
@@ -267838,57 +267838,6 @@ export const { client: portalClient, graphql: portalGraphql } = createPortalClie
|
|
|
267838
267838
|
await writeTemplate(template, "/lib/settlemint", "portal.ts");
|
|
267839
267839
|
}
|
|
267840
267840
|
|
|
267841
|
-
// src/commands/codegen/test-gql-endpoint.ts
|
|
267842
|
-
async function testGqlEndpoint({
|
|
267843
|
-
accessToken,
|
|
267844
|
-
hasuraAdminSecret,
|
|
267845
|
-
gqlEndpoint,
|
|
267846
|
-
isHasura = false,
|
|
267847
|
-
maxRetries = 3
|
|
267848
|
-
}) {
|
|
267849
|
-
if (!gqlEndpoint) {
|
|
267850
|
-
return false;
|
|
267851
|
-
}
|
|
267852
|
-
for (let attempt = 0;attempt < maxRetries; attempt++) {
|
|
267853
|
-
try {
|
|
267854
|
-
const response = await fetch(gqlEndpoint, {
|
|
267855
|
-
method: "POST",
|
|
267856
|
-
headers: {
|
|
267857
|
-
"x-auth-token": accessToken,
|
|
267858
|
-
...isHasura ? { "x-hasura-admin-secret": hasuraAdminSecret ?? "" } : {},
|
|
267859
|
-
"Content-Type": "application/json"
|
|
267860
|
-
},
|
|
267861
|
-
body: JSON.stringify({
|
|
267862
|
-
query: `
|
|
267863
|
-
query {
|
|
267864
|
-
__schema {
|
|
267865
|
-
types {
|
|
267866
|
-
name
|
|
267867
|
-
}
|
|
267868
|
-
}
|
|
267869
|
-
}
|
|
267870
|
-
`
|
|
267871
|
-
})
|
|
267872
|
-
});
|
|
267873
|
-
if (!response.ok) {
|
|
267874
|
-
throw new Error(`HTTP error! status: ${response.status}`);
|
|
267875
|
-
}
|
|
267876
|
-
const data = await response.json();
|
|
267877
|
-
if (data.errors) {
|
|
267878
|
-
throw new Error("GraphQL errors in response");
|
|
267879
|
-
}
|
|
267880
|
-
return true;
|
|
267881
|
-
} catch (error5) {
|
|
267882
|
-
if (attempt === maxRetries - 1) {
|
|
267883
|
-
return false;
|
|
267884
|
-
}
|
|
267885
|
-
const delay2 = 2 ** attempt * 1000;
|
|
267886
|
-
await new Promise((resolve3) => setTimeout(resolve3, delay2));
|
|
267887
|
-
}
|
|
267888
|
-
}
|
|
267889
|
-
return false;
|
|
267890
|
-
}
|
|
267891
|
-
|
|
267892
267841
|
// src/commands/codegen/codegen-the-graph.ts
|
|
267893
267842
|
async function codegenTheGraph(env2, subgraphNames) {
|
|
267894
267843
|
const gqlEndpoints = env2.SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS;
|
|
@@ -267919,10 +267868,6 @@ async function codegenTheGraph(env2, subgraphNames) {
|
|
|
267919
267868
|
for (const gqlEndpoint of toGenerate) {
|
|
267920
267869
|
const name2 = gqlEndpoint.split("/").pop();
|
|
267921
267870
|
note(`Generating TheGraph subgraph ${name2}`);
|
|
267922
|
-
await testGqlEndpoint({
|
|
267923
|
-
accessToken,
|
|
267924
|
-
gqlEndpoint
|
|
267925
|
-
});
|
|
267926
267871
|
await generateSchema({
|
|
267927
267872
|
input: gqlEndpoint,
|
|
267928
267873
|
output: `the-graph-schema-${name2}.graphql`,
|
|
@@ -267960,6 +267905,51 @@ export const { client: theGraphClient${nameSuffix}, graphql: theGraphGraphql${na
|
|
|
267960
267905
|
// src/commands/codegen/codegen-tsconfig.ts
|
|
267961
267906
|
import { writeFile as writeFile4 } from "node:fs/promises";
|
|
267962
267907
|
|
|
267908
|
+
// src/commands/codegen/test-gql-endpoint.ts
|
|
267909
|
+
async function testGqlEndpoint(accessToken, hasuraAdminSecret, gqlEndpoint, isHasura = false, maxRetries = 3) {
|
|
267910
|
+
if (!gqlEndpoint) {
|
|
267911
|
+
return false;
|
|
267912
|
+
}
|
|
267913
|
+
for (let attempt = 0;attempt < maxRetries; attempt++) {
|
|
267914
|
+
try {
|
|
267915
|
+
const response = await fetch(gqlEndpoint, {
|
|
267916
|
+
method: "POST",
|
|
267917
|
+
headers: {
|
|
267918
|
+
"x-auth-token": accessToken,
|
|
267919
|
+
...isHasura ? { "x-hasura-admin-secret": hasuraAdminSecret ?? "" } : {},
|
|
267920
|
+
"Content-Type": "application/json"
|
|
267921
|
+
},
|
|
267922
|
+
body: JSON.stringify({
|
|
267923
|
+
query: `
|
|
267924
|
+
query {
|
|
267925
|
+
__schema {
|
|
267926
|
+
types {
|
|
267927
|
+
name
|
|
267928
|
+
}
|
|
267929
|
+
}
|
|
267930
|
+
}
|
|
267931
|
+
`
|
|
267932
|
+
})
|
|
267933
|
+
});
|
|
267934
|
+
if (!response.ok) {
|
|
267935
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
267936
|
+
}
|
|
267937
|
+
const data = await response.json();
|
|
267938
|
+
if (data.errors) {
|
|
267939
|
+
throw new Error("GraphQL errors in response");
|
|
267940
|
+
}
|
|
267941
|
+
return true;
|
|
267942
|
+
} catch (error5) {
|
|
267943
|
+
if (attempt === maxRetries - 1) {
|
|
267944
|
+
return false;
|
|
267945
|
+
}
|
|
267946
|
+
const delay2 = 2 ** attempt * 1000;
|
|
267947
|
+
await new Promise((resolve3) => setTimeout(resolve3, delay2));
|
|
267948
|
+
}
|
|
267949
|
+
}
|
|
267950
|
+
return false;
|
|
267951
|
+
}
|
|
267952
|
+
|
|
267963
267953
|
// ../../node_modules/get-tsconfig/dist/index.mjs
|
|
267964
267954
|
import a6 from "node:path";
|
|
267965
267955
|
import ee2 from "node:fs";
|
|
@@ -268858,29 +268848,12 @@ async function codegenTsconfig(env2, thegraphSubgraphNames) {
|
|
|
268858
268848
|
const name2 = gqlEndpoint.split("/").pop();
|
|
268859
268849
|
return name2 && (!thegraphSubgraphNames || thegraphSubgraphNames.includes(name2));
|
|
268860
268850
|
});
|
|
268861
|
-
const [hasura, portal, blockscout] = await Promise.all([
|
|
268862
|
-
testGqlEndpoint(
|
|
268863
|
-
|
|
268864
|
-
|
|
268865
|
-
|
|
268866
|
-
isHasura: true
|
|
268867
|
-
}),
|
|
268868
|
-
testGqlEndpoint({
|
|
268869
|
-
accessToken,
|
|
268870
|
-
gqlEndpoint: env2.SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT
|
|
268871
|
-
}),
|
|
268872
|
-
testGqlEndpoint({
|
|
268873
|
-
accessToken,
|
|
268874
|
-
gqlEndpoint: env2.SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT
|
|
268875
|
-
})
|
|
268851
|
+
const [hasura, portal, thegraph, blockscout] = await Promise.all([
|
|
268852
|
+
testGqlEndpoint(accessToken, env2.SETTLEMINT_HASURA_ADMIN_SECRET, env2.SETTLEMINT_HASURA_ENDPOINT, true),
|
|
268853
|
+
testGqlEndpoint(accessToken, undefined, env2.SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT),
|
|
268854
|
+
testGqlEndpoint(accessToken, undefined, theGraphEndpoints[0]),
|
|
268855
|
+
testGqlEndpoint(accessToken, undefined, env2.SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT)
|
|
268876
268856
|
]);
|
|
268877
|
-
const thegraph = await Promise.all(theGraphEndpoints.map((endpoint) => {
|
|
268878
|
-
const success = testGqlEndpoint({
|
|
268879
|
-
accessToken,
|
|
268880
|
-
gqlEndpoint: endpoint
|
|
268881
|
-
});
|
|
268882
|
-
return { success, endpoint };
|
|
268883
|
-
}));
|
|
268884
268857
|
if (!tsconfig.config.compilerOptions) {
|
|
268885
268858
|
tsconfig.config.compilerOptions = {};
|
|
268886
268859
|
}
|
|
@@ -268899,7 +268872,7 @@ async function codegenTsconfig(env2, thegraphSubgraphNames) {
|
|
|
268899
268872
|
tadaTurboLocation: "hasura-cache.d.ts"
|
|
268900
268873
|
}
|
|
268901
268874
|
] : [],
|
|
268902
|
-
...thegraph ?
|
|
268875
|
+
...thegraph ? theGraphEndpoints.map((endpoint) => {
|
|
268903
268876
|
const name2 = endpoint.split("/").pop();
|
|
268904
268877
|
return {
|
|
268905
268878
|
name: `thegraph-${name2}`,
|
|
@@ -270538,7 +270511,7 @@ async function getGraphEndpoint(service, env2) {
|
|
|
270538
270511
|
const isStarterKit = (id) => id.endsWith("-starterkits");
|
|
270539
270512
|
const testEndpoint = service.subgraphs.find(({ graphqlQueryEndpoint }) => !isStarterKit(graphqlQueryEndpoint?.id))?.graphqlQueryEndpoint?.displayValue;
|
|
270540
270513
|
const starterKitEndpoint = service.subgraphs.find(({ graphqlQueryEndpoint }) => isStarterKit(graphqlQueryEndpoint?.id))?.graphqlQueryEndpoint?.displayValue;
|
|
270541
|
-
const hasEndpoint = testEndpoint && env2.SETTLEMINT_ACCESS_TOKEN ? await testGqlEndpoint(
|
|
270514
|
+
const hasEndpoint = testEndpoint && env2.SETTLEMINT_ACCESS_TOKEN ? await testGqlEndpoint(env2.SETTLEMINT_ACCESS_TOKEN, undefined, testEndpoint) : false;
|
|
270542
270515
|
const endpoints = hasEndpoint ? service.subgraphs.map(({ graphqlQueryEndpoint }) => graphqlQueryEndpoint?.displayValue) : starterKitEndpoint ? [starterKitEndpoint] : [];
|
|
270543
270516
|
if (endpoints.length === 0) {
|
|
270544
270517
|
return {};
|
|
@@ -270597,6 +270570,12 @@ function getMinioEndpoints(service) {
|
|
|
270597
270570
|
};
|
|
270598
270571
|
}
|
|
270599
270572
|
|
|
270573
|
+
// src/utils/sanitize-instance-url.ts
|
|
270574
|
+
function sanitizeInstanceUrl(url) {
|
|
270575
|
+
const instanceUrl = new URL(url);
|
|
270576
|
+
return instanceUrl.origin;
|
|
270577
|
+
}
|
|
270578
|
+
|
|
270600
270579
|
// ../utils/dist/runtime.mjs
|
|
270601
270580
|
function ensureServer() {
|
|
270602
270581
|
if (isBrowser) {
|
|
@@ -273078,26 +273057,46 @@ async function hdPrivateKeyPrompt(env2, privateKeys, accept) {
|
|
|
273078
273057
|
}
|
|
273079
273058
|
|
|
273080
273059
|
// src/commands/connect/instance.prompt.ts
|
|
273081
|
-
async function instancePrompt(env2, accept) {
|
|
273060
|
+
async function instancePrompt(env2, accept, freeTextInput = false) {
|
|
273061
|
+
const knownInstances = await getInstances();
|
|
273082
273062
|
const autoAccept = !!accept || is_in_ci_default;
|
|
273083
|
-
const defaultInstance = env2.SETTLEMINT_INSTANCE ?? "https://console.settlemint.com";
|
|
273084
|
-
const defaultPossible =
|
|
273063
|
+
const defaultInstance = env2.SETTLEMINT_INSTANCE ?? knownInstances[0] ?? "https://console.settlemint.com";
|
|
273064
|
+
const defaultPossible = autoAccept && defaultInstance;
|
|
273085
273065
|
if (defaultPossible) {
|
|
273086
273066
|
return defaultInstance;
|
|
273087
273067
|
}
|
|
273088
|
-
|
|
273089
|
-
|
|
273090
|
-
|
|
273091
|
-
|
|
273092
|
-
|
|
273093
|
-
|
|
273094
|
-
|
|
273095
|
-
|
|
273096
|
-
|
|
273097
|
-
|
|
273098
|
-
|
|
273099
|
-
|
|
273100
|
-
|
|
273068
|
+
if (freeTextInput) {
|
|
273069
|
+
const instance = await esm_default4({
|
|
273070
|
+
message: "What is the URL of your SettleMint instance?",
|
|
273071
|
+
default: defaultInstance,
|
|
273072
|
+
required: true,
|
|
273073
|
+
validate(value4) {
|
|
273074
|
+
try {
|
|
273075
|
+
validate3(UrlSchema3, value4);
|
|
273076
|
+
return true;
|
|
273077
|
+
} catch (error5) {
|
|
273078
|
+
return "Invalid URL";
|
|
273079
|
+
}
|
|
273080
|
+
},
|
|
273081
|
+
transformer: (value4) => value4.trim()
|
|
273082
|
+
});
|
|
273083
|
+
return sanitizeInstanceUrl(instance);
|
|
273084
|
+
}
|
|
273085
|
+
if (knownInstances.length === 0) {
|
|
273086
|
+
cancel2("No instances found. Please run `settlemint login` to configure an instance.");
|
|
273087
|
+
}
|
|
273088
|
+
if (knownInstances.length === 1) {
|
|
273089
|
+
return knownInstances[0];
|
|
273090
|
+
}
|
|
273091
|
+
return esm_default2({
|
|
273092
|
+
message: "What SettleMint instance do you want to connect to?",
|
|
273093
|
+
choices: [
|
|
273094
|
+
...knownInstances.map((instance) => ({
|
|
273095
|
+
name: instance,
|
|
273096
|
+
value: instance
|
|
273097
|
+
}))
|
|
273098
|
+
],
|
|
273099
|
+
default: defaultInstance
|
|
273101
273100
|
});
|
|
273102
273101
|
}
|
|
273103
273102
|
|
|
@@ -273278,18 +273277,21 @@ async function workspacePrompt(env2, workspaces, accept) {
|
|
|
273278
273277
|
|
|
273279
273278
|
// src/commands/connect.ts
|
|
273280
273279
|
function connectCommand() {
|
|
273281
|
-
return new Command("connect").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").description("Connects your project to your application on SettleMint").action(async ({ acceptDefaults, prod }) => {
|
|
273280
|
+
return new Command("connect").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").description("Connects your project to your application on SettleMint").action(async ({ acceptDefaults, prod, instance }) => {
|
|
273282
273281
|
intro("Connecting your dApp to SettleMint");
|
|
273283
273282
|
const env2 = await loadEnv2(false, !!prod);
|
|
273284
|
-
|
|
273285
|
-
|
|
273283
|
+
if (instance) {
|
|
273284
|
+
validate(UrlSchema, instance);
|
|
273285
|
+
}
|
|
273286
|
+
const selectedInstance = instance ? sanitizeInstanceUrl(instance) : await instancePrompt(env2, true);
|
|
273287
|
+
const personalAccessToken = await getInstanceCredentials(selectedInstance);
|
|
273286
273288
|
if (!personalAccessToken) {
|
|
273287
273289
|
return missingPersonalAccessTokenError();
|
|
273288
273290
|
}
|
|
273289
273291
|
const accessToken = personalAccessToken.personalAccessToken;
|
|
273290
273292
|
const settlemint = createSettleMintClient({
|
|
273291
273293
|
accessToken,
|
|
273292
|
-
instance
|
|
273294
|
+
instance: selectedInstance
|
|
273293
273295
|
});
|
|
273294
273296
|
const workspaces = await workspaceSpinner(settlemint);
|
|
273295
273297
|
const workspace = await workspacePrompt(env2, workspaces, acceptDefaults);
|
|
@@ -273327,7 +273329,7 @@ function connectCommand() {
|
|
|
273327
273329
|
}
|
|
273328
273330
|
await writeEnvSpinner(!!prod, {
|
|
273329
273331
|
SETTLEMINT_ACCESS_TOKEN: aatToken,
|
|
273330
|
-
SETTLEMINT_INSTANCE:
|
|
273332
|
+
SETTLEMINT_INSTANCE: selectedInstance,
|
|
273331
273333
|
SETTLEMINT_WORKSPACE: workspace.uniqueName,
|
|
273332
273334
|
SETTLEMINT_APPLICATION: application.uniqueName,
|
|
273333
273335
|
SETTLEMINT_BLOCKCHAIN_NETWORK: blockchainNode?.blockchainNetwork?.uniqueName,
|
|
@@ -274246,7 +274248,10 @@ function loginCommand() {
|
|
|
274246
274248
|
intro("Login to your SettleMint account");
|
|
274247
274249
|
const autoAccept = !!acceptDefaults || !!tokenStdin;
|
|
274248
274250
|
const env2 = await loadEnv2(false, false);
|
|
274249
|
-
|
|
274251
|
+
if (instance) {
|
|
274252
|
+
validate3(UrlSchema, instance);
|
|
274253
|
+
}
|
|
274254
|
+
const selectedInstance = instance ? sanitizeInstanceUrl(instance) : await instancePrompt(env2, autoAccept, true);
|
|
274250
274255
|
let personalAccessToken = "";
|
|
274251
274256
|
if (tokenStdin) {
|
|
274252
274257
|
if (cmd2.args.length > 0) {
|
|
@@ -274491,9 +274496,8 @@ function getCreateCommand({
|
|
|
274491
274496
|
}
|
|
274492
274497
|
execute2(cmd2, async ({ acceptDefaults, prod, default: isDefault, wait, restartIfTimeout, provider, region }, createFunction) => {
|
|
274493
274498
|
intro(`Creating ${type4} in the SettleMint platform`);
|
|
274494
|
-
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
274495
274499
|
const env2 = await loadEnv2(false, !!prod);
|
|
274496
|
-
const instance = await instancePrompt(env2,
|
|
274500
|
+
const instance = await instancePrompt(env2, acceptDefaults);
|
|
274497
274501
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
274498
274502
|
env: env2,
|
|
274499
274503
|
instance,
|
|
@@ -275919,7 +275923,7 @@ function customDeploymentsUpdateCommand() {
|
|
|
275919
275923
|
const env2 = await loadEnv2(false, !!prod);
|
|
275920
275924
|
const customDeploymentUniqueName = uniqueName ?? env2.SETTLEMINT_CUSTOM_DEPLOYMENT;
|
|
275921
275925
|
if (!customDeploymentUniqueName) {
|
|
275922
|
-
|
|
275926
|
+
cancel("No custom deployment unique name specified. Please provide it either via the --unique-name flag or by setting the SETTLEMINT_CUSTOM_DEPLOYMENT environment variable");
|
|
275923
275927
|
}
|
|
275924
275928
|
const instance = await instancePrompt(env2, true);
|
|
275925
275929
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
@@ -275957,18 +275961,18 @@ function updateCommand() {
|
|
|
275957
275961
|
|
|
275958
275962
|
// src/commands/platform/config.ts
|
|
275959
275963
|
function configCommand() {
|
|
275960
|
-
return new Command("config").alias("c").description("Get platform configuration").option("--prod", "Connect to your production environment").action(async ({ prod }) => {
|
|
275964
|
+
return new Command("config").alias("c").description("Get platform configuration").option("--prod", "Connect to your production environment").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").action(async ({ prod, instance }) => {
|
|
275961
275965
|
intro("Getting platform configuration");
|
|
275962
275966
|
const env2 = await loadEnv2(false, !!prod);
|
|
275963
|
-
const
|
|
275967
|
+
const selectedInstance = instance ? sanitizeInstanceUrl(instance) : await instancePrompt(env2, false);
|
|
275964
275968
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
275965
275969
|
env: env2,
|
|
275966
|
-
instance,
|
|
275970
|
+
instance: selectedInstance,
|
|
275967
275971
|
prefer: "personal"
|
|
275968
275972
|
});
|
|
275969
275973
|
const settlemint = createSettleMintClient({
|
|
275970
275974
|
accessToken,
|
|
275971
|
-
instance
|
|
275975
|
+
instance: selectedInstance
|
|
275972
275976
|
});
|
|
275973
275977
|
const platformConfig = await settlemint.platform.config();
|
|
275974
275978
|
note2(`Providers and regions:
|
|
@@ -276229,51 +276233,6 @@ function hardhatDeployLocalCommand() {
|
|
|
276229
276233
|
});
|
|
276230
276234
|
}
|
|
276231
276235
|
|
|
276232
|
-
// src/error/service-not-running-error.ts
|
|
276233
|
-
function serviceNotRunningError(service, status) {
|
|
276234
|
-
return cancel2(`The ${service} service is not in a Running state (status: ${status}).`);
|
|
276235
|
-
}
|
|
276236
|
-
|
|
276237
|
-
// src/commands/smart-contract-set/hardhat/utils/select-target-node.ts
|
|
276238
|
-
async function selectTargetNode({
|
|
276239
|
-
env: env2,
|
|
276240
|
-
blockchainNodeUniqueName,
|
|
276241
|
-
autoAccept,
|
|
276242
|
-
settlemint
|
|
276243
|
-
}) {
|
|
276244
|
-
const nodeUniqueName = blockchainNodeUniqueName ?? (autoAccept ? env2.SETTLEMINT_BLOCKCHAIN_NODE : undefined);
|
|
276245
|
-
let node = undefined;
|
|
276246
|
-
if (!nodeUniqueName) {
|
|
276247
|
-
if (!env2.SETTLEMINT_APPLICATION) {
|
|
276248
|
-
return missingApplication();
|
|
276249
|
-
}
|
|
276250
|
-
const nodes = await settlemint.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
|
|
276251
|
-
const evmNodes = nodes.filter((node2) => node2.isEvm);
|
|
276252
|
-
if (evmNodes.length === 0) {
|
|
276253
|
-
cancel("No EVM blockchain nodes found. Please create an EVM blockchain node and try again.");
|
|
276254
|
-
}
|
|
276255
|
-
const nodesWithPrivateKey = await Promise.all(nodes.map((node2) => settlemint.blockchainNode.read(node2.uniqueName)));
|
|
276256
|
-
const nodesWithActivePrivateKey = nodesWithPrivateKey.filter((node2) => node2.privateKeys && node2.privateKeys.length > 0);
|
|
276257
|
-
if (nodesWithActivePrivateKey.length === 0) {
|
|
276258
|
-
cancel("No EVM blockchain nodes with private keys found. Please activate a private key on your EVM blockchain node and try again.");
|
|
276259
|
-
}
|
|
276260
|
-
const blockchainNode = await blockchainNodePrompt(env2, nodesWithActivePrivateKey, autoAccept);
|
|
276261
|
-
if (!blockchainNode) {
|
|
276262
|
-
return nothingSelectedError("EVM blockchain node");
|
|
276263
|
-
}
|
|
276264
|
-
node = blockchainNode;
|
|
276265
|
-
} else {
|
|
276266
|
-
node = await settlemint.blockchainNode.read(nodeUniqueName);
|
|
276267
|
-
if (!node.isEvm) {
|
|
276268
|
-
cancel("The specified blockchain node is not an EVM blockchain node. Please specify an EVM blockchain node to continue.");
|
|
276269
|
-
}
|
|
276270
|
-
}
|
|
276271
|
-
if (node.status !== "COMPLETED") {
|
|
276272
|
-
serviceNotRunningError("blockchain node", node.status);
|
|
276273
|
-
}
|
|
276274
|
-
return node;
|
|
276275
|
-
}
|
|
276276
|
-
|
|
276277
276236
|
// src/commands/smart-contract-set/prompts/address.prompt.ts
|
|
276278
276237
|
async function addressPrompt({
|
|
276279
276238
|
env: env2,
|
|
@@ -276387,7 +276346,33 @@ function hardhatDeployRemoteCommand() {
|
|
|
276387
276346
|
accessToken,
|
|
276388
276347
|
instance
|
|
276389
276348
|
});
|
|
276390
|
-
const
|
|
276349
|
+
const nodeUniqueName = blockchainNodeUniqueName ?? (autoAccept ? env2.SETTLEMINT_BLOCKCHAIN_NODE : undefined);
|
|
276350
|
+
let node = undefined;
|
|
276351
|
+
if (!nodeUniqueName) {
|
|
276352
|
+
if (!env2.SETTLEMINT_APPLICATION) {
|
|
276353
|
+
return missingApplication();
|
|
276354
|
+
}
|
|
276355
|
+
const nodes = await settlemint.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
|
|
276356
|
+
const evmNodes = nodes.filter((node2) => node2.isEvm);
|
|
276357
|
+
if (evmNodes.length === 0) {
|
|
276358
|
+
cancel("No EVM blockchain nodes found. Please create an EVM blockchain node and try again.");
|
|
276359
|
+
}
|
|
276360
|
+
const nodesWithPrivateKey = await Promise.all(nodes.map((node2) => settlemint.blockchainNode.read(node2.uniqueName)));
|
|
276361
|
+
const nodesWithActivePrivateKey = nodesWithPrivateKey.filter((node2) => node2.privateKeys && node2.privateKeys.length > 0);
|
|
276362
|
+
if (nodesWithActivePrivateKey.length === 0) {
|
|
276363
|
+
cancel("No EVM blockchain nodes with private keys found. Please activate a private key on your EVM blockchain node and try again.");
|
|
276364
|
+
}
|
|
276365
|
+
const blockchainNode = await blockchainNodePrompt(env2, nodesWithActivePrivateKey, acceptDefaults);
|
|
276366
|
+
if (!blockchainNode) {
|
|
276367
|
+
return nothingSelectedError("EVM blockchain node");
|
|
276368
|
+
}
|
|
276369
|
+
node = blockchainNode;
|
|
276370
|
+
} else {
|
|
276371
|
+
node = await settlemint.blockchainNode.read(nodeUniqueName);
|
|
276372
|
+
if (!node.isEvm) {
|
|
276373
|
+
cancel("The specified blockchain node is not an EVM blockchain node. Please specify an EVM blockchain node to continue.");
|
|
276374
|
+
}
|
|
276375
|
+
}
|
|
276391
276376
|
const envConfig = await settlemint.foundry.env(node.uniqueName);
|
|
276392
276377
|
const hardhatConfig = await getHardhatConfigData(envConfig);
|
|
276393
276378
|
if (verify && !hardhatConfig?.etherscan?.apiKey) {
|
|
@@ -276479,8 +276464,33 @@ function hardhatScriptRemoteCommand() {
|
|
|
276479
276464
|
accessToken,
|
|
276480
276465
|
instance
|
|
276481
276466
|
});
|
|
276482
|
-
|
|
276483
|
-
|
|
276467
|
+
let nodeUniqueName = blockchainNodeUniqueName ?? (autoAccept ? env2.SETTLEMINT_BLOCKCHAIN_NODE : undefined);
|
|
276468
|
+
if (!nodeUniqueName) {
|
|
276469
|
+
if (!env2.SETTLEMINT_APPLICATION) {
|
|
276470
|
+
return missingApplication();
|
|
276471
|
+
}
|
|
276472
|
+
const nodes = await settlemint.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
|
|
276473
|
+
const evmNodes = nodes.filter((node) => node.isEvm);
|
|
276474
|
+
if (evmNodes.length === 0) {
|
|
276475
|
+
cancel("No EVM blockchain nodes found. Please create an EVM blockchain node and try again.");
|
|
276476
|
+
}
|
|
276477
|
+
const nodesWithPrivateKey = await Promise.all(nodes.map((node) => settlemint.blockchainNode.read(node.uniqueName)));
|
|
276478
|
+
const nodesWithActivePrivateKey = nodesWithPrivateKey.filter((node) => node.privateKeys && node.privateKeys.length > 0);
|
|
276479
|
+
if (nodesWithActivePrivateKey.length === 0) {
|
|
276480
|
+
cancel("No EVM blockchain nodes with private keys found. Please activate a private key on your EVM blockchain node and try again.");
|
|
276481
|
+
}
|
|
276482
|
+
const blockchainNode = await blockchainNodePrompt(env2, nodesWithActivePrivateKey, acceptDefaults);
|
|
276483
|
+
if (!blockchainNode) {
|
|
276484
|
+
return nothingSelectedError("EVM blockchain node");
|
|
276485
|
+
}
|
|
276486
|
+
nodeUniqueName = blockchainNode.uniqueName;
|
|
276487
|
+
} else {
|
|
276488
|
+
const node = await settlemint.blockchainNode.read(nodeUniqueName);
|
|
276489
|
+
if (!node.isEvm) {
|
|
276490
|
+
cancel("The specified blockchain node is not an EVM blockchain node. Please specify an EVM blockchain node to continue.");
|
|
276491
|
+
}
|
|
276492
|
+
}
|
|
276493
|
+
const envConfig = await settlemint.foundry.env(nodeUniqueName);
|
|
276484
276494
|
const { command, args } = await getPackageManagerExecutable();
|
|
276485
276495
|
await executeCommand(command, [...args, "hardhat", "run", script, "--network", "btp", ...compile ? ["--no-compile"] : []], { env: envConfig });
|
|
276486
276496
|
});
|
|
@@ -276811,9 +276821,6 @@ function subgraphDeployCommand() {
|
|
|
276811
276821
|
if (!theGraphMiddleware) {
|
|
276812
276822
|
return nothingSelectedError("graph middleware");
|
|
276813
276823
|
}
|
|
276814
|
-
if (theGraphMiddleware.status !== "COMPLETED") {
|
|
276815
|
-
serviceNotRunningError("graph middleware", theGraphMiddleware.status);
|
|
276816
|
-
}
|
|
276817
276824
|
const network = await getTheGraphNetwork({ theGraphMiddleware, env: env2, instance, accessToken });
|
|
276818
276825
|
await subgraphSetup({
|
|
276819
276826
|
network
|
|
@@ -276915,4 +276922,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
276915
276922
|
ascii();
|
|
276916
276923
|
sdkCliCommand();
|
|
276917
276924
|
|
|
276918
|
-
//# debugId=
|
|
276925
|
+
//# debugId=B9D33E25B9306D3764756E2164756E21
|