@satrush/client 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +727 -253
- package/dist/index.d.ts +727 -253
- package/dist/index.js +2828 -1800
- package/dist/index.mjs +2843 -1702
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -208,6 +208,30 @@ declare function fetchAllEpochVaultEntry(rpc: Parameters<typeof fetchEncodedAcco
|
|
|
208
208
|
declare function fetchAllMaybeEpochVaultEntry(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<EpochVaultEntry>[]>;
|
|
209
209
|
declare function getEpochVaultEntrySize(): number;
|
|
210
210
|
|
|
211
|
+
/**
|
|
212
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
213
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
214
|
+
* to add features, then rerun Codama to update it.
|
|
215
|
+
*
|
|
216
|
+
* @see https://github.com/codama-idl/codama
|
|
217
|
+
*/
|
|
218
|
+
|
|
219
|
+
type EpochDrawTriggered = {
|
|
220
|
+
iterationId: number;
|
|
221
|
+
totalTickets: bigint;
|
|
222
|
+
poolUsd: bigint;
|
|
223
|
+
poolBtc: bigint;
|
|
224
|
+
};
|
|
225
|
+
type EpochDrawTriggeredArgs = {
|
|
226
|
+
iterationId: number;
|
|
227
|
+
totalTickets: number | bigint;
|
|
228
|
+
poolUsd: number | bigint;
|
|
229
|
+
poolBtc: number | bigint;
|
|
230
|
+
};
|
|
231
|
+
declare function getEpochDrawTriggeredEncoder(): FixedSizeEncoder<EpochDrawTriggeredArgs>;
|
|
232
|
+
declare function getEpochDrawTriggeredDecoder(): FixedSizeDecoder<EpochDrawTriggered>;
|
|
233
|
+
declare function getEpochDrawTriggeredCodec(): FixedSizeCodec<EpochDrawTriggeredArgs, EpochDrawTriggered>;
|
|
234
|
+
|
|
211
235
|
/**
|
|
212
236
|
* This code was AUTOGENERATED using the Codama library.
|
|
213
237
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -227,6 +251,82 @@ declare function getEpochStateEncoder(): FixedSizeEncoder<EpochStateArgs>;
|
|
|
227
251
|
declare function getEpochStateDecoder(): FixedSizeDecoder<EpochState>;
|
|
228
252
|
declare function getEpochStateCodec(): FixedSizeCodec<EpochStateArgs, EpochState>;
|
|
229
253
|
|
|
254
|
+
/**
|
|
255
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
256
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
257
|
+
* to add features, then rerun Codama to update it.
|
|
258
|
+
*
|
|
259
|
+
* @see https://github.com/codama-idl/codama
|
|
260
|
+
*/
|
|
261
|
+
|
|
262
|
+
type EpochTicketsBought = {
|
|
263
|
+
authority: Address;
|
|
264
|
+
iterationId: number;
|
|
265
|
+
pageIndex: number;
|
|
266
|
+
ticketsAmount: bigint;
|
|
267
|
+
};
|
|
268
|
+
type EpochTicketsBoughtArgs = {
|
|
269
|
+
authority: Address;
|
|
270
|
+
iterationId: number;
|
|
271
|
+
pageIndex: number;
|
|
272
|
+
ticketsAmount: number | bigint;
|
|
273
|
+
};
|
|
274
|
+
declare function getEpochTicketsBoughtEncoder(): FixedSizeEncoder<EpochTicketsBoughtArgs>;
|
|
275
|
+
declare function getEpochTicketsBoughtDecoder(): FixedSizeDecoder<EpochTicketsBought>;
|
|
276
|
+
declare function getEpochTicketsBoughtCodec(): FixedSizeCodec<EpochTicketsBoughtArgs, EpochTicketsBought>;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
280
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
281
|
+
* to add features, then rerun Codama to update it.
|
|
282
|
+
*
|
|
283
|
+
* @see https://github.com/codama-idl/codama
|
|
284
|
+
*/
|
|
285
|
+
|
|
286
|
+
type EpochWinnerSelected = {
|
|
287
|
+
iterationId: number;
|
|
288
|
+
/** The winning participant. */
|
|
289
|
+
winner: Address;
|
|
290
|
+
/** 0-based selection order; determines the pot share. */
|
|
291
|
+
rank: number;
|
|
292
|
+
pageIndex: number;
|
|
293
|
+
winningTicket: bigint;
|
|
294
|
+
};
|
|
295
|
+
type EpochWinnerSelectedArgs = {
|
|
296
|
+
iterationId: number;
|
|
297
|
+
/** The winning participant. */
|
|
298
|
+
winner: Address;
|
|
299
|
+
/** 0-based selection order; determines the pot share. */
|
|
300
|
+
rank: number;
|
|
301
|
+
pageIndex: number;
|
|
302
|
+
winningTicket: number | bigint;
|
|
303
|
+
};
|
|
304
|
+
declare function getEpochWinnerSelectedEncoder(): FixedSizeEncoder<EpochWinnerSelectedArgs>;
|
|
305
|
+
declare function getEpochWinnerSelectedDecoder(): FixedSizeDecoder<EpochWinnerSelected>;
|
|
306
|
+
declare function getEpochWinnerSelectedCodec(): FixedSizeCodec<EpochWinnerSelectedArgs, EpochWinnerSelected>;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
310
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
311
|
+
* to add features, then rerun Codama to update it.
|
|
312
|
+
*
|
|
313
|
+
* @see https://github.com/codama-idl/codama
|
|
314
|
+
*/
|
|
315
|
+
|
|
316
|
+
type OneBtcDrawTriggered = {
|
|
317
|
+
iterationId: number;
|
|
318
|
+
totalTickets: bigint;
|
|
319
|
+
winningTicketId: bigint;
|
|
320
|
+
};
|
|
321
|
+
type OneBtcDrawTriggeredArgs = {
|
|
322
|
+
iterationId: number;
|
|
323
|
+
totalTickets: number | bigint;
|
|
324
|
+
winningTicketId: number | bigint;
|
|
325
|
+
};
|
|
326
|
+
declare function getOneBtcDrawTriggeredEncoder(): FixedSizeEncoder<OneBtcDrawTriggeredArgs>;
|
|
327
|
+
declare function getOneBtcDrawTriggeredDecoder(): FixedSizeDecoder<OneBtcDrawTriggered>;
|
|
328
|
+
declare function getOneBtcDrawTriggeredCodec(): FixedSizeCodec<OneBtcDrawTriggeredArgs, OneBtcDrawTriggered>;
|
|
329
|
+
|
|
230
330
|
/**
|
|
231
331
|
* This code was AUTOGENERATED using the Codama library.
|
|
232
332
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -245,6 +345,30 @@ declare function getOneBtcStateEncoder(): FixedSizeEncoder<OneBtcStateArgs>;
|
|
|
245
345
|
declare function getOneBtcStateDecoder(): FixedSizeDecoder<OneBtcState>;
|
|
246
346
|
declare function getOneBtcStateCodec(): FixedSizeCodec<OneBtcStateArgs, OneBtcState>;
|
|
247
347
|
|
|
348
|
+
/**
|
|
349
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
350
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
351
|
+
* to add features, then rerun Codama to update it.
|
|
352
|
+
*
|
|
353
|
+
* @see https://github.com/codama-idl/codama
|
|
354
|
+
*/
|
|
355
|
+
|
|
356
|
+
type OneBtcTicketsBought = {
|
|
357
|
+
authority: Address;
|
|
358
|
+
iterationId: number;
|
|
359
|
+
startTicketId: bigint;
|
|
360
|
+
ticketsCount: bigint;
|
|
361
|
+
};
|
|
362
|
+
type OneBtcTicketsBoughtArgs = {
|
|
363
|
+
authority: Address;
|
|
364
|
+
iterationId: number;
|
|
365
|
+
startTicketId: number | bigint;
|
|
366
|
+
ticketsCount: number | bigint;
|
|
367
|
+
};
|
|
368
|
+
declare function getOneBtcTicketsBoughtEncoder(): FixedSizeEncoder<OneBtcTicketsBoughtArgs>;
|
|
369
|
+
declare function getOneBtcTicketsBoughtDecoder(): FixedSizeDecoder<OneBtcTicketsBought>;
|
|
370
|
+
declare function getOneBtcTicketsBoughtCodec(): FixedSizeCodec<OneBtcTicketsBoughtArgs, OneBtcTicketsBought>;
|
|
371
|
+
|
|
248
372
|
/**
|
|
249
373
|
* This code was AUTOGENERATED using the Codama library.
|
|
250
374
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -265,6 +389,86 @@ declare function getPageEntryEncoder(): FixedSizeEncoder<PageEntryArgs>;
|
|
|
265
389
|
declare function getPageEntryDecoder(): FixedSizeDecoder<PageEntry>;
|
|
266
390
|
declare function getPageEntryCodec(): FixedSizeCodec<PageEntryArgs, PageEntry>;
|
|
267
391
|
|
|
392
|
+
/**
|
|
393
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
394
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
395
|
+
* to add features, then rerun Codama to update it.
|
|
396
|
+
*
|
|
397
|
+
* @see https://github.com/codama-idl/codama
|
|
398
|
+
*/
|
|
399
|
+
|
|
400
|
+
type PublicDeploySettled = {
|
|
401
|
+
authority: Address;
|
|
402
|
+
roundId: number;
|
|
403
|
+
/** The deployment's even-split stake on the winning tile. */
|
|
404
|
+
winningStake: bigint;
|
|
405
|
+
/** USD winnings credited to the miner's unclaimed balance. */
|
|
406
|
+
wonUsdAmount: bigint;
|
|
407
|
+
/** Sats vault shares minted for the BTC winnings. */
|
|
408
|
+
wonSharesAmount: bigint;
|
|
409
|
+
/** Hashrate points credited for the play. */
|
|
410
|
+
hashrateEarned: bigint;
|
|
411
|
+
};
|
|
412
|
+
type PublicDeploySettledArgs = {
|
|
413
|
+
authority: Address;
|
|
414
|
+
roundId: number;
|
|
415
|
+
/** The deployment's even-split stake on the winning tile. */
|
|
416
|
+
winningStake: number | bigint;
|
|
417
|
+
/** USD winnings credited to the miner's unclaimed balance. */
|
|
418
|
+
wonUsdAmount: number | bigint;
|
|
419
|
+
/** Sats vault shares minted for the BTC winnings. */
|
|
420
|
+
wonSharesAmount: number | bigint;
|
|
421
|
+
/** Hashrate points credited for the play. */
|
|
422
|
+
hashrateEarned: number | bigint;
|
|
423
|
+
};
|
|
424
|
+
declare function getPublicDeploySettledEncoder(): FixedSizeEncoder<PublicDeploySettledArgs>;
|
|
425
|
+
declare function getPublicDeploySettledDecoder(): FixedSizeDecoder<PublicDeploySettled>;
|
|
426
|
+
declare function getPublicDeploySettledCodec(): FixedSizeCodec<PublicDeploySettledArgs, PublicDeploySettled>;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
430
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
431
|
+
* to add features, then rerun Codama to update it.
|
|
432
|
+
*
|
|
433
|
+
* @see https://github.com/codama-idl/codama
|
|
434
|
+
*/
|
|
435
|
+
|
|
436
|
+
type RoundRevealed = {
|
|
437
|
+
roundId: number;
|
|
438
|
+
winningTile: number;
|
|
439
|
+
/**
|
|
440
|
+
* Whether the ~1/1440 strike jackpot draw fired for this round (its funds
|
|
441
|
+
* roll into the round's payout pools).
|
|
442
|
+
*/
|
|
443
|
+
isStrikeTriggered: boolean;
|
|
444
|
+
};
|
|
445
|
+
type RoundRevealedArgs = RoundRevealed;
|
|
446
|
+
declare function getRoundRevealedEncoder(): FixedSizeEncoder<RoundRevealedArgs>;
|
|
447
|
+
declare function getRoundRevealedDecoder(): FixedSizeDecoder<RoundRevealed>;
|
|
448
|
+
declare function getRoundRevealedCodec(): FixedSizeCodec<RoundRevealedArgs, RoundRevealed>;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
452
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
453
|
+
* to add features, then rerun Codama to update it.
|
|
454
|
+
*
|
|
455
|
+
* @see https://github.com/codama-idl/codama
|
|
456
|
+
*/
|
|
457
|
+
|
|
458
|
+
type RoundStakeSwapped = {
|
|
459
|
+
roundId: number;
|
|
460
|
+
deployedUsdAmount: bigint;
|
|
461
|
+
deployedBtcAmount: bigint;
|
|
462
|
+
};
|
|
463
|
+
type RoundStakeSwappedArgs = {
|
|
464
|
+
roundId: number;
|
|
465
|
+
deployedUsdAmount: number | bigint;
|
|
466
|
+
deployedBtcAmount: number | bigint;
|
|
467
|
+
};
|
|
468
|
+
declare function getRoundStakeSwappedEncoder(): FixedSizeEncoder<RoundStakeSwappedArgs>;
|
|
469
|
+
declare function getRoundStakeSwappedDecoder(): FixedSizeDecoder<RoundStakeSwapped>;
|
|
470
|
+
declare function getRoundStakeSwappedCodec(): FixedSizeCodec<RoundStakeSwappedArgs, RoundStakeSwapped>;
|
|
471
|
+
|
|
268
472
|
/**
|
|
269
473
|
* This code was AUTOGENERATED using the Codama library.
|
|
270
474
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -1106,99 +1310,105 @@ declare const SATRUSH_ERROR__UNAUTHORIZED = 6000;
|
|
|
1106
1310
|
declare const SATRUSH_ERROR__ROUND_IN_PROGRESS = 6001;
|
|
1107
1311
|
/** InvalidRoundId: Invalid round id supplied to create round */
|
|
1108
1312
|
declare const SATRUSH_ERROR__INVALID_ROUND_ID = 6002;
|
|
1313
|
+
/** InvalidRoundDuration: Round duration must be greater than zero */
|
|
1314
|
+
declare const SATRUSH_ERROR__INVALID_ROUND_DURATION = 6003;
|
|
1109
1315
|
/** InvalidEntropy: Entropy value is invalid */
|
|
1110
|
-
declare const SATRUSH_ERROR__INVALID_ENTROPY =
|
|
1316
|
+
declare const SATRUSH_ERROR__INVALID_ENTROPY = 6004;
|
|
1111
1317
|
/** RoundNotActive: Round is not accepting deploys */
|
|
1112
|
-
declare const SATRUSH_ERROR__ROUND_NOT_ACTIVE =
|
|
1318
|
+
declare const SATRUSH_ERROR__ROUND_NOT_ACTIVE = 6005;
|
|
1113
1319
|
/** InvalidDeploymentAmount: Deployment amount must be greater than zero */
|
|
1114
|
-
declare const SATRUSH_ERROR__INVALID_DEPLOYMENT_AMOUNT =
|
|
1320
|
+
declare const SATRUSH_ERROR__INVALID_DEPLOYMENT_AMOUNT = 6006;
|
|
1115
1321
|
/** InvalidSelectionMask: Selection mask must pick between 1 and 21 tiles within the 21-bit range */
|
|
1116
|
-
declare const SATRUSH_ERROR__INVALID_SELECTION_MASK =
|
|
1322
|
+
declare const SATRUSH_ERROR__INVALID_SELECTION_MASK = 6007;
|
|
1117
1323
|
/** MathOverflow: Arithmetic overflow */
|
|
1118
|
-
declare const SATRUSH_ERROR__MATH_OVERFLOW =
|
|
1324
|
+
declare const SATRUSH_ERROR__MATH_OVERFLOW = 6008;
|
|
1119
1325
|
/** MathUnderflow: Arithmetic underflow */
|
|
1120
|
-
declare const SATRUSH_ERROR__MATH_UNDERFLOW =
|
|
1326
|
+
declare const SATRUSH_ERROR__MATH_UNDERFLOW = 6009;
|
|
1121
1327
|
/** AlreadyRevealed: Round winning tile has already been revealed */
|
|
1122
|
-
declare const SATRUSH_ERROR__ALREADY_REVEALED =
|
|
1328
|
+
declare const SATRUSH_ERROR__ALREADY_REVEALED = 6010;
|
|
1123
1329
|
/** InvalidSlotHash: Slot hash entropy is unavailable or invalid */
|
|
1124
|
-
declare const SATRUSH_ERROR__INVALID_SLOT_HASH =
|
|
1330
|
+
declare const SATRUSH_ERROR__INVALID_SLOT_HASH = 6011;
|
|
1125
1331
|
/** RoundNotRevealed: Round winning tile has not been revealed yet */
|
|
1126
|
-
declare const SATRUSH_ERROR__ROUND_NOT_REVEALED =
|
|
1332
|
+
declare const SATRUSH_ERROR__ROUND_NOT_REVEALED = 6012;
|
|
1127
1333
|
/** AlreadySettled: Deployment has already been settled */
|
|
1128
|
-
declare const SATRUSH_ERROR__ALREADY_SETTLED =
|
|
1334
|
+
declare const SATRUSH_ERROR__ALREADY_SETTLED = 6013;
|
|
1129
1335
|
/** RoundNotSettled: Round is not in the settled state */
|
|
1130
|
-
declare const SATRUSH_ERROR__ROUND_NOT_SETTLED =
|
|
1336
|
+
declare const SATRUSH_ERROR__ROUND_NOT_SETTLED = 6014;
|
|
1131
1337
|
/** DeploymentNotSettled: Deployment has not been settled yet */
|
|
1132
|
-
declare const SATRUSH_ERROR__DEPLOYMENT_NOT_SETTLED =
|
|
1338
|
+
declare const SATRUSH_ERROR__DEPLOYMENT_NOT_SETTLED = 6015;
|
|
1133
1339
|
/** RoundWindowClosed: Round is not currently accepting deploys (window closed) */
|
|
1134
|
-
declare const SATRUSH_ERROR__ROUND_WINDOW_CLOSED =
|
|
1340
|
+
declare const SATRUSH_ERROR__ROUND_WINDOW_CLOSED = 6016;
|
|
1135
1341
|
/** BoardAlreadyBootstrapped: Board already has a round; use advance_round to rotate */
|
|
1136
|
-
declare const SATRUSH_ERROR__BOARD_ALREADY_BOOTSTRAPPED =
|
|
1342
|
+
declare const SATRUSH_ERROR__BOARD_ALREADY_BOOTSTRAPPED = 6017;
|
|
1137
1343
|
/** InvalidSwapProgram: Swap program account does not match the configured swap program */
|
|
1138
|
-
declare const SATRUSH_ERROR__INVALID_SWAP_PROGRAM =
|
|
1344
|
+
declare const SATRUSH_ERROR__INVALID_SWAP_PROGRAM = 6018;
|
|
1139
1345
|
/** AlreadySwapped: Round stake has already been swapped into BTC */
|
|
1140
|
-
declare const SATRUSH_ERROR__ALREADY_SWAPPED =
|
|
1346
|
+
declare const SATRUSH_ERROR__ALREADY_SWAPPED = 6019;
|
|
1141
1347
|
/** SwapOverspent: Swap spent more USD than the budgeted amount */
|
|
1142
|
-
declare const SATRUSH_ERROR__SWAP_OVERSPENT =
|
|
1348
|
+
declare const SATRUSH_ERROR__SWAP_OVERSPENT = 6020;
|
|
1143
1349
|
/** SlippageExceeded: Swap output is below the minimum acceptable amount */
|
|
1144
|
-
declare const SATRUSH_ERROR__SLIPPAGE_EXCEEDED =
|
|
1350
|
+
declare const SATRUSH_ERROR__SLIPPAGE_EXCEEDED = 6021;
|
|
1145
1351
|
/** InvalidJupiterRoute: Invalid jupiter route was provided */
|
|
1146
|
-
declare const SATRUSH_ERROR__INVALID_JUPITER_ROUTE =
|
|
1352
|
+
declare const SATRUSH_ERROR__INVALID_JUPITER_ROUTE = 6022;
|
|
1147
1353
|
/** InvalidShareAmount: Share amount must be greater than zero */
|
|
1148
|
-
declare const SATRUSH_ERROR__INVALID_SHARE_AMOUNT =
|
|
1354
|
+
declare const SATRUSH_ERROR__INVALID_SHARE_AMOUNT = 6023;
|
|
1149
1355
|
/** InsufficientShares: Miner does not hold enough Sats Vault shares */
|
|
1150
|
-
declare const SATRUSH_ERROR__INSUFFICIENT_SHARES =
|
|
1356
|
+
declare const SATRUSH_ERROR__INSUFFICIENT_SHARES = 6024;
|
|
1151
1357
|
/** StrikeAlreadyTriggered: Strike jackpot was already triggered on the provided round */
|
|
1152
|
-
declare const SATRUSH_ERROR__STRIKE_ALREADY_TRIGGERED =
|
|
1358
|
+
declare const SATRUSH_ERROR__STRIKE_ALREADY_TRIGGERED = 6025;
|
|
1153
1359
|
/** StrikeBelowThreshold: Strike pending balance is below the swap threshold */
|
|
1154
|
-
declare const SATRUSH_ERROR__STRIKE_BELOW_THRESHOLD =
|
|
1360
|
+
declare const SATRUSH_ERROR__STRIKE_BELOW_THRESHOLD = 6026;
|
|
1155
1361
|
/** EpochNotOpen: Epoch iteration is not accepting ticket purchases */
|
|
1156
|
-
declare const SATRUSH_ERROR__EPOCH_NOT_OPEN =
|
|
1362
|
+
declare const SATRUSH_ERROR__EPOCH_NOT_OPEN = 6027;
|
|
1157
1363
|
/** EpochWindowNotElapsed: Epoch iteration window has not elapsed yet */
|
|
1158
|
-
declare const SATRUSH_ERROR__EPOCH_WINDOW_NOT_ELAPSED =
|
|
1364
|
+
declare const SATRUSH_ERROR__EPOCH_WINDOW_NOT_ELAPSED = 6028;
|
|
1159
1365
|
/** EpochBelowThreshold: Epoch pending balance is below the swap threshold */
|
|
1160
|
-
declare const SATRUSH_ERROR__EPOCH_BELOW_THRESHOLD =
|
|
1366
|
+
declare const SATRUSH_ERROR__EPOCH_BELOW_THRESHOLD = 6029;
|
|
1161
1367
|
/** EpochNotSettling: Epoch iteration is not in the settling state */
|
|
1162
|
-
declare const SATRUSH_ERROR__EPOCH_NOT_SETTLING =
|
|
1368
|
+
declare const SATRUSH_ERROR__EPOCH_NOT_SETTLING = 6030;
|
|
1163
1369
|
/** EpochNotSettled: Epoch iteration is not in the settled state */
|
|
1164
|
-
declare const SATRUSH_ERROR__EPOCH_NOT_SETTLED =
|
|
1370
|
+
declare const SATRUSH_ERROR__EPOCH_NOT_SETTLED = 6031;
|
|
1165
1371
|
/** EpochInvalidPage: Supplied page does not contain the current winning ticket */
|
|
1166
|
-
declare const SATRUSH_ERROR__EPOCH_INVALID_PAGE =
|
|
1372
|
+
declare const SATRUSH_ERROR__EPOCH_INVALID_PAGE = 6032;
|
|
1167
1373
|
/** EpochNotAWinner: Signer is not a winner of this epoch draw */
|
|
1168
|
-
declare const SATRUSH_ERROR__EPOCH_NOT_A_WINNER =
|
|
1374
|
+
declare const SATRUSH_ERROR__EPOCH_NOT_A_WINNER = 6033;
|
|
1169
1375
|
/** EpochAlreadyClaimed: Epoch reward has already been claimed */
|
|
1170
|
-
declare const SATRUSH_ERROR__EPOCH_ALREADY_CLAIMED =
|
|
1376
|
+
declare const SATRUSH_ERROR__EPOCH_ALREADY_CLAIMED = 6034;
|
|
1171
1377
|
/** EpochMaxParticipants: Epoch iteration has reached the maximum number of participants */
|
|
1172
|
-
declare const SATRUSH_ERROR__EPOCH_MAX_PARTICIPANTS =
|
|
1378
|
+
declare const SATRUSH_ERROR__EPOCH_MAX_PARTICIPANTS = 6035;
|
|
1173
1379
|
/** EpochBelowMinHashrate: Hashrate spent is below the minimum required for entry */
|
|
1174
|
-
declare const SATRUSH_ERROR__EPOCH_BELOW_MIN_HASHRATE =
|
|
1380
|
+
declare const SATRUSH_ERROR__EPOCH_BELOW_MIN_HASHRATE = 6036;
|
|
1175
1381
|
/** InsufficientHashrate: Miner does not have enough hashrate */
|
|
1176
|
-
declare const SATRUSH_ERROR__INSUFFICIENT_HASHRATE =
|
|
1382
|
+
declare const SATRUSH_ERROR__INSUFFICIENT_HASHRATE = 6037;
|
|
1177
1383
|
/** OneBtcNotOpen: 1 BTC Vault iteration is not accepting ticket purchases */
|
|
1178
|
-
declare const SATRUSH_ERROR__ONE_BTC_NOT_OPEN =
|
|
1384
|
+
declare const SATRUSH_ERROR__ONE_BTC_NOT_OPEN = 6038;
|
|
1179
1385
|
/** OneBtcNotSettled: 1 BTC Vault iteration is not in the settled state */
|
|
1180
|
-
declare const SATRUSH_ERROR__ONE_BTC_NOT_SETTLED =
|
|
1386
|
+
declare const SATRUSH_ERROR__ONE_BTC_NOT_SETTLED = 6039;
|
|
1181
1387
|
/** OneBtcBelowThreshold: 1 BTC Vault pending balance is below the swap threshold */
|
|
1182
|
-
declare const SATRUSH_ERROR__ONE_BTC_BELOW_THRESHOLD =
|
|
1388
|
+
declare const SATRUSH_ERROR__ONE_BTC_BELOW_THRESHOLD = 6040;
|
|
1183
1389
|
/** OneBtcNotTriggerable: 1 BTC Vault has not accumulated enough BTC to trigger a draw */
|
|
1184
|
-
declare const SATRUSH_ERROR__ONE_BTC_NOT_TRIGGERABLE =
|
|
1390
|
+
declare const SATRUSH_ERROR__ONE_BTC_NOT_TRIGGERABLE = 6041;
|
|
1185
1391
|
/** OneBtcNoParticipants: 1 BTC Vault draw has no participants */
|
|
1186
|
-
declare const SATRUSH_ERROR__ONE_BTC_NO_PARTICIPANTS =
|
|
1392
|
+
declare const SATRUSH_ERROR__ONE_BTC_NO_PARTICIPANTS = 6042;
|
|
1187
1393
|
/** OneBtcNotAWinner: Ticket does not hold the winning ticket for this draw */
|
|
1188
|
-
declare const SATRUSH_ERROR__ONE_BTC_NOT_A_WINNER =
|
|
1394
|
+
declare const SATRUSH_ERROR__ONE_BTC_NOT_A_WINNER = 6043;
|
|
1189
1395
|
/** OneBtcBelowMinHashrate: Hashrate spent is below the minimum required for a ticket purchase */
|
|
1190
|
-
declare const SATRUSH_ERROR__ONE_BTC_BELOW_MIN_HASHRATE =
|
|
1396
|
+
declare const SATRUSH_ERROR__ONE_BTC_BELOW_MIN_HASHRATE = 6044;
|
|
1191
1397
|
/** OneBtcWinningTicketLocked: The winning ticket cannot be closed until the prize is claimed */
|
|
1192
|
-
declare const SATRUSH_ERROR__ONE_BTC_WINNING_TICKET_LOCKED =
|
|
1398
|
+
declare const SATRUSH_ERROR__ONE_BTC_WINNING_TICKET_LOCKED = 6045;
|
|
1193
1399
|
/** EpochPageAlreadySealed: Epoch page has already been sealed */
|
|
1194
|
-
declare const SATRUSH_ERROR__EPOCH_PAGE_ALREADY_SEALED =
|
|
1400
|
+
declare const SATRUSH_ERROR__EPOCH_PAGE_ALREADY_SEALED = 6046;
|
|
1195
1401
|
/** EpochPageNotSealed: Epoch page is not sealed yet */
|
|
1196
|
-
declare const SATRUSH_ERROR__EPOCH_PAGE_NOT_SEALED =
|
|
1402
|
+
declare const SATRUSH_ERROR__EPOCH_PAGE_NOT_SEALED = 6047;
|
|
1197
1403
|
/** EpochSealMismatch: Epoch sealed page chain does not reconcile with the iteration's ticket total */
|
|
1198
|
-
declare const SATRUSH_ERROR__EPOCH_SEAL_MISMATCH =
|
|
1404
|
+
declare const SATRUSH_ERROR__EPOCH_SEAL_MISMATCH = 6048;
|
|
1199
1405
|
/** TreasuryEmpty: Treasury has no accrued fees to withdraw */
|
|
1200
|
-
declare const SATRUSH_ERROR__TREASURY_EMPTY =
|
|
1201
|
-
|
|
1406
|
+
declare const SATRUSH_ERROR__TREASURY_EMPTY = 6049;
|
|
1407
|
+
/** InvalidClaimAmount: Claim amount must be greater than zero */
|
|
1408
|
+
declare const SATRUSH_ERROR__INVALID_CLAIM_AMOUNT = 6050;
|
|
1409
|
+
/** InsufficientUnclaimedUsd: Miner does not hold enough unclaimed USD */
|
|
1410
|
+
declare const SATRUSH_ERROR__INSUFFICIENT_UNCLAIMED_USD = 6051;
|
|
1411
|
+
type SatrushError = typeof SATRUSH_ERROR__ALREADY_REVEALED | typeof SATRUSH_ERROR__ALREADY_SETTLED | typeof SATRUSH_ERROR__ALREADY_SWAPPED | typeof SATRUSH_ERROR__BOARD_ALREADY_BOOTSTRAPPED | typeof SATRUSH_ERROR__DEPLOYMENT_NOT_SETTLED | typeof SATRUSH_ERROR__EPOCH_ALREADY_CLAIMED | typeof SATRUSH_ERROR__EPOCH_BELOW_MIN_HASHRATE | typeof SATRUSH_ERROR__EPOCH_BELOW_THRESHOLD | typeof SATRUSH_ERROR__EPOCH_INVALID_PAGE | typeof SATRUSH_ERROR__EPOCH_MAX_PARTICIPANTS | typeof SATRUSH_ERROR__EPOCH_NOT_A_WINNER | typeof SATRUSH_ERROR__EPOCH_NOT_OPEN | typeof SATRUSH_ERROR__EPOCH_NOT_SETTLED | typeof SATRUSH_ERROR__EPOCH_NOT_SETTLING | typeof SATRUSH_ERROR__EPOCH_PAGE_ALREADY_SEALED | typeof SATRUSH_ERROR__EPOCH_PAGE_NOT_SEALED | typeof SATRUSH_ERROR__EPOCH_SEAL_MISMATCH | typeof SATRUSH_ERROR__EPOCH_WINDOW_NOT_ELAPSED | typeof SATRUSH_ERROR__INSUFFICIENT_HASHRATE | typeof SATRUSH_ERROR__INSUFFICIENT_SHARES | typeof SATRUSH_ERROR__INSUFFICIENT_UNCLAIMED_USD | typeof SATRUSH_ERROR__INVALID_CLAIM_AMOUNT | typeof SATRUSH_ERROR__INVALID_DEPLOYMENT_AMOUNT | typeof SATRUSH_ERROR__INVALID_ENTROPY | typeof SATRUSH_ERROR__INVALID_JUPITER_ROUTE | typeof SATRUSH_ERROR__INVALID_ROUND_DURATION | typeof SATRUSH_ERROR__INVALID_ROUND_ID | typeof SATRUSH_ERROR__INVALID_SELECTION_MASK | typeof SATRUSH_ERROR__INVALID_SHARE_AMOUNT | typeof SATRUSH_ERROR__INVALID_SLOT_HASH | typeof SATRUSH_ERROR__INVALID_SWAP_PROGRAM | typeof SATRUSH_ERROR__MATH_OVERFLOW | typeof SATRUSH_ERROR__MATH_UNDERFLOW | typeof SATRUSH_ERROR__ONE_BTC_BELOW_MIN_HASHRATE | typeof SATRUSH_ERROR__ONE_BTC_BELOW_THRESHOLD | typeof SATRUSH_ERROR__ONE_BTC_NO_PARTICIPANTS | typeof SATRUSH_ERROR__ONE_BTC_NOT_A_WINNER | typeof SATRUSH_ERROR__ONE_BTC_NOT_OPEN | typeof SATRUSH_ERROR__ONE_BTC_NOT_SETTLED | typeof SATRUSH_ERROR__ONE_BTC_NOT_TRIGGERABLE | typeof SATRUSH_ERROR__ONE_BTC_WINNING_TICKET_LOCKED | typeof SATRUSH_ERROR__ROUND_IN_PROGRESS | typeof SATRUSH_ERROR__ROUND_NOT_ACTIVE | typeof SATRUSH_ERROR__ROUND_NOT_REVEALED | typeof SATRUSH_ERROR__ROUND_NOT_SETTLED | typeof SATRUSH_ERROR__ROUND_WINDOW_CLOSED | typeof SATRUSH_ERROR__SLIPPAGE_EXCEEDED | typeof SATRUSH_ERROR__STRIKE_ALREADY_TRIGGERED | typeof SATRUSH_ERROR__STRIKE_BELOW_THRESHOLD | typeof SATRUSH_ERROR__SWAP_OVERSPENT | typeof SATRUSH_ERROR__TREASURY_EMPTY | typeof SATRUSH_ERROR__UNAUTHORIZED;
|
|
1202
1412
|
declare function getSatrushErrorMessage(code: SatrushError): string;
|
|
1203
1413
|
declare function isSatrushError<TProgramErrorCode extends SatrushError>(error: unknown, transactionMessage: {
|
|
1204
1414
|
instructions: Record<number, {
|
|
@@ -1379,10 +1589,10 @@ declare function identifySatrushAccount(account: {
|
|
|
1379
1589
|
declare enum SatrushInstruction {
|
|
1380
1590
|
BuyEpochTickets = 0,
|
|
1381
1591
|
BuyOneBtcTickets = 1,
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1592
|
+
ClaimEpochReward = 2,
|
|
1593
|
+
ClaimOneBtcReward = 3,
|
|
1594
|
+
ClaimSats = 4,
|
|
1595
|
+
ClaimUsd = 5,
|
|
1386
1596
|
CloseEpochEntry = 6,
|
|
1387
1597
|
CloseEpochIteration = 7,
|
|
1388
1598
|
CloseEpochPage = 8,
|
|
@@ -1398,13 +1608,15 @@ declare enum SatrushInstruction {
|
|
|
1398
1608
|
RotateRound = 18,
|
|
1399
1609
|
SealEpochPage = 19,
|
|
1400
1610
|
SelectEpochWinner = 20,
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1611
|
+
SettleDeployPublic = 21,
|
|
1612
|
+
SwapEpochStake = 22,
|
|
1613
|
+
SwapOneBtcStake = 23,
|
|
1614
|
+
SwapRoundStake = 24,
|
|
1615
|
+
SwapStrikeStake = 25,
|
|
1616
|
+
TriggerEpochDraw = 26,
|
|
1617
|
+
TriggerOneBtcDraw = 27,
|
|
1618
|
+
UpdateBoardRoundDuration = 28,
|
|
1619
|
+
WithdrawProtocolFees = 29
|
|
1408
1620
|
}
|
|
1409
1621
|
declare function identifySatrushInstruction(instruction: {
|
|
1410
1622
|
data: ReadonlyUint8Array;
|
|
@@ -1414,14 +1626,14 @@ type ParsedSatrushInstruction<TProgram extends string = 'ADp1CgM1xEhyAoXL7zdqSsb
|
|
|
1414
1626
|
} & ParsedBuyEpochTicketsInstruction<TProgram>) | ({
|
|
1415
1627
|
instructionType: SatrushInstruction.BuyOneBtcTickets;
|
|
1416
1628
|
} & ParsedBuyOneBtcTicketsInstruction<TProgram>) | ({
|
|
1417
|
-
instructionType: SatrushInstruction.Claim;
|
|
1418
|
-
} & ParsedClaimInstruction<TProgram>) | ({
|
|
1419
1629
|
instructionType: SatrushInstruction.ClaimEpochReward;
|
|
1420
1630
|
} & ParsedClaimEpochRewardInstruction<TProgram>) | ({
|
|
1421
1631
|
instructionType: SatrushInstruction.ClaimOneBtcReward;
|
|
1422
1632
|
} & ParsedClaimOneBtcRewardInstruction<TProgram>) | ({
|
|
1423
1633
|
instructionType: SatrushInstruction.ClaimSats;
|
|
1424
1634
|
} & ParsedClaimSatsInstruction<TProgram>) | ({
|
|
1635
|
+
instructionType: SatrushInstruction.ClaimUsd;
|
|
1636
|
+
} & ParsedClaimUsdInstruction<TProgram>) | ({
|
|
1425
1637
|
instructionType: SatrushInstruction.CloseEpochEntry;
|
|
1426
1638
|
} & ParsedCloseEpochEntryInstruction<TProgram>) | ({
|
|
1427
1639
|
instructionType: SatrushInstruction.CloseEpochIteration;
|
|
@@ -1452,6 +1664,8 @@ type ParsedSatrushInstruction<TProgram extends string = 'ADp1CgM1xEhyAoXL7zdqSsb
|
|
|
1452
1664
|
} & ParsedSealEpochPageInstruction<TProgram>) | ({
|
|
1453
1665
|
instructionType: SatrushInstruction.SelectEpochWinner;
|
|
1454
1666
|
} & ParsedSelectEpochWinnerInstruction<TProgram>) | ({
|
|
1667
|
+
instructionType: SatrushInstruction.SettleDeployPublic;
|
|
1668
|
+
} & ParsedSettleDeployPublicInstruction<TProgram>) | ({
|
|
1455
1669
|
instructionType: SatrushInstruction.SwapEpochStake;
|
|
1456
1670
|
} & ParsedSwapEpochStakeInstruction<TProgram>) | ({
|
|
1457
1671
|
instructionType: SatrushInstruction.SwapOneBtcStake;
|
|
@@ -1464,6 +1678,8 @@ type ParsedSatrushInstruction<TProgram extends string = 'ADp1CgM1xEhyAoXL7zdqSsb
|
|
|
1464
1678
|
} & ParsedTriggerEpochDrawInstruction<TProgram>) | ({
|
|
1465
1679
|
instructionType: SatrushInstruction.TriggerOneBtcDraw;
|
|
1466
1680
|
} & ParsedTriggerOneBtcDrawInstruction<TProgram>) | ({
|
|
1681
|
+
instructionType: SatrushInstruction.UpdateBoardRoundDuration;
|
|
1682
|
+
} & ParsedUpdateBoardRoundDurationInstruction<TProgram>) | ({
|
|
1467
1683
|
instructionType: SatrushInstruction.WithdrawProtocolFees;
|
|
1468
1684
|
} & ParsedWithdrawProtocolFeesInstruction<TProgram>);
|
|
1469
1685
|
declare function parseSatrushInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedSatrushInstruction<TProgram>;
|
|
@@ -1494,10 +1710,10 @@ type SatrushPluginAccounts = {
|
|
|
1494
1710
|
type SatrushPluginInstructions = {
|
|
1495
1711
|
buyEpochTickets: (input: BuyEpochTicketsAsyncInput) => ReturnType<typeof getBuyEpochTicketsInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1496
1712
|
buyOneBtcTickets: (input: BuyOneBtcTicketsAsyncInput) => ReturnType<typeof getBuyOneBtcTicketsInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1497
|
-
claim: (input: ClaimAsyncInput) => ReturnType<typeof getClaimInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1498
1713
|
claimEpochReward: (input: ClaimEpochRewardAsyncInput) => ReturnType<typeof getClaimEpochRewardInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1499
1714
|
claimOneBtcReward: (input: ClaimOneBtcRewardAsyncInput) => ReturnType<typeof getClaimOneBtcRewardInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1500
1715
|
claimSats: (input: ClaimSatsAsyncInput) => ReturnType<typeof getClaimSatsInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1716
|
+
claimUsd: (input: ClaimUsdAsyncInput) => ReturnType<typeof getClaimUsdInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1501
1717
|
closeEpochEntry: (input: CloseEpochEntryAsyncInput) => ReturnType<typeof getCloseEpochEntryInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1502
1718
|
closeEpochIteration: (input: CloseEpochIterationAsyncInput) => ReturnType<typeof getCloseEpochIterationInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1503
1719
|
closeEpochPage: (input: CloseEpochPageAsyncInput) => ReturnType<typeof getCloseEpochPageInstructionAsync> & SelfPlanAndSendFunctions;
|
|
@@ -1513,12 +1729,14 @@ type SatrushPluginInstructions = {
|
|
|
1513
1729
|
rotateRound: (input: RotateRoundAsyncInput) => ReturnType<typeof getRotateRoundInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1514
1730
|
sealEpochPage: (input: SealEpochPageAsyncInput) => ReturnType<typeof getSealEpochPageInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1515
1731
|
selectEpochWinner: (input: SelectEpochWinnerAsyncInput) => ReturnType<typeof getSelectEpochWinnerInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1732
|
+
settleDeployPublic: (input: SettleDeployPublicAsyncInput) => ReturnType<typeof getSettleDeployPublicInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1516
1733
|
swapEpochStake: (input: SwapEpochStakeAsyncInput) => ReturnType<typeof getSwapEpochStakeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1517
1734
|
swapOneBtcStake: (input: SwapOneBtcStakeAsyncInput) => ReturnType<typeof getSwapOneBtcStakeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1518
1735
|
swapRoundStake: (input: SwapRoundStakeAsyncInput) => ReturnType<typeof getSwapRoundStakeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1519
1736
|
swapStrikeStake: (input: SwapStrikeStakeAsyncInput) => ReturnType<typeof getSwapStrikeStakeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1520
1737
|
triggerEpochDraw: (input: TriggerEpochDrawAsyncInput) => ReturnType<typeof getTriggerEpochDrawInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1521
1738
|
triggerOneBtcDraw: (input: TriggerOneBtcDrawAsyncInput) => ReturnType<typeof getTriggerOneBtcDrawInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1739
|
+
updateBoardRoundDuration: (input: UpdateBoardRoundDurationAsyncInput) => ReturnType<typeof getUpdateBoardRoundDurationInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1522
1740
|
withdrawProtocolFees: (input: WithdrawProtocolFeesAsyncInput) => ReturnType<typeof getWithdrawProtocolFeesInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1523
1741
|
};
|
|
1524
1742
|
type SatrushPluginPdas = {
|
|
@@ -1526,8 +1744,8 @@ type SatrushPluginPdas = {
|
|
|
1526
1744
|
epochVault: typeof findEpochVaultPda;
|
|
1527
1745
|
oneBtcVault: typeof findOneBtcVaultPda;
|
|
1528
1746
|
satrushConfig: typeof findSatrushConfigPda;
|
|
1529
|
-
board: typeof findBoardPda;
|
|
1530
1747
|
satsVault: typeof findSatsVaultPda;
|
|
1748
|
+
board: typeof findBoardPda;
|
|
1531
1749
|
initialRound: typeof findInitialRoundPda;
|
|
1532
1750
|
epochVaultIteration: typeof findEpochVaultIterationPda;
|
|
1533
1751
|
oneBtcVaultIteration: typeof findOneBtcVaultIterationPda;
|
|
@@ -1549,7 +1767,7 @@ declare function satrushProgram(): <T extends SatrushPluginRequirements>(client:
|
|
|
1549
1767
|
|
|
1550
1768
|
declare const BUY_EPOCH_TICKETS_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1551
1769
|
declare function getBuyEpochTicketsDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1552
|
-
type BuyEpochTicketsInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMiner extends string | AccountMeta<string> = string, TAccountEpochVault extends string | AccountMeta<string> = string, TAccountEpochVaultIteration extends string | AccountMeta<string> = string, TAccountEpochVaultPage extends string | AccountMeta<string> = string, TAccountEpochVaultEntry extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1770
|
+
type BuyEpochTicketsInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMiner extends string | AccountMeta<string> = string, TAccountEpochVault extends string | AccountMeta<string> = string, TAccountEpochVaultIteration extends string | AccountMeta<string> = string, TAccountEpochVaultPage extends string | AccountMeta<string> = string, TAccountEpochVaultEntry extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1553
1771
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
1554
1772
|
TAccountMiner extends string ? WritableAccount<TAccountMiner> : TAccountMiner,
|
|
1555
1773
|
TAccountEpochVault extends string ? ReadonlyAccount<TAccountEpochVault> : TAccountEpochVault,
|
|
@@ -1557,6 +1775,8 @@ type BuyEpochTicketsInstruction<TProgram extends string = typeof SATRUSH_PROGRAM
|
|
|
1557
1775
|
TAccountEpochVaultPage extends string ? WritableAccount<TAccountEpochVaultPage> : TAccountEpochVaultPage,
|
|
1558
1776
|
TAccountEpochVaultEntry extends string ? WritableAccount<TAccountEpochVaultEntry> : TAccountEpochVaultEntry,
|
|
1559
1777
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1778
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
1779
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
1560
1780
|
...TRemainingAccounts
|
|
1561
1781
|
]>;
|
|
1562
1782
|
type BuyEpochTicketsInstructionData = {
|
|
@@ -1571,7 +1791,7 @@ type BuyEpochTicketsInstructionDataArgs = {
|
|
|
1571
1791
|
declare function getBuyEpochTicketsInstructionDataEncoder(): FixedSizeEncoder<BuyEpochTicketsInstructionDataArgs>;
|
|
1572
1792
|
declare function getBuyEpochTicketsInstructionDataDecoder(): FixedSizeDecoder<BuyEpochTicketsInstructionData>;
|
|
1573
1793
|
declare function getBuyEpochTicketsInstructionDataCodec(): FixedSizeCodec<BuyEpochTicketsInstructionDataArgs, BuyEpochTicketsInstructionData>;
|
|
1574
|
-
type BuyEpochTicketsAsyncInput<TAccountAuthority extends string = string, TAccountMiner extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultIteration extends string = string, TAccountEpochVaultPage extends string = string, TAccountEpochVaultEntry extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1794
|
+
type BuyEpochTicketsAsyncInput<TAccountAuthority extends string = string, TAccountMiner extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultIteration extends string = string, TAccountEpochVaultPage extends string = string, TAccountEpochVaultEntry extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
1575
1795
|
authority: TransactionSigner<TAccountAuthority>;
|
|
1576
1796
|
miner?: Address<TAccountMiner>;
|
|
1577
1797
|
epochVault?: Address<TAccountEpochVault>;
|
|
@@ -1579,13 +1799,15 @@ type BuyEpochTicketsAsyncInput<TAccountAuthority extends string = string, TAccou
|
|
|
1579
1799
|
epochVaultPage: Address<TAccountEpochVaultPage>;
|
|
1580
1800
|
epochVaultEntry: Address<TAccountEpochVaultEntry>;
|
|
1581
1801
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1802
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
1803
|
+
program: Address<TAccountProgram>;
|
|
1582
1804
|
hashrateToSpend: BuyEpochTicketsInstructionDataArgs['hashrateToSpend'];
|
|
1583
1805
|
pageIndex: BuyEpochTicketsInstructionDataArgs['pageIndex'];
|
|
1584
1806
|
};
|
|
1585
|
-
declare function getBuyEpochTicketsInstructionAsync<TAccountAuthority extends string, TAccountMiner extends string, TAccountEpochVault extends string, TAccountEpochVaultIteration extends string, TAccountEpochVaultPage extends string, TAccountEpochVaultEntry extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: BuyEpochTicketsAsyncInput<TAccountAuthority, TAccountMiner, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountEpochVaultEntry, TAccountSystemProgram>, config?: {
|
|
1807
|
+
declare function getBuyEpochTicketsInstructionAsync<TAccountAuthority extends string, TAccountMiner extends string, TAccountEpochVault extends string, TAccountEpochVaultIteration extends string, TAccountEpochVaultPage extends string, TAccountEpochVaultEntry extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: BuyEpochTicketsAsyncInput<TAccountAuthority, TAccountMiner, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountEpochVaultEntry, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
1586
1808
|
programAddress?: TProgramAddress;
|
|
1587
|
-
}): Promise<BuyEpochTicketsInstruction<TProgramAddress, TAccountAuthority, TAccountMiner, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountEpochVaultEntry, TAccountSystemProgram>>;
|
|
1588
|
-
type BuyEpochTicketsInput<TAccountAuthority extends string = string, TAccountMiner extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultIteration extends string = string, TAccountEpochVaultPage extends string = string, TAccountEpochVaultEntry extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1809
|
+
}): Promise<BuyEpochTicketsInstruction<TProgramAddress, TAccountAuthority, TAccountMiner, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountEpochVaultEntry, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>>;
|
|
1810
|
+
type BuyEpochTicketsInput<TAccountAuthority extends string = string, TAccountMiner extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultIteration extends string = string, TAccountEpochVaultPage extends string = string, TAccountEpochVaultEntry extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
1589
1811
|
authority: TransactionSigner<TAccountAuthority>;
|
|
1590
1812
|
miner: Address<TAccountMiner>;
|
|
1591
1813
|
epochVault: Address<TAccountEpochVault>;
|
|
@@ -1593,12 +1815,14 @@ type BuyEpochTicketsInput<TAccountAuthority extends string = string, TAccountMin
|
|
|
1593
1815
|
epochVaultPage: Address<TAccountEpochVaultPage>;
|
|
1594
1816
|
epochVaultEntry: Address<TAccountEpochVaultEntry>;
|
|
1595
1817
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1818
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
1819
|
+
program: Address<TAccountProgram>;
|
|
1596
1820
|
hashrateToSpend: BuyEpochTicketsInstructionDataArgs['hashrateToSpend'];
|
|
1597
1821
|
pageIndex: BuyEpochTicketsInstructionDataArgs['pageIndex'];
|
|
1598
1822
|
};
|
|
1599
|
-
declare function getBuyEpochTicketsInstruction<TAccountAuthority extends string, TAccountMiner extends string, TAccountEpochVault extends string, TAccountEpochVaultIteration extends string, TAccountEpochVaultPage extends string, TAccountEpochVaultEntry extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: BuyEpochTicketsInput<TAccountAuthority, TAccountMiner, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountEpochVaultEntry, TAccountSystemProgram>, config?: {
|
|
1823
|
+
declare function getBuyEpochTicketsInstruction<TAccountAuthority extends string, TAccountMiner extends string, TAccountEpochVault extends string, TAccountEpochVaultIteration extends string, TAccountEpochVaultPage extends string, TAccountEpochVaultEntry extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: BuyEpochTicketsInput<TAccountAuthority, TAccountMiner, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountEpochVaultEntry, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
1600
1824
|
programAddress?: TProgramAddress;
|
|
1601
|
-
}): BuyEpochTicketsInstruction<TProgramAddress, TAccountAuthority, TAccountMiner, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountEpochVaultEntry, TAccountSystemProgram>;
|
|
1825
|
+
}): BuyEpochTicketsInstruction<TProgramAddress, TAccountAuthority, TAccountMiner, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountEpochVaultEntry, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>;
|
|
1602
1826
|
type ParsedBuyEpochTicketsInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1603
1827
|
programAddress: Address<TProgram>;
|
|
1604
1828
|
accounts: {
|
|
@@ -1609,6 +1833,8 @@ type ParsedBuyEpochTicketsInstruction<TProgram extends string = typeof SATRUSH_P
|
|
|
1609
1833
|
epochVaultPage: TAccountMetas[4];
|
|
1610
1834
|
epochVaultEntry: TAccountMetas[5];
|
|
1611
1835
|
systemProgram: TAccountMetas[6];
|
|
1836
|
+
eventAuthority: TAccountMetas[7];
|
|
1837
|
+
program: TAccountMetas[8];
|
|
1612
1838
|
};
|
|
1613
1839
|
data: BuyEpochTicketsInstructionData;
|
|
1614
1840
|
};
|
|
@@ -1624,13 +1850,15 @@ declare function parseBuyEpochTicketsInstruction<TProgram extends string, TAccou
|
|
|
1624
1850
|
|
|
1625
1851
|
declare const BUY_ONE_BTC_TICKETS_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1626
1852
|
declare function getBuyOneBtcTicketsDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1627
|
-
type BuyOneBtcTicketsInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMiner extends string | AccountMeta<string> = string, TAccountOneBtcVault extends string | AccountMeta<string> = string, TAccountOneBtcVaultIteration extends string | AccountMeta<string> = string, TAccountTicket extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1853
|
+
type BuyOneBtcTicketsInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMiner extends string | AccountMeta<string> = string, TAccountOneBtcVault extends string | AccountMeta<string> = string, TAccountOneBtcVaultIteration extends string | AccountMeta<string> = string, TAccountTicket extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1628
1854
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
1629
1855
|
TAccountMiner extends string ? WritableAccount<TAccountMiner> : TAccountMiner,
|
|
1630
1856
|
TAccountOneBtcVault extends string ? ReadonlyAccount<TAccountOneBtcVault> : TAccountOneBtcVault,
|
|
1631
1857
|
TAccountOneBtcVaultIteration extends string ? WritableAccount<TAccountOneBtcVaultIteration> : TAccountOneBtcVaultIteration,
|
|
1632
1858
|
TAccountTicket extends string ? WritableSignerAccount<TAccountTicket> & AccountSignerMeta<TAccountTicket> : TAccountTicket,
|
|
1633
1859
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1860
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
1861
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
1634
1862
|
...TRemainingAccounts
|
|
1635
1863
|
]>;
|
|
1636
1864
|
type BuyOneBtcTicketsInstructionData = {
|
|
@@ -1643,7 +1871,7 @@ type BuyOneBtcTicketsInstructionDataArgs = {
|
|
|
1643
1871
|
declare function getBuyOneBtcTicketsInstructionDataEncoder(): FixedSizeEncoder<BuyOneBtcTicketsInstructionDataArgs>;
|
|
1644
1872
|
declare function getBuyOneBtcTicketsInstructionDataDecoder(): FixedSizeDecoder<BuyOneBtcTicketsInstructionData>;
|
|
1645
1873
|
declare function getBuyOneBtcTicketsInstructionDataCodec(): FixedSizeCodec<BuyOneBtcTicketsInstructionDataArgs, BuyOneBtcTicketsInstructionData>;
|
|
1646
|
-
type BuyOneBtcTicketsAsyncInput<TAccountAuthority extends string = string, TAccountMiner extends string = string, TAccountOneBtcVault extends string = string, TAccountOneBtcVaultIteration extends string = string, TAccountTicket extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1874
|
+
type BuyOneBtcTicketsAsyncInput<TAccountAuthority extends string = string, TAccountMiner extends string = string, TAccountOneBtcVault extends string = string, TAccountOneBtcVaultIteration extends string = string, TAccountTicket extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
1647
1875
|
authority: TransactionSigner<TAccountAuthority>;
|
|
1648
1876
|
miner?: Address<TAccountMiner>;
|
|
1649
1877
|
oneBtcVault?: Address<TAccountOneBtcVault>;
|
|
@@ -1651,12 +1879,14 @@ type BuyOneBtcTicketsAsyncInput<TAccountAuthority extends string = string, TAcco
|
|
|
1651
1879
|
/** Fresh non-PDA receipt account created for this purchase (must sign). */
|
|
1652
1880
|
ticket: TransactionSigner<TAccountTicket>;
|
|
1653
1881
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1882
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
1883
|
+
program: Address<TAccountProgram>;
|
|
1654
1884
|
hashrateToSpend: BuyOneBtcTicketsInstructionDataArgs['hashrateToSpend'];
|
|
1655
1885
|
};
|
|
1656
|
-
declare function getBuyOneBtcTicketsInstructionAsync<TAccountAuthority extends string, TAccountMiner extends string, TAccountOneBtcVault extends string, TAccountOneBtcVaultIteration extends string, TAccountTicket extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: BuyOneBtcTicketsAsyncInput<TAccountAuthority, TAccountMiner, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountTicket, TAccountSystemProgram>, config?: {
|
|
1886
|
+
declare function getBuyOneBtcTicketsInstructionAsync<TAccountAuthority extends string, TAccountMiner extends string, TAccountOneBtcVault extends string, TAccountOneBtcVaultIteration extends string, TAccountTicket extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: BuyOneBtcTicketsAsyncInput<TAccountAuthority, TAccountMiner, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountTicket, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
1657
1887
|
programAddress?: TProgramAddress;
|
|
1658
|
-
}): Promise<BuyOneBtcTicketsInstruction<TProgramAddress, TAccountAuthority, TAccountMiner, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountTicket, TAccountSystemProgram>>;
|
|
1659
|
-
type BuyOneBtcTicketsInput<TAccountAuthority extends string = string, TAccountMiner extends string = string, TAccountOneBtcVault extends string = string, TAccountOneBtcVaultIteration extends string = string, TAccountTicket extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1888
|
+
}): Promise<BuyOneBtcTicketsInstruction<TProgramAddress, TAccountAuthority, TAccountMiner, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountTicket, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>>;
|
|
1889
|
+
type BuyOneBtcTicketsInput<TAccountAuthority extends string = string, TAccountMiner extends string = string, TAccountOneBtcVault extends string = string, TAccountOneBtcVaultIteration extends string = string, TAccountTicket extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
1660
1890
|
authority: TransactionSigner<TAccountAuthority>;
|
|
1661
1891
|
miner: Address<TAccountMiner>;
|
|
1662
1892
|
oneBtcVault: Address<TAccountOneBtcVault>;
|
|
@@ -1664,11 +1894,13 @@ type BuyOneBtcTicketsInput<TAccountAuthority extends string = string, TAccountMi
|
|
|
1664
1894
|
/** Fresh non-PDA receipt account created for this purchase (must sign). */
|
|
1665
1895
|
ticket: TransactionSigner<TAccountTicket>;
|
|
1666
1896
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1897
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
1898
|
+
program: Address<TAccountProgram>;
|
|
1667
1899
|
hashrateToSpend: BuyOneBtcTicketsInstructionDataArgs['hashrateToSpend'];
|
|
1668
1900
|
};
|
|
1669
|
-
declare function getBuyOneBtcTicketsInstruction<TAccountAuthority extends string, TAccountMiner extends string, TAccountOneBtcVault extends string, TAccountOneBtcVaultIteration extends string, TAccountTicket extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: BuyOneBtcTicketsInput<TAccountAuthority, TAccountMiner, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountTicket, TAccountSystemProgram>, config?: {
|
|
1901
|
+
declare function getBuyOneBtcTicketsInstruction<TAccountAuthority extends string, TAccountMiner extends string, TAccountOneBtcVault extends string, TAccountOneBtcVaultIteration extends string, TAccountTicket extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: BuyOneBtcTicketsInput<TAccountAuthority, TAccountMiner, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountTicket, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
1670
1902
|
programAddress?: TProgramAddress;
|
|
1671
|
-
}): BuyOneBtcTicketsInstruction<TProgramAddress, TAccountAuthority, TAccountMiner, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountTicket, TAccountSystemProgram>;
|
|
1903
|
+
}): BuyOneBtcTicketsInstruction<TProgramAddress, TAccountAuthority, TAccountMiner, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountTicket, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>;
|
|
1672
1904
|
type ParsedBuyOneBtcTicketsInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1673
1905
|
programAddress: Address<TProgram>;
|
|
1674
1906
|
accounts: {
|
|
@@ -1679,147 +1911,13 @@ type ParsedBuyOneBtcTicketsInstruction<TProgram extends string = typeof SATRUSH_
|
|
|
1679
1911
|
/** Fresh non-PDA receipt account created for this purchase (must sign). */
|
|
1680
1912
|
ticket: TAccountMetas[4];
|
|
1681
1913
|
systemProgram: TAccountMetas[5];
|
|
1914
|
+
eventAuthority: TAccountMetas[6];
|
|
1915
|
+
program: TAccountMetas[7];
|
|
1682
1916
|
};
|
|
1683
1917
|
data: BuyOneBtcTicketsInstructionData;
|
|
1684
1918
|
};
|
|
1685
1919
|
declare function parseBuyOneBtcTicketsInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyOneBtcTicketsInstruction<TProgram, TAccountMetas>;
|
|
1686
1920
|
|
|
1687
|
-
/**
|
|
1688
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1689
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1690
|
-
* to add features, then rerun Codama to update it.
|
|
1691
|
-
*
|
|
1692
|
-
* @see https://github.com/codama-idl/codama
|
|
1693
|
-
*/
|
|
1694
|
-
|
|
1695
|
-
declare const CLAIM_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1696
|
-
declare function getClaimDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1697
|
-
type ClaimInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountRound extends string | AccountMeta<string> = string, TAccountBoard extends string | AccountMeta<string> = string, TAccountPublicDeployment extends string | AccountMeta<string> = string, TAccountMiner extends string | AccountMeta<string> = string, TAccountSatsVault extends string | AccountMeta<string> = string, TAccountBtcMint extends string | AccountMeta<string> = string, TAccountUsdMint extends string | AccountMeta<string> = string, TAccountBoardBtcAta extends string | AccountMeta<string> = string, TAccountSatsVaultBtcAta extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountAssociatedTokenProgram extends string | AccountMeta<string> = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1698
|
-
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
1699
|
-
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
1700
|
-
TAccountRound extends string ? WritableAccount<TAccountRound> : TAccountRound,
|
|
1701
|
-
TAccountBoard extends string ? ReadonlyAccount<TAccountBoard> : TAccountBoard,
|
|
1702
|
-
TAccountPublicDeployment extends string ? WritableAccount<TAccountPublicDeployment> : TAccountPublicDeployment,
|
|
1703
|
-
TAccountMiner extends string ? WritableAccount<TAccountMiner> : TAccountMiner,
|
|
1704
|
-
TAccountSatsVault extends string ? WritableAccount<TAccountSatsVault> : TAccountSatsVault,
|
|
1705
|
-
TAccountBtcMint extends string ? ReadonlyAccount<TAccountBtcMint> : TAccountBtcMint,
|
|
1706
|
-
TAccountUsdMint extends string ? ReadonlyAccount<TAccountUsdMint> : TAccountUsdMint,
|
|
1707
|
-
TAccountBoardBtcAta extends string ? WritableAccount<TAccountBoardBtcAta> : TAccountBoardBtcAta,
|
|
1708
|
-
TAccountSatsVaultBtcAta extends string ? WritableAccount<TAccountSatsVaultBtcAta> : TAccountSatsVaultBtcAta,
|
|
1709
|
-
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
1710
|
-
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
1711
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1712
|
-
...TRemainingAccounts
|
|
1713
|
-
]>;
|
|
1714
|
-
type ClaimInstructionData = {
|
|
1715
|
-
discriminator: ReadonlyUint8Array;
|
|
1716
|
-
};
|
|
1717
|
-
type ClaimInstructionDataArgs = {};
|
|
1718
|
-
declare function getClaimInstructionDataEncoder(): FixedSizeEncoder<ClaimInstructionDataArgs>;
|
|
1719
|
-
declare function getClaimInstructionDataDecoder(): FixedSizeDecoder<ClaimInstructionData>;
|
|
1720
|
-
declare function getClaimInstructionDataCodec(): FixedSizeCodec<ClaimInstructionDataArgs, ClaimInstructionData>;
|
|
1721
|
-
type ClaimAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountRound extends string = string, TAccountBoard extends string = string, TAccountPublicDeployment extends string = string, TAccountMiner extends string = string, TAccountSatsVault extends string = string, TAccountBtcMint extends string = string, TAccountUsdMint extends string = string, TAccountBoardBtcAta extends string = string, TAccountSatsVaultBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1722
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
1723
|
-
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
1724
|
-
/** Round the deployment belongs to. Must be fully settled. */
|
|
1725
|
-
round: Address<TAccountRound>;
|
|
1726
|
-
/** PDA that owns `board_btc_ata`; signs the deposit transfer into the vault. */
|
|
1727
|
-
board?: Address<TAccountBoard>;
|
|
1728
|
-
/**
|
|
1729
|
-
* The caller's settled deployment being claimed. Closed on success so it can
|
|
1730
|
-
* never be claimed twice; rent is returned to the owner.
|
|
1731
|
-
*/
|
|
1732
|
-
publicDeployment: Address<TAccountPublicDeployment>;
|
|
1733
|
-
/**
|
|
1734
|
-
* Miner profile for `authority`. Created lazily on the first claim and
|
|
1735
|
-
* loaded on subsequent ones.
|
|
1736
|
-
*/
|
|
1737
|
-
miner?: Address<TAccountMiner>;
|
|
1738
|
-
/** The Sats Vault the winner's BTC is deposited into for shares. */
|
|
1739
|
-
satsVault?: Address<TAccountSatsVault>;
|
|
1740
|
-
btcMint: Address<TAccountBtcMint>;
|
|
1741
|
-
/** USD mint — read only to size hashrate points by the stake's whole-USD unit. */
|
|
1742
|
-
usdMint: Address<TAccountUsdMint>;
|
|
1743
|
-
/** Board's BTC reserves — the round's post-swap BTC, source of the deposit. */
|
|
1744
|
-
boardBtcAta?: Address<TAccountBoardBtcAta>;
|
|
1745
|
-
/** Vault's BTC reserves — the deposit destination. */
|
|
1746
|
-
satsVaultBtcAta?: Address<TAccountSatsVaultBtcAta>;
|
|
1747
|
-
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1748
|
-
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1749
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
1750
|
-
};
|
|
1751
|
-
declare function getClaimInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountRound extends string, TAccountBoard extends string, TAccountPublicDeployment extends string, TAccountMiner extends string, TAccountSatsVault extends string, TAccountBtcMint extends string, TAccountUsdMint extends string, TAccountBoardBtcAta extends string, TAccountSatsVaultBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: ClaimAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountRound, TAccountBoard, TAccountPublicDeployment, TAccountMiner, TAccountSatsVault, TAccountBtcMint, TAccountUsdMint, TAccountBoardBtcAta, TAccountSatsVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
1752
|
-
programAddress?: TProgramAddress;
|
|
1753
|
-
}): Promise<ClaimInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountRound, TAccountBoard, TAccountPublicDeployment, TAccountMiner, TAccountSatsVault, TAccountBtcMint, TAccountUsdMint, TAccountBoardBtcAta, TAccountSatsVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
1754
|
-
type ClaimInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountRound extends string = string, TAccountBoard extends string = string, TAccountPublicDeployment extends string = string, TAccountMiner extends string = string, TAccountSatsVault extends string = string, TAccountBtcMint extends string = string, TAccountUsdMint extends string = string, TAccountBoardBtcAta extends string = string, TAccountSatsVaultBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1755
|
-
authority: TransactionSigner<TAccountAuthority>;
|
|
1756
|
-
satrushConfig: Address<TAccountSatrushConfig>;
|
|
1757
|
-
/** Round the deployment belongs to. Must be fully settled. */
|
|
1758
|
-
round: Address<TAccountRound>;
|
|
1759
|
-
/** PDA that owns `board_btc_ata`; signs the deposit transfer into the vault. */
|
|
1760
|
-
board: Address<TAccountBoard>;
|
|
1761
|
-
/**
|
|
1762
|
-
* The caller's settled deployment being claimed. Closed on success so it can
|
|
1763
|
-
* never be claimed twice; rent is returned to the owner.
|
|
1764
|
-
*/
|
|
1765
|
-
publicDeployment: Address<TAccountPublicDeployment>;
|
|
1766
|
-
/**
|
|
1767
|
-
* Miner profile for `authority`. Created lazily on the first claim and
|
|
1768
|
-
* loaded on subsequent ones.
|
|
1769
|
-
*/
|
|
1770
|
-
miner: Address<TAccountMiner>;
|
|
1771
|
-
/** The Sats Vault the winner's BTC is deposited into for shares. */
|
|
1772
|
-
satsVault: Address<TAccountSatsVault>;
|
|
1773
|
-
btcMint: Address<TAccountBtcMint>;
|
|
1774
|
-
/** USD mint — read only to size hashrate points by the stake's whole-USD unit. */
|
|
1775
|
-
usdMint: Address<TAccountUsdMint>;
|
|
1776
|
-
/** Board's BTC reserves — the round's post-swap BTC, source of the deposit. */
|
|
1777
|
-
boardBtcAta: Address<TAccountBoardBtcAta>;
|
|
1778
|
-
/** Vault's BTC reserves — the deposit destination. */
|
|
1779
|
-
satsVaultBtcAta: Address<TAccountSatsVaultBtcAta>;
|
|
1780
|
-
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1781
|
-
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1782
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
1783
|
-
};
|
|
1784
|
-
declare function getClaimInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountRound extends string, TAccountBoard extends string, TAccountPublicDeployment extends string, TAccountMiner extends string, TAccountSatsVault extends string, TAccountBtcMint extends string, TAccountUsdMint extends string, TAccountBoardBtcAta extends string, TAccountSatsVaultBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: ClaimInput<TAccountAuthority, TAccountSatrushConfig, TAccountRound, TAccountBoard, TAccountPublicDeployment, TAccountMiner, TAccountSatsVault, TAccountBtcMint, TAccountUsdMint, TAccountBoardBtcAta, TAccountSatsVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
1785
|
-
programAddress?: TProgramAddress;
|
|
1786
|
-
}): ClaimInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountRound, TAccountBoard, TAccountPublicDeployment, TAccountMiner, TAccountSatsVault, TAccountBtcMint, TAccountUsdMint, TAccountBoardBtcAta, TAccountSatsVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
1787
|
-
type ParsedClaimInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1788
|
-
programAddress: Address<TProgram>;
|
|
1789
|
-
accounts: {
|
|
1790
|
-
authority: TAccountMetas[0];
|
|
1791
|
-
satrushConfig: TAccountMetas[1];
|
|
1792
|
-
/** Round the deployment belongs to. Must be fully settled. */
|
|
1793
|
-
round: TAccountMetas[2];
|
|
1794
|
-
/** PDA that owns `board_btc_ata`; signs the deposit transfer into the vault. */
|
|
1795
|
-
board: TAccountMetas[3];
|
|
1796
|
-
/**
|
|
1797
|
-
* The caller's settled deployment being claimed. Closed on success so it can
|
|
1798
|
-
* never be claimed twice; rent is returned to the owner.
|
|
1799
|
-
*/
|
|
1800
|
-
publicDeployment: TAccountMetas[4];
|
|
1801
|
-
/**
|
|
1802
|
-
* Miner profile for `authority`. Created lazily on the first claim and
|
|
1803
|
-
* loaded on subsequent ones.
|
|
1804
|
-
*/
|
|
1805
|
-
miner: TAccountMetas[5];
|
|
1806
|
-
/** The Sats Vault the winner's BTC is deposited into for shares. */
|
|
1807
|
-
satsVault: TAccountMetas[6];
|
|
1808
|
-
btcMint: TAccountMetas[7];
|
|
1809
|
-
/** USD mint — read only to size hashrate points by the stake's whole-USD unit. */
|
|
1810
|
-
usdMint: TAccountMetas[8];
|
|
1811
|
-
/** Board's BTC reserves — the round's post-swap BTC, source of the deposit. */
|
|
1812
|
-
boardBtcAta: TAccountMetas[9];
|
|
1813
|
-
/** Vault's BTC reserves — the deposit destination. */
|
|
1814
|
-
satsVaultBtcAta: TAccountMetas[10];
|
|
1815
|
-
tokenProgram: TAccountMetas[11];
|
|
1816
|
-
associatedTokenProgram: TAccountMetas[12];
|
|
1817
|
-
systemProgram: TAccountMetas[13];
|
|
1818
|
-
};
|
|
1819
|
-
data: ClaimInstructionData;
|
|
1820
|
-
};
|
|
1821
|
-
declare function parseClaimInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimInstruction<TProgram, TAccountMetas>;
|
|
1822
|
-
|
|
1823
1921
|
/**
|
|
1824
1922
|
* This code was AUTOGENERATED using the Codama library.
|
|
1825
1923
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -2082,6 +2180,101 @@ type ParsedClaimSatsInstruction<TProgram extends string = typeof SATRUSH_PROGRAM
|
|
|
2082
2180
|
};
|
|
2083
2181
|
declare function parseClaimSatsInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimSatsInstruction<TProgram, TAccountMetas>;
|
|
2084
2182
|
|
|
2183
|
+
/**
|
|
2184
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2185
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2186
|
+
* to add features, then rerun Codama to update it.
|
|
2187
|
+
*
|
|
2188
|
+
* @see https://github.com/codama-idl/codama
|
|
2189
|
+
*/
|
|
2190
|
+
|
|
2191
|
+
declare const CLAIM_USD_DISCRIMINATOR: ReadonlyUint8Array;
|
|
2192
|
+
declare function getClaimUsdDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2193
|
+
type ClaimUsdInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountBoard extends string | AccountMeta<string> = string, TAccountMiner extends string | AccountMeta<string> = string, TAccountUsdMint extends string | AccountMeta<string> = string, TAccountBoardUsdAta extends string | AccountMeta<string> = string, TAccountAuthorityUsdAta extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountAssociatedTokenProgram extends string | AccountMeta<string> = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2194
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2195
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
2196
|
+
TAccountBoard extends string ? ReadonlyAccount<TAccountBoard> : TAccountBoard,
|
|
2197
|
+
TAccountMiner extends string ? WritableAccount<TAccountMiner> : TAccountMiner,
|
|
2198
|
+
TAccountUsdMint extends string ? ReadonlyAccount<TAccountUsdMint> : TAccountUsdMint,
|
|
2199
|
+
TAccountBoardUsdAta extends string ? WritableAccount<TAccountBoardUsdAta> : TAccountBoardUsdAta,
|
|
2200
|
+
TAccountAuthorityUsdAta extends string ? WritableAccount<TAccountAuthorityUsdAta> : TAccountAuthorityUsdAta,
|
|
2201
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2202
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
2203
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2204
|
+
...TRemainingAccounts
|
|
2205
|
+
]>;
|
|
2206
|
+
type ClaimUsdInstructionData = {
|
|
2207
|
+
discriminator: ReadonlyUint8Array;
|
|
2208
|
+
amount: bigint;
|
|
2209
|
+
};
|
|
2210
|
+
type ClaimUsdInstructionDataArgs = {
|
|
2211
|
+
amount: number | bigint;
|
|
2212
|
+
};
|
|
2213
|
+
declare function getClaimUsdInstructionDataEncoder(): FixedSizeEncoder<ClaimUsdInstructionDataArgs>;
|
|
2214
|
+
declare function getClaimUsdInstructionDataDecoder(): FixedSizeDecoder<ClaimUsdInstructionData>;
|
|
2215
|
+
declare function getClaimUsdInstructionDataCodec(): FixedSizeCodec<ClaimUsdInstructionDataArgs, ClaimUsdInstructionData>;
|
|
2216
|
+
type ClaimUsdAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard extends string = string, TAccountMiner extends string = string, TAccountUsdMint extends string = string, TAccountBoardUsdAta extends string = string, TAccountAuthorityUsdAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2217
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2218
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
2219
|
+
/** PDA that owns `board_usd_ata`; signs the payout transfer. */
|
|
2220
|
+
board?: Address<TAccountBoard>;
|
|
2221
|
+
/** The claiming miner's profile; holds the USD balance being withdrawn. */
|
|
2222
|
+
miner?: Address<TAccountMiner>;
|
|
2223
|
+
usdMint: Address<TAccountUsdMint>;
|
|
2224
|
+
/** Board's USD deposit pool — the payout source. */
|
|
2225
|
+
boardUsdAta?: Address<TAccountBoardUsdAta>;
|
|
2226
|
+
/** Miner's USD account — the payout destination. */
|
|
2227
|
+
authorityUsdAta?: Address<TAccountAuthorityUsdAta>;
|
|
2228
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2229
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2230
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2231
|
+
amount: ClaimUsdInstructionDataArgs['amount'];
|
|
2232
|
+
};
|
|
2233
|
+
declare function getClaimUsdInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard extends string, TAccountMiner extends string, TAccountUsdMint extends string, TAccountBoardUsdAta extends string, TAccountAuthorityUsdAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: ClaimUsdAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountMiner, TAccountUsdMint, TAccountBoardUsdAta, TAccountAuthorityUsdAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2234
|
+
programAddress?: TProgramAddress;
|
|
2235
|
+
}): Promise<ClaimUsdInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountMiner, TAccountUsdMint, TAccountBoardUsdAta, TAccountAuthorityUsdAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
2236
|
+
type ClaimUsdInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard extends string = string, TAccountMiner extends string = string, TAccountUsdMint extends string = string, TAccountBoardUsdAta extends string = string, TAccountAuthorityUsdAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2237
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2238
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
2239
|
+
/** PDA that owns `board_usd_ata`; signs the payout transfer. */
|
|
2240
|
+
board: Address<TAccountBoard>;
|
|
2241
|
+
/** The claiming miner's profile; holds the USD balance being withdrawn. */
|
|
2242
|
+
miner: Address<TAccountMiner>;
|
|
2243
|
+
usdMint: Address<TAccountUsdMint>;
|
|
2244
|
+
/** Board's USD deposit pool — the payout source. */
|
|
2245
|
+
boardUsdAta: Address<TAccountBoardUsdAta>;
|
|
2246
|
+
/** Miner's USD account — the payout destination. */
|
|
2247
|
+
authorityUsdAta: Address<TAccountAuthorityUsdAta>;
|
|
2248
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2249
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2250
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2251
|
+
amount: ClaimUsdInstructionDataArgs['amount'];
|
|
2252
|
+
};
|
|
2253
|
+
declare function getClaimUsdInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard extends string, TAccountMiner extends string, TAccountUsdMint extends string, TAccountBoardUsdAta extends string, TAccountAuthorityUsdAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: ClaimUsdInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountMiner, TAccountUsdMint, TAccountBoardUsdAta, TAccountAuthorityUsdAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2254
|
+
programAddress?: TProgramAddress;
|
|
2255
|
+
}): ClaimUsdInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountMiner, TAccountUsdMint, TAccountBoardUsdAta, TAccountAuthorityUsdAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
2256
|
+
type ParsedClaimUsdInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2257
|
+
programAddress: Address<TProgram>;
|
|
2258
|
+
accounts: {
|
|
2259
|
+
authority: TAccountMetas[0];
|
|
2260
|
+
satrushConfig: TAccountMetas[1];
|
|
2261
|
+
/** PDA that owns `board_usd_ata`; signs the payout transfer. */
|
|
2262
|
+
board: TAccountMetas[2];
|
|
2263
|
+
/** The claiming miner's profile; holds the USD balance being withdrawn. */
|
|
2264
|
+
miner: TAccountMetas[3];
|
|
2265
|
+
usdMint: TAccountMetas[4];
|
|
2266
|
+
/** Board's USD deposit pool — the payout source. */
|
|
2267
|
+
boardUsdAta: TAccountMetas[5];
|
|
2268
|
+
/** Miner's USD account — the payout destination. */
|
|
2269
|
+
authorityUsdAta: TAccountMetas[6];
|
|
2270
|
+
tokenProgram: TAccountMetas[7];
|
|
2271
|
+
associatedTokenProgram: TAccountMetas[8];
|
|
2272
|
+
systemProgram: TAccountMetas[9];
|
|
2273
|
+
};
|
|
2274
|
+
data: ClaimUsdInstructionData;
|
|
2275
|
+
};
|
|
2276
|
+
declare function parseClaimUsdInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimUsdInstruction<TProgram, TAccountMetas>;
|
|
2277
|
+
|
|
2085
2278
|
/**
|
|
2086
2279
|
* This code was AUTOGENERATED using the Codama library.
|
|
2087
2280
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -3035,7 +3228,7 @@ declare function parseDeployPublicInstruction<TProgram extends string, TAccountM
|
|
|
3035
3228
|
|
|
3036
3229
|
declare const ROTATE_ROUND_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3037
3230
|
declare function getRotateRoundDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3038
|
-
type RotateRoundInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountBoard extends string | AccountMeta<string> = string, TAccountCurrentRound extends string | AccountMeta<string> = string, TAccountNextRound extends string | AccountMeta<string> = string, TAccountSlotHashes extends string | AccountMeta<string> = 'SysvarS1otHashes111111111111111111111111111', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3231
|
+
type RotateRoundInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountBoard extends string | AccountMeta<string> = string, TAccountCurrentRound extends string | AccountMeta<string> = string, TAccountNextRound extends string | AccountMeta<string> = string, TAccountSlotHashes extends string | AccountMeta<string> = 'SysvarS1otHashes111111111111111111111111111', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3039
3232
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3040
3233
|
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
3041
3234
|
TAccountBoard extends string ? WritableAccount<TAccountBoard> : TAccountBoard,
|
|
@@ -3043,6 +3236,8 @@ type RotateRoundInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADD
|
|
|
3043
3236
|
TAccountNextRound extends string ? WritableAccount<TAccountNextRound> : TAccountNextRound,
|
|
3044
3237
|
TAccountSlotHashes extends string ? ReadonlyAccount<TAccountSlotHashes> : TAccountSlotHashes,
|
|
3045
3238
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3239
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
3240
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
3046
3241
|
...TRemainingAccounts
|
|
3047
3242
|
]>;
|
|
3048
3243
|
type RotateRoundInstructionData = {
|
|
@@ -3052,7 +3247,7 @@ type RotateRoundInstructionDataArgs = {};
|
|
|
3052
3247
|
declare function getRotateRoundInstructionDataEncoder(): FixedSizeEncoder<RotateRoundInstructionDataArgs>;
|
|
3053
3248
|
declare function getRotateRoundInstructionDataDecoder(): FixedSizeDecoder<RotateRoundInstructionData>;
|
|
3054
3249
|
declare function getRotateRoundInstructionDataCodec(): FixedSizeCodec<RotateRoundInstructionDataArgs, RotateRoundInstructionData>;
|
|
3055
|
-
type RotateRoundAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard extends string = string, TAccountCurrentRound extends string = string, TAccountNextRound extends string = string, TAccountSlotHashes extends string = string, TAccountSystemProgram extends string = string> = {
|
|
3250
|
+
type RotateRoundAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard extends string = string, TAccountCurrentRound extends string = string, TAccountNextRound extends string = string, TAccountSlotHashes extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
3056
3251
|
authority: TransactionSigner<TAccountAuthority>;
|
|
3057
3252
|
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
3058
3253
|
board?: Address<TAccountBoard>;
|
|
@@ -3067,11 +3262,13 @@ type RotateRoundAsyncInput<TAccountAuthority extends string = string, TAccountSa
|
|
|
3067
3262
|
/** because the sysvar is too large to deserialize. */
|
|
3068
3263
|
slotHashes?: Address<TAccountSlotHashes>;
|
|
3069
3264
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
3265
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
3266
|
+
program: Address<TAccountProgram>;
|
|
3070
3267
|
};
|
|
3071
|
-
declare function getRotateRoundInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard extends string, TAccountCurrentRound extends string, TAccountNextRound extends string, TAccountSlotHashes extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: RotateRoundAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountCurrentRound, TAccountNextRound, TAccountSlotHashes, TAccountSystemProgram>, config?: {
|
|
3268
|
+
declare function getRotateRoundInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard extends string, TAccountCurrentRound extends string, TAccountNextRound extends string, TAccountSlotHashes extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: RotateRoundAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountCurrentRound, TAccountNextRound, TAccountSlotHashes, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
3072
3269
|
programAddress?: TProgramAddress;
|
|
3073
|
-
}): Promise<RotateRoundInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountCurrentRound, TAccountNextRound, TAccountSlotHashes, TAccountSystemProgram>>;
|
|
3074
|
-
type RotateRoundInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard extends string = string, TAccountCurrentRound extends string = string, TAccountNextRound extends string = string, TAccountSlotHashes extends string = string, TAccountSystemProgram extends string = string> = {
|
|
3270
|
+
}): Promise<RotateRoundInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountCurrentRound, TAccountNextRound, TAccountSlotHashes, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>>;
|
|
3271
|
+
type RotateRoundInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard extends string = string, TAccountCurrentRound extends string = string, TAccountNextRound extends string = string, TAccountSlotHashes extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
3075
3272
|
authority: TransactionSigner<TAccountAuthority>;
|
|
3076
3273
|
satrushConfig: Address<TAccountSatrushConfig>;
|
|
3077
3274
|
board: Address<TAccountBoard>;
|
|
@@ -3086,10 +3283,12 @@ type RotateRoundInput<TAccountAuthority extends string = string, TAccountSatrush
|
|
|
3086
3283
|
/** because the sysvar is too large to deserialize. */
|
|
3087
3284
|
slotHashes?: Address<TAccountSlotHashes>;
|
|
3088
3285
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
3286
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
3287
|
+
program: Address<TAccountProgram>;
|
|
3089
3288
|
};
|
|
3090
|
-
declare function getRotateRoundInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard extends string, TAccountCurrentRound extends string, TAccountNextRound extends string, TAccountSlotHashes extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: RotateRoundInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountCurrentRound, TAccountNextRound, TAccountSlotHashes, TAccountSystemProgram>, config?: {
|
|
3289
|
+
declare function getRotateRoundInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard extends string, TAccountCurrentRound extends string, TAccountNextRound extends string, TAccountSlotHashes extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: RotateRoundInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountCurrentRound, TAccountNextRound, TAccountSlotHashes, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
3091
3290
|
programAddress?: TProgramAddress;
|
|
3092
|
-
}): RotateRoundInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountCurrentRound, TAccountNextRound, TAccountSlotHashes, TAccountSystemProgram>;
|
|
3291
|
+
}): RotateRoundInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountCurrentRound, TAccountNextRound, TAccountSlotHashes, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>;
|
|
3093
3292
|
type ParsedRotateRoundInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3094
3293
|
programAddress: Address<TProgram>;
|
|
3095
3294
|
accounts: {
|
|
@@ -3107,6 +3306,8 @@ type ParsedRotateRoundInstruction<TProgram extends string = typeof SATRUSH_PROGR
|
|
|
3107
3306
|
/** because the sysvar is too large to deserialize. */
|
|
3108
3307
|
slotHashes: TAccountMetas[5];
|
|
3109
3308
|
systemProgram: TAccountMetas[6];
|
|
3309
|
+
eventAuthority: TAccountMetas[7];
|
|
3310
|
+
program: TAccountMetas[8];
|
|
3110
3311
|
};
|
|
3111
3312
|
data: RotateRoundInstructionData;
|
|
3112
3313
|
};
|
|
@@ -3198,12 +3399,14 @@ declare function parseSealEpochPageInstruction<TProgram extends string, TAccount
|
|
|
3198
3399
|
|
|
3199
3400
|
declare const SELECT_EPOCH_WINNER_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3200
3401
|
declare function getSelectEpochWinnerDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3201
|
-
type SelectEpochWinnerInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountEpochVault extends string | AccountMeta<string> = string, TAccountEpochVaultIteration extends string | AccountMeta<string> = string, TAccountEpochVaultPage extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3402
|
+
type SelectEpochWinnerInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountEpochVault extends string | AccountMeta<string> = string, TAccountEpochVaultIteration extends string | AccountMeta<string> = string, TAccountEpochVaultPage extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3202
3403
|
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3203
3404
|
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
3204
3405
|
TAccountEpochVault extends string ? WritableAccount<TAccountEpochVault> : TAccountEpochVault,
|
|
3205
3406
|
TAccountEpochVaultIteration extends string ? WritableAccount<TAccountEpochVaultIteration> : TAccountEpochVaultIteration,
|
|
3206
3407
|
TAccountEpochVaultPage extends string ? ReadonlyAccount<TAccountEpochVaultPage> : TAccountEpochVaultPage,
|
|
3408
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
3409
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
3207
3410
|
...TRemainingAccounts
|
|
3208
3411
|
]>;
|
|
3209
3412
|
type SelectEpochWinnerInstructionData = {
|
|
@@ -3216,28 +3419,32 @@ type SelectEpochWinnerInstructionDataArgs = {
|
|
|
3216
3419
|
declare function getSelectEpochWinnerInstructionDataEncoder(): FixedSizeEncoder<SelectEpochWinnerInstructionDataArgs>;
|
|
3217
3420
|
declare function getSelectEpochWinnerInstructionDataDecoder(): FixedSizeDecoder<SelectEpochWinnerInstructionData>;
|
|
3218
3421
|
declare function getSelectEpochWinnerInstructionDataCodec(): FixedSizeCodec<SelectEpochWinnerInstructionDataArgs, SelectEpochWinnerInstructionData>;
|
|
3219
|
-
type SelectEpochWinnerAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultIteration extends string = string, TAccountEpochVaultPage extends string = string> = {
|
|
3422
|
+
type SelectEpochWinnerAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultIteration extends string = string, TAccountEpochVaultPage extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
3220
3423
|
authority: TransactionSigner<TAccountAuthority>;
|
|
3221
3424
|
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
3222
3425
|
epochVault?: Address<TAccountEpochVault>;
|
|
3223
3426
|
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
3224
3427
|
epochVaultPage: Address<TAccountEpochVaultPage>;
|
|
3428
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
3429
|
+
program: Address<TAccountProgram>;
|
|
3225
3430
|
pageIndex: SelectEpochWinnerInstructionDataArgs['pageIndex'];
|
|
3226
3431
|
};
|
|
3227
|
-
declare function getSelectEpochWinnerInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVault extends string, TAccountEpochVaultIteration extends string, TAccountEpochVaultPage extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: SelectEpochWinnerAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage>, config?: {
|
|
3432
|
+
declare function getSelectEpochWinnerInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVault extends string, TAccountEpochVaultIteration extends string, TAccountEpochVaultPage extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: SelectEpochWinnerAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
3228
3433
|
programAddress?: TProgramAddress;
|
|
3229
|
-
}): Promise<SelectEpochWinnerInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage>>;
|
|
3230
|
-
type SelectEpochWinnerInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultIteration extends string = string, TAccountEpochVaultPage extends string = string> = {
|
|
3434
|
+
}): Promise<SelectEpochWinnerInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountEventAuthority, TAccountProgram>>;
|
|
3435
|
+
type SelectEpochWinnerInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultIteration extends string = string, TAccountEpochVaultPage extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
3231
3436
|
authority: TransactionSigner<TAccountAuthority>;
|
|
3232
3437
|
satrushConfig: Address<TAccountSatrushConfig>;
|
|
3233
3438
|
epochVault: Address<TAccountEpochVault>;
|
|
3234
3439
|
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
3235
3440
|
epochVaultPage: Address<TAccountEpochVaultPage>;
|
|
3441
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
3442
|
+
program: Address<TAccountProgram>;
|
|
3236
3443
|
pageIndex: SelectEpochWinnerInstructionDataArgs['pageIndex'];
|
|
3237
3444
|
};
|
|
3238
|
-
declare function getSelectEpochWinnerInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVault extends string, TAccountEpochVaultIteration extends string, TAccountEpochVaultPage extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: SelectEpochWinnerInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage>, config?: {
|
|
3445
|
+
declare function getSelectEpochWinnerInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVault extends string, TAccountEpochVaultIteration extends string, TAccountEpochVaultPage extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: SelectEpochWinnerInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
3239
3446
|
programAddress?: TProgramAddress;
|
|
3240
|
-
}): SelectEpochWinnerInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage>;
|
|
3447
|
+
}): SelectEpochWinnerInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountEventAuthority, TAccountProgram>;
|
|
3241
3448
|
type ParsedSelectEpochWinnerInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3242
3449
|
programAddress: Address<TProgram>;
|
|
3243
3450
|
accounts: {
|
|
@@ -3246,11 +3453,157 @@ type ParsedSelectEpochWinnerInstruction<TProgram extends string = typeof SATRUSH
|
|
|
3246
3453
|
epochVault: TAccountMetas[2];
|
|
3247
3454
|
epochVaultIteration: TAccountMetas[3];
|
|
3248
3455
|
epochVaultPage: TAccountMetas[4];
|
|
3456
|
+
eventAuthority: TAccountMetas[5];
|
|
3457
|
+
program: TAccountMetas[6];
|
|
3249
3458
|
};
|
|
3250
3459
|
data: SelectEpochWinnerInstructionData;
|
|
3251
3460
|
};
|
|
3252
3461
|
declare function parseSelectEpochWinnerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSelectEpochWinnerInstruction<TProgram, TAccountMetas>;
|
|
3253
3462
|
|
|
3463
|
+
/**
|
|
3464
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3465
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3466
|
+
* to add features, then rerun Codama to update it.
|
|
3467
|
+
*
|
|
3468
|
+
* @see https://github.com/codama-idl/codama
|
|
3469
|
+
*/
|
|
3470
|
+
|
|
3471
|
+
declare const SETTLE_DEPLOY_PUBLIC_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3472
|
+
declare function getSettleDeployPublicDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3473
|
+
type SettleDeployPublicInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountRound extends string | AccountMeta<string> = string, TAccountBoard extends string | AccountMeta<string> = string, TAccountPublicDeployment extends string | AccountMeta<string> = string, TAccountMiner extends string | AccountMeta<string> = string, TAccountSatsVault extends string | AccountMeta<string> = string, TAccountBtcMint extends string | AccountMeta<string> = string, TAccountUsdMint extends string | AccountMeta<string> = string, TAccountBoardBtcAta extends string | AccountMeta<string> = string, TAccountSatsVaultBtcAta extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountAssociatedTokenProgram extends string | AccountMeta<string> = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3474
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3475
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
3476
|
+
TAccountRound extends string ? WritableAccount<TAccountRound> : TAccountRound,
|
|
3477
|
+
TAccountBoard extends string ? ReadonlyAccount<TAccountBoard> : TAccountBoard,
|
|
3478
|
+
TAccountPublicDeployment extends string ? WritableAccount<TAccountPublicDeployment> : TAccountPublicDeployment,
|
|
3479
|
+
TAccountMiner extends string ? WritableAccount<TAccountMiner> : TAccountMiner,
|
|
3480
|
+
TAccountSatsVault extends string ? WritableAccount<TAccountSatsVault> : TAccountSatsVault,
|
|
3481
|
+
TAccountBtcMint extends string ? ReadonlyAccount<TAccountBtcMint> : TAccountBtcMint,
|
|
3482
|
+
TAccountUsdMint extends string ? ReadonlyAccount<TAccountUsdMint> : TAccountUsdMint,
|
|
3483
|
+
TAccountBoardBtcAta extends string ? WritableAccount<TAccountBoardBtcAta> : TAccountBoardBtcAta,
|
|
3484
|
+
TAccountSatsVaultBtcAta extends string ? WritableAccount<TAccountSatsVaultBtcAta> : TAccountSatsVaultBtcAta,
|
|
3485
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
3486
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
3487
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3488
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
3489
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
3490
|
+
...TRemainingAccounts
|
|
3491
|
+
]>;
|
|
3492
|
+
type SettleDeployPublicInstructionData = {
|
|
3493
|
+
discriminator: ReadonlyUint8Array;
|
|
3494
|
+
};
|
|
3495
|
+
type SettleDeployPublicInstructionDataArgs = {};
|
|
3496
|
+
declare function getSettleDeployPublicInstructionDataEncoder(): FixedSizeEncoder<SettleDeployPublicInstructionDataArgs>;
|
|
3497
|
+
declare function getSettleDeployPublicInstructionDataDecoder(): FixedSizeDecoder<SettleDeployPublicInstructionData>;
|
|
3498
|
+
declare function getSettleDeployPublicInstructionDataCodec(): FixedSizeCodec<SettleDeployPublicInstructionDataArgs, SettleDeployPublicInstructionData>;
|
|
3499
|
+
type SettleDeployPublicAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountRound extends string = string, TAccountBoard extends string = string, TAccountPublicDeployment extends string = string, TAccountMiner extends string = string, TAccountSatsVault extends string = string, TAccountBtcMint extends string = string, TAccountUsdMint extends string = string, TAccountBoardBtcAta extends string = string, TAccountSatsVaultBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
3500
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3501
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
3502
|
+
/** Round the deployment belongs to. Must be fully settled. */
|
|
3503
|
+
round: Address<TAccountRound>;
|
|
3504
|
+
/** PDA that owns `board_btc_ata`; signs the deposit transfer into the vault. */
|
|
3505
|
+
board?: Address<TAccountBoard>;
|
|
3506
|
+
/**
|
|
3507
|
+
* The caller's settled deployment being claimed. Closed on success so it can
|
|
3508
|
+
* never be claimed twice; rent is returned to the owner.
|
|
3509
|
+
*/
|
|
3510
|
+
publicDeployment: Address<TAccountPublicDeployment>;
|
|
3511
|
+
/**
|
|
3512
|
+
* Miner profile for `authority`. Created lazily on the first claim and
|
|
3513
|
+
* loaded on subsequent ones.
|
|
3514
|
+
*/
|
|
3515
|
+
miner?: Address<TAccountMiner>;
|
|
3516
|
+
/** The Sats Vault the winner's BTC is deposited into for shares. */
|
|
3517
|
+
satsVault?: Address<TAccountSatsVault>;
|
|
3518
|
+
btcMint: Address<TAccountBtcMint>;
|
|
3519
|
+
/** USD mint — read only to size hashrate points by the stake's whole-USD unit. */
|
|
3520
|
+
usdMint: Address<TAccountUsdMint>;
|
|
3521
|
+
/** Board's BTC reserves — the round's post-swap BTC, source of the deposit. */
|
|
3522
|
+
boardBtcAta?: Address<TAccountBoardBtcAta>;
|
|
3523
|
+
/** Vault's BTC reserves — the deposit destination. */
|
|
3524
|
+
satsVaultBtcAta?: Address<TAccountSatsVaultBtcAta>;
|
|
3525
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3526
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
3527
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3528
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
3529
|
+
program: Address<TAccountProgram>;
|
|
3530
|
+
};
|
|
3531
|
+
declare function getSettleDeployPublicInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountRound extends string, TAccountBoard extends string, TAccountPublicDeployment extends string, TAccountMiner extends string, TAccountSatsVault extends string, TAccountBtcMint extends string, TAccountUsdMint extends string, TAccountBoardBtcAta extends string, TAccountSatsVaultBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: SettleDeployPublicAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountRound, TAccountBoard, TAccountPublicDeployment, TAccountMiner, TAccountSatsVault, TAccountBtcMint, TAccountUsdMint, TAccountBoardBtcAta, TAccountSatsVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
3532
|
+
programAddress?: TProgramAddress;
|
|
3533
|
+
}): Promise<SettleDeployPublicInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountRound, TAccountBoard, TAccountPublicDeployment, TAccountMiner, TAccountSatsVault, TAccountBtcMint, TAccountUsdMint, TAccountBoardBtcAta, TAccountSatsVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>>;
|
|
3534
|
+
type SettleDeployPublicInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountRound extends string = string, TAccountBoard extends string = string, TAccountPublicDeployment extends string = string, TAccountMiner extends string = string, TAccountSatsVault extends string = string, TAccountBtcMint extends string = string, TAccountUsdMint extends string = string, TAccountBoardBtcAta extends string = string, TAccountSatsVaultBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
3535
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3536
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
3537
|
+
/** Round the deployment belongs to. Must be fully settled. */
|
|
3538
|
+
round: Address<TAccountRound>;
|
|
3539
|
+
/** PDA that owns `board_btc_ata`; signs the deposit transfer into the vault. */
|
|
3540
|
+
board: Address<TAccountBoard>;
|
|
3541
|
+
/**
|
|
3542
|
+
* The caller's settled deployment being claimed. Closed on success so it can
|
|
3543
|
+
* never be claimed twice; rent is returned to the owner.
|
|
3544
|
+
*/
|
|
3545
|
+
publicDeployment: Address<TAccountPublicDeployment>;
|
|
3546
|
+
/**
|
|
3547
|
+
* Miner profile for `authority`. Created lazily on the first claim and
|
|
3548
|
+
* loaded on subsequent ones.
|
|
3549
|
+
*/
|
|
3550
|
+
miner: Address<TAccountMiner>;
|
|
3551
|
+
/** The Sats Vault the winner's BTC is deposited into for shares. */
|
|
3552
|
+
satsVault: Address<TAccountSatsVault>;
|
|
3553
|
+
btcMint: Address<TAccountBtcMint>;
|
|
3554
|
+
/** USD mint — read only to size hashrate points by the stake's whole-USD unit. */
|
|
3555
|
+
usdMint: Address<TAccountUsdMint>;
|
|
3556
|
+
/** Board's BTC reserves — the round's post-swap BTC, source of the deposit. */
|
|
3557
|
+
boardBtcAta: Address<TAccountBoardBtcAta>;
|
|
3558
|
+
/** Vault's BTC reserves — the deposit destination. */
|
|
3559
|
+
satsVaultBtcAta: Address<TAccountSatsVaultBtcAta>;
|
|
3560
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3561
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
3562
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3563
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
3564
|
+
program: Address<TAccountProgram>;
|
|
3565
|
+
};
|
|
3566
|
+
declare function getSettleDeployPublicInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountRound extends string, TAccountBoard extends string, TAccountPublicDeployment extends string, TAccountMiner extends string, TAccountSatsVault extends string, TAccountBtcMint extends string, TAccountUsdMint extends string, TAccountBoardBtcAta extends string, TAccountSatsVaultBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: SettleDeployPublicInput<TAccountAuthority, TAccountSatrushConfig, TAccountRound, TAccountBoard, TAccountPublicDeployment, TAccountMiner, TAccountSatsVault, TAccountBtcMint, TAccountUsdMint, TAccountBoardBtcAta, TAccountSatsVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
3567
|
+
programAddress?: TProgramAddress;
|
|
3568
|
+
}): SettleDeployPublicInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountRound, TAccountBoard, TAccountPublicDeployment, TAccountMiner, TAccountSatsVault, TAccountBtcMint, TAccountUsdMint, TAccountBoardBtcAta, TAccountSatsVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>;
|
|
3569
|
+
type ParsedSettleDeployPublicInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3570
|
+
programAddress: Address<TProgram>;
|
|
3571
|
+
accounts: {
|
|
3572
|
+
authority: TAccountMetas[0];
|
|
3573
|
+
satrushConfig: TAccountMetas[1];
|
|
3574
|
+
/** Round the deployment belongs to. Must be fully settled. */
|
|
3575
|
+
round: TAccountMetas[2];
|
|
3576
|
+
/** PDA that owns `board_btc_ata`; signs the deposit transfer into the vault. */
|
|
3577
|
+
board: TAccountMetas[3];
|
|
3578
|
+
/**
|
|
3579
|
+
* The caller's settled deployment being claimed. Closed on success so it can
|
|
3580
|
+
* never be claimed twice; rent is returned to the owner.
|
|
3581
|
+
*/
|
|
3582
|
+
publicDeployment: TAccountMetas[4];
|
|
3583
|
+
/**
|
|
3584
|
+
* Miner profile for `authority`. Created lazily on the first claim and
|
|
3585
|
+
* loaded on subsequent ones.
|
|
3586
|
+
*/
|
|
3587
|
+
miner: TAccountMetas[5];
|
|
3588
|
+
/** The Sats Vault the winner's BTC is deposited into for shares. */
|
|
3589
|
+
satsVault: TAccountMetas[6];
|
|
3590
|
+
btcMint: TAccountMetas[7];
|
|
3591
|
+
/** USD mint — read only to size hashrate points by the stake's whole-USD unit. */
|
|
3592
|
+
usdMint: TAccountMetas[8];
|
|
3593
|
+
/** Board's BTC reserves — the round's post-swap BTC, source of the deposit. */
|
|
3594
|
+
boardBtcAta: TAccountMetas[9];
|
|
3595
|
+
/** Vault's BTC reserves — the deposit destination. */
|
|
3596
|
+
satsVaultBtcAta: TAccountMetas[10];
|
|
3597
|
+
tokenProgram: TAccountMetas[11];
|
|
3598
|
+
associatedTokenProgram: TAccountMetas[12];
|
|
3599
|
+
systemProgram: TAccountMetas[13];
|
|
3600
|
+
eventAuthority: TAccountMetas[14];
|
|
3601
|
+
program: TAccountMetas[15];
|
|
3602
|
+
};
|
|
3603
|
+
data: SettleDeployPublicInstructionData;
|
|
3604
|
+
};
|
|
3605
|
+
declare function parseSettleDeployPublicInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSettleDeployPublicInstruction<TProgram, TAccountMetas>;
|
|
3606
|
+
|
|
3254
3607
|
/**
|
|
3255
3608
|
* This code was AUTOGENERATED using the Codama library.
|
|
3256
3609
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -3445,7 +3798,7 @@ declare function parseSwapOneBtcStakeInstruction<TProgram extends string, TAccou
|
|
|
3445
3798
|
|
|
3446
3799
|
declare const SWAP_ROUND_STAKE_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3447
3800
|
declare function getSwapRoundStakeDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3448
|
-
type SwapRoundStakeInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountBoard extends string | AccountMeta<string> = string, TAccountRound extends string | AccountMeta<string> = string, TAccountUsdMint extends string | AccountMeta<string> = string, TAccountBtcMint extends string | AccountMeta<string> = string, TAccountBoardUsdAta extends string | AccountMeta<string> = string, TAccountBoardBtcAta extends string | AccountMeta<string> = string, TAccountSwapProgram extends string | AccountMeta<string> = 'JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4', TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3801
|
+
type SwapRoundStakeInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountBoard extends string | AccountMeta<string> = string, TAccountRound extends string | AccountMeta<string> = string, TAccountUsdMint extends string | AccountMeta<string> = string, TAccountBtcMint extends string | AccountMeta<string> = string, TAccountBoardUsdAta extends string | AccountMeta<string> = string, TAccountBoardBtcAta extends string | AccountMeta<string> = string, TAccountSwapProgram extends string | AccountMeta<string> = 'JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4', TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3449
3802
|
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3450
3803
|
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
3451
3804
|
TAccountBoard extends string ? ReadonlyAccount<TAccountBoard> : TAccountBoard,
|
|
@@ -3456,6 +3809,8 @@ type SwapRoundStakeInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_
|
|
|
3456
3809
|
TAccountBoardBtcAta extends string ? WritableAccount<TAccountBoardBtcAta> : TAccountBoardBtcAta,
|
|
3457
3810
|
TAccountSwapProgram extends string ? ReadonlyAccount<TAccountSwapProgram> : TAccountSwapProgram,
|
|
3458
3811
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
3812
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
3813
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
3459
3814
|
...TRemainingAccounts
|
|
3460
3815
|
]>;
|
|
3461
3816
|
type SwapRoundStakeInstructionData = {
|
|
@@ -3470,7 +3825,7 @@ type SwapRoundStakeInstructionDataArgs = {
|
|
|
3470
3825
|
declare function getSwapRoundStakeInstructionDataEncoder(): Encoder<SwapRoundStakeInstructionDataArgs>;
|
|
3471
3826
|
declare function getSwapRoundStakeInstructionDataDecoder(): Decoder<SwapRoundStakeInstructionData>;
|
|
3472
3827
|
declare function getSwapRoundStakeInstructionDataCodec(): Codec<SwapRoundStakeInstructionDataArgs, SwapRoundStakeInstructionData>;
|
|
3473
|
-
type SwapRoundStakeAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard extends string = string, TAccountRound extends string = string, TAccountUsdMint extends string = string, TAccountBtcMint extends string = string, TAccountBoardUsdAta extends string = string, TAccountBoardBtcAta extends string = string, TAccountSwapProgram extends string = string, TAccountTokenProgram extends string = string> = {
|
|
3828
|
+
type SwapRoundStakeAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard extends string = string, TAccountRound extends string = string, TAccountUsdMint extends string = string, TAccountBtcMint extends string = string, TAccountBoardUsdAta extends string = string, TAccountBoardBtcAta extends string = string, TAccountSwapProgram extends string = string, TAccountTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
3474
3829
|
/** The round authority keeper that built the off-chain route. */
|
|
3475
3830
|
authority: TransactionSigner<TAccountAuthority>;
|
|
3476
3831
|
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
@@ -3487,13 +3842,15 @@ type SwapRoundStakeAsyncInput<TAccountAuthority extends string = string, TAccoun
|
|
|
3487
3842
|
/** hardcoded `SWAP_PROGRAM` (mock under the `devnet` feature). */
|
|
3488
3843
|
swapProgram?: Address<TAccountSwapProgram>;
|
|
3489
3844
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3845
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
3846
|
+
program: Address<TAccountProgram>;
|
|
3490
3847
|
minBtcOut: SwapRoundStakeInstructionDataArgs['minBtcOut'];
|
|
3491
3848
|
swapData: SwapRoundStakeInstructionDataArgs['swapData'];
|
|
3492
3849
|
};
|
|
3493
|
-
declare function getSwapRoundStakeInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard extends string, TAccountRound extends string, TAccountUsdMint extends string, TAccountBtcMint extends string, TAccountBoardUsdAta extends string, TAccountBoardBtcAta extends string, TAccountSwapProgram extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: SwapRoundStakeAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountRound, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountSwapProgram, TAccountTokenProgram>, config?: {
|
|
3850
|
+
declare function getSwapRoundStakeInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard extends string, TAccountRound extends string, TAccountUsdMint extends string, TAccountBtcMint extends string, TAccountBoardUsdAta extends string, TAccountBoardBtcAta extends string, TAccountSwapProgram extends string, TAccountTokenProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: SwapRoundStakeAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountRound, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountSwapProgram, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
3494
3851
|
programAddress?: TProgramAddress;
|
|
3495
|
-
}): Promise<SwapRoundStakeInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountRound, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountSwapProgram, TAccountTokenProgram>>;
|
|
3496
|
-
type SwapRoundStakeInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard extends string = string, TAccountRound extends string = string, TAccountUsdMint extends string = string, TAccountBtcMint extends string = string, TAccountBoardUsdAta extends string = string, TAccountBoardBtcAta extends string = string, TAccountSwapProgram extends string = string, TAccountTokenProgram extends string = string> = {
|
|
3852
|
+
}): Promise<SwapRoundStakeInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountRound, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountSwapProgram, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>>;
|
|
3853
|
+
type SwapRoundStakeInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard extends string = string, TAccountRound extends string = string, TAccountUsdMint extends string = string, TAccountBtcMint extends string = string, TAccountBoardUsdAta extends string = string, TAccountBoardBtcAta extends string = string, TAccountSwapProgram extends string = string, TAccountTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
3497
3854
|
/** The round authority keeper that built the off-chain route. */
|
|
3498
3855
|
authority: TransactionSigner<TAccountAuthority>;
|
|
3499
3856
|
satrushConfig: Address<TAccountSatrushConfig>;
|
|
@@ -3510,12 +3867,14 @@ type SwapRoundStakeInput<TAccountAuthority extends string = string, TAccountSatr
|
|
|
3510
3867
|
/** hardcoded `SWAP_PROGRAM` (mock under the `devnet` feature). */
|
|
3511
3868
|
swapProgram?: Address<TAccountSwapProgram>;
|
|
3512
3869
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3870
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
3871
|
+
program: Address<TAccountProgram>;
|
|
3513
3872
|
minBtcOut: SwapRoundStakeInstructionDataArgs['minBtcOut'];
|
|
3514
3873
|
swapData: SwapRoundStakeInstructionDataArgs['swapData'];
|
|
3515
3874
|
};
|
|
3516
|
-
declare function getSwapRoundStakeInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard extends string, TAccountRound extends string, TAccountUsdMint extends string, TAccountBtcMint extends string, TAccountBoardUsdAta extends string, TAccountBoardBtcAta extends string, TAccountSwapProgram extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: SwapRoundStakeInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountRound, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountSwapProgram, TAccountTokenProgram>, config?: {
|
|
3875
|
+
declare function getSwapRoundStakeInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard extends string, TAccountRound extends string, TAccountUsdMint extends string, TAccountBtcMint extends string, TAccountBoardUsdAta extends string, TAccountBoardBtcAta extends string, TAccountSwapProgram extends string, TAccountTokenProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: SwapRoundStakeInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountRound, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountSwapProgram, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
3517
3876
|
programAddress?: TProgramAddress;
|
|
3518
|
-
}): SwapRoundStakeInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountRound, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountSwapProgram, TAccountTokenProgram>;
|
|
3877
|
+
}): SwapRoundStakeInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountRound, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountSwapProgram, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>;
|
|
3519
3878
|
type ParsedSwapRoundStakeInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3520
3879
|
programAddress: Address<TProgram>;
|
|
3521
3880
|
accounts: {
|
|
@@ -3535,6 +3894,8 @@ type ParsedSwapRoundStakeInstruction<TProgram extends string = typeof SATRUSH_PR
|
|
|
3535
3894
|
/** hardcoded `SWAP_PROGRAM` (mock under the `devnet` feature). */
|
|
3536
3895
|
swapProgram: TAccountMetas[8];
|
|
3537
3896
|
tokenProgram: TAccountMetas[9];
|
|
3897
|
+
eventAuthority: TAccountMetas[10];
|
|
3898
|
+
program: TAccountMetas[11];
|
|
3538
3899
|
};
|
|
3539
3900
|
data: SwapRoundStakeInstructionData;
|
|
3540
3901
|
};
|
|
@@ -3648,7 +4009,7 @@ declare function parseSwapStrikeStakeInstruction<TProgram extends string, TAccou
|
|
|
3648
4009
|
|
|
3649
4010
|
declare const TRIGGER_EPOCH_DRAW_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3650
4011
|
declare function getTriggerEpochDrawDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3651
|
-
type TriggerEpochDrawInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountEpochVault extends string | AccountMeta<string> = string, TAccountEpochVaultIteration extends string | AccountMeta<string> = string, TAccountNextEpochVaultIteration extends string | AccountMeta<string> = string, TAccountSlotHashes extends string | AccountMeta<string> = 'SysvarS1otHashes111111111111111111111111111', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
4012
|
+
type TriggerEpochDrawInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountEpochVault extends string | AccountMeta<string> = string, TAccountEpochVaultIteration extends string | AccountMeta<string> = string, TAccountNextEpochVaultIteration extends string | AccountMeta<string> = string, TAccountSlotHashes extends string | AccountMeta<string> = 'SysvarS1otHashes111111111111111111111111111', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3652
4013
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3653
4014
|
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
3654
4015
|
TAccountEpochVault extends string ? WritableAccount<TAccountEpochVault> : TAccountEpochVault,
|
|
@@ -3656,6 +4017,8 @@ type TriggerEpochDrawInstruction<TProgram extends string = typeof SATRUSH_PROGRA
|
|
|
3656
4017
|
TAccountNextEpochVaultIteration extends string ? WritableAccount<TAccountNextEpochVaultIteration> : TAccountNextEpochVaultIteration,
|
|
3657
4018
|
TAccountSlotHashes extends string ? ReadonlyAccount<TAccountSlotHashes> : TAccountSlotHashes,
|
|
3658
4019
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
4020
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
4021
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
3659
4022
|
...TRemainingAccounts
|
|
3660
4023
|
]>;
|
|
3661
4024
|
type TriggerEpochDrawInstructionData = {
|
|
@@ -3665,7 +4028,7 @@ type TriggerEpochDrawInstructionDataArgs = {};
|
|
|
3665
4028
|
declare function getTriggerEpochDrawInstructionDataEncoder(): FixedSizeEncoder<TriggerEpochDrawInstructionDataArgs>;
|
|
3666
4029
|
declare function getTriggerEpochDrawInstructionDataDecoder(): FixedSizeDecoder<TriggerEpochDrawInstructionData>;
|
|
3667
4030
|
declare function getTriggerEpochDrawInstructionDataCodec(): FixedSizeCodec<TriggerEpochDrawInstructionDataArgs, TriggerEpochDrawInstructionData>;
|
|
3668
|
-
type TriggerEpochDrawAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultIteration extends string = string, TAccountNextEpochVaultIteration extends string = string, TAccountSlotHashes extends string = string, TAccountSystemProgram extends string = string> = {
|
|
4031
|
+
type TriggerEpochDrawAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultIteration extends string = string, TAccountNextEpochVaultIteration extends string = string, TAccountSlotHashes extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
3669
4032
|
authority: TransactionSigner<TAccountAuthority>;
|
|
3670
4033
|
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
3671
4034
|
epochVault?: Address<TAccountEpochVault>;
|
|
@@ -3674,11 +4037,13 @@ type TriggerEpochDrawAsyncInput<TAccountAuthority extends string = string, TAcco
|
|
|
3674
4037
|
/** because the sysvar is too large to deserialize. */
|
|
3675
4038
|
slotHashes?: Address<TAccountSlotHashes>;
|
|
3676
4039
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
4040
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
4041
|
+
program: Address<TAccountProgram>;
|
|
3677
4042
|
};
|
|
3678
|
-
declare function getTriggerEpochDrawInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVault extends string, TAccountEpochVaultIteration extends string, TAccountNextEpochVaultIteration extends string, TAccountSlotHashes extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: TriggerEpochDrawAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountNextEpochVaultIteration, TAccountSlotHashes, TAccountSystemProgram>, config?: {
|
|
4043
|
+
declare function getTriggerEpochDrawInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVault extends string, TAccountEpochVaultIteration extends string, TAccountNextEpochVaultIteration extends string, TAccountSlotHashes extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: TriggerEpochDrawAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountNextEpochVaultIteration, TAccountSlotHashes, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
3679
4044
|
programAddress?: TProgramAddress;
|
|
3680
|
-
}): Promise<TriggerEpochDrawInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountNextEpochVaultIteration, TAccountSlotHashes, TAccountSystemProgram>>;
|
|
3681
|
-
type TriggerEpochDrawInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultIteration extends string = string, TAccountNextEpochVaultIteration extends string = string, TAccountSlotHashes extends string = string, TAccountSystemProgram extends string = string> = {
|
|
4045
|
+
}): Promise<TriggerEpochDrawInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountNextEpochVaultIteration, TAccountSlotHashes, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>>;
|
|
4046
|
+
type TriggerEpochDrawInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultIteration extends string = string, TAccountNextEpochVaultIteration extends string = string, TAccountSlotHashes extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
3682
4047
|
authority: TransactionSigner<TAccountAuthority>;
|
|
3683
4048
|
satrushConfig: Address<TAccountSatrushConfig>;
|
|
3684
4049
|
epochVault: Address<TAccountEpochVault>;
|
|
@@ -3687,10 +4052,12 @@ type TriggerEpochDrawInput<TAccountAuthority extends string = string, TAccountSa
|
|
|
3687
4052
|
/** because the sysvar is too large to deserialize. */
|
|
3688
4053
|
slotHashes?: Address<TAccountSlotHashes>;
|
|
3689
4054
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
4055
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
4056
|
+
program: Address<TAccountProgram>;
|
|
3690
4057
|
};
|
|
3691
|
-
declare function getTriggerEpochDrawInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVault extends string, TAccountEpochVaultIteration extends string, TAccountNextEpochVaultIteration extends string, TAccountSlotHashes extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: TriggerEpochDrawInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountNextEpochVaultIteration, TAccountSlotHashes, TAccountSystemProgram>, config?: {
|
|
4058
|
+
declare function getTriggerEpochDrawInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVault extends string, TAccountEpochVaultIteration extends string, TAccountNextEpochVaultIteration extends string, TAccountSlotHashes extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: TriggerEpochDrawInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountNextEpochVaultIteration, TAccountSlotHashes, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
3692
4059
|
programAddress?: TProgramAddress;
|
|
3693
|
-
}): TriggerEpochDrawInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountNextEpochVaultIteration, TAccountSlotHashes, TAccountSystemProgram>;
|
|
4060
|
+
}): TriggerEpochDrawInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountNextEpochVaultIteration, TAccountSlotHashes, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>;
|
|
3694
4061
|
type ParsedTriggerEpochDrawInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3695
4062
|
programAddress: Address<TProgram>;
|
|
3696
4063
|
accounts: {
|
|
@@ -3702,6 +4069,8 @@ type ParsedTriggerEpochDrawInstruction<TProgram extends string = typeof SATRUSH_
|
|
|
3702
4069
|
/** because the sysvar is too large to deserialize. */
|
|
3703
4070
|
slotHashes: TAccountMetas[5];
|
|
3704
4071
|
systemProgram: TAccountMetas[6];
|
|
4072
|
+
eventAuthority: TAccountMetas[7];
|
|
4073
|
+
program: TAccountMetas[8];
|
|
3705
4074
|
};
|
|
3706
4075
|
data: TriggerEpochDrawInstructionData;
|
|
3707
4076
|
};
|
|
@@ -3717,7 +4086,7 @@ declare function parseTriggerEpochDrawInstruction<TProgram extends string, TAcco
|
|
|
3717
4086
|
|
|
3718
4087
|
declare const TRIGGER_ONE_BTC_DRAW_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3719
4088
|
declare function getTriggerOneBtcDrawDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3720
|
-
type TriggerOneBtcDrawInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountOneBtcVault extends string | AccountMeta<string> = string, TAccountOneBtcVaultIteration extends string | AccountMeta<string> = string, TAccountNextOneBtcVaultIteration extends string | AccountMeta<string> = string, TAccountSlotHashes extends string | AccountMeta<string> = 'SysvarS1otHashes111111111111111111111111111', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
4089
|
+
type TriggerOneBtcDrawInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountOneBtcVault extends string | AccountMeta<string> = string, TAccountOneBtcVaultIteration extends string | AccountMeta<string> = string, TAccountNextOneBtcVaultIteration extends string | AccountMeta<string> = string, TAccountSlotHashes extends string | AccountMeta<string> = 'SysvarS1otHashes111111111111111111111111111', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3721
4090
|
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3722
4091
|
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
3723
4092
|
TAccountOneBtcVault extends string ? WritableAccount<TAccountOneBtcVault> : TAccountOneBtcVault,
|
|
@@ -3725,6 +4094,8 @@ type TriggerOneBtcDrawInstruction<TProgram extends string = typeof SATRUSH_PROGR
|
|
|
3725
4094
|
TAccountNextOneBtcVaultIteration extends string ? WritableAccount<TAccountNextOneBtcVaultIteration> : TAccountNextOneBtcVaultIteration,
|
|
3726
4095
|
TAccountSlotHashes extends string ? ReadonlyAccount<TAccountSlotHashes> : TAccountSlotHashes,
|
|
3727
4096
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
4097
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
4098
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
3728
4099
|
...TRemainingAccounts
|
|
3729
4100
|
]>;
|
|
3730
4101
|
type TriggerOneBtcDrawInstructionData = {
|
|
@@ -3734,7 +4105,7 @@ type TriggerOneBtcDrawInstructionDataArgs = {};
|
|
|
3734
4105
|
declare function getTriggerOneBtcDrawInstructionDataEncoder(): FixedSizeEncoder<TriggerOneBtcDrawInstructionDataArgs>;
|
|
3735
4106
|
declare function getTriggerOneBtcDrawInstructionDataDecoder(): FixedSizeDecoder<TriggerOneBtcDrawInstructionData>;
|
|
3736
4107
|
declare function getTriggerOneBtcDrawInstructionDataCodec(): FixedSizeCodec<TriggerOneBtcDrawInstructionDataArgs, TriggerOneBtcDrawInstructionData>;
|
|
3737
|
-
type TriggerOneBtcDrawAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountOneBtcVault extends string = string, TAccountOneBtcVaultIteration extends string = string, TAccountNextOneBtcVaultIteration extends string = string, TAccountSlotHashes extends string = string, TAccountSystemProgram extends string = string> = {
|
|
4108
|
+
type TriggerOneBtcDrawAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountOneBtcVault extends string = string, TAccountOneBtcVaultIteration extends string = string, TAccountNextOneBtcVaultIteration extends string = string, TAccountSlotHashes extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
3738
4109
|
authority: TransactionSigner<TAccountAuthority>;
|
|
3739
4110
|
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
3740
4111
|
oneBtcVault?: Address<TAccountOneBtcVault>;
|
|
@@ -3743,11 +4114,13 @@ type TriggerOneBtcDrawAsyncInput<TAccountAuthority extends string = string, TAcc
|
|
|
3743
4114
|
/** because the sysvar is too large to deserialize. */
|
|
3744
4115
|
slotHashes?: Address<TAccountSlotHashes>;
|
|
3745
4116
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
4117
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
4118
|
+
program: Address<TAccountProgram>;
|
|
3746
4119
|
};
|
|
3747
|
-
declare function getTriggerOneBtcDrawInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountOneBtcVault extends string, TAccountOneBtcVaultIteration extends string, TAccountNextOneBtcVaultIteration extends string, TAccountSlotHashes extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: TriggerOneBtcDrawAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountNextOneBtcVaultIteration, TAccountSlotHashes, TAccountSystemProgram>, config?: {
|
|
4120
|
+
declare function getTriggerOneBtcDrawInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountOneBtcVault extends string, TAccountOneBtcVaultIteration extends string, TAccountNextOneBtcVaultIteration extends string, TAccountSlotHashes extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: TriggerOneBtcDrawAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountNextOneBtcVaultIteration, TAccountSlotHashes, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
3748
4121
|
programAddress?: TProgramAddress;
|
|
3749
|
-
}): Promise<TriggerOneBtcDrawInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountNextOneBtcVaultIteration, TAccountSlotHashes, TAccountSystemProgram>>;
|
|
3750
|
-
type TriggerOneBtcDrawInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountOneBtcVault extends string = string, TAccountOneBtcVaultIteration extends string = string, TAccountNextOneBtcVaultIteration extends string = string, TAccountSlotHashes extends string = string, TAccountSystemProgram extends string = string> = {
|
|
4122
|
+
}): Promise<TriggerOneBtcDrawInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountNextOneBtcVaultIteration, TAccountSlotHashes, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>>;
|
|
4123
|
+
type TriggerOneBtcDrawInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountOneBtcVault extends string = string, TAccountOneBtcVaultIteration extends string = string, TAccountNextOneBtcVaultIteration extends string = string, TAccountSlotHashes extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
3751
4124
|
authority: TransactionSigner<TAccountAuthority>;
|
|
3752
4125
|
satrushConfig: Address<TAccountSatrushConfig>;
|
|
3753
4126
|
oneBtcVault: Address<TAccountOneBtcVault>;
|
|
@@ -3756,10 +4129,12 @@ type TriggerOneBtcDrawInput<TAccountAuthority extends string = string, TAccountS
|
|
|
3756
4129
|
/** because the sysvar is too large to deserialize. */
|
|
3757
4130
|
slotHashes?: Address<TAccountSlotHashes>;
|
|
3758
4131
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
4132
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
4133
|
+
program: Address<TAccountProgram>;
|
|
3759
4134
|
};
|
|
3760
|
-
declare function getTriggerOneBtcDrawInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountOneBtcVault extends string, TAccountOneBtcVaultIteration extends string, TAccountNextOneBtcVaultIteration extends string, TAccountSlotHashes extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: TriggerOneBtcDrawInput<TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountNextOneBtcVaultIteration, TAccountSlotHashes, TAccountSystemProgram>, config?: {
|
|
4135
|
+
declare function getTriggerOneBtcDrawInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountOneBtcVault extends string, TAccountOneBtcVaultIteration extends string, TAccountNextOneBtcVaultIteration extends string, TAccountSlotHashes extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: TriggerOneBtcDrawInput<TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountNextOneBtcVaultIteration, TAccountSlotHashes, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
3761
4136
|
programAddress?: TProgramAddress;
|
|
3762
|
-
}): TriggerOneBtcDrawInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountNextOneBtcVaultIteration, TAccountSlotHashes, TAccountSystemProgram>;
|
|
4137
|
+
}): TriggerOneBtcDrawInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountNextOneBtcVaultIteration, TAccountSlotHashes, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>;
|
|
3763
4138
|
type ParsedTriggerOneBtcDrawInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3764
4139
|
programAddress: Address<TProgram>;
|
|
3765
4140
|
accounts: {
|
|
@@ -3771,11 +4146,68 @@ type ParsedTriggerOneBtcDrawInstruction<TProgram extends string = typeof SATRUSH
|
|
|
3771
4146
|
/** because the sysvar is too large to deserialize. */
|
|
3772
4147
|
slotHashes: TAccountMetas[5];
|
|
3773
4148
|
systemProgram: TAccountMetas[6];
|
|
4149
|
+
eventAuthority: TAccountMetas[7];
|
|
4150
|
+
program: TAccountMetas[8];
|
|
3774
4151
|
};
|
|
3775
4152
|
data: TriggerOneBtcDrawInstructionData;
|
|
3776
4153
|
};
|
|
3777
4154
|
declare function parseTriggerOneBtcDrawInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedTriggerOneBtcDrawInstruction<TProgram, TAccountMetas>;
|
|
3778
4155
|
|
|
4156
|
+
/**
|
|
4157
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4158
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4159
|
+
* to add features, then rerun Codama to update it.
|
|
4160
|
+
*
|
|
4161
|
+
* @see https://github.com/codama-idl/codama
|
|
4162
|
+
*/
|
|
4163
|
+
|
|
4164
|
+
declare const UPDATE_BOARD_ROUND_DURATION_DISCRIMINATOR: ReadonlyUint8Array;
|
|
4165
|
+
declare function getUpdateBoardRoundDurationDiscriminatorBytes(): ReadonlyUint8Array;
|
|
4166
|
+
type UpdateBoardRoundDurationInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountBoard extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
4167
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
4168
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
4169
|
+
TAccountBoard extends string ? WritableAccount<TAccountBoard> : TAccountBoard,
|
|
4170
|
+
...TRemainingAccounts
|
|
4171
|
+
]>;
|
|
4172
|
+
type UpdateBoardRoundDurationInstructionData = {
|
|
4173
|
+
discriminator: ReadonlyUint8Array;
|
|
4174
|
+
newRoundDuration: number;
|
|
4175
|
+
};
|
|
4176
|
+
type UpdateBoardRoundDurationInstructionDataArgs = {
|
|
4177
|
+
newRoundDuration: number;
|
|
4178
|
+
};
|
|
4179
|
+
declare function getUpdateBoardRoundDurationInstructionDataEncoder(): FixedSizeEncoder<UpdateBoardRoundDurationInstructionDataArgs>;
|
|
4180
|
+
declare function getUpdateBoardRoundDurationInstructionDataDecoder(): FixedSizeDecoder<UpdateBoardRoundDurationInstructionData>;
|
|
4181
|
+
declare function getUpdateBoardRoundDurationInstructionDataCodec(): FixedSizeCodec<UpdateBoardRoundDurationInstructionDataArgs, UpdateBoardRoundDurationInstructionData>;
|
|
4182
|
+
type UpdateBoardRoundDurationAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard extends string = string> = {
|
|
4183
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
4184
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
4185
|
+
board?: Address<TAccountBoard>;
|
|
4186
|
+
newRoundDuration: UpdateBoardRoundDurationInstructionDataArgs['newRoundDuration'];
|
|
4187
|
+
};
|
|
4188
|
+
declare function getUpdateBoardRoundDurationInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: UpdateBoardRoundDurationAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard>, config?: {
|
|
4189
|
+
programAddress?: TProgramAddress;
|
|
4190
|
+
}): Promise<UpdateBoardRoundDurationInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard>>;
|
|
4191
|
+
type UpdateBoardRoundDurationInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard extends string = string> = {
|
|
4192
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
4193
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
4194
|
+
board: Address<TAccountBoard>;
|
|
4195
|
+
newRoundDuration: UpdateBoardRoundDurationInstructionDataArgs['newRoundDuration'];
|
|
4196
|
+
};
|
|
4197
|
+
declare function getUpdateBoardRoundDurationInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: UpdateBoardRoundDurationInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard>, config?: {
|
|
4198
|
+
programAddress?: TProgramAddress;
|
|
4199
|
+
}): UpdateBoardRoundDurationInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard>;
|
|
4200
|
+
type ParsedUpdateBoardRoundDurationInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
4201
|
+
programAddress: Address<TProgram>;
|
|
4202
|
+
accounts: {
|
|
4203
|
+
authority: TAccountMetas[0];
|
|
4204
|
+
satrushConfig: TAccountMetas[1];
|
|
4205
|
+
board: TAccountMetas[2];
|
|
4206
|
+
};
|
|
4207
|
+
data: UpdateBoardRoundDurationInstructionData;
|
|
4208
|
+
};
|
|
4209
|
+
declare function parseUpdateBoardRoundDurationInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdateBoardRoundDurationInstruction<TProgram, TAccountMetas>;
|
|
4210
|
+
|
|
3779
4211
|
/**
|
|
3780
4212
|
* This code was AUTOGENERATED using the Codama library.
|
|
3781
4213
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -3897,14 +4329,32 @@ declare function parseWithdrawProtocolFeesInstruction<TProgram extends string, T
|
|
|
3897
4329
|
*/
|
|
3898
4330
|
declare function buildDeployPublicInstruction(authority: Address, usdMint: Address, roundId: number, selectionMask: number, amount: number | bigint): Promise<Instruction>;
|
|
3899
4331
|
/**
|
|
3900
|
-
* `
|
|
3901
|
-
* credit winnings (USD + sats vault shares) and hashrate
|
|
3902
|
-
* profile, then close the deployment account, returning
|
|
3903
|
-
* losing deployments too (they still earn hashrate
|
|
4332
|
+
* `settle_deploy_public`: settle the miner `authority`'s deployment in a
|
|
4333
|
+
* Settled round — credit winnings (USD + sats vault shares) and hashrate
|
|
4334
|
+
* points to the miner profile, then close the deployment account, returning
|
|
4335
|
+
* its rent. Valid for losing deployments too (they still earn hashrate
|
|
4336
|
+
* points).
|
|
4337
|
+
*/
|
|
4338
|
+
declare function buildSettleDeployPublicInstruction(authority: Address, usdMint: Address, btcMint: Address, roundId: number): Promise<Instruction>;
|
|
4339
|
+
/**
|
|
4340
|
+
* `claim_sats`: redeem `shares` of the miner `authority`'s sats vault shares
|
|
4341
|
+
* for BTC. A claim fee is withheld in the vault; the net BTC transfers to the
|
|
4342
|
+
* authority's BTC account.
|
|
3904
4343
|
*/
|
|
3905
|
-
declare function
|
|
4344
|
+
declare function buildClaimSatsInstruction(authority: Address, btcMint: Address, shares: number | bigint): Promise<Instruction>;
|
|
4345
|
+
/**
|
|
4346
|
+
* `claim_usd`: withdraw `amount` of the miner `authority`'s unclaimed USD
|
|
4347
|
+
* winnings from the board's USD pool to the authority's USD account. No exit
|
|
4348
|
+
* fee — the full amount transfers.
|
|
4349
|
+
*/
|
|
4350
|
+
declare function buildClaimUsdInstruction(authority: Address, usdMint: Address, amount: number | bigint): Promise<Instruction>;
|
|
3906
4351
|
|
|
3907
4352
|
declare function getSatrushConfigAddress(): Promise<ProgramDerivedAddress>;
|
|
4353
|
+
/**
|
|
4354
|
+
* Anchor's event-CPI authority PDA — the extra account every `#[event_cpi]`
|
|
4355
|
+
* instruction takes alongside the program account.
|
|
4356
|
+
*/
|
|
4357
|
+
declare function getEventAuthorityAddress(): Promise<ProgramDerivedAddress>;
|
|
3908
4358
|
declare function getBoardAddress(): Promise<ProgramDerivedAddress>;
|
|
3909
4359
|
declare function getRoundAddress(roundId: number): Promise<ProgramDerivedAddress>;
|
|
3910
4360
|
declare function getPublicDeploymentAddress(authority: Address, roundId: number): Promise<ProgramDerivedAddress>;
|
|
@@ -3918,6 +4368,30 @@ declare function getOneBtcVaultAddress(): Promise<ProgramDerivedAddress>;
|
|
|
3918
4368
|
declare function getOneBtcVaultIterationAddress(iterationId: number): Promise<ProgramDerivedAddress>;
|
|
3919
4369
|
declare function getTreasuryAddress(): Promise<ProgramDerivedAddress>;
|
|
3920
4370
|
|
|
4371
|
+
/** BTC value of a sats-vault share amount, as computed by {@link satsToBtc}. */
|
|
4372
|
+
type BtcSharesValue = {
|
|
4373
|
+
/** Value at the current exchange rate, before the claim fee. */
|
|
4374
|
+
gross: bigint;
|
|
4375
|
+
/** Fee withheld on claim; the payout is `gross - fee`. */
|
|
4376
|
+
fee: bigint;
|
|
4377
|
+
};
|
|
4378
|
+
/**
|
|
4379
|
+
* BTC value of `shares` against a vault holding `vaultAmount` BTC with
|
|
4380
|
+
* `vaultShares` shares issued (`SatsVault.btcAmount` / `SatsVault.btcShares`).
|
|
4381
|
+
* `claimFeeBps` is `SatrushConfig.satsVaultClaimFeeBps`; pass `0` when only
|
|
4382
|
+
* the gross value matters. Zero `shares` value to zero without error;
|
|
4383
|
+
* `shares` exceeding `vaultShares` throws.
|
|
4384
|
+
*/
|
|
4385
|
+
declare function satsToBtc(shares: bigint, vaultAmount: bigint, vaultShares: bigint, claimFeeBps: number): BtcSharesValue;
|
|
4386
|
+
/**
|
|
4387
|
+
* Shares minted for depositing `btcAmount` BTC into a vault holding
|
|
4388
|
+
* `vaultAmount` BTC with `vaultShares` shares issued (`SatsVault.btcAmount` /
|
|
4389
|
+
* `SatsVault.btcShares`): 1:1 while no shares exist, otherwise scaled by the
|
|
4390
|
+
* vault's `shares / assets` ratio and floored. Throws when the vault has
|
|
4391
|
+
* shares but no BTC, or the result exceeds `u64::MAX`.
|
|
4392
|
+
*/
|
|
4393
|
+
declare function btcToSats(btcAmount: bigint, vaultAmount: bigint, vaultShares: bigint): bigint;
|
|
4394
|
+
|
|
3921
4395
|
/** Number of selectable tiles on the board. */
|
|
3922
4396
|
declare const TILE_COUNT = 21;
|
|
3923
4397
|
/**
|
|
@@ -3935,4 +4409,4 @@ declare function selectionMaskFromTiles(tiles: boolean[]): number;
|
|
|
3935
4409
|
*/
|
|
3936
4410
|
declare function tilesFromSelectionMask(mask: number): boolean[];
|
|
3937
4411
|
|
|
3938
|
-
export { BOARD_DISCRIMINATOR, BUY_EPOCH_TICKETS_DISCRIMINATOR, BUY_ONE_BTC_TICKETS_DISCRIMINATOR, type Board, type BoardArgs, type BuyEpochTicketsAsyncInput, type BuyEpochTicketsInput, type BuyEpochTicketsInstruction, type BuyEpochTicketsInstructionData, type BuyEpochTicketsInstructionDataArgs, type BuyOneBtcTicketsAsyncInput, type BuyOneBtcTicketsInput, type BuyOneBtcTicketsInstruction, type BuyOneBtcTicketsInstructionData, type BuyOneBtcTicketsInstructionDataArgs, CLAIM_DISCRIMINATOR, CLAIM_EPOCH_REWARD_DISCRIMINATOR, CLAIM_ONE_BTC_REWARD_DISCRIMINATOR, CLAIM_SATS_DISCRIMINATOR, CLOSE_EPOCH_ENTRY_DISCRIMINATOR, CLOSE_EPOCH_ITERATION_DISCRIMINATOR, CLOSE_EPOCH_PAGE_DISCRIMINATOR, CLOSE_ONE_BTC_ITERATION_DISCRIMINATOR, CLOSE_ONE_BTC_TICKET_DISCRIMINATOR, CREATE_BOARD_DISCRIMINATOR, CREATE_EPOCH_VAULT_DISCRIMINATOR, CREATE_ONE_BTC_VAULT_DISCRIMINATOR, CREATE_SATRUSH_CONFIG_DISCRIMINATOR, CREATE_SATS_VAULT_DISCRIMINATOR, CREATE_TREASURY_DISCRIMINATOR, type ClaimAsyncInput, type ClaimEpochRewardAsyncInput, type ClaimEpochRewardInput, type ClaimEpochRewardInstruction, type ClaimEpochRewardInstructionData, type ClaimEpochRewardInstructionDataArgs, type ClaimInput, type ClaimInstruction, type ClaimInstructionData, type ClaimInstructionDataArgs, type ClaimOneBtcRewardAsyncInput, type ClaimOneBtcRewardInput, type ClaimOneBtcRewardInstruction, type ClaimOneBtcRewardInstructionData, type ClaimOneBtcRewardInstructionDataArgs, type ClaimSatsAsyncInput, type ClaimSatsInput, type ClaimSatsInstruction, type ClaimSatsInstructionData, type ClaimSatsInstructionDataArgs, type CloseEpochEntryAsyncInput, type CloseEpochEntryInput, type CloseEpochEntryInstruction, type CloseEpochEntryInstructionData, type CloseEpochEntryInstructionDataArgs, type CloseEpochIterationAsyncInput, type CloseEpochIterationInput, type CloseEpochIterationInstruction, type CloseEpochIterationInstructionData, type CloseEpochIterationInstructionDataArgs, type CloseEpochPageAsyncInput, type CloseEpochPageInput, type CloseEpochPageInstruction, type CloseEpochPageInstructionData, type CloseEpochPageInstructionDataArgs, type CloseOneBtcIterationAsyncInput, type CloseOneBtcIterationInput, type CloseOneBtcIterationInstruction, type CloseOneBtcIterationInstructionData, type CloseOneBtcIterationInstructionDataArgs, type CloseOneBtcTicketInput, type CloseOneBtcTicketInstruction, type CloseOneBtcTicketInstructionData, type CloseOneBtcTicketInstructionDataArgs, type CreateBoardAsyncInput, type CreateBoardInput, type CreateBoardInstruction, type CreateBoardInstructionData, type CreateBoardInstructionDataArgs, type CreateEpochVaultAsyncInput, type CreateEpochVaultInput, type CreateEpochVaultInstruction, type CreateEpochVaultInstructionData, type CreateEpochVaultInstructionDataArgs, type CreateOneBtcVaultAsyncInput, type CreateOneBtcVaultInput, type CreateOneBtcVaultInstruction, type CreateOneBtcVaultInstructionData, type CreateOneBtcVaultInstructionDataArgs, type CreateSatrushConfigAsyncInput, type CreateSatrushConfigInput, type CreateSatrushConfigInstruction, type CreateSatrushConfigInstructionData, type CreateSatrushConfigInstructionDataArgs, type CreateSatsVaultAsyncInput, type CreateSatsVaultInput, type CreateSatsVaultInstruction, type CreateSatsVaultInstructionData, type CreateSatsVaultInstructionDataArgs, type CreateTreasuryAsyncInput, type CreateTreasuryInput, type CreateTreasuryInstruction, type CreateTreasuryInstructionData, type CreateTreasuryInstructionDataArgs, DEPLOY_PUBLIC_DISCRIMINATOR, type DeployPublicAsyncInput, type DeployPublicInput, type DeployPublicInstruction, type DeployPublicInstructionData, type DeployPublicInstructionDataArgs, EPOCH_VAULT_DISCRIMINATOR, EPOCH_VAULT_ENTRY_DISCRIMINATOR, EPOCH_VAULT_ITERATION_DISCRIMINATOR, EPOCH_VAULT_PAGE_DISCRIMINATOR, EpochState, type EpochStateArgs, type EpochVault, type EpochVaultArgs, type EpochVaultEntry, type EpochVaultEntryArgs, type EpochVaultIteration, type EpochVaultIterationArgs, type EpochVaultPage, type EpochVaultPageArgs, MINER_DISCRIMINATOR, type Miner, type MinerArgs, type MinerSeeds, type NextRoundSeeds, ONE_BTC_VAULT_DISCRIMINATOR, ONE_BTC_VAULT_ENTRY_DISCRIMINATOR, ONE_BTC_VAULT_ITERATION_DISCRIMINATOR, OneBtcState, type OneBtcStateArgs, type OneBtcVault, type OneBtcVaultArgs, type OneBtcVaultEntry, type OneBtcVaultEntryArgs, type OneBtcVaultIteration, type OneBtcVaultIterationArgs, PUBLIC_DEPLOYMENT_DISCRIMINATOR, type PageEntry, type PageEntryArgs, type ParsedBuyEpochTicketsInstruction, type ParsedBuyOneBtcTicketsInstruction, type ParsedClaimEpochRewardInstruction, type ParsedClaimInstruction, type ParsedClaimOneBtcRewardInstruction, type ParsedClaimSatsInstruction, type ParsedCloseEpochEntryInstruction, type ParsedCloseEpochIterationInstruction, type ParsedCloseEpochPageInstruction, type ParsedCloseOneBtcIterationInstruction, type ParsedCloseOneBtcTicketInstruction, type ParsedCreateBoardInstruction, type ParsedCreateEpochVaultInstruction, type ParsedCreateOneBtcVaultInstruction, type ParsedCreateSatrushConfigInstruction, type ParsedCreateSatsVaultInstruction, type ParsedCreateTreasuryInstruction, type ParsedDeployPublicInstruction, type ParsedRotateRoundInstruction, type ParsedSatrushInstruction, type ParsedSealEpochPageInstruction, type ParsedSelectEpochWinnerInstruction, type ParsedSwapEpochStakeInstruction, type ParsedSwapOneBtcStakeInstruction, type ParsedSwapRoundStakeInstruction, type ParsedSwapStrikeStakeInstruction, type ParsedTriggerEpochDrawInstruction, type ParsedTriggerOneBtcDrawInstruction, type ParsedWithdrawProtocolFeesInstruction, type PublicDeployment, type PublicDeploymentArgs, ROTATE_ROUND_DISCRIMINATOR, ROUND_DISCRIMINATOR, type RotateRoundAsyncInput, type RotateRoundInput, type RotateRoundInstruction, type RotateRoundInstructionData, type RotateRoundInstructionDataArgs, type Round, type RoundArgs, RoundState, type RoundStateArgs, SATRUSH_CONFIG_DISCRIMINATOR, SATRUSH_ERROR__ALREADY_REVEALED, SATRUSH_ERROR__ALREADY_SETTLED, SATRUSH_ERROR__ALREADY_SWAPPED, SATRUSH_ERROR__BOARD_ALREADY_BOOTSTRAPPED, SATRUSH_ERROR__DEPLOYMENT_NOT_SETTLED, SATRUSH_ERROR__EPOCH_ALREADY_CLAIMED, SATRUSH_ERROR__EPOCH_BELOW_MIN_HASHRATE, SATRUSH_ERROR__EPOCH_BELOW_THRESHOLD, SATRUSH_ERROR__EPOCH_INVALID_PAGE, SATRUSH_ERROR__EPOCH_MAX_PARTICIPANTS, SATRUSH_ERROR__EPOCH_NOT_A_WINNER, SATRUSH_ERROR__EPOCH_NOT_OPEN, SATRUSH_ERROR__EPOCH_NOT_SETTLED, SATRUSH_ERROR__EPOCH_NOT_SETTLING, SATRUSH_ERROR__EPOCH_PAGE_ALREADY_SEALED, SATRUSH_ERROR__EPOCH_PAGE_NOT_SEALED, SATRUSH_ERROR__EPOCH_SEAL_MISMATCH, SATRUSH_ERROR__EPOCH_WINDOW_NOT_ELAPSED, SATRUSH_ERROR__INSUFFICIENT_HASHRATE, SATRUSH_ERROR__INSUFFICIENT_SHARES, SATRUSH_ERROR__INVALID_DEPLOYMENT_AMOUNT, SATRUSH_ERROR__INVALID_ENTROPY, SATRUSH_ERROR__INVALID_JUPITER_ROUTE, SATRUSH_ERROR__INVALID_ROUND_ID, SATRUSH_ERROR__INVALID_SELECTION_MASK, SATRUSH_ERROR__INVALID_SHARE_AMOUNT, SATRUSH_ERROR__INVALID_SLOT_HASH, SATRUSH_ERROR__INVALID_SWAP_PROGRAM, SATRUSH_ERROR__MATH_OVERFLOW, SATRUSH_ERROR__MATH_UNDERFLOW, SATRUSH_ERROR__ONE_BTC_BELOW_MIN_HASHRATE, SATRUSH_ERROR__ONE_BTC_BELOW_THRESHOLD, SATRUSH_ERROR__ONE_BTC_NOT_A_WINNER, SATRUSH_ERROR__ONE_BTC_NOT_OPEN, SATRUSH_ERROR__ONE_BTC_NOT_SETTLED, SATRUSH_ERROR__ONE_BTC_NOT_TRIGGERABLE, SATRUSH_ERROR__ONE_BTC_NO_PARTICIPANTS, SATRUSH_ERROR__ONE_BTC_WINNING_TICKET_LOCKED, SATRUSH_ERROR__ROUND_IN_PROGRESS, SATRUSH_ERROR__ROUND_NOT_ACTIVE, SATRUSH_ERROR__ROUND_NOT_REVEALED, SATRUSH_ERROR__ROUND_NOT_SETTLED, SATRUSH_ERROR__ROUND_WINDOW_CLOSED, SATRUSH_ERROR__SLIPPAGE_EXCEEDED, SATRUSH_ERROR__STRIKE_ALREADY_TRIGGERED, SATRUSH_ERROR__STRIKE_BELOW_THRESHOLD, SATRUSH_ERROR__SWAP_OVERSPENT, SATRUSH_ERROR__TREASURY_EMPTY, SATRUSH_ERROR__UNAUTHORIZED, SATRUSH_PROGRAM_ADDRESS, SATS_VAULT_DISCRIMINATOR, SEAL_EPOCH_PAGE_DISCRIMINATOR, SELECT_EPOCH_WINNER_DISCRIMINATOR, SWAP_EPOCH_STAKE_DISCRIMINATOR, SWAP_ONE_BTC_STAKE_DISCRIMINATOR, SWAP_ROUND_STAKE_DISCRIMINATOR, SWAP_STRIKE_STAKE_DISCRIMINATOR, SatrushAccount, type SatrushConfig, type SatrushConfigArgs, type SatrushError, SatrushInstruction, type SatrushPlugin, type SatrushPluginAccounts, type SatrushPluginInstructions, type SatrushPluginPdas, type SatrushPluginRequirements, type SatsVault, type SatsVaultArgs, type SealEpochPageAsyncInput, type SealEpochPageInput, type SealEpochPageInstruction, type SealEpochPageInstructionData, type SealEpochPageInstructionDataArgs, type SelectEpochWinnerAsyncInput, type SelectEpochWinnerInput, type SelectEpochWinnerInstruction, type SelectEpochWinnerInstructionData, type SelectEpochWinnerInstructionDataArgs, type SwapEpochStakeAsyncInput, type SwapEpochStakeInput, type SwapEpochStakeInstruction, type SwapEpochStakeInstructionData, type SwapEpochStakeInstructionDataArgs, type SwapOneBtcStakeAsyncInput, type SwapOneBtcStakeInput, type SwapOneBtcStakeInstruction, type SwapOneBtcStakeInstructionData, type SwapOneBtcStakeInstructionDataArgs, type SwapRoundStakeAsyncInput, type SwapRoundStakeInput, type SwapRoundStakeInstruction, type SwapRoundStakeInstructionData, type SwapRoundStakeInstructionDataArgs, type SwapStrikeStakeAsyncInput, type SwapStrikeStakeInput, type SwapStrikeStakeInstruction, type SwapStrikeStakeInstructionData, type SwapStrikeStakeInstructionDataArgs, TILE_COUNT, TREASURY_DISCRIMINATOR, TRIGGER_EPOCH_DRAW_DISCRIMINATOR, TRIGGER_ONE_BTC_DRAW_DISCRIMINATOR, type TileStake, type TileStakeArgs, type Treasury, type TreasuryArgs, type TriggerEpochDrawAsyncInput, type TriggerEpochDrawInput, type TriggerEpochDrawInstruction, type TriggerEpochDrawInstructionData, type TriggerEpochDrawInstructionDataArgs, type TriggerOneBtcDrawAsyncInput, type TriggerOneBtcDrawInput, type TriggerOneBtcDrawInstruction, type TriggerOneBtcDrawInstructionData, type TriggerOneBtcDrawInstructionDataArgs, WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR, type Winner, type WinnerArgs, type WithdrawProtocolFeesAsyncInput, type WithdrawProtocolFeesInput, type WithdrawProtocolFeesInstruction, type WithdrawProtocolFeesInstructionData, type WithdrawProtocolFeesInstructionDataArgs, buildClaimInstruction, buildDeployPublicInstruction, decodeBoard, decodeEpochVault, decodeEpochVaultEntry, decodeEpochVaultIteration, decodeEpochVaultPage, decodeMiner, decodeOneBtcVault, decodeOneBtcVaultEntry, decodeOneBtcVaultIteration, decodePublicDeployment, decodeRound, decodeSatrushConfig, decodeSatsVault, decodeTreasury, fetchAllBoard, fetchAllEpochVault, fetchAllEpochVaultEntry, fetchAllEpochVaultIteration, fetchAllEpochVaultPage, fetchAllMaybeBoard, fetchAllMaybeEpochVault, fetchAllMaybeEpochVaultEntry, fetchAllMaybeEpochVaultIteration, fetchAllMaybeEpochVaultPage, fetchAllMaybeMiner, fetchAllMaybeOneBtcVault, fetchAllMaybeOneBtcVaultEntry, fetchAllMaybeOneBtcVaultIteration, fetchAllMaybePublicDeployment, fetchAllMaybeRound, fetchAllMaybeSatrushConfig, fetchAllMaybeSatsVault, fetchAllMaybeTreasury, fetchAllMiner, fetchAllOneBtcVault, fetchAllOneBtcVaultEntry, fetchAllOneBtcVaultIteration, fetchAllPublicDeployment, fetchAllRound, fetchAllSatrushConfig, fetchAllSatsVault, fetchAllTreasury, fetchBoard, fetchEpochVault, fetchEpochVaultEntry, fetchEpochVaultIteration, fetchEpochVaultPage, fetchMaybeBoard, fetchMaybeEpochVault, fetchMaybeEpochVaultEntry, fetchMaybeEpochVaultIteration, fetchMaybeEpochVaultPage, fetchMaybeMiner, fetchMaybeOneBtcVault, fetchMaybeOneBtcVaultEntry, fetchMaybeOneBtcVaultIteration, fetchMaybePublicDeployment, fetchMaybeRound, fetchMaybeSatrushConfig, fetchMaybeSatsVault, fetchMaybeTreasury, fetchMiner, fetchOneBtcVault, fetchOneBtcVaultEntry, fetchOneBtcVaultIteration, fetchPublicDeployment, fetchRound, fetchSatrushConfig, fetchSatsVault, fetchTreasury, findBoardPda, findEpochVaultIterationPda, findEpochVaultPda, findInitialRoundPda, findMinerPda, findNextRoundPda, findOneBtcVaultIterationPda, findOneBtcVaultPda, findSatrushConfigPda, findSatsVaultPda, findTreasuryPda, getBoardAddress, getBoardCodec, getBoardDecoder, getBoardDiscriminatorBytes, getBoardEncoder, getBoardSize, getBuyEpochTicketsDiscriminatorBytes, getBuyEpochTicketsInstruction, getBuyEpochTicketsInstructionAsync, getBuyEpochTicketsInstructionDataCodec, getBuyEpochTicketsInstructionDataDecoder, getBuyEpochTicketsInstructionDataEncoder, getBuyOneBtcTicketsDiscriminatorBytes, getBuyOneBtcTicketsInstruction, getBuyOneBtcTicketsInstructionAsync, getBuyOneBtcTicketsInstructionDataCodec, getBuyOneBtcTicketsInstructionDataDecoder, getBuyOneBtcTicketsInstructionDataEncoder, getClaimDiscriminatorBytes, getClaimEpochRewardDiscriminatorBytes, getClaimEpochRewardInstruction, getClaimEpochRewardInstructionAsync, getClaimEpochRewardInstructionDataCodec, getClaimEpochRewardInstructionDataDecoder, getClaimEpochRewardInstructionDataEncoder, getClaimInstruction, getClaimInstructionAsync, getClaimInstructionDataCodec, getClaimInstructionDataDecoder, getClaimInstructionDataEncoder, getClaimOneBtcRewardDiscriminatorBytes, getClaimOneBtcRewardInstruction, getClaimOneBtcRewardInstructionAsync, getClaimOneBtcRewardInstructionDataCodec, getClaimOneBtcRewardInstructionDataDecoder, getClaimOneBtcRewardInstructionDataEncoder, getClaimSatsDiscriminatorBytes, getClaimSatsInstruction, getClaimSatsInstructionAsync, getClaimSatsInstructionDataCodec, getClaimSatsInstructionDataDecoder, getClaimSatsInstructionDataEncoder, getCloseEpochEntryDiscriminatorBytes, getCloseEpochEntryInstruction, getCloseEpochEntryInstructionAsync, getCloseEpochEntryInstructionDataCodec, getCloseEpochEntryInstructionDataDecoder, getCloseEpochEntryInstructionDataEncoder, getCloseEpochIterationDiscriminatorBytes, getCloseEpochIterationInstruction, getCloseEpochIterationInstructionAsync, getCloseEpochIterationInstructionDataCodec, getCloseEpochIterationInstructionDataDecoder, getCloseEpochIterationInstructionDataEncoder, getCloseEpochPageDiscriminatorBytes, getCloseEpochPageInstruction, getCloseEpochPageInstructionAsync, getCloseEpochPageInstructionDataCodec, getCloseEpochPageInstructionDataDecoder, getCloseEpochPageInstructionDataEncoder, getCloseOneBtcIterationDiscriminatorBytes, getCloseOneBtcIterationInstruction, getCloseOneBtcIterationInstructionAsync, getCloseOneBtcIterationInstructionDataCodec, getCloseOneBtcIterationInstructionDataDecoder, getCloseOneBtcIterationInstructionDataEncoder, getCloseOneBtcTicketDiscriminatorBytes, getCloseOneBtcTicketInstruction, getCloseOneBtcTicketInstructionDataCodec, getCloseOneBtcTicketInstructionDataDecoder, getCloseOneBtcTicketInstructionDataEncoder, getCreateBoardDiscriminatorBytes, getCreateBoardInstruction, getCreateBoardInstructionAsync, getCreateBoardInstructionDataCodec, getCreateBoardInstructionDataDecoder, getCreateBoardInstructionDataEncoder, getCreateEpochVaultDiscriminatorBytes, getCreateEpochVaultInstruction, getCreateEpochVaultInstructionAsync, getCreateEpochVaultInstructionDataCodec, getCreateEpochVaultInstructionDataDecoder, getCreateEpochVaultInstructionDataEncoder, getCreateOneBtcVaultDiscriminatorBytes, getCreateOneBtcVaultInstruction, getCreateOneBtcVaultInstructionAsync, getCreateOneBtcVaultInstructionDataCodec, getCreateOneBtcVaultInstructionDataDecoder, getCreateOneBtcVaultInstructionDataEncoder, getCreateSatrushConfigDiscriminatorBytes, getCreateSatrushConfigInstruction, getCreateSatrushConfigInstructionAsync, getCreateSatrushConfigInstructionDataCodec, getCreateSatrushConfigInstructionDataDecoder, getCreateSatrushConfigInstructionDataEncoder, getCreateSatsVaultDiscriminatorBytes, getCreateSatsVaultInstruction, getCreateSatsVaultInstructionAsync, getCreateSatsVaultInstructionDataCodec, getCreateSatsVaultInstructionDataDecoder, getCreateSatsVaultInstructionDataEncoder, getCreateTreasuryDiscriminatorBytes, getCreateTreasuryInstruction, getCreateTreasuryInstructionAsync, getCreateTreasuryInstructionDataCodec, getCreateTreasuryInstructionDataDecoder, getCreateTreasuryInstructionDataEncoder, getDeployPublicDiscriminatorBytes, getDeployPublicInstruction, getDeployPublicInstructionAsync, getDeployPublicInstructionDataCodec, getDeployPublicInstructionDataDecoder, getDeployPublicInstructionDataEncoder, getEpochStateCodec, getEpochStateDecoder, getEpochStateEncoder, getEpochVaultAddress, getEpochVaultCodec, getEpochVaultDecoder, getEpochVaultDiscriminatorBytes, getEpochVaultEncoder, getEpochVaultEntryAddress, getEpochVaultEntryCodec, getEpochVaultEntryDecoder, getEpochVaultEntryDiscriminatorBytes, getEpochVaultEntryEncoder, getEpochVaultEntrySize, getEpochVaultIterationAddress, getEpochVaultIterationCodec, getEpochVaultIterationDecoder, getEpochVaultIterationDiscriminatorBytes, getEpochVaultIterationEncoder, getEpochVaultIterationSize, getEpochVaultPageAddress, getEpochVaultPageCodec, getEpochVaultPageDecoder, getEpochVaultPageDiscriminatorBytes, getEpochVaultPageEncoder, getEpochVaultPageSize, getEpochVaultSize, getMinerAddress, getMinerCodec, getMinerDecoder, getMinerDiscriminatorBytes, getMinerEncoder, getMinerSize, getOneBtcStateCodec, getOneBtcStateDecoder, getOneBtcStateEncoder, getOneBtcVaultAddress, getOneBtcVaultCodec, getOneBtcVaultDecoder, getOneBtcVaultDiscriminatorBytes, getOneBtcVaultEncoder, getOneBtcVaultEntryCodec, getOneBtcVaultEntryDecoder, getOneBtcVaultEntryDiscriminatorBytes, getOneBtcVaultEntryEncoder, getOneBtcVaultEntrySize, getOneBtcVaultIterationAddress, getOneBtcVaultIterationCodec, getOneBtcVaultIterationDecoder, getOneBtcVaultIterationDiscriminatorBytes, getOneBtcVaultIterationEncoder, getOneBtcVaultIterationSize, getOneBtcVaultSize, getPageEntryCodec, getPageEntryDecoder, getPageEntryEncoder, getPublicDeploymentAddress, getPublicDeploymentCodec, getPublicDeploymentDecoder, getPublicDeploymentDiscriminatorBytes, getPublicDeploymentEncoder, getRotateRoundDiscriminatorBytes, getRotateRoundInstruction, getRotateRoundInstructionAsync, getRotateRoundInstructionDataCodec, getRotateRoundInstructionDataDecoder, getRotateRoundInstructionDataEncoder, getRoundAddress, getRoundCodec, getRoundDecoder, getRoundDiscriminatorBytes, getRoundEncoder, getRoundStateCodec, getRoundStateDecoder, getRoundStateEncoder, getSatrushConfigAddress, getSatrushConfigCodec, getSatrushConfigDecoder, getSatrushConfigDiscriminatorBytes, getSatrushConfigEncoder, getSatrushConfigSize, getSatrushErrorMessage, getSatsVaultAddress, getSatsVaultCodec, getSatsVaultDecoder, getSatsVaultDiscriminatorBytes, getSatsVaultEncoder, getSatsVaultSize, getSealEpochPageDiscriminatorBytes, getSealEpochPageInstruction, getSealEpochPageInstructionAsync, getSealEpochPageInstructionDataCodec, getSealEpochPageInstructionDataDecoder, getSealEpochPageInstructionDataEncoder, getSelectEpochWinnerDiscriminatorBytes, getSelectEpochWinnerInstruction, getSelectEpochWinnerInstructionAsync, getSelectEpochWinnerInstructionDataCodec, getSelectEpochWinnerInstructionDataDecoder, getSelectEpochWinnerInstructionDataEncoder, getSwapEpochStakeDiscriminatorBytes, getSwapEpochStakeInstruction, getSwapEpochStakeInstructionAsync, getSwapEpochStakeInstructionDataCodec, getSwapEpochStakeInstructionDataDecoder, getSwapEpochStakeInstructionDataEncoder, getSwapOneBtcStakeDiscriminatorBytes, getSwapOneBtcStakeInstruction, getSwapOneBtcStakeInstructionAsync, getSwapOneBtcStakeInstructionDataCodec, getSwapOneBtcStakeInstructionDataDecoder, getSwapOneBtcStakeInstructionDataEncoder, getSwapRoundStakeDiscriminatorBytes, getSwapRoundStakeInstruction, getSwapRoundStakeInstructionAsync, getSwapRoundStakeInstructionDataCodec, getSwapRoundStakeInstructionDataDecoder, getSwapRoundStakeInstructionDataEncoder, getSwapStrikeStakeDiscriminatorBytes, getSwapStrikeStakeInstruction, getSwapStrikeStakeInstructionAsync, getSwapStrikeStakeInstructionDataCodec, getSwapStrikeStakeInstructionDataDecoder, getSwapStrikeStakeInstructionDataEncoder, getTileStakeCodec, getTileStakeDecoder, getTileStakeEncoder, getTreasuryAddress, getTreasuryCodec, getTreasuryDecoder, getTreasuryDiscriminatorBytes, getTreasuryEncoder, getTreasurySize, getTriggerEpochDrawDiscriminatorBytes, getTriggerEpochDrawInstruction, getTriggerEpochDrawInstructionAsync, getTriggerEpochDrawInstructionDataCodec, getTriggerEpochDrawInstructionDataDecoder, getTriggerEpochDrawInstructionDataEncoder, getTriggerOneBtcDrawDiscriminatorBytes, getTriggerOneBtcDrawInstruction, getTriggerOneBtcDrawInstructionAsync, getTriggerOneBtcDrawInstructionDataCodec, getTriggerOneBtcDrawInstructionDataDecoder, getTriggerOneBtcDrawInstructionDataEncoder, getWinnerCodec, getWinnerDecoder, getWinnerEncoder, getWithdrawProtocolFeesDiscriminatorBytes, getWithdrawProtocolFeesInstruction, getWithdrawProtocolFeesInstructionAsync, getWithdrawProtocolFeesInstructionDataCodec, getWithdrawProtocolFeesInstructionDataDecoder, getWithdrawProtocolFeesInstructionDataEncoder, identifySatrushAccount, identifySatrushInstruction, isSatrushError, parseBuyEpochTicketsInstruction, parseBuyOneBtcTicketsInstruction, parseClaimEpochRewardInstruction, parseClaimInstruction, parseClaimOneBtcRewardInstruction, parseClaimSatsInstruction, parseCloseEpochEntryInstruction, parseCloseEpochIterationInstruction, parseCloseEpochPageInstruction, parseCloseOneBtcIterationInstruction, parseCloseOneBtcTicketInstruction, parseCreateBoardInstruction, parseCreateEpochVaultInstruction, parseCreateOneBtcVaultInstruction, parseCreateSatrushConfigInstruction, parseCreateSatsVaultInstruction, parseCreateTreasuryInstruction, parseDeployPublicInstruction, parseRotateRoundInstruction, parseSatrushInstruction, parseSealEpochPageInstruction, parseSelectEpochWinnerInstruction, parseSwapEpochStakeInstruction, parseSwapOneBtcStakeInstruction, parseSwapRoundStakeInstruction, parseSwapStrikeStakeInstruction, parseTriggerEpochDrawInstruction, parseTriggerOneBtcDrawInstruction, parseWithdrawProtocolFeesInstruction, satrushProgram, selectionMaskFromTiles, tilesFromSelectionMask };
|
|
4412
|
+
export { BOARD_DISCRIMINATOR, BUY_EPOCH_TICKETS_DISCRIMINATOR, BUY_ONE_BTC_TICKETS_DISCRIMINATOR, type Board, type BoardArgs, type BtcSharesValue, type BuyEpochTicketsAsyncInput, type BuyEpochTicketsInput, type BuyEpochTicketsInstruction, type BuyEpochTicketsInstructionData, type BuyEpochTicketsInstructionDataArgs, type BuyOneBtcTicketsAsyncInput, type BuyOneBtcTicketsInput, type BuyOneBtcTicketsInstruction, type BuyOneBtcTicketsInstructionData, type BuyOneBtcTicketsInstructionDataArgs, CLAIM_EPOCH_REWARD_DISCRIMINATOR, CLAIM_ONE_BTC_REWARD_DISCRIMINATOR, CLAIM_SATS_DISCRIMINATOR, CLAIM_USD_DISCRIMINATOR, CLOSE_EPOCH_ENTRY_DISCRIMINATOR, CLOSE_EPOCH_ITERATION_DISCRIMINATOR, CLOSE_EPOCH_PAGE_DISCRIMINATOR, CLOSE_ONE_BTC_ITERATION_DISCRIMINATOR, CLOSE_ONE_BTC_TICKET_DISCRIMINATOR, CREATE_BOARD_DISCRIMINATOR, CREATE_EPOCH_VAULT_DISCRIMINATOR, CREATE_ONE_BTC_VAULT_DISCRIMINATOR, CREATE_SATRUSH_CONFIG_DISCRIMINATOR, CREATE_SATS_VAULT_DISCRIMINATOR, CREATE_TREASURY_DISCRIMINATOR, type ClaimEpochRewardAsyncInput, type ClaimEpochRewardInput, type ClaimEpochRewardInstruction, type ClaimEpochRewardInstructionData, type ClaimEpochRewardInstructionDataArgs, type ClaimOneBtcRewardAsyncInput, type ClaimOneBtcRewardInput, type ClaimOneBtcRewardInstruction, type ClaimOneBtcRewardInstructionData, type ClaimOneBtcRewardInstructionDataArgs, type ClaimSatsAsyncInput, type ClaimSatsInput, type ClaimSatsInstruction, type ClaimSatsInstructionData, type ClaimSatsInstructionDataArgs, type ClaimUsdAsyncInput, type ClaimUsdInput, type ClaimUsdInstruction, type ClaimUsdInstructionData, type ClaimUsdInstructionDataArgs, type CloseEpochEntryAsyncInput, type CloseEpochEntryInput, type CloseEpochEntryInstruction, type CloseEpochEntryInstructionData, type CloseEpochEntryInstructionDataArgs, type CloseEpochIterationAsyncInput, type CloseEpochIterationInput, type CloseEpochIterationInstruction, type CloseEpochIterationInstructionData, type CloseEpochIterationInstructionDataArgs, type CloseEpochPageAsyncInput, type CloseEpochPageInput, type CloseEpochPageInstruction, type CloseEpochPageInstructionData, type CloseEpochPageInstructionDataArgs, type CloseOneBtcIterationAsyncInput, type CloseOneBtcIterationInput, type CloseOneBtcIterationInstruction, type CloseOneBtcIterationInstructionData, type CloseOneBtcIterationInstructionDataArgs, type CloseOneBtcTicketInput, type CloseOneBtcTicketInstruction, type CloseOneBtcTicketInstructionData, type CloseOneBtcTicketInstructionDataArgs, type CreateBoardAsyncInput, type CreateBoardInput, type CreateBoardInstruction, type CreateBoardInstructionData, type CreateBoardInstructionDataArgs, type CreateEpochVaultAsyncInput, type CreateEpochVaultInput, type CreateEpochVaultInstruction, type CreateEpochVaultInstructionData, type CreateEpochVaultInstructionDataArgs, type CreateOneBtcVaultAsyncInput, type CreateOneBtcVaultInput, type CreateOneBtcVaultInstruction, type CreateOneBtcVaultInstructionData, type CreateOneBtcVaultInstructionDataArgs, type CreateSatrushConfigAsyncInput, type CreateSatrushConfigInput, type CreateSatrushConfigInstruction, type CreateSatrushConfigInstructionData, type CreateSatrushConfigInstructionDataArgs, type CreateSatsVaultAsyncInput, type CreateSatsVaultInput, type CreateSatsVaultInstruction, type CreateSatsVaultInstructionData, type CreateSatsVaultInstructionDataArgs, type CreateTreasuryAsyncInput, type CreateTreasuryInput, type CreateTreasuryInstruction, type CreateTreasuryInstructionData, type CreateTreasuryInstructionDataArgs, DEPLOY_PUBLIC_DISCRIMINATOR, type DeployPublicAsyncInput, type DeployPublicInput, type DeployPublicInstruction, type DeployPublicInstructionData, type DeployPublicInstructionDataArgs, EPOCH_VAULT_DISCRIMINATOR, EPOCH_VAULT_ENTRY_DISCRIMINATOR, EPOCH_VAULT_ITERATION_DISCRIMINATOR, EPOCH_VAULT_PAGE_DISCRIMINATOR, type EpochDrawTriggered, type EpochDrawTriggeredArgs, EpochState, type EpochStateArgs, type EpochTicketsBought, type EpochTicketsBoughtArgs, type EpochVault, type EpochVaultArgs, type EpochVaultEntry, type EpochVaultEntryArgs, type EpochVaultIteration, type EpochVaultIterationArgs, type EpochVaultPage, type EpochVaultPageArgs, type EpochWinnerSelected, type EpochWinnerSelectedArgs, MINER_DISCRIMINATOR, type Miner, type MinerArgs, type MinerSeeds, type NextRoundSeeds, ONE_BTC_VAULT_DISCRIMINATOR, ONE_BTC_VAULT_ENTRY_DISCRIMINATOR, ONE_BTC_VAULT_ITERATION_DISCRIMINATOR, type OneBtcDrawTriggered, type OneBtcDrawTriggeredArgs, OneBtcState, type OneBtcStateArgs, type OneBtcTicketsBought, type OneBtcTicketsBoughtArgs, type OneBtcVault, type OneBtcVaultArgs, type OneBtcVaultEntry, type OneBtcVaultEntryArgs, type OneBtcVaultIteration, type OneBtcVaultIterationArgs, PUBLIC_DEPLOYMENT_DISCRIMINATOR, type PageEntry, type PageEntryArgs, type ParsedBuyEpochTicketsInstruction, type ParsedBuyOneBtcTicketsInstruction, type ParsedClaimEpochRewardInstruction, type ParsedClaimOneBtcRewardInstruction, type ParsedClaimSatsInstruction, type ParsedClaimUsdInstruction, type ParsedCloseEpochEntryInstruction, type ParsedCloseEpochIterationInstruction, type ParsedCloseEpochPageInstruction, type ParsedCloseOneBtcIterationInstruction, type ParsedCloseOneBtcTicketInstruction, type ParsedCreateBoardInstruction, type ParsedCreateEpochVaultInstruction, type ParsedCreateOneBtcVaultInstruction, type ParsedCreateSatrushConfigInstruction, type ParsedCreateSatsVaultInstruction, type ParsedCreateTreasuryInstruction, type ParsedDeployPublicInstruction, type ParsedRotateRoundInstruction, type ParsedSatrushInstruction, type ParsedSealEpochPageInstruction, type ParsedSelectEpochWinnerInstruction, type ParsedSettleDeployPublicInstruction, type ParsedSwapEpochStakeInstruction, type ParsedSwapOneBtcStakeInstruction, type ParsedSwapRoundStakeInstruction, type ParsedSwapStrikeStakeInstruction, type ParsedTriggerEpochDrawInstruction, type ParsedTriggerOneBtcDrawInstruction, type ParsedUpdateBoardRoundDurationInstruction, type ParsedWithdrawProtocolFeesInstruction, type PublicDeploySettled, type PublicDeploySettledArgs, type PublicDeployment, type PublicDeploymentArgs, ROTATE_ROUND_DISCRIMINATOR, ROUND_DISCRIMINATOR, type RotateRoundAsyncInput, type RotateRoundInput, type RotateRoundInstruction, type RotateRoundInstructionData, type RotateRoundInstructionDataArgs, type Round, type RoundArgs, type RoundRevealed, type RoundRevealedArgs, type RoundStakeSwapped, type RoundStakeSwappedArgs, RoundState, type RoundStateArgs, SATRUSH_CONFIG_DISCRIMINATOR, SATRUSH_ERROR__ALREADY_REVEALED, SATRUSH_ERROR__ALREADY_SETTLED, SATRUSH_ERROR__ALREADY_SWAPPED, SATRUSH_ERROR__BOARD_ALREADY_BOOTSTRAPPED, SATRUSH_ERROR__DEPLOYMENT_NOT_SETTLED, SATRUSH_ERROR__EPOCH_ALREADY_CLAIMED, SATRUSH_ERROR__EPOCH_BELOW_MIN_HASHRATE, SATRUSH_ERROR__EPOCH_BELOW_THRESHOLD, SATRUSH_ERROR__EPOCH_INVALID_PAGE, SATRUSH_ERROR__EPOCH_MAX_PARTICIPANTS, SATRUSH_ERROR__EPOCH_NOT_A_WINNER, SATRUSH_ERROR__EPOCH_NOT_OPEN, SATRUSH_ERROR__EPOCH_NOT_SETTLED, SATRUSH_ERROR__EPOCH_NOT_SETTLING, SATRUSH_ERROR__EPOCH_PAGE_ALREADY_SEALED, SATRUSH_ERROR__EPOCH_PAGE_NOT_SEALED, SATRUSH_ERROR__EPOCH_SEAL_MISMATCH, SATRUSH_ERROR__EPOCH_WINDOW_NOT_ELAPSED, SATRUSH_ERROR__INSUFFICIENT_HASHRATE, SATRUSH_ERROR__INSUFFICIENT_SHARES, SATRUSH_ERROR__INSUFFICIENT_UNCLAIMED_USD, SATRUSH_ERROR__INVALID_CLAIM_AMOUNT, SATRUSH_ERROR__INVALID_DEPLOYMENT_AMOUNT, SATRUSH_ERROR__INVALID_ENTROPY, SATRUSH_ERROR__INVALID_JUPITER_ROUTE, SATRUSH_ERROR__INVALID_ROUND_DURATION, SATRUSH_ERROR__INVALID_ROUND_ID, SATRUSH_ERROR__INVALID_SELECTION_MASK, SATRUSH_ERROR__INVALID_SHARE_AMOUNT, SATRUSH_ERROR__INVALID_SLOT_HASH, SATRUSH_ERROR__INVALID_SWAP_PROGRAM, SATRUSH_ERROR__MATH_OVERFLOW, SATRUSH_ERROR__MATH_UNDERFLOW, SATRUSH_ERROR__ONE_BTC_BELOW_MIN_HASHRATE, SATRUSH_ERROR__ONE_BTC_BELOW_THRESHOLD, SATRUSH_ERROR__ONE_BTC_NOT_A_WINNER, SATRUSH_ERROR__ONE_BTC_NOT_OPEN, SATRUSH_ERROR__ONE_BTC_NOT_SETTLED, SATRUSH_ERROR__ONE_BTC_NOT_TRIGGERABLE, SATRUSH_ERROR__ONE_BTC_NO_PARTICIPANTS, SATRUSH_ERROR__ONE_BTC_WINNING_TICKET_LOCKED, SATRUSH_ERROR__ROUND_IN_PROGRESS, SATRUSH_ERROR__ROUND_NOT_ACTIVE, SATRUSH_ERROR__ROUND_NOT_REVEALED, SATRUSH_ERROR__ROUND_NOT_SETTLED, SATRUSH_ERROR__ROUND_WINDOW_CLOSED, SATRUSH_ERROR__SLIPPAGE_EXCEEDED, SATRUSH_ERROR__STRIKE_ALREADY_TRIGGERED, SATRUSH_ERROR__STRIKE_BELOW_THRESHOLD, SATRUSH_ERROR__SWAP_OVERSPENT, SATRUSH_ERROR__TREASURY_EMPTY, SATRUSH_ERROR__UNAUTHORIZED, SATRUSH_PROGRAM_ADDRESS, SATS_VAULT_DISCRIMINATOR, SEAL_EPOCH_PAGE_DISCRIMINATOR, SELECT_EPOCH_WINNER_DISCRIMINATOR, SETTLE_DEPLOY_PUBLIC_DISCRIMINATOR, SWAP_EPOCH_STAKE_DISCRIMINATOR, SWAP_ONE_BTC_STAKE_DISCRIMINATOR, SWAP_ROUND_STAKE_DISCRIMINATOR, SWAP_STRIKE_STAKE_DISCRIMINATOR, SatrushAccount, type SatrushConfig, type SatrushConfigArgs, type SatrushError, SatrushInstruction, type SatrushPlugin, type SatrushPluginAccounts, type SatrushPluginInstructions, type SatrushPluginPdas, type SatrushPluginRequirements, type SatsVault, type SatsVaultArgs, type SealEpochPageAsyncInput, type SealEpochPageInput, type SealEpochPageInstruction, type SealEpochPageInstructionData, type SealEpochPageInstructionDataArgs, type SelectEpochWinnerAsyncInput, type SelectEpochWinnerInput, type SelectEpochWinnerInstruction, type SelectEpochWinnerInstructionData, type SelectEpochWinnerInstructionDataArgs, type SettleDeployPublicAsyncInput, type SettleDeployPublicInput, type SettleDeployPublicInstruction, type SettleDeployPublicInstructionData, type SettleDeployPublicInstructionDataArgs, type SwapEpochStakeAsyncInput, type SwapEpochStakeInput, type SwapEpochStakeInstruction, type SwapEpochStakeInstructionData, type SwapEpochStakeInstructionDataArgs, type SwapOneBtcStakeAsyncInput, type SwapOneBtcStakeInput, type SwapOneBtcStakeInstruction, type SwapOneBtcStakeInstructionData, type SwapOneBtcStakeInstructionDataArgs, type SwapRoundStakeAsyncInput, type SwapRoundStakeInput, type SwapRoundStakeInstruction, type SwapRoundStakeInstructionData, type SwapRoundStakeInstructionDataArgs, type SwapStrikeStakeAsyncInput, type SwapStrikeStakeInput, type SwapStrikeStakeInstruction, type SwapStrikeStakeInstructionData, type SwapStrikeStakeInstructionDataArgs, TILE_COUNT, TREASURY_DISCRIMINATOR, TRIGGER_EPOCH_DRAW_DISCRIMINATOR, TRIGGER_ONE_BTC_DRAW_DISCRIMINATOR, type TileStake, type TileStakeArgs, type Treasury, type TreasuryArgs, type TriggerEpochDrawAsyncInput, type TriggerEpochDrawInput, type TriggerEpochDrawInstruction, type TriggerEpochDrawInstructionData, type TriggerEpochDrawInstructionDataArgs, type TriggerOneBtcDrawAsyncInput, type TriggerOneBtcDrawInput, type TriggerOneBtcDrawInstruction, type TriggerOneBtcDrawInstructionData, type TriggerOneBtcDrawInstructionDataArgs, UPDATE_BOARD_ROUND_DURATION_DISCRIMINATOR, type UpdateBoardRoundDurationAsyncInput, type UpdateBoardRoundDurationInput, type UpdateBoardRoundDurationInstruction, type UpdateBoardRoundDurationInstructionData, type UpdateBoardRoundDurationInstructionDataArgs, WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR, type Winner, type WinnerArgs, type WithdrawProtocolFeesAsyncInput, type WithdrawProtocolFeesInput, type WithdrawProtocolFeesInstruction, type WithdrawProtocolFeesInstructionData, type WithdrawProtocolFeesInstructionDataArgs, btcToSats, buildClaimSatsInstruction, buildClaimUsdInstruction, buildDeployPublicInstruction, buildSettleDeployPublicInstruction, decodeBoard, decodeEpochVault, decodeEpochVaultEntry, decodeEpochVaultIteration, decodeEpochVaultPage, decodeMiner, decodeOneBtcVault, decodeOneBtcVaultEntry, decodeOneBtcVaultIteration, decodePublicDeployment, decodeRound, decodeSatrushConfig, decodeSatsVault, decodeTreasury, fetchAllBoard, fetchAllEpochVault, fetchAllEpochVaultEntry, fetchAllEpochVaultIteration, fetchAllEpochVaultPage, fetchAllMaybeBoard, fetchAllMaybeEpochVault, fetchAllMaybeEpochVaultEntry, fetchAllMaybeEpochVaultIteration, fetchAllMaybeEpochVaultPage, fetchAllMaybeMiner, fetchAllMaybeOneBtcVault, fetchAllMaybeOneBtcVaultEntry, fetchAllMaybeOneBtcVaultIteration, fetchAllMaybePublicDeployment, fetchAllMaybeRound, fetchAllMaybeSatrushConfig, fetchAllMaybeSatsVault, fetchAllMaybeTreasury, fetchAllMiner, fetchAllOneBtcVault, fetchAllOneBtcVaultEntry, fetchAllOneBtcVaultIteration, fetchAllPublicDeployment, fetchAllRound, fetchAllSatrushConfig, fetchAllSatsVault, fetchAllTreasury, fetchBoard, fetchEpochVault, fetchEpochVaultEntry, fetchEpochVaultIteration, fetchEpochVaultPage, fetchMaybeBoard, fetchMaybeEpochVault, fetchMaybeEpochVaultEntry, fetchMaybeEpochVaultIteration, fetchMaybeEpochVaultPage, fetchMaybeMiner, fetchMaybeOneBtcVault, fetchMaybeOneBtcVaultEntry, fetchMaybeOneBtcVaultIteration, fetchMaybePublicDeployment, fetchMaybeRound, fetchMaybeSatrushConfig, fetchMaybeSatsVault, fetchMaybeTreasury, fetchMiner, fetchOneBtcVault, fetchOneBtcVaultEntry, fetchOneBtcVaultIteration, fetchPublicDeployment, fetchRound, fetchSatrushConfig, fetchSatsVault, fetchTreasury, findBoardPda, findEpochVaultIterationPda, findEpochVaultPda, findInitialRoundPda, findMinerPda, findNextRoundPda, findOneBtcVaultIterationPda, findOneBtcVaultPda, findSatrushConfigPda, findSatsVaultPda, findTreasuryPda, getBoardAddress, getBoardCodec, getBoardDecoder, getBoardDiscriminatorBytes, getBoardEncoder, getBoardSize, getBuyEpochTicketsDiscriminatorBytes, getBuyEpochTicketsInstruction, getBuyEpochTicketsInstructionAsync, getBuyEpochTicketsInstructionDataCodec, getBuyEpochTicketsInstructionDataDecoder, getBuyEpochTicketsInstructionDataEncoder, getBuyOneBtcTicketsDiscriminatorBytes, getBuyOneBtcTicketsInstruction, getBuyOneBtcTicketsInstructionAsync, getBuyOneBtcTicketsInstructionDataCodec, getBuyOneBtcTicketsInstructionDataDecoder, getBuyOneBtcTicketsInstructionDataEncoder, getClaimEpochRewardDiscriminatorBytes, getClaimEpochRewardInstruction, getClaimEpochRewardInstructionAsync, getClaimEpochRewardInstructionDataCodec, getClaimEpochRewardInstructionDataDecoder, getClaimEpochRewardInstructionDataEncoder, getClaimOneBtcRewardDiscriminatorBytes, getClaimOneBtcRewardInstruction, getClaimOneBtcRewardInstructionAsync, getClaimOneBtcRewardInstructionDataCodec, getClaimOneBtcRewardInstructionDataDecoder, getClaimOneBtcRewardInstructionDataEncoder, getClaimSatsDiscriminatorBytes, getClaimSatsInstruction, getClaimSatsInstructionAsync, getClaimSatsInstructionDataCodec, getClaimSatsInstructionDataDecoder, getClaimSatsInstructionDataEncoder, getClaimUsdDiscriminatorBytes, getClaimUsdInstruction, getClaimUsdInstructionAsync, getClaimUsdInstructionDataCodec, getClaimUsdInstructionDataDecoder, getClaimUsdInstructionDataEncoder, getCloseEpochEntryDiscriminatorBytes, getCloseEpochEntryInstruction, getCloseEpochEntryInstructionAsync, getCloseEpochEntryInstructionDataCodec, getCloseEpochEntryInstructionDataDecoder, getCloseEpochEntryInstructionDataEncoder, getCloseEpochIterationDiscriminatorBytes, getCloseEpochIterationInstruction, getCloseEpochIterationInstructionAsync, getCloseEpochIterationInstructionDataCodec, getCloseEpochIterationInstructionDataDecoder, getCloseEpochIterationInstructionDataEncoder, getCloseEpochPageDiscriminatorBytes, getCloseEpochPageInstruction, getCloseEpochPageInstructionAsync, getCloseEpochPageInstructionDataCodec, getCloseEpochPageInstructionDataDecoder, getCloseEpochPageInstructionDataEncoder, getCloseOneBtcIterationDiscriminatorBytes, getCloseOneBtcIterationInstruction, getCloseOneBtcIterationInstructionAsync, getCloseOneBtcIterationInstructionDataCodec, getCloseOneBtcIterationInstructionDataDecoder, getCloseOneBtcIterationInstructionDataEncoder, getCloseOneBtcTicketDiscriminatorBytes, getCloseOneBtcTicketInstruction, getCloseOneBtcTicketInstructionDataCodec, getCloseOneBtcTicketInstructionDataDecoder, getCloseOneBtcTicketInstructionDataEncoder, getCreateBoardDiscriminatorBytes, getCreateBoardInstruction, getCreateBoardInstructionAsync, getCreateBoardInstructionDataCodec, getCreateBoardInstructionDataDecoder, getCreateBoardInstructionDataEncoder, getCreateEpochVaultDiscriminatorBytes, getCreateEpochVaultInstruction, getCreateEpochVaultInstructionAsync, getCreateEpochVaultInstructionDataCodec, getCreateEpochVaultInstructionDataDecoder, getCreateEpochVaultInstructionDataEncoder, getCreateOneBtcVaultDiscriminatorBytes, getCreateOneBtcVaultInstruction, getCreateOneBtcVaultInstructionAsync, getCreateOneBtcVaultInstructionDataCodec, getCreateOneBtcVaultInstructionDataDecoder, getCreateOneBtcVaultInstructionDataEncoder, getCreateSatrushConfigDiscriminatorBytes, getCreateSatrushConfigInstruction, getCreateSatrushConfigInstructionAsync, getCreateSatrushConfigInstructionDataCodec, getCreateSatrushConfigInstructionDataDecoder, getCreateSatrushConfigInstructionDataEncoder, getCreateSatsVaultDiscriminatorBytes, getCreateSatsVaultInstruction, getCreateSatsVaultInstructionAsync, getCreateSatsVaultInstructionDataCodec, getCreateSatsVaultInstructionDataDecoder, getCreateSatsVaultInstructionDataEncoder, getCreateTreasuryDiscriminatorBytes, getCreateTreasuryInstruction, getCreateTreasuryInstructionAsync, getCreateTreasuryInstructionDataCodec, getCreateTreasuryInstructionDataDecoder, getCreateTreasuryInstructionDataEncoder, getDeployPublicDiscriminatorBytes, getDeployPublicInstruction, getDeployPublicInstructionAsync, getDeployPublicInstructionDataCodec, getDeployPublicInstructionDataDecoder, getDeployPublicInstructionDataEncoder, getEpochDrawTriggeredCodec, getEpochDrawTriggeredDecoder, getEpochDrawTriggeredEncoder, getEpochStateCodec, getEpochStateDecoder, getEpochStateEncoder, getEpochTicketsBoughtCodec, getEpochTicketsBoughtDecoder, getEpochTicketsBoughtEncoder, getEpochVaultAddress, getEpochVaultCodec, getEpochVaultDecoder, getEpochVaultDiscriminatorBytes, getEpochVaultEncoder, getEpochVaultEntryAddress, getEpochVaultEntryCodec, getEpochVaultEntryDecoder, getEpochVaultEntryDiscriminatorBytes, getEpochVaultEntryEncoder, getEpochVaultEntrySize, getEpochVaultIterationAddress, getEpochVaultIterationCodec, getEpochVaultIterationDecoder, getEpochVaultIterationDiscriminatorBytes, getEpochVaultIterationEncoder, getEpochVaultIterationSize, getEpochVaultPageAddress, getEpochVaultPageCodec, getEpochVaultPageDecoder, getEpochVaultPageDiscriminatorBytes, getEpochVaultPageEncoder, getEpochVaultPageSize, getEpochVaultSize, getEpochWinnerSelectedCodec, getEpochWinnerSelectedDecoder, getEpochWinnerSelectedEncoder, getEventAuthorityAddress, getMinerAddress, getMinerCodec, getMinerDecoder, getMinerDiscriminatorBytes, getMinerEncoder, getMinerSize, getOneBtcDrawTriggeredCodec, getOneBtcDrawTriggeredDecoder, getOneBtcDrawTriggeredEncoder, getOneBtcStateCodec, getOneBtcStateDecoder, getOneBtcStateEncoder, getOneBtcTicketsBoughtCodec, getOneBtcTicketsBoughtDecoder, getOneBtcTicketsBoughtEncoder, getOneBtcVaultAddress, getOneBtcVaultCodec, getOneBtcVaultDecoder, getOneBtcVaultDiscriminatorBytes, getOneBtcVaultEncoder, getOneBtcVaultEntryCodec, getOneBtcVaultEntryDecoder, getOneBtcVaultEntryDiscriminatorBytes, getOneBtcVaultEntryEncoder, getOneBtcVaultEntrySize, getOneBtcVaultIterationAddress, getOneBtcVaultIterationCodec, getOneBtcVaultIterationDecoder, getOneBtcVaultIterationDiscriminatorBytes, getOneBtcVaultIterationEncoder, getOneBtcVaultIterationSize, getOneBtcVaultSize, getPageEntryCodec, getPageEntryDecoder, getPageEntryEncoder, getPublicDeploySettledCodec, getPublicDeploySettledDecoder, getPublicDeploySettledEncoder, getPublicDeploymentAddress, getPublicDeploymentCodec, getPublicDeploymentDecoder, getPublicDeploymentDiscriminatorBytes, getPublicDeploymentEncoder, getRotateRoundDiscriminatorBytes, getRotateRoundInstruction, getRotateRoundInstructionAsync, getRotateRoundInstructionDataCodec, getRotateRoundInstructionDataDecoder, getRotateRoundInstructionDataEncoder, getRoundAddress, getRoundCodec, getRoundDecoder, getRoundDiscriminatorBytes, getRoundEncoder, getRoundRevealedCodec, getRoundRevealedDecoder, getRoundRevealedEncoder, getRoundStakeSwappedCodec, getRoundStakeSwappedDecoder, getRoundStakeSwappedEncoder, getRoundStateCodec, getRoundStateDecoder, getRoundStateEncoder, getSatrushConfigAddress, getSatrushConfigCodec, getSatrushConfigDecoder, getSatrushConfigDiscriminatorBytes, getSatrushConfigEncoder, getSatrushConfigSize, getSatrushErrorMessage, getSatsVaultAddress, getSatsVaultCodec, getSatsVaultDecoder, getSatsVaultDiscriminatorBytes, getSatsVaultEncoder, getSatsVaultSize, getSealEpochPageDiscriminatorBytes, getSealEpochPageInstruction, getSealEpochPageInstructionAsync, getSealEpochPageInstructionDataCodec, getSealEpochPageInstructionDataDecoder, getSealEpochPageInstructionDataEncoder, getSelectEpochWinnerDiscriminatorBytes, getSelectEpochWinnerInstruction, getSelectEpochWinnerInstructionAsync, getSelectEpochWinnerInstructionDataCodec, getSelectEpochWinnerInstructionDataDecoder, getSelectEpochWinnerInstructionDataEncoder, getSettleDeployPublicDiscriminatorBytes, getSettleDeployPublicInstruction, getSettleDeployPublicInstructionAsync, getSettleDeployPublicInstructionDataCodec, getSettleDeployPublicInstructionDataDecoder, getSettleDeployPublicInstructionDataEncoder, getSwapEpochStakeDiscriminatorBytes, getSwapEpochStakeInstruction, getSwapEpochStakeInstructionAsync, getSwapEpochStakeInstructionDataCodec, getSwapEpochStakeInstructionDataDecoder, getSwapEpochStakeInstructionDataEncoder, getSwapOneBtcStakeDiscriminatorBytes, getSwapOneBtcStakeInstruction, getSwapOneBtcStakeInstructionAsync, getSwapOneBtcStakeInstructionDataCodec, getSwapOneBtcStakeInstructionDataDecoder, getSwapOneBtcStakeInstructionDataEncoder, getSwapRoundStakeDiscriminatorBytes, getSwapRoundStakeInstruction, getSwapRoundStakeInstructionAsync, getSwapRoundStakeInstructionDataCodec, getSwapRoundStakeInstructionDataDecoder, getSwapRoundStakeInstructionDataEncoder, getSwapStrikeStakeDiscriminatorBytes, getSwapStrikeStakeInstruction, getSwapStrikeStakeInstructionAsync, getSwapStrikeStakeInstructionDataCodec, getSwapStrikeStakeInstructionDataDecoder, getSwapStrikeStakeInstructionDataEncoder, getTileStakeCodec, getTileStakeDecoder, getTileStakeEncoder, getTreasuryAddress, getTreasuryCodec, getTreasuryDecoder, getTreasuryDiscriminatorBytes, getTreasuryEncoder, getTreasurySize, getTriggerEpochDrawDiscriminatorBytes, getTriggerEpochDrawInstruction, getTriggerEpochDrawInstructionAsync, getTriggerEpochDrawInstructionDataCodec, getTriggerEpochDrawInstructionDataDecoder, getTriggerEpochDrawInstructionDataEncoder, getTriggerOneBtcDrawDiscriminatorBytes, getTriggerOneBtcDrawInstruction, getTriggerOneBtcDrawInstructionAsync, getTriggerOneBtcDrawInstructionDataCodec, getTriggerOneBtcDrawInstructionDataDecoder, getTriggerOneBtcDrawInstructionDataEncoder, getUpdateBoardRoundDurationDiscriminatorBytes, getUpdateBoardRoundDurationInstruction, getUpdateBoardRoundDurationInstructionAsync, getUpdateBoardRoundDurationInstructionDataCodec, getUpdateBoardRoundDurationInstructionDataDecoder, getUpdateBoardRoundDurationInstructionDataEncoder, getWinnerCodec, getWinnerDecoder, getWinnerEncoder, getWithdrawProtocolFeesDiscriminatorBytes, getWithdrawProtocolFeesInstruction, getWithdrawProtocolFeesInstructionAsync, getWithdrawProtocolFeesInstructionDataCodec, getWithdrawProtocolFeesInstructionDataDecoder, getWithdrawProtocolFeesInstructionDataEncoder, identifySatrushAccount, identifySatrushInstruction, isSatrushError, parseBuyEpochTicketsInstruction, parseBuyOneBtcTicketsInstruction, parseClaimEpochRewardInstruction, parseClaimOneBtcRewardInstruction, parseClaimSatsInstruction, parseClaimUsdInstruction, parseCloseEpochEntryInstruction, parseCloseEpochIterationInstruction, parseCloseEpochPageInstruction, parseCloseOneBtcIterationInstruction, parseCloseOneBtcTicketInstruction, parseCreateBoardInstruction, parseCreateEpochVaultInstruction, parseCreateOneBtcVaultInstruction, parseCreateSatrushConfigInstruction, parseCreateSatsVaultInstruction, parseCreateTreasuryInstruction, parseDeployPublicInstruction, parseRotateRoundInstruction, parseSatrushInstruction, parseSealEpochPageInstruction, parseSelectEpochWinnerInstruction, parseSettleDeployPublicInstruction, parseSwapEpochStakeInstruction, parseSwapOneBtcStakeInstruction, parseSwapRoundStakeInstruction, parseSwapStrikeStakeInstruction, parseTriggerEpochDrawInstruction, parseTriggerOneBtcDrawInstruction, parseUpdateBoardRoundDurationInstruction, parseWithdrawProtocolFeesInstruction, satrushProgram, satsToBtc, selectionMaskFromTiles, tilesFromSelectionMask };
|