Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
SwenSchaeferjohann committed Jan 4, 2025
1 parent db958f0 commit 19861e1
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 30 deletions.
9 changes: 5 additions & 4 deletions js/compressed-token/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lightprotocol/compressed-token",
"version": "0.17.1",
"version": "0.17.2-alpha.0",
"description": "JS client to interact with the compressed-token program",
"sideEffects": false,
"main": "dist/cjs/node/index.cjs",
Expand Down Expand Up @@ -30,11 +30,11 @@
"license": "Apache-2.0",
"peerDependencies": {
"@lightprotocol/stateless.js": "workspace:*",
"@solana/web3.js": ">=1.73.5"
"@solana/web3.js": ">=1.73.5",
"@solana/spl-token": ">=0.3.9"
},
"dependencies": {
"@coral-xyz/borsh": "^0.29.0",
"@solana/spl-token": "0.4.8",
"bn.js": "^5.2.1",
"buffer": "6.0.3"
},
Expand All @@ -51,6 +51,7 @@
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@solana/web3.js": "1.98.0",
"@solana/spl-token": "0.4.8",
"@types/bn.js": "^5.1.5",
"@types/node": "^22.5.5",
"@typescript-eslint/eslint-plugin": "^7.13.1",
Expand Down Expand Up @@ -80,7 +81,7 @@
"test:unit:all": "EXCLUDE_E2E=true vitest run",
"test-all:verbose": "vitest run --reporter=verbose",
"test-validator": "./../../cli/test_bin/run test-validator --prover-run-mode rpc",
"test:e2e:create-mint": "pnpm test-validator && vitest run tests/e2e/create-mint.test.ts",
"test:e2e:create-mint": "pnpm test-validator && NODE_OPTIONS='--trace-deprecation' vitest run tests/e2e/create-mint.test.ts --reporter=verbose",
"test:e2e:layout": "vitest run tests/e2e/layout.test.ts --reporter=verbose",
"test:e2e:create-token-pool": "pnpm test-validator && vitest run tests/e2e/create-token-pool.test.ts",
"test:e2e:mint-to": "pnpm test-validator && vitest run tests/e2e/mint-to.test.ts --reporter=verbose",
Expand Down
1 change: 1 addition & 0 deletions js/compressed-token/src/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
AddressLookupTableProgram,
AccountMeta,
} from '@solana/web3.js';
import { Buffer } from 'buffer';
import BN from 'bn.js';
import {
CompressedProof,
Expand Down
7 changes: 6 additions & 1 deletion js/compressed-token/tests/e2e/create-mint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async function assertCreateMint(
expect(unpackedPoolAccount.delegate).toBe(null);
}

console.log('TEST_TOKEN_DECIMALS');
const TEST_TOKEN_DECIMALS = 2;
describe('createMint', () => {
let rpc: Rpc;
Expand All @@ -52,12 +53,16 @@ describe('createMint', () => {
let mintAuthority: Keypair;

beforeAll(async () => {
console.log('beforeAll');
const lightWasm = await WasmFactory.getInstance();
console.log('lightWasm', lightWasm);
rpc = await getTestRpc(lightWasm);
console.log('TESTrpc', rpc);
payer = await newAccountWithLamports(rpc, 1e9);
console.log('payer', payer);
});

it('should create mint', async () => {
it.only('should create mint', async () => {
mintAuthority = Keypair.generate();
const mintKeypair = Keypair.generate();

Expand Down
4 changes: 2 additions & 2 deletions js/stateless.js/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@lightprotocol/stateless.js",
"version": "0.17.2-alpha.1",
"description": "JavaScript API for Light and ZK Compression",
"description": "JavaScript API for Light & ZK Compression",
"sideEffects": false,
"main": "dist/cjs/node/index.cjs",
"type": "module",
Expand Down Expand Up @@ -38,7 +38,7 @@
"@solana/web3.js": ">=1.73.5"
},
"dependencies": {
"@coral-xyz/borsh": "^0.30.1",
"@coral-xyz/borsh": "^0.29.0",
"@noble/hashes": "1.5.0",
"bn.js": "^5.2.1",
"bs58": "^6.0.0",
Expand Down
73 changes: 50 additions & 23 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 19861e1

Please sign in to comment.