@caatinga/cli 2.0.1 → 2.0.2
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/index.js +7 -1
- package/package.json +2 -2
- package/templates/marketplace-with-token/caatinga.template.json +1 -1
- package/templates/marketplace-with-token/package.json +3 -3
- package/templates/react-vite-counter/README.md +3 -1
- package/templates/react-vite-counter/caatinga.template.json +1 -1
- package/templates/react-vite-counter/package.json +5 -3
- package/templates/react-vite-counter/src/caatinga.ts +1 -1
- /package/templates/react-vite-counter/src/contracts/generated/{counter.ts → counter/src/index.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -455,6 +455,12 @@ function registerGenerateCommand(program2) {
|
|
|
455
455
|
logger.info(`Contract: ${result.contractName}`);
|
|
456
456
|
logger.info(`Network: ${result.network.name}`);
|
|
457
457
|
logger.info(`Output: ${result.outputDir}`);
|
|
458
|
+
logger.info(`Import path: ${result.importPath}`);
|
|
459
|
+
if (result.legacyStubRemoved) {
|
|
460
|
+
logger.info(`Removed legacy stub: ${config.frontend.bindingsOutput}/${result.contractName}.ts`);
|
|
461
|
+
}
|
|
462
|
+
logger.info("");
|
|
463
|
+
logger.info("Next: import bindings from the import path above, then run npm run dev");
|
|
458
464
|
}));
|
|
459
465
|
}
|
|
460
466
|
|
|
@@ -569,7 +575,7 @@ function registerInvokeCommand(program2) {
|
|
|
569
575
|
}
|
|
570
576
|
|
|
571
577
|
// src/version.ts
|
|
572
|
-
var CAATINGA_CLI_VERSION = "2.0.
|
|
578
|
+
var CAATINGA_CLI_VERSION = "2.0.2";
|
|
573
579
|
|
|
574
580
|
// src/program.ts
|
|
575
581
|
function createProgram() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caatinga/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Caatinga CLI for building dApps on Stellar/Soroban",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stellar",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"LICENSE"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@caatinga/core": "^2.0.
|
|
46
|
+
"@caatinga/core": "^2.0.2",
|
|
47
47
|
"chalk": "^5.4.1",
|
|
48
48
|
"commander": "^12.1.0"
|
|
49
49
|
},
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
"caatinga:generate": "caatinga generate token && caatinga generate marketplace"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@caatinga/client": "^2.0.
|
|
16
|
-
"@caatinga/core": "^2.0.
|
|
15
|
+
"@caatinga/client": "^2.0.2",
|
|
16
|
+
"@caatinga/core": "^2.0.2",
|
|
17
17
|
"@vitejs/plugin-react": "^4.3.4",
|
|
18
18
|
"react": "^18.3.1",
|
|
19
19
|
"react-dom": "^18.3.1",
|
|
20
20
|
"vite": "^6.0.6"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@caatinga/cli": "^2.0.
|
|
23
|
+
"@caatinga/cli": "^2.0.2",
|
|
24
24
|
"@types/react": "^18.3.18",
|
|
25
25
|
"@types/react-dom": "^18.3.5",
|
|
26
26
|
"typescript": "^5.7.2"
|
|
@@ -15,6 +15,8 @@ npm run dev # or: pnpm dev
|
|
|
15
15
|
|
|
16
16
|
Run `build` before `deploy` (WASM required) and `deploy` before `generate` (contract ID required).
|
|
17
17
|
|
|
18
|
+
The checked-in binding stub under `src/contracts/generated/counter/src/index.ts` is a placeholder so the template type-checks before you run `caatinga generate`. Run `caatinga generate` before `npm run dev` so the browser uses real Stellar CLI bindings instead of the stub.
|
|
19
|
+
|
|
18
20
|
Use a local Stellar CLI identity alias for `--source`; public `G...` addresses, seed phrases, and secret keys are rejected for signing operations.
|
|
19
21
|
|
|
20
22
|
## Package managers
|
|
@@ -38,7 +40,7 @@ After `caatinga generate`, wire generated bindings to the client:
|
|
|
38
40
|
```ts
|
|
39
41
|
import { createCaatingaClient } from "@caatinga/client";
|
|
40
42
|
import { createStellarWalletsKitAdapter } from "@caatinga/client/stellar-wallets-kit";
|
|
41
|
-
import * as Counter from "./contracts/generated/counter";
|
|
43
|
+
import * as Counter from "./contracts/generated/counter/src/index.js";
|
|
42
44
|
import artifacts from "../caatinga.artifacts.json";
|
|
43
45
|
|
|
44
46
|
const wallet = createStellarWalletsKitAdapter();
|
|
@@ -12,16 +12,18 @@
|
|
|
12
12
|
"caatinga:generate": "caatinga generate counter"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@caatinga/client": "^2.0.
|
|
16
|
-
"@caatinga/core": "^2.0.
|
|
15
|
+
"@caatinga/client": "^2.0.2",
|
|
16
|
+
"@caatinga/core": "^2.0.2",
|
|
17
17
|
"@creit.tech/stellar-wallets-kit": "^1.9.5",
|
|
18
|
+
"@stellar/stellar-sdk": "^14.5.0",
|
|
19
|
+
"buffer": "^6.0.3",
|
|
18
20
|
"@vitejs/plugin-react": "^4.3.4",
|
|
19
21
|
"react": "^18.3.1",
|
|
20
22
|
"react-dom": "^18.3.1",
|
|
21
23
|
"vite": "^6.0.6"
|
|
22
24
|
},
|
|
23
25
|
"devDependencies": {
|
|
24
|
-
"@caatinga/cli": "^2.0.
|
|
26
|
+
"@caatinga/cli": "^2.0.2",
|
|
25
27
|
"@types/react": "^18.3.18",
|
|
26
28
|
"@types/react-dom": "^18.3.5",
|
|
27
29
|
"typescript": "^5.7.2"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createCaatingaClient } from "@caatinga/client";
|
|
2
2
|
import type { CaatingaArtifacts } from "@caatinga/core/browser";
|
|
3
3
|
import artifactsJson from "../caatinga.artifacts.json";
|
|
4
|
-
import * as Counter from "./contracts/generated/counter.js";
|
|
4
|
+
import * as Counter from "./contracts/generated/counter/src/index.js";
|
|
5
5
|
import { stellarWalletAdapter } from "./wallet.js";
|
|
6
6
|
|
|
7
7
|
const artifacts = artifactsJson as CaatingaArtifacts;
|
/package/templates/react-vite-counter/src/contracts/generated/{counter.ts → counter/src/index.ts}
RENAMED
|
File without changes
|