Generated on 2024-11-20 20:19:06
Analyzed Twitter Accounts:
- onchainvalue: 2 tweets
- tombheads: 1 tweet
- Overdose_AI: 7 tweets
- 0x_Imperius: 1 tweet
- aimemecoinsftw: 6 tweets
- trmachine888: 20 tweets
| /** | |
| * Major modifications from V1: | |
| * 1. Changed architecture to class-based | |
| * 2. Added support for multiple mints | |
| * 3. Added native SOL support | |
| * 4. Handled 0 pre-balance token accounts | |
| * 5. Handled optional accounts for Raydium's swap instructions | |
| */ | |
| class AmmInstructionProcessor { |
| import { LiquidityPoolKeysV4, MARKET_STATE_LAYOUT_V3, Market, TOKEN_PROGRAM_ID } from "@raydium-io/raydium-sdk"; | |
| import { Connection, Logs, ParsedInnerInstruction, ParsedInstruction, ParsedTransactionWithMeta, PartiallyDecodedInstruction, PublicKey } from "@solana/web3.js"; | |
| const RPC_ENDPOINT = 'https://api.mainnet-beta.solana.com'; | |
| const RAYDIUM_POOL_V4_PROGRAM_ID = '675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8'; | |
| const SERUM_OPENBOOK_PROGRAM_ID = 'srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX'; | |
| const SOL_MINT = 'So11111111111111111111111111111111111111112'; | |
| const SOL_DECIMALS = 9; | |
| const connection = new Connection(RPC_ENDPOINT); |
Chose between natural mode like MacOS or Windows default mode.
You can do this by going to Start Menu, type PowerShell, and click Run as Administrator.
$mode = Read-host "How do you like your mouse scroll (0 or 1)?"; Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)"; Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode; "+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n" }
| SharpKeys install and | |
| swap left ctrl and alt | |
| capslock - home | |
| NumLock - turn off | |
| Ins - turn off | |
| .ahk file put in startup folder and install https://www.autohotkey.com/ | |
| C:\Users\gp\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. |
| swapping alt & ctrl with gnome tweaks: | |
| https://askubuntu.com/questions/93624/how-do-i-swap-left-ctrl-with-left-alt-on-my-keyboardkeyboardkeyboardkeyboardkeyboard | |
| sudo gedit /usr/share/X11/xkb/symbols/pc | |
| compare it with (ignore capslock change) | |
| https://gist.github.com/postrational/dd305349bb69f6e25ef0f21809a927eb | |
| #setxkbmap -layout us |