@settlemint/sdk-cli 2.4.0-prf9d91e91 → 2.4.0-prfdc1cdc0
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 +72 -75
- package/dist/cli.js.map +41 -41
- package/package.json +8 -10
package/dist/cli.js
CHANGED
@@ -231623,7 +231623,7 @@ function size(value4) {
|
|
231623
231623
|
var init_size = () => {};
|
231624
231624
|
|
231625
231625
|
// ../../node_modules/viem/_esm/errors/version.js
|
231626
|
-
var version5 = "2.31.
|
231626
|
+
var version5 = "2.31.2";
|
231627
231627
|
|
231628
231628
|
// ../../node_modules/viem/_esm/errors/base.js
|
231629
231629
|
function walk(err, fn) {
|
@@ -258129,9 +258129,9 @@ ${formattedErrors}`);
|
|
258129
258129
|
throw error$37;
|
258130
258130
|
}
|
258131
258131
|
}
|
258132
|
-
var ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_
|
258133
|
-
var PersonalAccessTokenSchema = string$1().regex(/^sm_pat_
|
258134
|
-
var AccessTokenSchema = string$1().regex(/^
|
258132
|
+
var ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_.*$/);
|
258133
|
+
var PersonalAccessTokenSchema = string$1().regex(/^sm_pat_.*$/);
|
258134
|
+
var AccessTokenSchema = string$1().regex(/^sm_pat_.*|sm_aat_.*$/);
|
258135
258135
|
function tryParseJson(value, defaultValue = null) {
|
258136
258136
|
try {
|
258137
258137
|
const parsed = JSON.parse(value);
|
@@ -258139,7 +258139,7 @@ function tryParseJson(value, defaultValue = null) {
|
|
258139
258139
|
return defaultValue;
|
258140
258140
|
}
|
258141
258141
|
return parsed;
|
258142
|
-
} catch (
|
258142
|
+
} catch (err) {
|
258143
258143
|
return defaultValue;
|
258144
258144
|
}
|
258145
258145
|
}
|
@@ -263769,7 +263769,7 @@ async function findMonoRepoPackages(projectDir) {
|
|
263769
263769
|
}));
|
263770
263770
|
const allPaths = packagePaths.flat();
|
263771
263771
|
return allPaths.length === 0 ? [projectDir] : [monoRepoRoot, ...allPaths];
|
263772
|
-
} catch (
|
263772
|
+
} catch (error$37) {
|
263773
263773
|
return [projectDir];
|
263774
263774
|
}
|
263775
263775
|
}
|
@@ -263840,7 +263840,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
263840
263840
|
var package_default = {
|
263841
263841
|
name: "@settlemint/sdk-cli",
|
263842
263842
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
263843
|
-
version: "2.4.0-
|
263843
|
+
version: "2.4.0-prfdc1cdc0",
|
263844
263844
|
type: "module",
|
263845
263845
|
private: false,
|
263846
263846
|
license: "FSL-1.1-MIT",
|
@@ -263859,9 +263859,7 @@ var package_default = {
|
|
263859
263859
|
url: "https://github.com/settlemint/sdk/issues",
|
263860
263860
|
email: "support@settlemint.com"
|
263861
263861
|
},
|
263862
|
-
files: [
|
263863
|
-
"dist"
|
263864
|
-
],
|
263862
|
+
files: ["dist"],
|
263865
263863
|
exports: {
|
263866
263864
|
"./*": {
|
263867
263865
|
types: "./dist/*.d.ts",
|
@@ -263891,10 +263889,10 @@ var package_default = {
|
|
263891
263889
|
"@inquirer/input": "4.1.12",
|
263892
263890
|
"@inquirer/password": "4.0.15",
|
263893
263891
|
"@inquirer/select": "4.2.3",
|
263894
|
-
"@settlemint/sdk-js": "2.4.0-
|
263895
|
-
"@settlemint/sdk-utils": "2.4.0-
|
263896
|
-
"@settlemint/sdk-viem": "2.4.0-
|
263897
|
-
"@types/node": "24.0.
|
263892
|
+
"@settlemint/sdk-js": "2.4.0-prfdc1cdc0",
|
263893
|
+
"@settlemint/sdk-utils": "2.4.0-prfdc1cdc0",
|
263894
|
+
"@settlemint/sdk-viem": "2.4.0-prfdc1cdc0",
|
263895
|
+
"@types/node": "24.0.3",
|
263898
263896
|
"@types/semver": "7.7.0",
|
263899
263897
|
"@types/which": "3.0.4",
|
263900
263898
|
"get-tsconfig": "4.10.1",
|
@@ -263902,13 +263900,13 @@ var package_default = {
|
|
263902
263900
|
"is-in-ci": "1.0.0",
|
263903
263901
|
semver: "7.7.2",
|
263904
263902
|
slugify: "1.6.6",
|
263905
|
-
viem: "2.31.
|
263903
|
+
viem: "2.31.2",
|
263906
263904
|
which: "5.0.0",
|
263907
263905
|
yaml: "2.8.0",
|
263908
263906
|
yoctocolors: "2.1.1"
|
263909
263907
|
},
|
263910
263908
|
peerDependencies: {
|
263911
|
-
hardhat: "2.
|
263909
|
+
hardhat: "2.24.3"
|
263912
263910
|
},
|
263913
263911
|
peerDependenciesMeta: {
|
263914
263912
|
hardhat: {
|
@@ -263963,7 +263961,7 @@ async function telemetry(data) {
|
|
263963
263961
|
signal: controller.signal
|
263964
263962
|
});
|
263965
263963
|
clearTimeout(timeout);
|
263966
|
-
} catch (
|
263964
|
+
} catch (error2) {}
|
263967
263965
|
}
|
263968
263966
|
|
263969
263967
|
// ../../node_modules/@commander-js/extra-typings/esm.mjs
|
@@ -276515,9 +276513,9 @@ ${formattedErrors}`);
|
|
276515
276513
|
throw error$372;
|
276516
276514
|
}
|
276517
276515
|
}
|
276518
|
-
var ApplicationAccessTokenSchema2 = string$12().regex(/^sm_aat_
|
276519
|
-
var PersonalAccessTokenSchema2 = string$12().regex(/^sm_pat_
|
276520
|
-
var AccessTokenSchema2 = string$12().regex(/^
|
276516
|
+
var ApplicationAccessTokenSchema2 = string$12().regex(/^sm_aat_.*$/);
|
276517
|
+
var PersonalAccessTokenSchema2 = string$12().regex(/^sm_pat_.*$/);
|
276518
|
+
var AccessTokenSchema2 = string$12().regex(/^sm_pat_.*|sm_aat_.*$/);
|
276521
276519
|
function tryParseJson2(value, defaultValue = null) {
|
276522
276520
|
try {
|
276523
276521
|
const parsed = JSON.parse(value);
|
@@ -276525,7 +276523,7 @@ function tryParseJson2(value, defaultValue = null) {
|
|
276525
276523
|
return defaultValue;
|
276526
276524
|
}
|
276527
276525
|
return parsed;
|
276528
|
-
} catch (
|
276526
|
+
} catch (err) {
|
276529
276527
|
return defaultValue;
|
276530
276528
|
}
|
276531
276529
|
}
|
@@ -295871,6 +295869,17 @@ async function exists3(path$1) {
|
|
295871
295869
|
return false;
|
295872
295870
|
}
|
295873
295871
|
}
|
295872
|
+
function tryParseJson3(value2, defaultValue = null) {
|
295873
|
+
try {
|
295874
|
+
const parsed = JSON.parse(value2);
|
295875
|
+
if (parsed === undefined || parsed === null) {
|
295876
|
+
return defaultValue;
|
295877
|
+
}
|
295878
|
+
return parsed;
|
295879
|
+
} catch (err) {
|
295880
|
+
return defaultValue;
|
295881
|
+
}
|
295882
|
+
}
|
295874
295883
|
var require_balanced_match4 = __commonJS4({ "../../node_modules/balanced-match/index.js"(exports, module) {
|
295875
295884
|
module.exports = balanced$1;
|
295876
295885
|
function balanced$1(a3, b, str) {
|
@@ -301349,17 +301358,6 @@ var glob3 = Object.assign(glob_3, {
|
|
301349
301358
|
unescape: unescape4
|
301350
301359
|
});
|
301351
301360
|
glob3.glob = glob3;
|
301352
|
-
function tryParseJson3(value2, defaultValue = null) {
|
301353
|
-
try {
|
301354
|
-
const parsed = JSON.parse(value2);
|
301355
|
-
if (parsed === undefined || parsed === null) {
|
301356
|
-
return defaultValue;
|
301357
|
-
}
|
301358
|
-
return parsed;
|
301359
|
-
} catch (_err) {
|
301360
|
-
return defaultValue;
|
301361
|
-
}
|
301362
|
-
}
|
301363
301361
|
async function findMonoRepoRoot2(startDir) {
|
301364
301362
|
const lockFilePath = await findUp([
|
301365
301363
|
"package-lock.json",
|
@@ -301405,7 +301403,7 @@ function tryParseJson4(value2, defaultValue = null) {
|
|
301405
301403
|
return defaultValue;
|
301406
301404
|
}
|
301407
301405
|
return parsed;
|
301408
|
-
} catch (
|
301406
|
+
} catch (err) {
|
301409
301407
|
return defaultValue;
|
301410
301408
|
}
|
301411
301409
|
}
|
@@ -301433,7 +301431,7 @@ async function readConfig() {
|
|
301433
301431
|
try {
|
301434
301432
|
const content = await readFile4(CONFIG_FILE, "utf-8");
|
301435
301433
|
return tryParseJson4(content, { instances: {} });
|
301436
|
-
} catch (
|
301434
|
+
} catch (error41) {
|
301437
301435
|
return { instances: {} };
|
301438
301436
|
}
|
301439
301437
|
}
|
@@ -305156,9 +305154,9 @@ function watchContractEvent(client, parameters) {
|
|
305156
305154
|
return poll_;
|
305157
305155
|
if (typeof fromBlock === "bigint")
|
305158
305156
|
return true;
|
305159
|
-
if (client.transport.type === "webSocket"
|
305157
|
+
if (client.transport.type === "webSocket")
|
305160
305158
|
return false;
|
305161
|
-
if (client.transport.type === "fallback" &&
|
305159
|
+
if (client.transport.type === "fallback" && client.transport.transports[0].config.type === "webSocket")
|
305162
305160
|
return false;
|
305163
305161
|
return true;
|
305164
305162
|
})();
|
@@ -305259,7 +305257,7 @@ function watchContractEvent(client, parameters) {
|
|
305259
305257
|
try {
|
305260
305258
|
const transport = (() => {
|
305261
305259
|
if (client.transport.type === "fallback") {
|
305262
|
-
const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket"
|
305260
|
+
const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket");
|
305263
305261
|
if (!transport2)
|
305264
305262
|
return client.transport;
|
305265
305263
|
return transport2.value;
|
@@ -307147,10 +307145,9 @@ async function simulateBlocks(client, parameters) {
|
|
307147
307145
|
const calls = block2.calls.map((call_) => {
|
307148
307146
|
const call2 = call_;
|
307149
307147
|
const account = call2.account ? parseAccount(call2.account) : undefined;
|
307150
|
-
const data = call2.abi ? encodeFunctionData(call2) : call2.data;
|
307151
307148
|
const request2 = {
|
307152
307149
|
...call2,
|
307153
|
-
data: call2.
|
307150
|
+
data: call2.abi ? encodeFunctionData(call2) : call2.data,
|
307154
307151
|
from: call2.from ?? account?.address
|
307155
307152
|
};
|
307156
307153
|
assertRequest(request2);
|
@@ -308420,9 +308417,9 @@ function watchBlockNumber(client, { emitOnBegin = false, emitMissed = false, onB
|
|
308420
308417
|
const enablePolling = (() => {
|
308421
308418
|
if (typeof poll_ !== "undefined")
|
308422
308419
|
return poll_;
|
308423
|
-
if (client.transport.type === "webSocket"
|
308420
|
+
if (client.transport.type === "webSocket")
|
308424
308421
|
return false;
|
308425
|
-
if (client.transport.type === "fallback" &&
|
308422
|
+
if (client.transport.type === "fallback" && client.transport.transports[0].config.type === "webSocket")
|
308426
308423
|
return false;
|
308427
308424
|
return true;
|
308428
308425
|
})();
|
@@ -308474,7 +308471,7 @@ function watchBlockNumber(client, { emitOnBegin = false, emitMissed = false, onB
|
|
308474
308471
|
try {
|
308475
308472
|
const transport = (() => {
|
308476
308473
|
if (client.transport.type === "fallback") {
|
308477
|
-
const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket"
|
308474
|
+
const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket");
|
308478
308475
|
if (!transport2)
|
308479
308476
|
return client.transport;
|
308480
308477
|
return transport2.value;
|
@@ -308627,9 +308624,9 @@ function watchBlocks(client, { blockTag = "latest", emitMissed = false, emitOnBe
|
|
308627
308624
|
const enablePolling = (() => {
|
308628
308625
|
if (typeof poll_ !== "undefined")
|
308629
308626
|
return poll_;
|
308630
|
-
if (client.transport.type === "webSocket"
|
308627
|
+
if (client.transport.type === "webSocket")
|
308631
308628
|
return false;
|
308632
|
-
if (client.transport.type === "fallback" &&
|
308629
|
+
if (client.transport.type === "fallback" && client.transport.transports[0].config.type === "webSocket")
|
308633
308630
|
return false;
|
308634
308631
|
return true;
|
308635
308632
|
})();
|
@@ -308698,7 +308695,7 @@ function watchBlocks(client, { blockTag = "latest", emitMissed = false, emitOnBe
|
|
308698
308695
|
}
|
308699
308696
|
const transport = (() => {
|
308700
308697
|
if (client.transport.type === "fallback") {
|
308701
|
-
const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket"
|
308698
|
+
const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket");
|
308702
308699
|
if (!transport2)
|
308703
308700
|
return client.transport;
|
308704
308701
|
return transport2.value;
|
@@ -308745,9 +308742,9 @@ function watchEvent(client, { address, args, batch = true, event, events, fromBl
|
|
308745
308742
|
return poll_;
|
308746
308743
|
if (typeof fromBlock === "bigint")
|
308747
308744
|
return true;
|
308748
|
-
if (client.transport.type === "webSocket"
|
308745
|
+
if (client.transport.type === "webSocket")
|
308749
308746
|
return false;
|
308750
|
-
if (client.transport.type === "fallback" &&
|
308747
|
+
if (client.transport.type === "fallback" && client.transport.transports[0].config.type === "webSocket")
|
308751
308748
|
return false;
|
308752
308749
|
return true;
|
308753
308750
|
})();
|
@@ -308834,7 +308831,7 @@ function watchEvent(client, { address, args, batch = true, event, events, fromBl
|
|
308834
308831
|
try {
|
308835
308832
|
const transport = (() => {
|
308836
308833
|
if (client.transport.type === "fallback") {
|
308837
|
-
const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket"
|
308834
|
+
const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket");
|
308838
308835
|
if (!transport2)
|
308839
308836
|
return client.transport;
|
308840
308837
|
return transport2.value;
|
@@ -308901,7 +308898,7 @@ function watchEvent(client, { address, args, batch = true, event, events, fromBl
|
|
308901
308898
|
}
|
308902
308899
|
// ../../node_modules/viem/_esm/actions/public/watchPendingTransactions.js
|
308903
308900
|
function watchPendingTransactions(client, { batch = true, onError, onTransactions, poll: poll_, pollingInterval = client.pollingInterval }) {
|
308904
|
-
const enablePolling = typeof poll_ !== "undefined" ? poll_ : client.transport.type !== "webSocket"
|
308901
|
+
const enablePolling = typeof poll_ !== "undefined" ? poll_ : client.transport.type !== "webSocket";
|
308905
308902
|
const pollPendingTransactions = () => {
|
308906
308903
|
const observerId = stringify3([
|
308907
308904
|
"watchPendingTransactions",
|
@@ -320559,7 +320556,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
320559
320556
|
try {
|
320560
320557
|
validate2(exports_external.string(), value4);
|
320561
320558
|
return true;
|
320562
|
-
} catch (
|
320559
|
+
} catch (error45) {
|
320563
320560
|
return "Invalid token name";
|
320564
320561
|
}
|
320565
320562
|
}
|
@@ -320612,7 +320609,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
320612
320609
|
try {
|
320613
320610
|
validate2(ApplicationAccessTokenSchema2, aat);
|
320614
320611
|
return aat;
|
320615
|
-
} catch (
|
320612
|
+
} catch (error45) {}
|
320616
320613
|
}
|
320617
320614
|
return esm_default5({
|
320618
320615
|
message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
|
@@ -320620,7 +320617,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
320620
320617
|
try {
|
320621
320618
|
validate2(ApplicationAccessTokenSchema2, value4);
|
320622
320619
|
return true;
|
320623
|
-
} catch (
|
320620
|
+
} catch (error45) {
|
320624
320621
|
return "Invalid application access token, it should start with sm_aat_...";
|
320625
320622
|
}
|
320626
320623
|
}
|
@@ -321025,7 +321022,7 @@ async function instancePrompt({
|
|
321025
321022
|
try {
|
321026
321023
|
validate2(UrlSchema2, value4);
|
321027
321024
|
return true;
|
321028
|
-
} catch (
|
321025
|
+
} catch (error45) {
|
321029
321026
|
return "Invalid URL";
|
321030
321027
|
}
|
321031
321028
|
},
|
@@ -321109,7 +321106,7 @@ async function serviceUrlPrompt({
|
|
321109
321106
|
try {
|
321110
321107
|
validate2(UrlSchema2, value4);
|
321111
321108
|
return true;
|
321112
|
-
} catch (
|
321109
|
+
} catch (error45) {
|
321113
321110
|
return "Invalid URL";
|
321114
321111
|
}
|
321115
321112
|
},
|
@@ -322053,7 +322050,7 @@ async function projectNamePrompt(env2, argument) {
|
|
322053
322050
|
try {
|
322054
322051
|
validate2(exports_external.string(), value4);
|
322055
322052
|
return true;
|
322056
|
-
} catch (
|
322053
|
+
} catch (error45) {
|
322057
322054
|
return "Invalid projectname";
|
322058
322055
|
}
|
322059
322056
|
}
|
@@ -326041,7 +326038,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
326041
326038
|
try {
|
326042
326039
|
validate2(PersonalAccessTokenSchema2, value4);
|
326043
326040
|
return true;
|
326044
|
-
} catch (
|
326041
|
+
} catch (error45) {
|
326045
326042
|
return "Invalid personal access token, it should start with sm_pat_...";
|
326046
326043
|
}
|
326047
326044
|
}
|
@@ -326122,7 +326119,7 @@ function loginCommand() {
|
|
326122
326119
|
});
|
326123
326120
|
try {
|
326124
326121
|
await loginSpinner(client);
|
326125
|
-
} catch (
|
326122
|
+
} catch (error45) {
|
326126
326123
|
cancel2(`Invalid personal access token for instance ${selectedInstance}`);
|
326127
326124
|
}
|
326128
326125
|
await storeCredentials(personalAccessToken, selectedInstance);
|
@@ -326318,7 +326315,7 @@ async function waitForCompletion({
|
|
326318
326315
|
} else {
|
326319
326316
|
note(`${capitalizeFirstLetter2(type4)} is not ready yet (status: ${resource.status})`);
|
326320
326317
|
}
|
326321
|
-
} catch (
|
326318
|
+
} catch (error45) {
|
326322
326319
|
if (spinner2) {
|
326323
326320
|
spinner2.text = `${capitalizeFirstLetter2(type4)} is not ready yet (status: UNKNOWN)`;
|
326324
326321
|
} else {
|
@@ -326449,8 +326446,8 @@ function getCreateCommand({
|
|
326449
326446
|
instance
|
326450
326447
|
});
|
326451
326448
|
const platformConfig = await settlemint.platform.config();
|
326452
|
-
let selectedProvider;
|
326453
|
-
let selectedRegion;
|
326449
|
+
let selectedProvider = undefined;
|
326450
|
+
let selectedRegion = undefined;
|
326454
326451
|
if (cmd2.options.some((option) => option.long === "--provider")) {
|
326455
326452
|
selectedProvider = await providerPrompt(platformConfig, provider);
|
326456
326453
|
if (!selectedProvider) {
|
@@ -327661,7 +327658,7 @@ function privateKeyHsmCreateCommand() {
|
|
327661
327658
|
return baseAction({
|
327662
327659
|
...defaultArgs,
|
327663
327660
|
acceptDefaults
|
327664
|
-
}, async ({ settlemint, env: env2, showSpinner, provider
|
327661
|
+
}, async ({ settlemint, env: env2, showSpinner, provider, region }) => {
|
327665
327662
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
327666
327663
|
if (!applicationUniqueName) {
|
327667
327664
|
return missingApplication();
|
@@ -328561,7 +328558,7 @@ function servicesCommand() {
|
|
328561
328558
|
if (!applicationUniqueName) {
|
328562
328559
|
return nothingSelectedError("application");
|
328563
328560
|
}
|
328564
|
-
let effectiveTypes;
|
328561
|
+
let effectiveTypes = undefined;
|
328565
328562
|
if (options.type && options.type.length > 0) {
|
328566
328563
|
effectiveTypes = options.type;
|
328567
328564
|
} else if (typeOperands && typeOperands.length > 0) {
|
@@ -328619,7 +328616,7 @@ async function getServicesAndMapResults({
|
|
328619
328616
|
const application = await settlemint.application.read(applicationUniqueName);
|
328620
328617
|
const services = await servicesSpinner(settlemint, applicationUniqueName, types4);
|
328621
328618
|
const results = (types4 ?? SERVICE_TYPES).filter((serviceType) => !types4 || types4.includes(serviceType)).map((serviceType) => {
|
328622
|
-
const [_6, labels] = Object.entries(LABELS_MAP).find(([
|
328619
|
+
const [_6, labels] = Object.entries(LABELS_MAP).find(([key2, value4]) => value4.command === serviceType) ?? [
|
328623
328620
|
null,
|
328624
328621
|
{ plural: serviceType }
|
328625
328622
|
];
|
@@ -328796,7 +328793,7 @@ var import_which = __toESM(require_lib5(), 1);
|
|
328796
328793
|
async function executeFoundryCommand(command, args) {
|
328797
328794
|
try {
|
328798
328795
|
await import_which.default(command);
|
328799
|
-
} catch (
|
328796
|
+
} catch (error45) {
|
328800
328797
|
cancel2("Foundry is not installed. Instructions to install Foundry can be found here: https://book.getfoundry.sh/getting-started/installation");
|
328801
328798
|
}
|
328802
328799
|
return executeCommand(command, args);
|
@@ -328884,7 +328881,7 @@ function foundryBuildCommand() {
|
|
328884
328881
|
description: "Build the smart contracts with additional Forge options",
|
328885
328882
|
command: "scs foundry build --optimize --force"
|
328886
328883
|
}
|
328887
|
-
])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options,
|
328884
|
+
])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
|
328888
328885
|
intro("Building smart contracts using Foundry");
|
328889
328886
|
const forgeOptions = mapPassthroughOptions(options, { args: operands });
|
328890
328887
|
await executeFoundryCommand("forge", ["build", ...forgeOptions]);
|
@@ -328907,7 +328904,7 @@ function foundryFormatCommand() {
|
|
328907
328904
|
description: "Format the smart contracts with additional Forge options",
|
328908
328905
|
command: "scs foundry format --check"
|
328909
328906
|
}
|
328910
|
-
])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options,
|
328907
|
+
])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
|
328911
328908
|
intro("Formatting smart contracts using Foundry");
|
328912
328909
|
const forgeOptions = mapPassthroughOptions(options, { args: operands });
|
328913
328910
|
await executeFoundryCommand("forge", ["fmt", ...forgeOptions]);
|
@@ -328930,7 +328927,7 @@ function foundryNetworkCommand() {
|
|
328930
328927
|
description: "Start a development network using Foundry with a specific port",
|
328931
328928
|
command: "scs foundry network --port 3000"
|
328932
328929
|
}
|
328933
|
-
])).helpOption(false).option("-h, --help", "Get list of possible anvil options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options,
|
328930
|
+
])).helpOption(false).option("-h, --help", "Get list of possible anvil options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
|
328934
328931
|
const anvilOptions = mapPassthroughOptions(options, { args: operands });
|
328935
328932
|
await executeFoundryCommand("anvil", anvilOptions);
|
328936
328933
|
});
|
@@ -328951,7 +328948,7 @@ function foundryTestCommand() {
|
|
328951
328948
|
description: "Run a specific test function",
|
328952
328949
|
command: "scs foundry test --match-test testToken"
|
328953
328950
|
}
|
328954
|
-
])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options,
|
328951
|
+
])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
|
328955
328952
|
intro("Running smart contract tests using Foundry");
|
328956
328953
|
const forgeOptions = mapPassthroughOptions(options, { args: operands });
|
328957
328954
|
await executeFoundryCommand("forge", ["test", ...forgeOptions]);
|
@@ -328965,7 +328962,7 @@ var validateIfRequiredPackagesAreInstalled = async (packages, cwd2) => {
|
|
328965
328962
|
try {
|
328966
328963
|
const isInstalled = await isPackageInstalled(pkg, cwd2);
|
328967
328964
|
return { packageName: pkg, isInstalled };
|
328968
|
-
} catch (
|
328965
|
+
} catch (err) {
|
328969
328966
|
return { packageName: pkg, isInstalled: false };
|
328970
328967
|
}
|
328971
328968
|
}));
|
@@ -328990,7 +328987,7 @@ function hardhatBuildCommand() {
|
|
328990
328987
|
description: "Build the smart contracts using additional options to the Hardhat compile command",
|
328991
328988
|
command: "scs hardhat build --concurrency 2"
|
328992
328989
|
}
|
328993
|
-
])).helpOption(false).option("-h, --help", "Get list of possible hardhat compile options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options,
|
328990
|
+
])).helpOption(false).option("-h, --help", "Get list of possible hardhat compile options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
|
328994
328991
|
intro("Building smart contracts using Hardhat");
|
328995
328992
|
await validateIfRequiredPackagesAreInstalled(["hardhat"]);
|
328996
328993
|
const hardhatOptions = mapPassthroughOptions(options, { args: operands });
|
@@ -329061,7 +329058,7 @@ async function selectTargetNode({
|
|
329061
329058
|
settlemint
|
329062
329059
|
}) {
|
329063
329060
|
const nodeUniqueName = blockchainNodeUniqueName ?? (autoAccept ? env2.SETTLEMINT_BLOCKCHAIN_NODE : undefined);
|
329064
|
-
let node;
|
329061
|
+
let node = undefined;
|
329065
329062
|
if (!nodeUniqueName) {
|
329066
329063
|
if (!env2.SETTLEMINT_APPLICATION) {
|
329067
329064
|
return missingApplication();
|
@@ -329285,7 +329282,7 @@ function hardhatDeployRemoteCommand() {
|
|
329285
329282
|
} else {
|
329286
329283
|
note("Smart contract deployment was cancelled");
|
329287
329284
|
}
|
329288
|
-
} catch (
|
329285
|
+
} catch (error45) {
|
329289
329286
|
cancel2("The smart contract deployment was unsuccessful. Please check the error details above and try again. You may need to review your contract code or deployment configuration.");
|
329290
329287
|
}
|
329291
329288
|
});
|
@@ -329315,7 +329312,7 @@ function hardhatNetworkCommand() {
|
|
329315
329312
|
description: "Start a development network using Hardhat with a specific port",
|
329316
329313
|
command: "scs hardhat network --port 3000"
|
329317
329314
|
}
|
329318
|
-
])).helpOption(false).option("-h, --help", "Get list of possible hardhat node options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options,
|
329315
|
+
])).helpOption(false).option("-h, --help", "Get list of possible hardhat node options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
|
329319
329316
|
intro("Starting development network using Hardhat");
|
329320
329317
|
await validateIfRequiredPackagesAreInstalled(["hardhat"]);
|
329321
329318
|
const hardhatOptions = mapPassthroughOptions(options, { args: operands });
|
@@ -329424,7 +329421,7 @@ function hardhatTestCommand() {
|
|
329424
329421
|
description: "Run a specific test file",
|
329425
329422
|
command: "scs hardhat test test/token.test.ts"
|
329426
329423
|
}
|
329427
|
-
])).helpOption(false).option("-h, --help", "Get list of possible hardhat test options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options,
|
329424
|
+
])).helpOption(false).option("-h, --help", "Get list of possible hardhat test options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
|
329428
329425
|
intro("Running smart contract tests using Hardhat");
|
329429
329426
|
await validateIfRequiredPackagesAreInstalled(["hardhat"]);
|
329430
329427
|
const hardhatOptions = mapPassthroughOptions(options, { args: operands });
|
@@ -330092,4 +330089,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
330092
330089
|
// src/cli.ts
|
330093
330090
|
sdkCliCommand();
|
330094
330091
|
|
330095
|
-
//# debugId=
|
330092
|
+
//# debugId=027CA61C7CAC49A464756E2164756E21
|