@settlemint/sdk-cli 0.8.6-prf09bdc77 → 0.8.6-prf2e810fc
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/README.md +62 -14
- package/dist/cli.js +58 -58
- package/dist/cli.js.map +8 -8
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -30,6 +30,20 @@
|
|
|
30
30
|
|
|
31
31
|
- [About](#about)
|
|
32
32
|
- [Usage](#usage)
|
|
33
|
+
- [As a dependency in your package.json](#as-a-dependency-in-your-package.json)
|
|
34
|
+
- [Globally install the CLI](#globally-install-the-cli)
|
|
35
|
+
- [Examples](#examples)
|
|
36
|
+
- [Get the version of the CLI](#get-the-version-of-the-cli)
|
|
37
|
+
- [Login to the platform](#login-to-the-platform)
|
|
38
|
+
- [Creating a new project from a starter kit template](#creating-a-new-project-from-a-starter-kit-template)
|
|
39
|
+
- [Installing dependencies](#installing-dependencies)
|
|
40
|
+
- [Connecting to your SettleMint infrastructure](#connecting-to-your-settlemint-infrastructure)
|
|
41
|
+
- [Deploying your smart contracts and subgraphs](#deploying-your-smart-contracts-and-subgraphs)
|
|
42
|
+
- [Generating code for your dApp](#generating-code-for-your-dapp)
|
|
43
|
+
- [Start your dApp in development mode](#start-your-dapp-in-development-mode)
|
|
44
|
+
- [Creating a new project from a smart contract template](#creating-a-new-project-from-a-smart-contract-template)
|
|
45
|
+
- [Testing your smart contracts on a local network](#testing-your-smart-contracts-on-a-local-network)
|
|
46
|
+
- [Deploying your smart contracts and subgraphs](#deploying-your-smart-contracts-and-subgraphs)
|
|
33
47
|
- [API Reference](#api-reference)
|
|
34
48
|
- [Contributing](#contributing)
|
|
35
49
|
- [License](#license)
|
|
@@ -40,6 +54,50 @@ The SettleMint CLI provides a command-line interface for interacting with the Se
|
|
|
40
54
|
|
|
41
55
|
## Usage
|
|
42
56
|
|
|
57
|
+
### As a dependency in your package.json
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# npm
|
|
61
|
+
npm install @settlemint/sdk-cli
|
|
62
|
+
npx settlemint --version
|
|
63
|
+
|
|
64
|
+
# bun
|
|
65
|
+
bun add @settlemint/sdk-cli
|
|
66
|
+
bunx settlemint --version
|
|
67
|
+
|
|
68
|
+
# pnpm
|
|
69
|
+
pnpm add @settlemint/sdk-cli
|
|
70
|
+
pnpm dlx settlemint --version
|
|
71
|
+
|
|
72
|
+
# yarn
|
|
73
|
+
yarn add @settlemint/sdk-cli
|
|
74
|
+
yarn create settlemint --version
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Globally install the CLI
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# npm
|
|
81
|
+
npm install -g @settlemint/sdk-cli
|
|
82
|
+
|
|
83
|
+
# bun
|
|
84
|
+
bun install -g @settlemint/sdk-cli
|
|
85
|
+
|
|
86
|
+
# pnpm
|
|
87
|
+
pnpm install -g @settlemint/sdk-cli
|
|
88
|
+
|
|
89
|
+
# yarn
|
|
90
|
+
yarn install -g @settlemint/sdk-cli
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Examples
|
|
94
|
+
|
|
95
|
+
### Get the version of the CLI
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
settlemint --version
|
|
99
|
+
```
|
|
100
|
+
|
|
43
101
|
### Login to the platform
|
|
44
102
|
|
|
45
103
|
To use the SettleMint CLI, you first need to authenticate with the platform. Create a Personal Access Token (PAT) on the SettleMint platformand paste it when prompted by the login command.
|
|
@@ -64,30 +122,20 @@ settlemint create --project-name <project-name> --template <template-name>
|
|
|
64
122
|
|
|
65
123
|
To install the dependencies for your project, use the `dependencies` command.
|
|
66
124
|
|
|
67
|
-
##### Using bun
|
|
68
|
-
|
|
69
125
|
```bash
|
|
126
|
+
# bun
|
|
70
127
|
bun install
|
|
71
128
|
bun run dependencies
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
##### Using npm
|
|
75
129
|
|
|
76
|
-
|
|
130
|
+
# npm
|
|
77
131
|
npm install
|
|
78
132
|
npm run dependencies
|
|
79
|
-
```
|
|
80
133
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
```bash
|
|
134
|
+
# yarn
|
|
84
135
|
yarn install
|
|
85
136
|
yarn run dependencies
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
##### Using pnpm
|
|
89
137
|
|
|
90
|
-
|
|
138
|
+
# pnpm
|
|
91
139
|
pnpm install
|
|
92
140
|
pnpm run dependencies
|
|
93
141
|
```
|
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.bbHod1ukdB:/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.bbHod1ukdB:/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.bbHod1ukdB:/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
|
}) => {
|
|
@@ -23161,13 +23161,13 @@ var require_is = __commonJS((exports, module) => {
|
|
|
23161
23161
|
// ../../node_modules/@npmcli/git/lib/find.js
|
|
23162
23162
|
var require_find = __commonJS((exports, module) => {
|
|
23163
23163
|
var is = require_is();
|
|
23164
|
-
var { dirname } = __require("path");
|
|
23164
|
+
var { dirname: dirname2 } = __require("path");
|
|
23165
23165
|
module.exports = async ({ cwd = process.cwd(), root } = {}) => {
|
|
23166
23166
|
while (true) {
|
|
23167
23167
|
if (await is({ cwd })) {
|
|
23168
23168
|
return cwd;
|
|
23169
23169
|
}
|
|
23170
|
-
const next =
|
|
23170
|
+
const next = dirname2(cwd);
|
|
23171
23171
|
if (cwd === root || cwd === next) {
|
|
23172
23172
|
return null;
|
|
23173
23173
|
}
|
|
@@ -223308,7 +223308,7 @@ ${Bt.cyan(Yt)}
|
|
|
223308
223308
|
code: "ENOENT"
|
|
223309
223309
|
}), getPathInfo = (e9, t7) => {
|
|
223310
223310
|
var r6 = t7.colon || or;
|
|
223311
|
-
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.
|
|
223311
|
+
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.bbHod1ukdB:/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)];
|
|
223312
223312
|
var n6 = nr ? t7.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
223313
223313
|
var a5 = nr ? n6.split(r6) : [""];
|
|
223314
223314
|
if (nr) {
|
|
@@ -226445,7 +226445,7 @@ ${whileRunning(e9)}`;
|
|
|
226445
226445
|
};
|
|
226446
226446
|
ni = Object.assign(async function _main() {
|
|
226447
226447
|
var e9 = new Cli({
|
|
226448
|
-
binaryVersion: "0.8.6-
|
|
226448
|
+
binaryVersion: "0.8.6-prf2e810fc",
|
|
226449
226449
|
binaryLabel: "gql.tada CLI",
|
|
226450
226450
|
binaryName: "gql.tada"
|
|
226451
226451
|
});
|
|
@@ -233432,11 +233432,11 @@ var require_path_arg = __commonJS((exports, module) => {
|
|
|
233432
233432
|
|
|
233433
233433
|
// ../../node_modules/mkdirp/lib/find-made.js
|
|
233434
233434
|
var require_find_made = __commonJS((exports, module) => {
|
|
233435
|
-
var { dirname:
|
|
233435
|
+
var { dirname: dirname7 } = __require("path");
|
|
233436
233436
|
var findMade = (opts, parent, path5 = undefined) => {
|
|
233437
233437
|
if (path5 === parent)
|
|
233438
233438
|
return Promise.resolve();
|
|
233439
|
-
return opts.statAsync(parent).then((st2) => st2.isDirectory() ? path5 : undefined, (er2) => er2.code === "ENOENT" ? findMade(opts,
|
|
233439
|
+
return opts.statAsync(parent).then((st2) => st2.isDirectory() ? path5 : undefined, (er2) => er2.code === "ENOENT" ? findMade(opts, dirname7(parent), parent) : undefined);
|
|
233440
233440
|
};
|
|
233441
233441
|
var findMadeSync = (opts, parent, path5 = undefined) => {
|
|
233442
233442
|
if (path5 === parent)
|
|
@@ -233444,7 +233444,7 @@ var require_find_made = __commonJS((exports, module) => {
|
|
|
233444
233444
|
try {
|
|
233445
233445
|
return opts.statSync(parent).isDirectory() ? path5 : undefined;
|
|
233446
233446
|
} catch (er2) {
|
|
233447
|
-
return er2.code === "ENOENT" ? findMadeSync(opts,
|
|
233447
|
+
return er2.code === "ENOENT" ? findMadeSync(opts, dirname7(parent), parent) : undefined;
|
|
233448
233448
|
}
|
|
233449
233449
|
};
|
|
233450
233450
|
module.exports = { findMade, findMadeSync };
|
|
@@ -233452,10 +233452,10 @@ var require_find_made = __commonJS((exports, module) => {
|
|
|
233452
233452
|
|
|
233453
233453
|
// ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
233454
233454
|
var require_mkdirp_manual = __commonJS((exports, module) => {
|
|
233455
|
-
var { dirname:
|
|
233455
|
+
var { dirname: dirname7 } = __require("path");
|
|
233456
233456
|
var mkdirpManual = (path5, opts, made) => {
|
|
233457
233457
|
opts.recursive = false;
|
|
233458
|
-
const parent =
|
|
233458
|
+
const parent = dirname7(path5);
|
|
233459
233459
|
if (parent === path5) {
|
|
233460
233460
|
return opts.mkdirAsync(path5, opts).catch((er2) => {
|
|
233461
233461
|
if (er2.code !== "EISDIR")
|
|
@@ -233478,7 +233478,7 @@ var require_mkdirp_manual = __commonJS((exports, module) => {
|
|
|
233478
233478
|
});
|
|
233479
233479
|
};
|
|
233480
233480
|
var mkdirpManualSync = (path5, opts, made) => {
|
|
233481
|
-
const parent =
|
|
233481
|
+
const parent = dirname7(path5);
|
|
233482
233482
|
opts.recursive = false;
|
|
233483
233483
|
if (parent === path5) {
|
|
233484
233484
|
try {
|
|
@@ -233511,12 +233511,12 @@ var require_mkdirp_manual = __commonJS((exports, module) => {
|
|
|
233511
233511
|
|
|
233512
233512
|
// ../../node_modules/mkdirp/lib/mkdirp-native.js
|
|
233513
233513
|
var require_mkdirp_native = __commonJS((exports, module) => {
|
|
233514
|
-
var { dirname:
|
|
233514
|
+
var { dirname: dirname7 } = __require("path");
|
|
233515
233515
|
var { findMade, findMadeSync } = require_find_made();
|
|
233516
233516
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
233517
233517
|
var mkdirpNative = (path5, opts) => {
|
|
233518
233518
|
opts.recursive = true;
|
|
233519
|
-
const parent =
|
|
233519
|
+
const parent = dirname7(path5);
|
|
233520
233520
|
if (parent === path5)
|
|
233521
233521
|
return opts.mkdirAsync(path5, opts);
|
|
233522
233522
|
return findMade(opts, path5).then((made) => opts.mkdirAsync(path5, opts).then(() => made).catch((er2) => {
|
|
@@ -233528,7 +233528,7 @@ var require_mkdirp_native = __commonJS((exports, module) => {
|
|
|
233528
233528
|
};
|
|
233529
233529
|
var mkdirpNativeSync = (path5, opts) => {
|
|
233530
233530
|
opts.recursive = true;
|
|
233531
|
-
const parent =
|
|
233531
|
+
const parent = dirname7(path5);
|
|
233532
233532
|
if (parent === path5)
|
|
233533
233533
|
return opts.mkdirSync(path5, opts);
|
|
233534
233534
|
const made = findMadeSync(opts, path5);
|
|
@@ -234945,7 +234945,7 @@ var require_which2 = __commonJS((exports, module) => {
|
|
|
234945
234945
|
const colon = opt2.colon || COLON;
|
|
234946
234946
|
const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
|
|
234947
234947
|
...isWindows2 ? [process.cwd()] : [],
|
|
234948
|
-
...(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.
|
|
234948
|
+
...(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.bbHod1ukdB:/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)
|
|
234949
234949
|
];
|
|
234950
234950
|
const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
234951
234951
|
const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
|
|
@@ -256769,7 +256769,7 @@ ${error.stack}`));
|
|
|
256769
256769
|
var package_default = {
|
|
256770
256770
|
name: "@settlemint/sdk-cli",
|
|
256771
256771
|
description: "SettleMint SDK, integrate SettleMint into your application with ease.",
|
|
256772
|
-
version: "0.8.6-
|
|
256772
|
+
version: "0.8.6-prf2e810fc",
|
|
256773
256773
|
type: "module",
|
|
256774
256774
|
private: false,
|
|
256775
256775
|
license: "FSL-1.1-MIT",
|
|
@@ -256822,8 +256822,8 @@ var package_default = {
|
|
|
256822
256822
|
"@inquirer/input": "4.1.1",
|
|
256823
256823
|
"@inquirer/password": "4.0.4",
|
|
256824
256824
|
"@inquirer/select": "4.0.4",
|
|
256825
|
-
"@settlemint/sdk-js": "0.8.6-
|
|
256826
|
-
"@settlemint/sdk-utils": "0.8.6-
|
|
256825
|
+
"@settlemint/sdk-js": "0.8.6-prf2e810fc",
|
|
256826
|
+
"@settlemint/sdk-utils": "0.8.6-prf2e810fc",
|
|
256827
256827
|
"get-tsconfig": "4.8.1",
|
|
256828
256828
|
giget: "1.2.3"
|
|
256829
256829
|
},
|
|
@@ -256838,8 +256838,7 @@ import { mkdir, writeFile } from "node:fs/promises";
|
|
|
256838
256838
|
import { join } from "node:path";
|
|
256839
256839
|
|
|
256840
256840
|
// ../utils/dist/filesystem.mjs
|
|
256841
|
-
import {
|
|
256842
|
-
import { dirname as dirname2 } from "node:path";
|
|
256841
|
+
import { dirname } from "node:path";
|
|
256843
256842
|
|
|
256844
256843
|
// ../../node_modules/find-up/index.js
|
|
256845
256844
|
import path2 from "node:path";
|
|
@@ -257071,6 +257070,14 @@ async function findUp(name, options = {}) {
|
|
|
257071
257070
|
}
|
|
257072
257071
|
|
|
257073
257072
|
// ../utils/dist/filesystem.mjs
|
|
257073
|
+
import { stat } from "node:fs/promises";
|
|
257074
|
+
async function projectRoot() {
|
|
257075
|
+
const packageJsonPath = await findUp("package.json");
|
|
257076
|
+
if (!packageJsonPath) {
|
|
257077
|
+
throw new Error("Unable to find project root (no package.json found)");
|
|
257078
|
+
}
|
|
257079
|
+
return dirname(packageJsonPath);
|
|
257080
|
+
}
|
|
257074
257081
|
async function exists(path3) {
|
|
257075
257082
|
try {
|
|
257076
257083
|
await stat(path3);
|
|
@@ -257079,13 +257086,6 @@ async function exists(path3) {
|
|
|
257079
257086
|
return false;
|
|
257080
257087
|
}
|
|
257081
257088
|
}
|
|
257082
|
-
async function projectRoot() {
|
|
257083
|
-
const packageJsonPath = await findUp("package.json");
|
|
257084
|
-
if (!packageJsonPath) {
|
|
257085
|
-
throw new Error("Unable to find project root (no package.json found)");
|
|
257086
|
-
}
|
|
257087
|
-
return dirname2(packageJsonPath);
|
|
257088
|
-
}
|
|
257089
257089
|
|
|
257090
257090
|
// src/commands/codegen/write-template.ts
|
|
257091
257091
|
async function writeTemplate(template, directory, filename) {
|
|
@@ -261110,8 +261110,8 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
261110
261110
|
|
|
261111
261111
|
// ../utils/dist/index.mjs
|
|
261112
261112
|
var import_dotenvx = __toESM(require_main2(), 1);
|
|
261113
|
-
import { stat as stat2 } from "node:fs/promises";
|
|
261114
261113
|
var import_dotenvx2 = __toESM(require_main2(), 1);
|
|
261114
|
+
import { stat as stat2 } from "node:fs/promises";
|
|
261115
261115
|
|
|
261116
261116
|
// ../../node_modules/deepmerge-ts/dist/index.mjs
|
|
261117
261117
|
var actions = {
|
|
@@ -269912,10 +269912,10 @@ async function subgraphNamePrompt(env2) {
|
|
|
269912
269912
|
import { join as join5 } from "node:path";
|
|
269913
269913
|
var import_dotenvx3 = __toESM(require_main2(), 1);
|
|
269914
269914
|
import { readFile as readFile4, writeFile as writeFile5 } from "node:fs/promises";
|
|
269915
|
-
import { dirname as
|
|
269916
|
-
import {
|
|
269917
|
-
import { dirname as dirname22 } from "node:path";
|
|
269915
|
+
import { dirname as dirname22, join as join22 } from "node:path";
|
|
269916
|
+
import { dirname as dirname5 } from "node:path";
|
|
269918
269917
|
var import_dotenvx4 = __toESM(require_main2(), 1);
|
|
269918
|
+
import { stat as stat7 } from "node:fs/promises";
|
|
269919
269919
|
var maskTokens3 = (output) => {
|
|
269920
269920
|
return output.replace(/sm_(pat|aat|sat)_[0-9a-zA-Z]+/g, "***");
|
|
269921
269921
|
};
|
|
@@ -270028,6 +270028,13 @@ async function loadEnvironmentEnv2(validateEnv, prod, path5 = process.cwd()) {
|
|
|
270028
270028
|
return {};
|
|
270029
270029
|
}
|
|
270030
270030
|
}
|
|
270031
|
+
async function projectRoot2() {
|
|
270032
|
+
const packageJsonPath = await findUp("package.json");
|
|
270033
|
+
if (!packageJsonPath) {
|
|
270034
|
+
throw new Error("Unable to find project root (no package.json found)");
|
|
270035
|
+
}
|
|
270036
|
+
return dirname5(packageJsonPath);
|
|
270037
|
+
}
|
|
270031
270038
|
async function exists3(path5) {
|
|
270032
270039
|
try {
|
|
270033
270040
|
await stat7(path5);
|
|
@@ -270036,13 +270043,6 @@ async function exists3(path5) {
|
|
|
270036
270043
|
return false;
|
|
270037
270044
|
}
|
|
270038
270045
|
}
|
|
270039
|
-
async function projectRoot2() {
|
|
270040
|
-
const packageJsonPath = await findUp("package.json");
|
|
270041
|
-
if (!packageJsonPath) {
|
|
270042
|
-
throw new Error("Unable to find project root (no package.json found)");
|
|
270043
|
-
}
|
|
270044
|
-
return dirname22(packageJsonPath);
|
|
270045
|
-
}
|
|
270046
270046
|
async function findMonoRepoRoot(startDir) {
|
|
270047
270047
|
let currentDir = startDir;
|
|
270048
270048
|
while (currentDir !== "/") {
|
|
@@ -270053,7 +270053,7 @@ async function findMonoRepoRoot(startDir) {
|
|
|
270053
270053
|
return currentDir;
|
|
270054
270054
|
}
|
|
270055
270055
|
}
|
|
270056
|
-
const parentDir =
|
|
270056
|
+
const parentDir = dirname22(currentDir);
|
|
270057
270057
|
if (parentDir === currentDir) {
|
|
270058
270058
|
break;
|
|
270059
270059
|
}
|
|
@@ -273265,10 +273265,17 @@ async function templatePrompt(templates, argument) {
|
|
|
273265
273265
|
// ../utils/dist/package-manager.mjs
|
|
273266
273266
|
import { readdir as readdir3, rm as rm2 } from "node:fs/promises";
|
|
273267
273267
|
import { resolve as resolve4 } from "node:path";
|
|
273268
|
+
import { dirname as dirname6 } from "node:path";
|
|
273268
273269
|
import { stat as stat8 } from "node:fs/promises";
|
|
273269
|
-
import { dirname as dirname23 } from "node:path";
|
|
273270
273270
|
var import_package_json3 = __toESM(require_lib12(), 1);
|
|
273271
273271
|
var import_package_json4 = __toESM(require_lib12(), 1);
|
|
273272
|
+
async function projectRoot3() {
|
|
273273
|
+
const packageJsonPath = await findUp("package.json");
|
|
273274
|
+
if (!packageJsonPath) {
|
|
273275
|
+
throw new Error("Unable to find project root (no package.json found)");
|
|
273276
|
+
}
|
|
273277
|
+
return dirname6(packageJsonPath);
|
|
273278
|
+
}
|
|
273272
273279
|
async function exists4(path5) {
|
|
273273
273280
|
try {
|
|
273274
273281
|
await stat8(path5);
|
|
@@ -273277,13 +273284,6 @@ async function exists4(path5) {
|
|
|
273277
273284
|
return false;
|
|
273278
273285
|
}
|
|
273279
273286
|
}
|
|
273280
|
-
async function projectRoot3() {
|
|
273281
|
-
const packageJsonPath = await findUp("package.json");
|
|
273282
|
-
if (!packageJsonPath) {
|
|
273283
|
-
throw new Error("Unable to find project root (no package.json found)");
|
|
273284
|
-
}
|
|
273285
|
-
return dirname23(packageJsonPath);
|
|
273286
|
-
}
|
|
273287
273287
|
var templates = [
|
|
273288
273288
|
{ value: "@settlemint/starterkit-asset-tokenization", label: "Asset Tokenization" }
|
|
273289
273289
|
];
|
|
@@ -273466,7 +273466,7 @@ function normalizeString(path5, allowAboveRoot) {
|
|
|
273466
273466
|
var isAbsolute = function(p5) {
|
|
273467
273467
|
return _IS_ABSOLUTE_RE.test(p5);
|
|
273468
273468
|
};
|
|
273469
|
-
var
|
|
273469
|
+
var dirname7 = function(p5) {
|
|
273470
273470
|
const segments = normalizeWindowsPath(p5).replace(/\/$/, "").split("/").slice(0, -1);
|
|
273471
273471
|
if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
|
|
273472
273472
|
segments[0] += "/";
|
|
@@ -273934,7 +273934,7 @@ async function downloadTemplate(input, options = {}) {
|
|
|
273934
273934
|
options.offline = true;
|
|
273935
273935
|
}
|
|
273936
273936
|
if (!options.offline) {
|
|
273937
|
-
await mkdir4(
|
|
273937
|
+
await mkdir4(dirname7(tarPath), { recursive: true });
|
|
273938
273938
|
const s22 = Date.now();
|
|
273939
273939
|
await download(template.tar, tarPath, {
|
|
273940
273940
|
headers: {
|
|
@@ -276295,7 +276295,7 @@ function hardhatTestCommand() {
|
|
|
276295
276295
|
}
|
|
276296
276296
|
|
|
276297
276297
|
// src/commands/smart-contract-set/subgraph/build.ts
|
|
276298
|
-
import { dirname as
|
|
276298
|
+
import { dirname as dirname8 } from "node:path";
|
|
276299
276299
|
|
|
276300
276300
|
// src/commands/smart-contract-set/subgraph/utils/setup.ts
|
|
276301
276301
|
import { rm as rm4 } from "node:fs/promises";
|
|
@@ -276506,14 +276506,14 @@ function subgraphBuildCommand() {
|
|
|
276506
276506
|
});
|
|
276507
276507
|
const { command, args } = await getPackageManagerExecutable();
|
|
276508
276508
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
|
276509
|
-
const cwd2 =
|
|
276509
|
+
const cwd2 = dirname8(subgraphYamlFile);
|
|
276510
276510
|
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], { cwd: cwd2 });
|
|
276511
276511
|
await executeCommand(command, [...args, "graph", "build", subgraphYamlFile], { cwd: cwd2 });
|
|
276512
276512
|
});
|
|
276513
276513
|
}
|
|
276514
276514
|
|
|
276515
276515
|
// src/commands/smart-contract-set/subgraph/codegen.ts
|
|
276516
|
-
import { dirname as
|
|
276516
|
+
import { dirname as dirname9 } from "node:path";
|
|
276517
276517
|
function subgraphCodegenCommand() {
|
|
276518
276518
|
return new Command("codegen").description("Codegen the subgraph types").action(async () => {
|
|
276519
276519
|
await subgraphSetup({
|
|
@@ -276522,13 +276522,13 @@ function subgraphCodegenCommand() {
|
|
|
276522
276522
|
const { command, args } = await getPackageManagerExecutable();
|
|
276523
276523
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
|
276524
276524
|
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], {
|
|
276525
|
-
cwd:
|
|
276525
|
+
cwd: dirname9(subgraphYamlFile)
|
|
276526
276526
|
});
|
|
276527
276527
|
});
|
|
276528
276528
|
}
|
|
276529
276529
|
|
|
276530
276530
|
// src/commands/smart-contract-set/subgraph/deploy.ts
|
|
276531
|
-
import { dirname as
|
|
276531
|
+
import { dirname as dirname10 } from "node:path";
|
|
276532
276532
|
|
|
276533
276533
|
// src/commands/smart-contract-set/prompts/subgraph-name.prompt.ts
|
|
276534
276534
|
async function subgraphNamePrompt2(defaultName, env2, accept, prod) {
|
|
@@ -276589,7 +276589,7 @@ function subgraphDeployCommand() {
|
|
|
276589
276589
|
await updateSpecVersion(theGraphMiddleware.specVersion);
|
|
276590
276590
|
const { command, args } = await getPackageManagerExecutable();
|
|
276591
276591
|
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], {
|
|
276592
|
-
cwd:
|
|
276592
|
+
cwd: dirname10(subgraphYamlFile)
|
|
276593
276593
|
});
|
|
276594
276594
|
const generated = await isGenerated();
|
|
276595
276595
|
if (generated) {
|
|
@@ -276682,4 +276682,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
276682
276682
|
ascii();
|
|
276683
276683
|
sdkCliCommand();
|
|
276684
276684
|
|
|
276685
|
-
//# debugId=
|
|
276685
|
+
//# debugId=10302444C1B07DF664756E2164756E21
|