@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.
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/templates/marketplace-with-token/README.md +0 -21
- package/templates/marketplace-with-token/caatinga.artifacts.json +0 -10
- package/templates/marketplace-with-token/caatinga.config.ts +0 -30
- package/templates/marketplace-with-token/caatinga.template.json +0 -21
- package/templates/marketplace-with-token/contracts/marketplace/Cargo.lock +0 -1731
- package/templates/marketplace-with-token/contracts/marketplace/Cargo.toml +0 -24
- package/templates/marketplace-with-token/contracts/marketplace/src/lib.rs +0 -43
- package/templates/marketplace-with-token/contracts/token/Cargo.lock +0 -1731
- package/templates/marketplace-with-token/contracts/token/Cargo.toml +0 -24
- package/templates/marketplace-with-token/contracts/token/src/lib.rs +0 -13
- package/templates/marketplace-with-token/index.html +0 -12
- package/templates/marketplace-with-token/package.json +0 -28
- package/templates/marketplace-with-token/src/App.tsx +0 -57
- package/templates/marketplace-with-token/src/main.ts +0 -12
- package/templates/marketplace-with-token/src/main.tsx +0 -10
- package/templates/marketplace-with-token/src/styles.css +0 -157
- package/templates/marketplace-with-token/tsconfig.json +0 -21
- package/templates/marketplace-with-token/vite.config.ts +0 -6
- package/templates/react-vite-counter/README.md +0 -58
- package/templates/react-vite-counter/caatinga.artifacts.json +0 -10
- package/templates/react-vite-counter/caatinga.config.ts +0 -26
- package/templates/react-vite-counter/caatinga.template.json +0 -21
- package/templates/react-vite-counter/contracts/counter/Cargo.lock +0 -1731
- package/templates/react-vite-counter/contracts/counter/Cargo.toml +0 -24
- package/templates/react-vite-counter/contracts/counter/src/lib.rs +0 -36
- package/templates/react-vite-counter/index.html +0 -12
- package/templates/react-vite-counter/package.json +0 -29
- package/templates/react-vite-counter/public/.gitkeep +0 -1
- package/templates/react-vite-counter/src/App.tsx +0 -18
- package/templates/react-vite-counter/src/caatinga.ts +0 -20
- package/templates/react-vite-counter/src/components/CounterCard.tsx +0 -66
- package/templates/react-vite-counter/src/components/WalletButton.tsx +0 -65
- package/templates/react-vite-counter/src/contracts/generated/counter.ts +0 -49
- package/templates/react-vite-counter/src/main.tsx +0 -10
- package/templates/react-vite-counter/src/styles.css +0 -176
- package/templates/react-vite-counter/tsconfig.json +0 -21
- package/templates/react-vite-counter/vite.config.ts +0 -6
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caatinga/cli",
|
|
3
|
-
"version": "0.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.
|
|
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,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
|
-
}
|