This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void testPdaStakeAccountDerive() throws RpcException { | |
PublicKey miner = new PublicKey("mineXqpDeBeMR8bPQCyy9UneJZbjFywraS3koWZ8SSH"); | |
PublicKey programId = new PublicKey("J6XAzG8S5KmoBM8GcCFfF8NmtzD7U3QPnbhNiYwsu9we"); | |
PublicKey boostProgramId = new PublicKey("boostmPwypNUQu8qZ8RoWt5DXyYSVYxnBXqbbrGjecc"); | |
PublicKey staker = new PublicKey("skynetDj29GH6o6bAqoixCpDuYtWqi1rm8ZNx1hB3vq"); | |
PublicKey oreSolMeteoraLpTokenMint = new PublicKey("DrSS5RM7zUd9qjUEdDaf31vnDUSbCrMto6mjqTrHFifN"); | |
// Managed Proof Address | |
var managedProofAddress = PublicKey.findProgramAddress( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
twitch-videoad.js text/javascript | |
(function() { | |
if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; } | |
function declareOptions(scope) { | |
// Options / globals | |
scope.OPT_MODE_STRIP_AD_SEGMENTS = true; | |
scope.OPT_MODE_NOTIFY_ADS_WATCHED = true; | |
scope.OPT_MODE_NOTIFY_ADS_WATCHED_MIN_REQUESTS = false; | |
scope.OPT_BACKUP_PLAYER_TYPE = 'autoplay'; | |
scope.OPT_BACKUP_PLATFORM = 'ios'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void solendTest() throws RpcException { | |
// SOL/USDC Liquidity mining range: $17.50-18.50 | |
final float liquidityMiningRangeMinimum = 17.50f, liquidityMiningRangeMaximum = 18.50f; | |
final PublicKey publicKey = new PublicKey("9wFFyRfZBsuAha4YcuxcXLKwMxJR43S7fPfQLusDBzvT"); | |
final Market solUsdcMarket = new MarketBuilder() | |
.setClient(client) | |
.setPublicKey(publicKey) |