@satrush/client 0.0.0
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/LICENSE +1 -0
- package/README.md +1 -0
- package/dist/index.d.mts +3878 -0
- package/dist/index.d.ts +3878 -0
- package/dist/index.js +9267 -0
- package/dist/index.mjs +9641 -0
- package/package.json +52 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,3878 @@
|
|
|
1
|
+
import { ReadonlyUint8Array, FixedSizeCodec, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccounts, Address, FetchAccountsConfig, fetchEncodedAccount, FetchAccountConfig, FixedSizeDecoder, FixedSizeEncoder, Option, OptionOrNullable, Codec, Decoder, Encoder, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, ProgramDerivedAddress, Instruction, InstructionWithData, ClientWithRpc, GetAccountInfoApi, GetMultipleAccountsApi, ClientWithTransactionPlanning, ClientWithTransactionSending, ExtendedClient, TransactionSigner, AccountMeta, InstructionWithAccounts, WritableSignerAccount, AccountSignerMeta, WritableAccount, ReadonlyAccount, ReadonlySignerAccount } from '@solana/kit';
|
|
2
|
+
import { SelfFetchFunctions, SelfPlanAndSendFunctions } from '@solana/program-client-core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
6
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
7
|
+
* to add features, then rerun Codama to update it.
|
|
8
|
+
*
|
|
9
|
+
* @see https://github.com/codama-idl/codama
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
declare const BOARD_DISCRIMINATOR: ReadonlyUint8Array;
|
|
13
|
+
declare function getBoardDiscriminatorBytes(): ReadonlyUint8Array;
|
|
14
|
+
type Board = {
|
|
15
|
+
discriminator: ReadonlyUint8Array;
|
|
16
|
+
/** Struct version. */
|
|
17
|
+
version: number;
|
|
18
|
+
/** PDA bump seed. */
|
|
19
|
+
bump: number;
|
|
20
|
+
/** Current active round id. */
|
|
21
|
+
roundId: number;
|
|
22
|
+
/** Round duration in slots. */
|
|
23
|
+
roundDuration: number;
|
|
24
|
+
/** The slot at which the current round starts mining. */
|
|
25
|
+
startSlot: bigint;
|
|
26
|
+
/** The slot at which the current round ends mining. */
|
|
27
|
+
endSlot: bigint;
|
|
28
|
+
/**
|
|
29
|
+
* Strike jackpot USD amount waiting to be swapped.
|
|
30
|
+
* Swaps are executed in the background when pending
|
|
31
|
+
* amount reaches the certain threshold.
|
|
32
|
+
*/
|
|
33
|
+
strikePendingUsdAmount: bigint;
|
|
34
|
+
/** Strike jackpot USD amount after the swap */
|
|
35
|
+
strikeUsdAmount: bigint;
|
|
36
|
+
/** Strike jackpot BTC amount after the swap */
|
|
37
|
+
strikeBtcAmount: bigint;
|
|
38
|
+
/** Last round_id when Strike jackpot was triggered */
|
|
39
|
+
strikeLastTriggerRoundId: number;
|
|
40
|
+
/** Reserved */
|
|
41
|
+
reserved: ReadonlyUint8Array;
|
|
42
|
+
};
|
|
43
|
+
type BoardArgs = {
|
|
44
|
+
/** Struct version. */
|
|
45
|
+
version: number;
|
|
46
|
+
/** PDA bump seed. */
|
|
47
|
+
bump: number;
|
|
48
|
+
/** Current active round id. */
|
|
49
|
+
roundId: number;
|
|
50
|
+
/** Round duration in slots. */
|
|
51
|
+
roundDuration: number;
|
|
52
|
+
/** The slot at which the current round starts mining. */
|
|
53
|
+
startSlot: number | bigint;
|
|
54
|
+
/** The slot at which the current round ends mining. */
|
|
55
|
+
endSlot: number | bigint;
|
|
56
|
+
/**
|
|
57
|
+
* Strike jackpot USD amount waiting to be swapped.
|
|
58
|
+
* Swaps are executed in the background when pending
|
|
59
|
+
* amount reaches the certain threshold.
|
|
60
|
+
*/
|
|
61
|
+
strikePendingUsdAmount: number | bigint;
|
|
62
|
+
/** Strike jackpot USD amount after the swap */
|
|
63
|
+
strikeUsdAmount: number | bigint;
|
|
64
|
+
/** Strike jackpot BTC amount after the swap */
|
|
65
|
+
strikeBtcAmount: number | bigint;
|
|
66
|
+
/** Last round_id when Strike jackpot was triggered */
|
|
67
|
+
strikeLastTriggerRoundId: number;
|
|
68
|
+
/** Reserved */
|
|
69
|
+
reserved: ReadonlyUint8Array;
|
|
70
|
+
};
|
|
71
|
+
/** Gets the encoder for {@link BoardArgs} account data. */
|
|
72
|
+
declare function getBoardEncoder(): FixedSizeEncoder<BoardArgs>;
|
|
73
|
+
/** Gets the decoder for {@link Board} account data. */
|
|
74
|
+
declare function getBoardDecoder(): FixedSizeDecoder<Board>;
|
|
75
|
+
/** Gets the codec for {@link Board} account data. */
|
|
76
|
+
declare function getBoardCodec(): FixedSizeCodec<BoardArgs, Board>;
|
|
77
|
+
declare function decodeBoard<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Board, TAddress>;
|
|
78
|
+
declare function decodeBoard<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Board, TAddress>;
|
|
79
|
+
declare function fetchBoard<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Board, TAddress>>;
|
|
80
|
+
declare function fetchMaybeBoard<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Board, TAddress>>;
|
|
81
|
+
declare function fetchAllBoard(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Board>[]>;
|
|
82
|
+
declare function fetchAllMaybeBoard(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Board>[]>;
|
|
83
|
+
declare function getBoardSize(): number;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
87
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
88
|
+
* to add features, then rerun Codama to update it.
|
|
89
|
+
*
|
|
90
|
+
* @see https://github.com/codama-idl/codama
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
declare const EPOCH_VAULT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
94
|
+
declare function getEpochVaultDiscriminatorBytes(): ReadonlyUint8Array;
|
|
95
|
+
type EpochVault = {
|
|
96
|
+
discriminator: ReadonlyUint8Array;
|
|
97
|
+
/** Struct version. */
|
|
98
|
+
version: number;
|
|
99
|
+
/** PDA bump seed. */
|
|
100
|
+
bump: number;
|
|
101
|
+
/** Current accumulating iteration id. */
|
|
102
|
+
iterationId: number;
|
|
103
|
+
/** Slot at which the current iteration's window started. */
|
|
104
|
+
lastTriggerSlot: bigint;
|
|
105
|
+
/** USD received from fees, not yet swapped. */
|
|
106
|
+
pendingUsdAmount: bigint;
|
|
107
|
+
/** Post-swap USD available to be drawn into a pot. */
|
|
108
|
+
poolUsdAmount: bigint;
|
|
109
|
+
/** Post-swap BTC available to be drawn into a pot. */
|
|
110
|
+
poolBtcAmount: bigint;
|
|
111
|
+
/** USD committed to open draws (awaiting winner claims). */
|
|
112
|
+
reservedUsdAmount: bigint;
|
|
113
|
+
/** BTC committed to open draws (awaiting winner claims). */
|
|
114
|
+
reservedBtcAmount: bigint;
|
|
115
|
+
/** Reserved. */
|
|
116
|
+
reserved: ReadonlyUint8Array;
|
|
117
|
+
};
|
|
118
|
+
type EpochVaultArgs = {
|
|
119
|
+
/** Struct version. */
|
|
120
|
+
version: number;
|
|
121
|
+
/** PDA bump seed. */
|
|
122
|
+
bump: number;
|
|
123
|
+
/** Current accumulating iteration id. */
|
|
124
|
+
iterationId: number;
|
|
125
|
+
/** Slot at which the current iteration's window started. */
|
|
126
|
+
lastTriggerSlot: number | bigint;
|
|
127
|
+
/** USD received from fees, not yet swapped. */
|
|
128
|
+
pendingUsdAmount: number | bigint;
|
|
129
|
+
/** Post-swap USD available to be drawn into a pot. */
|
|
130
|
+
poolUsdAmount: number | bigint;
|
|
131
|
+
/** Post-swap BTC available to be drawn into a pot. */
|
|
132
|
+
poolBtcAmount: number | bigint;
|
|
133
|
+
/** USD committed to open draws (awaiting winner claims). */
|
|
134
|
+
reservedUsdAmount: number | bigint;
|
|
135
|
+
/** BTC committed to open draws (awaiting winner claims). */
|
|
136
|
+
reservedBtcAmount: number | bigint;
|
|
137
|
+
/** Reserved. */
|
|
138
|
+
reserved: ReadonlyUint8Array;
|
|
139
|
+
};
|
|
140
|
+
/** Gets the encoder for {@link EpochVaultArgs} account data. */
|
|
141
|
+
declare function getEpochVaultEncoder(): FixedSizeEncoder<EpochVaultArgs>;
|
|
142
|
+
/** Gets the decoder for {@link EpochVault} account data. */
|
|
143
|
+
declare function getEpochVaultDecoder(): FixedSizeDecoder<EpochVault>;
|
|
144
|
+
/** Gets the codec for {@link EpochVault} account data. */
|
|
145
|
+
declare function getEpochVaultCodec(): FixedSizeCodec<EpochVaultArgs, EpochVault>;
|
|
146
|
+
declare function decodeEpochVault<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<EpochVault, TAddress>;
|
|
147
|
+
declare function decodeEpochVault<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<EpochVault, TAddress>;
|
|
148
|
+
declare function fetchEpochVault<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<EpochVault, TAddress>>;
|
|
149
|
+
declare function fetchMaybeEpochVault<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<EpochVault, TAddress>>;
|
|
150
|
+
declare function fetchAllEpochVault(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<EpochVault>[]>;
|
|
151
|
+
declare function fetchAllMaybeEpochVault(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<EpochVault>[]>;
|
|
152
|
+
declare function getEpochVaultSize(): number;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
156
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
157
|
+
* to add features, then rerun Codama to update it.
|
|
158
|
+
*
|
|
159
|
+
* @see https://github.com/codama-idl/codama
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
declare const EPOCH_VAULT_ENTRY_DISCRIMINATOR: ReadonlyUint8Array;
|
|
163
|
+
declare function getEpochVaultEntryDiscriminatorBytes(): ReadonlyUint8Array;
|
|
164
|
+
type EpochVaultEntry = {
|
|
165
|
+
discriminator: ReadonlyUint8Array;
|
|
166
|
+
/** Struct version. */
|
|
167
|
+
version: number;
|
|
168
|
+
/** PDA bump seed. */
|
|
169
|
+
bump: number;
|
|
170
|
+
/** Iteration this entry belongs to. */
|
|
171
|
+
iterationId: number;
|
|
172
|
+
/** Participant. */
|
|
173
|
+
authority: Address;
|
|
174
|
+
/** Page holding this participant. */
|
|
175
|
+
pageIndex: number;
|
|
176
|
+
/** This participant's total tickets this iteration. */
|
|
177
|
+
tickets: bigint;
|
|
178
|
+
/** Reserved. */
|
|
179
|
+
reserved: ReadonlyUint8Array;
|
|
180
|
+
};
|
|
181
|
+
type EpochVaultEntryArgs = {
|
|
182
|
+
/** Struct version. */
|
|
183
|
+
version: number;
|
|
184
|
+
/** PDA bump seed. */
|
|
185
|
+
bump: number;
|
|
186
|
+
/** Iteration this entry belongs to. */
|
|
187
|
+
iterationId: number;
|
|
188
|
+
/** Participant. */
|
|
189
|
+
authority: Address;
|
|
190
|
+
/** Page holding this participant. */
|
|
191
|
+
pageIndex: number;
|
|
192
|
+
/** This participant's total tickets this iteration. */
|
|
193
|
+
tickets: number | bigint;
|
|
194
|
+
/** Reserved. */
|
|
195
|
+
reserved: ReadonlyUint8Array;
|
|
196
|
+
};
|
|
197
|
+
/** Gets the encoder for {@link EpochVaultEntryArgs} account data. */
|
|
198
|
+
declare function getEpochVaultEntryEncoder(): FixedSizeEncoder<EpochVaultEntryArgs>;
|
|
199
|
+
/** Gets the decoder for {@link EpochVaultEntry} account data. */
|
|
200
|
+
declare function getEpochVaultEntryDecoder(): FixedSizeDecoder<EpochVaultEntry>;
|
|
201
|
+
/** Gets the codec for {@link EpochVaultEntry} account data. */
|
|
202
|
+
declare function getEpochVaultEntryCodec(): FixedSizeCodec<EpochVaultEntryArgs, EpochVaultEntry>;
|
|
203
|
+
declare function decodeEpochVaultEntry<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<EpochVaultEntry, TAddress>;
|
|
204
|
+
declare function decodeEpochVaultEntry<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<EpochVaultEntry, TAddress>;
|
|
205
|
+
declare function fetchEpochVaultEntry<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<EpochVaultEntry, TAddress>>;
|
|
206
|
+
declare function fetchMaybeEpochVaultEntry<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<EpochVaultEntry, TAddress>>;
|
|
207
|
+
declare function fetchAllEpochVaultEntry(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<EpochVaultEntry>[]>;
|
|
208
|
+
declare function fetchAllMaybeEpochVaultEntry(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<EpochVaultEntry>[]>;
|
|
209
|
+
declare function getEpochVaultEntrySize(): number;
|
|
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
|
+
declare enum EpochState {
|
|
220
|
+
Open = 0,
|
|
221
|
+
Settling = 1,
|
|
222
|
+
Settled = 2,
|
|
223
|
+
Complete = 3
|
|
224
|
+
}
|
|
225
|
+
type EpochStateArgs = EpochState;
|
|
226
|
+
declare function getEpochStateEncoder(): FixedSizeEncoder<EpochStateArgs>;
|
|
227
|
+
declare function getEpochStateDecoder(): FixedSizeDecoder<EpochState>;
|
|
228
|
+
declare function getEpochStateCodec(): FixedSizeCodec<EpochStateArgs, EpochState>;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
232
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
233
|
+
* to add features, then rerun Codama to update it.
|
|
234
|
+
*
|
|
235
|
+
* @see https://github.com/codama-idl/codama
|
|
236
|
+
*/
|
|
237
|
+
|
|
238
|
+
declare enum OneBtcState {
|
|
239
|
+
Open = 0,
|
|
240
|
+
Settled = 1,
|
|
241
|
+
Complete = 2
|
|
242
|
+
}
|
|
243
|
+
type OneBtcStateArgs = OneBtcState;
|
|
244
|
+
declare function getOneBtcStateEncoder(): FixedSizeEncoder<OneBtcStateArgs>;
|
|
245
|
+
declare function getOneBtcStateDecoder(): FixedSizeDecoder<OneBtcState>;
|
|
246
|
+
declare function getOneBtcStateCodec(): FixedSizeCodec<OneBtcStateArgs, OneBtcState>;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
250
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
251
|
+
* to add features, then rerun Codama to update it.
|
|
252
|
+
*
|
|
253
|
+
* @see https://github.com/codama-idl/codama
|
|
254
|
+
*/
|
|
255
|
+
|
|
256
|
+
type PageEntry = {
|
|
257
|
+
authority: Address;
|
|
258
|
+
tickets: bigint;
|
|
259
|
+
};
|
|
260
|
+
type PageEntryArgs = {
|
|
261
|
+
authority: Address;
|
|
262
|
+
tickets: number | bigint;
|
|
263
|
+
};
|
|
264
|
+
declare function getPageEntryEncoder(): FixedSizeEncoder<PageEntryArgs>;
|
|
265
|
+
declare function getPageEntryDecoder(): FixedSizeDecoder<PageEntry>;
|
|
266
|
+
declare function getPageEntryCodec(): FixedSizeCodec<PageEntryArgs, PageEntry>;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
270
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
271
|
+
* to add features, then rerun Codama to update it.
|
|
272
|
+
*
|
|
273
|
+
* @see https://github.com/codama-idl/codama
|
|
274
|
+
*/
|
|
275
|
+
|
|
276
|
+
declare enum RoundState {
|
|
277
|
+
Active = 0,
|
|
278
|
+
Revealed = 1,
|
|
279
|
+
Settled = 2,
|
|
280
|
+
Finished = 3
|
|
281
|
+
}
|
|
282
|
+
type RoundStateArgs = RoundState;
|
|
283
|
+
declare function getRoundStateEncoder(): FixedSizeEncoder<RoundStateArgs>;
|
|
284
|
+
declare function getRoundStateDecoder(): FixedSizeDecoder<RoundState>;
|
|
285
|
+
declare function getRoundStateCodec(): FixedSizeCodec<RoundStateArgs, RoundState>;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
289
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
290
|
+
* to add features, then rerun Codama to update it.
|
|
291
|
+
*
|
|
292
|
+
* @see https://github.com/codama-idl/codama
|
|
293
|
+
*/
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Per-tile accumulator, updated as public miners deploy. Lets the round derive
|
|
297
|
+
* its winning-tile totals the instant the winning tile is revealed, removing the
|
|
298
|
+
* need for a per-deployment settlement pass.
|
|
299
|
+
*/
|
|
300
|
+
type TileStake = {
|
|
301
|
+
/** Running sum of even-split USD stakes placed on this tile. */
|
|
302
|
+
stake: bigint;
|
|
303
|
+
/** Number of deployments that selected this tile. */
|
|
304
|
+
deployCount: number;
|
|
305
|
+
};
|
|
306
|
+
type TileStakeArgs = {
|
|
307
|
+
/** Running sum of even-split USD stakes placed on this tile. */
|
|
308
|
+
stake: number | bigint;
|
|
309
|
+
/** Number of deployments that selected this tile. */
|
|
310
|
+
deployCount: number;
|
|
311
|
+
};
|
|
312
|
+
declare function getTileStakeEncoder(): FixedSizeEncoder<TileStakeArgs>;
|
|
313
|
+
declare function getTileStakeDecoder(): FixedSizeDecoder<TileStake>;
|
|
314
|
+
declare function getTileStakeCodec(): FixedSizeCodec<TileStakeArgs, TileStake>;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
318
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
319
|
+
* to add features, then rerun Codama to update it.
|
|
320
|
+
*
|
|
321
|
+
* @see https://github.com/codama-idl/codama
|
|
322
|
+
*/
|
|
323
|
+
|
|
324
|
+
type Winner = {
|
|
325
|
+
authority: Address;
|
|
326
|
+
/**
|
|
327
|
+
* Page the winner was drawn from. Together with `tickets`, lets the reduced
|
|
328
|
+
* (without-replacement) ticket ranges be reconstructed from the winners array
|
|
329
|
+
* instead of a live per-page cache on the iteration.
|
|
330
|
+
*/
|
|
331
|
+
pageIndex: number;
|
|
332
|
+
/** Ticket weight removed from the draw when this winner was selected. */
|
|
333
|
+
tickets: bigint;
|
|
334
|
+
claimed: boolean;
|
|
335
|
+
};
|
|
336
|
+
type WinnerArgs = {
|
|
337
|
+
authority: Address;
|
|
338
|
+
/**
|
|
339
|
+
* Page the winner was drawn from. Together with `tickets`, lets the reduced
|
|
340
|
+
* (without-replacement) ticket ranges be reconstructed from the winners array
|
|
341
|
+
* instead of a live per-page cache on the iteration.
|
|
342
|
+
*/
|
|
343
|
+
pageIndex: number;
|
|
344
|
+
/** Ticket weight removed from the draw when this winner was selected. */
|
|
345
|
+
tickets: number | bigint;
|
|
346
|
+
claimed: boolean;
|
|
347
|
+
};
|
|
348
|
+
declare function getWinnerEncoder(): FixedSizeEncoder<WinnerArgs>;
|
|
349
|
+
declare function getWinnerDecoder(): FixedSizeDecoder<Winner>;
|
|
350
|
+
declare function getWinnerCodec(): FixedSizeCodec<WinnerArgs, Winner>;
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
354
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
355
|
+
* to add features, then rerun Codama to update it.
|
|
356
|
+
*
|
|
357
|
+
* @see https://github.com/codama-idl/codama
|
|
358
|
+
*/
|
|
359
|
+
|
|
360
|
+
declare const EPOCH_VAULT_ITERATION_DISCRIMINATOR: ReadonlyUint8Array;
|
|
361
|
+
declare function getEpochVaultIterationDiscriminatorBytes(): ReadonlyUint8Array;
|
|
362
|
+
type EpochVaultIteration = {
|
|
363
|
+
discriminator: ReadonlyUint8Array;
|
|
364
|
+
version: number;
|
|
365
|
+
bump: number;
|
|
366
|
+
iterationId: number;
|
|
367
|
+
state: EpochState;
|
|
368
|
+
totalTickets: bigint;
|
|
369
|
+
participantsCount: number;
|
|
370
|
+
pageCount: number;
|
|
371
|
+
currentPageIndex: number;
|
|
372
|
+
currentPageEntryCount: number;
|
|
373
|
+
entropy: ReadonlyUint8Array;
|
|
374
|
+
claimableUsd: bigint;
|
|
375
|
+
claimableBtc: bigint;
|
|
376
|
+
totalTicketsRemaining: bigint;
|
|
377
|
+
currentWinningTicket: bigint;
|
|
378
|
+
/** Pages sealed so far; selection may only start once every page is sealed. */
|
|
379
|
+
sealedPagesCount: number;
|
|
380
|
+
winnersSelected: number;
|
|
381
|
+
winnersClaimed: number;
|
|
382
|
+
winners: Array<Winner>;
|
|
383
|
+
/** Reserved. */
|
|
384
|
+
reserved: ReadonlyUint8Array;
|
|
385
|
+
};
|
|
386
|
+
type EpochVaultIterationArgs = {
|
|
387
|
+
version: number;
|
|
388
|
+
bump: number;
|
|
389
|
+
iterationId: number;
|
|
390
|
+
state: EpochStateArgs;
|
|
391
|
+
totalTickets: number | bigint;
|
|
392
|
+
participantsCount: number;
|
|
393
|
+
pageCount: number;
|
|
394
|
+
currentPageIndex: number;
|
|
395
|
+
currentPageEntryCount: number;
|
|
396
|
+
entropy: ReadonlyUint8Array;
|
|
397
|
+
claimableUsd: number | bigint;
|
|
398
|
+
claimableBtc: number | bigint;
|
|
399
|
+
totalTicketsRemaining: number | bigint;
|
|
400
|
+
currentWinningTicket: number | bigint;
|
|
401
|
+
/** Pages sealed so far; selection may only start once every page is sealed. */
|
|
402
|
+
sealedPagesCount: number;
|
|
403
|
+
winnersSelected: number;
|
|
404
|
+
winnersClaimed: number;
|
|
405
|
+
winners: Array<WinnerArgs>;
|
|
406
|
+
/** Reserved. */
|
|
407
|
+
reserved: ReadonlyUint8Array;
|
|
408
|
+
};
|
|
409
|
+
/** Gets the encoder for {@link EpochVaultIterationArgs} account data. */
|
|
410
|
+
declare function getEpochVaultIterationEncoder(): FixedSizeEncoder<EpochVaultIterationArgs>;
|
|
411
|
+
/** Gets the decoder for {@link EpochVaultIteration} account data. */
|
|
412
|
+
declare function getEpochVaultIterationDecoder(): FixedSizeDecoder<EpochVaultIteration>;
|
|
413
|
+
/** Gets the codec for {@link EpochVaultIteration} account data. */
|
|
414
|
+
declare function getEpochVaultIterationCodec(): FixedSizeCodec<EpochVaultIterationArgs, EpochVaultIteration>;
|
|
415
|
+
declare function decodeEpochVaultIteration<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<EpochVaultIteration, TAddress>;
|
|
416
|
+
declare function decodeEpochVaultIteration<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<EpochVaultIteration, TAddress>;
|
|
417
|
+
declare function fetchEpochVaultIteration<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<EpochVaultIteration, TAddress>>;
|
|
418
|
+
declare function fetchMaybeEpochVaultIteration<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<EpochVaultIteration, TAddress>>;
|
|
419
|
+
declare function fetchAllEpochVaultIteration(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<EpochVaultIteration>[]>;
|
|
420
|
+
declare function fetchAllMaybeEpochVaultIteration(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<EpochVaultIteration>[]>;
|
|
421
|
+
declare function getEpochVaultIterationSize(): number;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
425
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
426
|
+
* to add features, then rerun Codama to update it.
|
|
427
|
+
*
|
|
428
|
+
* @see https://github.com/codama-idl/codama
|
|
429
|
+
*/
|
|
430
|
+
|
|
431
|
+
declare const EPOCH_VAULT_PAGE_DISCRIMINATOR: ReadonlyUint8Array;
|
|
432
|
+
declare function getEpochVaultPageDiscriminatorBytes(): ReadonlyUint8Array;
|
|
433
|
+
type EpochVaultPage = {
|
|
434
|
+
discriminator: ReadonlyUint8Array;
|
|
435
|
+
/** Struct version. */
|
|
436
|
+
version: number;
|
|
437
|
+
/** PDA bump seed. */
|
|
438
|
+
bump: number;
|
|
439
|
+
/** Iteration this page belongs to. */
|
|
440
|
+
iterationId: number;
|
|
441
|
+
/** Page index within the iteration. */
|
|
442
|
+
pageIndex: number;
|
|
443
|
+
/** Sum of tickets across this page's entries. */
|
|
444
|
+
totalTickets: bigint;
|
|
445
|
+
/**
|
|
446
|
+
* Cumulative ticket total of all pages before this one, fixed by the sealing
|
|
447
|
+
* crank at draw start (chained off the previous page's sealed range).
|
|
448
|
+
*/
|
|
449
|
+
cumulativeBase: bigint;
|
|
450
|
+
/** Whether the sealing crank has fixed this page's `cumulative_base`. */
|
|
451
|
+
sealed: boolean;
|
|
452
|
+
/** Number of occupied entry slots (0..=EPOCH_PAGE_SIZE). */
|
|
453
|
+
entryCount: number;
|
|
454
|
+
/** Fixed participant slots. */
|
|
455
|
+
entries: Array<PageEntry>;
|
|
456
|
+
/** Reserved. */
|
|
457
|
+
reserved: ReadonlyUint8Array;
|
|
458
|
+
};
|
|
459
|
+
type EpochVaultPageArgs = {
|
|
460
|
+
/** Struct version. */
|
|
461
|
+
version: number;
|
|
462
|
+
/** PDA bump seed. */
|
|
463
|
+
bump: number;
|
|
464
|
+
/** Iteration this page belongs to. */
|
|
465
|
+
iterationId: number;
|
|
466
|
+
/** Page index within the iteration. */
|
|
467
|
+
pageIndex: number;
|
|
468
|
+
/** Sum of tickets across this page's entries. */
|
|
469
|
+
totalTickets: number | bigint;
|
|
470
|
+
/**
|
|
471
|
+
* Cumulative ticket total of all pages before this one, fixed by the sealing
|
|
472
|
+
* crank at draw start (chained off the previous page's sealed range).
|
|
473
|
+
*/
|
|
474
|
+
cumulativeBase: number | bigint;
|
|
475
|
+
/** Whether the sealing crank has fixed this page's `cumulative_base`. */
|
|
476
|
+
sealed: boolean;
|
|
477
|
+
/** Number of occupied entry slots (0..=EPOCH_PAGE_SIZE). */
|
|
478
|
+
entryCount: number;
|
|
479
|
+
/** Fixed participant slots. */
|
|
480
|
+
entries: Array<PageEntryArgs>;
|
|
481
|
+
/** Reserved. */
|
|
482
|
+
reserved: ReadonlyUint8Array;
|
|
483
|
+
};
|
|
484
|
+
/** Gets the encoder for {@link EpochVaultPageArgs} account data. */
|
|
485
|
+
declare function getEpochVaultPageEncoder(): FixedSizeEncoder<EpochVaultPageArgs>;
|
|
486
|
+
/** Gets the decoder for {@link EpochVaultPage} account data. */
|
|
487
|
+
declare function getEpochVaultPageDecoder(): FixedSizeDecoder<EpochVaultPage>;
|
|
488
|
+
/** Gets the codec for {@link EpochVaultPage} account data. */
|
|
489
|
+
declare function getEpochVaultPageCodec(): FixedSizeCodec<EpochVaultPageArgs, EpochVaultPage>;
|
|
490
|
+
declare function decodeEpochVaultPage<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<EpochVaultPage, TAddress>;
|
|
491
|
+
declare function decodeEpochVaultPage<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<EpochVaultPage, TAddress>;
|
|
492
|
+
declare function fetchEpochVaultPage<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<EpochVaultPage, TAddress>>;
|
|
493
|
+
declare function fetchMaybeEpochVaultPage<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<EpochVaultPage, TAddress>>;
|
|
494
|
+
declare function fetchAllEpochVaultPage(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<EpochVaultPage>[]>;
|
|
495
|
+
declare function fetchAllMaybeEpochVaultPage(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<EpochVaultPage>[]>;
|
|
496
|
+
declare function getEpochVaultPageSize(): number;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
500
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
501
|
+
* to add features, then rerun Codama to update it.
|
|
502
|
+
*
|
|
503
|
+
* @see https://github.com/codama-idl/codama
|
|
504
|
+
*/
|
|
505
|
+
|
|
506
|
+
declare const MINER_DISCRIMINATOR: ReadonlyUint8Array;
|
|
507
|
+
declare function getMinerDiscriminatorBytes(): ReadonlyUint8Array;
|
|
508
|
+
type Miner = {
|
|
509
|
+
discriminator: ReadonlyUint8Array;
|
|
510
|
+
/** Struct version. */
|
|
511
|
+
version: number;
|
|
512
|
+
/** PDA bump seed. */
|
|
513
|
+
bump: number;
|
|
514
|
+
/** The authority of the miner's account */
|
|
515
|
+
authority: Address;
|
|
516
|
+
/** Amount of unclaimed USD */
|
|
517
|
+
unclaimedUsdAmount: bigint;
|
|
518
|
+
/** Amount of unclaimed btc shares in Sats Vault */
|
|
519
|
+
unclaimedBtcShares: bigint;
|
|
520
|
+
/** Amount of accumulated hashrate points */
|
|
521
|
+
hashrateAmount: bigint;
|
|
522
|
+
/** Amount of consequential rounds played */
|
|
523
|
+
currentStreakCount: number;
|
|
524
|
+
/** Last played round id */
|
|
525
|
+
lastMinedRoundId: number;
|
|
526
|
+
/** Reserved */
|
|
527
|
+
reserved: ReadonlyUint8Array;
|
|
528
|
+
};
|
|
529
|
+
type MinerArgs = {
|
|
530
|
+
/** Struct version. */
|
|
531
|
+
version: number;
|
|
532
|
+
/** PDA bump seed. */
|
|
533
|
+
bump: number;
|
|
534
|
+
/** The authority of the miner's account */
|
|
535
|
+
authority: Address;
|
|
536
|
+
/** Amount of unclaimed USD */
|
|
537
|
+
unclaimedUsdAmount: number | bigint;
|
|
538
|
+
/** Amount of unclaimed btc shares in Sats Vault */
|
|
539
|
+
unclaimedBtcShares: number | bigint;
|
|
540
|
+
/** Amount of accumulated hashrate points */
|
|
541
|
+
hashrateAmount: number | bigint;
|
|
542
|
+
/** Amount of consequential rounds played */
|
|
543
|
+
currentStreakCount: number;
|
|
544
|
+
/** Last played round id */
|
|
545
|
+
lastMinedRoundId: number;
|
|
546
|
+
/** Reserved */
|
|
547
|
+
reserved: ReadonlyUint8Array;
|
|
548
|
+
};
|
|
549
|
+
/** Gets the encoder for {@link MinerArgs} account data. */
|
|
550
|
+
declare function getMinerEncoder(): FixedSizeEncoder<MinerArgs>;
|
|
551
|
+
/** Gets the decoder for {@link Miner} account data. */
|
|
552
|
+
declare function getMinerDecoder(): FixedSizeDecoder<Miner>;
|
|
553
|
+
/** Gets the codec for {@link Miner} account data. */
|
|
554
|
+
declare function getMinerCodec(): FixedSizeCodec<MinerArgs, Miner>;
|
|
555
|
+
declare function decodeMiner<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Miner, TAddress>;
|
|
556
|
+
declare function decodeMiner<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Miner, TAddress>;
|
|
557
|
+
declare function fetchMiner<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Miner, TAddress>>;
|
|
558
|
+
declare function fetchMaybeMiner<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Miner, TAddress>>;
|
|
559
|
+
declare function fetchAllMiner(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Miner>[]>;
|
|
560
|
+
declare function fetchAllMaybeMiner(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Miner>[]>;
|
|
561
|
+
declare function getMinerSize(): number;
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
565
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
566
|
+
* to add features, then rerun Codama to update it.
|
|
567
|
+
*
|
|
568
|
+
* @see https://github.com/codama-idl/codama
|
|
569
|
+
*/
|
|
570
|
+
|
|
571
|
+
declare const ONE_BTC_VAULT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
572
|
+
declare function getOneBtcVaultDiscriminatorBytes(): ReadonlyUint8Array;
|
|
573
|
+
type OneBtcVault = {
|
|
574
|
+
discriminator: ReadonlyUint8Array;
|
|
575
|
+
/** Struct version. */
|
|
576
|
+
version: number;
|
|
577
|
+
/** PDA bump seed. */
|
|
578
|
+
bump: number;
|
|
579
|
+
/** Current accumulating iteration id. */
|
|
580
|
+
iterationId: number;
|
|
581
|
+
/** USD received from fees, not yet swapped. */
|
|
582
|
+
pendingUsdAmount: bigint;
|
|
583
|
+
/** Swapped BTC accumulating toward the prize; carries the remainder across draws. */
|
|
584
|
+
btcAmount: bigint;
|
|
585
|
+
/** BTC committed to sealed-but-unclaimed winners. */
|
|
586
|
+
reservedBtcAmount: bigint;
|
|
587
|
+
/** Slot of the last triggered draw. */
|
|
588
|
+
lastTriggerSlot: bigint;
|
|
589
|
+
/** Reserved. */
|
|
590
|
+
reserved: ReadonlyUint8Array;
|
|
591
|
+
};
|
|
592
|
+
type OneBtcVaultArgs = {
|
|
593
|
+
/** Struct version. */
|
|
594
|
+
version: number;
|
|
595
|
+
/** PDA bump seed. */
|
|
596
|
+
bump: number;
|
|
597
|
+
/** Current accumulating iteration id. */
|
|
598
|
+
iterationId: number;
|
|
599
|
+
/** USD received from fees, not yet swapped. */
|
|
600
|
+
pendingUsdAmount: number | bigint;
|
|
601
|
+
/** Swapped BTC accumulating toward the prize; carries the remainder across draws. */
|
|
602
|
+
btcAmount: number | bigint;
|
|
603
|
+
/** BTC committed to sealed-but-unclaimed winners. */
|
|
604
|
+
reservedBtcAmount: number | bigint;
|
|
605
|
+
/** Slot of the last triggered draw. */
|
|
606
|
+
lastTriggerSlot: number | bigint;
|
|
607
|
+
/** Reserved. */
|
|
608
|
+
reserved: ReadonlyUint8Array;
|
|
609
|
+
};
|
|
610
|
+
/** Gets the encoder for {@link OneBtcVaultArgs} account data. */
|
|
611
|
+
declare function getOneBtcVaultEncoder(): FixedSizeEncoder<OneBtcVaultArgs>;
|
|
612
|
+
/** Gets the decoder for {@link OneBtcVault} account data. */
|
|
613
|
+
declare function getOneBtcVaultDecoder(): FixedSizeDecoder<OneBtcVault>;
|
|
614
|
+
/** Gets the codec for {@link OneBtcVault} account data. */
|
|
615
|
+
declare function getOneBtcVaultCodec(): FixedSizeCodec<OneBtcVaultArgs, OneBtcVault>;
|
|
616
|
+
declare function decodeOneBtcVault<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<OneBtcVault, TAddress>;
|
|
617
|
+
declare function decodeOneBtcVault<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<OneBtcVault, TAddress>;
|
|
618
|
+
declare function fetchOneBtcVault<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<OneBtcVault, TAddress>>;
|
|
619
|
+
declare function fetchMaybeOneBtcVault<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<OneBtcVault, TAddress>>;
|
|
620
|
+
declare function fetchAllOneBtcVault(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<OneBtcVault>[]>;
|
|
621
|
+
declare function fetchAllMaybeOneBtcVault(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<OneBtcVault>[]>;
|
|
622
|
+
declare function getOneBtcVaultSize(): number;
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
626
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
627
|
+
* to add features, then rerun Codama to update it.
|
|
628
|
+
*
|
|
629
|
+
* @see https://github.com/codama-idl/codama
|
|
630
|
+
*/
|
|
631
|
+
|
|
632
|
+
declare const ONE_BTC_VAULT_ENTRY_DISCRIMINATOR: ReadonlyUint8Array;
|
|
633
|
+
declare function getOneBtcVaultEntryDiscriminatorBytes(): ReadonlyUint8Array;
|
|
634
|
+
type OneBtcVaultEntry = {
|
|
635
|
+
discriminator: ReadonlyUint8Array;
|
|
636
|
+
version: number;
|
|
637
|
+
iterationId: number;
|
|
638
|
+
authority: Address;
|
|
639
|
+
startTicketId: bigint;
|
|
640
|
+
ticketsCount: bigint;
|
|
641
|
+
reserved: ReadonlyUint8Array;
|
|
642
|
+
};
|
|
643
|
+
type OneBtcVaultEntryArgs = {
|
|
644
|
+
version: number;
|
|
645
|
+
iterationId: number;
|
|
646
|
+
authority: Address;
|
|
647
|
+
startTicketId: number | bigint;
|
|
648
|
+
ticketsCount: number | bigint;
|
|
649
|
+
reserved: ReadonlyUint8Array;
|
|
650
|
+
};
|
|
651
|
+
/** Gets the encoder for {@link OneBtcVaultEntryArgs} account data. */
|
|
652
|
+
declare function getOneBtcVaultEntryEncoder(): FixedSizeEncoder<OneBtcVaultEntryArgs>;
|
|
653
|
+
/** Gets the decoder for {@link OneBtcVaultEntry} account data. */
|
|
654
|
+
declare function getOneBtcVaultEntryDecoder(): FixedSizeDecoder<OneBtcVaultEntry>;
|
|
655
|
+
/** Gets the codec for {@link OneBtcVaultEntry} account data. */
|
|
656
|
+
declare function getOneBtcVaultEntryCodec(): FixedSizeCodec<OneBtcVaultEntryArgs, OneBtcVaultEntry>;
|
|
657
|
+
declare function decodeOneBtcVaultEntry<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<OneBtcVaultEntry, TAddress>;
|
|
658
|
+
declare function decodeOneBtcVaultEntry<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<OneBtcVaultEntry, TAddress>;
|
|
659
|
+
declare function fetchOneBtcVaultEntry<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<OneBtcVaultEntry, TAddress>>;
|
|
660
|
+
declare function fetchMaybeOneBtcVaultEntry<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<OneBtcVaultEntry, TAddress>>;
|
|
661
|
+
declare function fetchAllOneBtcVaultEntry(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<OneBtcVaultEntry>[]>;
|
|
662
|
+
declare function fetchAllMaybeOneBtcVaultEntry(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<OneBtcVaultEntry>[]>;
|
|
663
|
+
declare function getOneBtcVaultEntrySize(): number;
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
667
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
668
|
+
* to add features, then rerun Codama to update it.
|
|
669
|
+
*
|
|
670
|
+
* @see https://github.com/codama-idl/codama
|
|
671
|
+
*/
|
|
672
|
+
|
|
673
|
+
declare const ONE_BTC_VAULT_ITERATION_DISCRIMINATOR: ReadonlyUint8Array;
|
|
674
|
+
declare function getOneBtcVaultIterationDiscriminatorBytes(): ReadonlyUint8Array;
|
|
675
|
+
type OneBtcVaultIteration = {
|
|
676
|
+
discriminator: ReadonlyUint8Array;
|
|
677
|
+
version: number;
|
|
678
|
+
bump: number;
|
|
679
|
+
iterationId: number;
|
|
680
|
+
state: OneBtcState;
|
|
681
|
+
/** Running ticket counter; also the next purchase's `start_ticket_id`. */
|
|
682
|
+
totalTickets: bigint;
|
|
683
|
+
/** Slot-hash entropy snapshot at trigger (off-chain verifiable). */
|
|
684
|
+
entropy: ReadonlyUint8Array;
|
|
685
|
+
/** Winning ticket id, set at trigger: `rng(entropy) % total_tickets`. */
|
|
686
|
+
winningTicket: bigint;
|
|
687
|
+
/** Prize snapshotted at trigger (the payout amount). */
|
|
688
|
+
prizeBtc: bigint;
|
|
689
|
+
/** Reserved. */
|
|
690
|
+
reserved: ReadonlyUint8Array;
|
|
691
|
+
};
|
|
692
|
+
type OneBtcVaultIterationArgs = {
|
|
693
|
+
version: number;
|
|
694
|
+
bump: number;
|
|
695
|
+
iterationId: number;
|
|
696
|
+
state: OneBtcStateArgs;
|
|
697
|
+
/** Running ticket counter; also the next purchase's `start_ticket_id`. */
|
|
698
|
+
totalTickets: number | bigint;
|
|
699
|
+
/** Slot-hash entropy snapshot at trigger (off-chain verifiable). */
|
|
700
|
+
entropy: ReadonlyUint8Array;
|
|
701
|
+
/** Winning ticket id, set at trigger: `rng(entropy) % total_tickets`. */
|
|
702
|
+
winningTicket: number | bigint;
|
|
703
|
+
/** Prize snapshotted at trigger (the payout amount). */
|
|
704
|
+
prizeBtc: number | bigint;
|
|
705
|
+
/** Reserved. */
|
|
706
|
+
reserved: ReadonlyUint8Array;
|
|
707
|
+
};
|
|
708
|
+
/** Gets the encoder for {@link OneBtcVaultIterationArgs} account data. */
|
|
709
|
+
declare function getOneBtcVaultIterationEncoder(): FixedSizeEncoder<OneBtcVaultIterationArgs>;
|
|
710
|
+
/** Gets the decoder for {@link OneBtcVaultIteration} account data. */
|
|
711
|
+
declare function getOneBtcVaultIterationDecoder(): FixedSizeDecoder<OneBtcVaultIteration>;
|
|
712
|
+
/** Gets the codec for {@link OneBtcVaultIteration} account data. */
|
|
713
|
+
declare function getOneBtcVaultIterationCodec(): FixedSizeCodec<OneBtcVaultIterationArgs, OneBtcVaultIteration>;
|
|
714
|
+
declare function decodeOneBtcVaultIteration<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<OneBtcVaultIteration, TAddress>;
|
|
715
|
+
declare function decodeOneBtcVaultIteration<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<OneBtcVaultIteration, TAddress>;
|
|
716
|
+
declare function fetchOneBtcVaultIteration<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<OneBtcVaultIteration, TAddress>>;
|
|
717
|
+
declare function fetchMaybeOneBtcVaultIteration<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<OneBtcVaultIteration, TAddress>>;
|
|
718
|
+
declare function fetchAllOneBtcVaultIteration(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<OneBtcVaultIteration>[]>;
|
|
719
|
+
declare function fetchAllMaybeOneBtcVaultIteration(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<OneBtcVaultIteration>[]>;
|
|
720
|
+
declare function getOneBtcVaultIterationSize(): number;
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
724
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
725
|
+
* to add features, then rerun Codama to update it.
|
|
726
|
+
*
|
|
727
|
+
* @see https://github.com/codama-idl/codama
|
|
728
|
+
*/
|
|
729
|
+
|
|
730
|
+
declare const PUBLIC_DEPLOYMENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
731
|
+
declare function getPublicDeploymentDiscriminatorBytes(): ReadonlyUint8Array;
|
|
732
|
+
type PublicDeployment = {
|
|
733
|
+
discriminator: ReadonlyUint8Array;
|
|
734
|
+
/** Struct version. */
|
|
735
|
+
version: number;
|
|
736
|
+
/** PDA bump seed. */
|
|
737
|
+
bump: number;
|
|
738
|
+
/** Deployment authority account. */
|
|
739
|
+
authority: Address;
|
|
740
|
+
/** Deployment round id. */
|
|
741
|
+
roundId: number;
|
|
742
|
+
/** Amount of deployed USD after protocol fees. */
|
|
743
|
+
deployedUsdAmount: bigint;
|
|
744
|
+
/** 21-bit selection mask */
|
|
745
|
+
selectionMask: number;
|
|
746
|
+
/**
|
|
747
|
+
* Streak `m` the miner's play earned, snapshotted at deploy. Read at claim so
|
|
748
|
+
* the reward reflects the streak this play earned, not the miner's live
|
|
749
|
+
* streak (which advances on later deploys).
|
|
750
|
+
*/
|
|
751
|
+
streakSnapshot: number;
|
|
752
|
+
/** Auto-miner session PDA that created this miner, or `None` for manual miners. */
|
|
753
|
+
autoMinerSession: Option<Address>;
|
|
754
|
+
/** Reserved */
|
|
755
|
+
reserved: ReadonlyUint8Array;
|
|
756
|
+
};
|
|
757
|
+
type PublicDeploymentArgs = {
|
|
758
|
+
/** Struct version. */
|
|
759
|
+
version: number;
|
|
760
|
+
/** PDA bump seed. */
|
|
761
|
+
bump: number;
|
|
762
|
+
/** Deployment authority account. */
|
|
763
|
+
authority: Address;
|
|
764
|
+
/** Deployment round id. */
|
|
765
|
+
roundId: number;
|
|
766
|
+
/** Amount of deployed USD after protocol fees. */
|
|
767
|
+
deployedUsdAmount: number | bigint;
|
|
768
|
+
/** 21-bit selection mask */
|
|
769
|
+
selectionMask: number;
|
|
770
|
+
/**
|
|
771
|
+
* Streak `m` the miner's play earned, snapshotted at deploy. Read at claim so
|
|
772
|
+
* the reward reflects the streak this play earned, not the miner's live
|
|
773
|
+
* streak (which advances on later deploys).
|
|
774
|
+
*/
|
|
775
|
+
streakSnapshot: number;
|
|
776
|
+
/** Auto-miner session PDA that created this miner, or `None` for manual miners. */
|
|
777
|
+
autoMinerSession: OptionOrNullable<Address>;
|
|
778
|
+
/** Reserved */
|
|
779
|
+
reserved: ReadonlyUint8Array;
|
|
780
|
+
};
|
|
781
|
+
/** Gets the encoder for {@link PublicDeploymentArgs} account data. */
|
|
782
|
+
declare function getPublicDeploymentEncoder(): Encoder<PublicDeploymentArgs>;
|
|
783
|
+
/** Gets the decoder for {@link PublicDeployment} account data. */
|
|
784
|
+
declare function getPublicDeploymentDecoder(): Decoder<PublicDeployment>;
|
|
785
|
+
/** Gets the codec for {@link PublicDeployment} account data. */
|
|
786
|
+
declare function getPublicDeploymentCodec(): Codec<PublicDeploymentArgs, PublicDeployment>;
|
|
787
|
+
declare function decodePublicDeployment<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<PublicDeployment, TAddress>;
|
|
788
|
+
declare function decodePublicDeployment<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<PublicDeployment, TAddress>;
|
|
789
|
+
declare function fetchPublicDeployment<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<PublicDeployment, TAddress>>;
|
|
790
|
+
declare function fetchMaybePublicDeployment<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<PublicDeployment, TAddress>>;
|
|
791
|
+
declare function fetchAllPublicDeployment(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<PublicDeployment>[]>;
|
|
792
|
+
declare function fetchAllMaybePublicDeployment(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<PublicDeployment>[]>;
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
796
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
797
|
+
* to add features, then rerun Codama to update it.
|
|
798
|
+
*
|
|
799
|
+
* @see https://github.com/codama-idl/codama
|
|
800
|
+
*/
|
|
801
|
+
|
|
802
|
+
declare const ROUND_DISCRIMINATOR: ReadonlyUint8Array;
|
|
803
|
+
declare function getRoundDiscriminatorBytes(): ReadonlyUint8Array;
|
|
804
|
+
type Round = {
|
|
805
|
+
discriminator: ReadonlyUint8Array;
|
|
806
|
+
/** Struct version. */
|
|
807
|
+
version: number;
|
|
808
|
+
/** PDA bump seed. */
|
|
809
|
+
bump: number;
|
|
810
|
+
/** Sequential round identifier. */
|
|
811
|
+
id: number;
|
|
812
|
+
/** Round state */
|
|
813
|
+
state: RoundState;
|
|
814
|
+
/** Entropy value, derived from the slot hashes */
|
|
815
|
+
entropy: ReadonlyUint8Array;
|
|
816
|
+
/** Winning tile index, revealed upon settlement */
|
|
817
|
+
winningTile: Option<number>;
|
|
818
|
+
/** Total net USD deployed into the round before the USD->BTC swap */
|
|
819
|
+
deployedPendingUsdAmount: bigint;
|
|
820
|
+
/** Total net USD stake after USD->BTC swap */
|
|
821
|
+
deployedUsdAmount: bigint;
|
|
822
|
+
/** Total net BTC stake after USD->BTC swap */
|
|
823
|
+
deployedBtcAmount: bigint;
|
|
824
|
+
/** Total net USD placed on the winning tile */
|
|
825
|
+
deployedUsdOnWinningTileAmount: bigint;
|
|
826
|
+
/** Total amount of players in the round */
|
|
827
|
+
minersCount: number;
|
|
828
|
+
/**
|
|
829
|
+
* Number of miners whose selection is revealed. Public deploys are revealed
|
|
830
|
+
* by construction, so they advance this counter at deploy time; future
|
|
831
|
+
* private deploys join `miners_count` first and catch up here on reveal.
|
|
832
|
+
* The round can only settle once it equals `miners_count`.
|
|
833
|
+
*/
|
|
834
|
+
revealedMinersCount: number;
|
|
835
|
+
/** Total amount of winners, revealed during settlement */
|
|
836
|
+
winnersCount: number;
|
|
837
|
+
/** Total amount of miners who claimed their winnings/hashrate, should equal to miners_count */
|
|
838
|
+
settledMinersCount: number;
|
|
839
|
+
/** Strike jackpot USD rolled into this round on trigger, distributed to winners. */
|
|
840
|
+
strikeBonusUsd: bigint;
|
|
841
|
+
/** Strike jackpot BTC rolled into this round on trigger, distributed to winners. */
|
|
842
|
+
strikeBonusBtc: bigint;
|
|
843
|
+
/**
|
|
844
|
+
* Per-tile deploy count and stake sum, accumulated as public miners deploy.
|
|
845
|
+
* Indexed by tile (0..TILES_COUNT). Read at reveal to derive the winning
|
|
846
|
+
* tile's totals without a per-deployment settlement pass.
|
|
847
|
+
*/
|
|
848
|
+
publicTileStakes: Array<TileStake>;
|
|
849
|
+
/** Reserved. */
|
|
850
|
+
reserved: ReadonlyUint8Array;
|
|
851
|
+
};
|
|
852
|
+
type RoundArgs = {
|
|
853
|
+
/** Struct version. */
|
|
854
|
+
version: number;
|
|
855
|
+
/** PDA bump seed. */
|
|
856
|
+
bump: number;
|
|
857
|
+
/** Sequential round identifier. */
|
|
858
|
+
id: number;
|
|
859
|
+
/** Round state */
|
|
860
|
+
state: RoundStateArgs;
|
|
861
|
+
/** Entropy value, derived from the slot hashes */
|
|
862
|
+
entropy: ReadonlyUint8Array;
|
|
863
|
+
/** Winning tile index, revealed upon settlement */
|
|
864
|
+
winningTile: OptionOrNullable<number>;
|
|
865
|
+
/** Total net USD deployed into the round before the USD->BTC swap */
|
|
866
|
+
deployedPendingUsdAmount: number | bigint;
|
|
867
|
+
/** Total net USD stake after USD->BTC swap */
|
|
868
|
+
deployedUsdAmount: number | bigint;
|
|
869
|
+
/** Total net BTC stake after USD->BTC swap */
|
|
870
|
+
deployedBtcAmount: number | bigint;
|
|
871
|
+
/** Total net USD placed on the winning tile */
|
|
872
|
+
deployedUsdOnWinningTileAmount: number | bigint;
|
|
873
|
+
/** Total amount of players in the round */
|
|
874
|
+
minersCount: number;
|
|
875
|
+
/**
|
|
876
|
+
* Number of miners whose selection is revealed. Public deploys are revealed
|
|
877
|
+
* by construction, so they advance this counter at deploy time; future
|
|
878
|
+
* private deploys join `miners_count` first and catch up here on reveal.
|
|
879
|
+
* The round can only settle once it equals `miners_count`.
|
|
880
|
+
*/
|
|
881
|
+
revealedMinersCount: number;
|
|
882
|
+
/** Total amount of winners, revealed during settlement */
|
|
883
|
+
winnersCount: number;
|
|
884
|
+
/** Total amount of miners who claimed their winnings/hashrate, should equal to miners_count */
|
|
885
|
+
settledMinersCount: number;
|
|
886
|
+
/** Strike jackpot USD rolled into this round on trigger, distributed to winners. */
|
|
887
|
+
strikeBonusUsd: number | bigint;
|
|
888
|
+
/** Strike jackpot BTC rolled into this round on trigger, distributed to winners. */
|
|
889
|
+
strikeBonusBtc: number | bigint;
|
|
890
|
+
/**
|
|
891
|
+
* Per-tile deploy count and stake sum, accumulated as public miners deploy.
|
|
892
|
+
* Indexed by tile (0..TILES_COUNT). Read at reveal to derive the winning
|
|
893
|
+
* tile's totals without a per-deployment settlement pass.
|
|
894
|
+
*/
|
|
895
|
+
publicTileStakes: Array<TileStakeArgs>;
|
|
896
|
+
/** Reserved. */
|
|
897
|
+
reserved: ReadonlyUint8Array;
|
|
898
|
+
};
|
|
899
|
+
/** Gets the encoder for {@link RoundArgs} account data. */
|
|
900
|
+
declare function getRoundEncoder(): Encoder<RoundArgs>;
|
|
901
|
+
/** Gets the decoder for {@link Round} account data. */
|
|
902
|
+
declare function getRoundDecoder(): Decoder<Round>;
|
|
903
|
+
/** Gets the codec for {@link Round} account data. */
|
|
904
|
+
declare function getRoundCodec(): Codec<RoundArgs, Round>;
|
|
905
|
+
declare function decodeRound<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Round, TAddress>;
|
|
906
|
+
declare function decodeRound<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Round, TAddress>;
|
|
907
|
+
declare function fetchRound<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Round, TAddress>>;
|
|
908
|
+
declare function fetchMaybeRound<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Round, TAddress>>;
|
|
909
|
+
declare function fetchAllRound(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Round>[]>;
|
|
910
|
+
declare function fetchAllMaybeRound(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Round>[]>;
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
914
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
915
|
+
* to add features, then rerun Codama to update it.
|
|
916
|
+
*
|
|
917
|
+
* @see https://github.com/codama-idl/codama
|
|
918
|
+
*/
|
|
919
|
+
|
|
920
|
+
declare const SATRUSH_CONFIG_DISCRIMINATOR: ReadonlyUint8Array;
|
|
921
|
+
declare function getSatrushConfigDiscriminatorBytes(): ReadonlyUint8Array;
|
|
922
|
+
type SatrushConfig = {
|
|
923
|
+
discriminator: ReadonlyUint8Array;
|
|
924
|
+
/** Struct version. */
|
|
925
|
+
version: number;
|
|
926
|
+
/** Bump seed for the config account. */
|
|
927
|
+
bump: number;
|
|
928
|
+
/** Current update authority address for both Config and other PDAs - can be updated. */
|
|
929
|
+
adminAuthority: Address;
|
|
930
|
+
/** Owner of the program. Can change ownership and set the admin of the program. */
|
|
931
|
+
ownerAuthority: Address;
|
|
932
|
+
/** Address of the authority controlling the round flow. */
|
|
933
|
+
roundAuthority: Address;
|
|
934
|
+
/** Protocol fees recipient address. */
|
|
935
|
+
feeRecipient: Address;
|
|
936
|
+
/** USD mint address, initially USDC */
|
|
937
|
+
usdMint: Address;
|
|
938
|
+
/** BTC mint address, initially cbBTC */
|
|
939
|
+
btcMint: Address;
|
|
940
|
+
/** Strike jackpot fee in basis points. */
|
|
941
|
+
strikeFeeBps: number;
|
|
942
|
+
/** Epoch Vault fee in basis points. */
|
|
943
|
+
epochFeeBps: number;
|
|
944
|
+
/** 1 BTC Vault fee in basis points. */
|
|
945
|
+
oneBtcFeeBps: number;
|
|
946
|
+
/** Sats Vault fee in basis points. */
|
|
947
|
+
satsVaultRoundFeeBps: number;
|
|
948
|
+
/** Sats Vault claim fee in basis points. */
|
|
949
|
+
satsVaultClaimFeeBps: number;
|
|
950
|
+
/** Protocol fee in basis points. */
|
|
951
|
+
protocolFeeBps: number;
|
|
952
|
+
/** Reserved */
|
|
953
|
+
reserved: ReadonlyUint8Array;
|
|
954
|
+
};
|
|
955
|
+
type SatrushConfigArgs = {
|
|
956
|
+
/** Struct version. */
|
|
957
|
+
version: number;
|
|
958
|
+
/** Bump seed for the config account. */
|
|
959
|
+
bump: number;
|
|
960
|
+
/** Current update authority address for both Config and other PDAs - can be updated. */
|
|
961
|
+
adminAuthority: Address;
|
|
962
|
+
/** Owner of the program. Can change ownership and set the admin of the program. */
|
|
963
|
+
ownerAuthority: Address;
|
|
964
|
+
/** Address of the authority controlling the round flow. */
|
|
965
|
+
roundAuthority: Address;
|
|
966
|
+
/** Protocol fees recipient address. */
|
|
967
|
+
feeRecipient: Address;
|
|
968
|
+
/** USD mint address, initially USDC */
|
|
969
|
+
usdMint: Address;
|
|
970
|
+
/** BTC mint address, initially cbBTC */
|
|
971
|
+
btcMint: Address;
|
|
972
|
+
/** Strike jackpot fee in basis points. */
|
|
973
|
+
strikeFeeBps: number;
|
|
974
|
+
/** Epoch Vault fee in basis points. */
|
|
975
|
+
epochFeeBps: number;
|
|
976
|
+
/** 1 BTC Vault fee in basis points. */
|
|
977
|
+
oneBtcFeeBps: number;
|
|
978
|
+
/** Sats Vault fee in basis points. */
|
|
979
|
+
satsVaultRoundFeeBps: number;
|
|
980
|
+
/** Sats Vault claim fee in basis points. */
|
|
981
|
+
satsVaultClaimFeeBps: number;
|
|
982
|
+
/** Protocol fee in basis points. */
|
|
983
|
+
protocolFeeBps: number;
|
|
984
|
+
/** Reserved */
|
|
985
|
+
reserved: ReadonlyUint8Array;
|
|
986
|
+
};
|
|
987
|
+
/** Gets the encoder for {@link SatrushConfigArgs} account data. */
|
|
988
|
+
declare function getSatrushConfigEncoder(): FixedSizeEncoder<SatrushConfigArgs>;
|
|
989
|
+
/** Gets the decoder for {@link SatrushConfig} account data. */
|
|
990
|
+
declare function getSatrushConfigDecoder(): FixedSizeDecoder<SatrushConfig>;
|
|
991
|
+
/** Gets the codec for {@link SatrushConfig} account data. */
|
|
992
|
+
declare function getSatrushConfigCodec(): FixedSizeCodec<SatrushConfigArgs, SatrushConfig>;
|
|
993
|
+
declare function decodeSatrushConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<SatrushConfig, TAddress>;
|
|
994
|
+
declare function decodeSatrushConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<SatrushConfig, TAddress>;
|
|
995
|
+
declare function fetchSatrushConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<SatrushConfig, TAddress>>;
|
|
996
|
+
declare function fetchMaybeSatrushConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<SatrushConfig, TAddress>>;
|
|
997
|
+
declare function fetchAllSatrushConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<SatrushConfig>[]>;
|
|
998
|
+
declare function fetchAllMaybeSatrushConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<SatrushConfig>[]>;
|
|
999
|
+
declare function getSatrushConfigSize(): number;
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1003
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1004
|
+
* to add features, then rerun Codama to update it.
|
|
1005
|
+
*
|
|
1006
|
+
* @see https://github.com/codama-idl/codama
|
|
1007
|
+
*/
|
|
1008
|
+
|
|
1009
|
+
declare const SATS_VAULT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1010
|
+
declare function getSatsVaultDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1011
|
+
type SatsVault = {
|
|
1012
|
+
discriminator: ReadonlyUint8Array;
|
|
1013
|
+
/** Struct version */
|
|
1014
|
+
version: number;
|
|
1015
|
+
/** PDA bump seed. */
|
|
1016
|
+
bump: number;
|
|
1017
|
+
/** Total BTC backing outstanding shares. Mirrors `sats_vault_btc_ata.amount`. */
|
|
1018
|
+
btcAmount: bigint;
|
|
1019
|
+
/** Total shares issued against `btc_amount`. */
|
|
1020
|
+
btcShares: bigint;
|
|
1021
|
+
/** Reserved */
|
|
1022
|
+
reserved: ReadonlyUint8Array;
|
|
1023
|
+
};
|
|
1024
|
+
type SatsVaultArgs = {
|
|
1025
|
+
/** Struct version */
|
|
1026
|
+
version: number;
|
|
1027
|
+
/** PDA bump seed. */
|
|
1028
|
+
bump: number;
|
|
1029
|
+
/** Total BTC backing outstanding shares. Mirrors `sats_vault_btc_ata.amount`. */
|
|
1030
|
+
btcAmount: number | bigint;
|
|
1031
|
+
/** Total shares issued against `btc_amount`. */
|
|
1032
|
+
btcShares: number | bigint;
|
|
1033
|
+
/** Reserved */
|
|
1034
|
+
reserved: ReadonlyUint8Array;
|
|
1035
|
+
};
|
|
1036
|
+
/** Gets the encoder for {@link SatsVaultArgs} account data. */
|
|
1037
|
+
declare function getSatsVaultEncoder(): FixedSizeEncoder<SatsVaultArgs>;
|
|
1038
|
+
/** Gets the decoder for {@link SatsVault} account data. */
|
|
1039
|
+
declare function getSatsVaultDecoder(): FixedSizeDecoder<SatsVault>;
|
|
1040
|
+
/** Gets the codec for {@link SatsVault} account data. */
|
|
1041
|
+
declare function getSatsVaultCodec(): FixedSizeCodec<SatsVaultArgs, SatsVault>;
|
|
1042
|
+
declare function decodeSatsVault<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<SatsVault, TAddress>;
|
|
1043
|
+
declare function decodeSatsVault<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<SatsVault, TAddress>;
|
|
1044
|
+
declare function fetchSatsVault<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<SatsVault, TAddress>>;
|
|
1045
|
+
declare function fetchMaybeSatsVault<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<SatsVault, TAddress>>;
|
|
1046
|
+
declare function fetchAllSatsVault(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<SatsVault>[]>;
|
|
1047
|
+
declare function fetchAllMaybeSatsVault(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<SatsVault>[]>;
|
|
1048
|
+
declare function getSatsVaultSize(): number;
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1052
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1053
|
+
* to add features, then rerun Codama to update it.
|
|
1054
|
+
*
|
|
1055
|
+
* @see https://github.com/codama-idl/codama
|
|
1056
|
+
*/
|
|
1057
|
+
|
|
1058
|
+
declare const TREASURY_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1059
|
+
declare function getTreasuryDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1060
|
+
type Treasury = {
|
|
1061
|
+
discriminator: ReadonlyUint8Array;
|
|
1062
|
+
/** Struct version. */
|
|
1063
|
+
version: number;
|
|
1064
|
+
/** PDA bump seed. */
|
|
1065
|
+
bump: number;
|
|
1066
|
+
/** USD protocol fees accrued and not yet withdrawn; mirrors the ATA balance. */
|
|
1067
|
+
pendingUsdAmount: bigint;
|
|
1068
|
+
/** Reserved. */
|
|
1069
|
+
reserved: ReadonlyUint8Array;
|
|
1070
|
+
};
|
|
1071
|
+
type TreasuryArgs = {
|
|
1072
|
+
/** Struct version. */
|
|
1073
|
+
version: number;
|
|
1074
|
+
/** PDA bump seed. */
|
|
1075
|
+
bump: number;
|
|
1076
|
+
/** USD protocol fees accrued and not yet withdrawn; mirrors the ATA balance. */
|
|
1077
|
+
pendingUsdAmount: number | bigint;
|
|
1078
|
+
/** Reserved. */
|
|
1079
|
+
reserved: ReadonlyUint8Array;
|
|
1080
|
+
};
|
|
1081
|
+
/** Gets the encoder for {@link TreasuryArgs} account data. */
|
|
1082
|
+
declare function getTreasuryEncoder(): FixedSizeEncoder<TreasuryArgs>;
|
|
1083
|
+
/** Gets the decoder for {@link Treasury} account data. */
|
|
1084
|
+
declare function getTreasuryDecoder(): FixedSizeDecoder<Treasury>;
|
|
1085
|
+
/** Gets the codec for {@link Treasury} account data. */
|
|
1086
|
+
declare function getTreasuryCodec(): FixedSizeCodec<TreasuryArgs, Treasury>;
|
|
1087
|
+
declare function decodeTreasury<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Treasury, TAddress>;
|
|
1088
|
+
declare function decodeTreasury<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Treasury, TAddress>;
|
|
1089
|
+
declare function fetchTreasury<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Treasury, TAddress>>;
|
|
1090
|
+
declare function fetchMaybeTreasury<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Treasury, TAddress>>;
|
|
1091
|
+
declare function fetchAllTreasury(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Treasury>[]>;
|
|
1092
|
+
declare function fetchAllMaybeTreasury(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Treasury>[]>;
|
|
1093
|
+
declare function getTreasurySize(): number;
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1097
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1098
|
+
* to add features, then rerun Codama to update it.
|
|
1099
|
+
*
|
|
1100
|
+
* @see https://github.com/codama-idl/codama
|
|
1101
|
+
*/
|
|
1102
|
+
|
|
1103
|
+
/** Unauthorized: Signer is not authorized to execute this instruction */
|
|
1104
|
+
declare const SATRUSH_ERROR__UNAUTHORIZED = 6000;
|
|
1105
|
+
/** RoundInProgress: Ongoing round is not yet finished */
|
|
1106
|
+
declare const SATRUSH_ERROR__ROUND_IN_PROGRESS = 6001;
|
|
1107
|
+
/** InvalidRoundId: Invalid round id supplied to create round */
|
|
1108
|
+
declare const SATRUSH_ERROR__INVALID_ROUND_ID = 6002;
|
|
1109
|
+
/** InvalidEntropy: Entropy value is invalid */
|
|
1110
|
+
declare const SATRUSH_ERROR__INVALID_ENTROPY = 6003;
|
|
1111
|
+
/** RoundNotActive: Round is not accepting deploys */
|
|
1112
|
+
declare const SATRUSH_ERROR__ROUND_NOT_ACTIVE = 6004;
|
|
1113
|
+
/** InvalidDeploymentAmount: Deployment amount must be greater than zero */
|
|
1114
|
+
declare const SATRUSH_ERROR__INVALID_DEPLOYMENT_AMOUNT = 6005;
|
|
1115
|
+
/** InvalidSelectionMask: Selection mask must pick between 1 and 21 tiles within the 21-bit range */
|
|
1116
|
+
declare const SATRUSH_ERROR__INVALID_SELECTION_MASK = 6006;
|
|
1117
|
+
/** MathOverflow: Arithmetic overflow */
|
|
1118
|
+
declare const SATRUSH_ERROR__MATH_OVERFLOW = 6007;
|
|
1119
|
+
/** MathUnderflow: Arithmetic underflow */
|
|
1120
|
+
declare const SATRUSH_ERROR__MATH_UNDERFLOW = 6008;
|
|
1121
|
+
/** AlreadyRevealed: Round winning tile has already been revealed */
|
|
1122
|
+
declare const SATRUSH_ERROR__ALREADY_REVEALED = 6009;
|
|
1123
|
+
/** InvalidSlotHash: Slot hash entropy is unavailable or invalid */
|
|
1124
|
+
declare const SATRUSH_ERROR__INVALID_SLOT_HASH = 6010;
|
|
1125
|
+
/** RoundNotRevealed: Round winning tile has not been revealed yet */
|
|
1126
|
+
declare const SATRUSH_ERROR__ROUND_NOT_REVEALED = 6011;
|
|
1127
|
+
/** AlreadySettled: Deployment has already been settled */
|
|
1128
|
+
declare const SATRUSH_ERROR__ALREADY_SETTLED = 6012;
|
|
1129
|
+
/** RoundNotSettled: Round is not in the settled state */
|
|
1130
|
+
declare const SATRUSH_ERROR__ROUND_NOT_SETTLED = 6013;
|
|
1131
|
+
/** DeploymentNotSettled: Deployment has not been settled yet */
|
|
1132
|
+
declare const SATRUSH_ERROR__DEPLOYMENT_NOT_SETTLED = 6014;
|
|
1133
|
+
/** RoundWindowClosed: Round is not currently accepting deploys (window closed) */
|
|
1134
|
+
declare const SATRUSH_ERROR__ROUND_WINDOW_CLOSED = 6015;
|
|
1135
|
+
/** BoardAlreadyBootstrapped: Board already has a round; use advance_round to rotate */
|
|
1136
|
+
declare const SATRUSH_ERROR__BOARD_ALREADY_BOOTSTRAPPED = 6016;
|
|
1137
|
+
/** InvalidSwapProgram: Swap program account does not match the configured swap program */
|
|
1138
|
+
declare const SATRUSH_ERROR__INVALID_SWAP_PROGRAM = 6017;
|
|
1139
|
+
/** AlreadySwapped: Round stake has already been swapped into BTC */
|
|
1140
|
+
declare const SATRUSH_ERROR__ALREADY_SWAPPED = 6018;
|
|
1141
|
+
/** SwapOverspent: Swap spent more USD than the budgeted amount */
|
|
1142
|
+
declare const SATRUSH_ERROR__SWAP_OVERSPENT = 6019;
|
|
1143
|
+
/** SlippageExceeded: Swap output is below the minimum acceptable amount */
|
|
1144
|
+
declare const SATRUSH_ERROR__SLIPPAGE_EXCEEDED = 6020;
|
|
1145
|
+
/** InvalidJupiterRoute: Invalid jupiter route was provided */
|
|
1146
|
+
declare const SATRUSH_ERROR__INVALID_JUPITER_ROUTE = 6021;
|
|
1147
|
+
/** InvalidShareAmount: Share amount must be greater than zero */
|
|
1148
|
+
declare const SATRUSH_ERROR__INVALID_SHARE_AMOUNT = 6022;
|
|
1149
|
+
/** InsufficientShares: Miner does not hold enough Sats Vault shares */
|
|
1150
|
+
declare const SATRUSH_ERROR__INSUFFICIENT_SHARES = 6023;
|
|
1151
|
+
/** StrikeAlreadyTriggered: Strike jackpot was already triggered on the provided round */
|
|
1152
|
+
declare const SATRUSH_ERROR__STRIKE_ALREADY_TRIGGERED = 6024;
|
|
1153
|
+
/** StrikeBelowThreshold: Strike pending balance is below the swap threshold */
|
|
1154
|
+
declare const SATRUSH_ERROR__STRIKE_BELOW_THRESHOLD = 6025;
|
|
1155
|
+
/** EpochNotOpen: Epoch iteration is not accepting ticket purchases */
|
|
1156
|
+
declare const SATRUSH_ERROR__EPOCH_NOT_OPEN = 6026;
|
|
1157
|
+
/** EpochWindowNotElapsed: Epoch iteration window has not elapsed yet */
|
|
1158
|
+
declare const SATRUSH_ERROR__EPOCH_WINDOW_NOT_ELAPSED = 6027;
|
|
1159
|
+
/** EpochBelowThreshold: Epoch pending balance is below the swap threshold */
|
|
1160
|
+
declare const SATRUSH_ERROR__EPOCH_BELOW_THRESHOLD = 6028;
|
|
1161
|
+
/** EpochNotSettling: Epoch iteration is not in the settling state */
|
|
1162
|
+
declare const SATRUSH_ERROR__EPOCH_NOT_SETTLING = 6029;
|
|
1163
|
+
/** EpochNotSettled: Epoch iteration is not in the settled state */
|
|
1164
|
+
declare const SATRUSH_ERROR__EPOCH_NOT_SETTLED = 6030;
|
|
1165
|
+
/** EpochInvalidPage: Supplied page does not contain the current winning ticket */
|
|
1166
|
+
declare const SATRUSH_ERROR__EPOCH_INVALID_PAGE = 6031;
|
|
1167
|
+
/** EpochNotAWinner: Signer is not a winner of this epoch draw */
|
|
1168
|
+
declare const SATRUSH_ERROR__EPOCH_NOT_A_WINNER = 6032;
|
|
1169
|
+
/** EpochAlreadyClaimed: Epoch reward has already been claimed */
|
|
1170
|
+
declare const SATRUSH_ERROR__EPOCH_ALREADY_CLAIMED = 6033;
|
|
1171
|
+
/** EpochMaxParticipants: Epoch iteration has reached the maximum number of participants */
|
|
1172
|
+
declare const SATRUSH_ERROR__EPOCH_MAX_PARTICIPANTS = 6034;
|
|
1173
|
+
/** EpochBelowMinHashrate: Hashrate spent is below the minimum required for entry */
|
|
1174
|
+
declare const SATRUSH_ERROR__EPOCH_BELOW_MIN_HASHRATE = 6035;
|
|
1175
|
+
/** InsufficientHashrate: Miner does not have enough hashrate */
|
|
1176
|
+
declare const SATRUSH_ERROR__INSUFFICIENT_HASHRATE = 6036;
|
|
1177
|
+
/** OneBtcNotOpen: 1 BTC Vault iteration is not accepting ticket purchases */
|
|
1178
|
+
declare const SATRUSH_ERROR__ONE_BTC_NOT_OPEN = 6037;
|
|
1179
|
+
/** OneBtcNotSettled: 1 BTC Vault iteration is not in the settled state */
|
|
1180
|
+
declare const SATRUSH_ERROR__ONE_BTC_NOT_SETTLED = 6038;
|
|
1181
|
+
/** OneBtcBelowThreshold: 1 BTC Vault pending balance is below the swap threshold */
|
|
1182
|
+
declare const SATRUSH_ERROR__ONE_BTC_BELOW_THRESHOLD = 6039;
|
|
1183
|
+
/** OneBtcNotTriggerable: 1 BTC Vault has not accumulated enough BTC to trigger a draw */
|
|
1184
|
+
declare const SATRUSH_ERROR__ONE_BTC_NOT_TRIGGERABLE = 6040;
|
|
1185
|
+
/** OneBtcNoParticipants: 1 BTC Vault draw has no participants */
|
|
1186
|
+
declare const SATRUSH_ERROR__ONE_BTC_NO_PARTICIPANTS = 6041;
|
|
1187
|
+
/** OneBtcNotAWinner: Ticket does not hold the winning ticket for this draw */
|
|
1188
|
+
declare const SATRUSH_ERROR__ONE_BTC_NOT_A_WINNER = 6042;
|
|
1189
|
+
/** OneBtcBelowMinHashrate: Hashrate spent is below the minimum required for a ticket purchase */
|
|
1190
|
+
declare const SATRUSH_ERROR__ONE_BTC_BELOW_MIN_HASHRATE = 6043;
|
|
1191
|
+
/** OneBtcWinningTicketLocked: The winning ticket cannot be closed until the prize is claimed */
|
|
1192
|
+
declare const SATRUSH_ERROR__ONE_BTC_WINNING_TICKET_LOCKED = 6044;
|
|
1193
|
+
/** EpochPageAlreadySealed: Epoch page has already been sealed */
|
|
1194
|
+
declare const SATRUSH_ERROR__EPOCH_PAGE_ALREADY_SEALED = 6045;
|
|
1195
|
+
/** EpochPageNotSealed: Epoch page is not sealed yet */
|
|
1196
|
+
declare const SATRUSH_ERROR__EPOCH_PAGE_NOT_SEALED = 6046;
|
|
1197
|
+
/** EpochSealMismatch: Epoch sealed page chain does not reconcile with the iteration's ticket total */
|
|
1198
|
+
declare const SATRUSH_ERROR__EPOCH_SEAL_MISMATCH = 6047;
|
|
1199
|
+
/** TreasuryEmpty: Treasury has no accrued fees to withdraw */
|
|
1200
|
+
declare const SATRUSH_ERROR__TREASURY_EMPTY = 6048;
|
|
1201
|
+
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__INVALID_DEPLOYMENT_AMOUNT | typeof SATRUSH_ERROR__INVALID_ENTROPY | typeof SATRUSH_ERROR__INVALID_JUPITER_ROUTE | 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
|
+
declare function getSatrushErrorMessage(code: SatrushError): string;
|
|
1203
|
+
declare function isSatrushError<TProgramErrorCode extends SatrushError>(error: unknown, transactionMessage: {
|
|
1204
|
+
instructions: Record<number, {
|
|
1205
|
+
programAddress: Address;
|
|
1206
|
+
}>;
|
|
1207
|
+
}, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
|
|
1208
|
+
context: Readonly<{
|
|
1209
|
+
code: TProgramErrorCode;
|
|
1210
|
+
}>;
|
|
1211
|
+
}>;
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1215
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1216
|
+
* to add features, then rerun Codama to update it.
|
|
1217
|
+
*
|
|
1218
|
+
* @see https://github.com/codama-idl/codama
|
|
1219
|
+
*/
|
|
1220
|
+
|
|
1221
|
+
declare function findBoardPda(config?: {
|
|
1222
|
+
programAddress?: Address | undefined;
|
|
1223
|
+
}): Promise<ProgramDerivedAddress>;
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1227
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1228
|
+
* to add features, then rerun Codama to update it.
|
|
1229
|
+
*
|
|
1230
|
+
* @see https://github.com/codama-idl/codama
|
|
1231
|
+
*/
|
|
1232
|
+
|
|
1233
|
+
declare function findEpochVaultPda(config?: {
|
|
1234
|
+
programAddress?: Address | undefined;
|
|
1235
|
+
}): Promise<ProgramDerivedAddress>;
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1239
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1240
|
+
* to add features, then rerun Codama to update it.
|
|
1241
|
+
*
|
|
1242
|
+
* @see https://github.com/codama-idl/codama
|
|
1243
|
+
*/
|
|
1244
|
+
|
|
1245
|
+
declare function findEpochVaultIterationPda(config?: {
|
|
1246
|
+
programAddress?: Address | undefined;
|
|
1247
|
+
}): Promise<ProgramDerivedAddress>;
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1251
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1252
|
+
* to add features, then rerun Codama to update it.
|
|
1253
|
+
*
|
|
1254
|
+
* @see https://github.com/codama-idl/codama
|
|
1255
|
+
*/
|
|
1256
|
+
|
|
1257
|
+
declare function findInitialRoundPda(config?: {
|
|
1258
|
+
programAddress?: Address | undefined;
|
|
1259
|
+
}): Promise<ProgramDerivedAddress>;
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1263
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1264
|
+
* to add features, then rerun Codama to update it.
|
|
1265
|
+
*
|
|
1266
|
+
* @see https://github.com/codama-idl/codama
|
|
1267
|
+
*/
|
|
1268
|
+
|
|
1269
|
+
type MinerSeeds = {
|
|
1270
|
+
authority: Address;
|
|
1271
|
+
};
|
|
1272
|
+
declare function findMinerPda(seeds: MinerSeeds, config?: {
|
|
1273
|
+
programAddress?: Address | undefined;
|
|
1274
|
+
}): Promise<ProgramDerivedAddress>;
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1278
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1279
|
+
* to add features, then rerun Codama to update it.
|
|
1280
|
+
*
|
|
1281
|
+
* @see https://github.com/codama-idl/codama
|
|
1282
|
+
*/
|
|
1283
|
+
|
|
1284
|
+
type NextRoundSeeds = {
|
|
1285
|
+
board: Address;
|
|
1286
|
+
};
|
|
1287
|
+
declare function findNextRoundPda(seeds: NextRoundSeeds, config?: {
|
|
1288
|
+
programAddress?: Address | undefined;
|
|
1289
|
+
}): Promise<ProgramDerivedAddress>;
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1293
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1294
|
+
* to add features, then rerun Codama to update it.
|
|
1295
|
+
*
|
|
1296
|
+
* @see https://github.com/codama-idl/codama
|
|
1297
|
+
*/
|
|
1298
|
+
|
|
1299
|
+
declare function findOneBtcVaultPda(config?: {
|
|
1300
|
+
programAddress?: Address | undefined;
|
|
1301
|
+
}): Promise<ProgramDerivedAddress>;
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1305
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1306
|
+
* to add features, then rerun Codama to update it.
|
|
1307
|
+
*
|
|
1308
|
+
* @see https://github.com/codama-idl/codama
|
|
1309
|
+
*/
|
|
1310
|
+
|
|
1311
|
+
declare function findOneBtcVaultIterationPda(config?: {
|
|
1312
|
+
programAddress?: Address | undefined;
|
|
1313
|
+
}): Promise<ProgramDerivedAddress>;
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1317
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1318
|
+
* to add features, then rerun Codama to update it.
|
|
1319
|
+
*
|
|
1320
|
+
* @see https://github.com/codama-idl/codama
|
|
1321
|
+
*/
|
|
1322
|
+
|
|
1323
|
+
declare function findSatrushConfigPda(config?: {
|
|
1324
|
+
programAddress?: Address | undefined;
|
|
1325
|
+
}): Promise<ProgramDerivedAddress>;
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1329
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1330
|
+
* to add features, then rerun Codama to update it.
|
|
1331
|
+
*
|
|
1332
|
+
* @see https://github.com/codama-idl/codama
|
|
1333
|
+
*/
|
|
1334
|
+
|
|
1335
|
+
declare function findSatsVaultPda(config?: {
|
|
1336
|
+
programAddress?: Address | undefined;
|
|
1337
|
+
}): Promise<ProgramDerivedAddress>;
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1341
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1342
|
+
* to add features, then rerun Codama to update it.
|
|
1343
|
+
*
|
|
1344
|
+
* @see https://github.com/codama-idl/codama
|
|
1345
|
+
*/
|
|
1346
|
+
|
|
1347
|
+
declare function findTreasuryPda(config?: {
|
|
1348
|
+
programAddress?: Address | undefined;
|
|
1349
|
+
}): Promise<ProgramDerivedAddress>;
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1353
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1354
|
+
* to add features, then rerun Codama to update it.
|
|
1355
|
+
*
|
|
1356
|
+
* @see https://github.com/codama-idl/codama
|
|
1357
|
+
*/
|
|
1358
|
+
|
|
1359
|
+
declare const SATRUSH_PROGRAM_ADDRESS: Address<"ADp1CgM1xEhyAoXL7zdqSsbHvR3Ug77iPQvyiQB7XGDE">;
|
|
1360
|
+
declare enum SatrushAccount {
|
|
1361
|
+
Board = 0,
|
|
1362
|
+
EpochVault = 1,
|
|
1363
|
+
EpochVaultEntry = 2,
|
|
1364
|
+
EpochVaultIteration = 3,
|
|
1365
|
+
EpochVaultPage = 4,
|
|
1366
|
+
Miner = 5,
|
|
1367
|
+
OneBtcVault = 6,
|
|
1368
|
+
OneBtcVaultEntry = 7,
|
|
1369
|
+
OneBtcVaultIteration = 8,
|
|
1370
|
+
PublicDeployment = 9,
|
|
1371
|
+
Round = 10,
|
|
1372
|
+
SatrushConfig = 11,
|
|
1373
|
+
SatsVault = 12,
|
|
1374
|
+
Treasury = 13
|
|
1375
|
+
}
|
|
1376
|
+
declare function identifySatrushAccount(account: {
|
|
1377
|
+
data: ReadonlyUint8Array;
|
|
1378
|
+
} | ReadonlyUint8Array): SatrushAccount;
|
|
1379
|
+
declare enum SatrushInstruction {
|
|
1380
|
+
BuyEpochTickets = 0,
|
|
1381
|
+
BuyOneBtcTickets = 1,
|
|
1382
|
+
Claim = 2,
|
|
1383
|
+
ClaimEpochReward = 3,
|
|
1384
|
+
ClaimOneBtcReward = 4,
|
|
1385
|
+
ClaimSats = 5,
|
|
1386
|
+
CloseEpochEntry = 6,
|
|
1387
|
+
CloseEpochIteration = 7,
|
|
1388
|
+
CloseEpochPage = 8,
|
|
1389
|
+
CloseOneBtcIteration = 9,
|
|
1390
|
+
CloseOneBtcTicket = 10,
|
|
1391
|
+
CreateBoard = 11,
|
|
1392
|
+
CreateEpochVault = 12,
|
|
1393
|
+
CreateOneBtcVault = 13,
|
|
1394
|
+
CreateSatrushConfig = 14,
|
|
1395
|
+
CreateSatsVault = 15,
|
|
1396
|
+
CreateTreasury = 16,
|
|
1397
|
+
DeployPublic = 17,
|
|
1398
|
+
RotateRound = 18,
|
|
1399
|
+
SealEpochPage = 19,
|
|
1400
|
+
SelectEpochWinner = 20,
|
|
1401
|
+
SwapEpochStake = 21,
|
|
1402
|
+
SwapOneBtcStake = 22,
|
|
1403
|
+
SwapRoundStake = 23,
|
|
1404
|
+
SwapStrikeStake = 24,
|
|
1405
|
+
TriggerEpochDraw = 25,
|
|
1406
|
+
TriggerOneBtcDraw = 26,
|
|
1407
|
+
WithdrawProtocolFees = 27
|
|
1408
|
+
}
|
|
1409
|
+
declare function identifySatrushInstruction(instruction: {
|
|
1410
|
+
data: ReadonlyUint8Array;
|
|
1411
|
+
} | ReadonlyUint8Array): SatrushInstruction;
|
|
1412
|
+
type ParsedSatrushInstruction<TProgram extends string = 'ADp1CgM1xEhyAoXL7zdqSsbHvR3Ug77iPQvyiQB7XGDE'> = ({
|
|
1413
|
+
instructionType: SatrushInstruction.BuyEpochTickets;
|
|
1414
|
+
} & ParsedBuyEpochTicketsInstruction<TProgram>) | ({
|
|
1415
|
+
instructionType: SatrushInstruction.BuyOneBtcTickets;
|
|
1416
|
+
} & ParsedBuyOneBtcTicketsInstruction<TProgram>) | ({
|
|
1417
|
+
instructionType: SatrushInstruction.Claim;
|
|
1418
|
+
} & ParsedClaimInstruction<TProgram>) | ({
|
|
1419
|
+
instructionType: SatrushInstruction.ClaimEpochReward;
|
|
1420
|
+
} & ParsedClaimEpochRewardInstruction<TProgram>) | ({
|
|
1421
|
+
instructionType: SatrushInstruction.ClaimOneBtcReward;
|
|
1422
|
+
} & ParsedClaimOneBtcRewardInstruction<TProgram>) | ({
|
|
1423
|
+
instructionType: SatrushInstruction.ClaimSats;
|
|
1424
|
+
} & ParsedClaimSatsInstruction<TProgram>) | ({
|
|
1425
|
+
instructionType: SatrushInstruction.CloseEpochEntry;
|
|
1426
|
+
} & ParsedCloseEpochEntryInstruction<TProgram>) | ({
|
|
1427
|
+
instructionType: SatrushInstruction.CloseEpochIteration;
|
|
1428
|
+
} & ParsedCloseEpochIterationInstruction<TProgram>) | ({
|
|
1429
|
+
instructionType: SatrushInstruction.CloseEpochPage;
|
|
1430
|
+
} & ParsedCloseEpochPageInstruction<TProgram>) | ({
|
|
1431
|
+
instructionType: SatrushInstruction.CloseOneBtcIteration;
|
|
1432
|
+
} & ParsedCloseOneBtcIterationInstruction<TProgram>) | ({
|
|
1433
|
+
instructionType: SatrushInstruction.CloseOneBtcTicket;
|
|
1434
|
+
} & ParsedCloseOneBtcTicketInstruction<TProgram>) | ({
|
|
1435
|
+
instructionType: SatrushInstruction.CreateBoard;
|
|
1436
|
+
} & ParsedCreateBoardInstruction<TProgram>) | ({
|
|
1437
|
+
instructionType: SatrushInstruction.CreateEpochVault;
|
|
1438
|
+
} & ParsedCreateEpochVaultInstruction<TProgram>) | ({
|
|
1439
|
+
instructionType: SatrushInstruction.CreateOneBtcVault;
|
|
1440
|
+
} & ParsedCreateOneBtcVaultInstruction<TProgram>) | ({
|
|
1441
|
+
instructionType: SatrushInstruction.CreateSatrushConfig;
|
|
1442
|
+
} & ParsedCreateSatrushConfigInstruction<TProgram>) | ({
|
|
1443
|
+
instructionType: SatrushInstruction.CreateSatsVault;
|
|
1444
|
+
} & ParsedCreateSatsVaultInstruction<TProgram>) | ({
|
|
1445
|
+
instructionType: SatrushInstruction.CreateTreasury;
|
|
1446
|
+
} & ParsedCreateTreasuryInstruction<TProgram>) | ({
|
|
1447
|
+
instructionType: SatrushInstruction.DeployPublic;
|
|
1448
|
+
} & ParsedDeployPublicInstruction<TProgram>) | ({
|
|
1449
|
+
instructionType: SatrushInstruction.RotateRound;
|
|
1450
|
+
} & ParsedRotateRoundInstruction<TProgram>) | ({
|
|
1451
|
+
instructionType: SatrushInstruction.SealEpochPage;
|
|
1452
|
+
} & ParsedSealEpochPageInstruction<TProgram>) | ({
|
|
1453
|
+
instructionType: SatrushInstruction.SelectEpochWinner;
|
|
1454
|
+
} & ParsedSelectEpochWinnerInstruction<TProgram>) | ({
|
|
1455
|
+
instructionType: SatrushInstruction.SwapEpochStake;
|
|
1456
|
+
} & ParsedSwapEpochStakeInstruction<TProgram>) | ({
|
|
1457
|
+
instructionType: SatrushInstruction.SwapOneBtcStake;
|
|
1458
|
+
} & ParsedSwapOneBtcStakeInstruction<TProgram>) | ({
|
|
1459
|
+
instructionType: SatrushInstruction.SwapRoundStake;
|
|
1460
|
+
} & ParsedSwapRoundStakeInstruction<TProgram>) | ({
|
|
1461
|
+
instructionType: SatrushInstruction.SwapStrikeStake;
|
|
1462
|
+
} & ParsedSwapStrikeStakeInstruction<TProgram>) | ({
|
|
1463
|
+
instructionType: SatrushInstruction.TriggerEpochDraw;
|
|
1464
|
+
} & ParsedTriggerEpochDrawInstruction<TProgram>) | ({
|
|
1465
|
+
instructionType: SatrushInstruction.TriggerOneBtcDraw;
|
|
1466
|
+
} & ParsedTriggerOneBtcDrawInstruction<TProgram>) | ({
|
|
1467
|
+
instructionType: SatrushInstruction.WithdrawProtocolFees;
|
|
1468
|
+
} & ParsedWithdrawProtocolFeesInstruction<TProgram>);
|
|
1469
|
+
declare function parseSatrushInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedSatrushInstruction<TProgram>;
|
|
1470
|
+
type SatrushPlugin = {
|
|
1471
|
+
accounts: SatrushPluginAccounts;
|
|
1472
|
+
instructions: SatrushPluginInstructions;
|
|
1473
|
+
pdas: SatrushPluginPdas;
|
|
1474
|
+
identifyAccount: typeof identifySatrushAccount;
|
|
1475
|
+
identifyInstruction: typeof identifySatrushInstruction;
|
|
1476
|
+
parseInstruction: typeof parseSatrushInstruction;
|
|
1477
|
+
};
|
|
1478
|
+
type SatrushPluginAccounts = {
|
|
1479
|
+
board: ReturnType<typeof getBoardCodec> & SelfFetchFunctions<BoardArgs, Board>;
|
|
1480
|
+
epochVault: ReturnType<typeof getEpochVaultCodec> & SelfFetchFunctions<EpochVaultArgs, EpochVault>;
|
|
1481
|
+
epochVaultEntry: ReturnType<typeof getEpochVaultEntryCodec> & SelfFetchFunctions<EpochVaultEntryArgs, EpochVaultEntry>;
|
|
1482
|
+
epochVaultIteration: ReturnType<typeof getEpochVaultIterationCodec> & SelfFetchFunctions<EpochVaultIterationArgs, EpochVaultIteration>;
|
|
1483
|
+
epochVaultPage: ReturnType<typeof getEpochVaultPageCodec> & SelfFetchFunctions<EpochVaultPageArgs, EpochVaultPage>;
|
|
1484
|
+
miner: ReturnType<typeof getMinerCodec> & SelfFetchFunctions<MinerArgs, Miner>;
|
|
1485
|
+
oneBtcVault: ReturnType<typeof getOneBtcVaultCodec> & SelfFetchFunctions<OneBtcVaultArgs, OneBtcVault>;
|
|
1486
|
+
oneBtcVaultEntry: ReturnType<typeof getOneBtcVaultEntryCodec> & SelfFetchFunctions<OneBtcVaultEntryArgs, OneBtcVaultEntry>;
|
|
1487
|
+
oneBtcVaultIteration: ReturnType<typeof getOneBtcVaultIterationCodec> & SelfFetchFunctions<OneBtcVaultIterationArgs, OneBtcVaultIteration>;
|
|
1488
|
+
publicDeployment: ReturnType<typeof getPublicDeploymentCodec> & SelfFetchFunctions<PublicDeploymentArgs, PublicDeployment>;
|
|
1489
|
+
round: ReturnType<typeof getRoundCodec> & SelfFetchFunctions<RoundArgs, Round>;
|
|
1490
|
+
satrushConfig: ReturnType<typeof getSatrushConfigCodec> & SelfFetchFunctions<SatrushConfigArgs, SatrushConfig>;
|
|
1491
|
+
satsVault: ReturnType<typeof getSatsVaultCodec> & SelfFetchFunctions<SatsVaultArgs, SatsVault>;
|
|
1492
|
+
treasury: ReturnType<typeof getTreasuryCodec> & SelfFetchFunctions<TreasuryArgs, Treasury>;
|
|
1493
|
+
};
|
|
1494
|
+
type SatrushPluginInstructions = {
|
|
1495
|
+
buyEpochTickets: (input: BuyEpochTicketsAsyncInput) => ReturnType<typeof getBuyEpochTicketsInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1496
|
+
buyOneBtcTickets: (input: BuyOneBtcTicketsAsyncInput) => ReturnType<typeof getBuyOneBtcTicketsInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1497
|
+
claim: (input: ClaimAsyncInput) => ReturnType<typeof getClaimInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1498
|
+
claimEpochReward: (input: ClaimEpochRewardAsyncInput) => ReturnType<typeof getClaimEpochRewardInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1499
|
+
claimOneBtcReward: (input: ClaimOneBtcRewardAsyncInput) => ReturnType<typeof getClaimOneBtcRewardInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1500
|
+
claimSats: (input: ClaimSatsAsyncInput) => ReturnType<typeof getClaimSatsInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1501
|
+
closeEpochEntry: (input: CloseEpochEntryAsyncInput) => ReturnType<typeof getCloseEpochEntryInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1502
|
+
closeEpochIteration: (input: CloseEpochIterationAsyncInput) => ReturnType<typeof getCloseEpochIterationInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1503
|
+
closeEpochPage: (input: CloseEpochPageAsyncInput) => ReturnType<typeof getCloseEpochPageInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1504
|
+
closeOneBtcIteration: (input: CloseOneBtcIterationAsyncInput) => ReturnType<typeof getCloseOneBtcIterationInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1505
|
+
closeOneBtcTicket: (input: CloseOneBtcTicketInput) => ReturnType<typeof getCloseOneBtcTicketInstruction> & SelfPlanAndSendFunctions;
|
|
1506
|
+
createBoard: (input: CreateBoardAsyncInput) => ReturnType<typeof getCreateBoardInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1507
|
+
createEpochVault: (input: CreateEpochVaultAsyncInput) => ReturnType<typeof getCreateEpochVaultInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1508
|
+
createOneBtcVault: (input: CreateOneBtcVaultAsyncInput) => ReturnType<typeof getCreateOneBtcVaultInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1509
|
+
createSatrushConfig: (input: CreateSatrushConfigAsyncInput) => ReturnType<typeof getCreateSatrushConfigInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1510
|
+
createSatsVault: (input: CreateSatsVaultAsyncInput) => ReturnType<typeof getCreateSatsVaultInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1511
|
+
createTreasury: (input: CreateTreasuryAsyncInput) => ReturnType<typeof getCreateTreasuryInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1512
|
+
deployPublic: (input: DeployPublicAsyncInput) => ReturnType<typeof getDeployPublicInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1513
|
+
rotateRound: (input: RotateRoundAsyncInput) => ReturnType<typeof getRotateRoundInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1514
|
+
sealEpochPage: (input: SealEpochPageAsyncInput) => ReturnType<typeof getSealEpochPageInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1515
|
+
selectEpochWinner: (input: SelectEpochWinnerAsyncInput) => ReturnType<typeof getSelectEpochWinnerInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1516
|
+
swapEpochStake: (input: SwapEpochStakeAsyncInput) => ReturnType<typeof getSwapEpochStakeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1517
|
+
swapOneBtcStake: (input: SwapOneBtcStakeAsyncInput) => ReturnType<typeof getSwapOneBtcStakeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1518
|
+
swapRoundStake: (input: SwapRoundStakeAsyncInput) => ReturnType<typeof getSwapRoundStakeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1519
|
+
swapStrikeStake: (input: SwapStrikeStakeAsyncInput) => ReturnType<typeof getSwapStrikeStakeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1520
|
+
triggerEpochDraw: (input: TriggerEpochDrawAsyncInput) => ReturnType<typeof getTriggerEpochDrawInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1521
|
+
triggerOneBtcDraw: (input: TriggerOneBtcDrawAsyncInput) => ReturnType<typeof getTriggerOneBtcDrawInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1522
|
+
withdrawProtocolFees: (input: WithdrawProtocolFeesAsyncInput) => ReturnType<typeof getWithdrawProtocolFeesInstructionAsync> & SelfPlanAndSendFunctions;
|
|
1523
|
+
};
|
|
1524
|
+
type SatrushPluginPdas = {
|
|
1525
|
+
miner: typeof findMinerPda;
|
|
1526
|
+
epochVault: typeof findEpochVaultPda;
|
|
1527
|
+
oneBtcVault: typeof findOneBtcVaultPda;
|
|
1528
|
+
satrushConfig: typeof findSatrushConfigPda;
|
|
1529
|
+
board: typeof findBoardPda;
|
|
1530
|
+
satsVault: typeof findSatsVaultPda;
|
|
1531
|
+
initialRound: typeof findInitialRoundPda;
|
|
1532
|
+
epochVaultIteration: typeof findEpochVaultIterationPda;
|
|
1533
|
+
oneBtcVaultIteration: typeof findOneBtcVaultIterationPda;
|
|
1534
|
+
treasury: typeof findTreasuryPda;
|
|
1535
|
+
nextRound: typeof findNextRoundPda;
|
|
1536
|
+
};
|
|
1537
|
+
type SatrushPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithTransactionPlanning & ClientWithTransactionSending;
|
|
1538
|
+
declare function satrushProgram(): <T extends SatrushPluginRequirements>(client: T) => ExtendedClient<T, {
|
|
1539
|
+
satrush: SatrushPlugin;
|
|
1540
|
+
}>;
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1544
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1545
|
+
* to add features, then rerun Codama to update it.
|
|
1546
|
+
*
|
|
1547
|
+
* @see https://github.com/codama-idl/codama
|
|
1548
|
+
*/
|
|
1549
|
+
|
|
1550
|
+
declare const BUY_EPOCH_TICKETS_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1551
|
+
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<[
|
|
1553
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
1554
|
+
TAccountMiner extends string ? WritableAccount<TAccountMiner> : TAccountMiner,
|
|
1555
|
+
TAccountEpochVault extends string ? ReadonlyAccount<TAccountEpochVault> : TAccountEpochVault,
|
|
1556
|
+
TAccountEpochVaultIteration extends string ? WritableAccount<TAccountEpochVaultIteration> : TAccountEpochVaultIteration,
|
|
1557
|
+
TAccountEpochVaultPage extends string ? WritableAccount<TAccountEpochVaultPage> : TAccountEpochVaultPage,
|
|
1558
|
+
TAccountEpochVaultEntry extends string ? WritableAccount<TAccountEpochVaultEntry> : TAccountEpochVaultEntry,
|
|
1559
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1560
|
+
...TRemainingAccounts
|
|
1561
|
+
]>;
|
|
1562
|
+
type BuyEpochTicketsInstructionData = {
|
|
1563
|
+
discriminator: ReadonlyUint8Array;
|
|
1564
|
+
hashrateToSpend: bigint;
|
|
1565
|
+
pageIndex: number;
|
|
1566
|
+
};
|
|
1567
|
+
type BuyEpochTicketsInstructionDataArgs = {
|
|
1568
|
+
hashrateToSpend: number | bigint;
|
|
1569
|
+
pageIndex: number;
|
|
1570
|
+
};
|
|
1571
|
+
declare function getBuyEpochTicketsInstructionDataEncoder(): FixedSizeEncoder<BuyEpochTicketsInstructionDataArgs>;
|
|
1572
|
+
declare function getBuyEpochTicketsInstructionDataDecoder(): FixedSizeDecoder<BuyEpochTicketsInstructionData>;
|
|
1573
|
+
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> = {
|
|
1575
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
1576
|
+
miner?: Address<TAccountMiner>;
|
|
1577
|
+
epochVault?: Address<TAccountEpochVault>;
|
|
1578
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
1579
|
+
epochVaultPage: Address<TAccountEpochVaultPage>;
|
|
1580
|
+
epochVaultEntry: Address<TAccountEpochVaultEntry>;
|
|
1581
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1582
|
+
hashrateToSpend: BuyEpochTicketsInstructionDataArgs['hashrateToSpend'];
|
|
1583
|
+
pageIndex: BuyEpochTicketsInstructionDataArgs['pageIndex'];
|
|
1584
|
+
};
|
|
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?: {
|
|
1586
|
+
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> = {
|
|
1589
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
1590
|
+
miner: Address<TAccountMiner>;
|
|
1591
|
+
epochVault: Address<TAccountEpochVault>;
|
|
1592
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
1593
|
+
epochVaultPage: Address<TAccountEpochVaultPage>;
|
|
1594
|
+
epochVaultEntry: Address<TAccountEpochVaultEntry>;
|
|
1595
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1596
|
+
hashrateToSpend: BuyEpochTicketsInstructionDataArgs['hashrateToSpend'];
|
|
1597
|
+
pageIndex: BuyEpochTicketsInstructionDataArgs['pageIndex'];
|
|
1598
|
+
};
|
|
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?: {
|
|
1600
|
+
programAddress?: TProgramAddress;
|
|
1601
|
+
}): BuyEpochTicketsInstruction<TProgramAddress, TAccountAuthority, TAccountMiner, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountEpochVaultEntry, TAccountSystemProgram>;
|
|
1602
|
+
type ParsedBuyEpochTicketsInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1603
|
+
programAddress: Address<TProgram>;
|
|
1604
|
+
accounts: {
|
|
1605
|
+
authority: TAccountMetas[0];
|
|
1606
|
+
miner: TAccountMetas[1];
|
|
1607
|
+
epochVault: TAccountMetas[2];
|
|
1608
|
+
epochVaultIteration: TAccountMetas[3];
|
|
1609
|
+
epochVaultPage: TAccountMetas[4];
|
|
1610
|
+
epochVaultEntry: TAccountMetas[5];
|
|
1611
|
+
systemProgram: TAccountMetas[6];
|
|
1612
|
+
};
|
|
1613
|
+
data: BuyEpochTicketsInstructionData;
|
|
1614
|
+
};
|
|
1615
|
+
declare function parseBuyEpochTicketsInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyEpochTicketsInstruction<TProgram, TAccountMetas>;
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1619
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1620
|
+
* to add features, then rerun Codama to update it.
|
|
1621
|
+
*
|
|
1622
|
+
* @see https://github.com/codama-idl/codama
|
|
1623
|
+
*/
|
|
1624
|
+
|
|
1625
|
+
declare const BUY_ONE_BTC_TICKETS_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1626
|
+
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<[
|
|
1628
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
1629
|
+
TAccountMiner extends string ? WritableAccount<TAccountMiner> : TAccountMiner,
|
|
1630
|
+
TAccountOneBtcVault extends string ? ReadonlyAccount<TAccountOneBtcVault> : TAccountOneBtcVault,
|
|
1631
|
+
TAccountOneBtcVaultIteration extends string ? WritableAccount<TAccountOneBtcVaultIteration> : TAccountOneBtcVaultIteration,
|
|
1632
|
+
TAccountTicket extends string ? WritableSignerAccount<TAccountTicket> & AccountSignerMeta<TAccountTicket> : TAccountTicket,
|
|
1633
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1634
|
+
...TRemainingAccounts
|
|
1635
|
+
]>;
|
|
1636
|
+
type BuyOneBtcTicketsInstructionData = {
|
|
1637
|
+
discriminator: ReadonlyUint8Array;
|
|
1638
|
+
hashrateToSpend: bigint;
|
|
1639
|
+
};
|
|
1640
|
+
type BuyOneBtcTicketsInstructionDataArgs = {
|
|
1641
|
+
hashrateToSpend: number | bigint;
|
|
1642
|
+
};
|
|
1643
|
+
declare function getBuyOneBtcTicketsInstructionDataEncoder(): FixedSizeEncoder<BuyOneBtcTicketsInstructionDataArgs>;
|
|
1644
|
+
declare function getBuyOneBtcTicketsInstructionDataDecoder(): FixedSizeDecoder<BuyOneBtcTicketsInstructionData>;
|
|
1645
|
+
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> = {
|
|
1647
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
1648
|
+
miner?: Address<TAccountMiner>;
|
|
1649
|
+
oneBtcVault?: Address<TAccountOneBtcVault>;
|
|
1650
|
+
oneBtcVaultIteration: Address<TAccountOneBtcVaultIteration>;
|
|
1651
|
+
/** Fresh non-PDA receipt account created for this purchase (must sign). */
|
|
1652
|
+
ticket: TransactionSigner<TAccountTicket>;
|
|
1653
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1654
|
+
hashrateToSpend: BuyOneBtcTicketsInstructionDataArgs['hashrateToSpend'];
|
|
1655
|
+
};
|
|
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?: {
|
|
1657
|
+
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> = {
|
|
1660
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
1661
|
+
miner: Address<TAccountMiner>;
|
|
1662
|
+
oneBtcVault: Address<TAccountOneBtcVault>;
|
|
1663
|
+
oneBtcVaultIteration: Address<TAccountOneBtcVaultIteration>;
|
|
1664
|
+
/** Fresh non-PDA receipt account created for this purchase (must sign). */
|
|
1665
|
+
ticket: TransactionSigner<TAccountTicket>;
|
|
1666
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1667
|
+
hashrateToSpend: BuyOneBtcTicketsInstructionDataArgs['hashrateToSpend'];
|
|
1668
|
+
};
|
|
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?: {
|
|
1670
|
+
programAddress?: TProgramAddress;
|
|
1671
|
+
}): BuyOneBtcTicketsInstruction<TProgramAddress, TAccountAuthority, TAccountMiner, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountTicket, TAccountSystemProgram>;
|
|
1672
|
+
type ParsedBuyOneBtcTicketsInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1673
|
+
programAddress: Address<TProgram>;
|
|
1674
|
+
accounts: {
|
|
1675
|
+
authority: TAccountMetas[0];
|
|
1676
|
+
miner: TAccountMetas[1];
|
|
1677
|
+
oneBtcVault: TAccountMetas[2];
|
|
1678
|
+
oneBtcVaultIteration: TAccountMetas[3];
|
|
1679
|
+
/** Fresh non-PDA receipt account created for this purchase (must sign). */
|
|
1680
|
+
ticket: TAccountMetas[4];
|
|
1681
|
+
systemProgram: TAccountMetas[5];
|
|
1682
|
+
};
|
|
1683
|
+
data: BuyOneBtcTicketsInstructionData;
|
|
1684
|
+
};
|
|
1685
|
+
declare function parseBuyOneBtcTicketsInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyOneBtcTicketsInstruction<TProgram, TAccountMetas>;
|
|
1686
|
+
|
|
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
|
+
/**
|
|
1824
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1825
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1826
|
+
* to add features, then rerun Codama to update it.
|
|
1827
|
+
*
|
|
1828
|
+
* @see https://github.com/codama-idl/codama
|
|
1829
|
+
*/
|
|
1830
|
+
|
|
1831
|
+
declare const CLAIM_EPOCH_REWARD_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1832
|
+
declare function getClaimEpochRewardDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1833
|
+
type ClaimEpochRewardInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountEpochVault extends string | AccountMeta<string> = string, TAccountEpochVaultIteration extends string | AccountMeta<string> = string, TAccountUsdMint extends string | AccountMeta<string> = string, TAccountBtcMint extends string | AccountMeta<string> = string, TAccountEpochVaultUsdAta extends string | AccountMeta<string> = string, TAccountEpochVaultBtcAta extends string | AccountMeta<string> = string, TAccountAuthorityUsdAta extends string | AccountMeta<string> = string, TAccountAuthorityBtcAta 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<[
|
|
1834
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
1835
|
+
TAccountEpochVault extends string ? WritableAccount<TAccountEpochVault> : TAccountEpochVault,
|
|
1836
|
+
TAccountEpochVaultIteration extends string ? WritableAccount<TAccountEpochVaultIteration> : TAccountEpochVaultIteration,
|
|
1837
|
+
TAccountUsdMint extends string ? ReadonlyAccount<TAccountUsdMint> : TAccountUsdMint,
|
|
1838
|
+
TAccountBtcMint extends string ? ReadonlyAccount<TAccountBtcMint> : TAccountBtcMint,
|
|
1839
|
+
TAccountEpochVaultUsdAta extends string ? WritableAccount<TAccountEpochVaultUsdAta> : TAccountEpochVaultUsdAta,
|
|
1840
|
+
TAccountEpochVaultBtcAta extends string ? WritableAccount<TAccountEpochVaultBtcAta> : TAccountEpochVaultBtcAta,
|
|
1841
|
+
TAccountAuthorityUsdAta extends string ? WritableAccount<TAccountAuthorityUsdAta> : TAccountAuthorityUsdAta,
|
|
1842
|
+
TAccountAuthorityBtcAta extends string ? WritableAccount<TAccountAuthorityBtcAta> : TAccountAuthorityBtcAta,
|
|
1843
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
1844
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
1845
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1846
|
+
...TRemainingAccounts
|
|
1847
|
+
]>;
|
|
1848
|
+
type ClaimEpochRewardInstructionData = {
|
|
1849
|
+
discriminator: ReadonlyUint8Array;
|
|
1850
|
+
};
|
|
1851
|
+
type ClaimEpochRewardInstructionDataArgs = {};
|
|
1852
|
+
declare function getClaimEpochRewardInstructionDataEncoder(): FixedSizeEncoder<ClaimEpochRewardInstructionDataArgs>;
|
|
1853
|
+
declare function getClaimEpochRewardInstructionDataDecoder(): FixedSizeDecoder<ClaimEpochRewardInstructionData>;
|
|
1854
|
+
declare function getClaimEpochRewardInstructionDataCodec(): FixedSizeCodec<ClaimEpochRewardInstructionDataArgs, ClaimEpochRewardInstructionData>;
|
|
1855
|
+
type ClaimEpochRewardAsyncInput<TAccountAuthority extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultIteration extends string = string, TAccountUsdMint extends string = string, TAccountBtcMint extends string = string, TAccountEpochVaultUsdAta extends string = string, TAccountEpochVaultBtcAta extends string = string, TAccountAuthorityUsdAta extends string = string, TAccountAuthorityBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1856
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
1857
|
+
epochVault?: Address<TAccountEpochVault>;
|
|
1858
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
1859
|
+
usdMint: Address<TAccountUsdMint>;
|
|
1860
|
+
btcMint: Address<TAccountBtcMint>;
|
|
1861
|
+
epochVaultUsdAta?: Address<TAccountEpochVaultUsdAta>;
|
|
1862
|
+
epochVaultBtcAta?: Address<TAccountEpochVaultBtcAta>;
|
|
1863
|
+
authorityUsdAta?: Address<TAccountAuthorityUsdAta>;
|
|
1864
|
+
authorityBtcAta?: Address<TAccountAuthorityBtcAta>;
|
|
1865
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1866
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1867
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1868
|
+
};
|
|
1869
|
+
declare function getClaimEpochRewardInstructionAsync<TAccountAuthority extends string, TAccountEpochVault extends string, TAccountEpochVaultIteration extends string, TAccountUsdMint extends string, TAccountBtcMint extends string, TAccountEpochVaultUsdAta extends string, TAccountEpochVaultBtcAta extends string, TAccountAuthorityUsdAta extends string, TAccountAuthorityBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: ClaimEpochRewardAsyncInput<TAccountAuthority, TAccountEpochVault, TAccountEpochVaultIteration, TAccountUsdMint, TAccountBtcMint, TAccountEpochVaultUsdAta, TAccountEpochVaultBtcAta, TAccountAuthorityUsdAta, TAccountAuthorityBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
1870
|
+
programAddress?: TProgramAddress;
|
|
1871
|
+
}): Promise<ClaimEpochRewardInstruction<TProgramAddress, TAccountAuthority, TAccountEpochVault, TAccountEpochVaultIteration, TAccountUsdMint, TAccountBtcMint, TAccountEpochVaultUsdAta, TAccountEpochVaultBtcAta, TAccountAuthorityUsdAta, TAccountAuthorityBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
1872
|
+
type ClaimEpochRewardInput<TAccountAuthority extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultIteration extends string = string, TAccountUsdMint extends string = string, TAccountBtcMint extends string = string, TAccountEpochVaultUsdAta extends string = string, TAccountEpochVaultBtcAta extends string = string, TAccountAuthorityUsdAta extends string = string, TAccountAuthorityBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1873
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
1874
|
+
epochVault: Address<TAccountEpochVault>;
|
|
1875
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
1876
|
+
usdMint: Address<TAccountUsdMint>;
|
|
1877
|
+
btcMint: Address<TAccountBtcMint>;
|
|
1878
|
+
epochVaultUsdAta: Address<TAccountEpochVaultUsdAta>;
|
|
1879
|
+
epochVaultBtcAta: Address<TAccountEpochVaultBtcAta>;
|
|
1880
|
+
authorityUsdAta: Address<TAccountAuthorityUsdAta>;
|
|
1881
|
+
authorityBtcAta: Address<TAccountAuthorityBtcAta>;
|
|
1882
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1883
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1884
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1885
|
+
};
|
|
1886
|
+
declare function getClaimEpochRewardInstruction<TAccountAuthority extends string, TAccountEpochVault extends string, TAccountEpochVaultIteration extends string, TAccountUsdMint extends string, TAccountBtcMint extends string, TAccountEpochVaultUsdAta extends string, TAccountEpochVaultBtcAta extends string, TAccountAuthorityUsdAta extends string, TAccountAuthorityBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: ClaimEpochRewardInput<TAccountAuthority, TAccountEpochVault, TAccountEpochVaultIteration, TAccountUsdMint, TAccountBtcMint, TAccountEpochVaultUsdAta, TAccountEpochVaultBtcAta, TAccountAuthorityUsdAta, TAccountAuthorityBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
1887
|
+
programAddress?: TProgramAddress;
|
|
1888
|
+
}): ClaimEpochRewardInstruction<TProgramAddress, TAccountAuthority, TAccountEpochVault, TAccountEpochVaultIteration, TAccountUsdMint, TAccountBtcMint, TAccountEpochVaultUsdAta, TAccountEpochVaultBtcAta, TAccountAuthorityUsdAta, TAccountAuthorityBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
1889
|
+
type ParsedClaimEpochRewardInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1890
|
+
programAddress: Address<TProgram>;
|
|
1891
|
+
accounts: {
|
|
1892
|
+
authority: TAccountMetas[0];
|
|
1893
|
+
epochVault: TAccountMetas[1];
|
|
1894
|
+
epochVaultIteration: TAccountMetas[2];
|
|
1895
|
+
usdMint: TAccountMetas[3];
|
|
1896
|
+
btcMint: TAccountMetas[4];
|
|
1897
|
+
epochVaultUsdAta: TAccountMetas[5];
|
|
1898
|
+
epochVaultBtcAta: TAccountMetas[6];
|
|
1899
|
+
authorityUsdAta: TAccountMetas[7];
|
|
1900
|
+
authorityBtcAta: TAccountMetas[8];
|
|
1901
|
+
tokenProgram: TAccountMetas[9];
|
|
1902
|
+
associatedTokenProgram: TAccountMetas[10];
|
|
1903
|
+
systemProgram: TAccountMetas[11];
|
|
1904
|
+
};
|
|
1905
|
+
data: ClaimEpochRewardInstructionData;
|
|
1906
|
+
};
|
|
1907
|
+
declare function parseClaimEpochRewardInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimEpochRewardInstruction<TProgram, TAccountMetas>;
|
|
1908
|
+
|
|
1909
|
+
/**
|
|
1910
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1911
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1912
|
+
* to add features, then rerun Codama to update it.
|
|
1913
|
+
*
|
|
1914
|
+
* @see https://github.com/codama-idl/codama
|
|
1915
|
+
*/
|
|
1916
|
+
|
|
1917
|
+
declare const CLAIM_ONE_BTC_REWARD_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1918
|
+
declare function getClaimOneBtcRewardDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1919
|
+
type ClaimOneBtcRewardInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountOneBtcVault extends string | AccountMeta<string> = string, TAccountOneBtcVaultIteration extends string | AccountMeta<string> = string, TAccountTicket extends string | AccountMeta<string> = string, TAccountBtcMint extends string | AccountMeta<string> = string, TAccountOneBtcVaultBtcAta extends string | AccountMeta<string> = string, TAccountAuthorityBtcAta 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<[
|
|
1920
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
1921
|
+
TAccountOneBtcVault extends string ? WritableAccount<TAccountOneBtcVault> : TAccountOneBtcVault,
|
|
1922
|
+
TAccountOneBtcVaultIteration extends string ? WritableAccount<TAccountOneBtcVaultIteration> : TAccountOneBtcVaultIteration,
|
|
1923
|
+
TAccountTicket extends string ? ReadonlyAccount<TAccountTicket> : TAccountTicket,
|
|
1924
|
+
TAccountBtcMint extends string ? ReadonlyAccount<TAccountBtcMint> : TAccountBtcMint,
|
|
1925
|
+
TAccountOneBtcVaultBtcAta extends string ? WritableAccount<TAccountOneBtcVaultBtcAta> : TAccountOneBtcVaultBtcAta,
|
|
1926
|
+
TAccountAuthorityBtcAta extends string ? WritableAccount<TAccountAuthorityBtcAta> : TAccountAuthorityBtcAta,
|
|
1927
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
1928
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
1929
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1930
|
+
...TRemainingAccounts
|
|
1931
|
+
]>;
|
|
1932
|
+
type ClaimOneBtcRewardInstructionData = {
|
|
1933
|
+
discriminator: ReadonlyUint8Array;
|
|
1934
|
+
};
|
|
1935
|
+
type ClaimOneBtcRewardInstructionDataArgs = {};
|
|
1936
|
+
declare function getClaimOneBtcRewardInstructionDataEncoder(): FixedSizeEncoder<ClaimOneBtcRewardInstructionDataArgs>;
|
|
1937
|
+
declare function getClaimOneBtcRewardInstructionDataDecoder(): FixedSizeDecoder<ClaimOneBtcRewardInstructionData>;
|
|
1938
|
+
declare function getClaimOneBtcRewardInstructionDataCodec(): FixedSizeCodec<ClaimOneBtcRewardInstructionDataArgs, ClaimOneBtcRewardInstructionData>;
|
|
1939
|
+
type ClaimOneBtcRewardAsyncInput<TAccountAuthority extends string = string, TAccountOneBtcVault extends string = string, TAccountOneBtcVaultIteration extends string = string, TAccountTicket extends string = string, TAccountBtcMint extends string = string, TAccountOneBtcVaultBtcAta extends string = string, TAccountAuthorityBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1940
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
1941
|
+
oneBtcVault?: Address<TAccountOneBtcVault>;
|
|
1942
|
+
oneBtcVaultIteration: Address<TAccountOneBtcVaultIteration>;
|
|
1943
|
+
/** The winning receipt: must belong to the signer and this iteration. */
|
|
1944
|
+
ticket: Address<TAccountTicket>;
|
|
1945
|
+
btcMint: Address<TAccountBtcMint>;
|
|
1946
|
+
oneBtcVaultBtcAta?: Address<TAccountOneBtcVaultBtcAta>;
|
|
1947
|
+
authorityBtcAta?: Address<TAccountAuthorityBtcAta>;
|
|
1948
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1949
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1950
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1951
|
+
};
|
|
1952
|
+
declare function getClaimOneBtcRewardInstructionAsync<TAccountAuthority extends string, TAccountOneBtcVault extends string, TAccountOneBtcVaultIteration extends string, TAccountTicket extends string, TAccountBtcMint extends string, TAccountOneBtcVaultBtcAta extends string, TAccountAuthorityBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: ClaimOneBtcRewardAsyncInput<TAccountAuthority, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountTicket, TAccountBtcMint, TAccountOneBtcVaultBtcAta, TAccountAuthorityBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
1953
|
+
programAddress?: TProgramAddress;
|
|
1954
|
+
}): Promise<ClaimOneBtcRewardInstruction<TProgramAddress, TAccountAuthority, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountTicket, TAccountBtcMint, TAccountOneBtcVaultBtcAta, TAccountAuthorityBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
1955
|
+
type ClaimOneBtcRewardInput<TAccountAuthority extends string = string, TAccountOneBtcVault extends string = string, TAccountOneBtcVaultIteration extends string = string, TAccountTicket extends string = string, TAccountBtcMint extends string = string, TAccountOneBtcVaultBtcAta extends string = string, TAccountAuthorityBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1956
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
1957
|
+
oneBtcVault: Address<TAccountOneBtcVault>;
|
|
1958
|
+
oneBtcVaultIteration: Address<TAccountOneBtcVaultIteration>;
|
|
1959
|
+
/** The winning receipt: must belong to the signer and this iteration. */
|
|
1960
|
+
ticket: Address<TAccountTicket>;
|
|
1961
|
+
btcMint: Address<TAccountBtcMint>;
|
|
1962
|
+
oneBtcVaultBtcAta: Address<TAccountOneBtcVaultBtcAta>;
|
|
1963
|
+
authorityBtcAta: Address<TAccountAuthorityBtcAta>;
|
|
1964
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1965
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1966
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1967
|
+
};
|
|
1968
|
+
declare function getClaimOneBtcRewardInstruction<TAccountAuthority extends string, TAccountOneBtcVault extends string, TAccountOneBtcVaultIteration extends string, TAccountTicket extends string, TAccountBtcMint extends string, TAccountOneBtcVaultBtcAta extends string, TAccountAuthorityBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: ClaimOneBtcRewardInput<TAccountAuthority, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountTicket, TAccountBtcMint, TAccountOneBtcVaultBtcAta, TAccountAuthorityBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
1969
|
+
programAddress?: TProgramAddress;
|
|
1970
|
+
}): ClaimOneBtcRewardInstruction<TProgramAddress, TAccountAuthority, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountTicket, TAccountBtcMint, TAccountOneBtcVaultBtcAta, TAccountAuthorityBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
1971
|
+
type ParsedClaimOneBtcRewardInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1972
|
+
programAddress: Address<TProgram>;
|
|
1973
|
+
accounts: {
|
|
1974
|
+
authority: TAccountMetas[0];
|
|
1975
|
+
oneBtcVault: TAccountMetas[1];
|
|
1976
|
+
oneBtcVaultIteration: TAccountMetas[2];
|
|
1977
|
+
/** The winning receipt: must belong to the signer and this iteration. */
|
|
1978
|
+
ticket: TAccountMetas[3];
|
|
1979
|
+
btcMint: TAccountMetas[4];
|
|
1980
|
+
oneBtcVaultBtcAta: TAccountMetas[5];
|
|
1981
|
+
authorityBtcAta: TAccountMetas[6];
|
|
1982
|
+
tokenProgram: TAccountMetas[7];
|
|
1983
|
+
associatedTokenProgram: TAccountMetas[8];
|
|
1984
|
+
systemProgram: TAccountMetas[9];
|
|
1985
|
+
};
|
|
1986
|
+
data: ClaimOneBtcRewardInstructionData;
|
|
1987
|
+
};
|
|
1988
|
+
declare function parseClaimOneBtcRewardInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimOneBtcRewardInstruction<TProgram, TAccountMetas>;
|
|
1989
|
+
|
|
1990
|
+
/**
|
|
1991
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1992
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1993
|
+
* to add features, then rerun Codama to update it.
|
|
1994
|
+
*
|
|
1995
|
+
* @see https://github.com/codama-idl/codama
|
|
1996
|
+
*/
|
|
1997
|
+
|
|
1998
|
+
declare const CLAIM_SATS_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1999
|
+
declare function getClaimSatsDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2000
|
+
type ClaimSatsInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountSatsVault extends string | AccountMeta<string> = string, TAccountMiner extends string | AccountMeta<string> = string, TAccountBtcMint extends string | AccountMeta<string> = string, TAccountSatsVaultBtcAta extends string | AccountMeta<string> = string, TAccountAuthorityBtcAta 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<[
|
|
2001
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2002
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
2003
|
+
TAccountSatsVault extends string ? WritableAccount<TAccountSatsVault> : TAccountSatsVault,
|
|
2004
|
+
TAccountMiner extends string ? WritableAccount<TAccountMiner> : TAccountMiner,
|
|
2005
|
+
TAccountBtcMint extends string ? ReadonlyAccount<TAccountBtcMint> : TAccountBtcMint,
|
|
2006
|
+
TAccountSatsVaultBtcAta extends string ? WritableAccount<TAccountSatsVaultBtcAta> : TAccountSatsVaultBtcAta,
|
|
2007
|
+
TAccountAuthorityBtcAta extends string ? WritableAccount<TAccountAuthorityBtcAta> : TAccountAuthorityBtcAta,
|
|
2008
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2009
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
2010
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2011
|
+
...TRemainingAccounts
|
|
2012
|
+
]>;
|
|
2013
|
+
type ClaimSatsInstructionData = {
|
|
2014
|
+
discriminator: ReadonlyUint8Array;
|
|
2015
|
+
shares: bigint;
|
|
2016
|
+
};
|
|
2017
|
+
type ClaimSatsInstructionDataArgs = {
|
|
2018
|
+
shares: number | bigint;
|
|
2019
|
+
};
|
|
2020
|
+
declare function getClaimSatsInstructionDataEncoder(): FixedSizeEncoder<ClaimSatsInstructionDataArgs>;
|
|
2021
|
+
declare function getClaimSatsInstructionDataDecoder(): FixedSizeDecoder<ClaimSatsInstructionData>;
|
|
2022
|
+
declare function getClaimSatsInstructionDataCodec(): FixedSizeCodec<ClaimSatsInstructionDataArgs, ClaimSatsInstructionData>;
|
|
2023
|
+
type ClaimSatsAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountSatsVault extends string = string, TAccountMiner extends string = string, TAccountBtcMint extends string = string, TAccountSatsVaultBtcAta extends string = string, TAccountAuthorityBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2024
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2025
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
2026
|
+
/** The vault: source of BTC and the authority over its own reserves ATA. */
|
|
2027
|
+
satsVault?: Address<TAccountSatsVault>;
|
|
2028
|
+
/** The redeeming miner's profile; holds the share balance being burned. */
|
|
2029
|
+
miner?: Address<TAccountMiner>;
|
|
2030
|
+
btcMint: Address<TAccountBtcMint>;
|
|
2031
|
+
/** Vault's BTC reserves — the payout source. */
|
|
2032
|
+
satsVaultBtcAta?: Address<TAccountSatsVaultBtcAta>;
|
|
2033
|
+
/** Miner's BTC account — the payout destination. */
|
|
2034
|
+
authorityBtcAta?: Address<TAccountAuthorityBtcAta>;
|
|
2035
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2036
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2037
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2038
|
+
shares: ClaimSatsInstructionDataArgs['shares'];
|
|
2039
|
+
};
|
|
2040
|
+
declare function getClaimSatsInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountSatsVault extends string, TAccountMiner extends string, TAccountBtcMint extends string, TAccountSatsVaultBtcAta extends string, TAccountAuthorityBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: ClaimSatsAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountSatsVault, TAccountMiner, TAccountBtcMint, TAccountSatsVaultBtcAta, TAccountAuthorityBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2041
|
+
programAddress?: TProgramAddress;
|
|
2042
|
+
}): Promise<ClaimSatsInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountSatsVault, TAccountMiner, TAccountBtcMint, TAccountSatsVaultBtcAta, TAccountAuthorityBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
2043
|
+
type ClaimSatsInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountSatsVault extends string = string, TAccountMiner extends string = string, TAccountBtcMint extends string = string, TAccountSatsVaultBtcAta extends string = string, TAccountAuthorityBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2044
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2045
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
2046
|
+
/** The vault: source of BTC and the authority over its own reserves ATA. */
|
|
2047
|
+
satsVault: Address<TAccountSatsVault>;
|
|
2048
|
+
/** The redeeming miner's profile; holds the share balance being burned. */
|
|
2049
|
+
miner: Address<TAccountMiner>;
|
|
2050
|
+
btcMint: Address<TAccountBtcMint>;
|
|
2051
|
+
/** Vault's BTC reserves — the payout source. */
|
|
2052
|
+
satsVaultBtcAta: Address<TAccountSatsVaultBtcAta>;
|
|
2053
|
+
/** Miner's BTC account — the payout destination. */
|
|
2054
|
+
authorityBtcAta: Address<TAccountAuthorityBtcAta>;
|
|
2055
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2056
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2057
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2058
|
+
shares: ClaimSatsInstructionDataArgs['shares'];
|
|
2059
|
+
};
|
|
2060
|
+
declare function getClaimSatsInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountSatsVault extends string, TAccountMiner extends string, TAccountBtcMint extends string, TAccountSatsVaultBtcAta extends string, TAccountAuthorityBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: ClaimSatsInput<TAccountAuthority, TAccountSatrushConfig, TAccountSatsVault, TAccountMiner, TAccountBtcMint, TAccountSatsVaultBtcAta, TAccountAuthorityBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2061
|
+
programAddress?: TProgramAddress;
|
|
2062
|
+
}): ClaimSatsInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountSatsVault, TAccountMiner, TAccountBtcMint, TAccountSatsVaultBtcAta, TAccountAuthorityBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
2063
|
+
type ParsedClaimSatsInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2064
|
+
programAddress: Address<TProgram>;
|
|
2065
|
+
accounts: {
|
|
2066
|
+
authority: TAccountMetas[0];
|
|
2067
|
+
satrushConfig: TAccountMetas[1];
|
|
2068
|
+
/** The vault: source of BTC and the authority over its own reserves ATA. */
|
|
2069
|
+
satsVault: TAccountMetas[2];
|
|
2070
|
+
/** The redeeming miner's profile; holds the share balance being burned. */
|
|
2071
|
+
miner: TAccountMetas[3];
|
|
2072
|
+
btcMint: TAccountMetas[4];
|
|
2073
|
+
/** Vault's BTC reserves — the payout source. */
|
|
2074
|
+
satsVaultBtcAta: TAccountMetas[5];
|
|
2075
|
+
/** Miner's BTC account — the payout destination. */
|
|
2076
|
+
authorityBtcAta: TAccountMetas[6];
|
|
2077
|
+
tokenProgram: TAccountMetas[7];
|
|
2078
|
+
associatedTokenProgram: TAccountMetas[8];
|
|
2079
|
+
systemProgram: TAccountMetas[9];
|
|
2080
|
+
};
|
|
2081
|
+
data: ClaimSatsInstructionData;
|
|
2082
|
+
};
|
|
2083
|
+
declare function parseClaimSatsInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimSatsInstruction<TProgram, TAccountMetas>;
|
|
2084
|
+
|
|
2085
|
+
/**
|
|
2086
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2087
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2088
|
+
* to add features, then rerun Codama to update it.
|
|
2089
|
+
*
|
|
2090
|
+
* @see https://github.com/codama-idl/codama
|
|
2091
|
+
*/
|
|
2092
|
+
|
|
2093
|
+
declare const CLOSE_EPOCH_ENTRY_DISCRIMINATOR: ReadonlyUint8Array;
|
|
2094
|
+
declare function getCloseEpochEntryDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2095
|
+
type CloseEpochEntryInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountEpochVaultIteration extends string | AccountMeta<string> = string, TAccountEpochVaultEntry extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2096
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2097
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
2098
|
+
TAccountEpochVaultIteration extends string ? ReadonlyAccount<TAccountEpochVaultIteration> : TAccountEpochVaultIteration,
|
|
2099
|
+
TAccountEpochVaultEntry extends string ? WritableAccount<TAccountEpochVaultEntry> : TAccountEpochVaultEntry,
|
|
2100
|
+
...TRemainingAccounts
|
|
2101
|
+
]>;
|
|
2102
|
+
type CloseEpochEntryInstructionData = {
|
|
2103
|
+
discriminator: ReadonlyUint8Array;
|
|
2104
|
+
};
|
|
2105
|
+
type CloseEpochEntryInstructionDataArgs = {};
|
|
2106
|
+
declare function getCloseEpochEntryInstructionDataEncoder(): FixedSizeEncoder<CloseEpochEntryInstructionDataArgs>;
|
|
2107
|
+
declare function getCloseEpochEntryInstructionDataDecoder(): FixedSizeDecoder<CloseEpochEntryInstructionData>;
|
|
2108
|
+
declare function getCloseEpochEntryInstructionDataCodec(): FixedSizeCodec<CloseEpochEntryInstructionDataArgs, CloseEpochEntryInstructionData>;
|
|
2109
|
+
type CloseEpochEntryAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVaultIteration extends string = string, TAccountEpochVaultEntry extends string = string> = {
|
|
2110
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2111
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
2112
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
2113
|
+
epochVaultEntry: Address<TAccountEpochVaultEntry>;
|
|
2114
|
+
};
|
|
2115
|
+
declare function getCloseEpochEntryInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVaultIteration extends string, TAccountEpochVaultEntry extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CloseEpochEntryAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVaultIteration, TAccountEpochVaultEntry>, config?: {
|
|
2116
|
+
programAddress?: TProgramAddress;
|
|
2117
|
+
}): Promise<CloseEpochEntryInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVaultIteration, TAccountEpochVaultEntry>>;
|
|
2118
|
+
type CloseEpochEntryInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVaultIteration extends string = string, TAccountEpochVaultEntry extends string = string> = {
|
|
2119
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2120
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
2121
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
2122
|
+
epochVaultEntry: Address<TAccountEpochVaultEntry>;
|
|
2123
|
+
};
|
|
2124
|
+
declare function getCloseEpochEntryInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVaultIteration extends string, TAccountEpochVaultEntry extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CloseEpochEntryInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVaultIteration, TAccountEpochVaultEntry>, config?: {
|
|
2125
|
+
programAddress?: TProgramAddress;
|
|
2126
|
+
}): CloseEpochEntryInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVaultIteration, TAccountEpochVaultEntry>;
|
|
2127
|
+
type ParsedCloseEpochEntryInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2128
|
+
programAddress: Address<TProgram>;
|
|
2129
|
+
accounts: {
|
|
2130
|
+
authority: TAccountMetas[0];
|
|
2131
|
+
satrushConfig: TAccountMetas[1];
|
|
2132
|
+
epochVaultIteration: TAccountMetas[2];
|
|
2133
|
+
epochVaultEntry: TAccountMetas[3];
|
|
2134
|
+
};
|
|
2135
|
+
data: CloseEpochEntryInstructionData;
|
|
2136
|
+
};
|
|
2137
|
+
declare function parseCloseEpochEntryInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseEpochEntryInstruction<TProgram, TAccountMetas>;
|
|
2138
|
+
|
|
2139
|
+
/**
|
|
2140
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2141
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2142
|
+
* to add features, then rerun Codama to update it.
|
|
2143
|
+
*
|
|
2144
|
+
* @see https://github.com/codama-idl/codama
|
|
2145
|
+
*/
|
|
2146
|
+
|
|
2147
|
+
declare const CLOSE_EPOCH_ITERATION_DISCRIMINATOR: ReadonlyUint8Array;
|
|
2148
|
+
declare function getCloseEpochIterationDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2149
|
+
type CloseEpochIterationInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountEpochVaultIteration extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2150
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2151
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
2152
|
+
TAccountEpochVaultIteration extends string ? WritableAccount<TAccountEpochVaultIteration> : TAccountEpochVaultIteration,
|
|
2153
|
+
...TRemainingAccounts
|
|
2154
|
+
]>;
|
|
2155
|
+
type CloseEpochIterationInstructionData = {
|
|
2156
|
+
discriminator: ReadonlyUint8Array;
|
|
2157
|
+
};
|
|
2158
|
+
type CloseEpochIterationInstructionDataArgs = {};
|
|
2159
|
+
declare function getCloseEpochIterationInstructionDataEncoder(): FixedSizeEncoder<CloseEpochIterationInstructionDataArgs>;
|
|
2160
|
+
declare function getCloseEpochIterationInstructionDataDecoder(): FixedSizeDecoder<CloseEpochIterationInstructionData>;
|
|
2161
|
+
declare function getCloseEpochIterationInstructionDataCodec(): FixedSizeCodec<CloseEpochIterationInstructionDataArgs, CloseEpochIterationInstructionData>;
|
|
2162
|
+
type CloseEpochIterationAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVaultIteration extends string = string> = {
|
|
2163
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2164
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
2165
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
2166
|
+
};
|
|
2167
|
+
declare function getCloseEpochIterationInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVaultIteration extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CloseEpochIterationAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVaultIteration>, config?: {
|
|
2168
|
+
programAddress?: TProgramAddress;
|
|
2169
|
+
}): Promise<CloseEpochIterationInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVaultIteration>>;
|
|
2170
|
+
type CloseEpochIterationInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVaultIteration extends string = string> = {
|
|
2171
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2172
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
2173
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
2174
|
+
};
|
|
2175
|
+
declare function getCloseEpochIterationInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVaultIteration extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CloseEpochIterationInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVaultIteration>, config?: {
|
|
2176
|
+
programAddress?: TProgramAddress;
|
|
2177
|
+
}): CloseEpochIterationInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVaultIteration>;
|
|
2178
|
+
type ParsedCloseEpochIterationInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2179
|
+
programAddress: Address<TProgram>;
|
|
2180
|
+
accounts: {
|
|
2181
|
+
authority: TAccountMetas[0];
|
|
2182
|
+
satrushConfig: TAccountMetas[1];
|
|
2183
|
+
epochVaultIteration: TAccountMetas[2];
|
|
2184
|
+
};
|
|
2185
|
+
data: CloseEpochIterationInstructionData;
|
|
2186
|
+
};
|
|
2187
|
+
declare function parseCloseEpochIterationInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseEpochIterationInstruction<TProgram, TAccountMetas>;
|
|
2188
|
+
|
|
2189
|
+
/**
|
|
2190
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2191
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2192
|
+
* to add features, then rerun Codama to update it.
|
|
2193
|
+
*
|
|
2194
|
+
* @see https://github.com/codama-idl/codama
|
|
2195
|
+
*/
|
|
2196
|
+
|
|
2197
|
+
declare const CLOSE_EPOCH_PAGE_DISCRIMINATOR: ReadonlyUint8Array;
|
|
2198
|
+
declare function getCloseEpochPageDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2199
|
+
type CloseEpochPageInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig 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<[
|
|
2200
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2201
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
2202
|
+
TAccountEpochVaultIteration extends string ? ReadonlyAccount<TAccountEpochVaultIteration> : TAccountEpochVaultIteration,
|
|
2203
|
+
TAccountEpochVaultPage extends string ? WritableAccount<TAccountEpochVaultPage> : TAccountEpochVaultPage,
|
|
2204
|
+
...TRemainingAccounts
|
|
2205
|
+
]>;
|
|
2206
|
+
type CloseEpochPageInstructionData = {
|
|
2207
|
+
discriminator: ReadonlyUint8Array;
|
|
2208
|
+
};
|
|
2209
|
+
type CloseEpochPageInstructionDataArgs = {};
|
|
2210
|
+
declare function getCloseEpochPageInstructionDataEncoder(): FixedSizeEncoder<CloseEpochPageInstructionDataArgs>;
|
|
2211
|
+
declare function getCloseEpochPageInstructionDataDecoder(): FixedSizeDecoder<CloseEpochPageInstructionData>;
|
|
2212
|
+
declare function getCloseEpochPageInstructionDataCodec(): FixedSizeCodec<CloseEpochPageInstructionDataArgs, CloseEpochPageInstructionData>;
|
|
2213
|
+
type CloseEpochPageAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVaultIteration extends string = string, TAccountEpochVaultPage extends string = string> = {
|
|
2214
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2215
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
2216
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
2217
|
+
epochVaultPage: Address<TAccountEpochVaultPage>;
|
|
2218
|
+
};
|
|
2219
|
+
declare function getCloseEpochPageInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVaultIteration extends string, TAccountEpochVaultPage extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CloseEpochPageAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVaultIteration, TAccountEpochVaultPage>, config?: {
|
|
2220
|
+
programAddress?: TProgramAddress;
|
|
2221
|
+
}): Promise<CloseEpochPageInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVaultIteration, TAccountEpochVaultPage>>;
|
|
2222
|
+
type CloseEpochPageInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVaultIteration extends string = string, TAccountEpochVaultPage extends string = string> = {
|
|
2223
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2224
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
2225
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
2226
|
+
epochVaultPage: Address<TAccountEpochVaultPage>;
|
|
2227
|
+
};
|
|
2228
|
+
declare function getCloseEpochPageInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVaultIteration extends string, TAccountEpochVaultPage extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CloseEpochPageInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVaultIteration, TAccountEpochVaultPage>, config?: {
|
|
2229
|
+
programAddress?: TProgramAddress;
|
|
2230
|
+
}): CloseEpochPageInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVaultIteration, TAccountEpochVaultPage>;
|
|
2231
|
+
type ParsedCloseEpochPageInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2232
|
+
programAddress: Address<TProgram>;
|
|
2233
|
+
accounts: {
|
|
2234
|
+
authority: TAccountMetas[0];
|
|
2235
|
+
satrushConfig: TAccountMetas[1];
|
|
2236
|
+
epochVaultIteration: TAccountMetas[2];
|
|
2237
|
+
epochVaultPage: TAccountMetas[3];
|
|
2238
|
+
};
|
|
2239
|
+
data: CloseEpochPageInstructionData;
|
|
2240
|
+
};
|
|
2241
|
+
declare function parseCloseEpochPageInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseEpochPageInstruction<TProgram, TAccountMetas>;
|
|
2242
|
+
|
|
2243
|
+
/**
|
|
2244
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2245
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2246
|
+
* to add features, then rerun Codama to update it.
|
|
2247
|
+
*
|
|
2248
|
+
* @see https://github.com/codama-idl/codama
|
|
2249
|
+
*/
|
|
2250
|
+
|
|
2251
|
+
declare const CLOSE_ONE_BTC_ITERATION_DISCRIMINATOR: ReadonlyUint8Array;
|
|
2252
|
+
declare function getCloseOneBtcIterationDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2253
|
+
type CloseOneBtcIterationInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountOneBtcVaultIteration extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2254
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2255
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
2256
|
+
TAccountOneBtcVaultIteration extends string ? WritableAccount<TAccountOneBtcVaultIteration> : TAccountOneBtcVaultIteration,
|
|
2257
|
+
...TRemainingAccounts
|
|
2258
|
+
]>;
|
|
2259
|
+
type CloseOneBtcIterationInstructionData = {
|
|
2260
|
+
discriminator: ReadonlyUint8Array;
|
|
2261
|
+
};
|
|
2262
|
+
type CloseOneBtcIterationInstructionDataArgs = {};
|
|
2263
|
+
declare function getCloseOneBtcIterationInstructionDataEncoder(): FixedSizeEncoder<CloseOneBtcIterationInstructionDataArgs>;
|
|
2264
|
+
declare function getCloseOneBtcIterationInstructionDataDecoder(): FixedSizeDecoder<CloseOneBtcIterationInstructionData>;
|
|
2265
|
+
declare function getCloseOneBtcIterationInstructionDataCodec(): FixedSizeCodec<CloseOneBtcIterationInstructionDataArgs, CloseOneBtcIterationInstructionData>;
|
|
2266
|
+
type CloseOneBtcIterationAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountOneBtcVaultIteration extends string = string> = {
|
|
2267
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2268
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
2269
|
+
oneBtcVaultIteration: Address<TAccountOneBtcVaultIteration>;
|
|
2270
|
+
};
|
|
2271
|
+
declare function getCloseOneBtcIterationInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountOneBtcVaultIteration extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CloseOneBtcIterationAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVaultIteration>, config?: {
|
|
2272
|
+
programAddress?: TProgramAddress;
|
|
2273
|
+
}): Promise<CloseOneBtcIterationInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVaultIteration>>;
|
|
2274
|
+
type CloseOneBtcIterationInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountOneBtcVaultIteration extends string = string> = {
|
|
2275
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2276
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
2277
|
+
oneBtcVaultIteration: Address<TAccountOneBtcVaultIteration>;
|
|
2278
|
+
};
|
|
2279
|
+
declare function getCloseOneBtcIterationInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountOneBtcVaultIteration extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CloseOneBtcIterationInput<TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVaultIteration>, config?: {
|
|
2280
|
+
programAddress?: TProgramAddress;
|
|
2281
|
+
}): CloseOneBtcIterationInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVaultIteration>;
|
|
2282
|
+
type ParsedCloseOneBtcIterationInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2283
|
+
programAddress: Address<TProgram>;
|
|
2284
|
+
accounts: {
|
|
2285
|
+
authority: TAccountMetas[0];
|
|
2286
|
+
satrushConfig: TAccountMetas[1];
|
|
2287
|
+
oneBtcVaultIteration: TAccountMetas[2];
|
|
2288
|
+
};
|
|
2289
|
+
data: CloseOneBtcIterationInstructionData;
|
|
2290
|
+
};
|
|
2291
|
+
declare function parseCloseOneBtcIterationInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseOneBtcIterationInstruction<TProgram, TAccountMetas>;
|
|
2292
|
+
|
|
2293
|
+
/**
|
|
2294
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2295
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2296
|
+
* to add features, then rerun Codama to update it.
|
|
2297
|
+
*
|
|
2298
|
+
* @see https://github.com/codama-idl/codama
|
|
2299
|
+
*/
|
|
2300
|
+
|
|
2301
|
+
declare const CLOSE_ONE_BTC_TICKET_DISCRIMINATOR: ReadonlyUint8Array;
|
|
2302
|
+
declare function getCloseOneBtcTicketDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2303
|
+
type CloseOneBtcTicketInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountOneBtcVaultIteration extends string | AccountMeta<string> = string, TAccountTicket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2304
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2305
|
+
TAccountOneBtcVaultIteration extends string ? ReadonlyAccount<TAccountOneBtcVaultIteration> : TAccountOneBtcVaultIteration,
|
|
2306
|
+
TAccountTicket extends string ? WritableAccount<TAccountTicket> : TAccountTicket,
|
|
2307
|
+
...TRemainingAccounts
|
|
2308
|
+
]>;
|
|
2309
|
+
type CloseOneBtcTicketInstructionData = {
|
|
2310
|
+
discriminator: ReadonlyUint8Array;
|
|
2311
|
+
};
|
|
2312
|
+
type CloseOneBtcTicketInstructionDataArgs = {};
|
|
2313
|
+
declare function getCloseOneBtcTicketInstructionDataEncoder(): FixedSizeEncoder<CloseOneBtcTicketInstructionDataArgs>;
|
|
2314
|
+
declare function getCloseOneBtcTicketInstructionDataDecoder(): FixedSizeDecoder<CloseOneBtcTicketInstructionData>;
|
|
2315
|
+
declare function getCloseOneBtcTicketInstructionDataCodec(): FixedSizeCodec<CloseOneBtcTicketInstructionDataArgs, CloseOneBtcTicketInstructionData>;
|
|
2316
|
+
type CloseOneBtcTicketInput<TAccountAuthority extends string = string, TAccountOneBtcVaultIteration extends string = string, TAccountTicket extends string = string> = {
|
|
2317
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2318
|
+
oneBtcVaultIteration: Address<TAccountOneBtcVaultIteration>;
|
|
2319
|
+
ticket: Address<TAccountTicket>;
|
|
2320
|
+
};
|
|
2321
|
+
declare function getCloseOneBtcTicketInstruction<TAccountAuthority extends string, TAccountOneBtcVaultIteration extends string, TAccountTicket extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CloseOneBtcTicketInput<TAccountAuthority, TAccountOneBtcVaultIteration, TAccountTicket>, config?: {
|
|
2322
|
+
programAddress?: TProgramAddress;
|
|
2323
|
+
}): CloseOneBtcTicketInstruction<TProgramAddress, TAccountAuthority, TAccountOneBtcVaultIteration, TAccountTicket>;
|
|
2324
|
+
type ParsedCloseOneBtcTicketInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2325
|
+
programAddress: Address<TProgram>;
|
|
2326
|
+
accounts: {
|
|
2327
|
+
authority: TAccountMetas[0];
|
|
2328
|
+
oneBtcVaultIteration: TAccountMetas[1];
|
|
2329
|
+
ticket: TAccountMetas[2];
|
|
2330
|
+
};
|
|
2331
|
+
data: CloseOneBtcTicketInstructionData;
|
|
2332
|
+
};
|
|
2333
|
+
declare function parseCloseOneBtcTicketInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseOneBtcTicketInstruction<TProgram, TAccountMetas>;
|
|
2334
|
+
|
|
2335
|
+
/**
|
|
2336
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2337
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2338
|
+
* to add features, then rerun Codama to update it.
|
|
2339
|
+
*
|
|
2340
|
+
* @see https://github.com/codama-idl/codama
|
|
2341
|
+
*/
|
|
2342
|
+
|
|
2343
|
+
declare const CREATE_BOARD_DISCRIMINATOR: ReadonlyUint8Array;
|
|
2344
|
+
declare function getCreateBoardDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2345
|
+
type CreateBoardInstruction<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, TAccountInitialRound 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, 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<[
|
|
2346
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2347
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
2348
|
+
TAccountBoard extends string ? WritableAccount<TAccountBoard> : TAccountBoard,
|
|
2349
|
+
TAccountInitialRound extends string ? WritableAccount<TAccountInitialRound> : TAccountInitialRound,
|
|
2350
|
+
TAccountUsdMint extends string ? ReadonlyAccount<TAccountUsdMint> : TAccountUsdMint,
|
|
2351
|
+
TAccountBtcMint extends string ? ReadonlyAccount<TAccountBtcMint> : TAccountBtcMint,
|
|
2352
|
+
TAccountBoardUsdAta extends string ? WritableAccount<TAccountBoardUsdAta> : TAccountBoardUsdAta,
|
|
2353
|
+
TAccountBoardBtcAta extends string ? WritableAccount<TAccountBoardBtcAta> : TAccountBoardBtcAta,
|
|
2354
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2355
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
2356
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2357
|
+
...TRemainingAccounts
|
|
2358
|
+
]>;
|
|
2359
|
+
type CreateBoardInstructionData = {
|
|
2360
|
+
discriminator: ReadonlyUint8Array;
|
|
2361
|
+
};
|
|
2362
|
+
type CreateBoardInstructionDataArgs = {};
|
|
2363
|
+
declare function getCreateBoardInstructionDataEncoder(): FixedSizeEncoder<CreateBoardInstructionDataArgs>;
|
|
2364
|
+
declare function getCreateBoardInstructionDataDecoder(): FixedSizeDecoder<CreateBoardInstructionData>;
|
|
2365
|
+
declare function getCreateBoardInstructionDataCodec(): FixedSizeCodec<CreateBoardInstructionDataArgs, CreateBoardInstructionData>;
|
|
2366
|
+
type CreateBoardAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard extends string = string, TAccountInitialRound extends string = string, TAccountUsdMint extends string = string, TAccountBtcMint extends string = string, TAccountBoardUsdAta extends string = string, TAccountBoardBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2367
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2368
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
2369
|
+
board?: Address<TAccountBoard>;
|
|
2370
|
+
/**
|
|
2371
|
+
* Boxed onto the heap: the enlarged Round (per-tile accumulators) would
|
|
2372
|
+
* otherwise push this instruction's stack frame past the 4 KB BPF limit.
|
|
2373
|
+
*/
|
|
2374
|
+
initialRound?: Address<TAccountInitialRound>;
|
|
2375
|
+
usdMint: Address<TAccountUsdMint>;
|
|
2376
|
+
btcMint: Address<TAccountBtcMint>;
|
|
2377
|
+
/** Board's USD token account — the round deposit pool. */
|
|
2378
|
+
boardUsdAta?: Address<TAccountBoardUsdAta>;
|
|
2379
|
+
/** Board's BTC token account — post-swap reserves. */
|
|
2380
|
+
boardBtcAta?: Address<TAccountBoardBtcAta>;
|
|
2381
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2382
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2383
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2384
|
+
};
|
|
2385
|
+
declare function getCreateBoardInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard extends string, TAccountInitialRound extends string, TAccountUsdMint extends string, TAccountBtcMint extends string, TAccountBoardUsdAta extends string, TAccountBoardBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CreateBoardAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountInitialRound, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2386
|
+
programAddress?: TProgramAddress;
|
|
2387
|
+
}): Promise<CreateBoardInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountInitialRound, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
2388
|
+
type CreateBoardInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard extends string = string, TAccountInitialRound extends string = string, TAccountUsdMint extends string = string, TAccountBtcMint extends string = string, TAccountBoardUsdAta extends string = string, TAccountBoardBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2389
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2390
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
2391
|
+
board: Address<TAccountBoard>;
|
|
2392
|
+
/**
|
|
2393
|
+
* Boxed onto the heap: the enlarged Round (per-tile accumulators) would
|
|
2394
|
+
* otherwise push this instruction's stack frame past the 4 KB BPF limit.
|
|
2395
|
+
*/
|
|
2396
|
+
initialRound: Address<TAccountInitialRound>;
|
|
2397
|
+
usdMint: Address<TAccountUsdMint>;
|
|
2398
|
+
btcMint: Address<TAccountBtcMint>;
|
|
2399
|
+
/** Board's USD token account — the round deposit pool. */
|
|
2400
|
+
boardUsdAta: Address<TAccountBoardUsdAta>;
|
|
2401
|
+
/** Board's BTC token account — post-swap reserves. */
|
|
2402
|
+
boardBtcAta: Address<TAccountBoardBtcAta>;
|
|
2403
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2404
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2405
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2406
|
+
};
|
|
2407
|
+
declare function getCreateBoardInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard extends string, TAccountInitialRound extends string, TAccountUsdMint extends string, TAccountBtcMint extends string, TAccountBoardUsdAta extends string, TAccountBoardBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CreateBoardInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountInitialRound, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2408
|
+
programAddress?: TProgramAddress;
|
|
2409
|
+
}): CreateBoardInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountInitialRound, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
2410
|
+
type ParsedCreateBoardInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2411
|
+
programAddress: Address<TProgram>;
|
|
2412
|
+
accounts: {
|
|
2413
|
+
authority: TAccountMetas[0];
|
|
2414
|
+
satrushConfig: TAccountMetas[1];
|
|
2415
|
+
board: TAccountMetas[2];
|
|
2416
|
+
/**
|
|
2417
|
+
* Boxed onto the heap: the enlarged Round (per-tile accumulators) would
|
|
2418
|
+
* otherwise push this instruction's stack frame past the 4 KB BPF limit.
|
|
2419
|
+
*/
|
|
2420
|
+
initialRound: TAccountMetas[3];
|
|
2421
|
+
usdMint: TAccountMetas[4];
|
|
2422
|
+
btcMint: TAccountMetas[5];
|
|
2423
|
+
/** Board's USD token account — the round deposit pool. */
|
|
2424
|
+
boardUsdAta: TAccountMetas[6];
|
|
2425
|
+
/** Board's BTC token account — post-swap reserves. */
|
|
2426
|
+
boardBtcAta: TAccountMetas[7];
|
|
2427
|
+
tokenProgram: TAccountMetas[8];
|
|
2428
|
+
associatedTokenProgram: TAccountMetas[9];
|
|
2429
|
+
systemProgram: TAccountMetas[10];
|
|
2430
|
+
};
|
|
2431
|
+
data: CreateBoardInstructionData;
|
|
2432
|
+
};
|
|
2433
|
+
declare function parseCreateBoardInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateBoardInstruction<TProgram, TAccountMetas>;
|
|
2434
|
+
|
|
2435
|
+
/**
|
|
2436
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2437
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2438
|
+
* to add features, then rerun Codama to update it.
|
|
2439
|
+
*
|
|
2440
|
+
* @see https://github.com/codama-idl/codama
|
|
2441
|
+
*/
|
|
2442
|
+
|
|
2443
|
+
declare const CREATE_EPOCH_VAULT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
2444
|
+
declare function getCreateEpochVaultDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2445
|
+
type CreateEpochVaultInstruction<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, TAccountUsdMint extends string | AccountMeta<string> = string, TAccountBtcMint extends string | AccountMeta<string> = string, TAccountEpochVaultUsdAta extends string | AccountMeta<string> = string, TAccountEpochVaultBtcAta 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<[
|
|
2446
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2447
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
2448
|
+
TAccountEpochVault extends string ? WritableAccount<TAccountEpochVault> : TAccountEpochVault,
|
|
2449
|
+
TAccountEpochVaultIteration extends string ? WritableAccount<TAccountEpochVaultIteration> : TAccountEpochVaultIteration,
|
|
2450
|
+
TAccountUsdMint extends string ? ReadonlyAccount<TAccountUsdMint> : TAccountUsdMint,
|
|
2451
|
+
TAccountBtcMint extends string ? ReadonlyAccount<TAccountBtcMint> : TAccountBtcMint,
|
|
2452
|
+
TAccountEpochVaultUsdAta extends string ? WritableAccount<TAccountEpochVaultUsdAta> : TAccountEpochVaultUsdAta,
|
|
2453
|
+
TAccountEpochVaultBtcAta extends string ? WritableAccount<TAccountEpochVaultBtcAta> : TAccountEpochVaultBtcAta,
|
|
2454
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2455
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
2456
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2457
|
+
...TRemainingAccounts
|
|
2458
|
+
]>;
|
|
2459
|
+
type CreateEpochVaultInstructionData = {
|
|
2460
|
+
discriminator: ReadonlyUint8Array;
|
|
2461
|
+
};
|
|
2462
|
+
type CreateEpochVaultInstructionDataArgs = {};
|
|
2463
|
+
declare function getCreateEpochVaultInstructionDataEncoder(): FixedSizeEncoder<CreateEpochVaultInstructionDataArgs>;
|
|
2464
|
+
declare function getCreateEpochVaultInstructionDataDecoder(): FixedSizeDecoder<CreateEpochVaultInstructionData>;
|
|
2465
|
+
declare function getCreateEpochVaultInstructionDataCodec(): FixedSizeCodec<CreateEpochVaultInstructionDataArgs, CreateEpochVaultInstructionData>;
|
|
2466
|
+
type CreateEpochVaultAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultIteration extends string = string, TAccountUsdMint extends string = string, TAccountBtcMint extends string = string, TAccountEpochVaultUsdAta extends string = string, TAccountEpochVaultBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2467
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2468
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
2469
|
+
epochVault?: Address<TAccountEpochVault>;
|
|
2470
|
+
epochVaultIteration?: Address<TAccountEpochVaultIteration>;
|
|
2471
|
+
usdMint: Address<TAccountUsdMint>;
|
|
2472
|
+
btcMint: Address<TAccountBtcMint>;
|
|
2473
|
+
epochVaultUsdAta?: Address<TAccountEpochVaultUsdAta>;
|
|
2474
|
+
epochVaultBtcAta?: Address<TAccountEpochVaultBtcAta>;
|
|
2475
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2476
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2477
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2478
|
+
};
|
|
2479
|
+
declare function getCreateEpochVaultInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVault extends string, TAccountEpochVaultIteration extends string, TAccountUsdMint extends string, TAccountBtcMint extends string, TAccountEpochVaultUsdAta extends string, TAccountEpochVaultBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CreateEpochVaultAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountUsdMint, TAccountBtcMint, TAccountEpochVaultUsdAta, TAccountEpochVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2480
|
+
programAddress?: TProgramAddress;
|
|
2481
|
+
}): Promise<CreateEpochVaultInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountUsdMint, TAccountBtcMint, TAccountEpochVaultUsdAta, TAccountEpochVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
2482
|
+
type CreateEpochVaultInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultIteration extends string = string, TAccountUsdMint extends string = string, TAccountBtcMint extends string = string, TAccountEpochVaultUsdAta extends string = string, TAccountEpochVaultBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2483
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2484
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
2485
|
+
epochVault: Address<TAccountEpochVault>;
|
|
2486
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
2487
|
+
usdMint: Address<TAccountUsdMint>;
|
|
2488
|
+
btcMint: Address<TAccountBtcMint>;
|
|
2489
|
+
epochVaultUsdAta: Address<TAccountEpochVaultUsdAta>;
|
|
2490
|
+
epochVaultBtcAta: Address<TAccountEpochVaultBtcAta>;
|
|
2491
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2492
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2493
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2494
|
+
};
|
|
2495
|
+
declare function getCreateEpochVaultInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVault extends string, TAccountEpochVaultIteration extends string, TAccountUsdMint extends string, TAccountBtcMint extends string, TAccountEpochVaultUsdAta extends string, TAccountEpochVaultBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CreateEpochVaultInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountUsdMint, TAccountBtcMint, TAccountEpochVaultUsdAta, TAccountEpochVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2496
|
+
programAddress?: TProgramAddress;
|
|
2497
|
+
}): CreateEpochVaultInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountUsdMint, TAccountBtcMint, TAccountEpochVaultUsdAta, TAccountEpochVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
2498
|
+
type ParsedCreateEpochVaultInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2499
|
+
programAddress: Address<TProgram>;
|
|
2500
|
+
accounts: {
|
|
2501
|
+
authority: TAccountMetas[0];
|
|
2502
|
+
satrushConfig: TAccountMetas[1];
|
|
2503
|
+
epochVault: TAccountMetas[2];
|
|
2504
|
+
epochVaultIteration: TAccountMetas[3];
|
|
2505
|
+
usdMint: TAccountMetas[4];
|
|
2506
|
+
btcMint: TAccountMetas[5];
|
|
2507
|
+
epochVaultUsdAta: TAccountMetas[6];
|
|
2508
|
+
epochVaultBtcAta: TAccountMetas[7];
|
|
2509
|
+
tokenProgram: TAccountMetas[8];
|
|
2510
|
+
associatedTokenProgram: TAccountMetas[9];
|
|
2511
|
+
systemProgram: TAccountMetas[10];
|
|
2512
|
+
};
|
|
2513
|
+
data: CreateEpochVaultInstructionData;
|
|
2514
|
+
};
|
|
2515
|
+
declare function parseCreateEpochVaultInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateEpochVaultInstruction<TProgram, TAccountMetas>;
|
|
2516
|
+
|
|
2517
|
+
/**
|
|
2518
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2519
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2520
|
+
* to add features, then rerun Codama to update it.
|
|
2521
|
+
*
|
|
2522
|
+
* @see https://github.com/codama-idl/codama
|
|
2523
|
+
*/
|
|
2524
|
+
|
|
2525
|
+
declare const CREATE_ONE_BTC_VAULT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
2526
|
+
declare function getCreateOneBtcVaultDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2527
|
+
type CreateOneBtcVaultInstruction<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, TAccountUsdMint extends string | AccountMeta<string> = string, TAccountBtcMint extends string | AccountMeta<string> = string, TAccountOneBtcVaultUsdAta extends string | AccountMeta<string> = string, TAccountOneBtcVaultBtcAta 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<[
|
|
2528
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2529
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
2530
|
+
TAccountOneBtcVault extends string ? WritableAccount<TAccountOneBtcVault> : TAccountOneBtcVault,
|
|
2531
|
+
TAccountOneBtcVaultIteration extends string ? WritableAccount<TAccountOneBtcVaultIteration> : TAccountOneBtcVaultIteration,
|
|
2532
|
+
TAccountUsdMint extends string ? ReadonlyAccount<TAccountUsdMint> : TAccountUsdMint,
|
|
2533
|
+
TAccountBtcMint extends string ? ReadonlyAccount<TAccountBtcMint> : TAccountBtcMint,
|
|
2534
|
+
TAccountOneBtcVaultUsdAta extends string ? WritableAccount<TAccountOneBtcVaultUsdAta> : TAccountOneBtcVaultUsdAta,
|
|
2535
|
+
TAccountOneBtcVaultBtcAta extends string ? WritableAccount<TAccountOneBtcVaultBtcAta> : TAccountOneBtcVaultBtcAta,
|
|
2536
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2537
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
2538
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2539
|
+
...TRemainingAccounts
|
|
2540
|
+
]>;
|
|
2541
|
+
type CreateOneBtcVaultInstructionData = {
|
|
2542
|
+
discriminator: ReadonlyUint8Array;
|
|
2543
|
+
};
|
|
2544
|
+
type CreateOneBtcVaultInstructionDataArgs = {};
|
|
2545
|
+
declare function getCreateOneBtcVaultInstructionDataEncoder(): FixedSizeEncoder<CreateOneBtcVaultInstructionDataArgs>;
|
|
2546
|
+
declare function getCreateOneBtcVaultInstructionDataDecoder(): FixedSizeDecoder<CreateOneBtcVaultInstructionData>;
|
|
2547
|
+
declare function getCreateOneBtcVaultInstructionDataCodec(): FixedSizeCodec<CreateOneBtcVaultInstructionDataArgs, CreateOneBtcVaultInstructionData>;
|
|
2548
|
+
type CreateOneBtcVaultAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountOneBtcVault extends string = string, TAccountOneBtcVaultIteration extends string = string, TAccountUsdMint extends string = string, TAccountBtcMint extends string = string, TAccountOneBtcVaultUsdAta extends string = string, TAccountOneBtcVaultBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2549
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2550
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
2551
|
+
oneBtcVault?: Address<TAccountOneBtcVault>;
|
|
2552
|
+
oneBtcVaultIteration?: Address<TAccountOneBtcVaultIteration>;
|
|
2553
|
+
usdMint: Address<TAccountUsdMint>;
|
|
2554
|
+
btcMint: Address<TAccountBtcMint>;
|
|
2555
|
+
oneBtcVaultUsdAta?: Address<TAccountOneBtcVaultUsdAta>;
|
|
2556
|
+
oneBtcVaultBtcAta?: Address<TAccountOneBtcVaultBtcAta>;
|
|
2557
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2558
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2559
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2560
|
+
};
|
|
2561
|
+
declare function getCreateOneBtcVaultInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountOneBtcVault extends string, TAccountOneBtcVaultIteration extends string, TAccountUsdMint extends string, TAccountBtcMint extends string, TAccountOneBtcVaultUsdAta extends string, TAccountOneBtcVaultBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CreateOneBtcVaultAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountUsdMint, TAccountBtcMint, TAccountOneBtcVaultUsdAta, TAccountOneBtcVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2562
|
+
programAddress?: TProgramAddress;
|
|
2563
|
+
}): Promise<CreateOneBtcVaultInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountUsdMint, TAccountBtcMint, TAccountOneBtcVaultUsdAta, TAccountOneBtcVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
2564
|
+
type CreateOneBtcVaultInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountOneBtcVault extends string = string, TAccountOneBtcVaultIteration extends string = string, TAccountUsdMint extends string = string, TAccountBtcMint extends string = string, TAccountOneBtcVaultUsdAta extends string = string, TAccountOneBtcVaultBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2565
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2566
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
2567
|
+
oneBtcVault: Address<TAccountOneBtcVault>;
|
|
2568
|
+
oneBtcVaultIteration: Address<TAccountOneBtcVaultIteration>;
|
|
2569
|
+
usdMint: Address<TAccountUsdMint>;
|
|
2570
|
+
btcMint: Address<TAccountBtcMint>;
|
|
2571
|
+
oneBtcVaultUsdAta: Address<TAccountOneBtcVaultUsdAta>;
|
|
2572
|
+
oneBtcVaultBtcAta: Address<TAccountOneBtcVaultBtcAta>;
|
|
2573
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2574
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2575
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2576
|
+
};
|
|
2577
|
+
declare function getCreateOneBtcVaultInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountOneBtcVault extends string, TAccountOneBtcVaultIteration extends string, TAccountUsdMint extends string, TAccountBtcMint extends string, TAccountOneBtcVaultUsdAta extends string, TAccountOneBtcVaultBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CreateOneBtcVaultInput<TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountUsdMint, TAccountBtcMint, TAccountOneBtcVaultUsdAta, TAccountOneBtcVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2578
|
+
programAddress?: TProgramAddress;
|
|
2579
|
+
}): CreateOneBtcVaultInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountUsdMint, TAccountBtcMint, TAccountOneBtcVaultUsdAta, TAccountOneBtcVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
2580
|
+
type ParsedCreateOneBtcVaultInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2581
|
+
programAddress: Address<TProgram>;
|
|
2582
|
+
accounts: {
|
|
2583
|
+
authority: TAccountMetas[0];
|
|
2584
|
+
satrushConfig: TAccountMetas[1];
|
|
2585
|
+
oneBtcVault: TAccountMetas[2];
|
|
2586
|
+
oneBtcVaultIteration: TAccountMetas[3];
|
|
2587
|
+
usdMint: TAccountMetas[4];
|
|
2588
|
+
btcMint: TAccountMetas[5];
|
|
2589
|
+
oneBtcVaultUsdAta: TAccountMetas[6];
|
|
2590
|
+
oneBtcVaultBtcAta: TAccountMetas[7];
|
|
2591
|
+
tokenProgram: TAccountMetas[8];
|
|
2592
|
+
associatedTokenProgram: TAccountMetas[9];
|
|
2593
|
+
systemProgram: TAccountMetas[10];
|
|
2594
|
+
};
|
|
2595
|
+
data: CreateOneBtcVaultInstructionData;
|
|
2596
|
+
};
|
|
2597
|
+
declare function parseCreateOneBtcVaultInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateOneBtcVaultInstruction<TProgram, TAccountMetas>;
|
|
2598
|
+
|
|
2599
|
+
/**
|
|
2600
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2601
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2602
|
+
* to add features, then rerun Codama to update it.
|
|
2603
|
+
*
|
|
2604
|
+
* @see https://github.com/codama-idl/codama
|
|
2605
|
+
*/
|
|
2606
|
+
|
|
2607
|
+
declare const CREATE_SATRUSH_CONFIG_DISCRIMINATOR: ReadonlyUint8Array;
|
|
2608
|
+
declare function getCreateSatrushConfigDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2609
|
+
type CreateSatrushConfigInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2610
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2611
|
+
TAccountSatrushConfig extends string ? WritableAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
2612
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2613
|
+
...TRemainingAccounts
|
|
2614
|
+
]>;
|
|
2615
|
+
type CreateSatrushConfigInstructionData = {
|
|
2616
|
+
discriminator: ReadonlyUint8Array;
|
|
2617
|
+
ownerAuthority: Address;
|
|
2618
|
+
adminAuthority: Address;
|
|
2619
|
+
roundAuthority: Address;
|
|
2620
|
+
feeRecipient: Address;
|
|
2621
|
+
usdMint: Address;
|
|
2622
|
+
btcMint: Address;
|
|
2623
|
+
};
|
|
2624
|
+
type CreateSatrushConfigInstructionDataArgs = {
|
|
2625
|
+
ownerAuthority: Address;
|
|
2626
|
+
adminAuthority: Address;
|
|
2627
|
+
roundAuthority: Address;
|
|
2628
|
+
feeRecipient: Address;
|
|
2629
|
+
usdMint: Address;
|
|
2630
|
+
btcMint: Address;
|
|
2631
|
+
};
|
|
2632
|
+
declare function getCreateSatrushConfigInstructionDataEncoder(): FixedSizeEncoder<CreateSatrushConfigInstructionDataArgs>;
|
|
2633
|
+
declare function getCreateSatrushConfigInstructionDataDecoder(): FixedSizeDecoder<CreateSatrushConfigInstructionData>;
|
|
2634
|
+
declare function getCreateSatrushConfigInstructionDataCodec(): FixedSizeCodec<CreateSatrushConfigInstructionDataArgs, CreateSatrushConfigInstructionData>;
|
|
2635
|
+
type CreateSatrushConfigAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2636
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2637
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
2638
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2639
|
+
ownerAuthority: CreateSatrushConfigInstructionDataArgs['ownerAuthority'];
|
|
2640
|
+
adminAuthority: CreateSatrushConfigInstructionDataArgs['adminAuthority'];
|
|
2641
|
+
roundAuthority: CreateSatrushConfigInstructionDataArgs['roundAuthority'];
|
|
2642
|
+
feeRecipient: CreateSatrushConfigInstructionDataArgs['feeRecipient'];
|
|
2643
|
+
usdMint: CreateSatrushConfigInstructionDataArgs['usdMint'];
|
|
2644
|
+
btcMint: CreateSatrushConfigInstructionDataArgs['btcMint'];
|
|
2645
|
+
};
|
|
2646
|
+
declare function getCreateSatrushConfigInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CreateSatrushConfigAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountSystemProgram>, config?: {
|
|
2647
|
+
programAddress?: TProgramAddress;
|
|
2648
|
+
}): Promise<CreateSatrushConfigInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountSystemProgram>>;
|
|
2649
|
+
type CreateSatrushConfigInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2650
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2651
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
2652
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2653
|
+
ownerAuthority: CreateSatrushConfigInstructionDataArgs['ownerAuthority'];
|
|
2654
|
+
adminAuthority: CreateSatrushConfigInstructionDataArgs['adminAuthority'];
|
|
2655
|
+
roundAuthority: CreateSatrushConfigInstructionDataArgs['roundAuthority'];
|
|
2656
|
+
feeRecipient: CreateSatrushConfigInstructionDataArgs['feeRecipient'];
|
|
2657
|
+
usdMint: CreateSatrushConfigInstructionDataArgs['usdMint'];
|
|
2658
|
+
btcMint: CreateSatrushConfigInstructionDataArgs['btcMint'];
|
|
2659
|
+
};
|
|
2660
|
+
declare function getCreateSatrushConfigInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CreateSatrushConfigInput<TAccountAuthority, TAccountSatrushConfig, TAccountSystemProgram>, config?: {
|
|
2661
|
+
programAddress?: TProgramAddress;
|
|
2662
|
+
}): CreateSatrushConfigInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountSystemProgram>;
|
|
2663
|
+
type ParsedCreateSatrushConfigInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2664
|
+
programAddress: Address<TProgram>;
|
|
2665
|
+
accounts: {
|
|
2666
|
+
authority: TAccountMetas[0];
|
|
2667
|
+
satrushConfig: TAccountMetas[1];
|
|
2668
|
+
systemProgram: TAccountMetas[2];
|
|
2669
|
+
};
|
|
2670
|
+
data: CreateSatrushConfigInstructionData;
|
|
2671
|
+
};
|
|
2672
|
+
declare function parseCreateSatrushConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateSatrushConfigInstruction<TProgram, TAccountMetas>;
|
|
2673
|
+
|
|
2674
|
+
/**
|
|
2675
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2676
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2677
|
+
* to add features, then rerun Codama to update it.
|
|
2678
|
+
*
|
|
2679
|
+
* @see https://github.com/codama-idl/codama
|
|
2680
|
+
*/
|
|
2681
|
+
|
|
2682
|
+
declare const CREATE_SATS_VAULT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
2683
|
+
declare function getCreateSatsVaultDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2684
|
+
type CreateSatsVaultInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountSatsVault extends string | AccountMeta<string> = string, TAccountBtcMint 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<[
|
|
2685
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2686
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
2687
|
+
TAccountSatsVault extends string ? WritableAccount<TAccountSatsVault> : TAccountSatsVault,
|
|
2688
|
+
TAccountBtcMint extends string ? ReadonlyAccount<TAccountBtcMint> : TAccountBtcMint,
|
|
2689
|
+
TAccountSatsVaultBtcAta extends string ? WritableAccount<TAccountSatsVaultBtcAta> : TAccountSatsVaultBtcAta,
|
|
2690
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2691
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
2692
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2693
|
+
...TRemainingAccounts
|
|
2694
|
+
]>;
|
|
2695
|
+
type CreateSatsVaultInstructionData = {
|
|
2696
|
+
discriminator: ReadonlyUint8Array;
|
|
2697
|
+
};
|
|
2698
|
+
type CreateSatsVaultInstructionDataArgs = {};
|
|
2699
|
+
declare function getCreateSatsVaultInstructionDataEncoder(): FixedSizeEncoder<CreateSatsVaultInstructionDataArgs>;
|
|
2700
|
+
declare function getCreateSatsVaultInstructionDataDecoder(): FixedSizeDecoder<CreateSatsVaultInstructionData>;
|
|
2701
|
+
declare function getCreateSatsVaultInstructionDataCodec(): FixedSizeCodec<CreateSatsVaultInstructionDataArgs, CreateSatsVaultInstructionData>;
|
|
2702
|
+
type CreateSatsVaultAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountSatsVault extends string = string, TAccountBtcMint extends string = string, TAccountSatsVaultBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2703
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2704
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
2705
|
+
satsVault?: Address<TAccountSatsVault>;
|
|
2706
|
+
btcMint: Address<TAccountBtcMint>;
|
|
2707
|
+
/** The vault's BTC reserves — holds exactly `sats_vault.btc_amount`. */
|
|
2708
|
+
satsVaultBtcAta?: Address<TAccountSatsVaultBtcAta>;
|
|
2709
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2710
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2711
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2712
|
+
};
|
|
2713
|
+
declare function getCreateSatsVaultInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountSatsVault extends string, TAccountBtcMint extends string, TAccountSatsVaultBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CreateSatsVaultAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountSatsVault, TAccountBtcMint, TAccountSatsVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2714
|
+
programAddress?: TProgramAddress;
|
|
2715
|
+
}): Promise<CreateSatsVaultInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountSatsVault, TAccountBtcMint, TAccountSatsVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
2716
|
+
type CreateSatsVaultInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountSatsVault extends string = string, TAccountBtcMint extends string = string, TAccountSatsVaultBtcAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2717
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2718
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
2719
|
+
satsVault: Address<TAccountSatsVault>;
|
|
2720
|
+
btcMint: Address<TAccountBtcMint>;
|
|
2721
|
+
/** The vault's BTC reserves — holds exactly `sats_vault.btc_amount`. */
|
|
2722
|
+
satsVaultBtcAta: Address<TAccountSatsVaultBtcAta>;
|
|
2723
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2724
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2725
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2726
|
+
};
|
|
2727
|
+
declare function getCreateSatsVaultInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountSatsVault extends string, TAccountBtcMint extends string, TAccountSatsVaultBtcAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CreateSatsVaultInput<TAccountAuthority, TAccountSatrushConfig, TAccountSatsVault, TAccountBtcMint, TAccountSatsVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2728
|
+
programAddress?: TProgramAddress;
|
|
2729
|
+
}): CreateSatsVaultInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountSatsVault, TAccountBtcMint, TAccountSatsVaultBtcAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
2730
|
+
type ParsedCreateSatsVaultInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2731
|
+
programAddress: Address<TProgram>;
|
|
2732
|
+
accounts: {
|
|
2733
|
+
authority: TAccountMetas[0];
|
|
2734
|
+
satrushConfig: TAccountMetas[1];
|
|
2735
|
+
satsVault: TAccountMetas[2];
|
|
2736
|
+
btcMint: TAccountMetas[3];
|
|
2737
|
+
/** The vault's BTC reserves — holds exactly `sats_vault.btc_amount`. */
|
|
2738
|
+
satsVaultBtcAta: TAccountMetas[4];
|
|
2739
|
+
tokenProgram: TAccountMetas[5];
|
|
2740
|
+
associatedTokenProgram: TAccountMetas[6];
|
|
2741
|
+
systemProgram: TAccountMetas[7];
|
|
2742
|
+
};
|
|
2743
|
+
data: CreateSatsVaultInstructionData;
|
|
2744
|
+
};
|
|
2745
|
+
declare function parseCreateSatsVaultInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateSatsVaultInstruction<TProgram, TAccountMetas>;
|
|
2746
|
+
|
|
2747
|
+
/**
|
|
2748
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2749
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2750
|
+
* to add features, then rerun Codama to update it.
|
|
2751
|
+
*
|
|
2752
|
+
* @see https://github.com/codama-idl/codama
|
|
2753
|
+
*/
|
|
2754
|
+
|
|
2755
|
+
declare const CREATE_TREASURY_DISCRIMINATOR: ReadonlyUint8Array;
|
|
2756
|
+
declare function getCreateTreasuryDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2757
|
+
type CreateTreasuryInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountUsdMint extends string | AccountMeta<string> = string, TAccountTreasuryUsdAta 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<[
|
|
2758
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2759
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
2760
|
+
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
2761
|
+
TAccountUsdMint extends string ? ReadonlyAccount<TAccountUsdMint> : TAccountUsdMint,
|
|
2762
|
+
TAccountTreasuryUsdAta extends string ? WritableAccount<TAccountTreasuryUsdAta> : TAccountTreasuryUsdAta,
|
|
2763
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2764
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
2765
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2766
|
+
...TRemainingAccounts
|
|
2767
|
+
]>;
|
|
2768
|
+
type CreateTreasuryInstructionData = {
|
|
2769
|
+
discriminator: ReadonlyUint8Array;
|
|
2770
|
+
};
|
|
2771
|
+
type CreateTreasuryInstructionDataArgs = {};
|
|
2772
|
+
declare function getCreateTreasuryInstructionDataEncoder(): FixedSizeEncoder<CreateTreasuryInstructionDataArgs>;
|
|
2773
|
+
declare function getCreateTreasuryInstructionDataDecoder(): FixedSizeDecoder<CreateTreasuryInstructionData>;
|
|
2774
|
+
declare function getCreateTreasuryInstructionDataCodec(): FixedSizeCodec<CreateTreasuryInstructionDataArgs, CreateTreasuryInstructionData>;
|
|
2775
|
+
type CreateTreasuryAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountTreasury extends string = string, TAccountUsdMint extends string = string, TAccountTreasuryUsdAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2776
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2777
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
2778
|
+
treasury?: Address<TAccountTreasury>;
|
|
2779
|
+
usdMint: Address<TAccountUsdMint>;
|
|
2780
|
+
/** The treasury's USD fee pool — holds exactly `treasury.pending_usd_amount`. */
|
|
2781
|
+
treasuryUsdAta?: Address<TAccountTreasuryUsdAta>;
|
|
2782
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2783
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2784
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2785
|
+
};
|
|
2786
|
+
declare function getCreateTreasuryInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountTreasury extends string, TAccountUsdMint extends string, TAccountTreasuryUsdAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CreateTreasuryAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountTreasury, TAccountUsdMint, TAccountTreasuryUsdAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2787
|
+
programAddress?: TProgramAddress;
|
|
2788
|
+
}): Promise<CreateTreasuryInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountTreasury, TAccountUsdMint, TAccountTreasuryUsdAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
2789
|
+
type CreateTreasuryInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountTreasury extends string = string, TAccountUsdMint extends string = string, TAccountTreasuryUsdAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2790
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2791
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
2792
|
+
treasury: Address<TAccountTreasury>;
|
|
2793
|
+
usdMint: Address<TAccountUsdMint>;
|
|
2794
|
+
/** The treasury's USD fee pool — holds exactly `treasury.pending_usd_amount`. */
|
|
2795
|
+
treasuryUsdAta: Address<TAccountTreasuryUsdAta>;
|
|
2796
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2797
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2798
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2799
|
+
};
|
|
2800
|
+
declare function getCreateTreasuryInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountTreasury extends string, TAccountUsdMint extends string, TAccountTreasuryUsdAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: CreateTreasuryInput<TAccountAuthority, TAccountSatrushConfig, TAccountTreasury, TAccountUsdMint, TAccountTreasuryUsdAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2801
|
+
programAddress?: TProgramAddress;
|
|
2802
|
+
}): CreateTreasuryInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountTreasury, TAccountUsdMint, TAccountTreasuryUsdAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
2803
|
+
type ParsedCreateTreasuryInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2804
|
+
programAddress: Address<TProgram>;
|
|
2805
|
+
accounts: {
|
|
2806
|
+
authority: TAccountMetas[0];
|
|
2807
|
+
satrushConfig: TAccountMetas[1];
|
|
2808
|
+
treasury: TAccountMetas[2];
|
|
2809
|
+
usdMint: TAccountMetas[3];
|
|
2810
|
+
/** The treasury's USD fee pool — holds exactly `treasury.pending_usd_amount`. */
|
|
2811
|
+
treasuryUsdAta: TAccountMetas[4];
|
|
2812
|
+
tokenProgram: TAccountMetas[5];
|
|
2813
|
+
associatedTokenProgram: TAccountMetas[6];
|
|
2814
|
+
systemProgram: TAccountMetas[7];
|
|
2815
|
+
};
|
|
2816
|
+
data: CreateTreasuryInstructionData;
|
|
2817
|
+
};
|
|
2818
|
+
declare function parseCreateTreasuryInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateTreasuryInstruction<TProgram, TAccountMetas>;
|
|
2819
|
+
|
|
2820
|
+
/**
|
|
2821
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2822
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2823
|
+
* to add features, then rerun Codama to update it.
|
|
2824
|
+
*
|
|
2825
|
+
* @see https://github.com/codama-idl/codama
|
|
2826
|
+
*/
|
|
2827
|
+
|
|
2828
|
+
declare const DEPLOY_PUBLIC_DISCRIMINATOR: ReadonlyUint8Array;
|
|
2829
|
+
declare function getDeployPublicDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2830
|
+
type DeployPublicInstruction<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, TAccountAuthorityUsdAta extends string | AccountMeta<string> = string, TAccountBoardUsdAta extends string | AccountMeta<string> = string, TAccountPublicDeployment extends string | AccountMeta<string> = string, TAccountMiner extends string | AccountMeta<string> = string, TAccountEpochVault extends string | AccountMeta<string> = string, TAccountEpochVaultUsdAta extends string | AccountMeta<string> = string, TAccountOneBtcVault extends string | AccountMeta<string> = string, TAccountOneBtcVaultUsdAta extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountTreasuryUsdAta extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2831
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2832
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
2833
|
+
TAccountBoard extends string ? WritableAccount<TAccountBoard> : TAccountBoard,
|
|
2834
|
+
TAccountRound extends string ? WritableAccount<TAccountRound> : TAccountRound,
|
|
2835
|
+
TAccountUsdMint extends string ? ReadonlyAccount<TAccountUsdMint> : TAccountUsdMint,
|
|
2836
|
+
TAccountAuthorityUsdAta extends string ? WritableAccount<TAccountAuthorityUsdAta> : TAccountAuthorityUsdAta,
|
|
2837
|
+
TAccountBoardUsdAta extends string ? WritableAccount<TAccountBoardUsdAta> : TAccountBoardUsdAta,
|
|
2838
|
+
TAccountPublicDeployment extends string ? WritableAccount<TAccountPublicDeployment> : TAccountPublicDeployment,
|
|
2839
|
+
TAccountMiner extends string ? WritableAccount<TAccountMiner> : TAccountMiner,
|
|
2840
|
+
TAccountEpochVault extends string ? WritableAccount<TAccountEpochVault> : TAccountEpochVault,
|
|
2841
|
+
TAccountEpochVaultUsdAta extends string ? WritableAccount<TAccountEpochVaultUsdAta> : TAccountEpochVaultUsdAta,
|
|
2842
|
+
TAccountOneBtcVault extends string ? WritableAccount<TAccountOneBtcVault> : TAccountOneBtcVault,
|
|
2843
|
+
TAccountOneBtcVaultUsdAta extends string ? WritableAccount<TAccountOneBtcVaultUsdAta> : TAccountOneBtcVaultUsdAta,
|
|
2844
|
+
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
2845
|
+
TAccountTreasuryUsdAta extends string ? WritableAccount<TAccountTreasuryUsdAta> : TAccountTreasuryUsdAta,
|
|
2846
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2847
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2848
|
+
...TRemainingAccounts
|
|
2849
|
+
]>;
|
|
2850
|
+
type DeployPublicInstructionData = {
|
|
2851
|
+
discriminator: ReadonlyUint8Array;
|
|
2852
|
+
selectionMask: number;
|
|
2853
|
+
amount: bigint;
|
|
2854
|
+
};
|
|
2855
|
+
type DeployPublicInstructionDataArgs = {
|
|
2856
|
+
selectionMask: number;
|
|
2857
|
+
amount: number | bigint;
|
|
2858
|
+
};
|
|
2859
|
+
declare function getDeployPublicInstructionDataEncoder(): FixedSizeEncoder<DeployPublicInstructionDataArgs>;
|
|
2860
|
+
declare function getDeployPublicInstructionDataDecoder(): FixedSizeDecoder<DeployPublicInstructionData>;
|
|
2861
|
+
declare function getDeployPublicInstructionDataCodec(): FixedSizeCodec<DeployPublicInstructionDataArgs, DeployPublicInstructionData>;
|
|
2862
|
+
type DeployPublicAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard extends string = string, TAccountRound extends string = string, TAccountUsdMint extends string = string, TAccountAuthorityUsdAta extends string = string, TAccountBoardUsdAta extends string = string, TAccountPublicDeployment extends string = string, TAccountMiner extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultUsdAta extends string = string, TAccountOneBtcVault extends string = string, TAccountOneBtcVaultUsdAta extends string = string, TAccountTreasury extends string = string, TAccountTreasuryUsdAta extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2863
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2864
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
2865
|
+
board?: Address<TAccountBoard>;
|
|
2866
|
+
/**
|
|
2867
|
+
* Round the miner is deploying into. Must be the board's current round.
|
|
2868
|
+
* Stays a regular `Account`: its `id` feeds PDA seeds here and below, and
|
|
2869
|
+
* the IDL seed parser can only encode plain field paths like `round.id`.
|
|
2870
|
+
*/
|
|
2871
|
+
round: Address<TAccountRound>;
|
|
2872
|
+
usdMint: Address<TAccountUsdMint>;
|
|
2873
|
+
/** Miner's USD token account funds are pulled from. */
|
|
2874
|
+
authorityUsdAta: Address<TAccountAuthorityUsdAta>;
|
|
2875
|
+
/** Board's USD deposit pool that funds are deposited into. */
|
|
2876
|
+
boardUsdAta?: Address<TAccountBoardUsdAta>;
|
|
2877
|
+
/**
|
|
2878
|
+
* Per-(round, miner) deployment record. Init fails if the miner already
|
|
2879
|
+
* deployed into this round.
|
|
2880
|
+
*/
|
|
2881
|
+
publicDeployment: Address<TAccountPublicDeployment>;
|
|
2882
|
+
/**
|
|
2883
|
+
* Miner profile for `authority`. Created lazily on the first deploy and
|
|
2884
|
+
* loaded on subsequent ones; its streak advances on every play.
|
|
2885
|
+
*/
|
|
2886
|
+
miner?: Address<TAccountMiner>;
|
|
2887
|
+
/** Epoch Vault singleton — receives the epoch fee leg. */
|
|
2888
|
+
epochVault?: Address<TAccountEpochVault>;
|
|
2889
|
+
/** Epoch Vault's USD pool the epoch fee is transferred into. */
|
|
2890
|
+
epochVaultUsdAta?: Address<TAccountEpochVaultUsdAta>;
|
|
2891
|
+
/** 1 BTC Vault singleton — receives the 1 BTC fee leg. */
|
|
2892
|
+
oneBtcVault?: Address<TAccountOneBtcVault>;
|
|
2893
|
+
/** 1 BTC Vault's USD pool the 1 BTC fee is transferred into. */
|
|
2894
|
+
oneBtcVaultUsdAta?: Address<TAccountOneBtcVaultUsdAta>;
|
|
2895
|
+
/**
|
|
2896
|
+
* Treasury singleton — receives the protocol fee leg. No seeds constraint:
|
|
2897
|
+
* the PDA derivation is redundant — the discriminator + owner checks already
|
|
2898
|
+
* pin the one Treasury instance that can ever exist (`init` on fixed seeds).
|
|
2899
|
+
*/
|
|
2900
|
+
treasury: Address<TAccountTreasury>;
|
|
2901
|
+
/**
|
|
2902
|
+
* Treasury's USD fee pool the protocol fee is transferred into. Validated by
|
|
2903
|
+
* field equality (`token::`) rather than ATA derivation (`associated_token::`):
|
|
2904
|
+
* this instruction sits at the 4 KB BPF stack ceiling and cannot afford the
|
|
2905
|
+
* derivation. Any treasury-owned USD account passes, but misdirecting the fee
|
|
2906
|
+
* into a non-canonical one only strands the payer's own fee.
|
|
2907
|
+
*/
|
|
2908
|
+
treasuryUsdAta: Address<TAccountTreasuryUsdAta>;
|
|
2909
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2910
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2911
|
+
selectionMask: DeployPublicInstructionDataArgs['selectionMask'];
|
|
2912
|
+
amount: DeployPublicInstructionDataArgs['amount'];
|
|
2913
|
+
};
|
|
2914
|
+
declare function getDeployPublicInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard extends string, TAccountRound extends string, TAccountUsdMint extends string, TAccountAuthorityUsdAta extends string, TAccountBoardUsdAta extends string, TAccountPublicDeployment extends string, TAccountMiner extends string, TAccountEpochVault extends string, TAccountEpochVaultUsdAta extends string, TAccountOneBtcVault extends string, TAccountOneBtcVaultUsdAta extends string, TAccountTreasury extends string, TAccountTreasuryUsdAta extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: DeployPublicAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountRound, TAccountUsdMint, TAccountAuthorityUsdAta, TAccountBoardUsdAta, TAccountPublicDeployment, TAccountMiner, TAccountEpochVault, TAccountEpochVaultUsdAta, TAccountOneBtcVault, TAccountOneBtcVaultUsdAta, TAccountTreasury, TAccountTreasuryUsdAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
2915
|
+
programAddress?: TProgramAddress;
|
|
2916
|
+
}): Promise<DeployPublicInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountRound, TAccountUsdMint, TAccountAuthorityUsdAta, TAccountBoardUsdAta, TAccountPublicDeployment, TAccountMiner, TAccountEpochVault, TAccountEpochVaultUsdAta, TAccountOneBtcVault, TAccountOneBtcVaultUsdAta, TAccountTreasury, TAccountTreasuryUsdAta, TAccountTokenProgram, TAccountSystemProgram>>;
|
|
2917
|
+
type DeployPublicInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard extends string = string, TAccountRound extends string = string, TAccountUsdMint extends string = string, TAccountAuthorityUsdAta extends string = string, TAccountBoardUsdAta extends string = string, TAccountPublicDeployment extends string = string, TAccountMiner extends string = string, TAccountEpochVault extends string = string, TAccountEpochVaultUsdAta extends string = string, TAccountOneBtcVault extends string = string, TAccountOneBtcVaultUsdAta extends string = string, TAccountTreasury extends string = string, TAccountTreasuryUsdAta extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2918
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2919
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
2920
|
+
board: Address<TAccountBoard>;
|
|
2921
|
+
/**
|
|
2922
|
+
* Round the miner is deploying into. Must be the board's current round.
|
|
2923
|
+
* Stays a regular `Account`: its `id` feeds PDA seeds here and below, and
|
|
2924
|
+
* the IDL seed parser can only encode plain field paths like `round.id`.
|
|
2925
|
+
*/
|
|
2926
|
+
round: Address<TAccountRound>;
|
|
2927
|
+
usdMint: Address<TAccountUsdMint>;
|
|
2928
|
+
/** Miner's USD token account funds are pulled from. */
|
|
2929
|
+
authorityUsdAta: Address<TAccountAuthorityUsdAta>;
|
|
2930
|
+
/** Board's USD deposit pool that funds are deposited into. */
|
|
2931
|
+
boardUsdAta: Address<TAccountBoardUsdAta>;
|
|
2932
|
+
/**
|
|
2933
|
+
* Per-(round, miner) deployment record. Init fails if the miner already
|
|
2934
|
+
* deployed into this round.
|
|
2935
|
+
*/
|
|
2936
|
+
publicDeployment: Address<TAccountPublicDeployment>;
|
|
2937
|
+
/**
|
|
2938
|
+
* Miner profile for `authority`. Created lazily on the first deploy and
|
|
2939
|
+
* loaded on subsequent ones; its streak advances on every play.
|
|
2940
|
+
*/
|
|
2941
|
+
miner: Address<TAccountMiner>;
|
|
2942
|
+
/** Epoch Vault singleton — receives the epoch fee leg. */
|
|
2943
|
+
epochVault: Address<TAccountEpochVault>;
|
|
2944
|
+
/** Epoch Vault's USD pool the epoch fee is transferred into. */
|
|
2945
|
+
epochVaultUsdAta: Address<TAccountEpochVaultUsdAta>;
|
|
2946
|
+
/** 1 BTC Vault singleton — receives the 1 BTC fee leg. */
|
|
2947
|
+
oneBtcVault: Address<TAccountOneBtcVault>;
|
|
2948
|
+
/** 1 BTC Vault's USD pool the 1 BTC fee is transferred into. */
|
|
2949
|
+
oneBtcVaultUsdAta: Address<TAccountOneBtcVaultUsdAta>;
|
|
2950
|
+
/**
|
|
2951
|
+
* Treasury singleton — receives the protocol fee leg. No seeds constraint:
|
|
2952
|
+
* the PDA derivation is redundant — the discriminator + owner checks already
|
|
2953
|
+
* pin the one Treasury instance that can ever exist (`init` on fixed seeds).
|
|
2954
|
+
*/
|
|
2955
|
+
treasury: Address<TAccountTreasury>;
|
|
2956
|
+
/**
|
|
2957
|
+
* Treasury's USD fee pool the protocol fee is transferred into. Validated by
|
|
2958
|
+
* field equality (`token::`) rather than ATA derivation (`associated_token::`):
|
|
2959
|
+
* this instruction sits at the 4 KB BPF stack ceiling and cannot afford the
|
|
2960
|
+
* derivation. Any treasury-owned USD account passes, but misdirecting the fee
|
|
2961
|
+
* into a non-canonical one only strands the payer's own fee.
|
|
2962
|
+
*/
|
|
2963
|
+
treasuryUsdAta: Address<TAccountTreasuryUsdAta>;
|
|
2964
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
2965
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2966
|
+
selectionMask: DeployPublicInstructionDataArgs['selectionMask'];
|
|
2967
|
+
amount: DeployPublicInstructionDataArgs['amount'];
|
|
2968
|
+
};
|
|
2969
|
+
declare function getDeployPublicInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard extends string, TAccountRound extends string, TAccountUsdMint extends string, TAccountAuthorityUsdAta extends string, TAccountBoardUsdAta extends string, TAccountPublicDeployment extends string, TAccountMiner extends string, TAccountEpochVault extends string, TAccountEpochVaultUsdAta extends string, TAccountOneBtcVault extends string, TAccountOneBtcVaultUsdAta extends string, TAccountTreasury extends string, TAccountTreasuryUsdAta extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: DeployPublicInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountRound, TAccountUsdMint, TAccountAuthorityUsdAta, TAccountBoardUsdAta, TAccountPublicDeployment, TAccountMiner, TAccountEpochVault, TAccountEpochVaultUsdAta, TAccountOneBtcVault, TAccountOneBtcVaultUsdAta, TAccountTreasury, TAccountTreasuryUsdAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
2970
|
+
programAddress?: TProgramAddress;
|
|
2971
|
+
}): DeployPublicInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountRound, TAccountUsdMint, TAccountAuthorityUsdAta, TAccountBoardUsdAta, TAccountPublicDeployment, TAccountMiner, TAccountEpochVault, TAccountEpochVaultUsdAta, TAccountOneBtcVault, TAccountOneBtcVaultUsdAta, TAccountTreasury, TAccountTreasuryUsdAta, TAccountTokenProgram, TAccountSystemProgram>;
|
|
2972
|
+
type ParsedDeployPublicInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2973
|
+
programAddress: Address<TProgram>;
|
|
2974
|
+
accounts: {
|
|
2975
|
+
authority: TAccountMetas[0];
|
|
2976
|
+
satrushConfig: TAccountMetas[1];
|
|
2977
|
+
board: TAccountMetas[2];
|
|
2978
|
+
/**
|
|
2979
|
+
* Round the miner is deploying into. Must be the board's current round.
|
|
2980
|
+
* Stays a regular `Account`: its `id` feeds PDA seeds here and below, and
|
|
2981
|
+
* the IDL seed parser can only encode plain field paths like `round.id`.
|
|
2982
|
+
*/
|
|
2983
|
+
round: TAccountMetas[3];
|
|
2984
|
+
usdMint: TAccountMetas[4];
|
|
2985
|
+
/** Miner's USD token account funds are pulled from. */
|
|
2986
|
+
authorityUsdAta: TAccountMetas[5];
|
|
2987
|
+
/** Board's USD deposit pool that funds are deposited into. */
|
|
2988
|
+
boardUsdAta: TAccountMetas[6];
|
|
2989
|
+
/**
|
|
2990
|
+
* Per-(round, miner) deployment record. Init fails if the miner already
|
|
2991
|
+
* deployed into this round.
|
|
2992
|
+
*/
|
|
2993
|
+
publicDeployment: TAccountMetas[7];
|
|
2994
|
+
/**
|
|
2995
|
+
* Miner profile for `authority`. Created lazily on the first deploy and
|
|
2996
|
+
* loaded on subsequent ones; its streak advances on every play.
|
|
2997
|
+
*/
|
|
2998
|
+
miner: TAccountMetas[8];
|
|
2999
|
+
/** Epoch Vault singleton — receives the epoch fee leg. */
|
|
3000
|
+
epochVault: TAccountMetas[9];
|
|
3001
|
+
/** Epoch Vault's USD pool the epoch fee is transferred into. */
|
|
3002
|
+
epochVaultUsdAta: TAccountMetas[10];
|
|
3003
|
+
/** 1 BTC Vault singleton — receives the 1 BTC fee leg. */
|
|
3004
|
+
oneBtcVault: TAccountMetas[11];
|
|
3005
|
+
/** 1 BTC Vault's USD pool the 1 BTC fee is transferred into. */
|
|
3006
|
+
oneBtcVaultUsdAta: TAccountMetas[12];
|
|
3007
|
+
/**
|
|
3008
|
+
* Treasury singleton — receives the protocol fee leg. No seeds constraint:
|
|
3009
|
+
* the PDA derivation is redundant — the discriminator + owner checks already
|
|
3010
|
+
* pin the one Treasury instance that can ever exist (`init` on fixed seeds).
|
|
3011
|
+
*/
|
|
3012
|
+
treasury: TAccountMetas[13];
|
|
3013
|
+
/**
|
|
3014
|
+
* Treasury's USD fee pool the protocol fee is transferred into. Validated by
|
|
3015
|
+
* field equality (`token::`) rather than ATA derivation (`associated_token::`):
|
|
3016
|
+
* this instruction sits at the 4 KB BPF stack ceiling and cannot afford the
|
|
3017
|
+
* derivation. Any treasury-owned USD account passes, but misdirecting the fee
|
|
3018
|
+
* into a non-canonical one only strands the payer's own fee.
|
|
3019
|
+
*/
|
|
3020
|
+
treasuryUsdAta: TAccountMetas[14];
|
|
3021
|
+
tokenProgram: TAccountMetas[15];
|
|
3022
|
+
systemProgram: TAccountMetas[16];
|
|
3023
|
+
};
|
|
3024
|
+
data: DeployPublicInstructionData;
|
|
3025
|
+
};
|
|
3026
|
+
declare function parseDeployPublicInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedDeployPublicInstruction<TProgram, TAccountMetas>;
|
|
3027
|
+
|
|
3028
|
+
/**
|
|
3029
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3030
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3031
|
+
* to add features, then rerun Codama to update it.
|
|
3032
|
+
*
|
|
3033
|
+
* @see https://github.com/codama-idl/codama
|
|
3034
|
+
*/
|
|
3035
|
+
|
|
3036
|
+
declare const ROTATE_ROUND_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3037
|
+
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<[
|
|
3039
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3040
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
3041
|
+
TAccountBoard extends string ? WritableAccount<TAccountBoard> : TAccountBoard,
|
|
3042
|
+
TAccountCurrentRound extends string ? WritableAccount<TAccountCurrentRound> : TAccountCurrentRound,
|
|
3043
|
+
TAccountNextRound extends string ? WritableAccount<TAccountNextRound> : TAccountNextRound,
|
|
3044
|
+
TAccountSlotHashes extends string ? ReadonlyAccount<TAccountSlotHashes> : TAccountSlotHashes,
|
|
3045
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3046
|
+
...TRemainingAccounts
|
|
3047
|
+
]>;
|
|
3048
|
+
type RotateRoundInstructionData = {
|
|
3049
|
+
discriminator: ReadonlyUint8Array;
|
|
3050
|
+
};
|
|
3051
|
+
type RotateRoundInstructionDataArgs = {};
|
|
3052
|
+
declare function getRotateRoundInstructionDataEncoder(): FixedSizeEncoder<RotateRoundInstructionDataArgs>;
|
|
3053
|
+
declare function getRotateRoundInstructionDataDecoder(): FixedSizeDecoder<RotateRoundInstructionData>;
|
|
3054
|
+
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> = {
|
|
3056
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3057
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
3058
|
+
board?: Address<TAccountBoard>;
|
|
3059
|
+
/** The current round being closed out (revealed). */
|
|
3060
|
+
currentRound: Address<TAccountCurrentRound>;
|
|
3061
|
+
/**
|
|
3062
|
+
* The freshly deployed next round, which becomes the board's active round.
|
|
3063
|
+
* Its id is fixed by the seeds (`board.get_next_round_id()`); the handler
|
|
3064
|
+
* populates it via `Round::try_new`.
|
|
3065
|
+
*/
|
|
3066
|
+
nextRound?: Address<TAccountNextRound>;
|
|
3067
|
+
/** because the sysvar is too large to deserialize. */
|
|
3068
|
+
slotHashes?: Address<TAccountSlotHashes>;
|
|
3069
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3070
|
+
};
|
|
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?: {
|
|
3072
|
+
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> = {
|
|
3075
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3076
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
3077
|
+
board: Address<TAccountBoard>;
|
|
3078
|
+
/** The current round being closed out (revealed). */
|
|
3079
|
+
currentRound: Address<TAccountCurrentRound>;
|
|
3080
|
+
/**
|
|
3081
|
+
* The freshly deployed next round, which becomes the board's active round.
|
|
3082
|
+
* Its id is fixed by the seeds (`board.get_next_round_id()`); the handler
|
|
3083
|
+
* populates it via `Round::try_new`.
|
|
3084
|
+
*/
|
|
3085
|
+
nextRound: Address<TAccountNextRound>;
|
|
3086
|
+
/** because the sysvar is too large to deserialize. */
|
|
3087
|
+
slotHashes?: Address<TAccountSlotHashes>;
|
|
3088
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3089
|
+
};
|
|
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?: {
|
|
3091
|
+
programAddress?: TProgramAddress;
|
|
3092
|
+
}): RotateRoundInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountCurrentRound, TAccountNextRound, TAccountSlotHashes, TAccountSystemProgram>;
|
|
3093
|
+
type ParsedRotateRoundInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3094
|
+
programAddress: Address<TProgram>;
|
|
3095
|
+
accounts: {
|
|
3096
|
+
authority: TAccountMetas[0];
|
|
3097
|
+
satrushConfig: TAccountMetas[1];
|
|
3098
|
+
board: TAccountMetas[2];
|
|
3099
|
+
/** The current round being closed out (revealed). */
|
|
3100
|
+
currentRound: TAccountMetas[3];
|
|
3101
|
+
/**
|
|
3102
|
+
* The freshly deployed next round, which becomes the board's active round.
|
|
3103
|
+
* Its id is fixed by the seeds (`board.get_next_round_id()`); the handler
|
|
3104
|
+
* populates it via `Round::try_new`.
|
|
3105
|
+
*/
|
|
3106
|
+
nextRound: TAccountMetas[4];
|
|
3107
|
+
/** because the sysvar is too large to deserialize. */
|
|
3108
|
+
slotHashes: TAccountMetas[5];
|
|
3109
|
+
systemProgram: TAccountMetas[6];
|
|
3110
|
+
};
|
|
3111
|
+
data: RotateRoundInstructionData;
|
|
3112
|
+
};
|
|
3113
|
+
declare function parseRotateRoundInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRotateRoundInstruction<TProgram, TAccountMetas>;
|
|
3114
|
+
|
|
3115
|
+
/**
|
|
3116
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3117
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3118
|
+
* to add features, then rerun Codama to update it.
|
|
3119
|
+
*
|
|
3120
|
+
* @see https://github.com/codama-idl/codama
|
|
3121
|
+
*/
|
|
3122
|
+
|
|
3123
|
+
declare const SEAL_EPOCH_PAGE_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3124
|
+
declare function getSealEpochPageDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3125
|
+
type SealEpochPageInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountEpochVaultIteration extends string | AccountMeta<string> = string, TAccountEpochVaultPage extends string | AccountMeta<string> = string, TAccountPreviousEpochVaultPage extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3126
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3127
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
3128
|
+
TAccountEpochVaultIteration extends string ? WritableAccount<TAccountEpochVaultIteration> : TAccountEpochVaultIteration,
|
|
3129
|
+
TAccountEpochVaultPage extends string ? WritableAccount<TAccountEpochVaultPage> : TAccountEpochVaultPage,
|
|
3130
|
+
TAccountPreviousEpochVaultPage extends string ? ReadonlyAccount<TAccountPreviousEpochVaultPage> : TAccountPreviousEpochVaultPage,
|
|
3131
|
+
...TRemainingAccounts
|
|
3132
|
+
]>;
|
|
3133
|
+
type SealEpochPageInstructionData = {
|
|
3134
|
+
discriminator: ReadonlyUint8Array;
|
|
3135
|
+
};
|
|
3136
|
+
type SealEpochPageInstructionDataArgs = {};
|
|
3137
|
+
declare function getSealEpochPageInstructionDataEncoder(): FixedSizeEncoder<SealEpochPageInstructionDataArgs>;
|
|
3138
|
+
declare function getSealEpochPageInstructionDataDecoder(): FixedSizeDecoder<SealEpochPageInstructionData>;
|
|
3139
|
+
declare function getSealEpochPageInstructionDataCodec(): FixedSizeCodec<SealEpochPageInstructionDataArgs, SealEpochPageInstructionData>;
|
|
3140
|
+
type SealEpochPageAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVaultIteration extends string = string, TAccountEpochVaultPage extends string = string, TAccountPreviousEpochVaultPage extends string = string> = {
|
|
3141
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3142
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
3143
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
3144
|
+
/** The page being sealed. */
|
|
3145
|
+
epochVaultPage: Address<TAccountEpochVaultPage>;
|
|
3146
|
+
/**
|
|
3147
|
+
* The already-sealed predecessor page; `None` only for the first page.
|
|
3148
|
+
* Its iteration, adjacency, and sealed state are validated in `seal_after`
|
|
3149
|
+
* (the fields are trustworthy: they were written from validated PDA seeds).
|
|
3150
|
+
*/
|
|
3151
|
+
previousEpochVaultPage?: Address<TAccountPreviousEpochVaultPage>;
|
|
3152
|
+
};
|
|
3153
|
+
declare function getSealEpochPageInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVaultIteration extends string, TAccountEpochVaultPage extends string, TAccountPreviousEpochVaultPage extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: SealEpochPageAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountPreviousEpochVaultPage>, config?: {
|
|
3154
|
+
programAddress?: TProgramAddress;
|
|
3155
|
+
}): Promise<SealEpochPageInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountPreviousEpochVaultPage>>;
|
|
3156
|
+
type SealEpochPageInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVaultIteration extends string = string, TAccountEpochVaultPage extends string = string, TAccountPreviousEpochVaultPage extends string = string> = {
|
|
3157
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3158
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
3159
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
3160
|
+
/** The page being sealed. */
|
|
3161
|
+
epochVaultPage: Address<TAccountEpochVaultPage>;
|
|
3162
|
+
/**
|
|
3163
|
+
* The already-sealed predecessor page; `None` only for the first page.
|
|
3164
|
+
* Its iteration, adjacency, and sealed state are validated in `seal_after`
|
|
3165
|
+
* (the fields are trustworthy: they were written from validated PDA seeds).
|
|
3166
|
+
*/
|
|
3167
|
+
previousEpochVaultPage?: Address<TAccountPreviousEpochVaultPage>;
|
|
3168
|
+
};
|
|
3169
|
+
declare function getSealEpochPageInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVaultIteration extends string, TAccountEpochVaultPage extends string, TAccountPreviousEpochVaultPage extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: SealEpochPageInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountPreviousEpochVaultPage>, config?: {
|
|
3170
|
+
programAddress?: TProgramAddress;
|
|
3171
|
+
}): SealEpochPageInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVaultIteration, TAccountEpochVaultPage, TAccountPreviousEpochVaultPage>;
|
|
3172
|
+
type ParsedSealEpochPageInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3173
|
+
programAddress: Address<TProgram>;
|
|
3174
|
+
accounts: {
|
|
3175
|
+
authority: TAccountMetas[0];
|
|
3176
|
+
satrushConfig: TAccountMetas[1];
|
|
3177
|
+
epochVaultIteration: TAccountMetas[2];
|
|
3178
|
+
/** The page being sealed. */
|
|
3179
|
+
epochVaultPage: TAccountMetas[3];
|
|
3180
|
+
/**
|
|
3181
|
+
* The already-sealed predecessor page; `None` only for the first page.
|
|
3182
|
+
* Its iteration, adjacency, and sealed state are validated in `seal_after`
|
|
3183
|
+
* (the fields are trustworthy: they were written from validated PDA seeds).
|
|
3184
|
+
*/
|
|
3185
|
+
previousEpochVaultPage?: TAccountMetas[4] | undefined;
|
|
3186
|
+
};
|
|
3187
|
+
data: SealEpochPageInstructionData;
|
|
3188
|
+
};
|
|
3189
|
+
declare function parseSealEpochPageInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSealEpochPageInstruction<TProgram, TAccountMetas>;
|
|
3190
|
+
|
|
3191
|
+
/**
|
|
3192
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3193
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3194
|
+
* to add features, then rerun Codama to update it.
|
|
3195
|
+
*
|
|
3196
|
+
* @see https://github.com/codama-idl/codama
|
|
3197
|
+
*/
|
|
3198
|
+
|
|
3199
|
+
declare const SELECT_EPOCH_WINNER_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3200
|
+
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<[
|
|
3202
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3203
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
3204
|
+
TAccountEpochVault extends string ? WritableAccount<TAccountEpochVault> : TAccountEpochVault,
|
|
3205
|
+
TAccountEpochVaultIteration extends string ? WritableAccount<TAccountEpochVaultIteration> : TAccountEpochVaultIteration,
|
|
3206
|
+
TAccountEpochVaultPage extends string ? ReadonlyAccount<TAccountEpochVaultPage> : TAccountEpochVaultPage,
|
|
3207
|
+
...TRemainingAccounts
|
|
3208
|
+
]>;
|
|
3209
|
+
type SelectEpochWinnerInstructionData = {
|
|
3210
|
+
discriminator: ReadonlyUint8Array;
|
|
3211
|
+
pageIndex: number;
|
|
3212
|
+
};
|
|
3213
|
+
type SelectEpochWinnerInstructionDataArgs = {
|
|
3214
|
+
pageIndex: number;
|
|
3215
|
+
};
|
|
3216
|
+
declare function getSelectEpochWinnerInstructionDataEncoder(): FixedSizeEncoder<SelectEpochWinnerInstructionDataArgs>;
|
|
3217
|
+
declare function getSelectEpochWinnerInstructionDataDecoder(): FixedSizeDecoder<SelectEpochWinnerInstructionData>;
|
|
3218
|
+
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> = {
|
|
3220
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3221
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
3222
|
+
epochVault?: Address<TAccountEpochVault>;
|
|
3223
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
3224
|
+
epochVaultPage: Address<TAccountEpochVaultPage>;
|
|
3225
|
+
pageIndex: SelectEpochWinnerInstructionDataArgs['pageIndex'];
|
|
3226
|
+
};
|
|
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?: {
|
|
3228
|
+
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> = {
|
|
3231
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3232
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
3233
|
+
epochVault: Address<TAccountEpochVault>;
|
|
3234
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
3235
|
+
epochVaultPage: Address<TAccountEpochVaultPage>;
|
|
3236
|
+
pageIndex: SelectEpochWinnerInstructionDataArgs['pageIndex'];
|
|
3237
|
+
};
|
|
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?: {
|
|
3239
|
+
programAddress?: TProgramAddress;
|
|
3240
|
+
}): SelectEpochWinnerInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountEpochVaultPage>;
|
|
3241
|
+
type ParsedSelectEpochWinnerInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3242
|
+
programAddress: Address<TProgram>;
|
|
3243
|
+
accounts: {
|
|
3244
|
+
authority: TAccountMetas[0];
|
|
3245
|
+
satrushConfig: TAccountMetas[1];
|
|
3246
|
+
epochVault: TAccountMetas[2];
|
|
3247
|
+
epochVaultIteration: TAccountMetas[3];
|
|
3248
|
+
epochVaultPage: TAccountMetas[4];
|
|
3249
|
+
};
|
|
3250
|
+
data: SelectEpochWinnerInstructionData;
|
|
3251
|
+
};
|
|
3252
|
+
declare function parseSelectEpochWinnerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSelectEpochWinnerInstruction<TProgram, TAccountMetas>;
|
|
3253
|
+
|
|
3254
|
+
/**
|
|
3255
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3256
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3257
|
+
* to add features, then rerun Codama to update it.
|
|
3258
|
+
*
|
|
3259
|
+
* @see https://github.com/codama-idl/codama
|
|
3260
|
+
*/
|
|
3261
|
+
|
|
3262
|
+
declare const SWAP_EPOCH_STAKE_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3263
|
+
declare function getSwapEpochStakeDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3264
|
+
type SwapEpochStakeInstruction<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, TAccountUsdMint extends string | AccountMeta<string> = string, TAccountBtcMint extends string | AccountMeta<string> = string, TAccountEpochVaultUsdAta extends string | AccountMeta<string> = string, TAccountEpochVaultBtcAta 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<[
|
|
3265
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3266
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
3267
|
+
TAccountEpochVault extends string ? WritableAccount<TAccountEpochVault> : TAccountEpochVault,
|
|
3268
|
+
TAccountUsdMint extends string ? ReadonlyAccount<TAccountUsdMint> : TAccountUsdMint,
|
|
3269
|
+
TAccountBtcMint extends string ? ReadonlyAccount<TAccountBtcMint> : TAccountBtcMint,
|
|
3270
|
+
TAccountEpochVaultUsdAta extends string ? WritableAccount<TAccountEpochVaultUsdAta> : TAccountEpochVaultUsdAta,
|
|
3271
|
+
TAccountEpochVaultBtcAta extends string ? WritableAccount<TAccountEpochVaultBtcAta> : TAccountEpochVaultBtcAta,
|
|
3272
|
+
TAccountSwapProgram extends string ? ReadonlyAccount<TAccountSwapProgram> : TAccountSwapProgram,
|
|
3273
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
3274
|
+
...TRemainingAccounts
|
|
3275
|
+
]>;
|
|
3276
|
+
type SwapEpochStakeInstructionData = {
|
|
3277
|
+
discriminator: ReadonlyUint8Array;
|
|
3278
|
+
minBtcOut: bigint;
|
|
3279
|
+
swapData: ReadonlyUint8Array;
|
|
3280
|
+
};
|
|
3281
|
+
type SwapEpochStakeInstructionDataArgs = {
|
|
3282
|
+
minBtcOut: number | bigint;
|
|
3283
|
+
swapData: ReadonlyUint8Array;
|
|
3284
|
+
};
|
|
3285
|
+
declare function getSwapEpochStakeInstructionDataEncoder(): Encoder<SwapEpochStakeInstructionDataArgs>;
|
|
3286
|
+
declare function getSwapEpochStakeInstructionDataDecoder(): Decoder<SwapEpochStakeInstructionData>;
|
|
3287
|
+
declare function getSwapEpochStakeInstructionDataCodec(): Codec<SwapEpochStakeInstructionDataArgs, SwapEpochStakeInstructionData>;
|
|
3288
|
+
type SwapEpochStakeAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVault extends string = string, TAccountUsdMint extends string = string, TAccountBtcMint extends string = string, TAccountEpochVaultUsdAta extends string = string, TAccountEpochVaultBtcAta extends string = string, TAccountSwapProgram extends string = string, TAccountTokenProgram extends string = string> = {
|
|
3289
|
+
/** The epoch-swap keeper (the configured round authority). */
|
|
3290
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3291
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
3292
|
+
/** PDA that owns the vault ATAs, holds the epoch counters, and signs the swap CPI. */
|
|
3293
|
+
epochVault?: Address<TAccountEpochVault>;
|
|
3294
|
+
usdMint: Address<TAccountUsdMint>;
|
|
3295
|
+
btcMint: Address<TAccountBtcMint>;
|
|
3296
|
+
/** Vault's USD pool — the swap source. */
|
|
3297
|
+
epochVaultUsdAta?: Address<TAccountEpochVaultUsdAta>;
|
|
3298
|
+
/** Vault's BTC reserves — the swap destination. */
|
|
3299
|
+
epochVaultBtcAta?: Address<TAccountEpochVaultBtcAta>;
|
|
3300
|
+
/** hardcoded `jupiter_program()` (mock under the `mock-swap` feature). */
|
|
3301
|
+
swapProgram?: Address<TAccountSwapProgram>;
|
|
3302
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3303
|
+
minBtcOut: SwapEpochStakeInstructionDataArgs['minBtcOut'];
|
|
3304
|
+
swapData: SwapEpochStakeInstructionDataArgs['swapData'];
|
|
3305
|
+
};
|
|
3306
|
+
declare function getSwapEpochStakeInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVault extends string, TAccountUsdMint extends string, TAccountBtcMint extends string, TAccountEpochVaultUsdAta extends string, TAccountEpochVaultBtcAta extends string, TAccountSwapProgram extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: SwapEpochStakeAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountUsdMint, TAccountBtcMint, TAccountEpochVaultUsdAta, TAccountEpochVaultBtcAta, TAccountSwapProgram, TAccountTokenProgram>, config?: {
|
|
3307
|
+
programAddress?: TProgramAddress;
|
|
3308
|
+
}): Promise<SwapEpochStakeInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountUsdMint, TAccountBtcMint, TAccountEpochVaultUsdAta, TAccountEpochVaultBtcAta, TAccountSwapProgram, TAccountTokenProgram>>;
|
|
3309
|
+
type SwapEpochStakeInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountEpochVault extends string = string, TAccountUsdMint extends string = string, TAccountBtcMint extends string = string, TAccountEpochVaultUsdAta extends string = string, TAccountEpochVaultBtcAta extends string = string, TAccountSwapProgram extends string = string, TAccountTokenProgram extends string = string> = {
|
|
3310
|
+
/** The epoch-swap keeper (the configured round authority). */
|
|
3311
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3312
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
3313
|
+
/** PDA that owns the vault ATAs, holds the epoch counters, and signs the swap CPI. */
|
|
3314
|
+
epochVault: Address<TAccountEpochVault>;
|
|
3315
|
+
usdMint: Address<TAccountUsdMint>;
|
|
3316
|
+
btcMint: Address<TAccountBtcMint>;
|
|
3317
|
+
/** Vault's USD pool — the swap source. */
|
|
3318
|
+
epochVaultUsdAta: Address<TAccountEpochVaultUsdAta>;
|
|
3319
|
+
/** Vault's BTC reserves — the swap destination. */
|
|
3320
|
+
epochVaultBtcAta: Address<TAccountEpochVaultBtcAta>;
|
|
3321
|
+
/** hardcoded `jupiter_program()` (mock under the `mock-swap` feature). */
|
|
3322
|
+
swapProgram?: Address<TAccountSwapProgram>;
|
|
3323
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3324
|
+
minBtcOut: SwapEpochStakeInstructionDataArgs['minBtcOut'];
|
|
3325
|
+
swapData: SwapEpochStakeInstructionDataArgs['swapData'];
|
|
3326
|
+
};
|
|
3327
|
+
declare function getSwapEpochStakeInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountEpochVault extends string, TAccountUsdMint extends string, TAccountBtcMint extends string, TAccountEpochVaultUsdAta extends string, TAccountEpochVaultBtcAta extends string, TAccountSwapProgram extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: SwapEpochStakeInput<TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountUsdMint, TAccountBtcMint, TAccountEpochVaultUsdAta, TAccountEpochVaultBtcAta, TAccountSwapProgram, TAccountTokenProgram>, config?: {
|
|
3328
|
+
programAddress?: TProgramAddress;
|
|
3329
|
+
}): SwapEpochStakeInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountUsdMint, TAccountBtcMint, TAccountEpochVaultUsdAta, TAccountEpochVaultBtcAta, TAccountSwapProgram, TAccountTokenProgram>;
|
|
3330
|
+
type ParsedSwapEpochStakeInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3331
|
+
programAddress: Address<TProgram>;
|
|
3332
|
+
accounts: {
|
|
3333
|
+
/** The epoch-swap keeper (the configured round authority). */
|
|
3334
|
+
authority: TAccountMetas[0];
|
|
3335
|
+
satrushConfig: TAccountMetas[1];
|
|
3336
|
+
/** PDA that owns the vault ATAs, holds the epoch counters, and signs the swap CPI. */
|
|
3337
|
+
epochVault: TAccountMetas[2];
|
|
3338
|
+
usdMint: TAccountMetas[3];
|
|
3339
|
+
btcMint: TAccountMetas[4];
|
|
3340
|
+
/** Vault's USD pool — the swap source. */
|
|
3341
|
+
epochVaultUsdAta: TAccountMetas[5];
|
|
3342
|
+
/** Vault's BTC reserves — the swap destination. */
|
|
3343
|
+
epochVaultBtcAta: TAccountMetas[6];
|
|
3344
|
+
/** hardcoded `jupiter_program()` (mock under the `mock-swap` feature). */
|
|
3345
|
+
swapProgram: TAccountMetas[7];
|
|
3346
|
+
tokenProgram: TAccountMetas[8];
|
|
3347
|
+
};
|
|
3348
|
+
data: SwapEpochStakeInstructionData;
|
|
3349
|
+
};
|
|
3350
|
+
declare function parseSwapEpochStakeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSwapEpochStakeInstruction<TProgram, TAccountMetas>;
|
|
3351
|
+
|
|
3352
|
+
/**
|
|
3353
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3354
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3355
|
+
* to add features, then rerun Codama to update it.
|
|
3356
|
+
*
|
|
3357
|
+
* @see https://github.com/codama-idl/codama
|
|
3358
|
+
*/
|
|
3359
|
+
|
|
3360
|
+
declare const SWAP_ONE_BTC_STAKE_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3361
|
+
declare function getSwapOneBtcStakeDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3362
|
+
type SwapOneBtcStakeInstruction<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, TAccountUsdMint extends string | AccountMeta<string> = string, TAccountBtcMint extends string | AccountMeta<string> = string, TAccountOneBtcVaultUsdAta extends string | AccountMeta<string> = string, TAccountOneBtcVaultBtcAta 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<[
|
|
3363
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3364
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
3365
|
+
TAccountOneBtcVault extends string ? WritableAccount<TAccountOneBtcVault> : TAccountOneBtcVault,
|
|
3366
|
+
TAccountUsdMint extends string ? ReadonlyAccount<TAccountUsdMint> : TAccountUsdMint,
|
|
3367
|
+
TAccountBtcMint extends string ? ReadonlyAccount<TAccountBtcMint> : TAccountBtcMint,
|
|
3368
|
+
TAccountOneBtcVaultUsdAta extends string ? WritableAccount<TAccountOneBtcVaultUsdAta> : TAccountOneBtcVaultUsdAta,
|
|
3369
|
+
TAccountOneBtcVaultBtcAta extends string ? WritableAccount<TAccountOneBtcVaultBtcAta> : TAccountOneBtcVaultBtcAta,
|
|
3370
|
+
TAccountSwapProgram extends string ? ReadonlyAccount<TAccountSwapProgram> : TAccountSwapProgram,
|
|
3371
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
3372
|
+
...TRemainingAccounts
|
|
3373
|
+
]>;
|
|
3374
|
+
type SwapOneBtcStakeInstructionData = {
|
|
3375
|
+
discriminator: ReadonlyUint8Array;
|
|
3376
|
+
minBtcOut: bigint;
|
|
3377
|
+
swapData: ReadonlyUint8Array;
|
|
3378
|
+
};
|
|
3379
|
+
type SwapOneBtcStakeInstructionDataArgs = {
|
|
3380
|
+
minBtcOut: number | bigint;
|
|
3381
|
+
swapData: ReadonlyUint8Array;
|
|
3382
|
+
};
|
|
3383
|
+
declare function getSwapOneBtcStakeInstructionDataEncoder(): Encoder<SwapOneBtcStakeInstructionDataArgs>;
|
|
3384
|
+
declare function getSwapOneBtcStakeInstructionDataDecoder(): Decoder<SwapOneBtcStakeInstructionData>;
|
|
3385
|
+
declare function getSwapOneBtcStakeInstructionDataCodec(): Codec<SwapOneBtcStakeInstructionDataArgs, SwapOneBtcStakeInstructionData>;
|
|
3386
|
+
type SwapOneBtcStakeAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountOneBtcVault extends string = string, TAccountUsdMint extends string = string, TAccountBtcMint extends string = string, TAccountOneBtcVaultUsdAta extends string = string, TAccountOneBtcVaultBtcAta extends string = string, TAccountSwapProgram extends string = string, TAccountTokenProgram extends string = string> = {
|
|
3387
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3388
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
3389
|
+
oneBtcVault?: Address<TAccountOneBtcVault>;
|
|
3390
|
+
usdMint: Address<TAccountUsdMint>;
|
|
3391
|
+
btcMint: Address<TAccountBtcMint>;
|
|
3392
|
+
oneBtcVaultUsdAta?: Address<TAccountOneBtcVaultUsdAta>;
|
|
3393
|
+
oneBtcVaultBtcAta?: Address<TAccountOneBtcVaultBtcAta>;
|
|
3394
|
+
/** hardcoded `jupiter_program()` (mock under the `mock-swap` feature). */
|
|
3395
|
+
swapProgram?: Address<TAccountSwapProgram>;
|
|
3396
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3397
|
+
minBtcOut: SwapOneBtcStakeInstructionDataArgs['minBtcOut'];
|
|
3398
|
+
swapData: SwapOneBtcStakeInstructionDataArgs['swapData'];
|
|
3399
|
+
};
|
|
3400
|
+
declare function getSwapOneBtcStakeInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountOneBtcVault extends string, TAccountUsdMint extends string, TAccountBtcMint extends string, TAccountOneBtcVaultUsdAta extends string, TAccountOneBtcVaultBtcAta extends string, TAccountSwapProgram extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: SwapOneBtcStakeAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountUsdMint, TAccountBtcMint, TAccountOneBtcVaultUsdAta, TAccountOneBtcVaultBtcAta, TAccountSwapProgram, TAccountTokenProgram>, config?: {
|
|
3401
|
+
programAddress?: TProgramAddress;
|
|
3402
|
+
}): Promise<SwapOneBtcStakeInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountUsdMint, TAccountBtcMint, TAccountOneBtcVaultUsdAta, TAccountOneBtcVaultBtcAta, TAccountSwapProgram, TAccountTokenProgram>>;
|
|
3403
|
+
type SwapOneBtcStakeInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountOneBtcVault extends string = string, TAccountUsdMint extends string = string, TAccountBtcMint extends string = string, TAccountOneBtcVaultUsdAta extends string = string, TAccountOneBtcVaultBtcAta extends string = string, TAccountSwapProgram extends string = string, TAccountTokenProgram extends string = string> = {
|
|
3404
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3405
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
3406
|
+
oneBtcVault: Address<TAccountOneBtcVault>;
|
|
3407
|
+
usdMint: Address<TAccountUsdMint>;
|
|
3408
|
+
btcMint: Address<TAccountBtcMint>;
|
|
3409
|
+
oneBtcVaultUsdAta: Address<TAccountOneBtcVaultUsdAta>;
|
|
3410
|
+
oneBtcVaultBtcAta: Address<TAccountOneBtcVaultBtcAta>;
|
|
3411
|
+
/** hardcoded `jupiter_program()` (mock under the `mock-swap` feature). */
|
|
3412
|
+
swapProgram?: Address<TAccountSwapProgram>;
|
|
3413
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3414
|
+
minBtcOut: SwapOneBtcStakeInstructionDataArgs['minBtcOut'];
|
|
3415
|
+
swapData: SwapOneBtcStakeInstructionDataArgs['swapData'];
|
|
3416
|
+
};
|
|
3417
|
+
declare function getSwapOneBtcStakeInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountOneBtcVault extends string, TAccountUsdMint extends string, TAccountBtcMint extends string, TAccountOneBtcVaultUsdAta extends string, TAccountOneBtcVaultBtcAta extends string, TAccountSwapProgram extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: SwapOneBtcStakeInput<TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountUsdMint, TAccountBtcMint, TAccountOneBtcVaultUsdAta, TAccountOneBtcVaultBtcAta, TAccountSwapProgram, TAccountTokenProgram>, config?: {
|
|
3418
|
+
programAddress?: TProgramAddress;
|
|
3419
|
+
}): SwapOneBtcStakeInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountUsdMint, TAccountBtcMint, TAccountOneBtcVaultUsdAta, TAccountOneBtcVaultBtcAta, TAccountSwapProgram, TAccountTokenProgram>;
|
|
3420
|
+
type ParsedSwapOneBtcStakeInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3421
|
+
programAddress: Address<TProgram>;
|
|
3422
|
+
accounts: {
|
|
3423
|
+
authority: TAccountMetas[0];
|
|
3424
|
+
satrushConfig: TAccountMetas[1];
|
|
3425
|
+
oneBtcVault: TAccountMetas[2];
|
|
3426
|
+
usdMint: TAccountMetas[3];
|
|
3427
|
+
btcMint: TAccountMetas[4];
|
|
3428
|
+
oneBtcVaultUsdAta: TAccountMetas[5];
|
|
3429
|
+
oneBtcVaultBtcAta: TAccountMetas[6];
|
|
3430
|
+
/** hardcoded `jupiter_program()` (mock under the `mock-swap` feature). */
|
|
3431
|
+
swapProgram: TAccountMetas[7];
|
|
3432
|
+
tokenProgram: TAccountMetas[8];
|
|
3433
|
+
};
|
|
3434
|
+
data: SwapOneBtcStakeInstructionData;
|
|
3435
|
+
};
|
|
3436
|
+
declare function parseSwapOneBtcStakeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSwapOneBtcStakeInstruction<TProgram, TAccountMetas>;
|
|
3437
|
+
|
|
3438
|
+
/**
|
|
3439
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3440
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3441
|
+
* to add features, then rerun Codama to update it.
|
|
3442
|
+
*
|
|
3443
|
+
* @see https://github.com/codama-idl/codama
|
|
3444
|
+
*/
|
|
3445
|
+
|
|
3446
|
+
declare const SWAP_ROUND_STAKE_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3447
|
+
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<[
|
|
3449
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3450
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
3451
|
+
TAccountBoard extends string ? ReadonlyAccount<TAccountBoard> : TAccountBoard,
|
|
3452
|
+
TAccountRound extends string ? WritableAccount<TAccountRound> : TAccountRound,
|
|
3453
|
+
TAccountUsdMint extends string ? ReadonlyAccount<TAccountUsdMint> : TAccountUsdMint,
|
|
3454
|
+
TAccountBtcMint extends string ? ReadonlyAccount<TAccountBtcMint> : TAccountBtcMint,
|
|
3455
|
+
TAccountBoardUsdAta extends string ? WritableAccount<TAccountBoardUsdAta> : TAccountBoardUsdAta,
|
|
3456
|
+
TAccountBoardBtcAta extends string ? WritableAccount<TAccountBoardBtcAta> : TAccountBoardBtcAta,
|
|
3457
|
+
TAccountSwapProgram extends string ? ReadonlyAccount<TAccountSwapProgram> : TAccountSwapProgram,
|
|
3458
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
3459
|
+
...TRemainingAccounts
|
|
3460
|
+
]>;
|
|
3461
|
+
type SwapRoundStakeInstructionData = {
|
|
3462
|
+
discriminator: ReadonlyUint8Array;
|
|
3463
|
+
minBtcOut: bigint;
|
|
3464
|
+
swapData: ReadonlyUint8Array;
|
|
3465
|
+
};
|
|
3466
|
+
type SwapRoundStakeInstructionDataArgs = {
|
|
3467
|
+
minBtcOut: number | bigint;
|
|
3468
|
+
swapData: ReadonlyUint8Array;
|
|
3469
|
+
};
|
|
3470
|
+
declare function getSwapRoundStakeInstructionDataEncoder(): Encoder<SwapRoundStakeInstructionDataArgs>;
|
|
3471
|
+
declare function getSwapRoundStakeInstructionDataDecoder(): Decoder<SwapRoundStakeInstructionData>;
|
|
3472
|
+
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> = {
|
|
3474
|
+
/** The round authority keeper that built the off-chain route. */
|
|
3475
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3476
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
3477
|
+
/** PDA that owns the token pools and signs the swap CPI. */
|
|
3478
|
+
board?: Address<TAccountBoard>;
|
|
3479
|
+
/** The revealed round whose stake is being swapped. */
|
|
3480
|
+
round: Address<TAccountRound>;
|
|
3481
|
+
usdMint: Address<TAccountUsdMint>;
|
|
3482
|
+
btcMint: Address<TAccountBtcMint>;
|
|
3483
|
+
/** Board's USD deposit pool — the swap source. */
|
|
3484
|
+
boardUsdAta?: Address<TAccountBoardUsdAta>;
|
|
3485
|
+
/** Board's BTC reserves — the swap destination. */
|
|
3486
|
+
boardBtcAta?: Address<TAccountBoardBtcAta>;
|
|
3487
|
+
/** hardcoded `SWAP_PROGRAM` (mock under the `devnet` feature). */
|
|
3488
|
+
swapProgram?: Address<TAccountSwapProgram>;
|
|
3489
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3490
|
+
minBtcOut: SwapRoundStakeInstructionDataArgs['minBtcOut'];
|
|
3491
|
+
swapData: SwapRoundStakeInstructionDataArgs['swapData'];
|
|
3492
|
+
};
|
|
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?: {
|
|
3494
|
+
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> = {
|
|
3497
|
+
/** The round authority keeper that built the off-chain route. */
|
|
3498
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3499
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
3500
|
+
/** PDA that owns the token pools and signs the swap CPI. */
|
|
3501
|
+
board: Address<TAccountBoard>;
|
|
3502
|
+
/** The revealed round whose stake is being swapped. */
|
|
3503
|
+
round: Address<TAccountRound>;
|
|
3504
|
+
usdMint: Address<TAccountUsdMint>;
|
|
3505
|
+
btcMint: Address<TAccountBtcMint>;
|
|
3506
|
+
/** Board's USD deposit pool — the swap source. */
|
|
3507
|
+
boardUsdAta: Address<TAccountBoardUsdAta>;
|
|
3508
|
+
/** Board's BTC reserves — the swap destination. */
|
|
3509
|
+
boardBtcAta: Address<TAccountBoardBtcAta>;
|
|
3510
|
+
/** hardcoded `SWAP_PROGRAM` (mock under the `devnet` feature). */
|
|
3511
|
+
swapProgram?: Address<TAccountSwapProgram>;
|
|
3512
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3513
|
+
minBtcOut: SwapRoundStakeInstructionDataArgs['minBtcOut'];
|
|
3514
|
+
swapData: SwapRoundStakeInstructionDataArgs['swapData'];
|
|
3515
|
+
};
|
|
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?: {
|
|
3517
|
+
programAddress?: TProgramAddress;
|
|
3518
|
+
}): SwapRoundStakeInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountRound, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountSwapProgram, TAccountTokenProgram>;
|
|
3519
|
+
type ParsedSwapRoundStakeInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3520
|
+
programAddress: Address<TProgram>;
|
|
3521
|
+
accounts: {
|
|
3522
|
+
/** The round authority keeper that built the off-chain route. */
|
|
3523
|
+
authority: TAccountMetas[0];
|
|
3524
|
+
satrushConfig: TAccountMetas[1];
|
|
3525
|
+
/** PDA that owns the token pools and signs the swap CPI. */
|
|
3526
|
+
board: TAccountMetas[2];
|
|
3527
|
+
/** The revealed round whose stake is being swapped. */
|
|
3528
|
+
round: TAccountMetas[3];
|
|
3529
|
+
usdMint: TAccountMetas[4];
|
|
3530
|
+
btcMint: TAccountMetas[5];
|
|
3531
|
+
/** Board's USD deposit pool — the swap source. */
|
|
3532
|
+
boardUsdAta: TAccountMetas[6];
|
|
3533
|
+
/** Board's BTC reserves — the swap destination. */
|
|
3534
|
+
boardBtcAta: TAccountMetas[7];
|
|
3535
|
+
/** hardcoded `SWAP_PROGRAM` (mock under the `devnet` feature). */
|
|
3536
|
+
swapProgram: TAccountMetas[8];
|
|
3537
|
+
tokenProgram: TAccountMetas[9];
|
|
3538
|
+
};
|
|
3539
|
+
data: SwapRoundStakeInstructionData;
|
|
3540
|
+
};
|
|
3541
|
+
declare function parseSwapRoundStakeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSwapRoundStakeInstruction<TProgram, TAccountMetas>;
|
|
3542
|
+
|
|
3543
|
+
/**
|
|
3544
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3545
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3546
|
+
* to add features, then rerun Codama to update it.
|
|
3547
|
+
*
|
|
3548
|
+
* @see https://github.com/codama-idl/codama
|
|
3549
|
+
*/
|
|
3550
|
+
|
|
3551
|
+
declare const SWAP_STRIKE_STAKE_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3552
|
+
declare function getSwapStrikeStakeDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3553
|
+
type SwapStrikeStakeInstruction<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, 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<[
|
|
3554
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3555
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
3556
|
+
TAccountBoard extends string ? WritableAccount<TAccountBoard> : TAccountBoard,
|
|
3557
|
+
TAccountUsdMint extends string ? ReadonlyAccount<TAccountUsdMint> : TAccountUsdMint,
|
|
3558
|
+
TAccountBtcMint extends string ? ReadonlyAccount<TAccountBtcMint> : TAccountBtcMint,
|
|
3559
|
+
TAccountBoardUsdAta extends string ? WritableAccount<TAccountBoardUsdAta> : TAccountBoardUsdAta,
|
|
3560
|
+
TAccountBoardBtcAta extends string ? WritableAccount<TAccountBoardBtcAta> : TAccountBoardBtcAta,
|
|
3561
|
+
TAccountSwapProgram extends string ? ReadonlyAccount<TAccountSwapProgram> : TAccountSwapProgram,
|
|
3562
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
3563
|
+
...TRemainingAccounts
|
|
3564
|
+
]>;
|
|
3565
|
+
type SwapStrikeStakeInstructionData = {
|
|
3566
|
+
discriminator: ReadonlyUint8Array;
|
|
3567
|
+
minBtcOut: bigint;
|
|
3568
|
+
swapData: ReadonlyUint8Array;
|
|
3569
|
+
};
|
|
3570
|
+
type SwapStrikeStakeInstructionDataArgs = {
|
|
3571
|
+
minBtcOut: number | bigint;
|
|
3572
|
+
swapData: ReadonlyUint8Array;
|
|
3573
|
+
};
|
|
3574
|
+
declare function getSwapStrikeStakeInstructionDataEncoder(): Encoder<SwapStrikeStakeInstructionDataArgs>;
|
|
3575
|
+
declare function getSwapStrikeStakeInstructionDataDecoder(): Decoder<SwapStrikeStakeInstructionData>;
|
|
3576
|
+
declare function getSwapStrikeStakeInstructionDataCodec(): Codec<SwapStrikeStakeInstructionDataArgs, SwapStrikeStakeInstructionData>;
|
|
3577
|
+
type SwapStrikeStakeAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard 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> = {
|
|
3578
|
+
/** The jackpots-swap keeper (the configured round authority). */
|
|
3579
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3580
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
3581
|
+
/** PDA that owns the token pools, holds the jackpots counters, and signs the swap CPI. */
|
|
3582
|
+
board?: Address<TAccountBoard>;
|
|
3583
|
+
usdMint: Address<TAccountUsdMint>;
|
|
3584
|
+
btcMint: Address<TAccountBtcMint>;
|
|
3585
|
+
/** Board's USD pool — the swap source. */
|
|
3586
|
+
boardUsdAta?: Address<TAccountBoardUsdAta>;
|
|
3587
|
+
/** Board's BTC reserves — the swap destination. */
|
|
3588
|
+
boardBtcAta?: Address<TAccountBoardBtcAta>;
|
|
3589
|
+
/** hardcoded `jupiter_program()` (mock under the `mock-swap` feature). */
|
|
3590
|
+
swapProgram?: Address<TAccountSwapProgram>;
|
|
3591
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3592
|
+
minBtcOut: SwapStrikeStakeInstructionDataArgs['minBtcOut'];
|
|
3593
|
+
swapData: SwapStrikeStakeInstructionDataArgs['swapData'];
|
|
3594
|
+
};
|
|
3595
|
+
declare function getSwapStrikeStakeInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard 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: SwapStrikeStakeAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountSwapProgram, TAccountTokenProgram>, config?: {
|
|
3596
|
+
programAddress?: TProgramAddress;
|
|
3597
|
+
}): Promise<SwapStrikeStakeInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountSwapProgram, TAccountTokenProgram>>;
|
|
3598
|
+
type SwapStrikeStakeInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountBoard 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> = {
|
|
3599
|
+
/** The jackpots-swap keeper (the configured round authority). */
|
|
3600
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3601
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
3602
|
+
/** PDA that owns the token pools, holds the jackpots counters, and signs the swap CPI. */
|
|
3603
|
+
board: Address<TAccountBoard>;
|
|
3604
|
+
usdMint: Address<TAccountUsdMint>;
|
|
3605
|
+
btcMint: Address<TAccountBtcMint>;
|
|
3606
|
+
/** Board's USD pool — the swap source. */
|
|
3607
|
+
boardUsdAta: Address<TAccountBoardUsdAta>;
|
|
3608
|
+
/** Board's BTC reserves — the swap destination. */
|
|
3609
|
+
boardBtcAta: Address<TAccountBoardBtcAta>;
|
|
3610
|
+
/** hardcoded `jupiter_program()` (mock under the `mock-swap` feature). */
|
|
3611
|
+
swapProgram?: Address<TAccountSwapProgram>;
|
|
3612
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3613
|
+
minBtcOut: SwapStrikeStakeInstructionDataArgs['minBtcOut'];
|
|
3614
|
+
swapData: SwapStrikeStakeInstructionDataArgs['swapData'];
|
|
3615
|
+
};
|
|
3616
|
+
declare function getSwapStrikeStakeInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountBoard 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: SwapStrikeStakeInput<TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountSwapProgram, TAccountTokenProgram>, config?: {
|
|
3617
|
+
programAddress?: TProgramAddress;
|
|
3618
|
+
}): SwapStrikeStakeInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountBoard, TAccountUsdMint, TAccountBtcMint, TAccountBoardUsdAta, TAccountBoardBtcAta, TAccountSwapProgram, TAccountTokenProgram>;
|
|
3619
|
+
type ParsedSwapStrikeStakeInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3620
|
+
programAddress: Address<TProgram>;
|
|
3621
|
+
accounts: {
|
|
3622
|
+
/** The jackpots-swap keeper (the configured round authority). */
|
|
3623
|
+
authority: TAccountMetas[0];
|
|
3624
|
+
satrushConfig: TAccountMetas[1];
|
|
3625
|
+
/** PDA that owns the token pools, holds the jackpots counters, and signs the swap CPI. */
|
|
3626
|
+
board: TAccountMetas[2];
|
|
3627
|
+
usdMint: TAccountMetas[3];
|
|
3628
|
+
btcMint: TAccountMetas[4];
|
|
3629
|
+
/** Board's USD pool — the swap source. */
|
|
3630
|
+
boardUsdAta: TAccountMetas[5];
|
|
3631
|
+
/** Board's BTC reserves — the swap destination. */
|
|
3632
|
+
boardBtcAta: TAccountMetas[6];
|
|
3633
|
+
/** hardcoded `jupiter_program()` (mock under the `mock-swap` feature). */
|
|
3634
|
+
swapProgram: TAccountMetas[7];
|
|
3635
|
+
tokenProgram: TAccountMetas[8];
|
|
3636
|
+
};
|
|
3637
|
+
data: SwapStrikeStakeInstructionData;
|
|
3638
|
+
};
|
|
3639
|
+
declare function parseSwapStrikeStakeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSwapStrikeStakeInstruction<TProgram, TAccountMetas>;
|
|
3640
|
+
|
|
3641
|
+
/**
|
|
3642
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3643
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3644
|
+
* to add features, then rerun Codama to update it.
|
|
3645
|
+
*
|
|
3646
|
+
* @see https://github.com/codama-idl/codama
|
|
3647
|
+
*/
|
|
3648
|
+
|
|
3649
|
+
declare const TRIGGER_EPOCH_DRAW_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3650
|
+
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<[
|
|
3652
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3653
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
3654
|
+
TAccountEpochVault extends string ? WritableAccount<TAccountEpochVault> : TAccountEpochVault,
|
|
3655
|
+
TAccountEpochVaultIteration extends string ? WritableAccount<TAccountEpochVaultIteration> : TAccountEpochVaultIteration,
|
|
3656
|
+
TAccountNextEpochVaultIteration extends string ? WritableAccount<TAccountNextEpochVaultIteration> : TAccountNextEpochVaultIteration,
|
|
3657
|
+
TAccountSlotHashes extends string ? ReadonlyAccount<TAccountSlotHashes> : TAccountSlotHashes,
|
|
3658
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3659
|
+
...TRemainingAccounts
|
|
3660
|
+
]>;
|
|
3661
|
+
type TriggerEpochDrawInstructionData = {
|
|
3662
|
+
discriminator: ReadonlyUint8Array;
|
|
3663
|
+
};
|
|
3664
|
+
type TriggerEpochDrawInstructionDataArgs = {};
|
|
3665
|
+
declare function getTriggerEpochDrawInstructionDataEncoder(): FixedSizeEncoder<TriggerEpochDrawInstructionDataArgs>;
|
|
3666
|
+
declare function getTriggerEpochDrawInstructionDataDecoder(): FixedSizeDecoder<TriggerEpochDrawInstructionData>;
|
|
3667
|
+
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> = {
|
|
3669
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3670
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
3671
|
+
epochVault?: Address<TAccountEpochVault>;
|
|
3672
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
3673
|
+
nextEpochVaultIteration: Address<TAccountNextEpochVaultIteration>;
|
|
3674
|
+
/** because the sysvar is too large to deserialize. */
|
|
3675
|
+
slotHashes?: Address<TAccountSlotHashes>;
|
|
3676
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3677
|
+
};
|
|
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?: {
|
|
3679
|
+
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> = {
|
|
3682
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3683
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
3684
|
+
epochVault: Address<TAccountEpochVault>;
|
|
3685
|
+
epochVaultIteration: Address<TAccountEpochVaultIteration>;
|
|
3686
|
+
nextEpochVaultIteration: Address<TAccountNextEpochVaultIteration>;
|
|
3687
|
+
/** because the sysvar is too large to deserialize. */
|
|
3688
|
+
slotHashes?: Address<TAccountSlotHashes>;
|
|
3689
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3690
|
+
};
|
|
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?: {
|
|
3692
|
+
programAddress?: TProgramAddress;
|
|
3693
|
+
}): TriggerEpochDrawInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountEpochVault, TAccountEpochVaultIteration, TAccountNextEpochVaultIteration, TAccountSlotHashes, TAccountSystemProgram>;
|
|
3694
|
+
type ParsedTriggerEpochDrawInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3695
|
+
programAddress: Address<TProgram>;
|
|
3696
|
+
accounts: {
|
|
3697
|
+
authority: TAccountMetas[0];
|
|
3698
|
+
satrushConfig: TAccountMetas[1];
|
|
3699
|
+
epochVault: TAccountMetas[2];
|
|
3700
|
+
epochVaultIteration: TAccountMetas[3];
|
|
3701
|
+
nextEpochVaultIteration: TAccountMetas[4];
|
|
3702
|
+
/** because the sysvar is too large to deserialize. */
|
|
3703
|
+
slotHashes: TAccountMetas[5];
|
|
3704
|
+
systemProgram: TAccountMetas[6];
|
|
3705
|
+
};
|
|
3706
|
+
data: TriggerEpochDrawInstructionData;
|
|
3707
|
+
};
|
|
3708
|
+
declare function parseTriggerEpochDrawInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedTriggerEpochDrawInstruction<TProgram, TAccountMetas>;
|
|
3709
|
+
|
|
3710
|
+
/**
|
|
3711
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3712
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3713
|
+
* to add features, then rerun Codama to update it.
|
|
3714
|
+
*
|
|
3715
|
+
* @see https://github.com/codama-idl/codama
|
|
3716
|
+
*/
|
|
3717
|
+
|
|
3718
|
+
declare const TRIGGER_ONE_BTC_DRAW_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3719
|
+
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<[
|
|
3721
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3722
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
3723
|
+
TAccountOneBtcVault extends string ? WritableAccount<TAccountOneBtcVault> : TAccountOneBtcVault,
|
|
3724
|
+
TAccountOneBtcVaultIteration extends string ? WritableAccount<TAccountOneBtcVaultIteration> : TAccountOneBtcVaultIteration,
|
|
3725
|
+
TAccountNextOneBtcVaultIteration extends string ? WritableAccount<TAccountNextOneBtcVaultIteration> : TAccountNextOneBtcVaultIteration,
|
|
3726
|
+
TAccountSlotHashes extends string ? ReadonlyAccount<TAccountSlotHashes> : TAccountSlotHashes,
|
|
3727
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3728
|
+
...TRemainingAccounts
|
|
3729
|
+
]>;
|
|
3730
|
+
type TriggerOneBtcDrawInstructionData = {
|
|
3731
|
+
discriminator: ReadonlyUint8Array;
|
|
3732
|
+
};
|
|
3733
|
+
type TriggerOneBtcDrawInstructionDataArgs = {};
|
|
3734
|
+
declare function getTriggerOneBtcDrawInstructionDataEncoder(): FixedSizeEncoder<TriggerOneBtcDrawInstructionDataArgs>;
|
|
3735
|
+
declare function getTriggerOneBtcDrawInstructionDataDecoder(): FixedSizeDecoder<TriggerOneBtcDrawInstructionData>;
|
|
3736
|
+
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> = {
|
|
3738
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3739
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
3740
|
+
oneBtcVault?: Address<TAccountOneBtcVault>;
|
|
3741
|
+
oneBtcVaultIteration: Address<TAccountOneBtcVaultIteration>;
|
|
3742
|
+
nextOneBtcVaultIteration: Address<TAccountNextOneBtcVaultIteration>;
|
|
3743
|
+
/** because the sysvar is too large to deserialize. */
|
|
3744
|
+
slotHashes?: Address<TAccountSlotHashes>;
|
|
3745
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3746
|
+
};
|
|
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?: {
|
|
3748
|
+
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> = {
|
|
3751
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3752
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
3753
|
+
oneBtcVault: Address<TAccountOneBtcVault>;
|
|
3754
|
+
oneBtcVaultIteration: Address<TAccountOneBtcVaultIteration>;
|
|
3755
|
+
nextOneBtcVaultIteration: Address<TAccountNextOneBtcVaultIteration>;
|
|
3756
|
+
/** because the sysvar is too large to deserialize. */
|
|
3757
|
+
slotHashes?: Address<TAccountSlotHashes>;
|
|
3758
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3759
|
+
};
|
|
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?: {
|
|
3761
|
+
programAddress?: TProgramAddress;
|
|
3762
|
+
}): TriggerOneBtcDrawInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountOneBtcVault, TAccountOneBtcVaultIteration, TAccountNextOneBtcVaultIteration, TAccountSlotHashes, TAccountSystemProgram>;
|
|
3763
|
+
type ParsedTriggerOneBtcDrawInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3764
|
+
programAddress: Address<TProgram>;
|
|
3765
|
+
accounts: {
|
|
3766
|
+
authority: TAccountMetas[0];
|
|
3767
|
+
satrushConfig: TAccountMetas[1];
|
|
3768
|
+
oneBtcVault: TAccountMetas[2];
|
|
3769
|
+
oneBtcVaultIteration: TAccountMetas[3];
|
|
3770
|
+
nextOneBtcVaultIteration: TAccountMetas[4];
|
|
3771
|
+
/** because the sysvar is too large to deserialize. */
|
|
3772
|
+
slotHashes: TAccountMetas[5];
|
|
3773
|
+
systemProgram: TAccountMetas[6];
|
|
3774
|
+
};
|
|
3775
|
+
data: TriggerOneBtcDrawInstructionData;
|
|
3776
|
+
};
|
|
3777
|
+
declare function parseTriggerOneBtcDrawInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedTriggerOneBtcDrawInstruction<TProgram, TAccountMetas>;
|
|
3778
|
+
|
|
3779
|
+
/**
|
|
3780
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3781
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3782
|
+
* to add features, then rerun Codama to update it.
|
|
3783
|
+
*
|
|
3784
|
+
* @see https://github.com/codama-idl/codama
|
|
3785
|
+
*/
|
|
3786
|
+
|
|
3787
|
+
declare const WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3788
|
+
declare function getWithdrawProtocolFeesDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3789
|
+
type WithdrawProtocolFeesInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSatrushConfig extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountUsdMint extends string | AccountMeta<string> = string, TAccountTreasuryUsdAta extends string | AccountMeta<string> = string, TAccountFeeRecipient extends string | AccountMeta<string> = string, TAccountFeeRecipientUsdAta 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<[
|
|
3790
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3791
|
+
TAccountSatrushConfig extends string ? ReadonlyAccount<TAccountSatrushConfig> : TAccountSatrushConfig,
|
|
3792
|
+
TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
|
|
3793
|
+
TAccountUsdMint extends string ? ReadonlyAccount<TAccountUsdMint> : TAccountUsdMint,
|
|
3794
|
+
TAccountTreasuryUsdAta extends string ? WritableAccount<TAccountTreasuryUsdAta> : TAccountTreasuryUsdAta,
|
|
3795
|
+
TAccountFeeRecipient extends string ? ReadonlyAccount<TAccountFeeRecipient> : TAccountFeeRecipient,
|
|
3796
|
+
TAccountFeeRecipientUsdAta extends string ? WritableAccount<TAccountFeeRecipientUsdAta> : TAccountFeeRecipientUsdAta,
|
|
3797
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
3798
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
3799
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3800
|
+
...TRemainingAccounts
|
|
3801
|
+
]>;
|
|
3802
|
+
type WithdrawProtocolFeesInstructionData = {
|
|
3803
|
+
discriminator: ReadonlyUint8Array;
|
|
3804
|
+
};
|
|
3805
|
+
type WithdrawProtocolFeesInstructionDataArgs = {};
|
|
3806
|
+
declare function getWithdrawProtocolFeesInstructionDataEncoder(): FixedSizeEncoder<WithdrawProtocolFeesInstructionDataArgs>;
|
|
3807
|
+
declare function getWithdrawProtocolFeesInstructionDataDecoder(): FixedSizeDecoder<WithdrawProtocolFeesInstructionData>;
|
|
3808
|
+
declare function getWithdrawProtocolFeesInstructionDataCodec(): FixedSizeCodec<WithdrawProtocolFeesInstructionDataArgs, WithdrawProtocolFeesInstructionData>;
|
|
3809
|
+
type WithdrawProtocolFeesAsyncInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountTreasury extends string = string, TAccountUsdMint extends string = string, TAccountTreasuryUsdAta extends string = string, TAccountFeeRecipient extends string = string, TAccountFeeRecipientUsdAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
3810
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3811
|
+
satrushConfig?: Address<TAccountSatrushConfig>;
|
|
3812
|
+
/** The treasury: owns the fee pool and signs the withdrawal transfer. */
|
|
3813
|
+
treasury?: Address<TAccountTreasury>;
|
|
3814
|
+
usdMint: Address<TAccountUsdMint>;
|
|
3815
|
+
/** Treasury's USD fee pool — the withdrawal source. */
|
|
3816
|
+
treasuryUsdAta?: Address<TAccountTreasuryUsdAta>;
|
|
3817
|
+
/** as the authority of the destination ATA. */
|
|
3818
|
+
feeRecipient: Address<TAccountFeeRecipient>;
|
|
3819
|
+
/**
|
|
3820
|
+
* Fee recipient's USD account — the withdrawal destination. Created by the
|
|
3821
|
+
* crank if missing.
|
|
3822
|
+
*/
|
|
3823
|
+
feeRecipientUsdAta?: Address<TAccountFeeRecipientUsdAta>;
|
|
3824
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3825
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
3826
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3827
|
+
};
|
|
3828
|
+
declare function getWithdrawProtocolFeesInstructionAsync<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountTreasury extends string, TAccountUsdMint extends string, TAccountTreasuryUsdAta extends string, TAccountFeeRecipient extends string, TAccountFeeRecipientUsdAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: WithdrawProtocolFeesAsyncInput<TAccountAuthority, TAccountSatrushConfig, TAccountTreasury, TAccountUsdMint, TAccountTreasuryUsdAta, TAccountFeeRecipient, TAccountFeeRecipientUsdAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
3829
|
+
programAddress?: TProgramAddress;
|
|
3830
|
+
}): Promise<WithdrawProtocolFeesInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountTreasury, TAccountUsdMint, TAccountTreasuryUsdAta, TAccountFeeRecipient, TAccountFeeRecipientUsdAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
3831
|
+
type WithdrawProtocolFeesInput<TAccountAuthority extends string = string, TAccountSatrushConfig extends string = string, TAccountTreasury extends string = string, TAccountUsdMint extends string = string, TAccountTreasuryUsdAta extends string = string, TAccountFeeRecipient extends string = string, TAccountFeeRecipientUsdAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
3832
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3833
|
+
satrushConfig: Address<TAccountSatrushConfig>;
|
|
3834
|
+
/** The treasury: owns the fee pool and signs the withdrawal transfer. */
|
|
3835
|
+
treasury: Address<TAccountTreasury>;
|
|
3836
|
+
usdMint: Address<TAccountUsdMint>;
|
|
3837
|
+
/** Treasury's USD fee pool — the withdrawal source. */
|
|
3838
|
+
treasuryUsdAta: Address<TAccountTreasuryUsdAta>;
|
|
3839
|
+
/** as the authority of the destination ATA. */
|
|
3840
|
+
feeRecipient: Address<TAccountFeeRecipient>;
|
|
3841
|
+
/**
|
|
3842
|
+
* Fee recipient's USD account — the withdrawal destination. Created by the
|
|
3843
|
+
* crank if missing.
|
|
3844
|
+
*/
|
|
3845
|
+
feeRecipientUsdAta: Address<TAccountFeeRecipientUsdAta>;
|
|
3846
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
3847
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
3848
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3849
|
+
};
|
|
3850
|
+
declare function getWithdrawProtocolFeesInstruction<TAccountAuthority extends string, TAccountSatrushConfig extends string, TAccountTreasury extends string, TAccountUsdMint extends string, TAccountTreasuryUsdAta extends string, TAccountFeeRecipient extends string, TAccountFeeRecipientUsdAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SATRUSH_PROGRAM_ADDRESS>(input: WithdrawProtocolFeesInput<TAccountAuthority, TAccountSatrushConfig, TAccountTreasury, TAccountUsdMint, TAccountTreasuryUsdAta, TAccountFeeRecipient, TAccountFeeRecipientUsdAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
3851
|
+
programAddress?: TProgramAddress;
|
|
3852
|
+
}): WithdrawProtocolFeesInstruction<TProgramAddress, TAccountAuthority, TAccountSatrushConfig, TAccountTreasury, TAccountUsdMint, TAccountTreasuryUsdAta, TAccountFeeRecipient, TAccountFeeRecipientUsdAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
3853
|
+
type ParsedWithdrawProtocolFeesInstruction<TProgram extends string = typeof SATRUSH_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3854
|
+
programAddress: Address<TProgram>;
|
|
3855
|
+
accounts: {
|
|
3856
|
+
authority: TAccountMetas[0];
|
|
3857
|
+
satrushConfig: TAccountMetas[1];
|
|
3858
|
+
/** The treasury: owns the fee pool and signs the withdrawal transfer. */
|
|
3859
|
+
treasury: TAccountMetas[2];
|
|
3860
|
+
usdMint: TAccountMetas[3];
|
|
3861
|
+
/** Treasury's USD fee pool — the withdrawal source. */
|
|
3862
|
+
treasuryUsdAta: TAccountMetas[4];
|
|
3863
|
+
/** as the authority of the destination ATA. */
|
|
3864
|
+
feeRecipient: TAccountMetas[5];
|
|
3865
|
+
/**
|
|
3866
|
+
* Fee recipient's USD account — the withdrawal destination. Created by the
|
|
3867
|
+
* crank if missing.
|
|
3868
|
+
*/
|
|
3869
|
+
feeRecipientUsdAta: TAccountMetas[6];
|
|
3870
|
+
tokenProgram: TAccountMetas[7];
|
|
3871
|
+
associatedTokenProgram: TAccountMetas[8];
|
|
3872
|
+
systemProgram: TAccountMetas[9];
|
|
3873
|
+
};
|
|
3874
|
+
data: WithdrawProtocolFeesInstructionData;
|
|
3875
|
+
};
|
|
3876
|
+
declare function parseWithdrawProtocolFeesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedWithdrawProtocolFeesInstruction<TProgram, TAccountMetas>;
|
|
3877
|
+
|
|
3878
|
+
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, 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, 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, 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, getEpochVaultCodec, getEpochVaultDecoder, getEpochVaultDiscriminatorBytes, getEpochVaultEncoder, getEpochVaultEntryCodec, getEpochVaultEntryDecoder, getEpochVaultEntryDiscriminatorBytes, getEpochVaultEntryEncoder, getEpochVaultEntrySize, getEpochVaultIterationCodec, getEpochVaultIterationDecoder, getEpochVaultIterationDiscriminatorBytes, getEpochVaultIterationEncoder, getEpochVaultIterationSize, getEpochVaultPageCodec, getEpochVaultPageDecoder, getEpochVaultPageDiscriminatorBytes, getEpochVaultPageEncoder, getEpochVaultPageSize, getEpochVaultSize, getMinerCodec, getMinerDecoder, getMinerDiscriminatorBytes, getMinerEncoder, getMinerSize, getOneBtcStateCodec, getOneBtcStateDecoder, getOneBtcStateEncoder, getOneBtcVaultCodec, getOneBtcVaultDecoder, getOneBtcVaultDiscriminatorBytes, getOneBtcVaultEncoder, getOneBtcVaultEntryCodec, getOneBtcVaultEntryDecoder, getOneBtcVaultEntryDiscriminatorBytes, getOneBtcVaultEntryEncoder, getOneBtcVaultEntrySize, getOneBtcVaultIterationCodec, getOneBtcVaultIterationDecoder, getOneBtcVaultIterationDiscriminatorBytes, getOneBtcVaultIterationEncoder, getOneBtcVaultIterationSize, getOneBtcVaultSize, getPageEntryCodec, getPageEntryDecoder, getPageEntryEncoder, getPublicDeploymentCodec, getPublicDeploymentDecoder, getPublicDeploymentDiscriminatorBytes, getPublicDeploymentEncoder, getRotateRoundDiscriminatorBytes, getRotateRoundInstruction, getRotateRoundInstructionAsync, getRotateRoundInstructionDataCodec, getRotateRoundInstructionDataDecoder, getRotateRoundInstructionDataEncoder, getRoundCodec, getRoundDecoder, getRoundDiscriminatorBytes, getRoundEncoder, getRoundStateCodec, getRoundStateDecoder, getRoundStateEncoder, getSatrushConfigCodec, getSatrushConfigDecoder, getSatrushConfigDiscriminatorBytes, getSatrushConfigEncoder, getSatrushConfigSize, getSatrushErrorMessage, 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, 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 };
|