@settlemint/sdk-cli 2.3.4 → 2.3.5-maine4ff9147

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 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.4/sdk/cli/docs/settlemint.md) for available commands.
252
+ See the [documentation](https://github.com/settlemint/sdk/tree/v2.3.5/sdk/cli/docs/settlemint.md) for available commands.
253
253
 
254
254
  ## Contributing
255
255
 
package/dist/cli.js CHANGED
@@ -263120,7 +263120,7 @@ function pruneCurrentEnv(currentEnv, env2) {
263120
263120
  var package_default = {
263121
263121
  name: "@settlemint/sdk-cli",
263122
263122
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
263123
- version: "2.3.4",
263123
+ version: "2.3.5-maine4ff9147",
263124
263124
  type: "module",
263125
263125
  private: false,
263126
263126
  license: "FSL-1.1-MIT",
@@ -263169,9 +263169,9 @@ var package_default = {
263169
263169
  "@inquirer/input": "4.1.12",
263170
263170
  "@inquirer/password": "4.0.15",
263171
263171
  "@inquirer/select": "4.2.3",
263172
- "@settlemint/sdk-js": "2.3.4",
263173
- "@settlemint/sdk-utils": "2.3.4",
263174
- "@types/node": "22.15.21",
263172
+ "@settlemint/sdk-js": "2.3.5-maine4ff9147",
263173
+ "@settlemint/sdk-utils": "2.3.5-maine4ff9147",
263174
+ "@types/node": "22.15.23",
263175
263175
  "@types/semver": "7.7.0",
263176
263176
  "@types/which": "3.0.4",
263177
263177
  "get-tsconfig": "4.10.1",
@@ -263185,7 +263185,7 @@ var package_default = {
263185
263185
  yoctocolors: "2.1.1"
263186
263186
  },
263187
263187
  peerDependencies: {
263188
- hardhat: "2.24.0"
263188
+ hardhat: "2.24.1"
263189
263189
  },
263190
263190
  peerDependenciesMeta: {
263191
263191
  hardhat: {
@@ -299684,7 +299684,7 @@ export const { client: hasuraClient, graphql: hasuraGraphql } = createHasuraClie
299684
299684
  };
299685
299685
  }>({
299686
299686
  instance: process.env.SETTLEMINT_HASURA_ENDPOINT!,
299687
- accessToken: process.env.SETTLEMINT_ACCESS_TOKEN ?? "",
299687
+ accessToken: process.env.SETTLEMINT_ACCESS_TOKEN,
299688
299688
  adminSecret: process.env.SETTLEMINT_HASURA_ADMIN_SECRET!,
299689
299689
  }, {
299690
299690
  fetch: requestLogger(logger, "hasura", fetch) as typeof fetch,
@@ -299745,14 +299745,14 @@ export const { client: portalClient, graphql: portalGraphql } = createPortalClie
299745
299745
  };
299746
299746
  }>({
299747
299747
  instance: process.env.SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT!,
299748
- accessToken: process.env.SETTLEMINT_ACCESS_TOKEN ?? "",
299748
+ accessToken: process.env.SETTLEMINT_ACCESS_TOKEN,
299749
299749
  }, {
299750
299750
  fetch: requestLogger(logger, "portal", fetch) as typeof fetch,
299751
299751
  });
299752
299752
 
299753
299753
  export const getPortalWebsocketClient = getWebsocketClient({
299754
299754
  portalGraphqlEndpoint: process.env.SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT!,
299755
- accessToken: process.env.SETTLEMINT_ACCESS_TOKEN ?? "",
299755
+ accessToken: process.env.SETTLEMINT_ACCESS_TOKEN,
299756
299756
  });
299757
299757
  `;
299758
299758
  await writeTemplate(template, "/lib/settlemint", "portal.ts");
@@ -299935,7 +299935,7 @@ export const { client: ${graphqlClientVariable}, graphql: ${graphqlVariable} } =
299935
299935
  };
299936
299936
  }>({
299937
299937
  instances: JSON.parse(process.env.SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS || '[]'),
299938
- accessToken: process.env.SETTLEMINT_ACCESS_TOKEN ?? "",
299938
+ accessToken: process.env.SETTLEMINT_ACCESS_TOKEN,
299939
299939
  subgraphName: "${name3}",
299940
299940
  cache: "force-cache",
299941
299941
  }, {
@@ -301524,7 +301524,7 @@ export const { client: blockscoutClient, graphql: blockscoutGraphql } = createBl
301524
301524
  };
301525
301525
  }>({
301526
301526
  instance: process.env.SETTLEMINT_BLOCKSCOUT_ENDPOINT!,
301527
- accessToken: process.env.SETTLEMINT_ACCESS_TOKEN ?? "",
301527
+ accessToken: process.env.SETTLEMINT_ACCESS_TOKEN,
301528
301528
  }, {
301529
301529
  fetch: requestLogger(logger, "blockscout", fetch) as typeof fetch,
301530
301530
  });
@@ -301551,7 +301551,7 @@ async function codegenIpfs(env2) {
301551
301551
 
301552
301552
  export const { client } = createServerIpfsClient({
301553
301553
  instance: process.env.SETTLEMINT_IPFS_API_ENDPOINT!,
301554
- accessToken: process.env.SETTLEMINT_ACCESS_TOKEN ?? "",
301554
+ accessToken: process.env.SETTLEMINT_ACCESS_TOKEN,
301555
301555
  });`;
301556
301556
  await writeTemplate(clientTemplate, "/lib/settlemint", "ipfs.ts");
301557
301557
  const projectDir = await projectRoot3();
@@ -323469,7 +323469,7 @@ function loginCommand() {
323469
323469
  const timeoutPromise = new Promise((_6, reject) => {
323470
323470
  timeout = setTimeout(() => {
323471
323471
  reject(new Error("Timeout reading from STDIN after 30 seconds"));
323472
- }, 30000);
323472
+ }, 1000);
323473
323473
  });
323474
323474
  try {
323475
323475
  const readPromise = (async () => {
@@ -326708,7 +326708,7 @@ function hardhatScriptLocalCommand() {
326708
326708
  return new Command("local").description("Run a Hardhat script on a local development network.").requiredOption("-s, --script <script>", 'The script to run with Hardhat , e.g. "scripts/deploy.ts"').option("--no-compile", "Don't compile before running this task").usage(createExamples([
326709
326709
  {
326710
326710
  description: "Run a Hardhat script on a local network",
326711
- command: "hardhat script local --script scripts/deploy.ts"
326711
+ command: "scs hardhat script local --script scripts/deploy.ts"
326712
326712
  }
326713
326713
  ])).action(async ({ script, compile }) => {
326714
326714
  intro("Running Hardhat script on local network");
@@ -326732,15 +326732,15 @@ function hardhatScriptRemoteCommand() {
326732
326732
  const cmd2 = new Command("remote").description("Run a Hardhat script on a remote network on the platform.").requiredOption("-s, --script <script>", 'The script to run with Hardhat , e.g. "scripts/deploy.ts"').option("--blockchain-node <blockchainNode>", "Blockchain Node unique name (optional, defaults to the blockchain node in the environment)").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").option("--no-compile", "Don't compile before running this task").usage(createExamples([
326733
326733
  {
326734
326734
  description: "Run a Hardhat script on a remote network",
326735
- command: "hardhat script remote --script scripts/deploy.ts"
326735
+ command: "scs hardhat script remote --script scripts/deploy.ts"
326736
326736
  },
326737
326737
  {
326738
326738
  description: "Run a Hardhat script on a remote network with a specific blockchain node",
326739
- command: "hardhat script remote --script scripts/deploy.ts --blockchain-node my-blockchain-node"
326739
+ command: "scs hardhat script remote --script scripts/deploy.ts --blockchain-node my-blockchain-node"
326740
326740
  },
326741
326741
  {
326742
326742
  description: "Run a Hardhat script on a remote network without compiling",
326743
- command: "hardhat script remote --script scripts/deploy.ts --no-compile"
326743
+ command: "scs hardhat script remote --script scripts/deploy.ts --no-compile"
326744
326744
  }
326745
326745
  ]));
326746
326746
  cmd2.action(async ({ script, prod, blockchainNode: blockchainNodeUniqueName, acceptDefaults, compile }) => {
@@ -326968,7 +326968,7 @@ function subgraphBuildCommand() {
326968
326968
  return new Command("build").description("Build the subgraph").usage(createExamples([
326969
326969
  {
326970
326970
  description: "Build the subgraph",
326971
- command: "subgraph build"
326971
+ command: "scs subgraph build"
326972
326972
  }
326973
326973
  ])).action(async () => {
326974
326974
  intro("Building subgraph");
@@ -326989,7 +326989,7 @@ function subgraphCodegenCommand() {
326989
326989
  return new Command("codegen").description("Codegen the subgraph types").usage(createExamples([
326990
326990
  {
326991
326991
  description: "Generate subgraph types",
326992
- command: "subgraph codegen"
326992
+ command: "scs subgraph codegen"
326993
326993
  }
326994
326994
  ])).action(async () => {
326995
326995
  intro("Generating subgraph types");
@@ -327374,4 +327374,4 @@ async function sdkCliCommand(argv = process.argv) {
327374
327374
  // src/cli.ts
327375
327375
  sdkCliCommand();
327376
327376
 
327377
- //# debugId=F7C89561A4F0C56E64756E2164756E21
327377
+ //# debugId=7EB44DF7ED71E01364756E2164756E21