Skip to content

Commit

Permalink
fix(lazer): update solana contract setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
Riateche committed Nov 18, 2024
1 parent 629f011 commit a275ba8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
14 changes: 9 additions & 5 deletions lazer/contracts/solana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,23 @@
"fix:format": "prettier --write **/*.*",
"test:format": "prettier --check **/*.*",
"test:anchor": "CARGO_TARGET_DIR=\"$PWD/target\" anchor test",
"test": "pnpm run test:format && pnpm run test:anchor"
"test": "pnpm run test:format && pnpm run test:anchor",
"setup": "anchor build && pnpm ts-node scripts/setup.ts"
},
"dependencies": {
"@coral-xyz/anchor": "^0.30.1"
},
"devDependencies": {
"chai": "^4.3.4",
"mocha": "^9.0.3",
"ts-mocha": "^10.0.0",
"@types/bn.js": "^5.1.0",
"@types/chai": "^4.3.0",
"@types/mocha": "^9.0.0",
"@types/yargs": "^17.0.33",
"chai": "^4.3.4",
"mocha": "^9.0.3",
"prettier": "^2.6.2",
"ts-mocha": "^10.0.0",
"ts-node": "^10.9.2",
"typescript": "^4.3.5",
"prettier": "^2.6.2"
"yargs": "^17.7.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ use {
declare_id!("pytd2yyk641x7ak7mkaasSJVXh6YYZnC7wTmtgAyxPt");

pub mod storage {
use anchor_lang::declare_id;
use anchor_lang::prelude::{pubkey, Pubkey};

declare_id!("3rdJbqfnagQ4yx9HXJViD4zc4xpiSqmFsKpPuSCQVyQL");
pub const ID: Pubkey = pubkey!("3rdJbqfnagQ4yx9HXJViD4zc4xpiSqmFsKpPuSCQVyQL");

#[test]
fn test_storage_id() {
Expand Down
3 changes: 2 additions & 1 deletion lazer/contracts/solana/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"lib": ["es2015"],
"module": "commonjs",
"target": "es6",
"esModuleInterop": true
"esModuleInterop": true,
"resolveJsonModule": true
}
}

0 comments on commit a275ba8

Please sign in to comment.