@cartesi/cli 2.0.0-alpha.11 → 2.0.0-alpha.13

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 (128) hide show
  1. package/dist/base.d.ts +2 -2
  2. package/dist/base.d.ts.map +1 -1
  3. package/dist/base.js +9 -13
  4. package/dist/builder/directory.d.ts +2 -2
  5. package/dist/builder/directory.d.ts.map +1 -1
  6. package/dist/builder/directory.js +1 -1
  7. package/dist/builder/docker.d.ts +1 -1
  8. package/dist/builder/docker.d.ts.map +1 -1
  9. package/dist/builder/docker.js +8 -8
  10. package/dist/builder/empty.d.ts +2 -2
  11. package/dist/builder/empty.d.ts.map +1 -1
  12. package/dist/builder/empty.js +1 -1
  13. package/dist/builder/none.d.ts +2 -2
  14. package/dist/builder/none.d.ts.map +1 -1
  15. package/dist/builder/none.js +1 -1
  16. package/dist/builder/tar.d.ts +2 -2
  17. package/dist/builder/tar.d.ts.map +1 -1
  18. package/dist/builder/tar.js +1 -1
  19. package/dist/commands/build.js +2 -2
  20. package/dist/commands/create.d.ts +5 -1
  21. package/dist/commands/create.d.ts.map +1 -1
  22. package/dist/commands/create.js +31 -4
  23. package/dist/commands/deploy.d.ts +16 -1
  24. package/dist/commands/deploy.d.ts.map +1 -1
  25. package/dist/commands/deploy.js +267 -8
  26. package/dist/commands/doctor.d.ts.map +1 -1
  27. package/dist/commands/doctor.js +3 -9
  28. package/dist/commands/{rollups/logs.d.ts → logs.d.ts} +2 -3
  29. package/dist/commands/logs.d.ts.map +1 -0
  30. package/dist/commands/{rollups/logs.js → logs.js} +4 -3
  31. package/dist/commands/run.js +2 -2
  32. package/dist/commands/send/eip712.d.ts +34 -0
  33. package/dist/commands/send/eip712.d.ts.map +1 -0
  34. package/dist/commands/send/eip712.js +81 -0
  35. package/dist/commands/send/erc721.d.ts.map +1 -1
  36. package/dist/commands/send/erc721.js +1 -1
  37. package/dist/commands/send/generic.d.ts +2 -0
  38. package/dist/commands/send/generic.d.ts.map +1 -1
  39. package/dist/commands/send/generic.js +18 -10
  40. package/dist/commands/send.d.ts +1 -1
  41. package/dist/commands/send.d.ts.map +1 -1
  42. package/dist/commands/send.js +4 -4
  43. package/dist/commands/shell.js +1 -1
  44. package/dist/commands/{rollups/start.d.ts → start.d.ts} +3 -3
  45. package/dist/commands/start.d.ts.map +1 -0
  46. package/dist/commands/{rollups/start.js → start.js} +25 -16
  47. package/dist/commands/{rollups/status.d.ts → status.d.ts} +2 -3
  48. package/dist/commands/status.d.ts.map +1 -0
  49. package/dist/commands/{rollups/status.js → status.js} +7 -6
  50. package/dist/commands/stop.d.ts +5 -0
  51. package/dist/commands/stop.d.ts.map +1 -0
  52. package/dist/commands/{rollups/stop.js → stop.js} +4 -3
  53. package/dist/compose/{rollups/default.env → default.env} +5 -3
  54. package/dist/compose/docker-compose-anvil.yaml +39 -0
  55. package/dist/compose/{rollups/docker-compose-bundler.yaml → docker-compose-bundler.yaml} +36 -8
  56. package/dist/compose/docker-compose-espresso.yaml +81 -0
  57. package/dist/compose/docker-compose-explorer.yaml +92 -0
  58. package/dist/compose/docker-compose-graphql.yaml +38 -0
  59. package/dist/compose/docker-compose-node.yaml +53 -0
  60. package/dist/compose/docker-compose-passkey-server.yaml +37 -0
  61. package/dist/compose/docker-compose-paymaster.yaml +40 -0
  62. package/dist/compose/{rollups/docker-compose-proxy.yaml → docker-compose-proxy.yaml} +1 -1
  63. package/dist/config.d.ts +5 -4
  64. package/dist/config.d.ts.map +1 -1
  65. package/dist/config.js +23 -22
  66. package/dist/contracts.d.ts +22 -22
  67. package/dist/contracts.js +11 -11
  68. package/dist/exec/cartesi-machine.d.ts +2 -2
  69. package/dist/exec/cartesi-machine.d.ts.map +1 -1
  70. package/dist/exec/cartesi-machine.js +1 -1
  71. package/dist/exec/crane.d.ts +3 -3
  72. package/dist/exec/crane.d.ts.map +1 -1
  73. package/dist/exec/crane.js +1 -1
  74. package/dist/exec/genext2fs.d.ts +2 -2
  75. package/dist/exec/genext2fs.d.ts.map +1 -1
  76. package/dist/exec/genext2fs.js +2 -2
  77. package/dist/exec/mksquashfs.d.ts +2 -2
  78. package/dist/exec/mksquashfs.d.ts.map +1 -1
  79. package/dist/exec/mksquashfs.js +2 -2
  80. package/dist/exec/rollups.d.ts +1 -1
  81. package/dist/exec/rollups.d.ts.map +1 -1
  82. package/dist/exec/util.d.ts +2 -2
  83. package/dist/exec/util.d.ts.map +1 -1
  84. package/dist/exec/util.js +6 -10
  85. package/dist/index.js +10 -4
  86. package/dist/machine.d.ts +1 -1
  87. package/dist/machine.d.ts.map +1 -1
  88. package/dist/prompts.d.ts +3 -3
  89. package/dist/prompts.d.ts.map +1 -1
  90. package/dist/prompts.js +1 -1
  91. package/dist/template.d.ts +2 -2
  92. package/dist/template.d.ts.map +1 -1
  93. package/dist/template.js +2 -2
  94. package/dist/wallet.d.ts +1 -1
  95. package/dist/wallet.d.ts.map +1 -1
  96. package/dist/wallet.js +77 -93
  97. package/package.json +5 -6
  98. package/dist/commands/rollups/create.d.ts +0 -7
  99. package/dist/commands/rollups/create.d.ts.map +0 -1
  100. package/dist/commands/rollups/create.js +0 -36
  101. package/dist/commands/rollups/deploy.d.ts +0 -16
  102. package/dist/commands/rollups/deploy.d.ts.map +0 -1
  103. package/dist/commands/rollups/deploy.js +0 -237
  104. package/dist/commands/rollups/logs.d.ts.map +0 -1
  105. package/dist/commands/rollups/start.d.ts.map +0 -1
  106. package/dist/commands/rollups/status.d.ts.map +0 -1
  107. package/dist/commands/rollups/stop.d.ts +0 -5
  108. package/dist/commands/rollups/stop.d.ts.map +0 -1
  109. package/dist/commands/rollups.d.ts +0 -6
  110. package/dist/commands/rollups.d.ts.map +0 -1
  111. package/dist/commands/rollups.js +0 -21
  112. package/dist/compose/rollups/docker-compose-anvil.yaml +0 -17
  113. package/dist/compose/rollups/docker-compose-espresso.yaml +0 -68
  114. package/dist/compose/rollups/docker-compose-explorer.yaml +0 -57
  115. package/dist/compose/rollups/docker-compose-graphql.yaml +0 -23
  116. package/dist/compose/rollups/docker-compose-node.yaml +0 -26
  117. package/dist/compose/rollups/docker-compose-paymaster.yaml +0 -18
  118. package/dist/compose/rollups/proxy/anvil.yaml +0 -17
  119. package/dist/compose/rollups/proxy/bundler.yaml +0 -17
  120. package/dist/compose/rollups/proxy/espresso.yaml +0 -17
  121. package/dist/compose/rollups/proxy/explorer-api.yaml +0 -17
  122. package/dist/compose/rollups/proxy/explorer.yaml +0 -10
  123. package/dist/compose/rollups/proxy/graphql.yaml +0 -10
  124. package/dist/compose/rollups/proxy/paymaster.yaml +0 -17
  125. package/dist/compose/rollups/proxy/rollups-node.yaml +0 -17
  126. /package/dist/compose/{rollups/docker-compose-database.yaml → docker-compose-database.yaml} +0 -0
  127. /package/dist/compose/{rollups/docker-compose-node-cpus.yaml → docker-compose-node-cpus.yaml} +0 -0
  128. /package/dist/compose/{rollups/docker-compose-node-memory.yaml → docker-compose-node-memory.yaml} +0 -0
@@ -115,9 +115,9 @@ export declare const applicationFactoryAbi: readonly [{
115
115
  }];
116
116
  readonly name: "ApplicationCreated";
117
117
  }];
118
- export declare const applicationFactoryAddress: "0x2210ad1d9B0bD2D470c2bfA4814ab6253BC421A0";
118
+ export declare const applicationFactoryAddress: "0xc7006f70875BaDe89032001262A846D3Ee160051";
119
119
  export declare const applicationFactoryConfig: {
120
- readonly address: "0x2210ad1d9B0bD2D470c2bfA4814ab6253BC421A0";
120
+ readonly address: "0xc7006f70875BaDe89032001262A846D3Ee160051";
121
121
  readonly abi: readonly [{
122
122
  readonly type: "function";
123
123
  readonly inputs: readonly [{
@@ -309,9 +309,9 @@ export declare const authorityFactoryAbi: readonly [{
309
309
  }];
310
310
  readonly name: "AuthorityCreated";
311
311
  }];
312
- export declare const authorityFactoryAddress: "0x451f57Ca716046D114Ab9ff23269a2F9F4a1bdaF";
312
+ export declare const authorityFactoryAddress: "0xC7003566dD09Aa0fC0Ce201aC2769aFAe3BF0051";
313
313
  export declare const authorityFactoryConfig: {
314
- readonly address: "0x451f57Ca716046D114Ab9ff23269a2F9F4a1bdaF";
314
+ readonly address: "0xC7003566dD09Aa0fC0Ce201aC2769aFAe3BF0051";
315
315
  readonly abi: readonly [{
316
316
  readonly type: "function";
317
317
  readonly inputs: readonly [{
@@ -464,9 +464,9 @@ export declare const erc1155BatchPortalAbi: readonly [{
464
464
  }];
465
465
  readonly stateMutability: "view";
466
466
  }];
467
- export declare const erc1155BatchPortalAddress: "0xBc70d79F916A6d48aB0b8F03AC58f89742dEDA34";
467
+ export declare const erc1155BatchPortalAddress: "0xc700A2e5531E720a2434433b6ccf4c0eA2400051";
468
468
  export declare const erc1155BatchPortalConfig: {
469
- readonly address: "0xBc70d79F916A6d48aB0b8F03AC58f89742dEDA34";
469
+ readonly address: "0xc700A2e5531E720a2434433b6ccf4c0eA2400051";
470
470
  readonly abi: readonly [{
471
471
  readonly type: "constructor";
472
472
  readonly inputs: readonly [{
@@ -566,9 +566,9 @@ export declare const erc1155SinglePortalAbi: readonly [{
566
566
  }];
567
567
  readonly stateMutability: "view";
568
568
  }];
569
- export declare const erc1155SinglePortalAddress: "0xB778147D50219544F113A55DE1d8de626f0cC1bB";
569
+ export declare const erc1155SinglePortalAddress: "0xc700A261279aFC6F755A3a67D86ae43E2eBD0051";
570
570
  export declare const erc1155SinglePortalConfig: {
571
- readonly address: "0xB778147D50219544F113A55DE1d8de626f0cC1bB";
571
+ readonly address: "0xc700A261279aFC6F755A3a67D86ae43E2eBD0051";
572
572
  readonly abi: readonly [{
573
573
  readonly type: "constructor";
574
574
  readonly inputs: readonly [{
@@ -664,9 +664,9 @@ export declare const erc20PortalAbi: readonly [{
664
664
  readonly inputs: readonly [];
665
665
  readonly name: "ERC20TransferFailed";
666
666
  }];
667
- export declare const erc20PortalAddress: "0x05355c2F9bA566c06199DEb17212c3B78C1A3C31";
667
+ export declare const erc20PortalAddress: "0xc700D6aDd016eECd59d989C028214Eaa0fCC0051";
668
668
  export declare const erc20PortalConfig: {
669
- readonly address: "0x05355c2F9bA566c06199DEb17212c3B78C1A3C31";
669
+ readonly address: "0xc700D6aDd016eECd59d989C028214Eaa0fCC0051";
670
670
  readonly abi: readonly [{
671
671
  readonly type: "constructor";
672
672
  readonly inputs: readonly [{
@@ -758,9 +758,9 @@ export declare const erc721PortalAbi: readonly [{
758
758
  }];
759
759
  readonly stateMutability: "view";
760
760
  }];
761
- export declare const erc721PortalAddress: "0x0F5A20d3729c44FedabBb560b3D633dc1c246DDe";
761
+ export declare const erc721PortalAddress: "0xc700d52F5290e978e9CAe7D1E092935263b60051";
762
762
  export declare const erc721PortalConfig: {
763
- readonly address: "0x0F5A20d3729c44FedabBb560b3D633dc1c246DDe";
763
+ readonly address: "0xc700d52F5290e978e9CAe7D1E092935263b60051";
764
764
  readonly abi: readonly [{
765
765
  readonly type: "constructor";
766
766
  readonly inputs: readonly [{
@@ -844,9 +844,9 @@ export declare const etherPortalAbi: readonly [{
844
844
  readonly inputs: readonly [];
845
845
  readonly name: "EtherTransferFailed";
846
846
  }];
847
- export declare const etherPortalAddress: "0xd31aD6613bDaA139E7D12B2428C0Dd00fdBF8aDa";
847
+ export declare const etherPortalAddress: "0xc70076a466789B595b50959cdc261227F0D70051";
848
848
  export declare const etherPortalConfig: {
849
- readonly address: "0xd31aD6613bDaA139E7D12B2428C0Dd00fdBF8aDa";
849
+ readonly address: "0xc70076a466789B595b50959cdc261227F0D70051";
850
850
  readonly abi: readonly [{
851
851
  readonly type: "constructor";
852
852
  readonly inputs: readonly [{
@@ -982,9 +982,9 @@ export declare const inputBoxAbi: readonly [{
982
982
  }];
983
983
  readonly name: "InputTooLarge";
984
984
  }];
985
- export declare const inputBoxAddress: "0xB6b39Fb3dD926A9e3FBc7A129540eEbeA3016a6c";
985
+ export declare const inputBoxAddress: "0xc70074BDD26d8cF983Ca6A5b89b8db52D5850051";
986
986
  export declare const inputBoxConfig: {
987
- readonly address: "0xB6b39Fb3dD926A9e3FBc7A129540eEbeA3016a6c";
987
+ readonly address: "0xc70074BDD26d8cF983Ca6A5b89b8db52D5850051";
988
988
  readonly abi: readonly [{
989
989
  readonly type: "function";
990
990
  readonly inputs: readonly [{
@@ -1156,9 +1156,9 @@ export declare const quorumFactoryAbi: readonly [{
1156
1156
  }];
1157
1157
  readonly name: "QuorumCreated";
1158
1158
  }];
1159
- export declare const quorumFactoryAddress: "0xb85D3942e551E6E5f19AC2CCF8dAb195f5f0347E";
1159
+ export declare const quorumFactoryAddress: "0xC7003CAb437640b91C3351B98e9e8aA413410051";
1160
1160
  export declare const quorumFactoryConfig: {
1161
- readonly address: "0xb85D3942e551E6E5f19AC2CCF8dAb195f5f0347E";
1161
+ readonly address: "0xC7003CAb437640b91C3351B98e9e8aA413410051";
1162
1162
  readonly abi: readonly [{
1163
1163
  readonly type: "function";
1164
1164
  readonly inputs: readonly [{
@@ -1260,9 +1260,9 @@ export declare const safeErc20TransferAbi: readonly [{
1260
1260
  }];
1261
1261
  readonly name: "SafeERC20FailedOperation";
1262
1262
  }];
1263
- export declare const safeErc20TransferAddress: "0x35187C9f069D34aB73c02327ae155746a8274208";
1263
+ export declare const safeErc20TransferAddress: "0xc700903d822E108a93B21F69A0a6475F42930051";
1264
1264
  export declare const safeErc20TransferConfig: {
1265
- readonly address: "0x35187C9f069D34aB73c02327ae155746a8274208";
1265
+ readonly address: "0xc700903d822E108a93B21F69A0a6475F42930051";
1266
1266
  readonly abi: readonly [{
1267
1267
  readonly type: "function";
1268
1268
  readonly inputs: readonly [{
@@ -1400,9 +1400,9 @@ export declare const selfHostedApplicationFactoryAbi: readonly [{
1400
1400
  }];
1401
1401
  readonly stateMutability: "view";
1402
1402
  }];
1403
- export declare const selfHostedApplicationFactoryAddress: "0x4a409e1CaB9229711C4e1f68625DdbC75809e721";
1403
+ export declare const selfHostedApplicationFactoryAddress: "0xc700285Ab555eeB5201BC00CFD4b2CC8DED90051";
1404
1404
  export declare const selfHostedApplicationFactoryConfig: {
1405
- readonly address: "0x4a409e1CaB9229711C4e1f68625DdbC75809e721";
1405
+ readonly address: "0xc700285Ab555eeB5201BC00CFD4b2CC8DED90051";
1406
1406
  readonly abi: readonly [{
1407
1407
  readonly type: "constructor";
1408
1408
  readonly inputs: readonly [{
package/dist/contracts.js CHANGED
@@ -102,7 +102,7 @@ export const applicationFactoryAbi = [
102
102
  name: 'ApplicationCreated',
103
103
  },
104
104
  ];
105
- export const applicationFactoryAddress = '0x2210ad1d9B0bD2D470c2bfA4814ab6253BC421A0';
105
+ export const applicationFactoryAddress = '0xc7006f70875BaDe89032001262A846D3Ee160051';
106
106
  export const applicationFactoryConfig = {
107
107
  address: applicationFactoryAddress,
108
108
  abi: applicationFactoryAbi,
@@ -173,7 +173,7 @@ export const authorityFactoryAbi = [
173
173
  name: 'AuthorityCreated',
174
174
  },
175
175
  ];
176
- export const authorityFactoryAddress = '0x451f57Ca716046D114Ab9ff23269a2F9F4a1bdaF';
176
+ export const authorityFactoryAddress = '0xC7003566dD09Aa0fC0Ce201aC2769aFAe3BF0051';
177
177
  export const authorityFactoryConfig = {
178
178
  address: authorityFactoryAddress,
179
179
  abi: authorityFactoryAbi,
@@ -254,7 +254,7 @@ export const erc1155BatchPortalAbi = [
254
254
  stateMutability: 'view',
255
255
  },
256
256
  ];
257
- export const erc1155BatchPortalAddress = '0xBc70d79F916A6d48aB0b8F03AC58f89742dEDA34';
257
+ export const erc1155BatchPortalAddress = '0xc700A2e5531E720a2434433b6ccf4c0eA2400051';
258
258
  export const erc1155BatchPortalConfig = {
259
259
  address: erc1155BatchPortalAddress,
260
260
  abi: erc1155BatchPortalAbi,
@@ -302,7 +302,7 @@ export const erc1155SinglePortalAbi = [
302
302
  stateMutability: 'view',
303
303
  },
304
304
  ];
305
- export const erc1155SinglePortalAddress = '0xB778147D50219544F113A55DE1d8de626f0cC1bB';
305
+ export const erc1155SinglePortalAddress = '0xc700A261279aFC6F755A3a67D86ae43E2eBD0051';
306
306
  export const erc1155SinglePortalConfig = {
307
307
  address: erc1155SinglePortalAddress,
308
308
  abi: erc1155SinglePortalAbi,
@@ -345,7 +345,7 @@ export const erc20PortalAbi = [
345
345
  },
346
346
  { type: 'error', inputs: [], name: 'ERC20TransferFailed' },
347
347
  ];
348
- export const erc20PortalAddress = '0x05355c2F9bA566c06199DEb17212c3B78C1A3C31';
348
+ export const erc20PortalAddress = '0xc700D6aDd016eECd59d989C028214Eaa0fCC0051';
349
349
  export const erc20PortalConfig = {
350
350
  address: erc20PortalAddress,
351
351
  abi: erc20PortalAbi,
@@ -392,7 +392,7 @@ export const erc721PortalAbi = [
392
392
  stateMutability: 'view',
393
393
  },
394
394
  ];
395
- export const erc721PortalAddress = '0x0F5A20d3729c44FedabBb560b3D633dc1c246DDe';
395
+ export const erc721PortalAddress = '0xc700d52F5290e978e9CAe7D1E092935263b60051';
396
396
  export const erc721PortalConfig = {
397
397
  address: erc721PortalAddress,
398
398
  abi: erc721PortalAbi,
@@ -433,7 +433,7 @@ export const etherPortalAbi = [
433
433
  },
434
434
  { type: 'error', inputs: [], name: 'EtherTransferFailed' },
435
435
  ];
436
- export const etherPortalAddress = '0xd31aD6613bDaA139E7D12B2428C0Dd00fdBF8aDa';
436
+ export const etherPortalAddress = '0xc70076a466789B595b50959cdc261227F0D70051';
437
437
  export const etherPortalConfig = {
438
438
  address: etherPortalAddress,
439
439
  abi: etherPortalAbi,
@@ -517,7 +517,7 @@ export const inputBoxAbi = [
517
517
  name: 'InputTooLarge',
518
518
  },
519
519
  ];
520
- export const inputBoxAddress = '0xB6b39Fb3dD926A9e3FBc7A129540eEbeA3016a6c';
520
+ export const inputBoxAddress = '0xc70074BDD26d8cF983Ca6A5b89b8db52D5850051';
521
521
  export const inputBoxConfig = {
522
522
  address: inputBoxAddress,
523
523
  abi: inputBoxAbi,
@@ -588,7 +588,7 @@ export const quorumFactoryAbi = [
588
588
  name: 'QuorumCreated',
589
589
  },
590
590
  ];
591
- export const quorumFactoryAddress = '0xb85D3942e551E6E5f19AC2CCF8dAb195f5f0347E';
591
+ export const quorumFactoryAddress = '0xC7003CAb437640b91C3351B98e9e8aA413410051';
592
592
  export const quorumFactoryConfig = {
593
593
  address: quorumFactoryAddress,
594
594
  abi: quorumFactoryAbi,
@@ -614,7 +614,7 @@ export const safeErc20TransferAbi = [
614
614
  name: 'SafeERC20FailedOperation',
615
615
  },
616
616
  ];
617
- export const safeErc20TransferAddress = '0x35187C9f069D34aB73c02327ae155746a8274208';
617
+ export const safeErc20TransferAddress = '0xc700903d822E108a93B21F69A0a6475F42930051';
618
618
  export const safeErc20TransferConfig = {
619
619
  address: safeErc20TransferAddress,
620
620
  abi: safeErc20TransferAbi,
@@ -716,7 +716,7 @@ export const selfHostedApplicationFactoryAbi = [
716
716
  stateMutability: 'view',
717
717
  },
718
718
  ];
719
- export const selfHostedApplicationFactoryAddress = '0x4a409e1CaB9229711C4e1f68625DdbC75809e721';
719
+ export const selfHostedApplicationFactoryAddress = '0xc700285Ab555eeB5201BC00CFD4b2CC8DED90051';
720
720
  export const selfHostedApplicationFactoryConfig = {
721
721
  address: selfHostedApplicationFactoryAddress,
722
722
  abi: selfHostedApplicationFactoryAbi,
@@ -1,5 +1,5 @@
1
- import { Range, SemVer } from "semver";
2
- import { DockerFallbackOptions, ExecaOptionsDockerFallback } from "./util.js";
1
+ import { Range, type SemVer } from "semver";
2
+ import { type DockerFallbackOptions, type ExecaOptionsDockerFallback } from "./util.js";
3
3
  export declare const requiredVersion: Range;
4
4
  export declare const boot: (args: readonly string[], options: ExecaOptionsDockerFallback) => Promise<import("execa").Result<import("execa").Options & {
5
5
  image?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"cartesi-machine.d.ts","sourceRoot":"","sources":["../../src/exec/cartesi-machine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACH,qBAAqB,EAErB,0BAA0B,EAC7B,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,eAAe,OAAuB,CAAC;AAEpD,eAAO,MAAM,IAAI,GACb,MAAM,SAAS,MAAM,EAAE,EACvB,SAAS,0BAA0B;;;GAGtC,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,UAAU,qBAAqB,KAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAgBvB,CAAC"}
1
+ {"version":3,"file":"cartesi-machine.d.ts","sourceRoot":"","sources":["../../src/exec/cartesi-machine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,MAAM,EAAS,MAAM,QAAQ,CAAC;AACnD,OAAO,EACH,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAElC,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,eAAe,OAAuB,CAAC;AAEpD,eAAO,MAAM,IAAI,GACb,MAAM,SAAS,MAAM,EAAE,EACvB,SAAS,0BAA0B;;;GAGtC,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,UAAU,qBAAqB,KAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAgBvB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { parse, Range } from "semver";
1
+ import { Range, parse } from "semver";
2
2
  import { execaDockerFallback, } from "./util.js";
3
3
  export const requiredVersion = new Range("^0.18.1");
4
4
  export const boot = async (args, options) => {
@@ -1,6 +1,6 @@
1
- import { Range, SemVer } from "semver";
2
- import { Stream } from "stream";
3
- import { DockerFallbackOptions } from "./util.js";
1
+ import type { Stream } from "node:stream";
2
+ import { Range, type SemVer } from "semver";
3
+ import { type DockerFallbackOptions } from "./util.js";
4
4
  export declare const requiredVersion: Range;
5
5
  export declare const exportImage: (options: {
6
6
  stdin: Stream | number;
@@ -1 +1 @@
1
- {"version":3,"file":"crane.d.ts","sourceRoot":"","sources":["../../src/exec/crane.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,qBAAqB,EAA2B,MAAM,WAAW,CAAC;AAE3E,eAAO,MAAM,eAAe,OAAuB,CAAC;AAEpD,eAAO,MAAM,WAAW,GACpB,SAAS;IACL,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,GAAG,qBAAqB;;;;;EAO5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,UAAU,qBAAqB,KAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAMvB,CAAC"}
1
+ {"version":3,"file":"crane.d.ts","sourceRoot":"","sources":["../../src/exec/crane.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,KAAK,MAAM,EAAS,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,KAAK,qBAAqB,EAA2B,MAAM,WAAW,CAAC;AAEhF,eAAO,MAAM,eAAe,OAAuB,CAAC;AAEpD,eAAO,MAAM,WAAW,GACpB,SAAS;IACL,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,GAAG,qBAAqB;;;;;EAO5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,UAAU,qBAAqB,KAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAMvB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { parse, Range } from "semver";
1
+ import { Range, parse } from "semver";
2
2
  import { spawnSyncDockerFallback } from "./util.js";
3
3
  export const requiredVersion = new Range("^0.19.1");
4
4
  export const exportImage = async (options) => {
@@ -1,5 +1,5 @@
1
- import { Range, SemVer } from "semver";
2
- import { DockerFallbackOptions } from "./util.js";
1
+ import { Range, type SemVer } from "semver";
2
+ import { type DockerFallbackOptions } from "./util.js";
3
3
  export declare const requiredVersion: Range;
4
4
  export declare const empty: (options: {
5
5
  cwd?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"genext2fs.d.ts","sourceRoot":"","sources":["../../src/exec/genext2fs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAuB,MAAM,WAAW,CAAC;AAIvE,eAAO,MAAM,eAAe,EAAE,KAA2B,CAAC;AAU1D,eAAO,MAAM,KAAK,GACd,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB,kBAgB5B,CAAC;AAEF,eAAO,MAAM,aAAa,GACtB,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAS5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAS5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,UAAU,qBAAqB,KAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAevB,CAAC"}
1
+ {"version":3,"file":"genext2fs.d.ts","sourceRoot":"","sources":["../../src/exec/genext2fs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,MAAM,EAAS,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,KAAK,qBAAqB,EAAuB,MAAM,WAAW,CAAC;AAI5E,eAAO,MAAM,eAAe,EAAE,KAA2B,CAAC;AAU1D,eAAO,MAAM,KAAK,GACd,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB,kBAgB5B,CAAC;AAEF,eAAO,MAAM,aAAa,GACtB,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAS5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAS5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,UAAU,qBAAqB,KAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAevB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { parse, Range } from "semver";
1
+ import { Range, parse } from "semver";
2
2
  import { execaDockerFallback } from "./util.js";
3
3
  const BLOCK_SIZE = 4096; // fixed at 4k
4
4
  export const requiredVersion = new Range("^1.5.6");
@@ -36,7 +36,7 @@ export const version = async (options) => {
36
36
  if (typeof stdout === "string") {
37
37
  const regex = /(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?/;
38
38
  const m = stdout.match(regex);
39
- if (m && m[0]) {
39
+ if (m?.[0]) {
40
40
  return parse(m[0]);
41
41
  }
42
42
  }
@@ -1,5 +1,5 @@
1
- import { Range, SemVer } from "semver";
2
- import { DockerFallbackOptions } from "./util.js";
1
+ import { Range, type SemVer } from "semver";
2
+ import { type DockerFallbackOptions } from "./util.js";
3
3
  export declare const requiredVersion: Range;
4
4
  export declare const fromDirectory: (options: {
5
5
  cwd?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"mksquashfs.d.ts","sourceRoot":"","sources":["../../src/exec/mksquashfs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAuB,MAAM,WAAW,CAAC;AAIvE,eAAO,MAAM,eAAe,EAAE,KAA2B,CAAC;AAY1D,eAAO,MAAM,aAAa,GACtB,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAO5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAY5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,UAAU,qBAAqB,KAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAoBvB,CAAC"}
1
+ {"version":3,"file":"mksquashfs.d.ts","sourceRoot":"","sources":["../../src/exec/mksquashfs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,MAAM,EAAS,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,KAAK,qBAAqB,EAAuB,MAAM,WAAW,CAAC;AAI5E,eAAO,MAAM,eAAe,EAAE,KAA2B,CAAC;AAY1D,eAAO,MAAM,aAAa,GACtB,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAO5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAY5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,UAAU,qBAAqB,KAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAoBvB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { parse, Range } from "semver";
1
+ import { Range, parse } from "semver";
2
2
  import { execaDockerFallback } from "./util.js";
3
3
  const COMPRESSION = "lzo"; // make customizable? default is gzip
4
4
  export const requiredVersion = new Range("^4.5.1");
@@ -32,7 +32,7 @@ export const version = async (options) => {
32
32
  if (typeof stdout === "string") {
33
33
  const regex = /(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?/gm;
34
34
  const m = stdout.match(regex);
35
- if (m && m[0]) {
35
+ if (m?.[0]) {
36
36
  return parse(m[0]);
37
37
  }
38
38
  }
@@ -1,4 +1,4 @@
1
- import { Address, Hash } from "viem";
1
+ import type { Address, Hash } from "viem";
2
2
  export type RollupsDeployment = {
3
3
  name: string;
4
4
  address: Address;
@@ -1 +1 @@
1
- {"version":3,"file":"rollups.d.ts","sourceRoot":"","sources":["../../src/exec/rollups.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAGrC,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,IAAI,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,SAAS,GAAG,UAAU,CAAC;CACjC,CAAC;AAEF,KAAK,aAAa,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,cAAc,GACvB,UAAU,aAAa,KACxB,OAAO,CAAC,iBAAiB,EAAE,CAuB7B,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACjC,UAAU,aAAa,KACxB,OAAO,CAAC,iBAAiB,GAAG,SAAS,CASvC,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,OAAO,GAAG,SAAS,CAGzE,CAAC"}
1
+ {"version":3,"file":"rollups.d.ts","sourceRoot":"","sources":["../../src/exec/rollups.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG1C,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,IAAI,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,SAAS,GAAG,UAAU,CAAC;CACjC,CAAC;AAUF,KAAK,aAAa,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,cAAc,GACvB,UAAU,aAAa,KACxB,OAAO,CAAC,iBAAiB,EAAE,CAuB7B,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACjC,UAAU,aAAa,KACxB,OAAO,CAAC,iBAAiB,GAAG,SAAS,CASvC,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,OAAO,GAAG,SAAS,CAGzE,CAAC"}
@@ -1,5 +1,5 @@
1
- import { SpawnSyncOptions } from "child_process";
2
- import { Options } from "execa";
1
+ import { type Options } from "execa";
2
+ import { type SpawnSyncOptions } from "node:child_process";
3
3
  export type DockerFallbackOptions = {
4
4
  image: string;
5
5
  forceDocker: true;
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/exec/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,gBAAgB,E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;kBAAgB,KAAK;GAmD1C,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,GACrD,qBAAqB,CAAC;AAC1B,eAAO,MAAM,uBAAuB,GAChC,SAAS,MAAM,EACf,MAAM,SAAS,MAAM,EAAE,EACvB,SAAS,0BAA0B;;;;;CA6CtC,CAAC"}
package/dist/exec/util.js CHANGED
@@ -1,6 +1,6 @@
1
- import { spawnSync } from "child_process";
2
- import { execa, ExecaError } from "execa";
3
- import os from "os";
1
+ import { ExecaError, execa } from "execa";
2
+ import { spawnSync } from "node:child_process";
3
+ import os from "node:os";
4
4
  export const execaDockerFallback = async (command, args, options) => {
5
5
  try {
6
6
  if (options.forceDocker) {
@@ -29,9 +29,7 @@ export const execaDockerFallback = async (command, args, options) => {
29
29
  ];
30
30
  return await execa("docker", ["run", ...dockerOpts, options.image, command, ...args], options);
31
31
  }
32
- else {
33
- console.error(`error executing '${command}'`, error);
34
- }
32
+ console.error(`error executing '${command}'`, error);
35
33
  }
36
34
  throw error;
37
35
  }
@@ -71,10 +69,8 @@ export const spawnSyncDockerFallback = (command, args, options) => {
71
69
  }
72
70
  return dockerResult;
73
71
  }
74
- else {
75
- console.error(`error executing '${command}'`, result.error);
76
- throw result.error;
77
- }
72
+ console.error(`error executing '${command}'`, result.error);
73
+ throw result.error;
78
74
  }
79
75
  return result;
80
76
  };
package/dist/index.js CHANGED
@@ -8,10 +8,13 @@ import { createCreateCommand } from "./commands/create.js";
8
8
  import { createDeployCommand } from "./commands/deploy.js";
9
9
  import { createDoctorCommand } from "./commands/doctor.js";
10
10
  import { createHashCommand } from "./commands/hash.js";
11
- import { createRollupsCommand } from "./commands/rollups.js";
11
+ import { createLogsCommand } from "./commands/logs.js";
12
12
  import { createRunCommand } from "./commands/run.js";
13
13
  import { createSendCommand } from "./commands/send.js";
14
14
  import { createShellCommand } from "./commands/shell.js";
15
+ import { createStartCommand } from "./commands/start.js";
16
+ import { createStatusCommand } from "./commands/status.js";
17
+ import { createStopCommand } from "./commands/stop.js";
15
18
  // Use `createRequire` to import JSON in ESM
16
19
  const require = createRequire(import.meta.url);
17
20
  const pkg = require("../package.json");
@@ -32,13 +35,16 @@ const program = new Command()
32
35
  .addCommand(createBuildCommand())
33
36
  .addCommand(createCleanCommand())
34
37
  .addCommand(createCreateCommand())
35
- .addCommand(createDeployCommand(), { hidden: true })
38
+ .addCommand(createDeployCommand())
36
39
  .addCommand(createDoctorCommand())
40
+ .addCommand(createLogsCommand())
37
41
  .addCommand(createHashCommand())
38
- .addCommand(createRollupsCommand())
39
42
  .addCommand(createRunCommand(), { hidden: true })
40
43
  .addCommand(createSendCommand())
41
- .addCommand(createShellCommand());
44
+ .addCommand(createShellCommand())
45
+ .addCommand(createStartCommand())
46
+ .addCommand(createStatusCommand())
47
+ .addCommand(createStopCommand());
42
48
  // Global error handling
43
49
  process.on("uncaughtException", (err) => {
44
50
  if (process.env.NODE_ENV === "development") {
package/dist/machine.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Config, ImageInfo } from "./config.js";
1
+ import type { Config, ImageInfo } from "./config.js";
2
2
  export declare const bootMachine: (config: Config, info: ImageInfo | undefined, destination: string) => Promise<import("execa").Result<import("execa").Options & {
3
3
  image?: string;
4
4
  forceDocker?: false;
@@ -1 +1 @@
1
- {"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../src/machine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAe,SAAS,EAAE,MAAM,aAAa,CAAC;AAoB7D,eAAO,MAAM,WAAW,GACpB,QAAQ,MAAM,EACd,MAAM,SAAS,GAAG,SAAS,EAC3B,aAAa,MAAM;;;GAwFtB,CAAC"}
1
+ {"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../src/machine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAe,SAAS,EAAE,MAAM,aAAa,CAAC;AAoBlE,eAAO,MAAM,WAAW,GACpB,QAAQ,MAAM,EACd,MAAM,SAAS,GAAG,SAAS,EAC3B,aAAa,MAAM;;;GAwFtB,CAAC"}
package/dist/prompts.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { Separator } from "@inquirer/core";
1
+ import type { Separator } from "@inquirer/core";
2
2
  import input from "@inquirer/input";
3
3
  import select from "@inquirer/select";
4
- import { Context } from "@inquirer/type";
5
- import { Address, Hex } from "viem";
4
+ import type { Context } from "@inquirer/type";
5
+ import { type Address, type Hex } from "viem";
6
6
  type InputConfig = Parameters<typeof input>[0];
7
7
  type SelectConfig<ValueType> = Parameters<typeof select<ValueType>>[0];
8
8
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,MAAM,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EACH,OAAO,EACP,GAAG,EASN,MAAM,MAAM,CAAC;AAEd,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/C,KAAK,YAAY,CAAC,SAAS,IAAI,UAAU,CAAC,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEvE;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AACtE,eAAO,MAAM,YAAY,GACrB,QAAQ,mBAAmB,KAC5B,OAAO,CAAC,OAAO,CAMjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG;IAAE,OAAO,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC;AAC9D,eAAO,MAAM,QAAQ,GAAU,QAAQ,eAAe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ACvB,QAAQ,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,KAC1C,OAAO,CAAC,KAAK,MAAM,EAAE,CA+DvB,CAAC;AAGF,MAAM,MAAM,MAAM,CAAC,SAAS,IAAI;IAC5B,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,SAAS,IAAI,YAAY,CAAC,SAAS,CAAC,GAAG;IAChE,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,CAAC;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,SAAS,EAChC,QAAQ,gBAAgB,CAAC,SAAS,CAAC,GAAG;IAAE,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,EACnE,UAAU,OAAO,GAAG,SAAS,KAC9B,OAAO,CAAC,SAAS,CAsBnB,CAAC"}
package/dist/prompts.js CHANGED
@@ -18,7 +18,7 @@ export const hexInput = async (config) => {
18
18
  return value;
19
19
  };
20
20
  export const bigintInput = async (config) => {
21
- const defaultValue = config.default != undefined
21
+ const defaultValue = config.default !== undefined
22
22
  ? formatUnits(config.default, config.decimals)
23
23
  : undefined;
24
24
  const value = await input({
@@ -1,3 +1,3 @@
1
- import { DownloadTemplateResult } from "giget";
2
- export declare const download: (framework: string, template: string, branch: string, out: string) => Promise<DownloadTemplateResult>;
1
+ import { type DownloadTemplateResult } from "giget";
2
+ export declare const download: (template: string, branch: string, out: string) => Promise<DownloadTemplateResult>;
3
3
  //# sourceMappingURL=template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../src/template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAoB,MAAM,OAAO,CAAC;AAEjE,eAAO,MAAM,QAAQ,GACjB,WAAW,MAAM,EACjB,UAAU,MAAM,EAChB,QAAQ,MAAM,EACd,KAAK,MAAM,KACZ,OAAO,CAAC,sBAAsB,CAehC,CAAC"}
1
+ {"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../src/template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,sBAAsB,EAAoB,MAAM,OAAO,CAAC;AAEtE,eAAO,MAAM,QAAQ,GACjB,UAAU,MAAM,EAChB,QAAQ,MAAM,EACd,KAAK,MAAM,KACZ,OAAO,CAAC,sBAAsB,CAehC,CAAC"}
package/dist/template.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { downloadTemplate } from "giget";
2
- export const download = async (framework, template, branch, out) => {
2
+ export const download = async (template, branch, out) => {
3
3
  const cartesiProvider = async (input) => {
4
4
  return {
5
5
  name: "cartesi",
6
- subdir: `${framework}/${input}`,
6
+ subdir: input,
7
7
  url: "https://github.com/cartesi/application-templates",
8
8
  tar: `https://codeload.github.com/cartesi/application-templates/tar.gz/refs/heads/${branch}`,
9
9
  };
package/dist/wallet.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Address, Chain, Hex, PublicClient, WalletClient } from "viem";
1
+ import type { Address, Chain, Hex, PublicClient, WalletClient } from "viem";
2
2
  export type SupportedChainsOptions = {
3
3
  includeDevnet?: boolean;
4
4
  includeMainnets?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../src/wallet.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,OAAO,EACP,KAAK,EACL,GAAG,EAEH,YAAY,EAEZ,YAAY,EAKf,MAAM,MAAM,CAAC;AAiBd,MAAM,MAAM,sBAAsB,GAAG;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,C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