@caatinga/cli 0.2.2 → 0.2.3

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 (39) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +2 -2
  3. package/templates/marketplace-with-token/README.md +0 -21
  4. package/templates/marketplace-with-token/caatinga.artifacts.json +0 -10
  5. package/templates/marketplace-with-token/caatinga.config.ts +0 -30
  6. package/templates/marketplace-with-token/caatinga.template.json +0 -21
  7. package/templates/marketplace-with-token/contracts/marketplace/Cargo.lock +0 -1731
  8. package/templates/marketplace-with-token/contracts/marketplace/Cargo.toml +0 -24
  9. package/templates/marketplace-with-token/contracts/marketplace/src/lib.rs +0 -43
  10. package/templates/marketplace-with-token/contracts/token/Cargo.lock +0 -1731
  11. package/templates/marketplace-with-token/contracts/token/Cargo.toml +0 -24
  12. package/templates/marketplace-with-token/contracts/token/src/lib.rs +0 -13
  13. package/templates/marketplace-with-token/index.html +0 -12
  14. package/templates/marketplace-with-token/package.json +0 -28
  15. package/templates/marketplace-with-token/src/App.tsx +0 -57
  16. package/templates/marketplace-with-token/src/main.ts +0 -12
  17. package/templates/marketplace-with-token/src/main.tsx +0 -10
  18. package/templates/marketplace-with-token/src/styles.css +0 -157
  19. package/templates/marketplace-with-token/tsconfig.json +0 -21
  20. package/templates/marketplace-with-token/vite.config.ts +0 -6
  21. package/templates/react-vite-counter/README.md +0 -58
  22. package/templates/react-vite-counter/caatinga.artifacts.json +0 -10
  23. package/templates/react-vite-counter/caatinga.config.ts +0 -26
  24. package/templates/react-vite-counter/caatinga.template.json +0 -21
  25. package/templates/react-vite-counter/contracts/counter/Cargo.lock +0 -1731
  26. package/templates/react-vite-counter/contracts/counter/Cargo.toml +0 -24
  27. package/templates/react-vite-counter/contracts/counter/src/lib.rs +0 -36
  28. package/templates/react-vite-counter/index.html +0 -12
  29. package/templates/react-vite-counter/package.json +0 -29
  30. package/templates/react-vite-counter/public/.gitkeep +0 -1
  31. package/templates/react-vite-counter/src/App.tsx +0 -18
  32. package/templates/react-vite-counter/src/caatinga.ts +0 -20
  33. package/templates/react-vite-counter/src/components/CounterCard.tsx +0 -66
  34. package/templates/react-vite-counter/src/components/WalletButton.tsx +0 -65
  35. package/templates/react-vite-counter/src/contracts/generated/counter.ts +0 -49
  36. package/templates/react-vite-counter/src/main.tsx +0 -10
  37. package/templates/react-vite-counter/src/styles.css +0 -176
  38. package/templates/react-vite-counter/tsconfig.json +0 -21
  39. package/templates/react-vite-counter/vite.config.ts +0 -6
package/dist/index.js CHANGED
@@ -506,7 +506,7 @@ function registerInvokeCommand(program2) {
506
506
  }
507
507
 
508
508
  // src/version.ts
509
- var CAATINGA_CLI_VERSION = "0.2.2";
509
+ var CAATINGA_CLI_VERSION = "0.2.3";
510
510
 
511
511
  // src/program.ts
512
512
  function createProgram() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caatinga/cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
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": "^0.2.2",
46
+ "@caatinga/core": "^0.2.3",
47
47
  "chalk": "^5.4.1",
48
48
  "commander": "^12.1.0"
49
49
  },
@@ -1,21 +0,0 @@
1
- # __PROJECT_NAME__
2
-
3
- Experimental Caatinga multi-contract template with a real constructor dependency.
4
-
5
- ## Deploy
6
-
7
- ```bash
8
- npm install
9
- npx caatinga build token
10
- npx caatinga build marketplace
11
- npx caatinga deploy --network testnet --source alice
12
- npx caatinga generate token
13
- npx caatinga generate marketplace
14
- ```
15
-
16
- Deploy order:
17
-
18
- 1. `token`
19
- 2. `marketplace`
20
-
21
- `marketplace.deployArgs.tokenContractId` resolves from `${contracts.token.contractId}` after the token deploy writes `caatinga.artifacts.json`. Caatinga passes that value to the contract `__constructor` as `--token_contract_id`.
@@ -1,10 +0,0 @@
1
- {
2
- "project": "__PROJECT_NAME__",
3
- "version": 1,
4
- "networks": {
5
- "testnet": {
6
- "contracts": {},
7
- "dependencyGraph": {}
8
- }
9
- }
10
- }
@@ -1,30 +0,0 @@
1
- import { defineConfig } from "@caatinga/core";
2
-
3
- export default defineConfig({
4
- project: "__PROJECT_NAME__",
5
- defaultNetwork: "testnet",
6
- contracts: {
7
- token: {
8
- path: "./contracts/token",
9
- wasm: "./contracts/token/target/wasm32v1-none/release/token.wasm"
10
- },
11
- marketplace: {
12
- path: "./contracts/marketplace",
13
- wasm: "./contracts/marketplace/target/wasm32v1-none/release/marketplace.wasm",
14
- dependsOn: ["token"],
15
- deployArgs: {
16
- tokenContractId: "${contracts.token.contractId}"
17
- }
18
- }
19
- },
20
- networks: {
21
- testnet: {
22
- rpcUrl: "https://soroban-testnet.stellar.org",
23
- networkPassphrase: "Test SDF Network ; September 2015"
24
- }
25
- },
26
- frontend: {
27
- framework: "vite-react",
28
- bindingsOutput: "./src/contracts/generated"
29
- }
30
- });
@@ -1,21 +0,0 @@
1
- {
2
- "name": "marketplace-with-token",
3
- "version": "0.1.0",
4
- "description": "Experimental multi-contract Soroban template with token dependency injection.",
5
- "caatinga": {
6
- "compatibleCore": "^0.2.2",
7
- "templateVersion": 1
8
- },
9
- "frontend": {
10
- "framework": "vite-react",
11
- "packageManager": "npm"
12
- },
13
- "contracts": {
14
- "path": "contracts",
15
- "default": "marketplace"
16
- },
17
- "files": {
18
- "config": "caatinga.config.ts",
19
- "artifacts": "caatinga.artifacts.json"
20
- }
21
- }