@settlemint/sdk-cli 2.1.4-prcae01a18 → 2.1.4-prd8bc2893

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 CHANGED
@@ -245281,7 +245281,7 @@ function pruneCurrentEnv(currentEnv, env2) {
245281
245281
  var package_default = {
245282
245282
  name: "@settlemint/sdk-cli",
245283
245283
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
245284
- version: "2.1.4-prcae01a18",
245284
+ version: "2.1.4-prd8bc2893",
245285
245285
  type: "module",
245286
245286
  private: false,
245287
245287
  license: "FSL-1.1-MIT",
@@ -245330,8 +245330,8 @@ var package_default = {
245330
245330
  "@inquirer/input": "4.1.9",
245331
245331
  "@inquirer/password": "4.0.12",
245332
245332
  "@inquirer/select": "4.1.1",
245333
- "@settlemint/sdk-js": "2.1.4-prcae01a18",
245334
- "@settlemint/sdk-utils": "2.1.4-prcae01a18",
245333
+ "@settlemint/sdk-js": "2.1.4-prd8bc2893",
245334
+ "@settlemint/sdk-utils": "2.1.4-prd8bc2893",
245335
245335
  "@types/node": "22.14.1",
245336
245336
  "@types/semver": "7.7.0",
245337
245337
  "@types/which": "3.0.4",
@@ -252086,11 +252086,13 @@ var PACKAGE_NAME7 = "@settlemint/sdk-viem";
252086
252086
  async function codegenViem(env2) {
252087
252087
  const chainId = env2.SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID;
252088
252088
  if (!chainId) {
252089
+ note("[Codegen] No chain ID found, skipping Viem resources generation", "warn");
252089
252090
  return;
252090
252091
  }
252091
252092
  const loadBalancerRpcEndpoint = env2.SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT;
252092
252093
  const blockchainNodeRpcEndpoint = env2.SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT;
252093
252094
  if (!loadBalancerRpcEndpoint && !blockchainNodeRpcEndpoint) {
252095
+ note("[Codegen] No RPC endpoints found, skipping Viem resources generation", "warn");
252094
252096
  return;
252095
252097
  }
252096
252098
  note("Generating Viem resources");
@@ -252145,7 +252147,7 @@ export const hdWalletClient = getWalletClient({
252145
252147
 
252146
252148
  // src/commands/codegen.ts
252147
252149
  function codegenCommand() {
252148
- return new Command("codegen").option("--prod", "Connect to your production environment").option("--thegraph-subgraph-names <subgraph-names...>", "The name(s) of the TheGraph subgraph(s) to generate (skip if you want to generate all)").description("Generate GraphQL and REST types and queries").usage(createExamples([
252150
+ return new Command("codegen").option("--prod", "Connect to your production environment").option("--thegraph-subgraph-names <subgraph-names...>", "The name(s) of the TheGraph subgraph(s) to generate (skip if you want to generate all)").option("--generate-viem", "Generate Viem resources").description("Generate GraphQL and REST types and queries").usage(createExamples([
252149
252151
  {
252150
252152
  description: "Generate GraphQL types and queries for your dApp",
252151
252153
  command: "codegen"
@@ -252153,8 +252155,12 @@ function codegenCommand() {
252153
252155
  {
252154
252156
  description: "Generate GraphQL types and queries for specific TheGraph subgraphs",
252155
252157
  command: "codegen --thegraph-subgraph-names subgraph1 subgraph2"
252158
+ },
252159
+ {
252160
+ description: "Generate Viem resources",
252161
+ command: "codegen --generate-viem"
252156
252162
  }
252157
- ])).action(async ({ prod, thegraphSubgraphNames }) => {
252163
+ ])).action(async ({ prod, thegraphSubgraphNames, generateViem }) => {
252158
252164
  intro("Generating GraphQL types and queries for your dApp");
252159
252165
  const env2 = await loadEnv(true, !!prod);
252160
252166
  if (!Array.isArray(thegraphSubgraphNames)) {
@@ -252172,7 +252178,9 @@ function codegenCommand() {
252172
252178
  },
252173
252179
  stopMessage: "Tested GraphQL schemas"
252174
252180
  });
252175
- await codegenViem(env2);
252181
+ if (generateViem) {
252182
+ await codegenViem(env2);
252183
+ }
252176
252184
  if (hasura) {
252177
252185
  note("Generating Hasura resources");
252178
252186
  await codegenHasura(env2);
@@ -260405,4 +260413,4 @@ async function sdkCliCommand(argv = process.argv) {
260405
260413
  // src/cli.ts
260406
260414
  sdkCliCommand();
260407
260415
 
260408
- //# debugId=7792A2A5A427F5F664756E2164756E21
260416
+ //# debugId=4935DEA6AAC46B0764756E2164756E21