Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Create permission vault with merkle proof #12

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Binary file modified bun.lockb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"rpcUrl": "https://api.mainnet-beta.solana.com",
"dryRun": true,
"keypairFilePath": "keypair.json",
"computeUnitPriceMicroLamports": 100000,
"baseMint": "3B5wuUrMEi5yATD7on46hKfej3pfmd7t1RKgrsN3pump",
"quoteSymbol": "SOL",
"dynamicAmm": {
"baseAmount": "100",
"quoteAmount": "0.001",
"tradeFeeNumerator": 2500,
"activationType": "timestamp",
"activationPoint": null,
"hasAlphaVault": true
},
"alphaVault": {
"poolType": "dynamic",
"alphaVaultType": "fcfs",
"depositingPoint": 1733547099,
"startVestingPoint": 1733548099,
"endVestingPoint": 1733549099,
"maxDepositCap": 100,
"individualDepositingCap": 1,
"escrowFee": 0,
"whitelistMode": "permissioned_with_authority",
"whitelistFilepath": "./config/whitelist_wallet.csv"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"rpcUrl": "https://api.mainnet-beta.solana.com",
"dryRun": true,
"keypairFilePath": "keypair.json",
"computeUnitPriceMicroLamports": 100000,
"baseMint": "3B5wuUrMEi5yATD7on46hKfej3pfmd7t1RKgrsN3pump",
"quoteSymbol": "SOL",
"dynamicAmm": {
"baseAmount": "100",
"quoteAmount": "0.001",
"tradeFeeNumerator": 2500,
"activationType": "timestamp",
"activationPoint": null,
"hasAlphaVault": true
},
"alphaVault": {
"poolType": "dynamic",
"alphaVaultType": "fcfs",
"depositingPoint": 1733547099,
"startVestingPoint": 1733548099,
"endVestingPoint": 1733549099,
"maxDepositCap": 100,
"individualDepositingCap": 1,
"escrowFee": 0,
"whitelistMode": "permissioned_with_merkle_proof",
"whitelistFilepath": "./config/whitelist_wallet.csv"
}
}
2 changes: 2 additions & 0 deletions config/whitelist_wallet.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
address,maxAmount
ETp2wTykSe3iGYzPCn6upP8NVB7a1pe6WTZidGNJH7KC,0.5
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "bun test",
"create-dynamic-amm-pool": "bun run src/create_pool.ts --config ./config/create_dynamic_amm_pool.json",
"create-dlmm-pool": "bun run src/create_pool.ts --config ./config/create_dlmm_pool.json",
"start-test-validator": "solana-test-validator --bind-address 0.0.0.0 --account-dir ./src/tests/artifacts/accounts --bpf-program LbVRzDTvBDEcrthxfZ4RL6yiq3uZw8bS6MwtdY6UhFQ ./src/tests/artifacts/lb_clmm.so --bpf-program Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB ./src/tests/artifacts/dynamic_amm.so --bpf-program 24Uqj9JCLxUeoC3hGfh5W3s9FM9uCHDS2SG3LYwBpyTi ./src/tests/artifacts/dynamic_vault.so --bpf-program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s ./src/tests/artifacts/metaplex.so --mint bossj3JvwiNK7pvjr149DqdtJxf2gdygbcmEPTkb2F1 --reset"
"start-test-validator": "solana-test-validator --bind-address 0.0.0.0 --account-dir ./src/tests/artifacts/accounts --bpf-program LbVRzDTvBDEcrthxfZ4RL6yiq3uZw8bS6MwtdY6UhFQ ./src/tests/artifacts/lb_clmm.so --bpf-program Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB ./src/tests/artifacts/dynamic_amm.so --bpf-program 24Uqj9JCLxUeoC3hGfh5W3s9FM9uCHDS2SG3LYwBpyTi ./src/tests/artifacts/dynamic_vault.so --bpf-program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s ./src/tests/artifacts/metaplex.so --bpf-program SNPmGgnywBvvrAKMLundzG6StojyHTHDLu7T4sdhP4k ./src/tests/artifacts/alpha_vault.so --mint bossj3JvwiNK7pvjr149DqdtJxf2gdygbcmEPTkb2F1 --reset"
},
"dependencies": {
"@coral-xyz/anchor": "^0.28.0",
Expand All @@ -20,6 +20,7 @@
"@types/jest": "^29.5.14",
"ajv": "^8.17.1",
"bn.js": "^5.2.1",
"csv-parse": "^5.6.0",
"decimal.js": "^10.4.3"
},
"author": "",
Expand Down
Loading
Loading