Kaynağa Gözat

Add missing dependencies for cNFT vault

Jonas Hahn 2 yıl önce
ebeveyn
işleme
3cc3133b30

+ 9 - 6
compression/cnft-vault/anchor/package.json

@@ -4,16 +4,19 @@
         "lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
     },
     "dependencies": {
-        "@project-serum/anchor": "^0.26.0"
+        "@metaplex-foundation/mpl-bubblegum": "^0.6.2",
+        "@project-serum/anchor": "^0.26.0",
+        "@solana/spl-account-compression": "^0.1.8",
+        "axios": "^1.4.0"
     },
     "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",
-        "typescript": "^4.3.5",
-        "prettier": "^2.6.2"
+        "chai": "^4.3.4",
+        "mocha": "^9.0.3",
+        "prettier": "^2.6.2",
+        "ts-mocha": "^10.0.0",
+        "typescript": "^4.3.5"
     }
 }

+ 1 - 1
compression/cnft-vault/anchor/tests/scripts/constants.ts

@@ -4,7 +4,7 @@ import { loadWalletKey } from "../utils";
 import { IDL } from "../../target/types/cnft_vault"
 
 export const connection = new anchor.web3.Connection("https://api.devnet.solana.com");
-export const keypair = loadWalletKey("~/.config/solana/id.json");
+export const keypair = loadWalletKey("/Users/jonasmac2/.config/solana/id.json");
 export const wallet = new anchor.Wallet(keypair);
 export const provider = new anchor.AnchorProvider(connection, wallet, {});
 export const programID = new anchor.web3.PublicKey("CNftyK7T8udPwYRzZUMWzbh79rKrz9a5GwV2wv7iEHpk")