Skip to content

Commit

Permalink
Merge pull request #16 from Quantum3-Labs/clean
Browse files Browse the repository at this point in the history
Clean snfoundry package
  • Loading branch information
jrcarlos2000 authored Mar 28, 2024
2 parents 330319c + f2e2c08 commit 1acc44c
Show file tree
Hide file tree
Showing 6 changed files with 5,815 additions and 3,701 deletions.
6 changes: 3 additions & 3 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
"get-starknet-core": "^3.2.0",
"next": "14.1.3",
"next-themes": "^0.2.1",
"nprogress": "^0.2.0",
"react": "^18",
"react-dom": "^18",
"react-hot-toast": "^2.4.1",
"starknet": "5.25.0",
"nprogress": "^0.2.0"
"starknet": "5.25.0"
},
"devDependencies": {
"@types/nprogress": "^0",
"@types/node": "^20",
"@types/nprogress": "^0",
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.0.1",
Expand Down
6 changes: 0 additions & 6 deletions packages/snfoundry/Scarb.lock

This file was deleted.

6 changes: 0 additions & 6 deletions packages/snfoundry/Scarb.toml

This file was deleted.

4 changes: 2 additions & 2 deletions packages/snfoundry/scripts_js/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const deployContract = async (
.readFileSync(
path.resolve(
__dirname,
`../target/dev/contracts_${contractName}.compiled_contract_class.json`
`../contracts/target/dev/contracts_${contractName}.compiled_contract_class.json`
)
)
.toString("ascii")
Expand All @@ -31,7 +31,7 @@ const deployContract = async (
.readFileSync(
path.resolve(
__dirname,
`../target/dev/contracts_${contractName}.contract_class.json`
`../contracts/target/dev/contracts_${contractName}.contract_class.json`
)
)
.toString("ascii")
Expand Down
4 changes: 2 additions & 2 deletions packages/snfoundry/scripts_js/helpers/deploy-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ process.env.NETWORK = argv.network || "devnet";

// Execute the deploy script
require("child_process").execSync(
"scarb build && node scripts_js/deploy.js --network " +
"cd contracts && scarb build && node ../scripts_js/deploy.js --network " +
process.env.NETWORK +
" && node ./scripts_js/helpers/parseDeployments.js",
" && node ../scripts_js/helpers/parseDeployments.js",
{ stdio: "inherit" }
);
Loading

0 comments on commit 1acc44c

Please sign in to comment.