@settlemint/sdk-cli 0.6.40-main0da4a9d → 0.6.41-main7d678a5

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.
Files changed (3) hide show
  1. package/dist/cli.js +202 -301
  2. package/dist/cli.js.map +17 -19
  3. package/package.json +3 -3
package/dist/cli.js CHANGED
@@ -268061,9 +268061,8 @@ var DotEnvSchema = z4.object({
268061
268061
  SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: UrlSchema.optional(),
268062
268062
  SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema.optional(),
268063
268063
  SETTLEMINT_NEW_PROJECT_NAME: z4.string().optional(),
268064
- SETTLEMINT_SMART_CONTRACT_SET: IdSchema.optional(),
268065
- SETTLEMINT_SMART_CONTRACT_SET_ADDRESS: z4.string().optional(),
268066
- SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID: z4.string().optional()
268064
+ SETTLEMINT_SMART_CONTRACT_ADDRESS: z4.string().optional(),
268065
+ SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z4.string().optional()
268067
268066
  });
268068
268067
  var DotEnvSchemaPartial = DotEnvSchema.partial();
268069
268068
  function validate(schema, value4) {
@@ -268530,9 +268529,8 @@ async function writeEnvSpinner(prod, env2) {
268530
268529
  SETTLEMINT_BLOCKSCOUT: env2.SETTLEMINT_BLOCKSCOUT,
268531
268530
  SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT,
268532
268531
  SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT,
268533
- SETTLEMINT_SMART_CONTRACT_SET: env2.SETTLEMINT_SMART_CONTRACT_SET,
268534
- SETTLEMINT_SMART_CONTRACT_SET_ADDRESS: env2.SETTLEMINT_SMART_CONTRACT_SET_ADDRESS,
268535
- SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID: env2.SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID
268532
+ SETTLEMINT_SMART_CONTRACT_ADDRESS: env2.SETTLEMINT_SMART_CONTRACT_ADDRESS,
268533
+ SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: env2.SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID
268536
268534
  }, false);
268537
268535
  await writeEnv(prod, {
268538
268536
  SETTLEMINT_ACCESS_TOKEN: env2.SETTLEMINT_ACCESS_TOKEN,
@@ -268747,9 +268745,8 @@ var DotEnvSchema2 = z4.object({
268747
268745
  SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: UrlSchema2.optional(),
268748
268746
  SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema2.optional(),
268749
268747
  SETTLEMINT_NEW_PROJECT_NAME: z4.string().optional(),
268750
- SETTLEMINT_SMART_CONTRACT_SET: IdSchema2.optional(),
268751
- SETTLEMINT_SMART_CONTRACT_SET_ADDRESS: z4.string().optional(),
268752
- SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID: z4.string().optional()
268748
+ SETTLEMINT_SMART_CONTRACT_ADDRESS: z4.string().optional(),
268749
+ SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z4.string().optional()
268753
268750
  });
268754
268751
  var DotEnvSchemaPartial2 = DotEnvSchema2.partial();
268755
268752
  function validate2(schema, value4) {
@@ -272337,7 +272334,7 @@ function connectCommand() {
272337
272334
  var package_default = {
272338
272335
  name: "@settlemint/sdk-cli",
272339
272336
  description: "SettleMint SDK, integrate SettleMint into your application with ease.",
272340
- version: "0.6.40-main0da4a9d",
272337
+ version: "0.6.41-main7d678a5",
272341
272338
  type: "module",
272342
272339
  private: false,
272343
272340
  license: "FSL-1.1-MIT",
@@ -272387,8 +272384,8 @@ var package_default = {
272387
272384
  "@inquirer/input": "4.1.0",
272388
272385
  "@inquirer/password": "4.0.3",
272389
272386
  "@inquirer/select": "4.0.3",
272390
- "@settlemint/sdk-js": "0.6.40-main0da4a9d",
272391
- "@settlemint/sdk-utils": "0.6.40-main0da4a9d",
272387
+ "@settlemint/sdk-js": "0.6.41-main7d678a5",
272388
+ "@settlemint/sdk-utils": "0.6.41-main7d678a5",
272392
272389
  "get-tsconfig": "4.8.1",
272393
272390
  giget: "1.2.3"
272394
272391
  },
@@ -273498,6 +273495,7 @@ function capitalizeFirstLetter(val) {
273498
273495
  }
273499
273496
  async function executeCommand2(command, args, options) {
273500
273497
  const child = spawn2(command, args, { env: { ...process.env, ...options?.env } });
273498
+ process.stdin.pipe(child.stdin);
273501
273499
  return new Promise((resolve22, reject) => {
273502
273500
  child.stdout.on("data", (data) => {
273503
273501
  console.log(data.toString());
@@ -273508,6 +273506,7 @@ async function executeCommand2(command, args, options) {
273508
273506
  child.on("error", (err) => reject(err));
273509
273507
  child.on("close", (code2) => {
273510
273508
  if (code2 === 0 || code2 === null || code2 === 143) {
273509
+ process.stdin.unpipe(child.stdin);
273511
273510
  resolve22();
273512
273511
  return;
273513
273512
  }
@@ -273566,9 +273565,8 @@ var DotEnvSchema3 = z4.object({
273566
273565
  SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: UrlSchema3.optional(),
273567
273566
  SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema3.optional(),
273568
273567
  SETTLEMINT_NEW_PROJECT_NAME: z4.string().optional(),
273569
- SETTLEMINT_SMART_CONTRACT_SET: IdSchema3.optional(),
273570
- SETTLEMINT_SMART_CONTRACT_SET_ADDRESS: z4.string().optional(),
273571
- SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID: z4.string().optional()
273568
+ SETTLEMINT_SMART_CONTRACT_ADDRESS: z4.string().optional(),
273569
+ SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z4.string().optional()
273572
273570
  });
273573
273571
  var DotEnvSchemaPartial3 = DotEnvSchema3.partial();
273574
273572
  function validate3(schema, value4) {
@@ -274217,27 +274215,15 @@ function graphMiddlewareCreateCommand() {
274217
274215
  type: "middleware",
274218
274216
  alias: "gr",
274219
274217
  execute: (cmd2, baseAction) => {
274220
- addClusterServiceArgs(cmd2).option("--application-id <applicationId>", "Application ID").option("--smart-contract-set-id <smartContractSetId>", "Smart Contract Set ID").option("--storage-id <storageId>", "Storage ID (IFPS)").option("--blockchain-node-id <blockchainNodeId>", "Blockchain Node ID").action(async (name2, {
274221
- applicationId,
274222
- smartContractSetId,
274223
- storageId,
274224
- blockchainNodeId,
274225
- provider,
274226
- region,
274227
- size,
274228
- type: type4,
274229
- ...defaultArgs
274230
- }) => {
274218
+ addClusterServiceArgs(cmd2).option("--application-id <applicationId>", "Application ID").option("--storage-id <storageId>", "Storage ID (IFPS)").option("--blockchain-node-id <blockchainNodeId>", "Blockchain Node ID").action(async (name2, { applicationId, storageId, blockchainNodeId, provider, region, size, type: type4, ...defaultArgs }) => {
274231
274219
  return baseAction(defaultArgs, async (settlemint, env2) => {
274232
274220
  const application = applicationId ?? env2.SETTLEMINT_APPLICATION;
274233
- const smartContractSet = smartContractSetId ?? env2.SETTLEMINT_SMART_CONTRACT_SET;
274234
274221
  const blockchainNode = blockchainNodeId ?? env2.SETTLEMINT_BLOCKCHAIN_NODE;
274235
274222
  const storage = storageId ?? env2.SETTLEMINT_IPFS;
274236
274223
  const result = await settlemint.middleware.create({
274237
274224
  name: name2,
274238
274225
  applicationId: application,
274239
274226
  interface: "HA_GRAPH",
274240
- smartContractSetId: smartContractSet,
274241
274227
  storageId: storage,
274242
274228
  blockchainNodeId: blockchainNode,
274243
274229
  provider,
@@ -274266,7 +274252,7 @@ function graphMiddlewareCreateCommand() {
274266
274252
  },
274267
274253
  {
274268
274254
  description: "Create a graph middleware in a different application",
274269
- command: "platform create middleware graph my-graph --application-id 123456789 --smart-contract-set-id scs-123 --blockchain-node-id node-123 --storage-id storage-123"
274255
+ command: "platform create middleware graph my-graph --application-id 123456789 --blockchain-node-id node-123 --storage-id storage-123"
274270
274256
  }
274271
274257
  ]
274272
274258
  });
@@ -274349,7 +274335,7 @@ function smartContractPortalMiddlewareCreateCommand() {
274349
274335
  },
274350
274336
  {
274351
274337
  description: "Create a smart contract portal middleware in a different application",
274352
- command: "platform create middleware smart-contract-portal my-portal --application-id 123456789 --smart-contract-set-id scs-123 --blockchain-node-id node-123"
274338
+ command: "platform create middleware smart-contract-portal my-portal --application-id 123456789 --blockchain-node-id node-123"
274353
274339
  }
274354
274340
  ]
274355
274341
  });
@@ -274457,223 +274443,6 @@ function privateKeyCreateCommand() {
274457
274443
  return new Command2("private-key").alias("pk").description("Create a private key in the SettleMint platform").addCommand(privateKeyHdCreateCommand()).addCommand(privateKeyHsmCreateCommand());
274458
274444
  }
274459
274445
 
274460
- // src/constants/smart-contract-sets.ts
274461
- var SMART_CONTRACT_SET_DETAILS = [
274462
- {
274463
- id: "solidity-empty",
274464
- name: "Empty",
274465
- image: {
274466
- registry: "ghcr.io",
274467
- repository: "settlemint/solidity-empty",
274468
- tag: "7.7.7"
274469
- }
274470
- },
274471
- {
274472
- id: "solidity-token-erc20",
274473
- name: "ERC20 token",
274474
- image: {
274475
- registry: "ghcr.io",
274476
- repository: "settlemint/solidity-token-erc20",
274477
- tag: "7.7.7"
274478
- }
274479
- },
274480
- {
274481
- id: "solidity-token-erc1155",
274482
- name: "ERC1155 token",
274483
- image: {
274484
- registry: "ghcr.io",
274485
- repository: "settlemint/solidity-token-erc1155",
274486
- tag: "7.7.7"
274487
- }
274488
- },
274489
- {
274490
- id: "solidity-token-erc20-metatx",
274491
- name: "ERC20 token with MetaTx",
274492
- image: {
274493
- registry: "ghcr.io",
274494
- repository: "settlemint/solidity-token-erc20-metatx",
274495
- tag: "7.7.7"
274496
- }
274497
- },
274498
- {
274499
- id: "solidity-supplychain",
274500
- name: "Supplychain",
274501
- image: {
274502
- registry: "ghcr.io",
274503
- repository: "settlemint/solidity-supplychain",
274504
- tag: "7.7.7"
274505
- }
274506
- },
274507
- {
274508
- id: "chaincode-ts-empty",
274509
- name: "Empty typescript",
274510
- image: {
274511
- registry: "ghcr.io",
274512
- repository: "settlemint/chaincode-typescript-empty",
274513
- tag: "7.0.13"
274514
- }
274515
- },
274516
- {
274517
- id: "chaincode-ts-empty-pdc",
274518
- name: "Empty typescript with PDC",
274519
- image: {
274520
- registry: "ghcr.io",
274521
- repository: "settlemint/chaincode-typescript-empty-pdc",
274522
- tag: "7.0.1"
274523
- }
274524
- },
274525
- {
274526
- id: "chaincode-go-empty",
274527
- name: "Empty go",
274528
- image: {
274529
- registry: "ghcr.io",
274530
- repository: "settlemint/chaincode-go-empty",
274531
- tag: "7.0.5"
274532
- }
274533
- },
274534
- {
274535
- id: "solidity-statemachine",
274536
- name: "State Machine",
274537
- image: {
274538
- registry: "ghcr.io",
274539
- repository: "settlemint/solidity-statemachine",
274540
- tag: "7.7.7"
274541
- }
274542
- },
274543
- {
274544
- id: "solidity-token-erc20-crowdsale",
274545
- name: "ERC20 token with crowdsale mechanism",
274546
- image: {
274547
- registry: "ghcr.io",
274548
- repository: "settlemint/solidity-token-erc20-crowdsale",
274549
- tag: "7.7.7"
274550
- }
274551
- },
274552
- {
274553
- id: "solidity-token-erc721",
274554
- name: "ERC721",
274555
- image: {
274556
- registry: "ghcr.io",
274557
- repository: "settlemint/solidity-token-erc721",
274558
- tag: "7.7.7"
274559
- }
274560
- },
274561
- {
274562
- id: "solidity-token-erc721a",
274563
- name: "ERC721a",
274564
- image: {
274565
- registry: "ghcr.io",
274566
- repository: "settlemint/solidity-token-erc721a",
274567
- tag: "7.7.7"
274568
- }
274569
- },
274570
- {
274571
- id: "solidity-token-erc721-generative-art",
274572
- name: "ERC721 Generative Art",
274573
- image: {
274574
- registry: "ghcr.io",
274575
- repository: "settlemint/solidity-token-erc721-generative-art",
274576
- tag: "7.7.7"
274577
- }
274578
- },
274579
- {
274580
- id: "solidity-token-soulbound",
274581
- name: "Soulbound Token",
274582
- image: {
274583
- registry: "ghcr.io",
274584
- repository: "settlemint/solidity-token-soulbound",
274585
- tag: "7.7.7"
274586
- }
274587
- },
274588
- {
274589
- id: "solidity-diamond-bond",
274590
- name: "Diamond bond",
274591
- image: {
274592
- registry: "ghcr.io",
274593
- repository: "settlemint/solidity-diamond-bond",
274594
- tag: "7.7.7"
274595
- }
274596
- },
274597
- {
274598
- id: "solidity-attestation-service",
274599
- name: "Attestation Service",
274600
- image: {
274601
- registry: "ghcr.io",
274602
- repository: "settlemint/solidity-attestation-service",
274603
- tag: "7.7.7"
274604
- }
274605
- },
274606
- {
274607
- id: "solidity-zeto",
274608
- name: "Zeto",
274609
- featureflagged: true,
274610
- image: {
274611
- registry: "ghcr.io",
274612
- repository: "settlemint/solidity-zeto",
274613
- tag: "7.7.7"
274614
- }
274615
- },
274616
- {
274617
- id: "solidity-starterkit",
274618
- name: "Starterkit",
274619
- featureflagged: true,
274620
- image: {
274621
- registry: "ghcr.io",
274622
- repository: "settlemint/solidity-predeployed",
274623
- tag: "7.7.7"
274624
- }
274625
- }
274626
- ];
274627
- var SMART_CONTRACT_SETS = SMART_CONTRACT_SET_DETAILS.map((set) => set.id);
274628
-
274629
- // src/commands/platform/smart-contract-set/create.ts
274630
- function smartContractSetCreateCommand() {
274631
- return getCreateCommand({
274632
- name: "smart-contract-set",
274633
- type: "smart contract set",
274634
- alias: "scs",
274635
- execute: (cmd2, baseAction) => {
274636
- addClusterServiceArgs(cmd2).option("--application-id <applicationId>", "Application ID").option("--blockchain-node-id <blockchainNodeId>", "Blockchain Node ID").addOption(new Option("--use-case <useCase>", "Use case for the smart contract set").choices(SMART_CONTRACT_SETS).makeOptionMandatory()).option("--user-id <userId>", "User ID").action(async (name2, { applicationId, blockchainNodeId, provider, region, size, type: type4, useCase, userId, ...defaultArgs }) => {
274637
- return baseAction(defaultArgs, async (settlemint, env2) => {
274638
- const application = applicationId ?? env2.SETTLEMINT_APPLICATION;
274639
- const blockchainNode = blockchainNodeId ?? env2.SETTLEMINT_BLOCKCHAIN_NODE;
274640
- const result = await settlemint.smartContractSet.create({
274641
- name: name2,
274642
- applicationId: application,
274643
- blockchainNodeId: blockchainNode,
274644
- provider,
274645
- region,
274646
- size,
274647
- type: type4,
274648
- useCase,
274649
- userId
274650
- });
274651
- return {
274652
- result,
274653
- mapDefaultEnv: () => {
274654
- return {
274655
- SETTLEMINT_APPLICATION: application,
274656
- SETTLEMINT_BLOCKCHAIN_NODE: blockchainNode,
274657
- SETTLEMINT_SMART_CONTRACT_SET: result.id
274658
- };
274659
- }
274660
- };
274661
- });
274662
- });
274663
- },
274664
- examples: [
274665
- {
274666
- description: "Create a smart contract set and save as default",
274667
- command: "platform create smart-contract-set my-contracts --use-case nft --accept-defaults -d"
274668
- },
274669
- {
274670
- description: "Create a smart contract set in a different application",
274671
- command: "platform create smart-contract-set my-contracts --application-id 123456789 --blockchain-node-id node-123 --use-case nft --user-id user-123"
274672
- }
274673
- ]
274674
- });
274675
- }
274676
-
274677
274446
  // src/commands/platform/storage/ipfs/create.ts
274678
274447
  function ipfsStorageCreateCommand() {
274679
274448
  return getCreateCommand({
@@ -274726,7 +274495,7 @@ function storageCreateCommand() {
274726
274495
 
274727
274496
  // src/commands/platform/create.ts
274728
274497
  function createCommand3() {
274729
- return new Command2("create").alias("c").description("Create a resource in the SettleMint platform").addCommand(workspaceCreateCommand()).addCommand(applicationCreateCommand()).addCommand(blockchainNetworkCreateCommand()).addCommand(privateKeyCreateCommand()).addCommand(smartContractSetCreateCommand()).addCommand(middlewareCreateCommand()).addCommand(storageCreateCommand()).addCommand(integrationToolCreateCommand()).addCommand(insightsCreateCommand()).addCommand(applicationAccessTokenCreateCommand());
274498
+ return new Command2("create").alias("c").description("Create a resource in the SettleMint platform").addCommand(workspaceCreateCommand()).addCommand(applicationCreateCommand()).addCommand(blockchainNetworkCreateCommand()).addCommand(privateKeyCreateCommand()).addCommand(middlewareCreateCommand()).addCommand(storageCreateCommand()).addCommand(integrationToolCreateCommand()).addCommand(insightsCreateCommand()).addCommand(applicationAccessTokenCreateCommand());
274730
274499
  }
274731
274500
 
274732
274501
  // src/commands/platform/prompts/delete-confirmation.prompt.ts
@@ -275023,19 +274792,6 @@ function privateKeyRestartCommand() {
275023
274792
  return new Command2("private-key").alias("pk").description("Restart a private key in the SettleMint platform").addCommand(hdEcdsaP256RestartCommand());
275024
274793
  }
275025
274794
 
275026
- // src/commands/platform/smart-contract-set/restart.ts
275027
- function smartContractSetRestartCommand() {
275028
- return getRestartCommand({
275029
- name: "smart-contract-set",
275030
- type: "smart contract set",
275031
- alias: "scs",
275032
- envKey: "SETTLEMINT_SMART_CONTRACT_SET",
275033
- restartFunction: async (settlemint, id) => {
275034
- return settlemint.smartContractSet.restart(id);
275035
- }
275036
- });
275037
- }
275038
-
275039
274795
  // src/commands/platform/storage/ipfs/restart.ts
275040
274796
  function ipfsRestartCommand() {
275041
274797
  return getRestartCommand({
@@ -275056,7 +274812,7 @@ function storageRestartCommand() {
275056
274812
 
275057
274813
  // src/commands/platform/restart.ts
275058
274814
  function restartCommand() {
275059
- const cmd2 = new Command2("restart").description("Restart a resource in the SettleMint platform").addCommand(blockchainNetworkRestartCommand()).addCommand(customDeploymentRestartCommand()).addCommand(insightsRestartCommand()).addCommand(integrationToolRestartCommand()).addCommand(middlewareRestartCommand()).addCommand(privateKeyRestartCommand()).addCommand(smartContractSetRestartCommand()).addCommand(storageRestartCommand());
274815
+ const cmd2 = new Command2("restart").description("Restart a resource in the SettleMint platform").addCommand(blockchainNetworkRestartCommand()).addCommand(customDeploymentRestartCommand()).addCommand(insightsRestartCommand()).addCommand(integrationToolRestartCommand()).addCommand(middlewareRestartCommand()).addCommand(privateKeyRestartCommand()).addCommand(storageRestartCommand());
275060
274816
  return cmd2;
275061
274817
  }
275062
274818
 
@@ -275106,6 +274862,175 @@ function platformCommand() {
275106
274862
  import { rmdir } from "node:fs/promises";
275107
274863
  import { join as join7 } from "node:path";
275108
274864
 
274865
+ // src/constants/smart-contract-sets.ts
274866
+ var SMART_CONTRACT_SET_DETAILS = [
274867
+ {
274868
+ id: "solidity-empty",
274869
+ name: "Empty",
274870
+ image: {
274871
+ registry: "ghcr.io",
274872
+ repository: "settlemint/solidity-empty",
274873
+ tag: "7.7.7"
274874
+ }
274875
+ },
274876
+ {
274877
+ id: "solidity-token-erc20",
274878
+ name: "ERC20 token",
274879
+ image: {
274880
+ registry: "ghcr.io",
274881
+ repository: "settlemint/solidity-token-erc20",
274882
+ tag: "7.7.7"
274883
+ }
274884
+ },
274885
+ {
274886
+ id: "solidity-token-erc1155",
274887
+ name: "ERC1155 token",
274888
+ image: {
274889
+ registry: "ghcr.io",
274890
+ repository: "settlemint/solidity-token-erc1155",
274891
+ tag: "7.7.7"
274892
+ }
274893
+ },
274894
+ {
274895
+ id: "solidity-token-erc20-metatx",
274896
+ name: "ERC20 token with MetaTx",
274897
+ image: {
274898
+ registry: "ghcr.io",
274899
+ repository: "settlemint/solidity-token-erc20-metatx",
274900
+ tag: "7.7.7"
274901
+ }
274902
+ },
274903
+ {
274904
+ id: "solidity-supplychain",
274905
+ name: "Supplychain",
274906
+ image: {
274907
+ registry: "ghcr.io",
274908
+ repository: "settlemint/solidity-supplychain",
274909
+ tag: "7.7.7"
274910
+ }
274911
+ },
274912
+ {
274913
+ id: "chaincode-ts-empty",
274914
+ name: "Empty typescript",
274915
+ image: {
274916
+ registry: "ghcr.io",
274917
+ repository: "settlemint/chaincode-typescript-empty",
274918
+ tag: "7.0.13"
274919
+ }
274920
+ },
274921
+ {
274922
+ id: "chaincode-ts-empty-pdc",
274923
+ name: "Empty typescript with PDC",
274924
+ image: {
274925
+ registry: "ghcr.io",
274926
+ repository: "settlemint/chaincode-typescript-empty-pdc",
274927
+ tag: "7.0.1"
274928
+ }
274929
+ },
274930
+ {
274931
+ id: "chaincode-go-empty",
274932
+ name: "Empty go",
274933
+ image: {
274934
+ registry: "ghcr.io",
274935
+ repository: "settlemint/chaincode-go-empty",
274936
+ tag: "7.0.5"
274937
+ }
274938
+ },
274939
+ {
274940
+ id: "solidity-statemachine",
274941
+ name: "State Machine",
274942
+ image: {
274943
+ registry: "ghcr.io",
274944
+ repository: "settlemint/solidity-statemachine",
274945
+ tag: "7.7.7"
274946
+ }
274947
+ },
274948
+ {
274949
+ id: "solidity-token-erc20-crowdsale",
274950
+ name: "ERC20 token with crowdsale mechanism",
274951
+ image: {
274952
+ registry: "ghcr.io",
274953
+ repository: "settlemint/solidity-token-erc20-crowdsale",
274954
+ tag: "7.7.7"
274955
+ }
274956
+ },
274957
+ {
274958
+ id: "solidity-token-erc721",
274959
+ name: "ERC721",
274960
+ image: {
274961
+ registry: "ghcr.io",
274962
+ repository: "settlemint/solidity-token-erc721",
274963
+ tag: "7.7.7"
274964
+ }
274965
+ },
274966
+ {
274967
+ id: "solidity-token-erc721a",
274968
+ name: "ERC721a",
274969
+ image: {
274970
+ registry: "ghcr.io",
274971
+ repository: "settlemint/solidity-token-erc721a",
274972
+ tag: "7.7.7"
274973
+ }
274974
+ },
274975
+ {
274976
+ id: "solidity-token-erc721-generative-art",
274977
+ name: "ERC721 Generative Art",
274978
+ image: {
274979
+ registry: "ghcr.io",
274980
+ repository: "settlemint/solidity-token-erc721-generative-art",
274981
+ tag: "7.7.7"
274982
+ }
274983
+ },
274984
+ {
274985
+ id: "solidity-token-soulbound",
274986
+ name: "Soulbound Token",
274987
+ image: {
274988
+ registry: "ghcr.io",
274989
+ repository: "settlemint/solidity-token-soulbound",
274990
+ tag: "7.7.7"
274991
+ }
274992
+ },
274993
+ {
274994
+ id: "solidity-diamond-bond",
274995
+ name: "Diamond bond",
274996
+ image: {
274997
+ registry: "ghcr.io",
274998
+ repository: "settlemint/solidity-diamond-bond",
274999
+ tag: "7.7.7"
275000
+ }
275001
+ },
275002
+ {
275003
+ id: "solidity-attestation-service",
275004
+ name: "Attestation Service",
275005
+ image: {
275006
+ registry: "ghcr.io",
275007
+ repository: "settlemint/solidity-attestation-service",
275008
+ tag: "7.7.7"
275009
+ }
275010
+ },
275011
+ {
275012
+ id: "solidity-zeto",
275013
+ name: "Zeto",
275014
+ featureflagged: true,
275015
+ image: {
275016
+ registry: "ghcr.io",
275017
+ repository: "settlemint/solidity-zeto",
275018
+ tag: "7.7.7"
275019
+ }
275020
+ },
275021
+ {
275022
+ id: "solidity-starterkit",
275023
+ name: "Starterkit",
275024
+ featureflagged: true,
275025
+ image: {
275026
+ registry: "ghcr.io",
275027
+ repository: "settlemint/solidity-predeployed",
275028
+ tag: "7.7.7"
275029
+ }
275030
+ }
275031
+ ];
275032
+ var SMART_CONTRACT_SETS = SMART_CONTRACT_SET_DETAILS.map((set) => set.id);
275033
+
275109
275034
  // src/commands/smart-contract-set/prompts/use-case.prompt.ts
275110
275035
  async function useCasePrompt(argument) {
275111
275036
  if (SMART_CONTRACT_SETS.length === 0) {
@@ -275253,7 +275178,7 @@ async function addressPrompt({
275253
275178
  hardhatConfig
275254
275179
  }) {
275255
275180
  const possiblePrivateKeys = node.privateKeys?.filter((privateKey) => privateKey.privateKeyType !== "HD_ECDSA_P256") ?? [];
275256
- const defaultAddress = env2.SETTLEMINT_SMART_CONTRACT_SET_ADDRESS ?? hardhatConfig.networks?.btp?.from ?? possiblePrivateKeys[0]?.address;
275181
+ const defaultAddress = env2.SETTLEMINT_SMART_CONTRACT_ADDRESS ?? hardhatConfig.networks?.btp?.from ?? possiblePrivateKeys[0]?.address;
275257
275182
  const defaultPossible = accept && defaultAddress;
275258
275183
  if (defaultPossible) {
275259
275184
  return defaultAddress;
@@ -275269,10 +275194,10 @@ async function addressPrompt({
275269
275194
  })),
275270
275195
  default: defaultAddress ?? possiblePrivateKeys[0]?.address
275271
275196
  });
275272
- if (address && address !== env2.SETTLEMINT_SMART_CONTRACT_SET_ADDRESS) {
275197
+ if (address && address !== env2.SETTLEMINT_SMART_CONTRACT_ADDRESS) {
275273
275198
  await writeEnvSpinner(!!prod, {
275274
275199
  ...env2,
275275
- SETTLEMINT_SMART_CONTRACT_SET_ADDRESS: address
275200
+ SETTLEMINT_SMART_CONTRACT_ADDRESS: address
275276
275201
  });
275277
275202
  }
275278
275203
  return address;
@@ -275280,7 +275205,7 @@ async function addressPrompt({
275280
275205
 
275281
275206
  // src/commands/smart-contract-set/prompts/deployment-id.prompt.ts
275282
275207
  async function deploymentIdPrompt(env2, accept, prod) {
275283
- const defaultDeploymentId = env2.SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID;
275208
+ const defaultDeploymentId = env2.SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID;
275284
275209
  if (accept) {
275285
275210
  return defaultDeploymentId;
275286
275211
  }
@@ -275292,7 +275217,7 @@ async function deploymentIdPrompt(env2, accept, prod) {
275292
275217
  if (deploymentId !== defaultDeploymentId) {
275293
275218
  await writeEnvSpinner(!!prod, {
275294
275219
  ...env2,
275295
- SETTLEMINT_SMART_CONTRACT_SET_DEPLOYMENT_ID: deploymentId
275220
+ SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: deploymentId
275296
275221
  });
275297
275222
  }
275298
275223
  return deploymentId;
@@ -275329,17 +275254,9 @@ function hardhatDeployRemoteCommand() {
275329
275254
  accessToken,
275330
275255
  instance
275331
275256
  });
275332
- let nodeId = blockchainNodeId ?? env2.SETTLEMINT_BLOCKCHAIN_NODE;
275257
+ let nodeId = blockchainNodeId;
275333
275258
  if (!nodeId) {
275334
- const personalAccessToken = await getInstanceCredentials(instance);
275335
- if (!personalAccessToken) {
275336
- return missingPersonalAccessTokenError();
275337
- }
275338
- const settlemintPat = createSettleMintClient({
275339
- accessToken: personalAccessToken.personalAccessToken,
275340
- instance
275341
- });
275342
- const blockchainNodes = await settlemintPat.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
275259
+ const blockchainNodes = await settlemint.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
275343
275260
  const blockchainNode = await blockchainNodePrompt(env2, blockchainNodes, autoAccept);
275344
275261
  if (!blockchainNode) {
275345
275262
  cancel2("No Blockchain Node selected. Please select one to continue.");
@@ -275418,17 +275335,9 @@ function hardhatScriptRemoteCommand() {
275418
275335
  accessToken,
275419
275336
  instance
275420
275337
  });
275421
- let nodeId = blockchainNodeId ?? env2.SETTLEMINT_BLOCKCHAIN_NODE;
275338
+ let nodeId = blockchainNodeId;
275422
275339
  if (!nodeId) {
275423
- const personalAccessToken = await getInstanceCredentials(instance);
275424
- if (!personalAccessToken) {
275425
- return missingPersonalAccessTokenError();
275426
- }
275427
- const settlemintPat = createSettleMintClient({
275428
- accessToken: personalAccessToken.personalAccessToken,
275429
- instance
275430
- });
275431
- const blockchainNodes = await settlemintPat.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
275340
+ const blockchainNodes = await settlemint.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
275432
275341
  const blockchainNode = await blockchainNodePrompt(env2, blockchainNodes, autoAccept);
275433
275342
  if (!blockchainNode) {
275434
275343
  cancel2("No Blockchain Node selected. Please select one to continue.");
@@ -275614,24 +275523,16 @@ async function getTheGraphMiddleware({
275614
275523
  accessToken,
275615
275524
  autoAccept
275616
275525
  }) {
275526
+ const settlemintClient = createSettleMintClient({
275527
+ accessToken,
275528
+ instance
275529
+ });
275617
275530
  if (autoAccept && env2.SETTLEMINT_THEGRAPH) {
275618
- const settlemintClient2 = createSettleMintClient({
275619
- accessToken,
275620
- instance
275621
- });
275622
- const defaultTheGraphMiddleware = await settlemintClient2.middleware.read(env2.SETTLEMINT_THEGRAPH);
275531
+ const defaultTheGraphMiddleware = await settlemintClient.middleware.read(env2.SETTLEMINT_THEGRAPH);
275623
275532
  if (defaultTheGraphMiddleware && defaultTheGraphMiddleware.__typename === "HAGraphMiddleware") {
275624
275533
  return defaultTheGraphMiddleware;
275625
275534
  }
275626
275535
  }
275627
- const personalAccessToken = await getInstanceCredentials(instance);
275628
- if (!personalAccessToken) {
275629
- return missingPersonalAccessTokenError();
275630
- }
275631
- const settlemintClient = createSettleMintClient({
275632
- accessToken: personalAccessToken.personalAccessToken,
275633
- instance
275634
- });
275635
275536
  const middlewares = await settlemintClient.middleware.list(env2.SETTLEMINT_APPLICATION);
275636
275537
  return theGraphPrompt(env2, middlewares, autoAccept);
275637
275538
  }
@@ -275814,4 +275715,4 @@ sdkcli.parseAsync(process.argv).catch((reason) => {
275814
275715
  cancel2(reason);
275815
275716
  });
275816
275717
 
275817
- //# debugId=FD4D7CB9779CEF8A64756E2164756E21
275718
+ //# debugId=C02C5972043D400664756E2164756E21