@settlemint/sdk-cli 0.9.3-pr928eae3a → 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 +174 -174
- package/dist/cli.js.map +19 -20
- 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
|
},
|
|
@@ -267738,57 +267738,6 @@ var getApplicationOrPersonalAccessToken = async ({
|
|
|
267738
267738
|
// ../../node_modules/@gql.tada/cli-utils/dist/gql-tada-cli.mjs
|
|
267739
267739
|
init_index_chunk();
|
|
267740
267740
|
|
|
267741
|
-
// src/commands/codegen/test-gql-endpoint.ts
|
|
267742
|
-
async function testGqlEndpoint({
|
|
267743
|
-
accessToken,
|
|
267744
|
-
hasuraAdminSecret,
|
|
267745
|
-
gqlEndpoint,
|
|
267746
|
-
isHasura = false,
|
|
267747
|
-
maxRetries = 3
|
|
267748
|
-
}) {
|
|
267749
|
-
if (!gqlEndpoint) {
|
|
267750
|
-
return false;
|
|
267751
|
-
}
|
|
267752
|
-
for (let attempt = 0;attempt < maxRetries; attempt++) {
|
|
267753
|
-
try {
|
|
267754
|
-
const response = await fetch(gqlEndpoint, {
|
|
267755
|
-
method: "POST",
|
|
267756
|
-
headers: {
|
|
267757
|
-
"x-auth-token": accessToken,
|
|
267758
|
-
...isHasura ? { "x-hasura-admin-secret": hasuraAdminSecret ?? "" } : {},
|
|
267759
|
-
"Content-Type": "application/json"
|
|
267760
|
-
},
|
|
267761
|
-
body: JSON.stringify({
|
|
267762
|
-
query: `
|
|
267763
|
-
query {
|
|
267764
|
-
__schema {
|
|
267765
|
-
types {
|
|
267766
|
-
name
|
|
267767
|
-
}
|
|
267768
|
-
}
|
|
267769
|
-
}
|
|
267770
|
-
`
|
|
267771
|
-
})
|
|
267772
|
-
});
|
|
267773
|
-
if (!response.ok) {
|
|
267774
|
-
throw new Error(`HTTP error! status: ${response.status}`);
|
|
267775
|
-
}
|
|
267776
|
-
const data = await response.json();
|
|
267777
|
-
if (data.errors) {
|
|
267778
|
-
throw new Error("GraphQL errors in response");
|
|
267779
|
-
}
|
|
267780
|
-
return true;
|
|
267781
|
-
} catch (error5) {
|
|
267782
|
-
if (attempt === maxRetries - 1) {
|
|
267783
|
-
return false;
|
|
267784
|
-
}
|
|
267785
|
-
const delay2 = 2 ** attempt * 1000;
|
|
267786
|
-
await new Promise((resolve3) => setTimeout(resolve3, delay2));
|
|
267787
|
-
}
|
|
267788
|
-
}
|
|
267789
|
-
return false;
|
|
267790
|
-
}
|
|
267791
|
-
|
|
267792
267741
|
// src/commands/codegen/codegen-hasura.ts
|
|
267793
267742
|
async function codegenHasura(env2) {
|
|
267794
267743
|
const gqlEndpoint = env2.SETTLEMINT_HASURA_ENDPOINT;
|
|
@@ -267804,12 +267753,6 @@ async function codegenHasura(env2) {
|
|
|
267804
267753
|
return;
|
|
267805
267754
|
}
|
|
267806
267755
|
if (gqlEndpoint && accessToken && adminSecret) {
|
|
267807
|
-
await testGqlEndpoint({
|
|
267808
|
-
accessToken,
|
|
267809
|
-
hasuraAdminSecret: adminSecret,
|
|
267810
|
-
gqlEndpoint,
|
|
267811
|
-
isHasura: true
|
|
267812
|
-
});
|
|
267813
267756
|
await generateSchema({
|
|
267814
267757
|
input: gqlEndpoint,
|
|
267815
267758
|
output: "hasura-schema.graphql",
|
|
@@ -267865,10 +267808,6 @@ async function codegenPortal(env2) {
|
|
|
267865
267808
|
if (!accessToken) {
|
|
267866
267809
|
return;
|
|
267867
267810
|
}
|
|
267868
|
-
await testGqlEndpoint({
|
|
267869
|
-
accessToken,
|
|
267870
|
-
gqlEndpoint
|
|
267871
|
-
});
|
|
267872
267811
|
await generateSchema({
|
|
267873
267812
|
input: gqlEndpoint,
|
|
267874
267813
|
output: "portal-schema.graphql",
|
|
@@ -267929,10 +267868,6 @@ async function codegenTheGraph(env2, subgraphNames) {
|
|
|
267929
267868
|
for (const gqlEndpoint of toGenerate) {
|
|
267930
267869
|
const name2 = gqlEndpoint.split("/").pop();
|
|
267931
267870
|
note(`Generating TheGraph subgraph ${name2}`);
|
|
267932
|
-
await testGqlEndpoint({
|
|
267933
|
-
accessToken,
|
|
267934
|
-
gqlEndpoint
|
|
267935
|
-
});
|
|
267936
267871
|
await generateSchema({
|
|
267937
267872
|
input: gqlEndpoint,
|
|
267938
267873
|
output: `the-graph-schema-${name2}.graphql`,
|
|
@@ -267970,6 +267905,51 @@ export const { client: theGraphClient${nameSuffix}, graphql: theGraphGraphql${na
|
|
|
267970
267905
|
// src/commands/codegen/codegen-tsconfig.ts
|
|
267971
267906
|
import { writeFile as writeFile4 } from "node:fs/promises";
|
|
267972
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
|
+
|
|
267973
267953
|
// ../../node_modules/get-tsconfig/dist/index.mjs
|
|
267974
267954
|
import a6 from "node:path";
|
|
267975
267955
|
import ee2 from "node:fs";
|
|
@@ -268869,24 +268849,10 @@ async function codegenTsconfig(env2, thegraphSubgraphNames) {
|
|
|
268869
268849
|
return name2 && (!thegraphSubgraphNames || thegraphSubgraphNames.includes(name2));
|
|
268870
268850
|
});
|
|
268871
268851
|
const [hasura, portal, thegraph, blockscout] = await Promise.all([
|
|
268872
|
-
testGqlEndpoint(
|
|
268873
|
-
|
|
268874
|
-
|
|
268875
|
-
|
|
268876
|
-
isHasura: true
|
|
268877
|
-
}),
|
|
268878
|
-
testGqlEndpoint({
|
|
268879
|
-
accessToken,
|
|
268880
|
-
gqlEndpoint: env2.SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT
|
|
268881
|
-
}),
|
|
268882
|
-
testGqlEndpoint({
|
|
268883
|
-
accessToken,
|
|
268884
|
-
gqlEndpoint: theGraphEndpoints[0]
|
|
268885
|
-
}),
|
|
268886
|
-
testGqlEndpoint({
|
|
268887
|
-
accessToken,
|
|
268888
|
-
gqlEndpoint: env2.SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT
|
|
268889
|
-
})
|
|
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)
|
|
268890
268856
|
]);
|
|
268891
268857
|
if (!tsconfig.config.compilerOptions) {
|
|
268892
268858
|
tsconfig.config.compilerOptions = {};
|
|
@@ -270545,7 +270511,7 @@ async function getGraphEndpoint(service, env2) {
|
|
|
270545
270511
|
const isStarterKit = (id) => id.endsWith("-starterkits");
|
|
270546
270512
|
const testEndpoint = service.subgraphs.find(({ graphqlQueryEndpoint }) => !isStarterKit(graphqlQueryEndpoint?.id))?.graphqlQueryEndpoint?.displayValue;
|
|
270547
270513
|
const starterKitEndpoint = service.subgraphs.find(({ graphqlQueryEndpoint }) => isStarterKit(graphqlQueryEndpoint?.id))?.graphqlQueryEndpoint?.displayValue;
|
|
270548
|
-
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;
|
|
270549
270515
|
const endpoints = hasEndpoint ? service.subgraphs.map(({ graphqlQueryEndpoint }) => graphqlQueryEndpoint?.displayValue) : starterKitEndpoint ? [starterKitEndpoint] : [];
|
|
270550
270516
|
if (endpoints.length === 0) {
|
|
270551
270517
|
return {};
|
|
@@ -270604,6 +270570,12 @@ function getMinioEndpoints(service) {
|
|
|
270604
270570
|
};
|
|
270605
270571
|
}
|
|
270606
270572
|
|
|
270573
|
+
// src/utils/sanitize-instance-url.ts
|
|
270574
|
+
function sanitizeInstanceUrl(url) {
|
|
270575
|
+
const instanceUrl = new URL(url);
|
|
270576
|
+
return instanceUrl.origin;
|
|
270577
|
+
}
|
|
270578
|
+
|
|
270607
270579
|
// ../utils/dist/runtime.mjs
|
|
270608
270580
|
function ensureServer() {
|
|
270609
270581
|
if (isBrowser) {
|
|
@@ -273085,26 +273057,46 @@ async function hdPrivateKeyPrompt(env2, privateKeys, accept) {
|
|
|
273085
273057
|
}
|
|
273086
273058
|
|
|
273087
273059
|
// src/commands/connect/instance.prompt.ts
|
|
273088
|
-
async function instancePrompt(env2, accept) {
|
|
273060
|
+
async function instancePrompt(env2, accept, freeTextInput = false) {
|
|
273061
|
+
const knownInstances = await getInstances();
|
|
273089
273062
|
const autoAccept = !!accept || is_in_ci_default;
|
|
273090
|
-
const defaultInstance = env2.SETTLEMINT_INSTANCE ?? "https://console.settlemint.com";
|
|
273091
|
-
const defaultPossible =
|
|
273063
|
+
const defaultInstance = env2.SETTLEMINT_INSTANCE ?? knownInstances[0] ?? "https://console.settlemint.com";
|
|
273064
|
+
const defaultPossible = autoAccept && defaultInstance;
|
|
273092
273065
|
if (defaultPossible) {
|
|
273093
273066
|
return defaultInstance;
|
|
273094
273067
|
}
|
|
273095
|
-
|
|
273096
|
-
|
|
273097
|
-
|
|
273098
|
-
|
|
273099
|
-
|
|
273100
|
-
|
|
273101
|
-
|
|
273102
|
-
|
|
273103
|
-
|
|
273104
|
-
|
|
273105
|
-
|
|
273106
|
-
|
|
273107
|
-
|
|
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
|
|
273108
273100
|
});
|
|
273109
273101
|
}
|
|
273110
273102
|
|
|
@@ -273285,18 +273277,21 @@ async function workspacePrompt(env2, workspaces, accept) {
|
|
|
273285
273277
|
|
|
273286
273278
|
// src/commands/connect.ts
|
|
273287
273279
|
function connectCommand() {
|
|
273288
|
-
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 }) => {
|
|
273289
273281
|
intro("Connecting your dApp to SettleMint");
|
|
273290
273282
|
const env2 = await loadEnv2(false, !!prod);
|
|
273291
|
-
|
|
273292
|
-
|
|
273283
|
+
if (instance) {
|
|
273284
|
+
validate(UrlSchema, instance);
|
|
273285
|
+
}
|
|
273286
|
+
const selectedInstance = instance ? sanitizeInstanceUrl(instance) : await instancePrompt(env2, true);
|
|
273287
|
+
const personalAccessToken = await getInstanceCredentials(selectedInstance);
|
|
273293
273288
|
if (!personalAccessToken) {
|
|
273294
273289
|
return missingPersonalAccessTokenError();
|
|
273295
273290
|
}
|
|
273296
273291
|
const accessToken = personalAccessToken.personalAccessToken;
|
|
273297
273292
|
const settlemint = createSettleMintClient({
|
|
273298
273293
|
accessToken,
|
|
273299
|
-
instance
|
|
273294
|
+
instance: selectedInstance
|
|
273300
273295
|
});
|
|
273301
273296
|
const workspaces = await workspaceSpinner(settlemint);
|
|
273302
273297
|
const workspace = await workspacePrompt(env2, workspaces, acceptDefaults);
|
|
@@ -273334,7 +273329,7 @@ function connectCommand() {
|
|
|
273334
273329
|
}
|
|
273335
273330
|
await writeEnvSpinner(!!prod, {
|
|
273336
273331
|
SETTLEMINT_ACCESS_TOKEN: aatToken,
|
|
273337
|
-
SETTLEMINT_INSTANCE:
|
|
273332
|
+
SETTLEMINT_INSTANCE: selectedInstance,
|
|
273338
273333
|
SETTLEMINT_WORKSPACE: workspace.uniqueName,
|
|
273339
273334
|
SETTLEMINT_APPLICATION: application.uniqueName,
|
|
273340
273335
|
SETTLEMINT_BLOCKCHAIN_NETWORK: blockchainNode?.blockchainNetwork?.uniqueName,
|
|
@@ -274253,7 +274248,10 @@ function loginCommand() {
|
|
|
274253
274248
|
intro("Login to your SettleMint account");
|
|
274254
274249
|
const autoAccept = !!acceptDefaults || !!tokenStdin;
|
|
274255
274250
|
const env2 = await loadEnv2(false, false);
|
|
274256
|
-
|
|
274251
|
+
if (instance) {
|
|
274252
|
+
validate3(UrlSchema, instance);
|
|
274253
|
+
}
|
|
274254
|
+
const selectedInstance = instance ? sanitizeInstanceUrl(instance) : await instancePrompt(env2, autoAccept, true);
|
|
274257
274255
|
let personalAccessToken = "";
|
|
274258
274256
|
if (tokenStdin) {
|
|
274259
274257
|
if (cmd2.args.length > 0) {
|
|
@@ -274498,9 +274496,8 @@ function getCreateCommand({
|
|
|
274498
274496
|
}
|
|
274499
274497
|
execute2(cmd2, async ({ acceptDefaults, prod, default: isDefault, wait, restartIfTimeout, provider, region }, createFunction) => {
|
|
274500
274498
|
intro(`Creating ${type4} in the SettleMint platform`);
|
|
274501
|
-
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
274502
274499
|
const env2 = await loadEnv2(false, !!prod);
|
|
274503
|
-
const instance = await instancePrompt(env2,
|
|
274500
|
+
const instance = await instancePrompt(env2, acceptDefaults);
|
|
274504
274501
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
274505
274502
|
env: env2,
|
|
274506
274503
|
instance,
|
|
@@ -275926,7 +275923,7 @@ function customDeploymentsUpdateCommand() {
|
|
|
275926
275923
|
const env2 = await loadEnv2(false, !!prod);
|
|
275927
275924
|
const customDeploymentUniqueName = uniqueName ?? env2.SETTLEMINT_CUSTOM_DEPLOYMENT;
|
|
275928
275925
|
if (!customDeploymentUniqueName) {
|
|
275929
|
-
|
|
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");
|
|
275930
275927
|
}
|
|
275931
275928
|
const instance = await instancePrompt(env2, true);
|
|
275932
275929
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
@@ -275964,18 +275961,18 @@ function updateCommand() {
|
|
|
275964
275961
|
|
|
275965
275962
|
// src/commands/platform/config.ts
|
|
275966
275963
|
function configCommand() {
|
|
275967
|
-
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 }) => {
|
|
275968
275965
|
intro("Getting platform configuration");
|
|
275969
275966
|
const env2 = await loadEnv2(false, !!prod);
|
|
275970
|
-
const
|
|
275967
|
+
const selectedInstance = instance ? sanitizeInstanceUrl(instance) : await instancePrompt(env2, false);
|
|
275971
275968
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
275972
275969
|
env: env2,
|
|
275973
|
-
instance,
|
|
275970
|
+
instance: selectedInstance,
|
|
275974
275971
|
prefer: "personal"
|
|
275975
275972
|
});
|
|
275976
275973
|
const settlemint = createSettleMintClient({
|
|
275977
275974
|
accessToken,
|
|
275978
|
-
instance
|
|
275975
|
+
instance: selectedInstance
|
|
275979
275976
|
});
|
|
275980
275977
|
const platformConfig = await settlemint.platform.config();
|
|
275981
275978
|
note2(`Providers and regions:
|
|
@@ -276236,51 +276233,6 @@ function hardhatDeployLocalCommand() {
|
|
|
276236
276233
|
});
|
|
276237
276234
|
}
|
|
276238
276235
|
|
|
276239
|
-
// src/error/service-not-running-error.ts
|
|
276240
|
-
function serviceNotRunningError(service, status) {
|
|
276241
|
-
return cancel2(`The ${service} service is not in a Running state (status: ${status}).`);
|
|
276242
|
-
}
|
|
276243
|
-
|
|
276244
|
-
// src/commands/smart-contract-set/hardhat/utils/select-target-node.ts
|
|
276245
|
-
async function selectTargetNode({
|
|
276246
|
-
env: env2,
|
|
276247
|
-
blockchainNodeUniqueName,
|
|
276248
|
-
autoAccept,
|
|
276249
|
-
settlemint
|
|
276250
|
-
}) {
|
|
276251
|
-
const nodeUniqueName = blockchainNodeUniqueName ?? (autoAccept ? env2.SETTLEMINT_BLOCKCHAIN_NODE : undefined);
|
|
276252
|
-
let node = undefined;
|
|
276253
|
-
if (!nodeUniqueName) {
|
|
276254
|
-
if (!env2.SETTLEMINT_APPLICATION) {
|
|
276255
|
-
return missingApplication();
|
|
276256
|
-
}
|
|
276257
|
-
const nodes = await settlemint.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
|
|
276258
|
-
const evmNodes = nodes.filter((node2) => node2.isEvm);
|
|
276259
|
-
if (evmNodes.length === 0) {
|
|
276260
|
-
cancel("No EVM blockchain nodes found. Please create an EVM blockchain node and try again.");
|
|
276261
|
-
}
|
|
276262
|
-
const nodesWithPrivateKey = await Promise.all(nodes.map((node2) => settlemint.blockchainNode.read(node2.uniqueName)));
|
|
276263
|
-
const nodesWithActivePrivateKey = nodesWithPrivateKey.filter((node2) => node2.privateKeys && node2.privateKeys.length > 0);
|
|
276264
|
-
if (nodesWithActivePrivateKey.length === 0) {
|
|
276265
|
-
cancel("No EVM blockchain nodes with private keys found. Please activate a private key on your EVM blockchain node and try again.");
|
|
276266
|
-
}
|
|
276267
|
-
const blockchainNode = await blockchainNodePrompt(env2, nodesWithActivePrivateKey, autoAccept);
|
|
276268
|
-
if (!blockchainNode) {
|
|
276269
|
-
return nothingSelectedError("EVM blockchain node");
|
|
276270
|
-
}
|
|
276271
|
-
node = blockchainNode;
|
|
276272
|
-
} else {
|
|
276273
|
-
node = await settlemint.blockchainNode.read(nodeUniqueName);
|
|
276274
|
-
if (!node.isEvm) {
|
|
276275
|
-
cancel("The specified blockchain node is not an EVM blockchain node. Please specify an EVM blockchain node to continue.");
|
|
276276
|
-
}
|
|
276277
|
-
}
|
|
276278
|
-
if (node.status !== "COMPLETED") {
|
|
276279
|
-
serviceNotRunningError("blockchain node", node.status);
|
|
276280
|
-
}
|
|
276281
|
-
return node;
|
|
276282
|
-
}
|
|
276283
|
-
|
|
276284
276236
|
// src/commands/smart-contract-set/prompts/address.prompt.ts
|
|
276285
276237
|
async function addressPrompt({
|
|
276286
276238
|
env: env2,
|
|
@@ -276394,7 +276346,33 @@ function hardhatDeployRemoteCommand() {
|
|
|
276394
276346
|
accessToken,
|
|
276395
276347
|
instance
|
|
276396
276348
|
});
|
|
276397
|
-
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
|
+
}
|
|
276398
276376
|
const envConfig = await settlemint.foundry.env(node.uniqueName);
|
|
276399
276377
|
const hardhatConfig = await getHardhatConfigData(envConfig);
|
|
276400
276378
|
if (verify && !hardhatConfig?.etherscan?.apiKey) {
|
|
@@ -276486,8 +276464,33 @@ function hardhatScriptRemoteCommand() {
|
|
|
276486
276464
|
accessToken,
|
|
276487
276465
|
instance
|
|
276488
276466
|
});
|
|
276489
|
-
|
|
276490
|
-
|
|
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);
|
|
276491
276494
|
const { command, args } = await getPackageManagerExecutable();
|
|
276492
276495
|
await executeCommand(command, [...args, "hardhat", "run", script, "--network", "btp", ...compile ? ["--no-compile"] : []], { env: envConfig });
|
|
276493
276496
|
});
|
|
@@ -276818,9 +276821,6 @@ function subgraphDeployCommand() {
|
|
|
276818
276821
|
if (!theGraphMiddleware) {
|
|
276819
276822
|
return nothingSelectedError("graph middleware");
|
|
276820
276823
|
}
|
|
276821
|
-
if (theGraphMiddleware.status !== "COMPLETED") {
|
|
276822
|
-
serviceNotRunningError("graph middleware", theGraphMiddleware.status);
|
|
276823
|
-
}
|
|
276824
276824
|
const network = await getTheGraphNetwork({ theGraphMiddleware, env: env2, instance, accessToken });
|
|
276825
276825
|
await subgraphSetup({
|
|
276826
276826
|
network
|
|
@@ -276922,4 +276922,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
276922
276922
|
ascii();
|
|
276923
276923
|
sdkCliCommand();
|
|
276924
276924
|
|
|
276925
|
-
//# debugId=
|
|
276925
|
+
//# debugId=B9D33E25B9306D3764756E2164756E21
|