Integrate Fluxbeam into Solana Agent Kit #208
Open
+6,124
−125
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR Integrate FluxBeam's comprehensive DeFi toolkit into Solana Agent Kit to enable advanced token management, liquidity operations, and token creation capabilities.
Since there were only two endpoints available all other functionality had to be written from scratch and tested on main net which I am almost done with , I found an endpoint where fluxbeam send transactions using their blazing fast bandwidth markets, so I construct and sign the transaction and POST it to the endpoint as base64
Core Defi Operations
Token Swapping interface and execution
https://solscan.io/tx/fBkaLBZ62LGSPpUB6GELBAjfLwXnHA2EeTypHojFvXYKUcezg1KJD6KaLNArdFNAUqFoVhws4mXSGMEMrD5h79U
Liquidity Provision and management
Wrap and unwrap Sol
https://solscan.io/tx/czVPppfftPc3dq1rKVXmgcmWm6kfyojuj8irGzcgnFN8r83MZLeMdXjZR8ad5EgJ5oUz1Vzd2hoXiHTV4tZMyQm - wrap sol
https://solscan.io/tx/3JmHj72Lqg1EFf5x6zHxoWrTTqLbgGKjCb34kp1Cdyuc5bTzE8CRnECfYDgXE35BPrnZsPAsEXGEj5foiREB6A48 - unwrap sol
Token transfer Functionality
https://solscan.io/tx/393xgGFqJktpwYLaXBtRgqMQ9gZMDPtxqjmqiJpaE1YnJSxRcinPvK7sGhQToh8RJprnnT4xsd2Hr94wG8yACg5a - transfer spl token
https://solscan.io/tx/RTAu1rsygDt8KtgthqjaM8bGi91vW7iAAhWD754vz1nLn2ozLQX5nbcJyBnYWysg5izRMW7xwLFG3Sov9ePZSGY - transfer sol
Cross-chain token bridging support (uses mayan finance sdk)
https://solscan.io/tx/4RQQowChW9yn63eJ4axKVgMLzHyQZrsCNucvH5NZW5Do6DQPeC58BieVpQBA3qvZJ8cD7JUvCAsD7J5G8wZ4h2GG sent 0.020 sol
https://basescan.org/tx/0x75ba5a8753c051c9d691403e016aaf7b7ee3ccc8c15702ccb21f985c1982e87e received 0.00112 WETH
Token Management Suite
V1 and V2 token creation capabilities
https://solscan.io/tx/p6pBLzHAprRcLRpHSFaGUZ12PG6qAmb72Lq81xRkFRQVTp412xAnPFq69KKqcxiBePSEfaVN6hfAngj5H6jQA2s - create v1 Token (TSTFLWR)
https://solscan.io/tx/4PN5btZZunxgDEihh1xWNkCapMhzwbGjJ44T9ox6sCkrQBuGN2GAMhB9PtDwpV8ndcQV8tFvJwdTsRKTSUXCoBHg - my V2 flower
Pool creation and management - it works and returns a valid response but its hard landing a transaction right now

Token locking mechanisms
Problem with this is that the package (bonfida token vesting) is out of date so it doesn't use the latest typescript version, so it can't compile , but I got the logic down but commented it out
Metadata management system
https://solscan.io/tx/2VPELL2owe7zuuTuWM1HB6tbMkajeNbdEsdV3J7K71s5MRPVgir68GmFjdhNf7JMyWtsAP49aqnTfdZo6H9B1JxK - updated token v1 name and symbol to FLWRV1 and FLWR
https://solscan.io/tx/2wD31mdohoxbjcM4AezYwA4SW9N3rPPqvuMftnjnz6CsTA29v5mJUAsaAkbxfBnfASSu7bmRfhK4gGTF1tixA9xw - updated token v2 name and symbol UPDATEDFLOWERV2 and UFLWR
Fee management interface
https://solscan.io/tx/55aayZWF7QPGpt7GsW8ucgGzSDb8dhSvZ8PwxLNrWjUzMzUkkD5wawJVgB4Hrsqrhg1mbkECrz9NG1yHFDeiLk2S - SubmitFeeClaim
Withheld amounts tracking
Token burning functionality
https://solscan.io/tx/3TRW8uUdz5C5CKANu3xT6WkbyJthpm2DZSNzghP3vPkH76zvn1anBgFESsAjkV5eW1xGwLQhLrnZTsTLQ1ovjiKA
Token minting controls
https://solscan.io/tx/3RBnWjuNqoqWrfxkvyfkGrEuiKLC7mdZGwAAXrRYfDzYDs9oNmwudWeKk5jN1MtRVhAp5drM4SVhzk62fvc3Y6ra - mintTo account
https://solscan.io/tx/4x7vHG3QzK55XiCRSdsFdDdDhmsErUz1qt2nAtWv9QQvviT796ZusaW6qFVnHxS6BmopvFRNc3xy79hb3vGE8F7h - setAuthority mint tokens
https://solscan.io/tx/aAq1DyJpEPysa676wUEQmvZpLcieiBeiGGLZaNvxUyD5B3jj7NhDL3gBPuVVZ2j8cQ6oHX8TW456mzA5gE7j8Yv - revoke authority (set Authority to none)
Token airdrop functionality - will probably test on devnet because of multiple ATA creation takes a lot of SOL
This pull request was created for https://app.gib.work/bounties/12aae7aa-ee5f-4b65-84ec-49eea1a4081d in an attempt to solve a bounty #127 . Payment for the bounty is immediately sent to the contributor after merge.