@settlemint/sdk-cli 2.3.13 → 2.3.14
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 +1 -1
- package/dist/cli.js +21 -17
- package/dist/cli.js.map +15 -15
- package/package.json +3 -3
package/README.md
CHANGED
@@ -249,7 +249,7 @@ settlemint scs subgraph deploy --accept-defaults <subgraph-name>
|
|
249
249
|
|
250
250
|
## API Reference
|
251
251
|
|
252
|
-
See the [documentation](https://github.com/settlemint/sdk/tree/v2.3.
|
252
|
+
See the [documentation](https://github.com/settlemint/sdk/tree/v2.3.14/sdk/cli/docs/settlemint.md) for available commands.
|
253
253
|
|
254
254
|
## Contributing
|
255
255
|
|
package/dist/cli.js
CHANGED
@@ -263764,7 +263764,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
263764
263764
|
var package_default = {
|
263765
263765
|
name: "@settlemint/sdk-cli",
|
263766
263766
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
263767
|
-
version: "2.3.
|
263767
|
+
version: "2.3.14",
|
263768
263768
|
type: "module",
|
263769
263769
|
private: false,
|
263770
263770
|
license: "FSL-1.1-MIT",
|
@@ -263813,8 +263813,8 @@ var package_default = {
|
|
263813
263813
|
"@inquirer/input": "4.1.12",
|
263814
263814
|
"@inquirer/password": "4.0.15",
|
263815
263815
|
"@inquirer/select": "4.2.3",
|
263816
|
-
"@settlemint/sdk-js": "2.3.
|
263817
|
-
"@settlemint/sdk-utils": "2.3.
|
263816
|
+
"@settlemint/sdk-js": "2.3.14",
|
263817
|
+
"@settlemint/sdk-utils": "2.3.14",
|
263818
263818
|
"@types/node": "24.0.0",
|
263819
263819
|
"@types/semver": "7.7.0",
|
263820
263820
|
"@types/which": "3.0.4",
|
@@ -289281,11 +289281,11 @@ function getPincodeVerificationChallengeResponse({ verificationChallenge, pincod
|
|
289281
289281
|
}
|
289282
289282
|
function createSettleMintClient(options) {
|
289283
289283
|
ensureServer();
|
289284
|
-
if (options.instance === STANDALONE_INSTANCE2)
|
289284
|
+
if (options.instance === STANDALONE_INSTANCE2 || options.instance === LOCAL_INSTANCE2)
|
289285
289285
|
if (options.anonymous)
|
289286
289286
|
options.instance = "https://console.settlemint.com";
|
289287
289287
|
else
|
289288
|
-
throw new Error("Standalone instances cannot connect to the SettleMint platform");
|
289288
|
+
throw new Error("Standalone and local instances cannot connect to the SettleMint platform");
|
289289
289289
|
const validatedOptions = options.anonymous ? validate2(exports_external.object({
|
289290
289290
|
...ClientOptionsSchema.shape,
|
289291
289291
|
accessToken: exports_external.literal("")
|
@@ -301366,7 +301366,7 @@ async function validateSdkVersionFromCommand(command, interval = 5 * 60 * 1000)
|
|
301366
301366
|
}
|
301367
301367
|
await setLastSdkVersionCheck(new Date(now).toJSON());
|
301368
301368
|
const instance = await getInstanceFromCommand(command);
|
301369
|
-
if (instance !== STANDALONE_INSTANCE2) {
|
301369
|
+
if (instance !== STANDALONE_INSTANCE2 && instance !== LOCAL_INSTANCE2) {
|
301370
301370
|
await validateSdkVersion(instance);
|
301371
301371
|
}
|
301372
301372
|
}
|
@@ -301498,7 +301498,7 @@ var PACKAGE_NAME = "@settlemint/sdk-hasura";
|
|
301498
301498
|
async function codegenHasura(env2) {
|
301499
301499
|
const gqlEndpoint = env2.SETTLEMINT_HASURA_ENDPOINT;
|
301500
301500
|
const instance = env2.SETTLEMINT_INSTANCE;
|
301501
|
-
const accessToken = instance === STANDALONE_INSTANCE2 ? undefined : await getApplicationOrPersonalAccessToken({
|
301501
|
+
const accessToken = instance === STANDALONE_INSTANCE2 || instance === LOCAL_INSTANCE2 ? undefined : await getApplicationOrPersonalAccessToken({
|
301502
301502
|
env: env2,
|
301503
301503
|
instance: env2.SETTLEMINT_INSTANCE,
|
301504
301504
|
prefer: "application"
|
@@ -301570,7 +301570,7 @@ async function codegenPortal(env2) {
|
|
301570
301570
|
return;
|
301571
301571
|
}
|
301572
301572
|
const instance = env2.SETTLEMINT_INSTANCE;
|
301573
|
-
const accessToken = instance === STANDALONE_INSTANCE2 ? undefined : await getApplicationOrPersonalAccessToken({
|
301573
|
+
const accessToken = instance === STANDALONE_INSTANCE2 || instance === LOCAL_INSTANCE2 ? undefined : await getApplicationOrPersonalAccessToken({
|
301574
301574
|
env: env2,
|
301575
301575
|
instance: env2.SETTLEMINT_INSTANCE,
|
301576
301576
|
prefer: "application"
|
@@ -301735,7 +301735,7 @@ async function codegenTheGraph(env2, subgraphNames) {
|
|
301735
301735
|
return;
|
301736
301736
|
}
|
301737
301737
|
const instance = env2.SETTLEMINT_INSTANCE;
|
301738
|
-
const accessToken = instance === STANDALONE_INSTANCE2 ? undefined : await getApplicationOrPersonalAccessToken({
|
301738
|
+
const accessToken = instance === STANDALONE_INSTANCE2 || instance === LOCAL_INSTANCE2 ? undefined : await getApplicationOrPersonalAccessToken({
|
301739
301739
|
env: env2,
|
301740
301740
|
instance: env2.SETTLEMINT_INSTANCE,
|
301741
301741
|
prefer: "application"
|
@@ -302765,7 +302765,7 @@ async function codegenTsconfig(env2, thegraphSubgraphNames) {
|
|
302765
302765
|
};
|
302766
302766
|
}
|
302767
302767
|
let accessToken;
|
302768
|
-
if (env2.SETTLEMINT_INSTANCE !== STANDALONE_INSTANCE2) {
|
302768
|
+
if (env2.SETTLEMINT_INSTANCE !== STANDALONE_INSTANCE2 && env2.SETTLEMINT_INSTANCE !== LOCAL_INSTANCE2) {
|
302769
302769
|
accessToken = await getApplicationOrPersonalAccessToken({
|
302770
302770
|
env: env2,
|
302771
302771
|
instance: env2.SETTLEMINT_INSTANCE,
|
@@ -303217,7 +303217,7 @@ async function codegenBlockscout(env2) {
|
|
303217
303217
|
return;
|
303218
303218
|
}
|
303219
303219
|
const instance = env2.SETTLEMINT_INSTANCE;
|
303220
|
-
const accessToken = instance === STANDALONE_INSTANCE2 ? undefined : await getApplicationOrPersonalAccessToken({
|
303220
|
+
const accessToken = instance === STANDALONE_INSTANCE2 || instance === LOCAL_INSTANCE2 ? undefined : await getApplicationOrPersonalAccessToken({
|
303221
303221
|
env: env2,
|
303222
303222
|
instance: env2.SETTLEMINT_INSTANCE,
|
303223
303223
|
prefer: "application"
|
@@ -320925,6 +320925,10 @@ async function instancePrompt({
|
|
320925
320925
|
{
|
320926
320926
|
name: "Standalone (services run independently of SettleMint platform)",
|
320927
320927
|
value: STANDALONE_INSTANCE2
|
320928
|
+
},
|
320929
|
+
{
|
320930
|
+
name: "Local (for local development mode)",
|
320931
|
+
value: LOCAL_INSTANCE2
|
320928
320932
|
}
|
320929
320933
|
],
|
320930
320934
|
default: sanitizeInstanceUrl(knownInstances.length > 0 ? defaultPromptInstance : STANDALONE_INSTANCE2)
|
@@ -329109,7 +329113,7 @@ function hardhatDeployRemoteCommand() {
|
|
329109
329113
|
env: env2,
|
329110
329114
|
accept: true
|
329111
329115
|
});
|
329112
|
-
if (instance === STANDALONE_INSTANCE2) {
|
329116
|
+
if (instance === STANDALONE_INSTANCE2 || instance === LOCAL_INSTANCE2) {
|
329113
329117
|
envHardhatConfig.BTP_RPC_URL = env2.SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT ?? "";
|
329114
329118
|
} else {
|
329115
329119
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
@@ -329250,7 +329254,7 @@ function hardhatScriptRemoteCommand() {
|
|
329250
329254
|
env: env2,
|
329251
329255
|
accept: true
|
329252
329256
|
});
|
329253
|
-
if (instance === STANDALONE_INSTANCE2) {
|
329257
|
+
if (instance === STANDALONE_INSTANCE2 || instance === LOCAL_INSTANCE2) {
|
329254
329258
|
envHardhatConfig.BTP_RPC_URL = env2.SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT ?? "";
|
329255
329259
|
} else {
|
329256
329260
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
@@ -329438,7 +329442,7 @@ async function getTheGraphNetwork({
|
|
329438
329442
|
instance,
|
329439
329443
|
accessToken = ""
|
329440
329444
|
}) {
|
329441
|
-
if (instance === STANDALONE_INSTANCE2) {
|
329445
|
+
if (instance === STANDALONE_INSTANCE2 || instance === LOCAL_INSTANCE2) {
|
329442
329446
|
return SETTLEMINT_NETWORK;
|
329443
329447
|
}
|
329444
329448
|
const isFixedNetwork = (theGraphMiddleware?.entityVersion ?? 4) >= 4;
|
@@ -329523,7 +329527,7 @@ function subgraphDeployCommand() {
|
|
329523
329527
|
});
|
329524
329528
|
let theGraphMiddleware;
|
329525
329529
|
let accessToken;
|
329526
|
-
if (instance !== STANDALONE_INSTANCE2) {
|
329530
|
+
if (instance !== STANDALONE_INSTANCE2 && instance !== LOCAL_INSTANCE2) {
|
329527
329531
|
accessToken = await getApplicationOrPersonalAccessToken({
|
329528
329532
|
env: env2,
|
329529
329533
|
instance,
|
@@ -329660,7 +329664,7 @@ function subgraphRemoveCommand() {
|
|
329660
329664
|
});
|
329661
329665
|
let theGraphMiddleware;
|
329662
329666
|
let accessToken;
|
329663
|
-
if (instance !== STANDALONE_INSTANCE2) {
|
329667
|
+
if (instance !== STANDALONE_INSTANCE2 && instance !== LOCAL_INSTANCE2) {
|
329664
329668
|
accessToken = await getApplicationOrPersonalAccessToken({
|
329665
329669
|
env: env2,
|
329666
329670
|
instance,
|
@@ -329871,4 +329875,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
329871
329875
|
// src/cli.ts
|
329872
329876
|
sdkCliCommand();
|
329873
329877
|
|
329874
|
-
//# debugId=
|
329878
|
+
//# debugId=9D31B18F9BC4008664756E2164756E21
|