From 3dec2311d40c8165b1bb6ca08adc138b94f6032a Mon Sep 17 00:00:00 2001 From: Emanuele Cesena Date: Mon, 27 Jan 2025 18:19:21 -0800 Subject: [PATCH] fatcat: stake --- anchor/package.json | 1 + .../programs/glam/src/instructions/jupiter.rs | 10 +- anchor/src/client/base.ts | 4 +- anchor/src/client/jupiter.ts | 15 +- apps/fatcat/package.json | 1 - apps/fatcat/pnpm-lock.yaml | 1403 +---------------- apps/fatcat/src/app/layout.tsx | 2 + apps/fatcat/src/components/ExplorerLink.tsx | 37 + apps/fatcat/src/components/delegate-form.tsx | 61 +- apps/fatcat/src/components/ui/use-toast.ts | 191 +++ apps/fatcat/src/lib/client.ts | 102 +- apps/fatcat/tsconfig.json | 5 +- 12 files changed, 473 insertions(+), 1359 deletions(-) create mode 100644 apps/fatcat/src/components/ExplorerLink.tsx create mode 100644 apps/fatcat/src/components/ui/use-toast.ts diff --git a/anchor/package.json b/anchor/package.json index 4110ac0c..7ed0970d 100644 --- a/anchor/package.json +++ b/anchor/package.json @@ -4,6 +4,7 @@ "description": "TypeScript SDK for GLAM Protocol", "main": "./index.cjs", "module": "./index.esm.js", + "exports": "./src", "homepage": "https://www.glam.systems", "repository": { "type": "git", diff --git a/anchor/programs/glam/src/instructions/jupiter.rs b/anchor/programs/glam/src/instructions/jupiter.rs index 4df85871..e421ed48 100644 --- a/anchor/programs/glam/src/instructions/jupiter.rs +++ b/anchor/programs/glam/src/instructions/jupiter.rs @@ -342,7 +342,7 @@ pub fn init_locked_voter_escrow_handler<'info>(ctx: Context( locker: ctx.accounts.locker.to_account_info(), escrow: ctx.accounts.escrow.to_account_info(), escrow_tokens: ctx.accounts.escrow_jup_ata.to_account_info(), - payer: ctx.accounts.vault.to_account_info(), + payer: ctx.accounts.signer.to_account_info(), source_tokens: ctx.accounts.vault_jup_ata.to_account_info(), token_program: ctx.accounts.token_program.to_account_info(), }, @@ -575,7 +575,7 @@ pub fn withdraw_all_staked_jup_handler<'info>(ctx: Context escrow_owner: ctx.accounts.vault.to_account_info(), escrow_tokens: ctx.accounts.escrow_jup_ata.to_account_info(), destination_tokens: ctx.accounts.vault_jup_ata.to_account_info(), - payer: ctx.accounts.vault.to_account_info(), + payer: ctx.accounts.signer.to_account_info(), token_program: ctx.accounts.token_program.to_account_info(), }, vault_signer_seeds, @@ -633,7 +633,7 @@ pub fn withdraw_partial_unstaking_handler<'info>( partial_unstake: ctx.accounts.partial_unstake.to_account_info(), escrow_tokens: ctx.accounts.escrow_jup_ata.to_account_info(), destination_tokens: ctx.accounts.vault_jup_ata.to_account_info(), - payer: ctx.accounts.vault.to_account_info(), + payer: ctx.accounts.signer.to_account_info(), token_program: ctx.accounts.token_program.to_account_info(), }, vault_signer_seeds, @@ -678,7 +678,7 @@ pub fn new_vote_handler<'info>(ctx: Context) -> Result<()> { JupNewVote { proposal: ctx.accounts.proposal.to_account_info(), vote: ctx.accounts.vote.to_account_info(), - payer: ctx.accounts.vault.to_account_info(), + payer: ctx.accounts.signer.to_account_info(), system_program: ctx.accounts.system_program.to_account_info(), }, vault_signer_seeds, diff --git a/anchor/src/client/base.ts b/anchor/src/client/base.ts index ce084978..d785f5da 100644 --- a/anchor/src/client/base.ts +++ b/anchor/src/client/base.ts @@ -141,7 +141,9 @@ export class BaseClient { isPhantom(): boolean { // TODO: Phantom can automatically estimates fees // https://docs.phantom.app/developer-powertools/solana-priority-fees#how-phantom-applies-priority-fees-to-dapp-transactions - return false; + return ( + window?.phantom?.solana?.isPhantom && window?.phantom?.solana?.isConnected + ); } /** diff --git a/anchor/src/client/jupiter.ts b/anchor/src/client/jupiter.ts index 941b9694..afd7db06 100644 --- a/anchor/src/client/jupiter.ts +++ b/anchor/src/client/jupiter.ts @@ -125,7 +125,8 @@ export class JupiterClient { const escrowAccountInfo = await this.base.provider.connection.getAccountInfo(escrow); const escrowCreated = escrowAccountInfo ? true : false; - const preInstructions = []; + const preInstructions = txOptions.preInstructions || []; + console.log("preInstructions", preInstructions); if (!escrowCreated) { console.log("Will create escrow account:", escrow.toBase58()); preInstructions.push( @@ -149,7 +150,7 @@ export class JupiterClient { ), ); - return await this.base.program.methods + const tx = await this.base.program.methods .increaseLockedAmount(amount) .accounts({ state: statePda, @@ -159,7 +160,15 @@ export class JupiterClient { vaultJupAta, }) .preInstructions(preInstructions) - .rpc(); + .transaction(); + + const vTx = await this.base.intoVersionedTransaction({ + tx, + lookupTables: [], + ...txOptions, + }); + + return await this.base.sendAndConfirm(vTx); } public async unstakeJup(statePda: PublicKey, txOptions: TxOptions = {}) { diff --git a/apps/fatcat/package.json b/apps/fatcat/package.json index 33edef65..0bee51f2 100644 --- a/apps/fatcat/package.json +++ b/apps/fatcat/package.json @@ -9,7 +9,6 @@ "lint": "next lint" }, "dependencies": { - "@glamsystems/glam-sdk": "file:../../anchor", "@heroicons/react": "^2.1.5", "@hookform/resolvers": "^3.9.1", "@metaplex-foundation/mpl-toolbox": "^0.9.4", diff --git a/apps/fatcat/pnpm-lock.yaml b/apps/fatcat/pnpm-lock.yaml index 9f911351..7cf8150d 100644 --- a/apps/fatcat/pnpm-lock.yaml +++ b/apps/fatcat/pnpm-lock.yaml @@ -8,9 +8,6 @@ importers: .: dependencies: - '@glamsystems/glam-sdk': - specifier: ^0.1.5 - version: 0.1.5(bn.js@5.2.1)(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(jsbi@3.2.5)(typescript@5.7.2)(utf-8-validate@5.0.10) '@heroicons/react': specifier: ^2.1.5 version: 2.2.0(react@19.0.0-rc.1) @@ -850,60 +847,6 @@ packages: resolution: {integrity: sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA==} engines: {node: '>=6.9.0'} - '@brokerloop/ttlcache@3.2.3': - resolution: {integrity: sha512-kZWoyJGBYTv1cL5oHBYEixlJysJBf2RVnub3gbclD+dwaW9aKubbHzbZ9q1q6bONosxaOqMsoBorOrZKzBDiqg==} - - '@coral-xyz/anchor-errors@0.30.1': - resolution: {integrity: sha512-9Mkradf5yS5xiLWrl9WrpjqOrAV+/W2RQHDlbnAZBivoGpOs1ECjoDCkVk4aRG8ZdiFiB8zQEVlxf+8fKkmSfQ==} - engines: {node: '>=10'} - - '@coral-xyz/anchor@0.27.0': - resolution: {integrity: sha512-+P/vPdORawvg3A9Wj02iquxb4T0C5m4P6aZBVYysKl4Amk+r6aMPZkUhilBkD6E4Nuxnoajv3CFykUfkGE0n5g==} - engines: {node: '>=11'} - - '@coral-xyz/anchor@0.28.0': - resolution: {integrity: sha512-kQ02Hv2ZqxtWP30WN1d4xxT4QqlOXYDxmEd3k/bbneqhV3X5QMO4LAtoUFs7otxyivOgoqam5Il5qx81FuI4vw==} - engines: {node: '>=11'} - - '@coral-xyz/anchor@0.29.0': - resolution: {integrity: sha512-eny6QNG0WOwqV0zQ7cs/b1tIuzZGmP7U7EcH+ogt4Gdbl8HDmIYVMh/9aTmYZPaFWjtUaI8qSn73uYEXWfATdA==} - engines: {node: '>=11'} - - '@coral-xyz/anchor@0.30.1': - resolution: {integrity: sha512-gDXFoF5oHgpriXAaLpxyWBHdCs8Awgf/gLHIo6crv7Aqm937CNdY+x+6hoj7QR5vaJV7MxWSQ0NGFzL3kPbWEQ==} - engines: {node: '>=11'} - - '@coral-xyz/borsh@0.27.0': - resolution: {integrity: sha512-tJKzhLukghTWPLy+n8K8iJKgBq1yLT/AxaNd10yJrX8mI56ao5+OFAKAqW/h0i79KCvb4BK0VGO5ECmmolFz9A==} - engines: {node: '>=10'} - peerDependencies: - '@solana/web3.js': ^1.68.0 - - '@coral-xyz/borsh@0.28.0': - resolution: {integrity: sha512-/u1VTzw7XooK7rqeD7JLUSwOyRSesPUk0U37BV9zK0axJc1q0nRbKFGFLYCQ16OtdOJTTwGfGp11Lx9B45bRCQ==} - engines: {node: '>=10'} - peerDependencies: - '@solana/web3.js': ^1.68.0 - - '@coral-xyz/borsh@0.29.0': - resolution: {integrity: sha512-s7VFVa3a0oqpkuRloWVPdCK7hMbAMY270geZOGfCnaqexrP5dTIpbEHL33req6IYPPJ0hYa71cdvJ1h6V55/oQ==} - engines: {node: '>=10'} - peerDependencies: - '@solana/web3.js': ^1.68.0 - - '@coral-xyz/borsh@0.30.1': - resolution: {integrity: sha512-aaxswpPrCFKl8vZTbxLssA2RvwX2zmKLlRCIktJOwW+VpVwYtXRtlWiIP+c2pPRKneiTiWCN2GEMSH9j1zTlWQ==} - engines: {node: '>=10'} - peerDependencies: - '@solana/web3.js': ^1.68.0 - - '@drift-labs/sdk@2.96.0-beta.14': - resolution: {integrity: sha512-id2k5O8cXAfC1mhNWmafQTqlHc9sIWfZtjlMDs/yW/zUGj+4mHW0Z3uFMgMGBK/CFPClbs+VV0tN4ql55EBK6g==} - engines: {node: '>=18'} - - '@ellipsis-labs/phoenix-sdk@1.4.5': - resolution: {integrity: sha512-vEYgMXuV5/mpnpEi+VK4HO8f6SheHtVLdHHlULBiDN1eECYmL67gq+/cRV7Ar6jAQ7rJZL7xBxhbUW5kugMl6A==} - '@emnapi/runtime@1.3.1': resolution: {integrity: sha512-kEBmG8KyqtxJZv+ygbEim+KCGtIq1fC22Ms3S4ziXmYKm8uyoLX0MHONVKwp+9opg390VaKRNt4a7A9NwmpNhw==} @@ -1041,19 +984,6 @@ packages: '@fractalwagmi/solana-wallet-adapter@0.1.1': resolution: {integrity: sha512-oTZLEuD+zLKXyhZC5tDRMPKPj8iaxKLxXiCjqRfOo4xmSbS2izGRWLJbKMYYsJysn/OI3UJ3P6CWP8WUWi0dZg==} - '@glamsystems/glam-sdk@0.1.5': - resolution: {integrity: sha512-wFf6y7hDn0eVfdo3p46kIdYk4bHp56jT071vXGCOtGWeCN5kPHSJ1qETMjlD4thVqGlta0j75j9Z5LSqjZlrBg==} - engines: {node: '>=20.18.0'} - - '@grpc/grpc-js@1.12.5': - resolution: {integrity: sha512-d3iiHxdpg5+ZcJ6jnDSOT8Z0O0VMVGy34jAnYLUX8yd36b1qn8f1TwOA/Lc7TsOh03IkPJ38eGI5qD2EjNkoEA==} - engines: {node: '>=12.10.0'} - - '@grpc/proto-loader@0.7.13': - resolution: {integrity: sha512-AiXO/bfe9bmxBjxxtYxFAXGZvMaN5s8kO+jBHAJCON8rJoB5YS/D6X7ZNc6XQkuHNmyl4CYaMI1fJ/Gn27RGGw==} - engines: {node: '>=6'} - hasBin: true - '@heroicons/react@2.2.0': resolution: {integrity: sha512-LMcepvRaS9LYHJGsF0zzmgKCUim/X3N/DQKc4jepAXJ7l8QxJ1PmxJzqplF2Z3FE4PqBAIGyJAQ/w4B5dsqbtQ==} peerDependencies: @@ -1248,9 +1178,6 @@ packages: '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} - '@js-sdsl/ordered-map@4.4.2': - resolution: {integrity: sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==} - '@keystonehq/alias-sampling@0.1.2': resolution: {integrity: sha512-5ukLB3bcgltgaFfQfYKYwHDUbwHicekYo53fSEa7xhVkAEqsA74kxdIwoBIURmGUtXe3EVIRm4SYlgcrt2Ri0w==} @@ -1281,21 +1208,6 @@ packages: '@ledgerhq/logs@6.12.0': resolution: {integrity: sha512-ExDoj1QV5eC6TEbMdLUMMk9cfvNKhhv5gXol4SmULRVCx/3iyCPhJ74nsb3S0Vb+/f+XujBEj3vQn5+cwS0fNA==} - '@marinade.finance/directed-stake-sdk@0.1.0': - resolution: {integrity: sha512-jpdz5XYMa/5tTe5W2isUWT8P38X49KeFNrqYlzPouhYPxqjdt4a/aSzuMqhP5s1xILFxRmqpZIv02iYeH0xjiA==} - engines: {node: '>10'} - peerDependencies: - '@solana/web3.js': ^1.74.0 - bn.js: ^5.2.1 - jsbi: ^4.3.0 - - '@marinade.finance/marinade-ts-sdk@5.0.15': - resolution: {integrity: sha512-sfTtuNLEP+axZWRYwN7ZACQJOFQiDm0kgwgfwKJIWrFSmLtMV7zmBlwD5sNN6B74Wra9Tngt5kJ5aBdohss3yQ==} - engines: {anchor: '>=0.28.0', node: '>=16.0.0'} - - '@marinade.finance/native-staking-sdk@1.3.1': - resolution: {integrity: sha512-EgruiCf/yK7vE+14LeBWJ+0tFh37ejOCDd/MZ1xQdkKRROdIF7WLH8UuWg5rDgTnMQUVA9+EMNk+V+rYXuWEtw==} - '@metamask/rpc-errors@5.1.1': resolution: {integrity: sha512-JjZnDi2y2CfvbohhBl+FOQRzmFlJpybcQlIk37zEX8B96eVSPbH/T8S0p7cSF8IE33IWx6JkD8Ycsd+2TXFxCw==} engines: {node: '>=16.0.0'} @@ -1304,27 +1216,11 @@ packages: resolution: {integrity: sha512-yfmE79bRQtnMzarnKfX7AEJBwFTxvTyw3nBQlu/5rmGXrjAeAMltoGxO62TFurxrQAFMNa/fEjIHNvungZp0+g==} engines: {node: '>=14.0.0'} - '@metaplex-foundation/beet-solana@0.3.1': - resolution: {integrity: sha512-tgyEl6dvtLln8XX81JyBvWjIiEcjTkUwZbrM5dIobTmoqMuGewSyk9CClno8qsMsFdB5T3jC91Rjeqmu/6xk2g==} - - '@metaplex-foundation/beet@0.4.0': - resolution: {integrity: sha512-2OAKJnLatCc3mBXNL0QmWVQKAWK2C7XDfepgL0p/9+8oSx4bmRAFHFqptl1A/C0U5O3dxGwKfmKluW161OVGcA==} - - '@metaplex-foundation/beet@0.7.2': - resolution: {integrity: sha512-K+g3WhyFxKPc0xIvcIjNyV1eaTVJTiuaHZpig7Xx0MuYRMoJLLvhLTnUXhFdR5Tu2l2QSyKwfyXDgZlzhULqFg==} - '@metaplex-foundation/mpl-toolbox@0.9.4': resolution: {integrity: sha512-fd6JxfoLbj/MM8FG2x91KYVy1U6AjBQw4qjt7+Da3trzQaWnSaYHDcYRG/53xqfvZ9qofY1T2t53GXPlD87lnQ==} peerDependencies: '@metaplex-foundation/umi': '>= 0.8.2 < 1' - '@metaplex-foundation/rustbin@0.3.5': - resolution: {integrity: sha512-m0wkRBEQB/8krwMwKBvFugufZtYwMXiGHud2cTDAv+aGXK4M90y0Hx67/wpu+AqqoQfdV8VM9YezUOHKD+Z5kA==} - - '@metaplex-foundation/solita@0.12.2': - resolution: {integrity: sha512-oczMfE43NNHWweSqhXPTkQBUbap/aAiwjDQw8zLKNnd/J8sXr/0+rKcN5yJIEgcHeKRkp90eTqkmt2WepQc8yw==} - hasBin: true - '@metaplex-foundation/umi-bundle-defaults@0.9.2': resolution: {integrity: sha512-kV3tfvgvRjVP1p9OFOtH+ibOtN9omVJSwKr0We4/9r45e5LTj+32su0V/rixZUkG1EZzzOYBsxhtIE0kIw/Hrw==} peerDependencies: @@ -1475,9 +1371,6 @@ packages: resolution: {integrity: sha512-j84kjAbzEnQHaSIhRPUmB3/eVXu2k3dKPl2LOrR8fSOIL+89U+7lV117EWHtq/GHM3ReGHM46iRBdZfpc4HRUQ==} engines: {node: ^14.21.3 || >=16} - '@noble/ed25519@1.7.3': - resolution: {integrity: sha512-iR8GBkDt0Q3GyaVcIu7mSsVIqnFbkbRzGLWlvhwunacoLwt4J3swfKhfaM6rN6WY+TBGoYT1GtT1mIh2/jGbRQ==} - '@noble/hashes@1.4.0': resolution: {integrity: sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==} engines: {node: '>= 16'} @@ -1502,9 +1395,6 @@ packages: resolution: {integrity: sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==} engines: {node: '>=12.4.0'} - '@openbook-dex/openbook-v2@0.2.10': - resolution: {integrity: sha512-JOroVQHeia+RbghpluDJB5psUIhdhYRPLu0zWoG0h5vgDU4SjXwlcC+LJiIa2HVPasvZjWuCtlKWFyrOS75lOA==} - '@particle-network/analytics@1.0.2': resolution: {integrity: sha512-E4EpTRYcfNOkxj+bgNdQydBrvdLGo4HfVStZCuOr3967dYek30r6L7Nkaa9zJXRE2eGT4lPvcAXDV2WxDZl/Xg==} @@ -1527,20 +1417,6 @@ packages: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} - '@project-serum/anchor@0.11.1': - resolution: {integrity: sha512-oIdm4vTJkUy6GmE6JgqDAuQPKI7XM4TPJkjtoIzp69RZe0iAD9JP2XHx7lV1jLdYXeYHqDXfBt3zcq7W91K6PA==} - engines: {node: '>=11'} - - '@project-serum/borsh@0.2.5': - resolution: {integrity: sha512-UmeUkUoKdQ7rhx6Leve1SssMR/Ghv8qrEiyywyxSWg7ooV7StdpPBhciiy5eB3T0qU1BXvdRNC8TdrkxK7WC5Q==} - engines: {node: '>=10'} - peerDependencies: - '@solana/web3.js': ^1.2.0 - - '@project-serum/serum@0.13.65': - resolution: {integrity: sha512-BHRqsTqPSfFB5p+MgI2pjvMBAQtO8ibTK2fYY96boIFkCI3TTwXDt2gUmspeChKO2pqHr5aKevmexzAcXxrSRA==} - engines: {node: '>=10'} - '@project-serum/sol-wallet-adapter@0.2.6': resolution: {integrity: sha512-cpIb13aWPW8y4KzkZAPDgw+Kb+DXjCC6rZoH74MGm3I/6e/zKyGnfAuW5olb2zxonFqsYgnv7ev8MQnvSgJ3/g==} engines: {node: '>=10'} @@ -1577,23 +1453,6 @@ packages: '@protobufjs/utf8@1.1.0': resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==} - '@pythnetwork/client@2.22.0': - resolution: {integrity: sha512-Cyv23YqewKUL1pcm99jfmdetUa2aaUXjyRF9jvSeFcY895FddRu7uSWftYiaevsnx7vn4WbJgQR6ExxH+aONow==} - peerDependencies: - '@solana/web3.js': ^1.30.2 - - '@pythnetwork/client@2.5.3': - resolution: {integrity: sha512-NBLxPnA6A3tZb/DYUooD4SO63UJ70s9DzzFPGXcQNBR9itcycp7aaV+UA5oUPloD/4UHL9soo2fRuDVur0gmhA==} - - '@pythnetwork/price-service-sdk@1.8.0': - resolution: {integrity: sha512-tFZ1thj3Zja06DzPIX2dEWSi7kIfIyqreoywvw5NQ3Z1pl5OJHQGMEhxt6Li3UCGSp2ooYZS9wl8/8XfrfrNSA==} - - '@pythnetwork/pyth-solana-receiver@0.7.0': - resolution: {integrity: sha512-OoEAHh92RPRdKkfjkcKGrjC+t0F3SEL754iKFmixN9zyS8pIfZSVfFntmkHa9pWmqEMxdx/i925a8B5ny8Tuvg==} - - '@pythnetwork/solana-utils@0.4.3': - resolution: {integrity: sha512-aMiVPtye3H2XFWXV8Hlgyp+oHXsAdt6d2FG0xhdTGDWssTnL4e9r7I8XBcucKHQkMDUhLN1bNeNOZcSBVyp9mg==} - '@radix-ui/number@1.1.0': resolution: {integrity: sha512-V3gRzhVNU1ldS5XhAPTom1fOIo4ccrjjJgmE+LI2h/WaFpHmx0MQApT+KZHnx8abG6Avtfcz4WoEciMnpFT3HQ==} @@ -2150,10 +2009,6 @@ packages: peerDependencies: typescript: '>=5' - '@solana/buffer-layout-utils@0.2.0': - resolution: {integrity: sha512-szG4sxgJGktbuZYDg2FfNmkMi0DYQoVjN2h7ta1W1hPrwzarcFLBq9UpX1UjNXsNpT9dn+chgprtWGioUAr4/g==} - engines: {node: '>= 10'} - '@solana/buffer-layout@4.0.1': resolution: {integrity: sha512-E1ImOIAD1tBZFRdjeM4/pzTiTApC0AOBGwyAMS4fwIodCWArzJ3DWdoh8cKxeFM2fElkxBh2Aqts1BPC373rHA==} engines: {node: '>=5.10'} @@ -2164,33 +2019,18 @@ packages: peerDependencies: typescript: '>=5' - '@solana/codecs-core@2.0.0-rc.1': - resolution: {integrity: sha512-bauxqMfSs8EHD0JKESaNmNuNvkvHSuN3bbWAF5RjOfDu2PugxHrvRebmYauvSumZ3cTfQ4HJJX6PG5rN852qyQ==} - peerDependencies: - typescript: '>=5' - '@solana/codecs-data-structures@2.0.0': resolution: {integrity: sha512-N98Y4jsrC/XeOgqrfsGqcOFIaOoMsKdAxOmy5oqVaEN67YoGSLNC9ROnqamOAOrsZdicTWx9/YLKFmQi9DPh1A==} engines: {node: '>=20.18.0'} peerDependencies: typescript: '>=5' - '@solana/codecs-data-structures@2.0.0-rc.1': - resolution: {integrity: sha512-rinCv0RrAVJ9rE/rmaibWJQxMwC5lSaORSZuwjopSUE6T0nb/MVg6Z1siNCXhh/HFTOg0l8bNvZHgBcN/yvXog==} - peerDependencies: - typescript: '>=5' - '@solana/codecs-numbers@2.0.0': resolution: {integrity: sha512-r66i7VzJO1MZkQWZIAI6jjJOFVpnq0+FIabo2Z2ZDtrArFus/SbSEv543yCLeD2tdR/G/p+1+P5On10qF50Y1Q==} engines: {node: '>=20.18.0'} peerDependencies: typescript: '>=5' - '@solana/codecs-numbers@2.0.0-rc.1': - resolution: {integrity: sha512-J5i5mOkvukXn8E3Z7sGIPxsThRCgSdgTWJDQeZvucQ9PT6Y3HiVXJ0pcWiOWAoQ3RX8e/f4I3IC+wE6pZiJzDQ==} - peerDependencies: - typescript: '>=5' - '@solana/codecs-strings@2.0.0': resolution: {integrity: sha512-dNqeCypsvaHcjW86H0gYgAZGGkKVBeKVeh7WXlOZ9kno7PeQ2wNkpccyzDfuzaIsKv+HZUD3v/eo86GCvnKazQ==} engines: {node: '>=20.18.0'} @@ -2198,23 +2038,12 @@ packages: fastestsmallesttextencoderdecoder: ^1.0.22 typescript: '>=5' - '@solana/codecs-strings@2.0.0-rc.1': - resolution: {integrity: sha512-9/wPhw8TbGRTt6mHC4Zz1RqOnuPTqq1Nb4EyuvpZ39GW6O2t2Q7Q0XxiB3+BdoEjwA2XgPw6e2iRfvYgqty44g==} - peerDependencies: - fastestsmallesttextencoderdecoder: ^1.0.22 - typescript: '>=5' - '@solana/codecs@2.0.0': resolution: {integrity: sha512-xneIG5ppE6WIGaZCK7JTys0uLhzlnEJUdBO8nRVIyerwH6aqCfb0fGe7q5WNNYAVDRSxC0Pc1TDe1hpdx3KWmQ==} engines: {node: '>=20.18.0'} peerDependencies: typescript: '>=5' - '@solana/codecs@2.0.0-rc.1': - resolution: {integrity: sha512-qxoR7VybNJixV51L0G1RD2boZTcxmwUWnKCaJJExQ5qNKwbpSyDdWfFJfM5JhGyKe9DnPVOZB+JHWXnpbZBqrQ==} - peerDependencies: - typescript: '>=5' - '@solana/errors@2.0.0': resolution: {integrity: sha512-IHlaPFSy4lvYco1oHJ3X8DbchWwAwJaL/4wZKnF1ugwZ0g0re8wbABrqNOe/jyZ84VU9Z14PYM8W9oDAebdJbw==} engines: {node: '>=20.18.0'} @@ -2222,12 +2051,6 @@ packages: peerDependencies: typescript: '>=5' - '@solana/errors@2.0.0-rc.1': - resolution: {integrity: sha512-ejNvQ2oJ7+bcFAYWj225lyRkHnixuAeb7RQCixm+5mH4n1IA4Qya/9Bmfy5RAAHQzxK43clu3kZmL5eF9VGtYQ==} - hasBin: true - peerDependencies: - typescript: '>=5' - '@solana/fast-stable-stringify@2.0.0': resolution: {integrity: sha512-EsIx9z+eoxOmC+FpzhEb+H67CCYTbs/omAqXD4EdEYnCHWrI1li1oYBV+NoKzfx8fKlX+nzNB7S/9kc4u7Etpw==} engines: {node: '>=20.18.0'} @@ -2258,11 +2081,6 @@ packages: peerDependencies: typescript: '>=5' - '@solana/options@2.0.0-rc.1': - resolution: {integrity: sha512-mLUcR9mZ3qfHlmMnREdIFPf9dpMc/Bl66tLSOOWxw4ml5xMT2ohFn7WGqoKcu/UHkT9CrC6+amEdqCNvUqI7AA==} - peerDependencies: - typescript: '>=5' - '@solana/programs@2.0.0': resolution: {integrity: sha512-JPIKB61pWfODnsvEAaPALc6vR5rn7kmHLpFaviWhBtfUlEVgB8yVTR0MURe4+z+fJCPRV5wWss+svA4EeGDYzQ==} engines: {node: '>=20.18.0'} @@ -2354,52 +2172,6 @@ packages: peerDependencies: typescript: '>=5' - '@solana/spl-memo@0.2.5': - resolution: {integrity: sha512-0Zx5t3gAdcHlRTt2O3RgGlni1x7vV7Xq7j4z9q8kKOMgU03PyoTbFQ/BSYCcICHzkaqD7ZxAiaJ6dlXolg01oA==} - engines: {node: '>=16'} - peerDependencies: - '@solana/web3.js': ^1.91.6 - - '@solana/spl-stake-pool@0.6.5': - resolution: {integrity: sha512-gAYjX4LlRem3Bje1csZOOBStX8wAH8b8tu4sublUTIoJxLMdEbXqnwc8RJ2lAsmFkjxxomEM9Hk65F8jcvv15A==} - - '@solana/spl-stake-pool@1.1.8': - resolution: {integrity: sha512-g/d8pFPI9NI1QWObSCkzMz4QpEUepWRLSERGV3gaAwfxWb3mG5I0KQqDW5UgZ8iT9srhzg7me+gG4ad9toQsNg==} - - '@solana/spl-token-group@0.0.7': - resolution: {integrity: sha512-V1N/iX7Cr7H0uazWUT2uk27TMqlqedpXHRqqAbVO2gvmJyT0E0ummMEAVQeXZ05ZhQ/xF39DLSdBp90XebWEug==} - engines: {node: '>=16'} - peerDependencies: - '@solana/web3.js': ^1.95.3 - - '@solana/spl-token-metadata@0.1.6': - resolution: {integrity: sha512-7sMt1rsm/zQOQcUWllQX9mD2O6KhSAtY1hFR2hfFwgqfFWzSY9E9GDvFVNYUI1F0iQKcm6HmePU9QbKRXTEBiA==} - engines: {node: '>=16'} - peerDependencies: - '@solana/web3.js': ^1.95.3 - - '@solana/spl-token@0.1.8': - resolution: {integrity: sha512-LZmYCKcPQDtJgecvWOgT/cnoIQPWjdH+QVyzPcFvyDUiT0DiRjZaam4aqNUyvchLFhzgunv3d9xOoyE34ofdoQ==} - engines: {node: '>= 10'} - - '@solana/spl-token@0.3.11': - resolution: {integrity: sha512-bvohO3rIMSVL24Pb+I4EYTJ6cL82eFpInEXD/I8K8upOGjpqHsKUoAempR/RnUlI1qSFNyFlWJfu6MNUgfbCQQ==} - engines: {node: '>=16'} - peerDependencies: - '@solana/web3.js': ^1.88.0 - - '@solana/spl-token@0.3.7': - resolution: {integrity: sha512-bKGxWTtIw6VDdCBngjtsGlKGLSmiu/8ghSt/IOYJV24BsymRbgq7r12GToeetpxmPaZYLddKwAz7+EwprLfkfg==} - engines: {node: '>=16'} - peerDependencies: - '@solana/web3.js': ^1.47.4 - - '@solana/spl-token@0.4.9': - resolution: {integrity: sha512-g3wbj4F4gq82YQlwqhPB0gHFXfgsC6UmyGMxtSLf/BozT/oKd59465DbnlUK8L8EcimKMavxsVAMoLcEdeCicg==} - engines: {node: '>=16'} - peerDependencies: - '@solana/web3.js': ^1.95.3 - '@solana/subscribable@2.0.0': resolution: {integrity: sha512-Ex7d2GnTSNVMZDU3z6nKN4agRDDgCgBDiLnmn1hmt0iFo3alr3gRAqiqa7qGouAtYh9/29pyc8tVJCijHWJPQQ==} engines: {node: '>=20.18.0'} @@ -2718,12 +2490,6 @@ packages: resolution: {integrity: sha512-o7wk+zr5/QgyE393cGRC04K1hacR4EkBu3MB925ddaLvCVaXjwr2asgdviGzN9PEm3FiEJp3sMmMKYHFnwOITQ==} engines: {node: '>=16'} - '@solana/web3.js@1.77.4': - resolution: {integrity: sha512-XdN0Lh4jdY7J8FYMyucxCwzn6Ga2Sr1DHDWRbqVzk7ZPmmpSPOVWHzO67X1cVT+jNi1D6gZi2tgjHgDPuj6e9Q==} - - '@solana/web3.js@1.92.3': - resolution: {integrity: sha512-NVBWvb9zdJIAx6X+caXaIICCEQfQaQ8ygykCjJW4u2z/sIKcvPj3ZIIllnx0MWMc3IxGq15ozGYDOQIMbwUcHw==} - '@solana/web3.js@1.98.0': resolution: {integrity: sha512-nz3Q5OeyGFpFCR+erX2f6JPt3sKhzhYcSycBCSPkWjzSVDh/Rr1FqTVMRe58FKO16/ivTUcuJjeS5MyBvpkbzA==} @@ -2743,12 +2509,6 @@ packages: peerDependencies: '@solana/web3.js': '*' - '@solworks/soltoolkit-sdk@0.0.23': - resolution: {integrity: sha512-O6lXT3EBR4gmcjt0/33i97VMHVEImwXGi+4TNrDDdifn3tyOUB7V6PR1VGxlavQb9hqmVai3xhedg/rmbQzX7w==} - - '@soncodi/signal@2.0.7': - resolution: {integrity: sha512-zA2oZluZmVvgZEDjF243KWD1S2J+1SH1MVynI0O1KRgDt1lU8nqk7AK3oQfW/WpwT51L5waGSU0xKF/9BTP5Cw==} - '@stablelib/aead@1.0.1': resolution: {integrity: sha512-q39ik6sxGHewqtO0nP4BuSe3db5G1fEJE8ukvngS2gLkBXyy6E7pLubhbYgnkDFv6V8cWaxcE4Xn0t6LWcJkyg==} @@ -2812,14 +2572,6 @@ packages: '@swc/helpers@0.5.15': resolution: {integrity: sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==} - '@switchboard-xyz/common@2.5.16': - resolution: {integrity: sha512-j2WK7Mv47XvGyMlt37bc4Hy/bRhSrDvhOlD7ykotoyUX5jrulnx0ege+8LIoKNGD8TMltsIEh7Ea24xY8EL54A==} - engines: {node: '>=12'} - - '@switchboard-xyz/on-demand@1.2.32': - resolution: {integrity: sha512-cS/7rkNg1tu6dtypMQZw6avsTF4DbNYOfA8tNq0rjCpipNTtQZp51UtkGSgIu8qfH8ebSBgpPxkUXlWpXYk3CA==} - engines: {node: '>= 18'} - '@toruslabs/base-controllers@2.9.0': resolution: {integrity: sha512-rKc+bR4QB/wdbH0CxLZC5e2PUZcIgkr9yY7TMd3oIffDklaYBnsuC5ES2/rgK1aRUDRWz+qWbTwLqsY6PlT37Q==} peerDependencies: @@ -2982,9 +2734,6 @@ packages: '@types/babel__traverse@7.20.6': resolution: {integrity: sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==} - '@types/bn.js@5.1.6': - resolution: {integrity: sha512-Xh8vSwUeMKeYYrj3cX4lGQgFSF/N03r+tv4AiLl1SucqV+uTQpxRcnM8AkXKHwYP9ZPXOYXRr2KPXpVlIvqh9w==} - '@types/connect@3.4.38': resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} @@ -3012,18 +2761,12 @@ packages: '@types/ms@0.7.34': resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==} - '@types/node-fetch@2.6.12': - resolution: {integrity: sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==} - '@types/node-forge@1.3.11': resolution: {integrity: sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==} '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@18.19.74': - resolution: {integrity: sha512-HMwEkkifei3L605gFdV+/UwtpxP6JSzM+xFk2Ia6DNFSwSVBRh9qp5Tgf4lNFOMfPVuU0WnkcWpXZpgn5ufO4A==} - '@types/node@22.10.5': resolution: {integrity: sha512-F8Q+SeGimwOo86fiovQh8qiXfFEh2/ocYv7tU5pJ3EXMSSxk1Joj5wefpFK2fHTf/N6HKGSxIDBT9f3gCxXPkQ==} @@ -3302,14 +3045,6 @@ packages: ajv@6.12.6: resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} - anchor-bankrun@0.3.0: - resolution: {integrity: sha512-PYBW5fWX+iGicIS5MIM/omhk1tQPUc0ELAnI/IkLKQJ6d75De/CQRh8MF2bU/TgGyFi6zEel80wUe3uRol9RrQ==} - engines: {node: '>= 10'} - peerDependencies: - '@coral-xyz/anchor': ^0.28.0 - '@solana/web3.js': ^1.78.4 - solana-bankrun: ^0.2.0 - anser@1.4.10: resolution: {integrity: sha512-hCv9AqTQ8ycjpSd3upOJd7vFwW1JaoYQ7tpham03GJ1ca8/65rqn0RpaWpItOAd6ylW9wAw6luXYPJIyPFVOww==} @@ -3341,9 +3076,6 @@ packages: resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} engines: {node: '>=12'} - ansicolors@0.3.2: - resolution: {integrity: sha512-QXu7BPrP29VllRxH8GwB7x5iX5qWKAAMLqKQGWTeLWVlNHNOpVMJ91dsxQAIWXpjuW5wqvxu3Jd/nRjrJ+0pqg==} - any-promise@1.3.0: resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} @@ -3532,9 +3264,6 @@ packages: resolution: {integrity: sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==} engines: {node: '>=0.6'} - big.js@6.2.2: - resolution: {integrity: sha512-y/ie+Faknx7sZA5MfGA2xKlu0GDv8RWrXGsmlteyJQ2lvoKv9GBK/fpRMc2qlSoBAgNxrixICFCBefIq8WCQpQ==} - bigint-buffer@1.1.5: resolution: {integrity: sha512-trfYco6AoZ+rKhKnxA0hgX0HAbVP/s808/EuDSe2JDzUnCp/xAsli35Orvk67UrTEcwuxZqYZDmfA2RXJgxVvA==} engines: {node: '>= 10.0.0'} @@ -3639,10 +3368,6 @@ packages: buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} - buffer-layout@1.2.2: - resolution: {integrity: sha512-kWSuLN694+KTk8SrYvCqwP2WcgQjoRCiF5b4QDvkkz8EmgD+aWAIceGFKMIAdmF/pH+vpgNV3d3kAKorcdAmWA==} - engines: {node: '>=4.5'} - buffer-xor@1.0.3: resolution: {integrity: sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==} @@ -3760,10 +3485,6 @@ packages: resolution: {integrity: sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==} engines: {node: '>=6'} - clone@2.1.2: - resolution: {integrity: sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==} - engines: {node: '>=0.8'} - clsx@2.1.1: resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} engines: {node: '>=6'} @@ -3853,12 +3574,6 @@ packages: create-hmac@1.1.7: resolution: {integrity: sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==} - cron-validator@1.3.1: - resolution: {integrity: sha512-C1HsxuPCY/5opR55G5/WNzyEGDWFVG+6GLrA+fW/sCTcP6A6NTjUP2AK7B8n2PyFs90kDG2qzwm8LMheADku6A==} - - cross-fetch@3.2.0: - resolution: {integrity: sha512-Q+xVJLoGOeIMXZmbUK4HYk+69cQH6LudR0Vu/pRm2YlU/hDV9CiS0gKUMaWY5f2NeUH9C1nV3bsTlCo0FsTV1Q==} - cross-fetch@4.1.0: resolution: {integrity: sha512-uKm5PU+MHTootlWEY+mZ4vvXoCn4fLQxT9dSc1sXVMSFkINTJVN8cAQROpwcKm8bJ/c7rgZVIBWzH5T78sNZZw==} @@ -3873,10 +3588,6 @@ packages: resolution: {integrity: sha512-r4ESw/IlusD17lgQi1O20Fa3qNnsckR126TdUuBgAu7GBYSIPvdNyONd3Zrxh0xCwA4+6w/TDArBPsMvhur+KQ==} engines: {node: '>= 0.10'} - crypto-hash@1.3.0: - resolution: {integrity: sha512-lyAZ0EMyjDkVvz8WOeVnuCPvKVBXcMv1l5SVqO1yC7PzTwrD/pPje/BIRbWhMoPe436U+Y2nD7f5bFx0kt+Sbg==} - engines: {node: '>=8'} - crypto-js@4.2.0: resolution: {integrity: sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==} @@ -4020,17 +3731,6 @@ packages: resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} engines: {node: '>=6.0.0'} - dot-case@3.0.4: - resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==} - - dotenv@10.0.0: - resolution: {integrity: sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==} - engines: {node: '>=10'} - - dotenv@16.4.7: - resolution: {integrity: sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==} - engines: {node: '>=12'} - draggabilly@3.0.0: resolution: {integrity: sha512-aEs+B6prbMZQMxc9lgTpCBfyCUhRur/VFucHhIOvlvvdARTj7TcDmX/cdOUtqbjJJUh7+agyJXR5Z6IFe1MxwQ==} @@ -4365,10 +4065,6 @@ packages: resolution: {integrity: sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==} engines: {node: '>=6'} - find-process@1.4.10: - resolution: {integrity: sha512-ncYFnWEIwL7PzmrK1yZtaccN8GhethD37RzBHG6iOZoFYB4vSmLLXfeWJjeN5nMvCJMjOtBvBBF8OgxEcikiZg==} - hasBin: true - find-up@3.0.0: resolution: {integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==} engines: {node: '>=6'} @@ -4381,9 +4077,6 @@ packages: resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} engines: {node: '>=10'} - find@0.3.0: - resolution: {integrity: sha512-iSd+O4OEYV/I36Zl8MdYJO0xD82wH528SaCieTVHhclgiYNe9y+yPKSwK+A7/WsmHL1EZ+pYUJBXWTL5qofksw==} - flat-cache@3.2.0: resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} engines: {node: ^10.12.0 || >=12.0.0} @@ -4891,18 +4584,9 @@ packages: resolution: {integrity: sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==} hasBin: true - jito-ts@3.0.1: - resolution: {integrity: sha512-TSofF7KqcwyaWGjPaSYC8RDoNBY1TPRNBHdrw24bdIi7mQ5bFEDdYK3D//llw/ml8YDvcZlgd644WxhjLTS9yg==} - js-base64@3.7.7: resolution: {integrity: sha512-7rCnleh0z2CkXhH67J8K1Ytz0b2Y+yxTPL+/KOJoa20hfnVQ/3/T6W/KflYI4bRHRagNeXeU2bkNGI3v1oS/lw==} - js-sha256@0.11.0: - resolution: {integrity: sha512-6xNlKayMZvds9h1Y1VWc0fQHQ82BxTXizWPEtEeGvmOUYpBRy4gbWroHLpzowe6xiQhHpelCQiE7HEdznyBL9Q==} - - js-sha256@0.9.0: - resolution: {integrity: sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==} - js-sha3@0.8.0: resolution: {integrity: sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==} @@ -5047,9 +4731,6 @@ packages: lodash-es@4.17.21: resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} - lodash.camelcase@4.3.0: - resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==} - lodash.debounce@4.0.8: resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==} @@ -5079,9 +4760,6 @@ packages: resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} hasBin: true - lower-case@2.0.2: - resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} - lru-cache@10.4.3: resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} @@ -5301,9 +4979,6 @@ packages: sass: optional: true - no-case@3.0.4: - resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==} - node-abort-controller@3.1.1: resolution: {integrity: sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==} @@ -5317,10 +4992,6 @@ packages: resolution: {integrity: sha512-8VOpLHFrOQlAH+qA0ZzuGRlALRA6/LVh8QJldbrC4DY0hXoMP0l4Acq8TzFC018HztWiRqyCEj2aTWY2UvnJUg==} engines: {node: ^18 || ^20 || >= 21} - node-cache@5.1.2: - resolution: {integrity: sha512-t1QzWwnk4sjLWaQAS8CHgOJ+RAfmHpxFWmc36IWTiWHQfs0w5JDMBS1b1ZxQteo0vVVuWJvIUKHDkkeK7vIGCg==} - engines: {node: '>= 8.0.0'} - node-dir@0.1.17: resolution: {integrity: sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg==} engines: {node: '>= 0.10.5'} @@ -5546,9 +5217,6 @@ packages: package-json-from-dist@1.0.1: resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} - pako@2.1.0: - resolution: {integrity: sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==} - parent-module@1.0.1: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} @@ -5692,11 +5360,6 @@ packages: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} - prettier@2.8.8: - resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} - engines: {node: '>=10.13.0'} - hasBin: true - pretty-format@29.7.0: resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -6006,12 +5669,6 @@ packages: engines: {node: '>=10.13.0', yarn: ^1.15.2} deprecated: 'ripple-lib is deprecated. Please migrate to xrpl.js using this migration guide: https://xrpl.org/xrpljs2-migration-guide.html' - rpc-websockets@7.5.1: - resolution: {integrity: sha512-kGFkeTsmd37pHPMaHIgN1LVKXMi0JD782v4Ds9ZKtLlwdTKjn+CxM9A9/gLT2LaOuEcEFGL98h1QWQtlOIdW0w==} - - rpc-websockets@8.0.2: - resolution: {integrity: sha512-QZ8lneJTtIZTf9JBcdUn/im2qDynWRYPKtmF6P9DqtdzqSLebcllYWVQr5aQacAp7LBYPReOW9Ses98dNfO7cA==} - rpc-websockets@9.0.4: resolution: {integrity: sha512-yWZWN0M+bivtoNLnaDbtny4XchdAIF5Q4g/ZsC5UC61Ckbp0QczwO8fg44rV3uYmY4WHd+EZQbn90W1d8ojzqQ==} @@ -6170,9 +5827,6 @@ packages: resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} - snake-case@3.0.4: - resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==} - socket.io-client@4.8.1: resolution: {integrity: sha512-hJVXfu3E28NmzGk8o1sHhN3om52tRvwYeidbj7xKy2eIIse5IoKX3USlS6Tqt3BHAtflLIkCQBkzVrEEfWUyYQ==} engines: {node: '>=10.0.0'} @@ -6189,39 +5843,6 @@ packages: resolution: {integrity: sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==} engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} - solana-bankrun-darwin-arm64@0.3.1: - resolution: {integrity: sha512-9LWtH/3/WR9fs8Ve/srdo41mpSqVHmRqDoo69Dv1Cupi+o1zMU6HiEPUHEvH2Tn/6TDbPEDf18MYNfReLUqE6A==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [darwin] - - solana-bankrun-darwin-universal@0.3.1: - resolution: {integrity: sha512-muGHpVYWT7xCd8ZxEjs/bmsbMp8XBqroYGbE4lQPMDUuLvsJEIrjGqs3MbxEFr71sa58VpyvgywWd5ifI7sGIg==} - engines: {node: '>= 10'} - os: [darwin] - - solana-bankrun-darwin-x64@0.3.1: - resolution: {integrity: sha512-oCaxfHyt7RC3ZMldrh5AbKfy4EH3YRMl8h6fSlMZpxvjQx7nK7PxlRwMeflMnVdkKKp7U8WIDak1lilIPd3/lg==} - engines: {node: '>= 10'} - cpu: [x64] - os: [darwin] - - solana-bankrun-linux-x64-gnu@0.3.1: - resolution: {integrity: sha512-PfRFhr7igGFNt2Ecfdzh3li9eFPB3Xhmk0Eib17EFIB62YgNUg3ItRnQQFaf0spazFjjJLnglY1TRKTuYlgSVA==} - engines: {node: '>= 10'} - cpu: [x64] - os: [linux] - - solana-bankrun-linux-x64-musl@0.3.1: - resolution: {integrity: sha512-6r8i0NuXg3CGURql8ISMIUqhE7Hx/O7MlIworK4oN08jYrP0CXdLeB/hywNn7Z8d1NXrox/NpYUgvRm2yIzAsQ==} - engines: {node: '>= 10'} - cpu: [x64] - os: [linux] - - solana-bankrun@0.3.1: - resolution: {integrity: sha512-inRwON7fBU5lPC36HdEqPeDg15FXJYcf77+o0iz9amvkUMJepcwnRwEfTNyMVpVYdgjTOBW5vg+596/3fi1kGA==} - engines: {node: '>= 10'} - sonic-boom@2.8.0: resolution: {integrity: sha512-kuonw1YOYYNOve5iHdSahXPOK49GqwA+LZhI6Wz/l0rP57iKyXXIHaRagOBHAPmGwJC6od2Z9zgvZ5loSgMlVg==} @@ -6254,9 +5875,6 @@ packages: resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} engines: {node: '>= 10.x'} - spok@1.5.5: - resolution: {integrity: sha512-IrJIXY54sCNFASyHPOY+jEirkiJ26JDqsGiI0Dvhwcnkl0PEWi1PSsrkYql0rzDw8LFVTcA7rdUCAJdE2HE+2Q==} - sprintf-js@1.0.3: resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} @@ -6295,9 +5913,6 @@ packages: resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==} engines: {node: '>=10.0.0'} - strict-event-emitter-types@2.0.0: - resolution: {integrity: sha512-Nk/brWYpD85WlOgzw5h173aci0Teyv8YdIAEtV+N88nDB0dLlazZyJMIsN6eo1/AR61l+p6CJTG1JIyFaoNEEA==} - strict-uri-encode@2.0.0: resolution: {integrity: sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==} engines: {node: '>=4'} @@ -6385,12 +6000,6 @@ packages: engines: {node: '>=16 || 14 >=14.17'} hasBin: true - superstruct@0.14.2: - resolution: {integrity: sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==} - - superstruct@0.15.5: - resolution: {integrity: sha512-4AOeU+P5UuE/4nOUkmcQdW5y7i9ndt1cQd/3iUe+LTz3RxESf/W/5lg4B74HbDMMv8PHnPnGCQFH45kBcrQYoQ==} - superstruct@1.0.4: resolution: {integrity: sha512-7JpaAoX2NGyoFlI9NBh66BQXGONc+uE+MRS5i2iOBKuS4e+ccgMDjATgZldkah+33DakBxDHiss9kvUcGAO8UQ==} engines: {node: '>=14.0.0'} @@ -6484,15 +6093,9 @@ packages: resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} engines: {node: '>=0.6'} - toml@3.0.0: - resolution: {integrity: sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w==} - tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} - traverse-chain@0.1.0: - resolution: {integrity: sha512-up6Yvai4PYKhpNp5PkYtx50m3KbwQrqDwbuZP/ItyL64YEWHAvH6Md83LFLV/GRSk/BoUVwwgUzX6SOQSbsfAg==} - ts-api-utils@1.4.3: resolution: {integrity: sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==} engines: {node: '>=16'} @@ -6586,9 +6189,6 @@ packages: uncrypto@0.1.3: resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==} - undici-types@5.26.5: - resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@6.20.0: resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==} @@ -6928,9 +6528,6 @@ packages: zod@3.24.1: resolution: {integrity: sha512-muH7gBL9sI1nciMZV67X5fTKKBLtwpZ5VBp1vsOQzj1MhrBZ4wlVCm3gedKZWLp0Oyel8sIGfeiz54Su+OVT+A==} - zstddec@0.1.0: - resolution: {integrity: sha512-w2NTI8+3l3eeltKAdK8QpiLo/flRAr2p8AGeakfMZOXBxOg9HIu4LVDxBi81sYgVhFhdJjv1OrB5ssI8uFPoLg==} - zustand@4.5.5: resolution: {integrity: sha512-+0PALYNJNgK6hldkgDq2vLrw5f6g/jCInz52n9RTpropGgeAf/ioFUCdtsjCqu4gNhW9D01rUQBROoRjdzyn2Q==} engines: {node: '>=12.7.0'} @@ -7799,215 +7396,52 @@ snapshots: '@babel/helper-string-parser': 7.25.9 '@babel/helper-validator-identifier': 7.25.9 - '@brokerloop/ttlcache@3.2.3': + '@emnapi/runtime@1.3.1': dependencies: - '@soncodi/signal': 2.0.7 + tslib: 2.8.1 + optional: true - '@coral-xyz/anchor-errors@0.30.1': {} + '@emurgo/cardano-serialization-lib-browser@11.5.0': {} - '@coral-xyz/anchor@0.27.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@coral-xyz/borsh': 0.27.0(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - base64-js: 1.5.1 - bn.js: 5.2.1 - bs58: 4.0.1 - buffer-layout: 1.2.2 - camelcase: 6.3.0 - cross-fetch: 3.2.0 - crypto-hash: 1.3.0 - eventemitter3: 4.0.7 - js-sha256: 0.9.0 - pako: 2.1.0 - snake-case: 3.0.4 - superstruct: 0.15.5 - toml: 3.0.0 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate + '@emurgo/cardano-serialization-lib-nodejs@11.5.0': {} - '@coral-xyz/anchor@0.28.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)': + '@eslint-community/eslint-utils@4.4.1(eslint@8.57.1)': dependencies: - '@coral-xyz/borsh': 0.28.0(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - base64-js: 1.5.1 - bn.js: 5.2.1 - bs58: 4.0.1 - buffer-layout: 1.2.2 - camelcase: 6.3.0 - cross-fetch: 3.2.0 - crypto-hash: 1.3.0 - eventemitter3: 4.0.7 - js-sha256: 0.9.0 - pako: 2.1.0 - snake-case: 3.0.4 - superstruct: 0.15.5 - toml: 3.0.0 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate + eslint: 8.57.1 + eslint-visitor-keys: 3.4.3 - '@coral-xyz/anchor@0.29.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@coral-xyz/borsh': 0.29.0(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@noble/hashes': 1.7.0 - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bn.js: 5.2.1 - bs58: 4.0.1 - buffer-layout: 1.2.2 - camelcase: 6.3.0 - cross-fetch: 3.2.0 - crypto-hash: 1.3.0 - eventemitter3: 4.0.7 - pako: 2.1.0 - snake-case: 3.0.4 - superstruct: 0.15.5 - toml: 3.0.0 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate + '@eslint-community/regexpp@4.12.1': {} - '@coral-xyz/anchor@0.30.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)': + '@eslint/eslintrc@2.1.4': dependencies: - '@coral-xyz/anchor-errors': 0.30.1 - '@coral-xyz/borsh': 0.30.1(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@noble/hashes': 1.7.0 - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bn.js: 5.2.1 - bs58: 4.0.1 - buffer-layout: 1.2.2 - camelcase: 6.3.0 - cross-fetch: 3.2.0 - crypto-hash: 1.3.0 - eventemitter3: 4.0.7 - pako: 2.1.0 - snake-case: 3.0.4 - superstruct: 0.15.5 - toml: 3.0.0 + ajv: 6.12.6 + debug: 4.4.0 + espree: 9.6.1 + globals: 13.24.0 + ignore: 5.3.2 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate + - supports-color - '@coral-xyz/borsh@0.27.0(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bn.js: 5.2.1 - buffer-layout: 1.2.2 + '@eslint/js@8.57.1': {} - '@coral-xyz/borsh@0.28.0(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': + '@ethereumjs/common@3.2.0': dependencies: - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bn.js: 5.2.1 - buffer-layout: 1.2.2 + '@ethereumjs/util': 8.1.0 + crc-32: 1.2.2 - '@coral-xyz/borsh@0.29.0(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': + '@ethereumjs/common@4.4.0': dependencies: - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bn.js: 5.2.1 - buffer-layout: 1.2.2 + '@ethereumjs/util': 9.1.0 - '@coral-xyz/borsh@0.30.1(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bn.js: 5.2.1 - buffer-layout: 1.2.2 - - '@drift-labs/sdk@2.96.0-beta.14(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10)': - dependencies: - '@coral-xyz/anchor': 0.28.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@coral-xyz/anchor-30': '@coral-xyz/anchor@0.30.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)' - '@ellipsis-labs/phoenix-sdk': 1.4.5(@solana/web3.js@1.92.3(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@openbook-dex/openbook-v2': 0.2.10(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10) - '@project-serum/serum': 0.13.65(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@pythnetwork/client': 2.5.3(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@pythnetwork/price-service-sdk': 1.8.0 - '@pythnetwork/pyth-solana-receiver': 0.7.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/spl-token': 0.3.7(@solana/web3.js@1.92.3(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/web3.js': 1.92.3(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@switchboard-xyz/on-demand': 1.2.32(bufferutil@4.0.9)(utf-8-validate@5.0.10) - anchor-bankrun: 0.3.0(@coral-xyz/anchor@0.28.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(@solana/web3.js@1.92.3(bufferutil@4.0.9)(utf-8-validate@5.0.10))(solana-bankrun@0.3.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - node-cache: 5.1.2 - rpc-websockets: 7.5.1 - solana-bankrun: 0.3.1(bufferutil@4.0.9)(utf-8-validate@5.0.10) - strict-event-emitter-types: 2.0.0 - uuid: 8.3.2 - zstddec: 0.1.0 - transitivePeerDependencies: - - bufferutil - - debug - - encoding - - fastestsmallesttextencoderdecoder - - supports-color - - typescript - - utf-8-validate - - '@ellipsis-labs/phoenix-sdk@1.4.5(@solana/web3.js@1.92.3(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@metaplex-foundation/beet': 0.7.2 - '@metaplex-foundation/rustbin': 0.3.5 - '@metaplex-foundation/solita': 0.12.2(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/spl-token': 0.3.7(@solana/web3.js@1.92.3(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@types/node': 18.19.74 - bn.js: 5.2.1 - borsh: 0.7.0 - bs58: 5.0.0 - transitivePeerDependencies: - - '@solana/web3.js' - - bufferutil - - encoding - - supports-color - - utf-8-validate - - '@emnapi/runtime@1.3.1': - dependencies: - tslib: 2.8.1 - optional: true - - '@emurgo/cardano-serialization-lib-browser@11.5.0': {} - - '@emurgo/cardano-serialization-lib-nodejs@11.5.0': {} - - '@eslint-community/eslint-utils@4.4.1(eslint@8.57.1)': - dependencies: - eslint: 8.57.1 - eslint-visitor-keys: 3.4.3 - - '@eslint-community/regexpp@4.12.1': {} - - '@eslint/eslintrc@2.1.4': - dependencies: - ajv: 6.12.6 - debug: 4.4.0 - espree: 9.6.1 - globals: 13.24.0 - ignore: 5.3.2 - import-fresh: 3.3.0 - js-yaml: 4.1.0 - minimatch: 3.1.2 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - supports-color - - '@eslint/js@8.57.1': {} - - '@ethereumjs/common@3.2.0': - dependencies: - '@ethereumjs/util': 8.1.0 - crc-32: 1.2.2 - - '@ethereumjs/common@4.4.0': - dependencies: - '@ethereumjs/util': 9.1.0 - - '@ethereumjs/rlp@4.0.1': {} - - '@ethereumjs/rlp@5.0.2': {} - - '@ethereumjs/tx@4.2.0': + '@ethereumjs/rlp@4.0.1': {} + + '@ethereumjs/rlp@5.0.2': {} + + '@ethereumjs/tx@4.2.0': dependencies: '@ethereumjs/common': 3.2.0 '@ethereumjs/rlp': 4.0.1 @@ -8180,41 +7614,6 @@ snapshots: - react - react-dom - '@glamsystems/glam-sdk@0.1.5(bn.js@5.2.1)(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(jsbi@3.2.5)(typescript@5.7.2)(utf-8-validate@5.0.10)': - dependencies: - '@coral-xyz/anchor': 0.30.1(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@drift-labs/sdk': 2.96.0-beta.14(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10) - '@marinade.finance/marinade-ts-sdk': 5.0.15(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bn.js@5.2.1)(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(jsbi@3.2.5)(typescript@5.7.2)(utf-8-validate@5.0.10) - '@pythnetwork/client': 2.22.0(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/spl-stake-pool': 1.1.8(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10) - '@solana/spl-token': 0.4.9(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10) - '@solana/spl-token-metadata': 0.1.6(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bs58: 5.0.0 - buffer: 6.0.3 - transitivePeerDependencies: - - bn.js - - bufferutil - - debug - - encoding - - fastestsmallesttextencoderdecoder - - jsbi - - supports-color - - typescript - - utf-8-validate - - '@grpc/grpc-js@1.12.5': - dependencies: - '@grpc/proto-loader': 0.7.13 - '@js-sdsl/ordered-map': 4.4.2 - - '@grpc/proto-loader@0.7.13': - dependencies: - lodash.camelcase: 4.3.0 - long: 5.2.3 - protobufjs: 7.4.0 - yargs: 17.7.2 - '@heroicons/react@2.2.0(react@19.0.0-rc.1)': dependencies: react: 19.0.0-rc.1 @@ -8435,8 +7834,6 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 - '@js-sdsl/ordered-map@4.4.2': {} - '@keystonehq/alias-sampling@0.1.2': {} '@keystonehq/bc-ur-registry-sol@0.3.1': @@ -8499,47 +7896,6 @@ snapshots: '@ledgerhq/logs@6.12.0': {} - '@marinade.finance/directed-stake-sdk@0.1.0(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bn.js@5.2.1)(bufferutil@4.0.9)(jsbi@3.2.5)(utf-8-validate@5.0.10)': - dependencies: - '@coral-xyz/anchor': 0.27.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bn.js: 5.2.1 - bs58: 5.0.0 - jsbi: 3.2.5 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - - '@marinade.finance/marinade-ts-sdk@5.0.15(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bn.js@5.2.1)(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(jsbi@3.2.5)(typescript@5.7.2)(utf-8-validate@5.0.10)': - dependencies: - '@coral-xyz/anchor': 0.28.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@marinade.finance/directed-stake-sdk': 0.1.0(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bn.js@5.2.1)(bufferutil@4.0.9)(jsbi@3.2.5)(utf-8-validate@5.0.10) - '@marinade.finance/native-staking-sdk': 1.3.1(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/spl-stake-pool': 0.6.5(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/spl-token-3.x': '@solana/spl-token@0.3.11(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10)' - borsh: 0.7.0 - bs58: 5.0.0 - transitivePeerDependencies: - - '@solana/web3.js' - - bn.js - - bufferutil - - encoding - - fastestsmallesttextencoderdecoder - - jsbi - - typescript - - utf-8-validate - - '@marinade.finance/native-staking-sdk@1.3.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@solana/spl-memo': 0.2.5(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bn.js: 5.2.1 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - '@metamask/rpc-errors@5.1.1': dependencies: '@metamask/utils': 5.0.2 @@ -8557,66 +7913,10 @@ snapshots: transitivePeerDependencies: - supports-color - '@metaplex-foundation/beet-solana@0.3.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@metaplex-foundation/beet': 0.7.2 - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bs58: 5.0.0 - debug: 4.4.0 - transitivePeerDependencies: - - bufferutil - - encoding - - supports-color - - utf-8-validate - - '@metaplex-foundation/beet@0.4.0': - dependencies: - ansicolors: 0.3.2 - bn.js: 5.2.1 - debug: 4.4.0 - transitivePeerDependencies: - - supports-color - - '@metaplex-foundation/beet@0.7.2': - dependencies: - ansicolors: 0.3.2 - assert: 2.1.0 - bn.js: 5.2.1 - debug: 4.4.0 - transitivePeerDependencies: - - supports-color - '@metaplex-foundation/mpl-toolbox@0.9.4(@metaplex-foundation/umi@0.9.2)': dependencies: '@metaplex-foundation/umi': 0.9.2 - '@metaplex-foundation/rustbin@0.3.5': - dependencies: - debug: 4.4.0 - semver: 7.6.3 - text-table: 0.2.0 - toml: 3.0.0 - transitivePeerDependencies: - - supports-color - - '@metaplex-foundation/solita@0.12.2(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@metaplex-foundation/beet': 0.4.0 - '@metaplex-foundation/beet-solana': 0.3.1(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@metaplex-foundation/rustbin': 0.3.5 - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - camelcase: 6.3.0 - debug: 4.4.0 - js-sha256: 0.9.0 - prettier: 2.8.8 - snake-case: 3.0.4 - spok: 1.5.5 - transitivePeerDependencies: - - bufferutil - - encoding - - supports-color - - utf-8-validate - '@metaplex-foundation/umi-bundle-defaults@0.9.2(@metaplex-foundation/umi@0.9.2)(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@metaplex-foundation/umi': 0.9.2 @@ -8766,8 +8066,6 @@ snapshots: dependencies: '@noble/hashes': 1.7.0 - '@noble/ed25519@1.7.3': {} - '@noble/hashes@1.4.0': {} '@noble/hashes@1.7.0': {} @@ -8786,19 +8084,6 @@ snapshots: '@nolyfill/is-core-module@1.0.39': {} - '@openbook-dex/openbook-v2@0.2.10(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10)': - dependencies: - '@coral-xyz/anchor': 0.29.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/spl-token': 0.4.9(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - big.js: 6.2.2 - transitivePeerDependencies: - - bufferutil - - encoding - - fastestsmallesttextencoderdecoder - - typescript - - utf-8-validate - '@particle-network/analytics@1.0.2': dependencies: hash.js: 1.1.7 @@ -8828,45 +8113,6 @@ snapshots: '@pkgjs/parseargs@0.11.0': optional: true - '@project-serum/anchor@0.11.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@project-serum/borsh': 0.2.5(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - base64-js: 1.5.1 - bn.js: 5.2.1 - bs58: 4.0.1 - buffer-layout: 1.2.2 - camelcase: 5.3.1 - crypto-hash: 1.3.0 - eventemitter3: 4.0.7 - find: 0.3.0 - js-sha256: 0.9.0 - pako: 2.1.0 - snake-case: 3.0.4 - toml: 3.0.0 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - - '@project-serum/borsh@0.2.5(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bn.js: 5.2.1 - buffer-layout: 1.2.2 - - '@project-serum/serum@0.13.65(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@project-serum/anchor': 0.11.1(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/spl-token': 0.1.8(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bn.js: 5.2.1 - buffer-layout: 1.2.2 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - '@project-serum/sol-wallet-adapter@0.2.6(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': dependencies: '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) @@ -8896,54 +8142,6 @@ snapshots: '@protobufjs/utf8@1.1.0': {} - '@pythnetwork/client@2.22.0(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@coral-xyz/anchor': 0.29.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@coral-xyz/borsh': 0.28.0(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - buffer: 6.0.3 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - - '@pythnetwork/client@2.5.3(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - assert: 2.1.0 - buffer: 6.0.3 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - - '@pythnetwork/price-service-sdk@1.8.0': - dependencies: - bn.js: 5.2.1 - - '@pythnetwork/pyth-solana-receiver@0.7.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@coral-xyz/anchor': 0.29.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@noble/hashes': 1.7.0 - '@pythnetwork/price-service-sdk': 1.8.0 - '@pythnetwork/solana-utils': 0.4.3(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - - '@pythnetwork/solana-utils@0.4.3(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@coral-xyz/anchor': 0.29.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bs58: 5.0.0 - jito-ts: 3.0.1(bufferutil@4.0.9)(utf-8-validate@5.0.10) - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - '@radix-ui/number@1.1.0': {} '@radix-ui/primitive@1.1.1': {} @@ -9606,17 +8804,6 @@ snapshots: '@solana/errors': 2.0.0(typescript@5.7.2) typescript: 5.7.2 - '@solana/buffer-layout-utils@0.2.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@solana/buffer-layout': 4.0.1 - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bigint-buffer: 1.1.5 - bignumber.js: 9.1.2 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - '@solana/buffer-layout@4.0.1': dependencies: buffer: 6.0.3 @@ -9626,11 +8813,6 @@ snapshots: '@solana/errors': 2.0.0(typescript@5.7.2) typescript: 5.7.2 - '@solana/codecs-core@2.0.0-rc.1(typescript@5.7.2)': - dependencies: - '@solana/errors': 2.0.0-rc.1(typescript@5.7.2) - typescript: 5.7.2 - '@solana/codecs-data-structures@2.0.0(typescript@5.7.2)': dependencies: '@solana/codecs-core': 2.0.0(typescript@5.7.2) @@ -9638,25 +8820,12 @@ snapshots: '@solana/errors': 2.0.0(typescript@5.7.2) typescript: 5.7.2 - '@solana/codecs-data-structures@2.0.0-rc.1(typescript@5.7.2)': - dependencies: - '@solana/codecs-core': 2.0.0-rc.1(typescript@5.7.2) - '@solana/codecs-numbers': 2.0.0-rc.1(typescript@5.7.2) - '@solana/errors': 2.0.0-rc.1(typescript@5.7.2) - typescript: 5.7.2 - '@solana/codecs-numbers@2.0.0(typescript@5.7.2)': dependencies: '@solana/codecs-core': 2.0.0(typescript@5.7.2) '@solana/errors': 2.0.0(typescript@5.7.2) typescript: 5.7.2 - '@solana/codecs-numbers@2.0.0-rc.1(typescript@5.7.2)': - dependencies: - '@solana/codecs-core': 2.0.0-rc.1(typescript@5.7.2) - '@solana/errors': 2.0.0-rc.1(typescript@5.7.2) - typescript: 5.7.2 - '@solana/codecs-strings@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)': dependencies: '@solana/codecs-core': 2.0.0(typescript@5.7.2) @@ -9665,14 +8834,6 @@ snapshots: fastestsmallesttextencoderdecoder: 1.0.22 typescript: 5.7.2 - '@solana/codecs-strings@2.0.0-rc.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)': - dependencies: - '@solana/codecs-core': 2.0.0-rc.1(typescript@5.7.2) - '@solana/codecs-numbers': 2.0.0-rc.1(typescript@5.7.2) - '@solana/errors': 2.0.0-rc.1(typescript@5.7.2) - fastestsmallesttextencoderdecoder: 1.0.22 - typescript: 5.7.2 - '@solana/codecs@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)': dependencies: '@solana/codecs-core': 2.0.0(typescript@5.7.2) @@ -9684,29 +8845,12 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/codecs@2.0.0-rc.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)': - dependencies: - '@solana/codecs-core': 2.0.0-rc.1(typescript@5.7.2) - '@solana/codecs-data-structures': 2.0.0-rc.1(typescript@5.7.2) - '@solana/codecs-numbers': 2.0.0-rc.1(typescript@5.7.2) - '@solana/codecs-strings': 2.0.0-rc.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - '@solana/options': 2.0.0-rc.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - typescript: 5.7.2 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - '@solana/errors@2.0.0(typescript@5.7.2)': dependencies: chalk: 5.4.1 commander: 12.1.0 typescript: 5.7.2 - '@solana/errors@2.0.0-rc.1(typescript@5.7.2)': - dependencies: - chalk: 5.4.1 - commander: 12.1.0 - typescript: 5.7.2 - '@solana/fast-stable-stringify@2.0.0(typescript@5.7.2)': dependencies: typescript: 5.7.2 @@ -9741,17 +8885,6 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/options@2.0.0-rc.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)': - dependencies: - '@solana/codecs-core': 2.0.0-rc.1(typescript@5.7.2) - '@solana/codecs-data-structures': 2.0.0-rc.1(typescript@5.7.2) - '@solana/codecs-numbers': 2.0.0-rc.1(typescript@5.7.2) - '@solana/codecs-strings': 2.0.0-rc.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - '@solana/errors': 2.0.0-rc.1(typescript@5.7.2) - typescript: 5.7.2 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - '@solana/programs@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)': dependencies: '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) @@ -9864,182 +8997,68 @@ snapshots: '@solana/rpc-subscriptions-spec': 2.0.0(typescript@5.7.2) '@solana/rpc-transformers': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - '@solana/subscribable': 2.0.0(typescript@5.7.2) - typescript: 5.7.2 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - ws - - '@solana/rpc-transformers@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)': - dependencies: - '@solana/errors': 2.0.0(typescript@5.7.2) - '@solana/functional': 2.0.0(typescript@5.7.2) - '@solana/rpc-spec-types': 2.0.0(typescript@5.7.2) - '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - typescript: 5.7.2 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - '@solana/rpc-transport-http@2.0.0(typescript@5.7.2)': - dependencies: - '@solana/errors': 2.0.0(typescript@5.7.2) - '@solana/rpc-spec': 2.0.0(typescript@5.7.2) - '@solana/rpc-spec-types': 2.0.0(typescript@5.7.2) - typescript: 5.7.2 - undici-types: 6.21.0 - - '@solana/rpc-types@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)': - dependencies: - '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - '@solana/codecs-core': 2.0.0(typescript@5.7.2) - '@solana/codecs-numbers': 2.0.0(typescript@5.7.2) - '@solana/codecs-strings': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - '@solana/errors': 2.0.0(typescript@5.7.2) - typescript: 5.7.2 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - '@solana/rpc@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)': - dependencies: - '@solana/errors': 2.0.0(typescript@5.7.2) - '@solana/fast-stable-stringify': 2.0.0(typescript@5.7.2) - '@solana/functional': 2.0.0(typescript@5.7.2) - '@solana/rpc-api': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - '@solana/rpc-spec': 2.0.0(typescript@5.7.2) - '@solana/rpc-spec-types': 2.0.0(typescript@5.7.2) - '@solana/rpc-transformers': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - '@solana/rpc-transport-http': 2.0.0(typescript@5.7.2) - '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - typescript: 5.7.2 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - '@solana/signers@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)': - dependencies: - '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - '@solana/codecs-core': 2.0.0(typescript@5.7.2) - '@solana/errors': 2.0.0(typescript@5.7.2) - '@solana/instructions': 2.0.0(typescript@5.7.2) - '@solana/keys': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - '@solana/transaction-messages': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - '@solana/transactions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - typescript: 5.7.2 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - '@solana/spl-memo@0.2.5(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))': - dependencies: - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - buffer: 6.0.3 - - '@solana/spl-stake-pool@0.6.5(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@project-serum/borsh': 0.2.5(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - '@solana/buffer-layout': 4.0.1 - '@solana/spl-token': 0.1.8(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bn.js: 5.2.1 - buffer: 6.0.3 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - - '@solana/spl-stake-pool@1.1.8(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10)': - dependencies: - '@solana/buffer-layout': 4.0.1 - '@solana/spl-token': 0.4.9(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bn.js: 5.2.1 - buffer: 6.0.3 - buffer-layout: 1.2.2 - superstruct: 2.0.2 - transitivePeerDependencies: - - bufferutil - - encoding - - fastestsmallesttextencoderdecoder - - typescript - - utf-8-validate - - '@solana/spl-token-group@0.0.7(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)': - dependencies: - '@solana/codecs': 2.0.0-rc.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - typescript - - '@solana/spl-token-metadata@0.1.6(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)': - dependencies: - '@solana/codecs': 2.0.0-rc.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - typescript - - '@solana/spl-token@0.1.8(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@babel/runtime': 7.26.0 - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bn.js: 5.2.1 - buffer: 6.0.3 - buffer-layout: 1.2.2 - dotenv: 10.0.0 + '@solana/subscribable': 2.0.0(typescript@5.7.2) + typescript: 5.7.2 transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate + - fastestsmallesttextencoderdecoder + - ws - '@solana/spl-token@0.3.11(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10)': + '@solana/rpc-transformers@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)': dependencies: - '@solana/buffer-layout': 4.0.1 - '@solana/buffer-layout-utils': 0.2.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/spl-token-metadata': 0.1.6(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - buffer: 6.0.3 + '@solana/errors': 2.0.0(typescript@5.7.2) + '@solana/functional': 2.0.0(typescript@5.7.2) + '@solana/rpc-spec-types': 2.0.0(typescript@5.7.2) + '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) + typescript: 5.7.2 transitivePeerDependencies: - - bufferutil - - encoding - fastestsmallesttextencoderdecoder - - typescript - - utf-8-validate - '@solana/spl-token@0.3.7(@solana/web3.js@1.92.3(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(utf-8-validate@5.0.10)': + '@solana/rpc-transport-http@2.0.0(typescript@5.7.2)': dependencies: - '@solana/buffer-layout': 4.0.1 - '@solana/buffer-layout-utils': 0.2.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/web3.js': 1.92.3(bufferutil@4.0.9)(utf-8-validate@5.0.10) - buffer: 6.0.3 + '@solana/errors': 2.0.0(typescript@5.7.2) + '@solana/rpc-spec': 2.0.0(typescript@5.7.2) + '@solana/rpc-spec-types': 2.0.0(typescript@5.7.2) + typescript: 5.7.2 + undici-types: 6.21.0 + + '@solana/rpc-types@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)': + dependencies: + '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) + '@solana/codecs-core': 2.0.0(typescript@5.7.2) + '@solana/codecs-numbers': 2.0.0(typescript@5.7.2) + '@solana/codecs-strings': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) + '@solana/errors': 2.0.0(typescript@5.7.2) + typescript: 5.7.2 transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate + - fastestsmallesttextencoderdecoder - '@solana/spl-token@0.3.7(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(utf-8-validate@5.0.10)': + '@solana/rpc@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)': dependencies: - '@solana/buffer-layout': 4.0.1 - '@solana/buffer-layout-utils': 0.2.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - buffer: 6.0.3 + '@solana/errors': 2.0.0(typescript@5.7.2) + '@solana/fast-stable-stringify': 2.0.0(typescript@5.7.2) + '@solana/functional': 2.0.0(typescript@5.7.2) + '@solana/rpc-api': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) + '@solana/rpc-spec': 2.0.0(typescript@5.7.2) + '@solana/rpc-spec-types': 2.0.0(typescript@5.7.2) + '@solana/rpc-transformers': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) + '@solana/rpc-transport-http': 2.0.0(typescript@5.7.2) + '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) + typescript: 5.7.2 transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate + - fastestsmallesttextencoderdecoder - '@solana/spl-token@0.4.9(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10)': + '@solana/signers@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)': dependencies: - '@solana/buffer-layout': 4.0.1 - '@solana/buffer-layout-utils': 0.2.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/spl-token-group': 0.0.7(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - '@solana/spl-token-metadata': 0.1.6(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - buffer: 6.0.3 + '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) + '@solana/codecs-core': 2.0.0(typescript@5.7.2) + '@solana/errors': 2.0.0(typescript@5.7.2) + '@solana/instructions': 2.0.0(typescript@5.7.2) + '@solana/keys': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) + '@solana/transaction-messages': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) + '@solana/transactions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2) + typescript: 5.7.2 transitivePeerDependencies: - - bufferutil - - encoding - fastestsmallesttextencoderdecoder - - typescript - - utf-8-validate '@solana/subscribable@2.0.0(typescript@5.7.2)': dependencies: @@ -10556,50 +9575,6 @@ snapshots: - bs58 - react - '@solana/web3.js@1.77.4(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@babel/runtime': 7.26.0 - '@noble/curves': 1.8.0 - '@noble/hashes': 1.7.0 - '@solana/buffer-layout': 4.0.1 - agentkeepalive: 4.6.0 - bigint-buffer: 1.1.5 - bn.js: 5.2.1 - borsh: 0.7.0 - bs58: 4.0.1 - buffer: 6.0.3 - fast-stable-stringify: 1.0.0 - jayson: 4.1.3(bufferutil@4.0.9)(utf-8-validate@5.0.10) - node-fetch: 2.7.0 - rpc-websockets: 7.5.1 - superstruct: 0.14.2 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - - '@solana/web3.js@1.92.3(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@babel/runtime': 7.26.0 - '@noble/curves': 1.8.0 - '@noble/hashes': 1.7.0 - '@solana/buffer-layout': 4.0.1 - agentkeepalive: 4.6.0 - bigint-buffer: 1.1.5 - bn.js: 5.2.1 - borsh: 0.7.0 - bs58: 4.0.1 - buffer: 6.0.3 - fast-stable-stringify: 1.0.0 - jayson: 4.1.3(bufferutil@4.0.9)(utf-8-validate@5.0.10) - node-fetch: 2.7.0 - rpc-websockets: 8.0.2 - superstruct: 1.0.4 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - '@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.26.0 @@ -10688,24 +9663,6 @@ snapshots: eventemitter3: 5.0.1 uuid: 9.0.1 - '@solworks/soltoolkit-sdk@0.0.23(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@solana/buffer-layout': 4.0.1 - '@solana/spl-token': 0.3.7(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@types/bn.js': 5.1.6 - '@types/node': 18.19.74 - '@types/node-fetch': 2.6.12 - bn.js: 5.2.1 - decimal.js: 10.4.3 - typescript: 4.9.5 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - - '@soncodi/signal@2.0.7': {} - '@stablelib/aead@1.0.1': {} '@stablelib/binary@1.0.1': @@ -10796,43 +9753,6 @@ snapshots: dependencies: tslib: 2.8.1 - '@switchboard-xyz/common@2.5.16(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - axios: 1.7.9 - big.js: 6.2.2 - bn.js: 5.2.1 - bs58: 6.0.0 - cron-validator: 1.3.1 - decimal.js: 10.4.3 - js-sha256: 0.11.0 - lodash: 4.17.21 - protobufjs: 7.4.0 - yaml: 2.7.0 - transitivePeerDependencies: - - bufferutil - - debug - - encoding - - utf-8-validate - - '@switchboard-xyz/on-demand@1.2.32(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@brokerloop/ttlcache': 3.2.3 - '@coral-xyz/anchor-30': '@coral-xyz/anchor@0.30.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)' - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solworks/soltoolkit-sdk': 0.0.23(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@switchboard-xyz/common': 2.5.16(bufferutil@4.0.9)(utf-8-validate@5.0.10) - axios: 1.7.9 - big.js: 6.2.2 - bs58: 5.0.0 - js-yaml: 4.1.0 - protobufjs: 7.4.0 - transitivePeerDependencies: - - bufferutil - - debug - - encoding - - utf-8-validate - '@toruslabs/base-controllers@2.9.0(@babel/runtime@7.26.0)(bufferutil@4.0.9)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.26.0 @@ -11178,10 +10098,6 @@ snapshots: dependencies: '@babel/types': 7.26.3 - '@types/bn.js@5.1.6': - dependencies: - '@types/node': 22.10.5 - '@types/connect@3.4.38': dependencies: '@types/node': 22.10.5 @@ -11210,21 +10126,12 @@ snapshots: '@types/ms@0.7.34': {} - '@types/node-fetch@2.6.12': - dependencies: - '@types/node': 22.10.5 - form-data: 4.0.1 - '@types/node-forge@1.3.11': dependencies: '@types/node': 22.10.5 '@types/node@12.20.55': {} - '@types/node@18.19.74': - dependencies: - undici-types: 5.26.5 - '@types/node@22.10.5': dependencies: undici-types: 6.20.0 @@ -11686,12 +10593,6 @@ snapshots: json-schema-traverse: 0.4.1 uri-js: 4.4.1 - anchor-bankrun@0.3.0(@coral-xyz/anchor@0.28.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(@solana/web3.js@1.92.3(bufferutil@4.0.9)(utf-8-validate@5.0.10))(solana-bankrun@0.3.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)): - dependencies: - '@coral-xyz/anchor': 0.28.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@solana/web3.js': 1.92.3(bufferutil@4.0.9)(utf-8-validate@5.0.10) - solana-bankrun: 0.3.1(bufferutil@4.0.9)(utf-8-validate@5.0.10) - anser@1.4.10: {} ansi-regex@4.1.1: {} @@ -11712,8 +10613,6 @@ snapshots: ansi-styles@6.2.1: {} - ansicolors@0.3.2: {} - any-promise@1.3.0: {} anymatch@3.1.3: @@ -11971,8 +10870,6 @@ snapshots: big-integer@1.6.52: {} - big.js@6.2.2: {} - bigint-buffer@1.1.5: dependencies: bindings: 1.5.0 @@ -12110,8 +11007,6 @@ snapshots: buffer-from@1.1.2: {} - buffer-layout@1.2.2: {} - buffer-xor@1.0.3: {} buffer@5.7.1: @@ -12254,8 +11149,6 @@ snapshots: kind-of: 6.0.3 shallow-clone: 3.0.1 - clone@2.1.2: {} - clsx@2.1.1: {} color-convert@1.9.3: @@ -12356,14 +11249,6 @@ snapshots: safe-buffer: 5.2.1 sha.js: 2.4.11 - cron-validator@1.3.1: {} - - cross-fetch@3.2.0: - dependencies: - node-fetch: 2.7.0 - transitivePeerDependencies: - - encoding - cross-fetch@4.1.0: dependencies: node-fetch: 2.7.0 @@ -12395,8 +11280,6 @@ snapshots: randombytes: 2.1.0 randomfill: 1.0.4 - crypto-hash@1.3.0: {} - crypto-js@4.2.0: {} cssesc@3.0.0: {} @@ -12507,15 +11390,6 @@ snapshots: dependencies: esutils: 2.0.3 - dot-case@3.0.4: - dependencies: - no-case: 3.0.4 - tslib: 2.8.1 - - dotenv@10.0.0: {} - - dotenv@16.4.7: {} - draggabilly@3.0.0: dependencies: get-size: 3.0.0 @@ -13028,12 +11902,6 @@ snapshots: make-dir: 2.1.0 pkg-dir: 3.0.0 - find-process@1.4.10: - dependencies: - chalk: 4.1.2 - commander: 12.1.0 - loglevel: 1.9.2 - find-up@3.0.0: dependencies: locate-path: 3.0.0 @@ -13048,10 +11916,6 @@ snapshots: locate-path: 6.0.0 path-exists: 4.0.0 - find@0.3.0: - dependencies: - traverse-chain: 0.1.0 - flat-cache@3.2.0: dependencies: flatted: 3.3.2 @@ -13614,27 +12478,8 @@ snapshots: jiti@1.21.7: {} - jito-ts@3.0.1(bufferutil@4.0.9)(utf-8-validate@5.0.10): - dependencies: - '@grpc/grpc-js': 1.12.5 - '@noble/ed25519': 1.7.3 - '@solana/web3.js': 1.77.4(bufferutil@4.0.9)(utf-8-validate@5.0.10) - agentkeepalive: 4.6.0 - dotenv: 16.4.7 - jayson: 4.1.3(bufferutil@4.0.9)(utf-8-validate@5.0.10) - node-fetch: 2.7.0 - superstruct: 1.0.4 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - js-base64@3.7.7: {} - js-sha256@0.11.0: {} - - js-sha256@0.9.0: {} - js-sha3@0.8.0: {} js-tokens@4.0.0: {} @@ -13779,8 +12624,6 @@ snapshots: lodash-es@4.17.21: {} - lodash.camelcase@4.3.0: {} - lodash.debounce@4.0.8: {} lodash.isequal@4.5.0: {} @@ -13801,10 +12644,6 @@ snapshots: dependencies: js-tokens: 4.0.0 - lower-case@2.0.2: - dependencies: - tslib: 2.8.1 - lru-cache@10.4.3: {} lru-cache@5.1.1: @@ -14122,11 +12961,6 @@ snapshots: - '@babel/core' - babel-plugin-macros - no-case@3.0.4: - dependencies: - lower-case: 2.0.2 - tslib: 2.8.1 - node-abort-controller@3.1.1: {} node-addon-api@2.0.2: {} @@ -14135,10 +12969,6 @@ snapshots: node-addon-api@8.3.0: {} - node-cache@5.1.2: - dependencies: - clone: 2.1.2 - node-dir@0.1.17: dependencies: minimatch: 3.1.2 @@ -14291,8 +13121,6 @@ snapshots: package-json-from-dist@1.0.1: {} - pako@2.1.0: {} - parent-module@1.0.1: dependencies: callsites: 3.1.0 @@ -14426,8 +13254,6 @@ snapshots: prelude-ls@1.2.1: {} - prettier@2.8.8: {} - pretty-format@29.7.0: dependencies: '@jest/schemas': 29.6.3 @@ -14853,25 +13679,6 @@ snapshots: - supports-color - utf-8-validate - rpc-websockets@7.5.1: - dependencies: - '@babel/runtime': 7.26.0 - eventemitter3: 4.0.7 - uuid: 8.3.2 - ws: 8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - optionalDependencies: - bufferutil: 4.0.9 - utf-8-validate: 5.0.10 - - rpc-websockets@8.0.2: - dependencies: - eventemitter3: 4.0.7 - uuid: 8.3.2 - ws: 8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - optionalDependencies: - bufferutil: 4.0.9 - utf-8-validate: 5.0.10 - rpc-websockets@9.0.4: dependencies: '@swc/helpers': 0.5.15 @@ -15092,11 +13899,6 @@ snapshots: smart-buffer@4.2.0: {} - snake-case@3.0.4: - dependencies: - dot-case: 3.0.4 - tslib: 2.8.1 - socket.io-client@4.8.1(bufferutil@4.0.9)(utf-8-validate@5.0.10): dependencies: '@socket.io/component-emitter': 3.1.2 @@ -15128,36 +13930,6 @@ snapshots: ip-address: 9.0.5 smart-buffer: 4.2.0 - solana-bankrun-darwin-arm64@0.3.1: - optional: true - - solana-bankrun-darwin-universal@0.3.1: - optional: true - - solana-bankrun-darwin-x64@0.3.1: - optional: true - - solana-bankrun-linux-x64-gnu@0.3.1: - optional: true - - solana-bankrun-linux-x64-musl@0.3.1: - optional: true - - solana-bankrun@0.3.1(bufferutil@4.0.9)(utf-8-validate@5.0.10): - dependencies: - '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - bs58: 4.0.1 - optionalDependencies: - solana-bankrun-darwin-arm64: 0.3.1 - solana-bankrun-darwin-universal: 0.3.1 - solana-bankrun-darwin-x64: 0.3.1 - solana-bankrun-linux-x64-gnu: 0.3.1 - solana-bankrun-linux-x64-musl: 0.3.1 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - sonic-boom@2.8.0: dependencies: atomic-sleep: 1.0.0 @@ -15182,11 +13954,6 @@ snapshots: split2@4.2.0: {} - spok@1.5.5: - dependencies: - ansicolors: 0.3.2 - find-process: 1.4.10 - sprintf-js@1.0.3: {} sprintf-js@1.1.3: {} @@ -15216,8 +13983,6 @@ snapshots: streamsearch@1.1.0: {} - strict-event-emitter-types@2.0.0: {} - strict-uri-encode@2.0.0: {} string-width@3.1.0: @@ -15331,10 +14096,6 @@ snapshots: pirates: 4.0.6 ts-interface-checker: 0.1.13 - superstruct@0.14.2: {} - - superstruct@0.15.5: {} - superstruct@1.0.4: {} superstruct@2.0.2: {} @@ -15444,12 +14205,8 @@ snapshots: toidentifier@1.0.1: {} - toml@3.0.0: {} - tr46@0.0.3: {} - traverse-chain@0.1.0: {} - ts-api-utils@1.4.3(typescript@5.7.2): dependencies: typescript: 5.7.2 @@ -15545,8 +14302,6 @@ snapshots: uncrypto@0.1.3: {} - undici-types@5.26.5: {} - undici-types@6.20.0: {} undici-types@6.21.0: {} @@ -15856,8 +14611,6 @@ snapshots: zod@3.24.1: {} - zstddec@0.1.0: {} - zustand@4.5.5(react@19.0.0-rc.1)(types-react@19.0.0-rc.1): dependencies: use-sync-external-store: 1.2.2(react@19.0.0-rc.1) diff --git a/apps/fatcat/src/app/layout.tsx b/apps/fatcat/src/app/layout.tsx index 66ed2815..610b6d1d 100644 --- a/apps/fatcat/src/app/layout.tsx +++ b/apps/fatcat/src/app/layout.tsx @@ -9,6 +9,7 @@ import { PersistentWarning } from "../components/persistent-warning"; import { GeistSans } from "geist/font/sans"; import { Analytics } from "@vercel/analytics/react"; import Header from "../components/header"; +import { Toaster } from "../components/ui/toaster"; import { SpeedInsights } from "@vercel/speed-insights/next"; export const metadata: Metadata = { @@ -114,6 +115,7 @@ export default function RootLayout({ >
{children} + diff --git a/apps/fatcat/src/components/ExplorerLink.tsx b/apps/fatcat/src/components/ExplorerLink.tsx new file mode 100644 index 00000000..afa766c5 --- /dev/null +++ b/apps/fatcat/src/components/ExplorerLink.tsx @@ -0,0 +1,37 @@ +"use client"; + +export function ellipsify(str = "", len = 4) { + if (str.length > 30) { + return ( + str.substring(0, len) + ".." + str.substring(str.length - len, str.length) + ); + } + return str; +} + +export function ExplorerLink({ + path, + label, + className, + explorer, +}: { + path: string; + label: string; + className?: string; + explorer?: string; +}) { + let href = "https://solscan.io/"; + return ( + { + e.stopPropagation(); + }} + className={className ? className : `link font-mono`} + > + {ellipsify(label)} + + ); +} diff --git a/apps/fatcat/src/components/delegate-form.tsx b/apps/fatcat/src/components/delegate-form.tsx index f58d481f..25aa064d 100644 --- a/apps/fatcat/src/components/delegate-form.tsx +++ b/apps/fatcat/src/components/delegate-form.tsx @@ -12,7 +12,9 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; +import { toast } from "@/components/ui/use-toast"; import { ScrollArea } from "@/components/ui/scroll-area"; +import { ExplorerLink } from "@/components/ExplorerLink"; import Link from "next/link"; import { useClient } from "@/providers/clientProvider"; @@ -23,6 +25,20 @@ interface UnstakeItem { endTime: number; } +import { WalletSignTransactionError } from "@solana/wallet-adapter-base"; +import { TransactionExpiredBlockheightExceededError } from "@solana/web3.js"; +function parseTxError(error: any): string { + if (error instanceof WalletSignTransactionError) { + return "Transaction was cancelled by the user"; + } + + if (error instanceof TransactionExpiredBlockheightExceededError) { + return "Transaction expired"; + } + + return error?.message || "Unknown error"; +} + export default function DelegateForm() { const { client } = useClient(); @@ -47,31 +63,40 @@ export default function DelegateForm() { else setUnstakeAmount("25.00"); }; + const handleTx = async (action: string, tx: Promise) => { + setSpinner(true); + try { + const txId = await tx; + console.log(`${action} successful: ${txId}`); + toast({ + title: `${action} successful`, + description: , + }); + } catch (error) { + console.error(parseTxError(error)); + toast({ + title: `${action} failed`, + description: parseTxError(error), + variant: "destructive", + }); + } + setSpinner(false); + }; + const handleStake = async () => { const amount = parseFloat(stakeAmount); if (!(amount > 0)) return; console.log(`Staking ${amount} JUP...`); - try { - setSpinner(true); - await client.stakeJup(amount); - } catch (e) { - console.error(e); - } - setSpinner(false); + handleTx("Staking", client.stakeJup(amount)); }; - const handleUnstake = () => { - if (parseFloat(unstakeAmount) > 0) { - setUnstakeItems([ - ...unstakeItems, - { - amount: unstakeAmount, - endTime: Date.now() + UNSTAKE_COUNTDOWN_TIME, - }, - ]); - setUnstakeAmount("0.00"); - } + const handleUnstake = async () => { + const amount = parseFloat(unstakeAmount); + if (!(amount > 0)) return; + + console.log(`Unstaking ${amount} JUP...`); + handleTx("Unstaking", client.unstakeJup(amount)); }; const handleCancelUnstake = (index: number) => { diff --git a/apps/fatcat/src/components/ui/use-toast.ts b/apps/fatcat/src/components/ui/use-toast.ts new file mode 100644 index 00000000..fc2c6dce --- /dev/null +++ b/apps/fatcat/src/components/ui/use-toast.ts @@ -0,0 +1,191 @@ +"use client"; + +// Inspired by react-hot-toast library +import * as React from "react"; + +import type { ToastActionElement, ToastProps } from "@/components/ui/toast"; + +const TOAST_LIMIT = 1; +const TOAST_REMOVE_DELAY = 1000000; + +type ToasterToast = ToastProps & { + id: string; + title?: React.ReactNode; + description?: React.ReactNode; + action?: ToastActionElement; +}; + +const actionTypes = { + ADD_TOAST: "ADD_TOAST", + UPDATE_TOAST: "UPDATE_TOAST", + DISMISS_TOAST: "DISMISS_TOAST", + REMOVE_TOAST: "REMOVE_TOAST", +} as const; + +let count = 0; + +function genId() { + count = (count + 1) % Number.MAX_SAFE_INTEGER; + return count.toString(); +} + +type ActionType = typeof actionTypes; + +type Action = + | { + type: ActionType["ADD_TOAST"]; + toast: ToasterToast; + } + | { + type: ActionType["UPDATE_TOAST"]; + toast: Partial; + } + | { + type: ActionType["DISMISS_TOAST"]; + toastId?: ToasterToast["id"]; + } + | { + type: ActionType["REMOVE_TOAST"]; + toastId?: ToasterToast["id"]; + }; + +interface State { + toasts: ToasterToast[]; +} + +const toastTimeouts = new Map>(); + +const addToRemoveQueue = (toastId: string) => { + if (toastTimeouts.has(toastId)) { + return; + } + + const timeout = setTimeout(() => { + toastTimeouts.delete(toastId); + dispatch({ + type: "REMOVE_TOAST", + toastId: toastId, + }); + }, TOAST_REMOVE_DELAY); + + toastTimeouts.set(toastId, timeout); +}; + +export const reducer = (state: State, action: Action): State => { + switch (action.type) { + case "ADD_TOAST": + return { + ...state, + toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT), + }; + + case "UPDATE_TOAST": + return { + ...state, + toasts: state.toasts.map((t) => + t.id === action.toast.id ? { ...t, ...action.toast } : t + ), + }; + + case "DISMISS_TOAST": { + const { toastId } = action; + + // ! Side effects ! - This could be extracted into a dismissToast() action, + // but I'll keep it here for simplicity + if (toastId) { + addToRemoveQueue(toastId); + } else { + state.toasts.forEach((toast) => { + addToRemoveQueue(toast.id); + }); + } + + return { + ...state, + toasts: state.toasts.map((t) => + t.id === toastId || toastId === undefined + ? { + ...t, + open: false, + } + : t + ), + }; + } + case "REMOVE_TOAST": + if (action.toastId === undefined) { + return { + ...state, + toasts: [], + }; + } + return { + ...state, + toasts: state.toasts.filter((t) => t.id !== action.toastId), + }; + } +}; + +const listeners: Array<(state: State) => void> = []; + +let memoryState: State = { toasts: [] }; + +function dispatch(action: Action) { + memoryState = reducer(memoryState, action); + listeners.forEach((listener) => { + listener(memoryState); + }); +} + +type Toast = Omit; + +function toast({ ...props }: Toast) { + const id = genId(); + + const update = (props: ToasterToast) => + dispatch({ + type: "UPDATE_TOAST", + toast: { ...props, id }, + }); + const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id }); + + dispatch({ + type: "ADD_TOAST", + toast: { + ...props, + id, + open: true, + onOpenChange: (open) => { + if (!open) dismiss(); + }, + }, + }); + + return { + id: id, + dismiss, + update, + }; +} + +function useToast() { + const [state, setState] = React.useState(memoryState); + + React.useEffect(() => { + listeners.push(setState); + return () => { + const index = listeners.indexOf(setState); + if (index > -1) { + listeners.splice(index, 1); + } + }; + }, [state]); + + return { + ...state, + toast, + dismiss: (toastId?: string) => dispatch({ type: "DISMISS_TOAST", toastId }), + }; +} + +export { useToast, toast }; diff --git a/apps/fatcat/src/lib/client.ts b/apps/fatcat/src/lib/client.ts index e67ae312..5553c0ef 100644 --- a/apps/fatcat/src/lib/client.ts +++ b/apps/fatcat/src/lib/client.ts @@ -1,5 +1,16 @@ +import { AnchorProvider, BN } from "@coral-xyz/anchor"; +import { PublicKey } from "@solana/web3.js"; +import { + createAssociatedTokenAccountIdempotentInstruction, + createTransferCheckedInstruction, + TOKEN_PROGRAM_ID, +} from "@solana/spl-token"; import { GlamClient } from "@glamsystems/glam-sdk"; -import { AnchorProvider } from "@coral-xyz/anchor"; + +const JUP = new PublicKey("JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN"); +const FATCAT_SERVICE = new PublicKey( + "AZpNg57C34kSTvFGVdgJuZ7sYvDTU3EGPNwNhQGqNXkD", +); export class Client extends GlamClient { public constructor(connection: any, wallet: any) { @@ -10,9 +21,92 @@ export class Client extends GlamClient { }); } - stakeJup = async (amount: number) => { + getFatcatState = () => { + // default name const name = "fatcat-" + this.getSigner().toBase58().substring(0, 6); - console.log(`+ Creating vault ${name}`); - this.state.createState({ name }); + + // default model with delegated permissions + const stateModel = this.state.enrichStateModel({ + name, + assets: [JUP], + enabled: true, + //@ts-ignore + integrationAcls: [{ name: { jupiterVote: {} }, features: [] }], + delegateAcls: [ + { + pubkey: FATCAT_SERVICE, + permissions: [{ voteOnProposal: {} }], + }, + ], + }); + stateModel.metadataUri = null; + + // default pda + const state = this.getStatePda(stateModel); + + return { state, stateModel, name }; + }; + + stakeJup = async (amount: number) => { + const { state, stateModel, name } = this.getFatcatState(); + const vault = this.getVaultPda(state); + const amountBN = new BN(amount * 1_000_000); // 6 decimals + let preInstructions = []; + + // try to fetch the state account + // if it doesn't exist, add pre instruction to create it + try { + //@ts-ignore + await this.fetchStateAccount(state); + } catch (error) { + // state does not exist - create it + + //@ts-ignore + const initStateIx = await this.program.methods + .initializeState(stateModel) + .accountsPartial({ + state, + }) + .instruction(); + + preInstructions.push(initStateIx); + console.log(`+ Creating vault ${name}`); + } + + // add instrustions to create vault ATA and transfer JUP to vault + console.log(`+ Transfering ${amount} JUP to vault`); + const vaultAta = this.getVaultAta(state, JUP); + const signer = this.getSigner(); + const signerAta = this.getAta(JUP, signer); + preInstructions.push( + createAssociatedTokenAccountIdempotentInstruction( + this.getSigner(), + vaultAta, + vault, + JUP, + ), + ); + preInstructions.push( + createTransferCheckedInstruction( + signerAta, + JUP, + vaultAta, + signer, + amountBN.toNumber(), + 6, + [], + TOKEN_PROGRAM_ID, + ), + ); + + // prepare the staking transaction + console.log(`+ Staking ${amount} JUP`); + return await this.jupiter.stakeJup(state, amountBN, { + preInstructions, + }); + }; + + unstakeJup = async (amount: number) => { + const { state } = this.getFatcatState(); }; } diff --git a/apps/fatcat/tsconfig.json b/apps/fatcat/tsconfig.json index c8307f97..ff56c1dd 100644 --- a/apps/fatcat/tsconfig.json +++ b/apps/fatcat/tsconfig.json @@ -27,7 +27,8 @@ "@/lib/*": ["./src/lib/*"], "@/styles/*": ["./src/styles/*"], "@/assets/*": ["./src/assets/*"], - "@/providers/*": ["./src/providers/*"] + "@/providers/*": ["./src/providers/*"], + "@glamsystems/glam-sdk": ["../../anchor/src/index.ts"] }, "target": "ES2017" }, @@ -35,7 +36,7 @@ "next-env.d.ts", "**/*.ts", "**/*.tsx", - ".next/types/**/*.ts" + ".next/types/**/*.ts", ], "exclude": [ "node_modules"