diff --git a/package-lock.json b/package-lock.json index 36c96c1..11f1a09 100644 --- a/package-lock.json +++ b/package-lock.json @@ -286,6 +286,8 @@ }, "node_modules/@aptos-labs/aptos-cli": { "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@aptos-labs/aptos-cli/-/aptos-cli-0.2.0.tgz", + "integrity": "sha512-6kljJFRsTLXCvgkNhBoOLhVyo7rmih+8+XAtdeciIXkZYwzwVS3TFPLMqBUO2HcY6gYtQQRmTG52R5ihyi/bXA==", "license": "ISC", "bin": { "aptos": "bin/aptos" @@ -4328,6 +4330,7 @@ "integrity": "sha512-PRKjoFgL8tVEc9+oS7eJUv8GNxx8n3+0byH2+m7CP3raYOD6yFKOecuwjVMIJmgfpjp6xH0P0HDMGZAXmSyU0Q==", "deprecated": "Package aptos is no longer supported, please migrate to https://www.npmjs.com/package/@aptos-labs/ts-sdk", "license": "Apache-2.0", + "peer": true, "dependencies": { "@aptos-labs/aptos-client": "^0.1.0", "@noble/hashes": "1.3.3", @@ -4343,6 +4346,7 @@ "node_modules/aptos/node_modules/@noble/hashes": { "version": "1.3.3", "license": "MIT", + "peer": true, "engines": { "node": ">= 16" }, @@ -4353,6 +4357,7 @@ "node_modules/aptos/node_modules/@scure/bip39": { "version": "1.2.1", "license": "MIT", + "peer": true, "dependencies": { "@noble/hashes": "~1.3.0", "@scure/base": "~1.1.0" @@ -13460,8 +13465,11 @@ "packages/smart-contracts": { "name": "@jeton/smart-contracts", "version": "0.0.0", + "dependencies": { + "@jeton/zk-deck": "^0.0.0" + }, "devDependencies": { - "aptos": "^1.21.0" + "@aptos-labs/aptos-cli": "^0.2.0" } }, "packages/tailwindcss-config": { @@ -13550,12 +13558,12 @@ "snarkjs": "^0.7.4" }, "devDependencies": { + "@aptos-labs/aptos-cli": "^0.2.0", "@jeton/typescript-config": "^0.0.0", "@types/chai": "^4.3.18", "@types/chai-as-promised": "^8.0.0", "@types/mocha": "^10.0.7", "@types/snarkjs": "^0.7.8", - "aptos": "^1.21.0", "chai": "^5.1.1", "chai-as-promised": "^8.0.0", "circomlib": "^2.0.5", diff --git a/packages/smart-contracts/package.json b/packages/smart-contracts/package.json index e4d5d03..8417b13 100644 --- a/packages/smart-contracts/package.json +++ b/packages/smart-contracts/package.json @@ -4,10 +4,13 @@ "private": true, "type": "module", "scripts": { - "build": "aptos move compile --move-2 --named-addresses zk_deck=0x420,jeton=0x420", - "test": "aptos move test --move-2 --named-addresses zk_deck=0x420,jeton=0x420" + "move:build": "aptos move compile --move-2 --named-addresses zk_deck=0x420,jeton=0x420", + "move:test": "aptos move test --move-2 --named-addresses zk_deck=0x420,jeton=0x420" }, "devDependencies": { - "aptos": "^1.21.0" + "@aptos-labs/aptos-cli": "^0.2.0" + }, + "dependencies": { + "@jeton/zk-deck": "^0.0.0" } } diff --git a/packages/smart-contracts/turbo.json b/packages/smart-contracts/turbo.json new file mode 100644 index 0000000..2e3ede5 --- /dev/null +++ b/packages/smart-contracts/turbo.json @@ -0,0 +1,9 @@ +{ + "move:build": { + "inputs": ["sources/**", "contracts/Move.toml"], + "outputs": ["build/**"] + }, + "move:test": { + "inputs": ["sources/**", "contracts/Move.toml"] + } +} diff --git a/packages/zk-deck/package.json b/packages/zk-deck/package.json index 7e1fe43..5097eff 100644 --- a/packages/zk-deck/package.json +++ b/packages/zk-deck/package.json @@ -52,12 +52,12 @@ "mocha:test": "mocha src/**/*.test.ts" }, "devDependencies": { + "@aptos-labs/aptos-cli": "^0.2.0", "@jeton/typescript-config": "^0.0.0", "@types/chai": "^4.3.18", "@types/chai-as-promised": "^8.0.0", "@types/mocha": "^10.0.7", "@types/snarkjs": "^0.7.8", - "aptos": "^1.21.0", "chai": "^5.1.1", "chai-as-promised": "^8.0.0", "circomlib": "^2.0.5", diff --git a/packages/zk-deck/turbo.json b/packages/zk-deck/turbo.json index f94dadd..475208f 100644 --- a/packages/zk-deck/turbo.json +++ b/packages/zk-deck/turbo.json @@ -3,10 +3,10 @@ "extends": ["//"], "tasks": { "build": { - "dependsOn": ["circom:build", "typescript:build", "move:build"] + "dependsOn": ["circom:build", "typescript:build"] }, "test": { - "dependsOn": ["mocha:test", "move:test"] + "dependsOn": ["mocha:test"] }, "check": { "dependsOn": ["circom:check"]