@bench.games/opportunity-markets 0.1.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/dist/browser/index.js +25213 -0
- package/dist/index.cjs +29688 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3481 -0
- package/dist/index.d.ts +3481 -0
- package/dist/index.js +30154 -0
- package/dist/index.js.map +1 -0
- package/package.json +36 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,3481 @@
|
|
|
1
|
+
import { ReadonlyUint8Array, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccounts, Address, FetchAccountsConfig, fetchEncodedAccount, FetchAccountConfig, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, GetDiscriminatedUnionVariantContent, GetDiscriminatedUnionVariant, Codec, Decoder, Encoder, Option, OptionOrNullable, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, TransactionSigner, AccountMeta, Instruction, InstructionWithData, InstructionWithAccounts, WritableSignerAccount, AccountSignerMeta, WritableAccount, ReadonlyAccount, ReadonlySignerAccount, ProgramDerivedAddress, Rpc, SolanaRpcApi } from '@solana/kit';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
5
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
6
|
+
* to add features, then rerun Codama to update it.
|
|
7
|
+
*
|
|
8
|
+
* @see https://github.com/codama-idl/codama
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
declare const ARCIUM_SIGNER_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
12
|
+
declare function getArciumSignerAccountDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
+
type ArciumSignerAccount = {
|
|
14
|
+
discriminator: ReadonlyUint8Array;
|
|
15
|
+
bump: number;
|
|
16
|
+
};
|
|
17
|
+
type ArciumSignerAccountArgs = {
|
|
18
|
+
bump: number;
|
|
19
|
+
};
|
|
20
|
+
declare function getArciumSignerAccountEncoder(): FixedSizeEncoder<ArciumSignerAccountArgs>;
|
|
21
|
+
declare function getArciumSignerAccountDecoder(): FixedSizeDecoder<ArciumSignerAccount>;
|
|
22
|
+
declare function getArciumSignerAccountCodec(): FixedSizeCodec<ArciumSignerAccountArgs, ArciumSignerAccount>;
|
|
23
|
+
declare function decodeArciumSignerAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<ArciumSignerAccount, TAddress>;
|
|
24
|
+
declare function decodeArciumSignerAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<ArciumSignerAccount, TAddress>;
|
|
25
|
+
declare function fetchArciumSignerAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<ArciumSignerAccount, TAddress>>;
|
|
26
|
+
declare function fetchMaybeArciumSignerAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<ArciumSignerAccount, TAddress>>;
|
|
27
|
+
declare function fetchAllArciumSignerAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<ArciumSignerAccount>[]>;
|
|
28
|
+
declare function fetchAllMaybeArciumSignerAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<ArciumSignerAccount>[]>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
32
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
33
|
+
* to add features, then rerun Codama to update it.
|
|
34
|
+
*
|
|
35
|
+
* @see https://github.com/codama-idl/codama
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
type Activation = {
|
|
39
|
+
activationEpoch: Epoch;
|
|
40
|
+
deactivationEpoch: Epoch;
|
|
41
|
+
};
|
|
42
|
+
type ActivationArgs = {
|
|
43
|
+
activationEpoch: EpochArgs;
|
|
44
|
+
deactivationEpoch: EpochArgs;
|
|
45
|
+
};
|
|
46
|
+
declare function getActivationEncoder(): FixedSizeEncoder<ActivationArgs>;
|
|
47
|
+
declare function getActivationDecoder(): FixedSizeDecoder<Activation>;
|
|
48
|
+
declare function getActivationCodec(): FixedSizeCodec<ActivationArgs, Activation>;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
52
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
53
|
+
* to add features, then rerun Codama to update it.
|
|
54
|
+
*
|
|
55
|
+
* @see https://github.com/codama-idl/codama
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
type BN254G2BLSPublicKey = readonly [Array<number>];
|
|
59
|
+
type BN254G2BLSPublicKeyArgs = BN254G2BLSPublicKey;
|
|
60
|
+
declare function getBN254G2BLSPublicKeyEncoder(): FixedSizeEncoder<BN254G2BLSPublicKeyArgs>;
|
|
61
|
+
declare function getBN254G2BLSPublicKeyDecoder(): FixedSizeDecoder<BN254G2BLSPublicKey>;
|
|
62
|
+
declare function getBN254G2BLSPublicKeyCodec(): FixedSizeCodec<BN254G2BLSPublicKeyArgs, BN254G2BLSPublicKey>;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
66
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
67
|
+
* to add features, then rerun Codama to update it.
|
|
68
|
+
*
|
|
69
|
+
* @see https://github.com/codama-idl/codama
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The output of the callback instruction. Provided as a struct with ordered fields
|
|
74
|
+
* as anchor does not support tuples and tuple structs yet.
|
|
75
|
+
*/
|
|
76
|
+
type BuyOpportunityMarketSharesOutput = {
|
|
77
|
+
field0: BuyOpportunityMarketSharesOutputStruct0;
|
|
78
|
+
};
|
|
79
|
+
type BuyOpportunityMarketSharesOutputArgs = {
|
|
80
|
+
field0: BuyOpportunityMarketSharesOutputStruct0Args;
|
|
81
|
+
};
|
|
82
|
+
declare function getBuyOpportunityMarketSharesOutputEncoder(): FixedSizeEncoder<BuyOpportunityMarketSharesOutputArgs>;
|
|
83
|
+
declare function getBuyOpportunityMarketSharesOutputDecoder(): FixedSizeDecoder<BuyOpportunityMarketSharesOutput>;
|
|
84
|
+
declare function getBuyOpportunityMarketSharesOutputCodec(): FixedSizeCodec<BuyOpportunityMarketSharesOutputArgs, BuyOpportunityMarketSharesOutput>;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
88
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
89
|
+
* to add features, then rerun Codama to update it.
|
|
90
|
+
*
|
|
91
|
+
* @see https://github.com/codama-idl/codama
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
type BuyOpportunityMarketSharesOutputStruct0 = {
|
|
95
|
+
field0: boolean;
|
|
96
|
+
field1: {
|
|
97
|
+
encryptionKey: Array<number>;
|
|
98
|
+
nonce: bigint;
|
|
99
|
+
ciphertexts: Array<Array<number>>;
|
|
100
|
+
};
|
|
101
|
+
field2: {
|
|
102
|
+
nonce: bigint;
|
|
103
|
+
ciphertexts: Array<Array<number>>;
|
|
104
|
+
};
|
|
105
|
+
field3: {
|
|
106
|
+
encryptionKey: Array<number>;
|
|
107
|
+
nonce: bigint;
|
|
108
|
+
ciphertexts: Array<Array<number>>;
|
|
109
|
+
};
|
|
110
|
+
field4: {
|
|
111
|
+
encryptionKey: Array<number>;
|
|
112
|
+
nonce: bigint;
|
|
113
|
+
ciphertexts: Array<Array<number>>;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
type BuyOpportunityMarketSharesOutputStruct0Args = {
|
|
117
|
+
field0: boolean;
|
|
118
|
+
field1: {
|
|
119
|
+
encryptionKey: Array<number>;
|
|
120
|
+
nonce: number | bigint;
|
|
121
|
+
ciphertexts: Array<Array<number>>;
|
|
122
|
+
};
|
|
123
|
+
field2: {
|
|
124
|
+
nonce: number | bigint;
|
|
125
|
+
ciphertexts: Array<Array<number>>;
|
|
126
|
+
};
|
|
127
|
+
field3: {
|
|
128
|
+
encryptionKey: Array<number>;
|
|
129
|
+
nonce: number | bigint;
|
|
130
|
+
ciphertexts: Array<Array<number>>;
|
|
131
|
+
};
|
|
132
|
+
field4: {
|
|
133
|
+
encryptionKey: Array<number>;
|
|
134
|
+
nonce: number | bigint;
|
|
135
|
+
ciphertexts: Array<Array<number>>;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
declare function getBuyOpportunityMarketSharesOutputStruct0Encoder(): FixedSizeEncoder<BuyOpportunityMarketSharesOutputStruct0Args>;
|
|
139
|
+
declare function getBuyOpportunityMarketSharesOutputStruct0Decoder(): FixedSizeDecoder<BuyOpportunityMarketSharesOutputStruct0>;
|
|
140
|
+
declare function getBuyOpportunityMarketSharesOutputStruct0Codec(): FixedSizeCodec<BuyOpportunityMarketSharesOutputStruct0Args, BuyOpportunityMarketSharesOutputStruct0>;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
144
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
145
|
+
* to add features, then rerun Codama to update it.
|
|
146
|
+
*
|
|
147
|
+
* @see https://github.com/codama-idl/codama
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The output of the callback instruction. Provided as a struct with ordered fields
|
|
152
|
+
* as anchor does not support tuples and tuple structs yet.
|
|
153
|
+
*/
|
|
154
|
+
type BuyVoteTokensOutput = {
|
|
155
|
+
field0: BuyVoteTokensOutputStruct0;
|
|
156
|
+
};
|
|
157
|
+
type BuyVoteTokensOutputArgs = {
|
|
158
|
+
field0: BuyVoteTokensOutputStruct0Args;
|
|
159
|
+
};
|
|
160
|
+
declare function getBuyVoteTokensOutputEncoder(): FixedSizeEncoder<BuyVoteTokensOutputArgs>;
|
|
161
|
+
declare function getBuyVoteTokensOutputDecoder(): FixedSizeDecoder<BuyVoteTokensOutput>;
|
|
162
|
+
declare function getBuyVoteTokensOutputCodec(): FixedSizeCodec<BuyVoteTokensOutputArgs, BuyVoteTokensOutput>;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
166
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
167
|
+
* to add features, then rerun Codama to update it.
|
|
168
|
+
*
|
|
169
|
+
* @see https://github.com/codama-idl/codama
|
|
170
|
+
*/
|
|
171
|
+
|
|
172
|
+
type BuyVoteTokensOutputStruct0 = {
|
|
173
|
+
field0: bigint;
|
|
174
|
+
field1: {
|
|
175
|
+
encryptionKey: Array<number>;
|
|
176
|
+
nonce: bigint;
|
|
177
|
+
ciphertexts: Array<Array<number>>;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
type BuyVoteTokensOutputStruct0Args = {
|
|
181
|
+
field0: number | bigint;
|
|
182
|
+
field1: {
|
|
183
|
+
encryptionKey: Array<number>;
|
|
184
|
+
nonce: number | bigint;
|
|
185
|
+
ciphertexts: Array<Array<number>>;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
declare function getBuyVoteTokensOutputStruct0Encoder(): FixedSizeEncoder<BuyVoteTokensOutputStruct0Args>;
|
|
189
|
+
declare function getBuyVoteTokensOutputStruct0Decoder(): FixedSizeDecoder<BuyVoteTokensOutputStruct0>;
|
|
190
|
+
declare function getBuyVoteTokensOutputStruct0Codec(): FixedSizeCodec<BuyVoteTokensOutputStruct0Args, BuyVoteTokensOutputStruct0>;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
194
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
195
|
+
* to add features, then rerun Codama to update it.
|
|
196
|
+
*
|
|
197
|
+
* @see https://github.com/codama-idl/codama
|
|
198
|
+
*/
|
|
199
|
+
|
|
200
|
+
type CircuitSource = {
|
|
201
|
+
__kind: 'Local';
|
|
202
|
+
fields: readonly [LocalCircuitSource];
|
|
203
|
+
} | {
|
|
204
|
+
__kind: 'OnChain';
|
|
205
|
+
fields: readonly [OnChainCircuitSource];
|
|
206
|
+
} | {
|
|
207
|
+
__kind: 'OffChain';
|
|
208
|
+
fields: readonly [OffChainCircuitSource];
|
|
209
|
+
};
|
|
210
|
+
type CircuitSourceArgs = {
|
|
211
|
+
__kind: 'Local';
|
|
212
|
+
fields: readonly [LocalCircuitSourceArgs];
|
|
213
|
+
} | {
|
|
214
|
+
__kind: 'OnChain';
|
|
215
|
+
fields: readonly [OnChainCircuitSourceArgs];
|
|
216
|
+
} | {
|
|
217
|
+
__kind: 'OffChain';
|
|
218
|
+
fields: readonly [OffChainCircuitSourceArgs];
|
|
219
|
+
};
|
|
220
|
+
declare function getCircuitSourceEncoder(): Encoder<CircuitSourceArgs>;
|
|
221
|
+
declare function getCircuitSourceDecoder(): Decoder<CircuitSource>;
|
|
222
|
+
declare function getCircuitSourceCodec(): Codec<CircuitSourceArgs, CircuitSource>;
|
|
223
|
+
declare function circuitSource(kind: 'Local', data: GetDiscriminatedUnionVariantContent<CircuitSourceArgs, '__kind', 'Local'>['fields']): GetDiscriminatedUnionVariant<CircuitSourceArgs, '__kind', 'Local'>;
|
|
224
|
+
declare function circuitSource(kind: 'OnChain', data: GetDiscriminatedUnionVariantContent<CircuitSourceArgs, '__kind', 'OnChain'>['fields']): GetDiscriminatedUnionVariant<CircuitSourceArgs, '__kind', 'OnChain'>;
|
|
225
|
+
declare function circuitSource(kind: 'OffChain', data: GetDiscriminatedUnionVariantContent<CircuitSourceArgs, '__kind', 'OffChain'>['fields']): GetDiscriminatedUnionVariant<CircuitSourceArgs, '__kind', 'OffChain'>;
|
|
226
|
+
declare function isCircuitSource<K extends CircuitSource['__kind']>(kind: K, value: CircuitSource): value is CircuitSource & {
|
|
227
|
+
__kind: K;
|
|
228
|
+
};
|
|
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
|
+
/**
|
|
239
|
+
* The output of the callback instruction. Provided as a struct with ordered fields
|
|
240
|
+
* as anchor does not support tuples and tuple structs yet.
|
|
241
|
+
*/
|
|
242
|
+
type ClaimVoteTokensOutput = {
|
|
243
|
+
field0: ClaimVoteTokensOutputStruct0;
|
|
244
|
+
};
|
|
245
|
+
type ClaimVoteTokensOutputArgs = {
|
|
246
|
+
field0: ClaimVoteTokensOutputStruct0Args;
|
|
247
|
+
};
|
|
248
|
+
declare function getClaimVoteTokensOutputEncoder(): FixedSizeEncoder<ClaimVoteTokensOutputArgs>;
|
|
249
|
+
declare function getClaimVoteTokensOutputDecoder(): FixedSizeDecoder<ClaimVoteTokensOutput>;
|
|
250
|
+
declare function getClaimVoteTokensOutputCodec(): FixedSizeCodec<ClaimVoteTokensOutputArgs, ClaimVoteTokensOutput>;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
254
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
255
|
+
* to add features, then rerun Codama to update it.
|
|
256
|
+
*
|
|
257
|
+
* @see https://github.com/codama-idl/codama
|
|
258
|
+
*/
|
|
259
|
+
|
|
260
|
+
type ClaimVoteTokensOutputStruct0 = {
|
|
261
|
+
field0: boolean;
|
|
262
|
+
field1: bigint;
|
|
263
|
+
field2: {
|
|
264
|
+
encryptionKey: Array<number>;
|
|
265
|
+
nonce: bigint;
|
|
266
|
+
ciphertexts: Array<Array<number>>;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
type ClaimVoteTokensOutputStruct0Args = {
|
|
270
|
+
field0: boolean;
|
|
271
|
+
field1: number | bigint;
|
|
272
|
+
field2: {
|
|
273
|
+
encryptionKey: Array<number>;
|
|
274
|
+
nonce: number | bigint;
|
|
275
|
+
ciphertexts: Array<Array<number>>;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
declare function getClaimVoteTokensOutputStruct0Encoder(): FixedSizeEncoder<ClaimVoteTokensOutputStruct0Args>;
|
|
279
|
+
declare function getClaimVoteTokensOutputStruct0Decoder(): FixedSizeDecoder<ClaimVoteTokensOutputStruct0>;
|
|
280
|
+
declare function getClaimVoteTokensOutputStruct0Codec(): FixedSizeCodec<ClaimVoteTokensOutputStruct0Args, ClaimVoteTokensOutputStruct0>;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
284
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
285
|
+
* to add features, then rerun Codama to update it.
|
|
286
|
+
*
|
|
287
|
+
* @see https://github.com/codama-idl/codama
|
|
288
|
+
*/
|
|
289
|
+
|
|
290
|
+
/** A computation definition for execution in a MXE. */
|
|
291
|
+
type ComputationDefinitionMeta = {
|
|
292
|
+
circuitLen: number;
|
|
293
|
+
signature: ComputationSignature;
|
|
294
|
+
};
|
|
295
|
+
type ComputationDefinitionMetaArgs = {
|
|
296
|
+
circuitLen: number;
|
|
297
|
+
signature: ComputationSignatureArgs;
|
|
298
|
+
};
|
|
299
|
+
declare function getComputationDefinitionMetaEncoder(): Encoder<ComputationDefinitionMetaArgs>;
|
|
300
|
+
declare function getComputationDefinitionMetaDecoder(): Decoder<ComputationDefinitionMeta>;
|
|
301
|
+
declare function getComputationDefinitionMetaCodec(): Codec<ComputationDefinitionMetaArgs, ComputationDefinitionMeta>;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
305
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
306
|
+
* to add features, then rerun Codama to update it.
|
|
307
|
+
*
|
|
308
|
+
* @see https://github.com/codama-idl/codama
|
|
309
|
+
*/
|
|
310
|
+
|
|
311
|
+
/** The signature of a computation defined in a [ComputationDefinition]. */
|
|
312
|
+
type ComputationSignature = {
|
|
313
|
+
parameters: Array<Parameter>;
|
|
314
|
+
outputs: Array<Output>;
|
|
315
|
+
};
|
|
316
|
+
type ComputationSignatureArgs = {
|
|
317
|
+
parameters: Array<ParameterArgs>;
|
|
318
|
+
outputs: Array<OutputArgs>;
|
|
319
|
+
};
|
|
320
|
+
declare function getComputationSignatureEncoder(): Encoder<ComputationSignatureArgs>;
|
|
321
|
+
declare function getComputationSignatureDecoder(): Decoder<ComputationSignature>;
|
|
322
|
+
declare function getComputationSignatureCodec(): Codec<ComputationSignatureArgs, ComputationSignature>;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
326
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
327
|
+
* to add features, then rerun Codama to update it.
|
|
328
|
+
*
|
|
329
|
+
* @see https://github.com/codama-idl/codama
|
|
330
|
+
*/
|
|
331
|
+
|
|
332
|
+
/** The network epoch */
|
|
333
|
+
type Epoch = readonly [bigint];
|
|
334
|
+
type EpochArgs = readonly [number | bigint];
|
|
335
|
+
declare function getEpochEncoder(): FixedSizeEncoder<EpochArgs>;
|
|
336
|
+
declare function getEpochDecoder(): FixedSizeDecoder<Epoch>;
|
|
337
|
+
declare function getEpochCodec(): FixedSizeCodec<EpochArgs, Epoch>;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
341
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
342
|
+
* to add features, then rerun Codama to update it.
|
|
343
|
+
*
|
|
344
|
+
* @see https://github.com/codama-idl/codama
|
|
345
|
+
*/
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* The output of the callback instruction. Provided as a struct with ordered fields
|
|
349
|
+
* as anchor does not support tuples and tuple structs yet.
|
|
350
|
+
*/
|
|
351
|
+
type InitMarketSharesOutput = {
|
|
352
|
+
field0: {
|
|
353
|
+
nonce: bigint;
|
|
354
|
+
ciphertexts: Array<Array<number>>;
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
type InitMarketSharesOutputArgs = {
|
|
358
|
+
field0: {
|
|
359
|
+
nonce: number | bigint;
|
|
360
|
+
ciphertexts: Array<Array<number>>;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
declare function getInitMarketSharesOutputEncoder(): FixedSizeEncoder<InitMarketSharesOutputArgs>;
|
|
364
|
+
declare function getInitMarketSharesOutputDecoder(): FixedSizeDecoder<InitMarketSharesOutput>;
|
|
365
|
+
declare function getInitMarketSharesOutputCodec(): FixedSizeCodec<InitMarketSharesOutputArgs, InitMarketSharesOutput>;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
369
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
370
|
+
* to add features, then rerun Codama to update it.
|
|
371
|
+
*
|
|
372
|
+
* @see https://github.com/codama-idl/codama
|
|
373
|
+
*/
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* The output of the callback instruction. Provided as a struct with ordered fields
|
|
377
|
+
* as anchor does not support tuples and tuple structs yet.
|
|
378
|
+
*/
|
|
379
|
+
type InitVoteTokenAccountOutput = {
|
|
380
|
+
field0: {
|
|
381
|
+
encryptionKey: Array<number>;
|
|
382
|
+
nonce: bigint;
|
|
383
|
+
ciphertexts: Array<Array<number>>;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
type InitVoteTokenAccountOutputArgs = {
|
|
387
|
+
field0: {
|
|
388
|
+
encryptionKey: Array<number>;
|
|
389
|
+
nonce: number | bigint;
|
|
390
|
+
ciphertexts: Array<Array<number>>;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
declare function getInitVoteTokenAccountOutputEncoder(): FixedSizeEncoder<InitVoteTokenAccountOutputArgs>;
|
|
394
|
+
declare function getInitVoteTokenAccountOutputDecoder(): FixedSizeDecoder<InitVoteTokenAccountOutput>;
|
|
395
|
+
declare function getInitVoteTokenAccountOutputCodec(): FixedSizeCodec<InitVoteTokenAccountOutputArgs, InitVoteTokenAccountOutput>;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
399
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
400
|
+
* to add features, then rerun Codama to update it.
|
|
401
|
+
*
|
|
402
|
+
* @see https://github.com/codama-idl/codama
|
|
403
|
+
*/
|
|
404
|
+
|
|
405
|
+
declare enum LocalCircuitSource {
|
|
406
|
+
MxeKeygen = 0,
|
|
407
|
+
MxeKeyRecoveryInit = 1,
|
|
408
|
+
MxeKeyRecoveryFinalize = 2
|
|
409
|
+
}
|
|
410
|
+
type LocalCircuitSourceArgs = LocalCircuitSource;
|
|
411
|
+
declare function getLocalCircuitSourceEncoder(): FixedSizeEncoder<LocalCircuitSourceArgs>;
|
|
412
|
+
declare function getLocalCircuitSourceDecoder(): FixedSizeDecoder<LocalCircuitSource>;
|
|
413
|
+
declare function getLocalCircuitSourceCodec(): FixedSizeCodec<LocalCircuitSourceArgs, LocalCircuitSource>;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
417
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
418
|
+
* to add features, then rerun Codama to update it.
|
|
419
|
+
*
|
|
420
|
+
* @see https://github.com/codama-idl/codama
|
|
421
|
+
*/
|
|
422
|
+
|
|
423
|
+
type MarketCreatedEvent = {
|
|
424
|
+
market: Address;
|
|
425
|
+
creator: Address;
|
|
426
|
+
maxShares: bigint;
|
|
427
|
+
index: bigint;
|
|
428
|
+
};
|
|
429
|
+
type MarketCreatedEventArgs = {
|
|
430
|
+
market: Address;
|
|
431
|
+
creator: Address;
|
|
432
|
+
maxShares: number | bigint;
|
|
433
|
+
index: number | bigint;
|
|
434
|
+
};
|
|
435
|
+
declare function getMarketCreatedEventEncoder(): FixedSizeEncoder<MarketCreatedEventArgs>;
|
|
436
|
+
declare function getMarketCreatedEventDecoder(): FixedSizeDecoder<MarketCreatedEvent>;
|
|
437
|
+
declare function getMarketCreatedEventCodec(): FixedSizeCodec<MarketCreatedEventArgs, MarketCreatedEvent>;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
441
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
442
|
+
* to add features, then rerun Codama to update it.
|
|
443
|
+
*
|
|
444
|
+
* @see https://github.com/codama-idl/codama
|
|
445
|
+
*/
|
|
446
|
+
|
|
447
|
+
/** The status of an MXE. */
|
|
448
|
+
declare enum MxeStatus {
|
|
449
|
+
Active = 0,
|
|
450
|
+
Recovery = 1
|
|
451
|
+
}
|
|
452
|
+
type MxeStatusArgs = MxeStatus;
|
|
453
|
+
declare function getMxeStatusEncoder(): FixedSizeEncoder<MxeStatusArgs>;
|
|
454
|
+
declare function getMxeStatusDecoder(): FixedSizeDecoder<MxeStatus>;
|
|
455
|
+
declare function getMxeStatusCodec(): FixedSizeCodec<MxeStatusArgs, MxeStatus>;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
459
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
460
|
+
* to add features, then rerun Codama to update it.
|
|
461
|
+
*
|
|
462
|
+
* @see https://github.com/codama-idl/codama
|
|
463
|
+
*/
|
|
464
|
+
|
|
465
|
+
/** location as [ISO 3166-1 alpha-2](https://www.iso.org/iso-3166-country-codes.html) country code */
|
|
466
|
+
type NodeMetadata = {
|
|
467
|
+
ip: Array<number>;
|
|
468
|
+
peerId: Array<number>;
|
|
469
|
+
location: number;
|
|
470
|
+
};
|
|
471
|
+
type NodeMetadataArgs = NodeMetadata;
|
|
472
|
+
declare function getNodeMetadataEncoder(): FixedSizeEncoder<NodeMetadataArgs>;
|
|
473
|
+
declare function getNodeMetadataDecoder(): FixedSizeDecoder<NodeMetadata>;
|
|
474
|
+
declare function getNodeMetadataCodec(): FixedSizeCodec<NodeMetadataArgs, NodeMetadata>;
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
478
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
479
|
+
* to add features, then rerun Codama to update it.
|
|
480
|
+
*
|
|
481
|
+
* @see https://github.com/codama-idl/codama
|
|
482
|
+
*/
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* A reference to a node in the cluster.
|
|
486
|
+
* The offset is to derive the Node Account.
|
|
487
|
+
* The current_total_rewards is the total rewards the node has received so far in the current
|
|
488
|
+
* epoch.
|
|
489
|
+
*/
|
|
490
|
+
type NodeRef = {
|
|
491
|
+
offset: number;
|
|
492
|
+
currentTotalRewards: bigint;
|
|
493
|
+
vote: number;
|
|
494
|
+
};
|
|
495
|
+
type NodeRefArgs = {
|
|
496
|
+
offset: number;
|
|
497
|
+
currentTotalRewards: number | bigint;
|
|
498
|
+
vote: number;
|
|
499
|
+
};
|
|
500
|
+
declare function getNodeRefEncoder(): FixedSizeEncoder<NodeRefArgs>;
|
|
501
|
+
declare function getNodeRefDecoder(): FixedSizeDecoder<NodeRef>;
|
|
502
|
+
declare function getNodeRefCodec(): FixedSizeCodec<NodeRefArgs, NodeRef>;
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
506
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
507
|
+
* to add features, then rerun Codama to update it.
|
|
508
|
+
*
|
|
509
|
+
* @see https://github.com/codama-idl/codama
|
|
510
|
+
*/
|
|
511
|
+
|
|
512
|
+
type OffChainCircuitSource = {
|
|
513
|
+
source: string;
|
|
514
|
+
hash: Array<number>;
|
|
515
|
+
};
|
|
516
|
+
type OffChainCircuitSourceArgs = OffChainCircuitSource;
|
|
517
|
+
declare function getOffChainCircuitSourceEncoder(): Encoder<OffChainCircuitSourceArgs>;
|
|
518
|
+
declare function getOffChainCircuitSourceDecoder(): Decoder<OffChainCircuitSource>;
|
|
519
|
+
declare function getOffChainCircuitSourceCodec(): Codec<OffChainCircuitSourceArgs, OffChainCircuitSource>;
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
523
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
524
|
+
* to add features, then rerun Codama to update it.
|
|
525
|
+
*
|
|
526
|
+
* @see https://github.com/codama-idl/codama
|
|
527
|
+
*/
|
|
528
|
+
|
|
529
|
+
type OnChainCircuitSource = {
|
|
530
|
+
isCompleted: boolean;
|
|
531
|
+
uploadAuth: Address;
|
|
532
|
+
};
|
|
533
|
+
type OnChainCircuitSourceArgs = OnChainCircuitSource;
|
|
534
|
+
declare function getOnChainCircuitSourceEncoder(): FixedSizeEncoder<OnChainCircuitSourceArgs>;
|
|
535
|
+
declare function getOnChainCircuitSourceDecoder(): FixedSizeDecoder<OnChainCircuitSource>;
|
|
536
|
+
declare function getOnChainCircuitSourceCodec(): FixedSizeCodec<OnChainCircuitSourceArgs, OnChainCircuitSource>;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
540
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
541
|
+
* to add features, then rerun Codama to update it.
|
|
542
|
+
*
|
|
543
|
+
* @see https://github.com/codama-idl/codama
|
|
544
|
+
*/
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* An output of a computation.
|
|
548
|
+
* We currently don't support encrypted outputs yet since encrypted values are passed via
|
|
549
|
+
* data objects.
|
|
550
|
+
*/
|
|
551
|
+
declare enum Output {
|
|
552
|
+
PlaintextBool = 0,
|
|
553
|
+
PlaintextU8 = 1,
|
|
554
|
+
PlaintextU16 = 2,
|
|
555
|
+
PlaintextU32 = 3,
|
|
556
|
+
PlaintextU64 = 4,
|
|
557
|
+
PlaintextU128 = 5,
|
|
558
|
+
Ciphertext = 6,
|
|
559
|
+
ArcisX25519Pubkey = 7,
|
|
560
|
+
PlaintextFloat = 8,
|
|
561
|
+
PlaintextPoint = 9,
|
|
562
|
+
PlaintextI8 = 10,
|
|
563
|
+
PlaintextI16 = 11,
|
|
564
|
+
PlaintextI32 = 12,
|
|
565
|
+
PlaintextI64 = 13,
|
|
566
|
+
PlaintextI128 = 14
|
|
567
|
+
}
|
|
568
|
+
type OutputArgs = Output;
|
|
569
|
+
declare function getOutputEncoder(): FixedSizeEncoder<OutputArgs>;
|
|
570
|
+
declare function getOutputDecoder(): FixedSizeDecoder<Output>;
|
|
571
|
+
declare function getOutputCodec(): FixedSizeCodec<OutputArgs, Output>;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
575
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
576
|
+
* to add features, then rerun Codama to update it.
|
|
577
|
+
*
|
|
578
|
+
* @see https://github.com/codama-idl/codama
|
|
579
|
+
*/
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* A parameter of a computation.
|
|
583
|
+
* We differentiate between plaintext and encrypted parameters and data objects.
|
|
584
|
+
* Plaintext parameters are directly provided as their value.
|
|
585
|
+
* Encrypted parameters are provided as an offchain reference to the data.
|
|
586
|
+
* Data objects are provided as a reference to the data object account.
|
|
587
|
+
*/
|
|
588
|
+
declare enum Parameter {
|
|
589
|
+
PlaintextBool = 0,
|
|
590
|
+
PlaintextU8 = 1,
|
|
591
|
+
PlaintextU16 = 2,
|
|
592
|
+
PlaintextU32 = 3,
|
|
593
|
+
PlaintextU64 = 4,
|
|
594
|
+
PlaintextU128 = 5,
|
|
595
|
+
Ciphertext = 6,
|
|
596
|
+
ArcisX25519Pubkey = 7,
|
|
597
|
+
ArcisSignature = 8,
|
|
598
|
+
PlaintextFloat = 9,
|
|
599
|
+
PlaintextI8 = 10,
|
|
600
|
+
PlaintextI16 = 11,
|
|
601
|
+
PlaintextI32 = 12,
|
|
602
|
+
PlaintextI64 = 13,
|
|
603
|
+
PlaintextI128 = 14,
|
|
604
|
+
PlaintextPoint = 15
|
|
605
|
+
}
|
|
606
|
+
type ParameterArgs = Parameter;
|
|
607
|
+
declare function getParameterEncoder(): FixedSizeEncoder<ParameterArgs>;
|
|
608
|
+
declare function getParameterDecoder(): FixedSizeDecoder<Parameter>;
|
|
609
|
+
declare function getParameterCodec(): FixedSizeCodec<ParameterArgs, Parameter>;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
613
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
614
|
+
* to add features, then rerun Codama to update it.
|
|
615
|
+
*
|
|
616
|
+
* @see https://github.com/codama-idl/codama
|
|
617
|
+
*/
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* The output of the callback instruction. Provided as a struct with ordered fields
|
|
621
|
+
* as anchor does not support tuples and tuple structs yet.
|
|
622
|
+
*/
|
|
623
|
+
type RevealSharesOutput = {
|
|
624
|
+
field0: RevealSharesOutputStruct0;
|
|
625
|
+
};
|
|
626
|
+
type RevealSharesOutputArgs = {
|
|
627
|
+
field0: RevealSharesOutputStruct0Args;
|
|
628
|
+
};
|
|
629
|
+
declare function getRevealSharesOutputEncoder(): FixedSizeEncoder<RevealSharesOutputArgs>;
|
|
630
|
+
declare function getRevealSharesOutputDecoder(): FixedSizeDecoder<RevealSharesOutput>;
|
|
631
|
+
declare function getRevealSharesOutputCodec(): FixedSizeCodec<RevealSharesOutputArgs, RevealSharesOutput>;
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
635
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
636
|
+
* to add features, then rerun Codama to update it.
|
|
637
|
+
*
|
|
638
|
+
* @see https://github.com/codama-idl/codama
|
|
639
|
+
*/
|
|
640
|
+
|
|
641
|
+
type RevealSharesOutputStruct0 = {
|
|
642
|
+
field0: bigint;
|
|
643
|
+
field1: number;
|
|
644
|
+
field2: {
|
|
645
|
+
encryptionKey: Array<number>;
|
|
646
|
+
nonce: bigint;
|
|
647
|
+
ciphertexts: Array<Array<number>>;
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
type RevealSharesOutputStruct0Args = {
|
|
651
|
+
field0: number | bigint;
|
|
652
|
+
field1: number;
|
|
653
|
+
field2: {
|
|
654
|
+
encryptionKey: Array<number>;
|
|
655
|
+
nonce: number | bigint;
|
|
656
|
+
ciphertexts: Array<Array<number>>;
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
declare function getRevealSharesOutputStruct0Encoder(): FixedSizeEncoder<RevealSharesOutputStruct0Args>;
|
|
660
|
+
declare function getRevealSharesOutputStruct0Decoder(): FixedSizeDecoder<RevealSharesOutputStruct0>;
|
|
661
|
+
declare function getRevealSharesOutputStruct0Codec(): FixedSizeCodec<RevealSharesOutputStruct0Args, RevealSharesOutputStruct0>;
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
665
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
666
|
+
* to add features, then rerun Codama to update it.
|
|
667
|
+
*
|
|
668
|
+
* @see https://github.com/codama-idl/codama
|
|
669
|
+
*/
|
|
670
|
+
|
|
671
|
+
type SharesPurchasedEvent = {
|
|
672
|
+
buyer: Address;
|
|
673
|
+
encryptedDisclosedAmount: Array<number>;
|
|
674
|
+
nonce: bigint;
|
|
675
|
+
};
|
|
676
|
+
type SharesPurchasedEventArgs = {
|
|
677
|
+
buyer: Address;
|
|
678
|
+
encryptedDisclosedAmount: Array<number>;
|
|
679
|
+
nonce: number | bigint;
|
|
680
|
+
};
|
|
681
|
+
declare function getSharesPurchasedEventEncoder(): FixedSizeEncoder<SharesPurchasedEventArgs>;
|
|
682
|
+
declare function getSharesPurchasedEventDecoder(): FixedSizeDecoder<SharesPurchasedEvent>;
|
|
683
|
+
declare function getSharesPurchasedEventCodec(): FixedSizeCodec<SharesPurchasedEventArgs, SharesPurchasedEvent>;
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
687
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
688
|
+
* to add features, then rerun Codama to update it.
|
|
689
|
+
*
|
|
690
|
+
* @see https://github.com/codama-idl/codama
|
|
691
|
+
*/
|
|
692
|
+
|
|
693
|
+
type SharesRevealedEvent = {
|
|
694
|
+
buyer: Address;
|
|
695
|
+
sharesAmount: bigint;
|
|
696
|
+
selectedOption: number;
|
|
697
|
+
};
|
|
698
|
+
type SharesRevealedEventArgs = {
|
|
699
|
+
buyer: Address;
|
|
700
|
+
sharesAmount: number | bigint;
|
|
701
|
+
selectedOption: number;
|
|
702
|
+
};
|
|
703
|
+
declare function getSharesRevealedEventEncoder(): FixedSizeEncoder<SharesRevealedEventArgs>;
|
|
704
|
+
declare function getSharesRevealedEventDecoder(): FixedSizeDecoder<SharesRevealedEvent>;
|
|
705
|
+
declare function getSharesRevealedEventCodec(): FixedSizeCodec<SharesRevealedEventArgs, SharesRevealedEvent>;
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
709
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
710
|
+
* to add features, then rerun Codama to update it.
|
|
711
|
+
*
|
|
712
|
+
* @see https://github.com/codama-idl/codama
|
|
713
|
+
*/
|
|
714
|
+
|
|
715
|
+
type Timestamp = {
|
|
716
|
+
timestamp: bigint;
|
|
717
|
+
};
|
|
718
|
+
type TimestampArgs = {
|
|
719
|
+
timestamp: number | bigint;
|
|
720
|
+
};
|
|
721
|
+
declare function getTimestampEncoder(): FixedSizeEncoder<TimestampArgs>;
|
|
722
|
+
declare function getTimestampDecoder(): FixedSizeDecoder<Timestamp>;
|
|
723
|
+
declare function getTimestampCodec(): FixedSizeCodec<TimestampArgs, Timestamp>;
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
727
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
728
|
+
* to add features, then rerun Codama to update it.
|
|
729
|
+
*
|
|
730
|
+
* @see https://github.com/codama-idl/codama
|
|
731
|
+
*/
|
|
732
|
+
|
|
733
|
+
type UtilityPubkeys = {
|
|
734
|
+
x25519Pubkey: Array<number>;
|
|
735
|
+
ed25519VerifyingKey: Array<number>;
|
|
736
|
+
elgamalPubkey: Array<number>;
|
|
737
|
+
pubkeyValidityProof: Array<number>;
|
|
738
|
+
};
|
|
739
|
+
type UtilityPubkeysArgs = UtilityPubkeys;
|
|
740
|
+
declare function getUtilityPubkeysEncoder(): FixedSizeEncoder<UtilityPubkeysArgs>;
|
|
741
|
+
declare function getUtilityPubkeysDecoder(): FixedSizeDecoder<UtilityPubkeys>;
|
|
742
|
+
declare function getUtilityPubkeysCodec(): FixedSizeCodec<UtilityPubkeysArgs, UtilityPubkeys>;
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
746
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
747
|
+
* to add features, then rerun Codama to update it.
|
|
748
|
+
*
|
|
749
|
+
* @see https://github.com/codama-idl/codama
|
|
750
|
+
*/
|
|
751
|
+
|
|
752
|
+
type VoteTokenPurchasedEvent = {
|
|
753
|
+
voteToken: Address;
|
|
754
|
+
buyer: Address;
|
|
755
|
+
lamportsSpent: bigint;
|
|
756
|
+
};
|
|
757
|
+
type VoteTokenPurchasedEventArgs = {
|
|
758
|
+
voteToken: Address;
|
|
759
|
+
buyer: Address;
|
|
760
|
+
lamportsSpent: number | bigint;
|
|
761
|
+
};
|
|
762
|
+
declare function getVoteTokenPurchasedEventEncoder(): FixedSizeEncoder<VoteTokenPurchasedEventArgs>;
|
|
763
|
+
declare function getVoteTokenPurchasedEventDecoder(): FixedSizeDecoder<VoteTokenPurchasedEvent>;
|
|
764
|
+
declare function getVoteTokenPurchasedEventCodec(): FixedSizeCodec<VoteTokenPurchasedEventArgs, VoteTokenPurchasedEvent>;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
768
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
769
|
+
* to add features, then rerun Codama to update it.
|
|
770
|
+
*
|
|
771
|
+
* @see https://github.com/codama-idl/codama
|
|
772
|
+
*/
|
|
773
|
+
|
|
774
|
+
declare const CLOCK_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
775
|
+
declare function getClockAccountDiscriminatorBytes(): ReadonlyUint8Array;
|
|
776
|
+
type ClockAccount = {
|
|
777
|
+
discriminator: ReadonlyUint8Array;
|
|
778
|
+
startEpoch: Epoch;
|
|
779
|
+
currentEpoch: Epoch;
|
|
780
|
+
startEpochTimestamp: Timestamp;
|
|
781
|
+
bump: number;
|
|
782
|
+
};
|
|
783
|
+
type ClockAccountArgs = {
|
|
784
|
+
startEpoch: EpochArgs;
|
|
785
|
+
currentEpoch: EpochArgs;
|
|
786
|
+
startEpochTimestamp: TimestampArgs;
|
|
787
|
+
bump: number;
|
|
788
|
+
};
|
|
789
|
+
declare function getClockAccountEncoder(): FixedSizeEncoder<ClockAccountArgs>;
|
|
790
|
+
declare function getClockAccountDecoder(): FixedSizeDecoder<ClockAccount>;
|
|
791
|
+
declare function getClockAccountCodec(): FixedSizeCodec<ClockAccountArgs, ClockAccount>;
|
|
792
|
+
declare function decodeClockAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<ClockAccount, TAddress>;
|
|
793
|
+
declare function decodeClockAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<ClockAccount, TAddress>;
|
|
794
|
+
declare function fetchClockAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<ClockAccount, TAddress>>;
|
|
795
|
+
declare function fetchMaybeClockAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<ClockAccount, TAddress>>;
|
|
796
|
+
declare function fetchAllClockAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<ClockAccount>[]>;
|
|
797
|
+
declare function fetchAllMaybeClockAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<ClockAccount>[]>;
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
801
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
802
|
+
* to add features, then rerun Codama to update it.
|
|
803
|
+
*
|
|
804
|
+
* @see https://github.com/codama-idl/codama
|
|
805
|
+
*/
|
|
806
|
+
|
|
807
|
+
declare const CLUSTER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
808
|
+
declare function getClusterDiscriminatorBytes(): ReadonlyUint8Array;
|
|
809
|
+
type Cluster = {
|
|
810
|
+
discriminator: ReadonlyUint8Array;
|
|
811
|
+
tdInfo: Option<NodeMetadata>;
|
|
812
|
+
authority: Option<Address>;
|
|
813
|
+
clusterSize: number;
|
|
814
|
+
activation: Activation;
|
|
815
|
+
maxCapacity: bigint;
|
|
816
|
+
cuPrice: bigint;
|
|
817
|
+
cuPriceProposals: Array<bigint>;
|
|
818
|
+
lastUpdatedEpoch: Epoch;
|
|
819
|
+
nodes: Array<NodeRef>;
|
|
820
|
+
pendingNodes: Array<number>;
|
|
821
|
+
blsPublicKey: {
|
|
822
|
+
__kind: 'Set';
|
|
823
|
+
fields: readonly [BN254G2BLSPublicKey];
|
|
824
|
+
} | {
|
|
825
|
+
__kind: 'Unset';
|
|
826
|
+
fields: readonly [BN254G2BLSPublicKey, Array<boolean>];
|
|
827
|
+
};
|
|
828
|
+
bump: number;
|
|
829
|
+
};
|
|
830
|
+
type ClusterArgs = {
|
|
831
|
+
tdInfo: OptionOrNullable<NodeMetadataArgs>;
|
|
832
|
+
authority: OptionOrNullable<Address>;
|
|
833
|
+
clusterSize: number;
|
|
834
|
+
activation: ActivationArgs;
|
|
835
|
+
maxCapacity: number | bigint;
|
|
836
|
+
cuPrice: number | bigint;
|
|
837
|
+
cuPriceProposals: Array<number | bigint>;
|
|
838
|
+
lastUpdatedEpoch: EpochArgs;
|
|
839
|
+
nodes: Array<NodeRefArgs>;
|
|
840
|
+
pendingNodes: Array<number>;
|
|
841
|
+
blsPublicKey: {
|
|
842
|
+
__kind: 'Set';
|
|
843
|
+
fields: readonly [BN254G2BLSPublicKeyArgs];
|
|
844
|
+
} | {
|
|
845
|
+
__kind: 'Unset';
|
|
846
|
+
fields: readonly [BN254G2BLSPublicKeyArgs, Array<boolean>];
|
|
847
|
+
};
|
|
848
|
+
bump: number;
|
|
849
|
+
};
|
|
850
|
+
declare function getClusterEncoder(): Encoder<ClusterArgs>;
|
|
851
|
+
declare function getClusterDecoder(): Decoder<Cluster>;
|
|
852
|
+
declare function getClusterCodec(): Codec<ClusterArgs, Cluster>;
|
|
853
|
+
declare function decodeCluster<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Cluster, TAddress>;
|
|
854
|
+
declare function decodeCluster<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Cluster, TAddress>;
|
|
855
|
+
declare function fetchCluster<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Cluster, TAddress>>;
|
|
856
|
+
declare function fetchMaybeCluster<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Cluster, TAddress>>;
|
|
857
|
+
declare function fetchAllCluster(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Cluster>[]>;
|
|
858
|
+
declare function fetchAllMaybeCluster(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Cluster>[]>;
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
862
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
863
|
+
* to add features, then rerun Codama to update it.
|
|
864
|
+
*
|
|
865
|
+
* @see https://github.com/codama-idl/codama
|
|
866
|
+
*/
|
|
867
|
+
|
|
868
|
+
declare const COMPUTATION_DEFINITION_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
869
|
+
declare function getComputationDefinitionAccountDiscriminatorBytes(): ReadonlyUint8Array;
|
|
870
|
+
type ComputationDefinitionAccount = {
|
|
871
|
+
discriminator: ReadonlyUint8Array;
|
|
872
|
+
finalizationAuthority: Option<Address>;
|
|
873
|
+
cuAmount: bigint;
|
|
874
|
+
definition: ComputationDefinitionMeta;
|
|
875
|
+
circuitSource: CircuitSource;
|
|
876
|
+
bump: number;
|
|
877
|
+
};
|
|
878
|
+
type ComputationDefinitionAccountArgs = {
|
|
879
|
+
finalizationAuthority: OptionOrNullable<Address>;
|
|
880
|
+
cuAmount: number | bigint;
|
|
881
|
+
definition: ComputationDefinitionMetaArgs;
|
|
882
|
+
circuitSource: CircuitSourceArgs;
|
|
883
|
+
bump: number;
|
|
884
|
+
};
|
|
885
|
+
declare function getComputationDefinitionAccountEncoder(): Encoder<ComputationDefinitionAccountArgs>;
|
|
886
|
+
declare function getComputationDefinitionAccountDecoder(): Decoder<ComputationDefinitionAccount>;
|
|
887
|
+
declare function getComputationDefinitionAccountCodec(): Codec<ComputationDefinitionAccountArgs, ComputationDefinitionAccount>;
|
|
888
|
+
declare function decodeComputationDefinitionAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<ComputationDefinitionAccount, TAddress>;
|
|
889
|
+
declare function decodeComputationDefinitionAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<ComputationDefinitionAccount, TAddress>;
|
|
890
|
+
declare function fetchComputationDefinitionAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<ComputationDefinitionAccount, TAddress>>;
|
|
891
|
+
declare function fetchMaybeComputationDefinitionAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<ComputationDefinitionAccount, TAddress>>;
|
|
892
|
+
declare function fetchAllComputationDefinitionAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<ComputationDefinitionAccount>[]>;
|
|
893
|
+
declare function fetchAllMaybeComputationDefinitionAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<ComputationDefinitionAccount>[]>;
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
897
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
898
|
+
* to add features, then rerun Codama to update it.
|
|
899
|
+
*
|
|
900
|
+
* @see https://github.com/codama-idl/codama
|
|
901
|
+
*/
|
|
902
|
+
|
|
903
|
+
declare const FEE_POOL_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
904
|
+
declare function getFeePoolDiscriminatorBytes(): ReadonlyUint8Array;
|
|
905
|
+
type FeePool = {
|
|
906
|
+
discriminator: ReadonlyUint8Array;
|
|
907
|
+
bump: number;
|
|
908
|
+
};
|
|
909
|
+
type FeePoolArgs = {
|
|
910
|
+
bump: number;
|
|
911
|
+
};
|
|
912
|
+
declare function getFeePoolEncoder(): FixedSizeEncoder<FeePoolArgs>;
|
|
913
|
+
declare function getFeePoolDecoder(): FixedSizeDecoder<FeePool>;
|
|
914
|
+
declare function getFeePoolCodec(): FixedSizeCodec<FeePoolArgs, FeePool>;
|
|
915
|
+
declare function decodeFeePool<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<FeePool, TAddress>;
|
|
916
|
+
declare function decodeFeePool<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<FeePool, TAddress>;
|
|
917
|
+
declare function fetchFeePool<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<FeePool, TAddress>>;
|
|
918
|
+
declare function fetchMaybeFeePool<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<FeePool, TAddress>>;
|
|
919
|
+
declare function fetchAllFeePool(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<FeePool>[]>;
|
|
920
|
+
declare function fetchAllMaybeFeePool(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<FeePool>[]>;
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
924
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
925
|
+
* to add features, then rerun Codama to update it.
|
|
926
|
+
*
|
|
927
|
+
* @see https://github.com/codama-idl/codama
|
|
928
|
+
*/
|
|
929
|
+
|
|
930
|
+
declare const M_X_E_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
931
|
+
declare function getMXEAccountDiscriminatorBytes(): ReadonlyUint8Array;
|
|
932
|
+
type MXEAccount = {
|
|
933
|
+
discriminator: ReadonlyUint8Array;
|
|
934
|
+
cluster: Option<number>;
|
|
935
|
+
keygenOffset: bigint;
|
|
936
|
+
keyRecoveryInitOffset: bigint;
|
|
937
|
+
mxeProgramId: Address;
|
|
938
|
+
authority: Option<Address>;
|
|
939
|
+
utilityPubkeys: {
|
|
940
|
+
__kind: 'Set';
|
|
941
|
+
fields: readonly [UtilityPubkeys];
|
|
942
|
+
} | {
|
|
943
|
+
__kind: 'Unset';
|
|
944
|
+
fields: readonly [UtilityPubkeys, Array<boolean>];
|
|
945
|
+
};
|
|
946
|
+
fallbackClusters: Array<number>;
|
|
947
|
+
rejectedClusters: Array<number>;
|
|
948
|
+
computationDefinitions: Array<number>;
|
|
949
|
+
status: MxeStatus;
|
|
950
|
+
bump: number;
|
|
951
|
+
};
|
|
952
|
+
type MXEAccountArgs = {
|
|
953
|
+
cluster: OptionOrNullable<number>;
|
|
954
|
+
keygenOffset: number | bigint;
|
|
955
|
+
keyRecoveryInitOffset: number | bigint;
|
|
956
|
+
mxeProgramId: Address;
|
|
957
|
+
authority: OptionOrNullable<Address>;
|
|
958
|
+
utilityPubkeys: {
|
|
959
|
+
__kind: 'Set';
|
|
960
|
+
fields: readonly [UtilityPubkeysArgs];
|
|
961
|
+
} | {
|
|
962
|
+
__kind: 'Unset';
|
|
963
|
+
fields: readonly [UtilityPubkeysArgs, Array<boolean>];
|
|
964
|
+
};
|
|
965
|
+
fallbackClusters: Array<number>;
|
|
966
|
+
rejectedClusters: Array<number>;
|
|
967
|
+
computationDefinitions: Array<number>;
|
|
968
|
+
status: MxeStatusArgs;
|
|
969
|
+
bump: number;
|
|
970
|
+
};
|
|
971
|
+
declare function getMXEAccountEncoder(): Encoder<MXEAccountArgs>;
|
|
972
|
+
declare function getMXEAccountDecoder(): Decoder<MXEAccount>;
|
|
973
|
+
declare function getMXEAccountCodec(): Codec<MXEAccountArgs, MXEAccount>;
|
|
974
|
+
declare function decodeMXEAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<MXEAccount, TAddress>;
|
|
975
|
+
declare function decodeMXEAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<MXEAccount, TAddress>;
|
|
976
|
+
declare function fetchMXEAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<MXEAccount, TAddress>>;
|
|
977
|
+
declare function fetchMaybeMXEAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<MXEAccount, TAddress>>;
|
|
978
|
+
declare function fetchAllMXEAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<MXEAccount>[]>;
|
|
979
|
+
declare function fetchAllMaybeMXEAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<MXEAccount>[]>;
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
983
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
984
|
+
* to add features, then rerun Codama to update it.
|
|
985
|
+
*
|
|
986
|
+
* @see https://github.com/codama-idl/codama
|
|
987
|
+
*/
|
|
988
|
+
|
|
989
|
+
declare const OPPORTUNITY_MARKET_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
990
|
+
declare function getOpportunityMarketDiscriminatorBytes(): ReadonlyUint8Array;
|
|
991
|
+
type OpportunityMarket = {
|
|
992
|
+
discriminator: ReadonlyUint8Array;
|
|
993
|
+
encryptedAvailableShares: Array<Array<number>>;
|
|
994
|
+
bump: number;
|
|
995
|
+
creator: Address;
|
|
996
|
+
index: bigint;
|
|
997
|
+
totalOptions: number;
|
|
998
|
+
openTimestamp: Option<bigint>;
|
|
999
|
+
timeToStake: bigint;
|
|
1000
|
+
timeToReveal: bigint;
|
|
1001
|
+
selectedOption: Option<number>;
|
|
1002
|
+
stateNonce: bigint;
|
|
1003
|
+
maxShares: bigint;
|
|
1004
|
+
rewardAmount: bigint;
|
|
1005
|
+
marketAuthority: Option<Address>;
|
|
1006
|
+
mint: Address;
|
|
1007
|
+
};
|
|
1008
|
+
type OpportunityMarketArgs = {
|
|
1009
|
+
encryptedAvailableShares: Array<Array<number>>;
|
|
1010
|
+
bump: number;
|
|
1011
|
+
creator: Address;
|
|
1012
|
+
index: number | bigint;
|
|
1013
|
+
totalOptions: number;
|
|
1014
|
+
openTimestamp: OptionOrNullable<number | bigint>;
|
|
1015
|
+
timeToStake: number | bigint;
|
|
1016
|
+
timeToReveal: number | bigint;
|
|
1017
|
+
selectedOption: OptionOrNullable<number>;
|
|
1018
|
+
stateNonce: number | bigint;
|
|
1019
|
+
maxShares: number | bigint;
|
|
1020
|
+
rewardAmount: number | bigint;
|
|
1021
|
+
marketAuthority: OptionOrNullable<Address>;
|
|
1022
|
+
mint: Address;
|
|
1023
|
+
};
|
|
1024
|
+
declare function getOpportunityMarketEncoder(): Encoder<OpportunityMarketArgs>;
|
|
1025
|
+
declare function getOpportunityMarketDecoder(): Decoder<OpportunityMarket>;
|
|
1026
|
+
declare function getOpportunityMarketCodec(): Codec<OpportunityMarketArgs, OpportunityMarket>;
|
|
1027
|
+
declare function decodeOpportunityMarket<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<OpportunityMarket, TAddress>;
|
|
1028
|
+
declare function decodeOpportunityMarket<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<OpportunityMarket, TAddress>;
|
|
1029
|
+
declare function fetchOpportunityMarket<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<OpportunityMarket, TAddress>>;
|
|
1030
|
+
declare function fetchMaybeOpportunityMarket<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<OpportunityMarket, TAddress>>;
|
|
1031
|
+
declare function fetchAllOpportunityMarket(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<OpportunityMarket>[]>;
|
|
1032
|
+
declare function fetchAllMaybeOpportunityMarket(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<OpportunityMarket>[]>;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1036
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1037
|
+
* to add features, then rerun Codama to update it.
|
|
1038
|
+
*
|
|
1039
|
+
* @see https://github.com/codama-idl/codama
|
|
1040
|
+
*/
|
|
1041
|
+
|
|
1042
|
+
declare const OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1043
|
+
declare function getOpportunityMarketOptionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1044
|
+
type OpportunityMarketOption = {
|
|
1045
|
+
discriminator: ReadonlyUint8Array;
|
|
1046
|
+
bump: number;
|
|
1047
|
+
creator: Address;
|
|
1048
|
+
/** Name of the option */
|
|
1049
|
+
name: string;
|
|
1050
|
+
/** Total shares bought for this option (tally) */
|
|
1051
|
+
totalShares: Option<bigint>;
|
|
1052
|
+
totalScore: Option<bigint>;
|
|
1053
|
+
};
|
|
1054
|
+
type OpportunityMarketOptionArgs = {
|
|
1055
|
+
bump: number;
|
|
1056
|
+
creator: Address;
|
|
1057
|
+
/** Name of the option */
|
|
1058
|
+
name: string;
|
|
1059
|
+
/** Total shares bought for this option (tally) */
|
|
1060
|
+
totalShares: OptionOrNullable<number | bigint>;
|
|
1061
|
+
totalScore: OptionOrNullable<number | bigint>;
|
|
1062
|
+
};
|
|
1063
|
+
declare function getOpportunityMarketOptionEncoder(): Encoder<OpportunityMarketOptionArgs>;
|
|
1064
|
+
declare function getOpportunityMarketOptionDecoder(): Decoder<OpportunityMarketOption>;
|
|
1065
|
+
declare function getOpportunityMarketOptionCodec(): Codec<OpportunityMarketOptionArgs, OpportunityMarketOption>;
|
|
1066
|
+
declare function decodeOpportunityMarketOption<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<OpportunityMarketOption, TAddress>;
|
|
1067
|
+
declare function decodeOpportunityMarketOption<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<OpportunityMarketOption, TAddress>;
|
|
1068
|
+
declare function fetchOpportunityMarketOption<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<OpportunityMarketOption, TAddress>>;
|
|
1069
|
+
declare function fetchMaybeOpportunityMarketOption<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<OpportunityMarketOption, TAddress>>;
|
|
1070
|
+
declare function fetchAllOpportunityMarketOption(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<OpportunityMarketOption>[]>;
|
|
1071
|
+
declare function fetchAllMaybeOpportunityMarketOption(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<OpportunityMarketOption>[]>;
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1075
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1076
|
+
* to add features, then rerun Codama to update it.
|
|
1077
|
+
*
|
|
1078
|
+
* @see https://github.com/codama-idl/codama
|
|
1079
|
+
*/
|
|
1080
|
+
|
|
1081
|
+
declare const SHARE_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1082
|
+
declare function getShareAccountDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1083
|
+
type ShareAccount = {
|
|
1084
|
+
discriminator: ReadonlyUint8Array;
|
|
1085
|
+
encryptedState: Array<Array<number>>;
|
|
1086
|
+
stateNonce: bigint;
|
|
1087
|
+
bump: number;
|
|
1088
|
+
owner: Address;
|
|
1089
|
+
market: Address;
|
|
1090
|
+
encryptedStateDisclosure: Array<Array<number>>;
|
|
1091
|
+
stateNonceDisclosure: bigint;
|
|
1092
|
+
boughtAtTimestamp: bigint;
|
|
1093
|
+
revealedAmount: Option<bigint>;
|
|
1094
|
+
revealedOption: Option<number>;
|
|
1095
|
+
revealedScore: Option<bigint>;
|
|
1096
|
+
totalIncremented: boolean;
|
|
1097
|
+
};
|
|
1098
|
+
type ShareAccountArgs = {
|
|
1099
|
+
encryptedState: Array<Array<number>>;
|
|
1100
|
+
stateNonce: number | bigint;
|
|
1101
|
+
bump: number;
|
|
1102
|
+
owner: Address;
|
|
1103
|
+
market: Address;
|
|
1104
|
+
encryptedStateDisclosure: Array<Array<number>>;
|
|
1105
|
+
stateNonceDisclosure: number | bigint;
|
|
1106
|
+
boughtAtTimestamp: number | bigint;
|
|
1107
|
+
revealedAmount: OptionOrNullable<number | bigint>;
|
|
1108
|
+
revealedOption: OptionOrNullable<number>;
|
|
1109
|
+
revealedScore: OptionOrNullable<number | bigint>;
|
|
1110
|
+
totalIncremented: boolean;
|
|
1111
|
+
};
|
|
1112
|
+
declare function getShareAccountEncoder(): Encoder<ShareAccountArgs>;
|
|
1113
|
+
declare function getShareAccountDecoder(): Decoder<ShareAccount>;
|
|
1114
|
+
declare function getShareAccountCodec(): Codec<ShareAccountArgs, ShareAccount>;
|
|
1115
|
+
declare function decodeShareAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<ShareAccount, TAddress>;
|
|
1116
|
+
declare function decodeShareAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<ShareAccount, TAddress>;
|
|
1117
|
+
declare function fetchShareAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<ShareAccount, TAddress>>;
|
|
1118
|
+
declare function fetchMaybeShareAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<ShareAccount, TAddress>>;
|
|
1119
|
+
declare function fetchAllShareAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<ShareAccount>[]>;
|
|
1120
|
+
declare function fetchAllMaybeShareAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<ShareAccount>[]>;
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1124
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1125
|
+
* to add features, then rerun Codama to update it.
|
|
1126
|
+
*
|
|
1127
|
+
* @see https://github.com/codama-idl/codama
|
|
1128
|
+
*/
|
|
1129
|
+
|
|
1130
|
+
declare const VOTE_TOKEN_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1131
|
+
declare function getVoteTokenAccountDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1132
|
+
type VoteTokenAccount = {
|
|
1133
|
+
discriminator: ReadonlyUint8Array;
|
|
1134
|
+
encryptedState: Array<Array<number>>;
|
|
1135
|
+
bump: number;
|
|
1136
|
+
owner: Address;
|
|
1137
|
+
stateNonce: bigint;
|
|
1138
|
+
tokenMint: Address;
|
|
1139
|
+
pendingDeposit: bigint;
|
|
1140
|
+
};
|
|
1141
|
+
type VoteTokenAccountArgs = {
|
|
1142
|
+
encryptedState: Array<Array<number>>;
|
|
1143
|
+
bump: number;
|
|
1144
|
+
owner: Address;
|
|
1145
|
+
stateNonce: number | bigint;
|
|
1146
|
+
tokenMint: Address;
|
|
1147
|
+
pendingDeposit: number | bigint;
|
|
1148
|
+
};
|
|
1149
|
+
declare function getVoteTokenAccountEncoder(): FixedSizeEncoder<VoteTokenAccountArgs>;
|
|
1150
|
+
declare function getVoteTokenAccountDecoder(): FixedSizeDecoder<VoteTokenAccount>;
|
|
1151
|
+
declare function getVoteTokenAccountCodec(): FixedSizeCodec<VoteTokenAccountArgs, VoteTokenAccount>;
|
|
1152
|
+
declare function decodeVoteTokenAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<VoteTokenAccount, TAddress>;
|
|
1153
|
+
declare function decodeVoteTokenAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<VoteTokenAccount, TAddress>;
|
|
1154
|
+
declare function fetchVoteTokenAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<VoteTokenAccount, TAddress>>;
|
|
1155
|
+
declare function fetchMaybeVoteTokenAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<VoteTokenAccount, TAddress>>;
|
|
1156
|
+
declare function fetchAllVoteTokenAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<VoteTokenAccount>[]>;
|
|
1157
|
+
declare function fetchAllMaybeVoteTokenAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<VoteTokenAccount>[]>;
|
|
1158
|
+
|
|
1159
|
+
/**
|
|
1160
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1161
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1162
|
+
* to add features, then rerun Codama to update it.
|
|
1163
|
+
*
|
|
1164
|
+
* @see https://github.com/codama-idl/codama
|
|
1165
|
+
*/
|
|
1166
|
+
|
|
1167
|
+
/** InvalidCallbackTx: Invalid callback transaction */
|
|
1168
|
+
declare const OPPORTUNITY_MARKET_ERROR__INVALID_CALLBACK_TX = 6000;
|
|
1169
|
+
type OpportunityMarketError = typeof OPPORTUNITY_MARKET_ERROR__INVALID_CALLBACK_TX;
|
|
1170
|
+
declare function getOpportunityMarketErrorMessage(code: OpportunityMarketError): string;
|
|
1171
|
+
declare function isOpportunityMarketError<TProgramErrorCode extends OpportunityMarketError>(error: unknown, transactionMessage: {
|
|
1172
|
+
instructions: Record<number, {
|
|
1173
|
+
programAddress: Address;
|
|
1174
|
+
}>;
|
|
1175
|
+
}, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
|
|
1176
|
+
context: Readonly<{
|
|
1177
|
+
code: TProgramErrorCode;
|
|
1178
|
+
}>;
|
|
1179
|
+
}>;
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1183
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1184
|
+
* to add features, then rerun Codama to update it.
|
|
1185
|
+
*
|
|
1186
|
+
* @see https://github.com/codama-idl/codama
|
|
1187
|
+
*/
|
|
1188
|
+
|
|
1189
|
+
declare const OPPORTUNITY_MARKET_PROGRAM_ADDRESS: Address<"6Y2SL4PG9YUN3tkF8M4z83Si4sh72X5E41Xp9RDeBXje">;
|
|
1190
|
+
declare enum OpportunityMarketAccount {
|
|
1191
|
+
ArciumSignerAccount = 0,
|
|
1192
|
+
ClockAccount = 1,
|
|
1193
|
+
Cluster = 2,
|
|
1194
|
+
ComputationDefinitionAccount = 3,
|
|
1195
|
+
FeePool = 4,
|
|
1196
|
+
MXEAccount = 5,
|
|
1197
|
+
OpportunityMarket = 6,
|
|
1198
|
+
OpportunityMarketOption = 7,
|
|
1199
|
+
ShareAccount = 8,
|
|
1200
|
+
VoteTokenAccount = 9
|
|
1201
|
+
}
|
|
1202
|
+
declare function identifyOpportunityMarketAccount(account: {
|
|
1203
|
+
data: ReadonlyUint8Array;
|
|
1204
|
+
} | ReadonlyUint8Array): OpportunityMarketAccount;
|
|
1205
|
+
declare enum OpportunityMarketInstruction {
|
|
1206
|
+
AddMarketOption = 0,
|
|
1207
|
+
BuyMarketShares = 1,
|
|
1208
|
+
BuyOpportunityMarketSharesCallback = 2,
|
|
1209
|
+
BuyOpportunityMarketSharesCompDef = 3,
|
|
1210
|
+
BuyVoteTokensCallback = 4,
|
|
1211
|
+
BuyVoteTokensCompDef = 5,
|
|
1212
|
+
ClaimPendingDeposit = 6,
|
|
1213
|
+
ClaimVoteTokens = 7,
|
|
1214
|
+
ClaimVoteTokensCallback = 8,
|
|
1215
|
+
ClaimVoteTokensCompDef = 9,
|
|
1216
|
+
CloseShareAccount = 10,
|
|
1217
|
+
CreateMarket = 11,
|
|
1218
|
+
ExtendRevealPeriod = 12,
|
|
1219
|
+
IncrementOptionTally = 13,
|
|
1220
|
+
InitMarketSharesCallback = 14,
|
|
1221
|
+
InitMarketSharesCompDef = 15,
|
|
1222
|
+
InitShareAccount = 16,
|
|
1223
|
+
InitVoteTokenAccount = 17,
|
|
1224
|
+
InitVoteTokenAccountCallback = 18,
|
|
1225
|
+
InitVoteTokenAccountCompDef = 19,
|
|
1226
|
+
MintVoteTokens = 20,
|
|
1227
|
+
OpenMarket = 21,
|
|
1228
|
+
RevealShares = 22,
|
|
1229
|
+
RevealSharesCallback = 23,
|
|
1230
|
+
RevealSharesCompDef = 24,
|
|
1231
|
+
SelectOption = 25
|
|
1232
|
+
}
|
|
1233
|
+
declare function identifyOpportunityMarketInstruction(instruction: {
|
|
1234
|
+
data: ReadonlyUint8Array;
|
|
1235
|
+
} | ReadonlyUint8Array): OpportunityMarketInstruction;
|
|
1236
|
+
type ParsedOpportunityMarketInstruction<TProgram extends string = '6Y2SL4PG9YUN3tkF8M4z83Si4sh72X5E41Xp9RDeBXje'> = ({
|
|
1237
|
+
instructionType: OpportunityMarketInstruction.AddMarketOption;
|
|
1238
|
+
} & ParsedAddMarketOptionInstruction<TProgram>) | ({
|
|
1239
|
+
instructionType: OpportunityMarketInstruction.BuyMarketShares;
|
|
1240
|
+
} & ParsedBuyMarketSharesInstruction<TProgram>) | ({
|
|
1241
|
+
instructionType: OpportunityMarketInstruction.BuyOpportunityMarketSharesCallback;
|
|
1242
|
+
} & ParsedBuyOpportunityMarketSharesCallbackInstruction<TProgram>) | ({
|
|
1243
|
+
instructionType: OpportunityMarketInstruction.BuyOpportunityMarketSharesCompDef;
|
|
1244
|
+
} & ParsedBuyOpportunityMarketSharesCompDefInstruction<TProgram>) | ({
|
|
1245
|
+
instructionType: OpportunityMarketInstruction.BuyVoteTokensCallback;
|
|
1246
|
+
} & ParsedBuyVoteTokensCallbackInstruction<TProgram>) | ({
|
|
1247
|
+
instructionType: OpportunityMarketInstruction.BuyVoteTokensCompDef;
|
|
1248
|
+
} & ParsedBuyVoteTokensCompDefInstruction<TProgram>) | ({
|
|
1249
|
+
instructionType: OpportunityMarketInstruction.ClaimPendingDeposit;
|
|
1250
|
+
} & ParsedClaimPendingDepositInstruction<TProgram>) | ({
|
|
1251
|
+
instructionType: OpportunityMarketInstruction.ClaimVoteTokens;
|
|
1252
|
+
} & ParsedClaimVoteTokensInstruction<TProgram>) | ({
|
|
1253
|
+
instructionType: OpportunityMarketInstruction.ClaimVoteTokensCallback;
|
|
1254
|
+
} & ParsedClaimVoteTokensCallbackInstruction<TProgram>) | ({
|
|
1255
|
+
instructionType: OpportunityMarketInstruction.ClaimVoteTokensCompDef;
|
|
1256
|
+
} & ParsedClaimVoteTokensCompDefInstruction<TProgram>) | ({
|
|
1257
|
+
instructionType: OpportunityMarketInstruction.CloseShareAccount;
|
|
1258
|
+
} & ParsedCloseShareAccountInstruction<TProgram>) | ({
|
|
1259
|
+
instructionType: OpportunityMarketInstruction.CreateMarket;
|
|
1260
|
+
} & ParsedCreateMarketInstruction<TProgram>) | ({
|
|
1261
|
+
instructionType: OpportunityMarketInstruction.ExtendRevealPeriod;
|
|
1262
|
+
} & ParsedExtendRevealPeriodInstruction<TProgram>) | ({
|
|
1263
|
+
instructionType: OpportunityMarketInstruction.IncrementOptionTally;
|
|
1264
|
+
} & ParsedIncrementOptionTallyInstruction<TProgram>) | ({
|
|
1265
|
+
instructionType: OpportunityMarketInstruction.InitMarketSharesCallback;
|
|
1266
|
+
} & ParsedInitMarketSharesCallbackInstruction<TProgram>) | ({
|
|
1267
|
+
instructionType: OpportunityMarketInstruction.InitMarketSharesCompDef;
|
|
1268
|
+
} & ParsedInitMarketSharesCompDefInstruction<TProgram>) | ({
|
|
1269
|
+
instructionType: OpportunityMarketInstruction.InitShareAccount;
|
|
1270
|
+
} & ParsedInitShareAccountInstruction<TProgram>) | ({
|
|
1271
|
+
instructionType: OpportunityMarketInstruction.InitVoteTokenAccount;
|
|
1272
|
+
} & ParsedInitVoteTokenAccountInstruction<TProgram>) | ({
|
|
1273
|
+
instructionType: OpportunityMarketInstruction.InitVoteTokenAccountCallback;
|
|
1274
|
+
} & ParsedInitVoteTokenAccountCallbackInstruction<TProgram>) | ({
|
|
1275
|
+
instructionType: OpportunityMarketInstruction.InitVoteTokenAccountCompDef;
|
|
1276
|
+
} & ParsedInitVoteTokenAccountCompDefInstruction<TProgram>) | ({
|
|
1277
|
+
instructionType: OpportunityMarketInstruction.MintVoteTokens;
|
|
1278
|
+
} & ParsedMintVoteTokensInstruction<TProgram>) | ({
|
|
1279
|
+
instructionType: OpportunityMarketInstruction.OpenMarket;
|
|
1280
|
+
} & ParsedOpenMarketInstruction<TProgram>) | ({
|
|
1281
|
+
instructionType: OpportunityMarketInstruction.RevealShares;
|
|
1282
|
+
} & ParsedRevealSharesInstruction<TProgram>) | ({
|
|
1283
|
+
instructionType: OpportunityMarketInstruction.RevealSharesCallback;
|
|
1284
|
+
} & ParsedRevealSharesCallbackInstruction<TProgram>) | ({
|
|
1285
|
+
instructionType: OpportunityMarketInstruction.RevealSharesCompDef;
|
|
1286
|
+
} & ParsedRevealSharesCompDefInstruction<TProgram>) | ({
|
|
1287
|
+
instructionType: OpportunityMarketInstruction.SelectOption;
|
|
1288
|
+
} & ParsedSelectOptionInstruction<TProgram>);
|
|
1289
|
+
|
|
1290
|
+
/**
|
|
1291
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1292
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1293
|
+
* to add features, then rerun Codama to update it.
|
|
1294
|
+
*
|
|
1295
|
+
* @see https://github.com/codama-idl/codama
|
|
1296
|
+
*/
|
|
1297
|
+
|
|
1298
|
+
declare const ADD_MARKET_OPTION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1299
|
+
declare function getAddMarketOptionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1300
|
+
type AddMarketOptionInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountCreator extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountOption extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1301
|
+
TAccountCreator extends string ? WritableSignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator,
|
|
1302
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
1303
|
+
TAccountOption extends string ? WritableAccount<TAccountOption> : TAccountOption,
|
|
1304
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1305
|
+
...TRemainingAccounts
|
|
1306
|
+
]>;
|
|
1307
|
+
type AddMarketOptionInstructionData = {
|
|
1308
|
+
discriminator: ReadonlyUint8Array;
|
|
1309
|
+
optionIndex: number;
|
|
1310
|
+
name: string;
|
|
1311
|
+
};
|
|
1312
|
+
type AddMarketOptionInstructionDataArgs = {
|
|
1313
|
+
optionIndex: number;
|
|
1314
|
+
name: string;
|
|
1315
|
+
};
|
|
1316
|
+
declare function getAddMarketOptionInstructionDataEncoder(): Encoder<AddMarketOptionInstructionDataArgs>;
|
|
1317
|
+
declare function getAddMarketOptionInstructionDataDecoder(): Decoder<AddMarketOptionInstructionData>;
|
|
1318
|
+
declare function getAddMarketOptionInstructionDataCodec(): Codec<AddMarketOptionInstructionDataArgs, AddMarketOptionInstructionData>;
|
|
1319
|
+
type AddMarketOptionAsyncInput<TAccountCreator extends string = string, TAccountMarket extends string = string, TAccountOption extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1320
|
+
creator: TransactionSigner<TAccountCreator>;
|
|
1321
|
+
market: Address<TAccountMarket>;
|
|
1322
|
+
option?: Address<TAccountOption>;
|
|
1323
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1324
|
+
optionIndex: AddMarketOptionInstructionDataArgs['optionIndex'];
|
|
1325
|
+
name: AddMarketOptionInstructionDataArgs['name'];
|
|
1326
|
+
};
|
|
1327
|
+
declare function getAddMarketOptionInstructionAsync<TAccountCreator extends string, TAccountMarket extends string, TAccountOption extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: AddMarketOptionAsyncInput<TAccountCreator, TAccountMarket, TAccountOption, TAccountSystemProgram>, config?: {
|
|
1328
|
+
programAddress?: TProgramAddress;
|
|
1329
|
+
}): Promise<AddMarketOptionInstruction<TProgramAddress, TAccountCreator, TAccountMarket, TAccountOption, TAccountSystemProgram>>;
|
|
1330
|
+
type AddMarketOptionInput<TAccountCreator extends string = string, TAccountMarket extends string = string, TAccountOption extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1331
|
+
creator: TransactionSigner<TAccountCreator>;
|
|
1332
|
+
market: Address<TAccountMarket>;
|
|
1333
|
+
option: Address<TAccountOption>;
|
|
1334
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1335
|
+
optionIndex: AddMarketOptionInstructionDataArgs['optionIndex'];
|
|
1336
|
+
name: AddMarketOptionInstructionDataArgs['name'];
|
|
1337
|
+
};
|
|
1338
|
+
declare function getAddMarketOptionInstruction<TAccountCreator extends string, TAccountMarket extends string, TAccountOption extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: AddMarketOptionInput<TAccountCreator, TAccountMarket, TAccountOption, TAccountSystemProgram>, config?: {
|
|
1339
|
+
programAddress?: TProgramAddress;
|
|
1340
|
+
}): AddMarketOptionInstruction<TProgramAddress, TAccountCreator, TAccountMarket, TAccountOption, TAccountSystemProgram>;
|
|
1341
|
+
type ParsedAddMarketOptionInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1342
|
+
programAddress: Address<TProgram>;
|
|
1343
|
+
accounts: {
|
|
1344
|
+
creator: TAccountMetas[0];
|
|
1345
|
+
market: TAccountMetas[1];
|
|
1346
|
+
option: TAccountMetas[2];
|
|
1347
|
+
systemProgram: TAccountMetas[3];
|
|
1348
|
+
};
|
|
1349
|
+
data: AddMarketOptionInstructionData;
|
|
1350
|
+
};
|
|
1351
|
+
declare function parseAddMarketOptionInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAddMarketOptionInstruction<TProgram, TAccountMetas>;
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1355
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1356
|
+
* to add features, then rerun Codama to update it.
|
|
1357
|
+
*
|
|
1358
|
+
* @see https://github.com/codama-idl/codama
|
|
1359
|
+
*/
|
|
1360
|
+
|
|
1361
|
+
declare const BUY_MARKET_SHARES_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1362
|
+
declare function getBuyMarketSharesDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1363
|
+
type BuyMarketSharesInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountUserVta extends string | AccountMeta<string> = string, TAccountShareAccount extends string | AccountMeta<string> = string, TAccountSignPdaAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountMempoolAccount extends string | AccountMeta<string> = string, TAccountExecutingPool extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountPoolAccount extends string | AccountMeta<string> = 'G2sRWJvi3xoyh5k2gY49eG9L8YhAEWQPtNb1zb1GXTtC', TAccountClockAccount extends string | AccountMeta<string> = '7EbMUTLo5DjdzbN7s8BXeZwXzEwNQb1hScfRvWg8a6ot', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1364
|
+
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
1365
|
+
TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
|
|
1366
|
+
TAccountUserVta extends string ? ReadonlyAccount<TAccountUserVta> : TAccountUserVta,
|
|
1367
|
+
TAccountShareAccount extends string ? WritableAccount<TAccountShareAccount> : TAccountShareAccount,
|
|
1368
|
+
TAccountSignPdaAccount extends string ? WritableAccount<TAccountSignPdaAccount> : TAccountSignPdaAccount,
|
|
1369
|
+
TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
1370
|
+
TAccountMempoolAccount extends string ? WritableAccount<TAccountMempoolAccount> : TAccountMempoolAccount,
|
|
1371
|
+
TAccountExecutingPool extends string ? WritableAccount<TAccountExecutingPool> : TAccountExecutingPool,
|
|
1372
|
+
TAccountComputationAccount extends string ? WritableAccount<TAccountComputationAccount> : TAccountComputationAccount,
|
|
1373
|
+
TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
1374
|
+
TAccountClusterAccount extends string ? WritableAccount<TAccountClusterAccount> : TAccountClusterAccount,
|
|
1375
|
+
TAccountPoolAccount extends string ? WritableAccount<TAccountPoolAccount> : TAccountPoolAccount,
|
|
1376
|
+
TAccountClockAccount extends string ? WritableAccount<TAccountClockAccount> : TAccountClockAccount,
|
|
1377
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1378
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
1379
|
+
...TRemainingAccounts
|
|
1380
|
+
]>;
|
|
1381
|
+
type BuyMarketSharesInstructionData = {
|
|
1382
|
+
discriminator: ReadonlyUint8Array;
|
|
1383
|
+
computationOffset: bigint;
|
|
1384
|
+
amountCiphertext: Array<number>;
|
|
1385
|
+
selectedOptionCiphertext: Array<number>;
|
|
1386
|
+
userPubkey: Array<number>;
|
|
1387
|
+
inputNonce: bigint;
|
|
1388
|
+
authorizedReaderPubkey: Array<number>;
|
|
1389
|
+
authorizedReaderNonce: bigint;
|
|
1390
|
+
};
|
|
1391
|
+
type BuyMarketSharesInstructionDataArgs = {
|
|
1392
|
+
computationOffset: number | bigint;
|
|
1393
|
+
amountCiphertext: Array<number>;
|
|
1394
|
+
selectedOptionCiphertext: Array<number>;
|
|
1395
|
+
userPubkey: Array<number>;
|
|
1396
|
+
inputNonce: number | bigint;
|
|
1397
|
+
authorizedReaderPubkey: Array<number>;
|
|
1398
|
+
authorizedReaderNonce: number | bigint;
|
|
1399
|
+
};
|
|
1400
|
+
declare function getBuyMarketSharesInstructionDataEncoder(): FixedSizeEncoder<BuyMarketSharesInstructionDataArgs>;
|
|
1401
|
+
declare function getBuyMarketSharesInstructionDataDecoder(): FixedSizeDecoder<BuyMarketSharesInstructionData>;
|
|
1402
|
+
declare function getBuyMarketSharesInstructionDataCodec(): FixedSizeCodec<BuyMarketSharesInstructionDataArgs, BuyMarketSharesInstructionData>;
|
|
1403
|
+
type BuyMarketSharesAsyncInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountUserVta extends string = string, TAccountShareAccount extends string = string, TAccountSignPdaAccount extends string = string, TAccountMxeAccount extends string = string, TAccountMempoolAccount extends string = string, TAccountExecutingPool extends string = string, TAccountComputationAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountClusterAccount extends string = string, TAccountPoolAccount extends string = string, TAccountClockAccount extends string = string, TAccountSystemProgram extends string = string, TAccountArciumProgram extends string = string> = {
|
|
1404
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
1405
|
+
market: Address<TAccountMarket>;
|
|
1406
|
+
userVta: Address<TAccountUserVta>;
|
|
1407
|
+
shareAccount?: Address<TAccountShareAccount>;
|
|
1408
|
+
signPdaAccount?: Address<TAccountSignPdaAccount>;
|
|
1409
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
1410
|
+
mempoolAccount: Address<TAccountMempoolAccount>;
|
|
1411
|
+
executingPool: Address<TAccountExecutingPool>;
|
|
1412
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
1413
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
1414
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
1415
|
+
poolAccount?: Address<TAccountPoolAccount>;
|
|
1416
|
+
clockAccount?: Address<TAccountClockAccount>;
|
|
1417
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1418
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
1419
|
+
computationOffset: BuyMarketSharesInstructionDataArgs['computationOffset'];
|
|
1420
|
+
amountCiphertext: BuyMarketSharesInstructionDataArgs['amountCiphertext'];
|
|
1421
|
+
selectedOptionCiphertext: BuyMarketSharesInstructionDataArgs['selectedOptionCiphertext'];
|
|
1422
|
+
userPubkey: BuyMarketSharesInstructionDataArgs['userPubkey'];
|
|
1423
|
+
inputNonce: BuyMarketSharesInstructionDataArgs['inputNonce'];
|
|
1424
|
+
authorizedReaderPubkey: BuyMarketSharesInstructionDataArgs['authorizedReaderPubkey'];
|
|
1425
|
+
authorizedReaderNonce: BuyMarketSharesInstructionDataArgs['authorizedReaderNonce'];
|
|
1426
|
+
};
|
|
1427
|
+
declare function getBuyMarketSharesInstructionAsync<TAccountSigner extends string, TAccountMarket extends string, TAccountUserVta extends string, TAccountShareAccount extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: BuyMarketSharesAsyncInput<TAccountSigner, TAccountMarket, TAccountUserVta, TAccountShareAccount, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
|
|
1428
|
+
programAddress?: TProgramAddress;
|
|
1429
|
+
}): Promise<BuyMarketSharesInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountUserVta, TAccountShareAccount, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>>;
|
|
1430
|
+
type BuyMarketSharesInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountUserVta extends string = string, TAccountShareAccount extends string = string, TAccountSignPdaAccount extends string = string, TAccountMxeAccount extends string = string, TAccountMempoolAccount extends string = string, TAccountExecutingPool extends string = string, TAccountComputationAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountClusterAccount extends string = string, TAccountPoolAccount extends string = string, TAccountClockAccount extends string = string, TAccountSystemProgram extends string = string, TAccountArciumProgram extends string = string> = {
|
|
1431
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
1432
|
+
market: Address<TAccountMarket>;
|
|
1433
|
+
userVta: Address<TAccountUserVta>;
|
|
1434
|
+
shareAccount: Address<TAccountShareAccount>;
|
|
1435
|
+
signPdaAccount: Address<TAccountSignPdaAccount>;
|
|
1436
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
1437
|
+
mempoolAccount: Address<TAccountMempoolAccount>;
|
|
1438
|
+
executingPool: Address<TAccountExecutingPool>;
|
|
1439
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
1440
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
1441
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
1442
|
+
poolAccount?: Address<TAccountPoolAccount>;
|
|
1443
|
+
clockAccount?: Address<TAccountClockAccount>;
|
|
1444
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1445
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
1446
|
+
computationOffset: BuyMarketSharesInstructionDataArgs['computationOffset'];
|
|
1447
|
+
amountCiphertext: BuyMarketSharesInstructionDataArgs['amountCiphertext'];
|
|
1448
|
+
selectedOptionCiphertext: BuyMarketSharesInstructionDataArgs['selectedOptionCiphertext'];
|
|
1449
|
+
userPubkey: BuyMarketSharesInstructionDataArgs['userPubkey'];
|
|
1450
|
+
inputNonce: BuyMarketSharesInstructionDataArgs['inputNonce'];
|
|
1451
|
+
authorizedReaderPubkey: BuyMarketSharesInstructionDataArgs['authorizedReaderPubkey'];
|
|
1452
|
+
authorizedReaderNonce: BuyMarketSharesInstructionDataArgs['authorizedReaderNonce'];
|
|
1453
|
+
};
|
|
1454
|
+
declare function getBuyMarketSharesInstruction<TAccountSigner extends string, TAccountMarket extends string, TAccountUserVta extends string, TAccountShareAccount extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: BuyMarketSharesInput<TAccountSigner, TAccountMarket, TAccountUserVta, TAccountShareAccount, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
|
|
1455
|
+
programAddress?: TProgramAddress;
|
|
1456
|
+
}): BuyMarketSharesInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountUserVta, TAccountShareAccount, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>;
|
|
1457
|
+
type ParsedBuyMarketSharesInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1458
|
+
programAddress: Address<TProgram>;
|
|
1459
|
+
accounts: {
|
|
1460
|
+
signer: TAccountMetas[0];
|
|
1461
|
+
market: TAccountMetas[1];
|
|
1462
|
+
userVta: TAccountMetas[2];
|
|
1463
|
+
shareAccount: TAccountMetas[3];
|
|
1464
|
+
signPdaAccount: TAccountMetas[4];
|
|
1465
|
+
mxeAccount: TAccountMetas[5];
|
|
1466
|
+
mempoolAccount: TAccountMetas[6];
|
|
1467
|
+
executingPool: TAccountMetas[7];
|
|
1468
|
+
computationAccount: TAccountMetas[8];
|
|
1469
|
+
compDefAccount: TAccountMetas[9];
|
|
1470
|
+
clusterAccount: TAccountMetas[10];
|
|
1471
|
+
poolAccount: TAccountMetas[11];
|
|
1472
|
+
clockAccount: TAccountMetas[12];
|
|
1473
|
+
systemProgram: TAccountMetas[13];
|
|
1474
|
+
arciumProgram: TAccountMetas[14];
|
|
1475
|
+
};
|
|
1476
|
+
data: BuyMarketSharesInstructionData;
|
|
1477
|
+
};
|
|
1478
|
+
declare function parseBuyMarketSharesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyMarketSharesInstruction<TProgram, TAccountMetas>;
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1482
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1483
|
+
* to add features, then rerun Codama to update it.
|
|
1484
|
+
*
|
|
1485
|
+
* @see https://github.com/codama-idl/codama
|
|
1486
|
+
*/
|
|
1487
|
+
|
|
1488
|
+
declare const BUY_OPPORTUNITY_MARKET_SHARES_CALLBACK_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1489
|
+
declare function getBuyOpportunityMarketSharesCallbackDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1490
|
+
type BuyOpportunityMarketSharesCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountInstructionsSysvar extends string | AccountMeta<string> = 'Sysvar1nstructions1111111111111111111111111', TAccountUserVoteTokenAccount extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountShareAccount extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1491
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
1492
|
+
TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
1493
|
+
TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
1494
|
+
TAccountComputationAccount extends string ? ReadonlyAccount<TAccountComputationAccount> : TAccountComputationAccount,
|
|
1495
|
+
TAccountClusterAccount extends string ? ReadonlyAccount<TAccountClusterAccount> : TAccountClusterAccount,
|
|
1496
|
+
TAccountInstructionsSysvar extends string ? ReadonlyAccount<TAccountInstructionsSysvar> : TAccountInstructionsSysvar,
|
|
1497
|
+
TAccountUserVoteTokenAccount extends string ? WritableAccount<TAccountUserVoteTokenAccount> : TAccountUserVoteTokenAccount,
|
|
1498
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
1499
|
+
TAccountShareAccount extends string ? WritableAccount<TAccountShareAccount> : TAccountShareAccount,
|
|
1500
|
+
...TRemainingAccounts
|
|
1501
|
+
]>;
|
|
1502
|
+
type BuyOpportunityMarketSharesCallbackInstructionData = {
|
|
1503
|
+
discriminator: ReadonlyUint8Array;
|
|
1504
|
+
output: {
|
|
1505
|
+
__kind: 'Success';
|
|
1506
|
+
fields: readonly [BuyOpportunityMarketSharesOutput, Array<number>];
|
|
1507
|
+
} | {
|
|
1508
|
+
__kind: 'Failure';
|
|
1509
|
+
} | {
|
|
1510
|
+
__kind: 'MarkerForIdlBuildDoNotUseThis';
|
|
1511
|
+
fields: readonly [BuyOpportunityMarketSharesOutput];
|
|
1512
|
+
};
|
|
1513
|
+
};
|
|
1514
|
+
type BuyOpportunityMarketSharesCallbackInstructionDataArgs = {
|
|
1515
|
+
output: {
|
|
1516
|
+
__kind: 'Success';
|
|
1517
|
+
fields: readonly [BuyOpportunityMarketSharesOutputArgs, Array<number>];
|
|
1518
|
+
} | {
|
|
1519
|
+
__kind: 'Failure';
|
|
1520
|
+
} | {
|
|
1521
|
+
__kind: 'MarkerForIdlBuildDoNotUseThis';
|
|
1522
|
+
fields: readonly [BuyOpportunityMarketSharesOutputArgs];
|
|
1523
|
+
};
|
|
1524
|
+
};
|
|
1525
|
+
declare function getBuyOpportunityMarketSharesCallbackInstructionDataEncoder(): Encoder<BuyOpportunityMarketSharesCallbackInstructionDataArgs>;
|
|
1526
|
+
declare function getBuyOpportunityMarketSharesCallbackInstructionDataDecoder(): Decoder<BuyOpportunityMarketSharesCallbackInstructionData>;
|
|
1527
|
+
declare function getBuyOpportunityMarketSharesCallbackInstructionDataCodec(): Codec<BuyOpportunityMarketSharesCallbackInstructionDataArgs, BuyOpportunityMarketSharesCallbackInstructionData>;
|
|
1528
|
+
type BuyOpportunityMarketSharesCallbackInput<TAccountArciumProgram extends string = string, TAccountCompDefAccount extends string = string, TAccountMxeAccount extends string = string, TAccountComputationAccount extends string = string, TAccountClusterAccount extends string = string, TAccountInstructionsSysvar extends string = string, TAccountUserVoteTokenAccount extends string = string, TAccountMarket extends string = string, TAccountShareAccount extends string = string> = {
|
|
1529
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
1530
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
1531
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
1532
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
1533
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
1534
|
+
instructionsSysvar?: Address<TAccountInstructionsSysvar>;
|
|
1535
|
+
userVoteTokenAccount: Address<TAccountUserVoteTokenAccount>;
|
|
1536
|
+
market: Address<TAccountMarket>;
|
|
1537
|
+
shareAccount: Address<TAccountShareAccount>;
|
|
1538
|
+
output: BuyOpportunityMarketSharesCallbackInstructionDataArgs['output'];
|
|
1539
|
+
};
|
|
1540
|
+
declare function getBuyOpportunityMarketSharesCallbackInstruction<TAccountArciumProgram extends string, TAccountCompDefAccount extends string, TAccountMxeAccount extends string, TAccountComputationAccount extends string, TAccountClusterAccount extends string, TAccountInstructionsSysvar extends string, TAccountUserVoteTokenAccount extends string, TAccountMarket extends string, TAccountShareAccount extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: BuyOpportunityMarketSharesCallbackInput<TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountUserVoteTokenAccount, TAccountMarket, TAccountShareAccount>, config?: {
|
|
1541
|
+
programAddress?: TProgramAddress;
|
|
1542
|
+
}): BuyOpportunityMarketSharesCallbackInstruction<TProgramAddress, TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountUserVoteTokenAccount, TAccountMarket, TAccountShareAccount>;
|
|
1543
|
+
type ParsedBuyOpportunityMarketSharesCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1544
|
+
programAddress: Address<TProgram>;
|
|
1545
|
+
accounts: {
|
|
1546
|
+
arciumProgram: TAccountMetas[0];
|
|
1547
|
+
compDefAccount: TAccountMetas[1];
|
|
1548
|
+
mxeAccount: TAccountMetas[2];
|
|
1549
|
+
computationAccount: TAccountMetas[3];
|
|
1550
|
+
clusterAccount: TAccountMetas[4];
|
|
1551
|
+
instructionsSysvar: TAccountMetas[5];
|
|
1552
|
+
userVoteTokenAccount: TAccountMetas[6];
|
|
1553
|
+
market: TAccountMetas[7];
|
|
1554
|
+
shareAccount: TAccountMetas[8];
|
|
1555
|
+
};
|
|
1556
|
+
data: BuyOpportunityMarketSharesCallbackInstructionData;
|
|
1557
|
+
};
|
|
1558
|
+
declare function parseBuyOpportunityMarketSharesCallbackInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyOpportunityMarketSharesCallbackInstruction<TProgram, TAccountMetas>;
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1562
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1563
|
+
* to add features, then rerun Codama to update it.
|
|
1564
|
+
*
|
|
1565
|
+
* @see https://github.com/codama-idl/codama
|
|
1566
|
+
*/
|
|
1567
|
+
|
|
1568
|
+
declare const BUY_OPPORTUNITY_MARKET_SHARES_COMP_DEF_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1569
|
+
declare function getBuyOpportunityMarketSharesCompDefDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1570
|
+
type BuyOpportunityMarketSharesCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1571
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
1572
|
+
TAccountMxeAccount extends string ? WritableAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
1573
|
+
TAccountCompDefAccount extends string ? WritableAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
1574
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
1575
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1576
|
+
...TRemainingAccounts
|
|
1577
|
+
]>;
|
|
1578
|
+
type BuyOpportunityMarketSharesCompDefInstructionData = {
|
|
1579
|
+
discriminator: ReadonlyUint8Array;
|
|
1580
|
+
};
|
|
1581
|
+
type BuyOpportunityMarketSharesCompDefInstructionDataArgs = {};
|
|
1582
|
+
declare function getBuyOpportunityMarketSharesCompDefInstructionDataEncoder(): FixedSizeEncoder<BuyOpportunityMarketSharesCompDefInstructionDataArgs>;
|
|
1583
|
+
declare function getBuyOpportunityMarketSharesCompDefInstructionDataDecoder(): FixedSizeDecoder<BuyOpportunityMarketSharesCompDefInstructionData>;
|
|
1584
|
+
declare function getBuyOpportunityMarketSharesCompDefInstructionDataCodec(): FixedSizeCodec<BuyOpportunityMarketSharesCompDefInstructionDataArgs, BuyOpportunityMarketSharesCompDefInstructionData>;
|
|
1585
|
+
type BuyOpportunityMarketSharesCompDefInput<TAccountPayer extends string = string, TAccountMxeAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountArciumProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1586
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
1587
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
1588
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
1589
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
1590
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1591
|
+
};
|
|
1592
|
+
declare function getBuyOpportunityMarketSharesCompDefInstruction<TAccountPayer extends string, TAccountMxeAccount extends string, TAccountCompDefAccount extends string, TAccountArciumProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: BuyOpportunityMarketSharesCompDefInput<TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountArciumProgram, TAccountSystemProgram>, config?: {
|
|
1593
|
+
programAddress?: TProgramAddress;
|
|
1594
|
+
}): BuyOpportunityMarketSharesCompDefInstruction<TProgramAddress, TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountArciumProgram, TAccountSystemProgram>;
|
|
1595
|
+
type ParsedBuyOpportunityMarketSharesCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1596
|
+
programAddress: Address<TProgram>;
|
|
1597
|
+
accounts: {
|
|
1598
|
+
payer: TAccountMetas[0];
|
|
1599
|
+
mxeAccount: TAccountMetas[1];
|
|
1600
|
+
compDefAccount: TAccountMetas[2];
|
|
1601
|
+
arciumProgram: TAccountMetas[3];
|
|
1602
|
+
systemProgram: TAccountMetas[4];
|
|
1603
|
+
};
|
|
1604
|
+
data: BuyOpportunityMarketSharesCompDefInstructionData;
|
|
1605
|
+
};
|
|
1606
|
+
declare function parseBuyOpportunityMarketSharesCompDefInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyOpportunityMarketSharesCompDefInstruction<TProgram, TAccountMetas>;
|
|
1607
|
+
|
|
1608
|
+
/**
|
|
1609
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1610
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1611
|
+
* to add features, then rerun Codama to update it.
|
|
1612
|
+
*
|
|
1613
|
+
* @see https://github.com/codama-idl/codama
|
|
1614
|
+
*/
|
|
1615
|
+
|
|
1616
|
+
declare const BUY_VOTE_TOKENS_CALLBACK_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1617
|
+
declare function getBuyVoteTokensCallbackDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1618
|
+
type BuyVoteTokensCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountInstructionsSysvar extends string | AccountMeta<string> = 'Sysvar1nstructions1111111111111111111111111', TAccountVoteTokenAccount extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1619
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
1620
|
+
TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
1621
|
+
TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
1622
|
+
TAccountComputationAccount extends string ? ReadonlyAccount<TAccountComputationAccount> : TAccountComputationAccount,
|
|
1623
|
+
TAccountClusterAccount extends string ? ReadonlyAccount<TAccountClusterAccount> : TAccountClusterAccount,
|
|
1624
|
+
TAccountInstructionsSysvar extends string ? ReadonlyAccount<TAccountInstructionsSysvar> : TAccountInstructionsSysvar,
|
|
1625
|
+
TAccountVoteTokenAccount extends string ? WritableAccount<TAccountVoteTokenAccount> : TAccountVoteTokenAccount,
|
|
1626
|
+
...TRemainingAccounts
|
|
1627
|
+
]>;
|
|
1628
|
+
type BuyVoteTokensCallbackInstructionData = {
|
|
1629
|
+
discriminator: ReadonlyUint8Array;
|
|
1630
|
+
output: {
|
|
1631
|
+
__kind: 'Success';
|
|
1632
|
+
fields: readonly [BuyVoteTokensOutput, Array<number>];
|
|
1633
|
+
} | {
|
|
1634
|
+
__kind: 'Failure';
|
|
1635
|
+
} | {
|
|
1636
|
+
__kind: 'MarkerForIdlBuildDoNotUseThis';
|
|
1637
|
+
fields: readonly [BuyVoteTokensOutput];
|
|
1638
|
+
};
|
|
1639
|
+
};
|
|
1640
|
+
type BuyVoteTokensCallbackInstructionDataArgs = {
|
|
1641
|
+
output: {
|
|
1642
|
+
__kind: 'Success';
|
|
1643
|
+
fields: readonly [BuyVoteTokensOutputArgs, Array<number>];
|
|
1644
|
+
} | {
|
|
1645
|
+
__kind: 'Failure';
|
|
1646
|
+
} | {
|
|
1647
|
+
__kind: 'MarkerForIdlBuildDoNotUseThis';
|
|
1648
|
+
fields: readonly [BuyVoteTokensOutputArgs];
|
|
1649
|
+
};
|
|
1650
|
+
};
|
|
1651
|
+
declare function getBuyVoteTokensCallbackInstructionDataEncoder(): Encoder<BuyVoteTokensCallbackInstructionDataArgs>;
|
|
1652
|
+
declare function getBuyVoteTokensCallbackInstructionDataDecoder(): Decoder<BuyVoteTokensCallbackInstructionData>;
|
|
1653
|
+
declare function getBuyVoteTokensCallbackInstructionDataCodec(): Codec<BuyVoteTokensCallbackInstructionDataArgs, BuyVoteTokensCallbackInstructionData>;
|
|
1654
|
+
type BuyVoteTokensCallbackInput<TAccountArciumProgram extends string = string, TAccountCompDefAccount extends string = string, TAccountMxeAccount extends string = string, TAccountComputationAccount extends string = string, TAccountClusterAccount extends string = string, TAccountInstructionsSysvar extends string = string, TAccountVoteTokenAccount extends string = string> = {
|
|
1655
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
1656
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
1657
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
1658
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
1659
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
1660
|
+
instructionsSysvar?: Address<TAccountInstructionsSysvar>;
|
|
1661
|
+
voteTokenAccount: Address<TAccountVoteTokenAccount>;
|
|
1662
|
+
output: BuyVoteTokensCallbackInstructionDataArgs['output'];
|
|
1663
|
+
};
|
|
1664
|
+
declare function getBuyVoteTokensCallbackInstruction<TAccountArciumProgram extends string, TAccountCompDefAccount extends string, TAccountMxeAccount extends string, TAccountComputationAccount extends string, TAccountClusterAccount extends string, TAccountInstructionsSysvar extends string, TAccountVoteTokenAccount extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: BuyVoteTokensCallbackInput<TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountVoteTokenAccount>, config?: {
|
|
1665
|
+
programAddress?: TProgramAddress;
|
|
1666
|
+
}): BuyVoteTokensCallbackInstruction<TProgramAddress, TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountVoteTokenAccount>;
|
|
1667
|
+
type ParsedBuyVoteTokensCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1668
|
+
programAddress: Address<TProgram>;
|
|
1669
|
+
accounts: {
|
|
1670
|
+
arciumProgram: TAccountMetas[0];
|
|
1671
|
+
compDefAccount: TAccountMetas[1];
|
|
1672
|
+
mxeAccount: TAccountMetas[2];
|
|
1673
|
+
computationAccount: TAccountMetas[3];
|
|
1674
|
+
clusterAccount: TAccountMetas[4];
|
|
1675
|
+
instructionsSysvar: TAccountMetas[5];
|
|
1676
|
+
voteTokenAccount: TAccountMetas[6];
|
|
1677
|
+
};
|
|
1678
|
+
data: BuyVoteTokensCallbackInstructionData;
|
|
1679
|
+
};
|
|
1680
|
+
declare function parseBuyVoteTokensCallbackInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyVoteTokensCallbackInstruction<TProgram, TAccountMetas>;
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1684
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1685
|
+
* to add features, then rerun Codama to update it.
|
|
1686
|
+
*
|
|
1687
|
+
* @see https://github.com/codama-idl/codama
|
|
1688
|
+
*/
|
|
1689
|
+
|
|
1690
|
+
declare const BUY_VOTE_TOKENS_COMP_DEF_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1691
|
+
declare function getBuyVoteTokensCompDefDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1692
|
+
type BuyVoteTokensCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1693
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
1694
|
+
TAccountMxeAccount extends string ? WritableAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
1695
|
+
TAccountCompDefAccount extends string ? WritableAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
1696
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
1697
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1698
|
+
...TRemainingAccounts
|
|
1699
|
+
]>;
|
|
1700
|
+
type BuyVoteTokensCompDefInstructionData = {
|
|
1701
|
+
discriminator: ReadonlyUint8Array;
|
|
1702
|
+
};
|
|
1703
|
+
type BuyVoteTokensCompDefInstructionDataArgs = {};
|
|
1704
|
+
declare function getBuyVoteTokensCompDefInstructionDataEncoder(): FixedSizeEncoder<BuyVoteTokensCompDefInstructionDataArgs>;
|
|
1705
|
+
declare function getBuyVoteTokensCompDefInstructionDataDecoder(): FixedSizeDecoder<BuyVoteTokensCompDefInstructionData>;
|
|
1706
|
+
declare function getBuyVoteTokensCompDefInstructionDataCodec(): FixedSizeCodec<BuyVoteTokensCompDefInstructionDataArgs, BuyVoteTokensCompDefInstructionData>;
|
|
1707
|
+
type BuyVoteTokensCompDefInput<TAccountPayer extends string = string, TAccountMxeAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountArciumProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1708
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
1709
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
1710
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
1711
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
1712
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1713
|
+
};
|
|
1714
|
+
declare function getBuyVoteTokensCompDefInstruction<TAccountPayer extends string, TAccountMxeAccount extends string, TAccountCompDefAccount extends string, TAccountArciumProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: BuyVoteTokensCompDefInput<TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountArciumProgram, TAccountSystemProgram>, config?: {
|
|
1715
|
+
programAddress?: TProgramAddress;
|
|
1716
|
+
}): BuyVoteTokensCompDefInstruction<TProgramAddress, TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountArciumProgram, TAccountSystemProgram>;
|
|
1717
|
+
type ParsedBuyVoteTokensCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1718
|
+
programAddress: Address<TProgram>;
|
|
1719
|
+
accounts: {
|
|
1720
|
+
payer: TAccountMetas[0];
|
|
1721
|
+
mxeAccount: TAccountMetas[1];
|
|
1722
|
+
compDefAccount: TAccountMetas[2];
|
|
1723
|
+
arciumProgram: TAccountMetas[3];
|
|
1724
|
+
systemProgram: TAccountMetas[4];
|
|
1725
|
+
};
|
|
1726
|
+
data: BuyVoteTokensCompDefInstructionData;
|
|
1727
|
+
};
|
|
1728
|
+
declare function parseBuyVoteTokensCompDefInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyVoteTokensCompDefInstruction<TProgram, TAccountMetas>;
|
|
1729
|
+
|
|
1730
|
+
/**
|
|
1731
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1732
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1733
|
+
* to add features, then rerun Codama to update it.
|
|
1734
|
+
*
|
|
1735
|
+
* @see https://github.com/codama-idl/codama
|
|
1736
|
+
*/
|
|
1737
|
+
|
|
1738
|
+
declare const CLAIM_PENDING_DEPOSIT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1739
|
+
declare function getClaimPendingDepositDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1740
|
+
type ClaimPendingDepositInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountVoteTokenAccount extends string | AccountMeta<string> = string, TAccountVoteTokenAta extends string | AccountMeta<string> = string, TAccountSignerTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1741
|
+
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
1742
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
1743
|
+
TAccountVoteTokenAccount extends string ? WritableAccount<TAccountVoteTokenAccount> : TAccountVoteTokenAccount,
|
|
1744
|
+
TAccountVoteTokenAta extends string ? WritableAccount<TAccountVoteTokenAta> : TAccountVoteTokenAta,
|
|
1745
|
+
TAccountSignerTokenAccount extends string ? WritableAccount<TAccountSignerTokenAccount> : TAccountSignerTokenAccount,
|
|
1746
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
1747
|
+
...TRemainingAccounts
|
|
1748
|
+
]>;
|
|
1749
|
+
type ClaimPendingDepositInstructionData = {
|
|
1750
|
+
discriminator: ReadonlyUint8Array;
|
|
1751
|
+
};
|
|
1752
|
+
type ClaimPendingDepositInstructionDataArgs = {};
|
|
1753
|
+
declare function getClaimPendingDepositInstructionDataEncoder(): FixedSizeEncoder<ClaimPendingDepositInstructionDataArgs>;
|
|
1754
|
+
declare function getClaimPendingDepositInstructionDataDecoder(): FixedSizeDecoder<ClaimPendingDepositInstructionData>;
|
|
1755
|
+
declare function getClaimPendingDepositInstructionDataCodec(): FixedSizeCodec<ClaimPendingDepositInstructionDataArgs, ClaimPendingDepositInstructionData>;
|
|
1756
|
+
type ClaimPendingDepositAsyncInput<TAccountSigner extends string = string, TAccountTokenMint extends string = string, TAccountVoteTokenAccount extends string = string, TAccountVoteTokenAta extends string = string, TAccountSignerTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
|
|
1757
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
1758
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
1759
|
+
voteTokenAccount?: Address<TAccountVoteTokenAccount>;
|
|
1760
|
+
/** ATA owned by VTA PDA (source of pending tokens) */
|
|
1761
|
+
voteTokenAta?: Address<TAccountVoteTokenAta>;
|
|
1762
|
+
/** Signer's token account (destination for claimed tokens) */
|
|
1763
|
+
signerTokenAccount: Address<TAccountSignerTokenAccount>;
|
|
1764
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
1765
|
+
};
|
|
1766
|
+
declare function getClaimPendingDepositInstructionAsync<TAccountSigner extends string, TAccountTokenMint extends string, TAccountVoteTokenAccount extends string, TAccountVoteTokenAta extends string, TAccountSignerTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimPendingDepositAsyncInput<TAccountSigner, TAccountTokenMint, TAccountVoteTokenAccount, TAccountVoteTokenAta, TAccountSignerTokenAccount, TAccountTokenProgram>, config?: {
|
|
1767
|
+
programAddress?: TProgramAddress;
|
|
1768
|
+
}): Promise<ClaimPendingDepositInstruction<TProgramAddress, TAccountSigner, TAccountTokenMint, TAccountVoteTokenAccount, TAccountVoteTokenAta, TAccountSignerTokenAccount, TAccountTokenProgram>>;
|
|
1769
|
+
type ClaimPendingDepositInput<TAccountSigner extends string = string, TAccountTokenMint extends string = string, TAccountVoteTokenAccount extends string = string, TAccountVoteTokenAta extends string = string, TAccountSignerTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
|
|
1770
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
1771
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
1772
|
+
voteTokenAccount: Address<TAccountVoteTokenAccount>;
|
|
1773
|
+
/** ATA owned by VTA PDA (source of pending tokens) */
|
|
1774
|
+
voteTokenAta: Address<TAccountVoteTokenAta>;
|
|
1775
|
+
/** Signer's token account (destination for claimed tokens) */
|
|
1776
|
+
signerTokenAccount: Address<TAccountSignerTokenAccount>;
|
|
1777
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
1778
|
+
};
|
|
1779
|
+
declare function getClaimPendingDepositInstruction<TAccountSigner extends string, TAccountTokenMint extends string, TAccountVoteTokenAccount extends string, TAccountVoteTokenAta extends string, TAccountSignerTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimPendingDepositInput<TAccountSigner, TAccountTokenMint, TAccountVoteTokenAccount, TAccountVoteTokenAta, TAccountSignerTokenAccount, TAccountTokenProgram>, config?: {
|
|
1780
|
+
programAddress?: TProgramAddress;
|
|
1781
|
+
}): ClaimPendingDepositInstruction<TProgramAddress, TAccountSigner, TAccountTokenMint, TAccountVoteTokenAccount, TAccountVoteTokenAta, TAccountSignerTokenAccount, TAccountTokenProgram>;
|
|
1782
|
+
type ParsedClaimPendingDepositInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1783
|
+
programAddress: Address<TProgram>;
|
|
1784
|
+
accounts: {
|
|
1785
|
+
signer: TAccountMetas[0];
|
|
1786
|
+
tokenMint: TAccountMetas[1];
|
|
1787
|
+
voteTokenAccount: TAccountMetas[2];
|
|
1788
|
+
/** ATA owned by VTA PDA (source of pending tokens) */
|
|
1789
|
+
voteTokenAta: TAccountMetas[3];
|
|
1790
|
+
/** Signer's token account (destination for claimed tokens) */
|
|
1791
|
+
signerTokenAccount: TAccountMetas[4];
|
|
1792
|
+
tokenProgram: TAccountMetas[5];
|
|
1793
|
+
};
|
|
1794
|
+
data: ClaimPendingDepositInstructionData;
|
|
1795
|
+
};
|
|
1796
|
+
declare function parseClaimPendingDepositInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimPendingDepositInstruction<TProgram, TAccountMetas>;
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1800
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1801
|
+
* to add features, then rerun Codama to update it.
|
|
1802
|
+
*
|
|
1803
|
+
* @see https://github.com/codama-idl/codama
|
|
1804
|
+
*/
|
|
1805
|
+
|
|
1806
|
+
declare const CLAIM_VOTE_TOKENS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1807
|
+
declare function getClaimVoteTokensDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1808
|
+
type ClaimVoteTokensInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountVoteTokenAccount extends string | AccountMeta<string> = string, TAccountVoteTokenAta extends string | AccountMeta<string> = string, TAccountUserTokenAccount extends string | AccountMeta<string> = string, TAccountSignPdaAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountMempoolAccount extends string | AccountMeta<string> = string, TAccountExecutingPool extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountPoolAccount extends string | AccountMeta<string> = 'G2sRWJvi3xoyh5k2gY49eG9L8YhAEWQPtNb1zb1GXTtC', TAccountClockAccount extends string | AccountMeta<string> = '7EbMUTLo5DjdzbN7s8BXeZwXzEwNQb1hScfRvWg8a6ot', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1809
|
+
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
1810
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
1811
|
+
TAccountVoteTokenAccount extends string ? WritableAccount<TAccountVoteTokenAccount> : TAccountVoteTokenAccount,
|
|
1812
|
+
TAccountVoteTokenAta extends string ? WritableAccount<TAccountVoteTokenAta> : TAccountVoteTokenAta,
|
|
1813
|
+
TAccountUserTokenAccount extends string ? WritableAccount<TAccountUserTokenAccount> : TAccountUserTokenAccount,
|
|
1814
|
+
TAccountSignPdaAccount extends string ? WritableAccount<TAccountSignPdaAccount> : TAccountSignPdaAccount,
|
|
1815
|
+
TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
1816
|
+
TAccountMempoolAccount extends string ? WritableAccount<TAccountMempoolAccount> : TAccountMempoolAccount,
|
|
1817
|
+
TAccountExecutingPool extends string ? WritableAccount<TAccountExecutingPool> : TAccountExecutingPool,
|
|
1818
|
+
TAccountComputationAccount extends string ? WritableAccount<TAccountComputationAccount> : TAccountComputationAccount,
|
|
1819
|
+
TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
1820
|
+
TAccountClusterAccount extends string ? WritableAccount<TAccountClusterAccount> : TAccountClusterAccount,
|
|
1821
|
+
TAccountPoolAccount extends string ? WritableAccount<TAccountPoolAccount> : TAccountPoolAccount,
|
|
1822
|
+
TAccountClockAccount extends string ? WritableAccount<TAccountClockAccount> : TAccountClockAccount,
|
|
1823
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1824
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
1825
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
1826
|
+
...TRemainingAccounts
|
|
1827
|
+
]>;
|
|
1828
|
+
type ClaimVoteTokensInstructionData = {
|
|
1829
|
+
discriminator: ReadonlyUint8Array;
|
|
1830
|
+
computationOffset: bigint;
|
|
1831
|
+
userPubkey: Array<number>;
|
|
1832
|
+
amount: bigint;
|
|
1833
|
+
};
|
|
1834
|
+
type ClaimVoteTokensInstructionDataArgs = {
|
|
1835
|
+
computationOffset: number | bigint;
|
|
1836
|
+
userPubkey: Array<number>;
|
|
1837
|
+
amount: number | bigint;
|
|
1838
|
+
};
|
|
1839
|
+
declare function getClaimVoteTokensInstructionDataEncoder(): FixedSizeEncoder<ClaimVoteTokensInstructionDataArgs>;
|
|
1840
|
+
declare function getClaimVoteTokensInstructionDataDecoder(): FixedSizeDecoder<ClaimVoteTokensInstructionData>;
|
|
1841
|
+
declare function getClaimVoteTokensInstructionDataCodec(): FixedSizeCodec<ClaimVoteTokensInstructionDataArgs, ClaimVoteTokensInstructionData>;
|
|
1842
|
+
type ClaimVoteTokensAsyncInput<TAccountSigner extends string = string, TAccountTokenMint extends string = string, TAccountVoteTokenAccount extends string = string, TAccountVoteTokenAta extends string = string, TAccountUserTokenAccount extends string = string, TAccountSignPdaAccount extends string = string, TAccountMxeAccount extends string = string, TAccountMempoolAccount extends string = string, TAccountExecutingPool extends string = string, TAccountComputationAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountClusterAccount extends string = string, TAccountPoolAccount extends string = string, TAccountClockAccount extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountArciumProgram extends string = string> = {
|
|
1843
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
1844
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
1845
|
+
voteTokenAccount?: Address<TAccountVoteTokenAccount>;
|
|
1846
|
+
/** ATA owned by VTA PDA (source of SPL tokens for withdrawal) */
|
|
1847
|
+
voteTokenAta?: Address<TAccountVoteTokenAta>;
|
|
1848
|
+
/** Signer's token account (destination for claimed tokens) */
|
|
1849
|
+
userTokenAccount: Address<TAccountUserTokenAccount>;
|
|
1850
|
+
signPdaAccount?: Address<TAccountSignPdaAccount>;
|
|
1851
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
1852
|
+
mempoolAccount: Address<TAccountMempoolAccount>;
|
|
1853
|
+
executingPool: Address<TAccountExecutingPool>;
|
|
1854
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
1855
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
1856
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
1857
|
+
poolAccount?: Address<TAccountPoolAccount>;
|
|
1858
|
+
clockAccount?: Address<TAccountClockAccount>;
|
|
1859
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1860
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
1861
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
1862
|
+
computationOffset: ClaimVoteTokensInstructionDataArgs['computationOffset'];
|
|
1863
|
+
userPubkey: ClaimVoteTokensInstructionDataArgs['userPubkey'];
|
|
1864
|
+
amount: ClaimVoteTokensInstructionDataArgs['amount'];
|
|
1865
|
+
};
|
|
1866
|
+
declare function getClaimVoteTokensInstructionAsync<TAccountSigner extends string, TAccountTokenMint extends string, TAccountVoteTokenAccount extends string, TAccountVoteTokenAta extends string, TAccountUserTokenAccount extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimVoteTokensAsyncInput<TAccountSigner, TAccountTokenMint, TAccountVoteTokenAccount, TAccountVoteTokenAta, TAccountUserTokenAccount, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountTokenProgram, TAccountArciumProgram>, config?: {
|
|
1867
|
+
programAddress?: TProgramAddress;
|
|
1868
|
+
}): Promise<ClaimVoteTokensInstruction<TProgramAddress, TAccountSigner, TAccountTokenMint, TAccountVoteTokenAccount, TAccountVoteTokenAta, TAccountUserTokenAccount, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountTokenProgram, TAccountArciumProgram>>;
|
|
1869
|
+
type ClaimVoteTokensInput<TAccountSigner extends string = string, TAccountTokenMint extends string = string, TAccountVoteTokenAccount extends string = string, TAccountVoteTokenAta extends string = string, TAccountUserTokenAccount extends string = string, TAccountSignPdaAccount extends string = string, TAccountMxeAccount extends string = string, TAccountMempoolAccount extends string = string, TAccountExecutingPool extends string = string, TAccountComputationAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountClusterAccount extends string = string, TAccountPoolAccount extends string = string, TAccountClockAccount extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountArciumProgram extends string = string> = {
|
|
1870
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
1871
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
1872
|
+
voteTokenAccount: Address<TAccountVoteTokenAccount>;
|
|
1873
|
+
/** ATA owned by VTA PDA (source of SPL tokens for withdrawal) */
|
|
1874
|
+
voteTokenAta: Address<TAccountVoteTokenAta>;
|
|
1875
|
+
/** Signer's token account (destination for claimed tokens) */
|
|
1876
|
+
userTokenAccount: Address<TAccountUserTokenAccount>;
|
|
1877
|
+
signPdaAccount: Address<TAccountSignPdaAccount>;
|
|
1878
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
1879
|
+
mempoolAccount: Address<TAccountMempoolAccount>;
|
|
1880
|
+
executingPool: Address<TAccountExecutingPool>;
|
|
1881
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
1882
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
1883
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
1884
|
+
poolAccount?: Address<TAccountPoolAccount>;
|
|
1885
|
+
clockAccount?: Address<TAccountClockAccount>;
|
|
1886
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1887
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
1888
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
1889
|
+
computationOffset: ClaimVoteTokensInstructionDataArgs['computationOffset'];
|
|
1890
|
+
userPubkey: ClaimVoteTokensInstructionDataArgs['userPubkey'];
|
|
1891
|
+
amount: ClaimVoteTokensInstructionDataArgs['amount'];
|
|
1892
|
+
};
|
|
1893
|
+
declare function getClaimVoteTokensInstruction<TAccountSigner extends string, TAccountTokenMint extends string, TAccountVoteTokenAccount extends string, TAccountVoteTokenAta extends string, TAccountUserTokenAccount extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimVoteTokensInput<TAccountSigner, TAccountTokenMint, TAccountVoteTokenAccount, TAccountVoteTokenAta, TAccountUserTokenAccount, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountTokenProgram, TAccountArciumProgram>, config?: {
|
|
1894
|
+
programAddress?: TProgramAddress;
|
|
1895
|
+
}): ClaimVoteTokensInstruction<TProgramAddress, TAccountSigner, TAccountTokenMint, TAccountVoteTokenAccount, TAccountVoteTokenAta, TAccountUserTokenAccount, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountTokenProgram, TAccountArciumProgram>;
|
|
1896
|
+
type ParsedClaimVoteTokensInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1897
|
+
programAddress: Address<TProgram>;
|
|
1898
|
+
accounts: {
|
|
1899
|
+
signer: TAccountMetas[0];
|
|
1900
|
+
tokenMint: TAccountMetas[1];
|
|
1901
|
+
voteTokenAccount: TAccountMetas[2];
|
|
1902
|
+
/** ATA owned by VTA PDA (source of SPL tokens for withdrawal) */
|
|
1903
|
+
voteTokenAta: TAccountMetas[3];
|
|
1904
|
+
/** Signer's token account (destination for claimed tokens) */
|
|
1905
|
+
userTokenAccount: TAccountMetas[4];
|
|
1906
|
+
signPdaAccount: TAccountMetas[5];
|
|
1907
|
+
mxeAccount: TAccountMetas[6];
|
|
1908
|
+
mempoolAccount: TAccountMetas[7];
|
|
1909
|
+
executingPool: TAccountMetas[8];
|
|
1910
|
+
computationAccount: TAccountMetas[9];
|
|
1911
|
+
compDefAccount: TAccountMetas[10];
|
|
1912
|
+
clusterAccount: TAccountMetas[11];
|
|
1913
|
+
poolAccount: TAccountMetas[12];
|
|
1914
|
+
clockAccount: TAccountMetas[13];
|
|
1915
|
+
systemProgram: TAccountMetas[14];
|
|
1916
|
+
tokenProgram: TAccountMetas[15];
|
|
1917
|
+
arciumProgram: TAccountMetas[16];
|
|
1918
|
+
};
|
|
1919
|
+
data: ClaimVoteTokensInstructionData;
|
|
1920
|
+
};
|
|
1921
|
+
declare function parseClaimVoteTokensInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimVoteTokensInstruction<TProgram, TAccountMetas>;
|
|
1922
|
+
|
|
1923
|
+
/**
|
|
1924
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1925
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1926
|
+
* to add features, then rerun Codama to update it.
|
|
1927
|
+
*
|
|
1928
|
+
* @see https://github.com/codama-idl/codama
|
|
1929
|
+
*/
|
|
1930
|
+
|
|
1931
|
+
declare const CLAIM_VOTE_TOKENS_CALLBACK_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1932
|
+
declare function getClaimVoteTokensCallbackDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1933
|
+
type ClaimVoteTokensCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountInstructionsSysvar extends string | AccountMeta<string> = 'Sysvar1nstructions1111111111111111111111111', TAccountVoteTokenAccount extends string | AccountMeta<string> = string, TAccountUserTokenAccount extends string | AccountMeta<string> = string, TAccountVoteTokenAta extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1934
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
1935
|
+
TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
1936
|
+
TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
1937
|
+
TAccountComputationAccount extends string ? ReadonlyAccount<TAccountComputationAccount> : TAccountComputationAccount,
|
|
1938
|
+
TAccountClusterAccount extends string ? ReadonlyAccount<TAccountClusterAccount> : TAccountClusterAccount,
|
|
1939
|
+
TAccountInstructionsSysvar extends string ? ReadonlyAccount<TAccountInstructionsSysvar> : TAccountInstructionsSysvar,
|
|
1940
|
+
TAccountVoteTokenAccount extends string ? WritableAccount<TAccountVoteTokenAccount> : TAccountVoteTokenAccount,
|
|
1941
|
+
TAccountUserTokenAccount extends string ? WritableAccount<TAccountUserTokenAccount> : TAccountUserTokenAccount,
|
|
1942
|
+
TAccountVoteTokenAta extends string ? WritableAccount<TAccountVoteTokenAta> : TAccountVoteTokenAta,
|
|
1943
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
1944
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
1945
|
+
...TRemainingAccounts
|
|
1946
|
+
]>;
|
|
1947
|
+
type ClaimVoteTokensCallbackInstructionData = {
|
|
1948
|
+
discriminator: ReadonlyUint8Array;
|
|
1949
|
+
output: {
|
|
1950
|
+
__kind: 'Success';
|
|
1951
|
+
fields: readonly [ClaimVoteTokensOutput, Array<number>];
|
|
1952
|
+
} | {
|
|
1953
|
+
__kind: 'Failure';
|
|
1954
|
+
} | {
|
|
1955
|
+
__kind: 'MarkerForIdlBuildDoNotUseThis';
|
|
1956
|
+
fields: readonly [ClaimVoteTokensOutput];
|
|
1957
|
+
};
|
|
1958
|
+
};
|
|
1959
|
+
type ClaimVoteTokensCallbackInstructionDataArgs = {
|
|
1960
|
+
output: {
|
|
1961
|
+
__kind: 'Success';
|
|
1962
|
+
fields: readonly [ClaimVoteTokensOutputArgs, Array<number>];
|
|
1963
|
+
} | {
|
|
1964
|
+
__kind: 'Failure';
|
|
1965
|
+
} | {
|
|
1966
|
+
__kind: 'MarkerForIdlBuildDoNotUseThis';
|
|
1967
|
+
fields: readonly [ClaimVoteTokensOutputArgs];
|
|
1968
|
+
};
|
|
1969
|
+
};
|
|
1970
|
+
declare function getClaimVoteTokensCallbackInstructionDataEncoder(): Encoder<ClaimVoteTokensCallbackInstructionDataArgs>;
|
|
1971
|
+
declare function getClaimVoteTokensCallbackInstructionDataDecoder(): Decoder<ClaimVoteTokensCallbackInstructionData>;
|
|
1972
|
+
declare function getClaimVoteTokensCallbackInstructionDataCodec(): Codec<ClaimVoteTokensCallbackInstructionDataArgs, ClaimVoteTokensCallbackInstructionData>;
|
|
1973
|
+
type ClaimVoteTokensCallbackInput<TAccountArciumProgram extends string = string, TAccountCompDefAccount extends string = string, TAccountMxeAccount extends string = string, TAccountComputationAccount extends string = string, TAccountClusterAccount extends string = string, TAccountInstructionsSysvar extends string = string, TAccountVoteTokenAccount extends string = string, TAccountUserTokenAccount extends string = string, TAccountVoteTokenAta extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string> = {
|
|
1974
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
1975
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
1976
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
1977
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
1978
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
1979
|
+
instructionsSysvar?: Address<TAccountInstructionsSysvar>;
|
|
1980
|
+
voteTokenAccount: Address<TAccountVoteTokenAccount>;
|
|
1981
|
+
/** User's token account to receive claimed SPL tokens */
|
|
1982
|
+
userTokenAccount: Address<TAccountUserTokenAccount>;
|
|
1983
|
+
/** VTA's ATA holding SPL tokens (source for withdrawal) */
|
|
1984
|
+
voteTokenAta: Address<TAccountVoteTokenAta>;
|
|
1985
|
+
/** Token mint for transfer_checked */
|
|
1986
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
1987
|
+
/** Token program for CPI */
|
|
1988
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
1989
|
+
output: ClaimVoteTokensCallbackInstructionDataArgs['output'];
|
|
1990
|
+
};
|
|
1991
|
+
declare function getClaimVoteTokensCallbackInstruction<TAccountArciumProgram extends string, TAccountCompDefAccount extends string, TAccountMxeAccount extends string, TAccountComputationAccount extends string, TAccountClusterAccount extends string, TAccountInstructionsSysvar extends string, TAccountVoteTokenAccount extends string, TAccountUserTokenAccount extends string, TAccountVoteTokenAta extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimVoteTokensCallbackInput<TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountVoteTokenAccount, TAccountUserTokenAccount, TAccountVoteTokenAta, TAccountTokenMint, TAccountTokenProgram>, config?: {
|
|
1992
|
+
programAddress?: TProgramAddress;
|
|
1993
|
+
}): ClaimVoteTokensCallbackInstruction<TProgramAddress, TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountVoteTokenAccount, TAccountUserTokenAccount, TAccountVoteTokenAta, TAccountTokenMint, TAccountTokenProgram>;
|
|
1994
|
+
type ParsedClaimVoteTokensCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1995
|
+
programAddress: Address<TProgram>;
|
|
1996
|
+
accounts: {
|
|
1997
|
+
arciumProgram: TAccountMetas[0];
|
|
1998
|
+
compDefAccount: TAccountMetas[1];
|
|
1999
|
+
mxeAccount: TAccountMetas[2];
|
|
2000
|
+
computationAccount: TAccountMetas[3];
|
|
2001
|
+
clusterAccount: TAccountMetas[4];
|
|
2002
|
+
instructionsSysvar: TAccountMetas[5];
|
|
2003
|
+
voteTokenAccount: TAccountMetas[6];
|
|
2004
|
+
/** User's token account to receive claimed SPL tokens */
|
|
2005
|
+
userTokenAccount: TAccountMetas[7];
|
|
2006
|
+
/** VTA's ATA holding SPL tokens (source for withdrawal) */
|
|
2007
|
+
voteTokenAta: TAccountMetas[8];
|
|
2008
|
+
/** Token mint for transfer_checked */
|
|
2009
|
+
tokenMint: TAccountMetas[9];
|
|
2010
|
+
/** Token program for CPI */
|
|
2011
|
+
tokenProgram: TAccountMetas[10];
|
|
2012
|
+
};
|
|
2013
|
+
data: ClaimVoteTokensCallbackInstructionData;
|
|
2014
|
+
};
|
|
2015
|
+
declare function parseClaimVoteTokensCallbackInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimVoteTokensCallbackInstruction<TProgram, TAccountMetas>;
|
|
2016
|
+
|
|
2017
|
+
/**
|
|
2018
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2019
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2020
|
+
* to add features, then rerun Codama to update it.
|
|
2021
|
+
*
|
|
2022
|
+
* @see https://github.com/codama-idl/codama
|
|
2023
|
+
*/
|
|
2024
|
+
|
|
2025
|
+
declare const CLAIM_VOTE_TOKENS_COMP_DEF_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2026
|
+
declare function getClaimVoteTokensCompDefDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2027
|
+
type ClaimVoteTokensCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2028
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
2029
|
+
TAccountMxeAccount extends string ? WritableAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
2030
|
+
TAccountCompDefAccount extends string ? WritableAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
2031
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
2032
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2033
|
+
...TRemainingAccounts
|
|
2034
|
+
]>;
|
|
2035
|
+
type ClaimVoteTokensCompDefInstructionData = {
|
|
2036
|
+
discriminator: ReadonlyUint8Array;
|
|
2037
|
+
};
|
|
2038
|
+
type ClaimVoteTokensCompDefInstructionDataArgs = {};
|
|
2039
|
+
declare function getClaimVoteTokensCompDefInstructionDataEncoder(): FixedSizeEncoder<ClaimVoteTokensCompDefInstructionDataArgs>;
|
|
2040
|
+
declare function getClaimVoteTokensCompDefInstructionDataDecoder(): FixedSizeDecoder<ClaimVoteTokensCompDefInstructionData>;
|
|
2041
|
+
declare function getClaimVoteTokensCompDefInstructionDataCodec(): FixedSizeCodec<ClaimVoteTokensCompDefInstructionDataArgs, ClaimVoteTokensCompDefInstructionData>;
|
|
2042
|
+
type ClaimVoteTokensCompDefInput<TAccountPayer extends string = string, TAccountMxeAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountArciumProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2043
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
2044
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
2045
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
2046
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
2047
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2048
|
+
};
|
|
2049
|
+
declare function getClaimVoteTokensCompDefInstruction<TAccountPayer extends string, TAccountMxeAccount extends string, TAccountCompDefAccount extends string, TAccountArciumProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimVoteTokensCompDefInput<TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountArciumProgram, TAccountSystemProgram>, config?: {
|
|
2050
|
+
programAddress?: TProgramAddress;
|
|
2051
|
+
}): ClaimVoteTokensCompDefInstruction<TProgramAddress, TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountArciumProgram, TAccountSystemProgram>;
|
|
2052
|
+
type ParsedClaimVoteTokensCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2053
|
+
programAddress: Address<TProgram>;
|
|
2054
|
+
accounts: {
|
|
2055
|
+
payer: TAccountMetas[0];
|
|
2056
|
+
mxeAccount: TAccountMetas[1];
|
|
2057
|
+
compDefAccount: TAccountMetas[2];
|
|
2058
|
+
arciumProgram: TAccountMetas[3];
|
|
2059
|
+
systemProgram: TAccountMetas[4];
|
|
2060
|
+
};
|
|
2061
|
+
data: ClaimVoteTokensCompDefInstructionData;
|
|
2062
|
+
};
|
|
2063
|
+
declare function parseClaimVoteTokensCompDefInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimVoteTokensCompDefInstruction<TProgram, TAccountMetas>;
|
|
2064
|
+
|
|
2065
|
+
/**
|
|
2066
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2067
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2068
|
+
* to add features, then rerun Codama to update it.
|
|
2069
|
+
*
|
|
2070
|
+
* @see https://github.com/codama-idl/codama
|
|
2071
|
+
*/
|
|
2072
|
+
|
|
2073
|
+
declare const CLOSE_SHARE_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2074
|
+
declare function getCloseShareAccountDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2075
|
+
type CloseShareAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountShareAccount extends string | AccountMeta<string> = string, TAccountOption extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountOwnerTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2076
|
+
TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
|
|
2077
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2078
|
+
TAccountShareAccount extends string ? WritableAccount<TAccountShareAccount> : TAccountShareAccount,
|
|
2079
|
+
TAccountOption extends string ? ReadonlyAccount<TAccountOption> : TAccountOption,
|
|
2080
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
2081
|
+
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
2082
|
+
TAccountOwnerTokenAccount extends string ? WritableAccount<TAccountOwnerTokenAccount> : TAccountOwnerTokenAccount,
|
|
2083
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2084
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2085
|
+
...TRemainingAccounts
|
|
2086
|
+
]>;
|
|
2087
|
+
type CloseShareAccountInstructionData = {
|
|
2088
|
+
discriminator: ReadonlyUint8Array;
|
|
2089
|
+
optionIndex: number;
|
|
2090
|
+
};
|
|
2091
|
+
type CloseShareAccountInstructionDataArgs = {
|
|
2092
|
+
optionIndex: number;
|
|
2093
|
+
};
|
|
2094
|
+
declare function getCloseShareAccountInstructionDataEncoder(): FixedSizeEncoder<CloseShareAccountInstructionDataArgs>;
|
|
2095
|
+
declare function getCloseShareAccountInstructionDataDecoder(): FixedSizeDecoder<CloseShareAccountInstructionData>;
|
|
2096
|
+
declare function getCloseShareAccountInstructionDataCodec(): FixedSizeCodec<CloseShareAccountInstructionDataArgs, CloseShareAccountInstructionData>;
|
|
2097
|
+
type CloseShareAccountAsyncInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountShareAccount extends string = string, TAccountOption extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2098
|
+
owner: TransactionSigner<TAccountOwner>;
|
|
2099
|
+
market: Address<TAccountMarket>;
|
|
2100
|
+
shareAccount?: Address<TAccountShareAccount>;
|
|
2101
|
+
option?: Address<TAccountOption>;
|
|
2102
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2103
|
+
/** Market's ATA holding reward tokens */
|
|
2104
|
+
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
2105
|
+
/** Owner's token account to receive rewards */
|
|
2106
|
+
ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
|
|
2107
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2108
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2109
|
+
optionIndex: CloseShareAccountInstructionDataArgs['optionIndex'];
|
|
2110
|
+
};
|
|
2111
|
+
declare function getCloseShareAccountInstructionAsync<TAccountOwner extends string, TAccountMarket extends string, TAccountShareAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseShareAccountAsyncInput<TAccountOwner, TAccountMarket, TAccountShareAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
2112
|
+
programAddress?: TProgramAddress;
|
|
2113
|
+
}): Promise<CloseShareAccountInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountShareAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>>;
|
|
2114
|
+
type CloseShareAccountInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountShareAccount extends string = string, TAccountOption extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2115
|
+
owner: TransactionSigner<TAccountOwner>;
|
|
2116
|
+
market: Address<TAccountMarket>;
|
|
2117
|
+
shareAccount: Address<TAccountShareAccount>;
|
|
2118
|
+
option: Address<TAccountOption>;
|
|
2119
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2120
|
+
/** Market's ATA holding reward tokens */
|
|
2121
|
+
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
2122
|
+
/** Owner's token account to receive rewards */
|
|
2123
|
+
ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
|
|
2124
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2125
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2126
|
+
optionIndex: CloseShareAccountInstructionDataArgs['optionIndex'];
|
|
2127
|
+
};
|
|
2128
|
+
declare function getCloseShareAccountInstruction<TAccountOwner extends string, TAccountMarket extends string, TAccountShareAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseShareAccountInput<TAccountOwner, TAccountMarket, TAccountShareAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
2129
|
+
programAddress?: TProgramAddress;
|
|
2130
|
+
}): CloseShareAccountInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountShareAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>;
|
|
2131
|
+
type ParsedCloseShareAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2132
|
+
programAddress: Address<TProgram>;
|
|
2133
|
+
accounts: {
|
|
2134
|
+
owner: TAccountMetas[0];
|
|
2135
|
+
market: TAccountMetas[1];
|
|
2136
|
+
shareAccount: TAccountMetas[2];
|
|
2137
|
+
option: TAccountMetas[3];
|
|
2138
|
+
tokenMint: TAccountMetas[4];
|
|
2139
|
+
/** Market's ATA holding reward tokens */
|
|
2140
|
+
marketTokenAta: TAccountMetas[5];
|
|
2141
|
+
/** Owner's token account to receive rewards */
|
|
2142
|
+
ownerTokenAccount: TAccountMetas[6];
|
|
2143
|
+
tokenProgram: TAccountMetas[7];
|
|
2144
|
+
systemProgram: TAccountMetas[8];
|
|
2145
|
+
};
|
|
2146
|
+
data: CloseShareAccountInstructionData;
|
|
2147
|
+
};
|
|
2148
|
+
declare function parseCloseShareAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseShareAccountInstruction<TProgram, TAccountMetas>;
|
|
2149
|
+
|
|
2150
|
+
/**
|
|
2151
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2152
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2153
|
+
* to add features, then rerun Codama to update it.
|
|
2154
|
+
*
|
|
2155
|
+
* @see https://github.com/codama-idl/codama
|
|
2156
|
+
*/
|
|
2157
|
+
|
|
2158
|
+
declare const CREATE_MARKET_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2159
|
+
declare function getCreateMarketDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2160
|
+
type CreateMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountCreator extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountSignPdaAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountMempoolAccount extends string | AccountMeta<string> = string, TAccountExecutingPool extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountPoolAccount extends string | AccountMeta<string> = 'G2sRWJvi3xoyh5k2gY49eG9L8YhAEWQPtNb1zb1GXTtC', TAccountClockAccount extends string | AccountMeta<string> = '7EbMUTLo5DjdzbN7s8BXeZwXzEwNQb1hScfRvWg8a6ot', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2161
|
+
TAccountCreator extends string ? WritableSignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator,
|
|
2162
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
2163
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2164
|
+
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
2165
|
+
TAccountSignPdaAccount extends string ? WritableAccount<TAccountSignPdaAccount> : TAccountSignPdaAccount,
|
|
2166
|
+
TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
2167
|
+
TAccountMempoolAccount extends string ? WritableAccount<TAccountMempoolAccount> : TAccountMempoolAccount,
|
|
2168
|
+
TAccountExecutingPool extends string ? WritableAccount<TAccountExecutingPool> : TAccountExecutingPool,
|
|
2169
|
+
TAccountComputationAccount extends string ? WritableAccount<TAccountComputationAccount> : TAccountComputationAccount,
|
|
2170
|
+
TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
2171
|
+
TAccountClusterAccount extends string ? WritableAccount<TAccountClusterAccount> : TAccountClusterAccount,
|
|
2172
|
+
TAccountPoolAccount extends string ? WritableAccount<TAccountPoolAccount> : TAccountPoolAccount,
|
|
2173
|
+
TAccountClockAccount extends string ? WritableAccount<TAccountClockAccount> : TAccountClockAccount,
|
|
2174
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2175
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2176
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
2177
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
2178
|
+
...TRemainingAccounts
|
|
2179
|
+
]>;
|
|
2180
|
+
type CreateMarketInstructionData = {
|
|
2181
|
+
discriminator: ReadonlyUint8Array;
|
|
2182
|
+
marketIndex: bigint;
|
|
2183
|
+
computationOffset: bigint;
|
|
2184
|
+
maxShares: bigint;
|
|
2185
|
+
rewardAmount: bigint;
|
|
2186
|
+
timeToStake: bigint;
|
|
2187
|
+
timeToReveal: bigint;
|
|
2188
|
+
nonce: bigint;
|
|
2189
|
+
marketAuthority: Option<Address>;
|
|
2190
|
+
};
|
|
2191
|
+
type CreateMarketInstructionDataArgs = {
|
|
2192
|
+
marketIndex: number | bigint;
|
|
2193
|
+
computationOffset: number | bigint;
|
|
2194
|
+
maxShares: number | bigint;
|
|
2195
|
+
rewardAmount: number | bigint;
|
|
2196
|
+
timeToStake: number | bigint;
|
|
2197
|
+
timeToReveal: number | bigint;
|
|
2198
|
+
nonce: number | bigint;
|
|
2199
|
+
marketAuthority: OptionOrNullable<Address>;
|
|
2200
|
+
};
|
|
2201
|
+
declare function getCreateMarketInstructionDataEncoder(): Encoder<CreateMarketInstructionDataArgs>;
|
|
2202
|
+
declare function getCreateMarketInstructionDataDecoder(): Decoder<CreateMarketInstructionData>;
|
|
2203
|
+
declare function getCreateMarketInstructionDataCodec(): Codec<CreateMarketInstructionDataArgs, CreateMarketInstructionData>;
|
|
2204
|
+
type CreateMarketAsyncInput<TAccountCreator extends string = string, TAccountTokenMint extends string = string, TAccountMarket extends string = string, TAccountMarketTokenAta extends string = string, TAccountSignPdaAccount extends string = string, TAccountMxeAccount extends string = string, TAccountMempoolAccount extends string = string, TAccountExecutingPool extends string = string, TAccountComputationAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountClusterAccount extends string = string, TAccountPoolAccount extends string = string, TAccountClockAccount extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountArciumProgram extends string = string> = {
|
|
2205
|
+
creator: TransactionSigner<TAccountCreator>;
|
|
2206
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2207
|
+
market?: Address<TAccountMarket>;
|
|
2208
|
+
/** ATA owned by market PDA, holds reward tokens */
|
|
2209
|
+
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
2210
|
+
signPdaAccount?: Address<TAccountSignPdaAccount>;
|
|
2211
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
2212
|
+
mempoolAccount: Address<TAccountMempoolAccount>;
|
|
2213
|
+
executingPool: Address<TAccountExecutingPool>;
|
|
2214
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
2215
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
2216
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
2217
|
+
poolAccount?: Address<TAccountPoolAccount>;
|
|
2218
|
+
clockAccount?: Address<TAccountClockAccount>;
|
|
2219
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2220
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2221
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2222
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
2223
|
+
marketIndex: CreateMarketInstructionDataArgs['marketIndex'];
|
|
2224
|
+
computationOffset: CreateMarketInstructionDataArgs['computationOffset'];
|
|
2225
|
+
maxShares: CreateMarketInstructionDataArgs['maxShares'];
|
|
2226
|
+
rewardAmount: CreateMarketInstructionDataArgs['rewardAmount'];
|
|
2227
|
+
timeToStake: CreateMarketInstructionDataArgs['timeToStake'];
|
|
2228
|
+
timeToReveal: CreateMarketInstructionDataArgs['timeToReveal'];
|
|
2229
|
+
nonce: CreateMarketInstructionDataArgs['nonce'];
|
|
2230
|
+
marketAuthority: CreateMarketInstructionDataArgs['marketAuthority'];
|
|
2231
|
+
};
|
|
2232
|
+
declare function getCreateMarketInstructionAsync<TAccountCreator extends string, TAccountTokenMint extends string, TAccountMarket extends string, TAccountMarketTokenAta extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CreateMarketAsyncInput<TAccountCreator, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountArciumProgram>, config?: {
|
|
2233
|
+
programAddress?: TProgramAddress;
|
|
2234
|
+
}): Promise<CreateMarketInstruction<TProgramAddress, TAccountCreator, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountArciumProgram>>;
|
|
2235
|
+
type CreateMarketInput<TAccountCreator extends string = string, TAccountTokenMint extends string = string, TAccountMarket extends string = string, TAccountMarketTokenAta extends string = string, TAccountSignPdaAccount extends string = string, TAccountMxeAccount extends string = string, TAccountMempoolAccount extends string = string, TAccountExecutingPool extends string = string, TAccountComputationAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountClusterAccount extends string = string, TAccountPoolAccount extends string = string, TAccountClockAccount extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountArciumProgram extends string = string> = {
|
|
2236
|
+
creator: TransactionSigner<TAccountCreator>;
|
|
2237
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2238
|
+
market: Address<TAccountMarket>;
|
|
2239
|
+
/** ATA owned by market PDA, holds reward tokens */
|
|
2240
|
+
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
2241
|
+
signPdaAccount: Address<TAccountSignPdaAccount>;
|
|
2242
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
2243
|
+
mempoolAccount: Address<TAccountMempoolAccount>;
|
|
2244
|
+
executingPool: Address<TAccountExecutingPool>;
|
|
2245
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
2246
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
2247
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
2248
|
+
poolAccount?: Address<TAccountPoolAccount>;
|
|
2249
|
+
clockAccount?: Address<TAccountClockAccount>;
|
|
2250
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2251
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2252
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2253
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
2254
|
+
marketIndex: CreateMarketInstructionDataArgs['marketIndex'];
|
|
2255
|
+
computationOffset: CreateMarketInstructionDataArgs['computationOffset'];
|
|
2256
|
+
maxShares: CreateMarketInstructionDataArgs['maxShares'];
|
|
2257
|
+
rewardAmount: CreateMarketInstructionDataArgs['rewardAmount'];
|
|
2258
|
+
timeToStake: CreateMarketInstructionDataArgs['timeToStake'];
|
|
2259
|
+
timeToReveal: CreateMarketInstructionDataArgs['timeToReveal'];
|
|
2260
|
+
nonce: CreateMarketInstructionDataArgs['nonce'];
|
|
2261
|
+
marketAuthority: CreateMarketInstructionDataArgs['marketAuthority'];
|
|
2262
|
+
};
|
|
2263
|
+
declare function getCreateMarketInstruction<TAccountCreator extends string, TAccountTokenMint extends string, TAccountMarket extends string, TAccountMarketTokenAta extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CreateMarketInput<TAccountCreator, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountArciumProgram>, config?: {
|
|
2264
|
+
programAddress?: TProgramAddress;
|
|
2265
|
+
}): CreateMarketInstruction<TProgramAddress, TAccountCreator, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountArciumProgram>;
|
|
2266
|
+
type ParsedCreateMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2267
|
+
programAddress: Address<TProgram>;
|
|
2268
|
+
accounts: {
|
|
2269
|
+
creator: TAccountMetas[0];
|
|
2270
|
+
tokenMint: TAccountMetas[1];
|
|
2271
|
+
market: TAccountMetas[2];
|
|
2272
|
+
/** ATA owned by market PDA, holds reward tokens */
|
|
2273
|
+
marketTokenAta: TAccountMetas[3];
|
|
2274
|
+
signPdaAccount: TAccountMetas[4];
|
|
2275
|
+
mxeAccount: TAccountMetas[5];
|
|
2276
|
+
mempoolAccount: TAccountMetas[6];
|
|
2277
|
+
executingPool: TAccountMetas[7];
|
|
2278
|
+
computationAccount: TAccountMetas[8];
|
|
2279
|
+
compDefAccount: TAccountMetas[9];
|
|
2280
|
+
clusterAccount: TAccountMetas[10];
|
|
2281
|
+
poolAccount: TAccountMetas[11];
|
|
2282
|
+
clockAccount: TAccountMetas[12];
|
|
2283
|
+
systemProgram: TAccountMetas[13];
|
|
2284
|
+
tokenProgram: TAccountMetas[14];
|
|
2285
|
+
associatedTokenProgram: TAccountMetas[15];
|
|
2286
|
+
arciumProgram: TAccountMetas[16];
|
|
2287
|
+
};
|
|
2288
|
+
data: CreateMarketInstructionData;
|
|
2289
|
+
};
|
|
2290
|
+
declare function parseCreateMarketInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateMarketInstruction<TProgram, TAccountMetas>;
|
|
2291
|
+
|
|
2292
|
+
/**
|
|
2293
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2294
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2295
|
+
* to add features, then rerun Codama to update it.
|
|
2296
|
+
*
|
|
2297
|
+
* @see https://github.com/codama-idl/codama
|
|
2298
|
+
*/
|
|
2299
|
+
|
|
2300
|
+
declare const EXTEND_REVEAL_PERIOD_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2301
|
+
declare function getExtendRevealPeriodDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2302
|
+
type ExtendRevealPeriodInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2303
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2304
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2305
|
+
...TRemainingAccounts
|
|
2306
|
+
]>;
|
|
2307
|
+
type ExtendRevealPeriodInstructionData = {
|
|
2308
|
+
discriminator: ReadonlyUint8Array;
|
|
2309
|
+
newTimeToReveal: bigint;
|
|
2310
|
+
};
|
|
2311
|
+
type ExtendRevealPeriodInstructionDataArgs = {
|
|
2312
|
+
newTimeToReveal: number | bigint;
|
|
2313
|
+
};
|
|
2314
|
+
declare function getExtendRevealPeriodInstructionDataEncoder(): FixedSizeEncoder<ExtendRevealPeriodInstructionDataArgs>;
|
|
2315
|
+
declare function getExtendRevealPeriodInstructionDataDecoder(): FixedSizeDecoder<ExtendRevealPeriodInstructionData>;
|
|
2316
|
+
declare function getExtendRevealPeriodInstructionDataCodec(): FixedSizeCodec<ExtendRevealPeriodInstructionDataArgs, ExtendRevealPeriodInstructionData>;
|
|
2317
|
+
type ExtendRevealPeriodInput<TAccountAuthority extends string = string, TAccountMarket extends string = string> = {
|
|
2318
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
2319
|
+
market: Address<TAccountMarket>;
|
|
2320
|
+
newTimeToReveal: ExtendRevealPeriodInstructionDataArgs['newTimeToReveal'];
|
|
2321
|
+
};
|
|
2322
|
+
declare function getExtendRevealPeriodInstruction<TAccountAuthority extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ExtendRevealPeriodInput<TAccountAuthority, TAccountMarket>, config?: {
|
|
2323
|
+
programAddress?: TProgramAddress;
|
|
2324
|
+
}): ExtendRevealPeriodInstruction<TProgramAddress, TAccountAuthority, TAccountMarket>;
|
|
2325
|
+
type ParsedExtendRevealPeriodInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2326
|
+
programAddress: Address<TProgram>;
|
|
2327
|
+
accounts: {
|
|
2328
|
+
authority: TAccountMetas[0];
|
|
2329
|
+
market: TAccountMetas[1];
|
|
2330
|
+
};
|
|
2331
|
+
data: ExtendRevealPeriodInstructionData;
|
|
2332
|
+
};
|
|
2333
|
+
declare function parseExtendRevealPeriodInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedExtendRevealPeriodInstruction<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 INCREMENT_OPTION_TALLY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2344
|
+
declare function getIncrementOptionTallyDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2345
|
+
type IncrementOptionTallyInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountShareAccount extends string | AccountMeta<string> = string, TAccountOption extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2346
|
+
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
2347
|
+
TAccountOwner extends string ? ReadonlyAccount<TAccountOwner> : TAccountOwner,
|
|
2348
|
+
TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
|
|
2349
|
+
TAccountShareAccount extends string ? WritableAccount<TAccountShareAccount> : TAccountShareAccount,
|
|
2350
|
+
TAccountOption extends string ? WritableAccount<TAccountOption> : TAccountOption,
|
|
2351
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2352
|
+
...TRemainingAccounts
|
|
2353
|
+
]>;
|
|
2354
|
+
type IncrementOptionTallyInstructionData = {
|
|
2355
|
+
discriminator: ReadonlyUint8Array;
|
|
2356
|
+
optionIndex: number;
|
|
2357
|
+
};
|
|
2358
|
+
type IncrementOptionTallyInstructionDataArgs = {
|
|
2359
|
+
optionIndex: number;
|
|
2360
|
+
};
|
|
2361
|
+
declare function getIncrementOptionTallyInstructionDataEncoder(): FixedSizeEncoder<IncrementOptionTallyInstructionDataArgs>;
|
|
2362
|
+
declare function getIncrementOptionTallyInstructionDataDecoder(): FixedSizeDecoder<IncrementOptionTallyInstructionData>;
|
|
2363
|
+
declare function getIncrementOptionTallyInstructionDataCodec(): FixedSizeCodec<IncrementOptionTallyInstructionDataArgs, IncrementOptionTallyInstructionData>;
|
|
2364
|
+
type IncrementOptionTallyAsyncInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountShareAccount extends string = string, TAccountOption extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2365
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
2366
|
+
owner: Address<TAccountOwner>;
|
|
2367
|
+
market: Address<TAccountMarket>;
|
|
2368
|
+
shareAccount?: Address<TAccountShareAccount>;
|
|
2369
|
+
option?: Address<TAccountOption>;
|
|
2370
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2371
|
+
optionIndex: IncrementOptionTallyInstructionDataArgs['optionIndex'];
|
|
2372
|
+
};
|
|
2373
|
+
declare function getIncrementOptionTallyInstructionAsync<TAccountSigner extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountShareAccount extends string, TAccountOption extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: IncrementOptionTallyAsyncInput<TAccountSigner, TAccountOwner, TAccountMarket, TAccountShareAccount, TAccountOption, TAccountSystemProgram>, config?: {
|
|
2374
|
+
programAddress?: TProgramAddress;
|
|
2375
|
+
}): Promise<IncrementOptionTallyInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountShareAccount, TAccountOption, TAccountSystemProgram>>;
|
|
2376
|
+
type IncrementOptionTallyInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountShareAccount extends string = string, TAccountOption extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2377
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
2378
|
+
owner: Address<TAccountOwner>;
|
|
2379
|
+
market: Address<TAccountMarket>;
|
|
2380
|
+
shareAccount: Address<TAccountShareAccount>;
|
|
2381
|
+
option: Address<TAccountOption>;
|
|
2382
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2383
|
+
optionIndex: IncrementOptionTallyInstructionDataArgs['optionIndex'];
|
|
2384
|
+
};
|
|
2385
|
+
declare function getIncrementOptionTallyInstruction<TAccountSigner extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountShareAccount extends string, TAccountOption extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: IncrementOptionTallyInput<TAccountSigner, TAccountOwner, TAccountMarket, TAccountShareAccount, TAccountOption, TAccountSystemProgram>, config?: {
|
|
2386
|
+
programAddress?: TProgramAddress;
|
|
2387
|
+
}): IncrementOptionTallyInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountShareAccount, TAccountOption, TAccountSystemProgram>;
|
|
2388
|
+
type ParsedIncrementOptionTallyInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2389
|
+
programAddress: Address<TProgram>;
|
|
2390
|
+
accounts: {
|
|
2391
|
+
signer: TAccountMetas[0];
|
|
2392
|
+
owner: TAccountMetas[1];
|
|
2393
|
+
market: TAccountMetas[2];
|
|
2394
|
+
shareAccount: TAccountMetas[3];
|
|
2395
|
+
option: TAccountMetas[4];
|
|
2396
|
+
systemProgram: TAccountMetas[5];
|
|
2397
|
+
};
|
|
2398
|
+
data: IncrementOptionTallyInstructionData;
|
|
2399
|
+
};
|
|
2400
|
+
declare function parseIncrementOptionTallyInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedIncrementOptionTallyInstruction<TProgram, TAccountMetas>;
|
|
2401
|
+
|
|
2402
|
+
/**
|
|
2403
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2404
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2405
|
+
* to add features, then rerun Codama to update it.
|
|
2406
|
+
*
|
|
2407
|
+
* @see https://github.com/codama-idl/codama
|
|
2408
|
+
*/
|
|
2409
|
+
|
|
2410
|
+
declare const INIT_MARKET_SHARES_CALLBACK_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2411
|
+
declare function getInitMarketSharesCallbackDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2412
|
+
type InitMarketSharesCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountInstructionsSysvar extends string | AccountMeta<string> = 'Sysvar1nstructions1111111111111111111111111', TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2413
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
2414
|
+
TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
2415
|
+
TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
2416
|
+
TAccountComputationAccount extends string ? ReadonlyAccount<TAccountComputationAccount> : TAccountComputationAccount,
|
|
2417
|
+
TAccountClusterAccount extends string ? ReadonlyAccount<TAccountClusterAccount> : TAccountClusterAccount,
|
|
2418
|
+
TAccountInstructionsSysvar extends string ? ReadonlyAccount<TAccountInstructionsSysvar> : TAccountInstructionsSysvar,
|
|
2419
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2420
|
+
...TRemainingAccounts
|
|
2421
|
+
]>;
|
|
2422
|
+
type InitMarketSharesCallbackInstructionData = {
|
|
2423
|
+
discriminator: ReadonlyUint8Array;
|
|
2424
|
+
output: {
|
|
2425
|
+
__kind: 'Success';
|
|
2426
|
+
fields: readonly [InitMarketSharesOutput, Array<number>];
|
|
2427
|
+
} | {
|
|
2428
|
+
__kind: 'Failure';
|
|
2429
|
+
} | {
|
|
2430
|
+
__kind: 'MarkerForIdlBuildDoNotUseThis';
|
|
2431
|
+
fields: readonly [InitMarketSharesOutput];
|
|
2432
|
+
};
|
|
2433
|
+
};
|
|
2434
|
+
type InitMarketSharesCallbackInstructionDataArgs = {
|
|
2435
|
+
output: {
|
|
2436
|
+
__kind: 'Success';
|
|
2437
|
+
fields: readonly [InitMarketSharesOutputArgs, Array<number>];
|
|
2438
|
+
} | {
|
|
2439
|
+
__kind: 'Failure';
|
|
2440
|
+
} | {
|
|
2441
|
+
__kind: 'MarkerForIdlBuildDoNotUseThis';
|
|
2442
|
+
fields: readonly [InitMarketSharesOutputArgs];
|
|
2443
|
+
};
|
|
2444
|
+
};
|
|
2445
|
+
declare function getInitMarketSharesCallbackInstructionDataEncoder(): Encoder<InitMarketSharesCallbackInstructionDataArgs>;
|
|
2446
|
+
declare function getInitMarketSharesCallbackInstructionDataDecoder(): Decoder<InitMarketSharesCallbackInstructionData>;
|
|
2447
|
+
declare function getInitMarketSharesCallbackInstructionDataCodec(): Codec<InitMarketSharesCallbackInstructionDataArgs, InitMarketSharesCallbackInstructionData>;
|
|
2448
|
+
type InitMarketSharesCallbackInput<TAccountArciumProgram extends string = string, TAccountCompDefAccount extends string = string, TAccountMxeAccount extends string = string, TAccountComputationAccount extends string = string, TAccountClusterAccount extends string = string, TAccountInstructionsSysvar extends string = string, TAccountMarket extends string = string> = {
|
|
2449
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
2450
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
2451
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
2452
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
2453
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
2454
|
+
instructionsSysvar?: Address<TAccountInstructionsSysvar>;
|
|
2455
|
+
market: Address<TAccountMarket>;
|
|
2456
|
+
output: InitMarketSharesCallbackInstructionDataArgs['output'];
|
|
2457
|
+
};
|
|
2458
|
+
declare function getInitMarketSharesCallbackInstruction<TAccountArciumProgram extends string, TAccountCompDefAccount extends string, TAccountMxeAccount extends string, TAccountComputationAccount extends string, TAccountClusterAccount extends string, TAccountInstructionsSysvar extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitMarketSharesCallbackInput<TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountMarket>, config?: {
|
|
2459
|
+
programAddress?: TProgramAddress;
|
|
2460
|
+
}): InitMarketSharesCallbackInstruction<TProgramAddress, TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountMarket>;
|
|
2461
|
+
type ParsedInitMarketSharesCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2462
|
+
programAddress: Address<TProgram>;
|
|
2463
|
+
accounts: {
|
|
2464
|
+
arciumProgram: TAccountMetas[0];
|
|
2465
|
+
compDefAccount: TAccountMetas[1];
|
|
2466
|
+
mxeAccount: TAccountMetas[2];
|
|
2467
|
+
computationAccount: TAccountMetas[3];
|
|
2468
|
+
clusterAccount: TAccountMetas[4];
|
|
2469
|
+
instructionsSysvar: TAccountMetas[5];
|
|
2470
|
+
market: TAccountMetas[6];
|
|
2471
|
+
};
|
|
2472
|
+
data: InitMarketSharesCallbackInstructionData;
|
|
2473
|
+
};
|
|
2474
|
+
declare function parseInitMarketSharesCallbackInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitMarketSharesCallbackInstruction<TProgram, TAccountMetas>;
|
|
2475
|
+
|
|
2476
|
+
/**
|
|
2477
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2478
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2479
|
+
* to add features, then rerun Codama to update it.
|
|
2480
|
+
*
|
|
2481
|
+
* @see https://github.com/codama-idl/codama
|
|
2482
|
+
*/
|
|
2483
|
+
|
|
2484
|
+
declare const INIT_MARKET_SHARES_COMP_DEF_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2485
|
+
declare function getInitMarketSharesCompDefDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2486
|
+
type InitMarketSharesCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2487
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
2488
|
+
TAccountMxeAccount extends string ? WritableAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
2489
|
+
TAccountCompDefAccount extends string ? WritableAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
2490
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
2491
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2492
|
+
...TRemainingAccounts
|
|
2493
|
+
]>;
|
|
2494
|
+
type InitMarketSharesCompDefInstructionData = {
|
|
2495
|
+
discriminator: ReadonlyUint8Array;
|
|
2496
|
+
};
|
|
2497
|
+
type InitMarketSharesCompDefInstructionDataArgs = {};
|
|
2498
|
+
declare function getInitMarketSharesCompDefInstructionDataEncoder(): FixedSizeEncoder<InitMarketSharesCompDefInstructionDataArgs>;
|
|
2499
|
+
declare function getInitMarketSharesCompDefInstructionDataDecoder(): FixedSizeDecoder<InitMarketSharesCompDefInstructionData>;
|
|
2500
|
+
declare function getInitMarketSharesCompDefInstructionDataCodec(): FixedSizeCodec<InitMarketSharesCompDefInstructionDataArgs, InitMarketSharesCompDefInstructionData>;
|
|
2501
|
+
type InitMarketSharesCompDefInput<TAccountPayer extends string = string, TAccountMxeAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountArciumProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2502
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
2503
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
2504
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
2505
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
2506
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2507
|
+
};
|
|
2508
|
+
declare function getInitMarketSharesCompDefInstruction<TAccountPayer extends string, TAccountMxeAccount extends string, TAccountCompDefAccount extends string, TAccountArciumProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitMarketSharesCompDefInput<TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountArciumProgram, TAccountSystemProgram>, config?: {
|
|
2509
|
+
programAddress?: TProgramAddress;
|
|
2510
|
+
}): InitMarketSharesCompDefInstruction<TProgramAddress, TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountArciumProgram, TAccountSystemProgram>;
|
|
2511
|
+
type ParsedInitMarketSharesCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2512
|
+
programAddress: Address<TProgram>;
|
|
2513
|
+
accounts: {
|
|
2514
|
+
payer: TAccountMetas[0];
|
|
2515
|
+
mxeAccount: TAccountMetas[1];
|
|
2516
|
+
compDefAccount: TAccountMetas[2];
|
|
2517
|
+
arciumProgram: TAccountMetas[3];
|
|
2518
|
+
systemProgram: TAccountMetas[4];
|
|
2519
|
+
};
|
|
2520
|
+
data: InitMarketSharesCompDefInstructionData;
|
|
2521
|
+
};
|
|
2522
|
+
declare function parseInitMarketSharesCompDefInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitMarketSharesCompDefInstruction<TProgram, TAccountMetas>;
|
|
2523
|
+
|
|
2524
|
+
/**
|
|
2525
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2526
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2527
|
+
* to add features, then rerun Codama to update it.
|
|
2528
|
+
*
|
|
2529
|
+
* @see https://github.com/codama-idl/codama
|
|
2530
|
+
*/
|
|
2531
|
+
|
|
2532
|
+
declare const INIT_SHARE_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2533
|
+
declare function getInitShareAccountDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2534
|
+
type InitShareAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountShareAccount extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2535
|
+
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
2536
|
+
TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
|
|
2537
|
+
TAccountShareAccount extends string ? WritableAccount<TAccountShareAccount> : TAccountShareAccount,
|
|
2538
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2539
|
+
...TRemainingAccounts
|
|
2540
|
+
]>;
|
|
2541
|
+
type InitShareAccountInstructionData = {
|
|
2542
|
+
discriminator: ReadonlyUint8Array;
|
|
2543
|
+
stateNonce: bigint;
|
|
2544
|
+
};
|
|
2545
|
+
type InitShareAccountInstructionDataArgs = {
|
|
2546
|
+
stateNonce: number | bigint;
|
|
2547
|
+
};
|
|
2548
|
+
declare function getInitShareAccountInstructionDataEncoder(): FixedSizeEncoder<InitShareAccountInstructionDataArgs>;
|
|
2549
|
+
declare function getInitShareAccountInstructionDataDecoder(): FixedSizeDecoder<InitShareAccountInstructionData>;
|
|
2550
|
+
declare function getInitShareAccountInstructionDataCodec(): FixedSizeCodec<InitShareAccountInstructionDataArgs, InitShareAccountInstructionData>;
|
|
2551
|
+
type InitShareAccountAsyncInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountShareAccount extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2552
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
2553
|
+
market: Address<TAccountMarket>;
|
|
2554
|
+
shareAccount?: Address<TAccountShareAccount>;
|
|
2555
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2556
|
+
stateNonce: InitShareAccountInstructionDataArgs['stateNonce'];
|
|
2557
|
+
};
|
|
2558
|
+
declare function getInitShareAccountInstructionAsync<TAccountSigner extends string, TAccountMarket extends string, TAccountShareAccount extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitShareAccountAsyncInput<TAccountSigner, TAccountMarket, TAccountShareAccount, TAccountSystemProgram>, config?: {
|
|
2559
|
+
programAddress?: TProgramAddress;
|
|
2560
|
+
}): Promise<InitShareAccountInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountShareAccount, TAccountSystemProgram>>;
|
|
2561
|
+
type InitShareAccountInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountShareAccount extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2562
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
2563
|
+
market: Address<TAccountMarket>;
|
|
2564
|
+
shareAccount: Address<TAccountShareAccount>;
|
|
2565
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2566
|
+
stateNonce: InitShareAccountInstructionDataArgs['stateNonce'];
|
|
2567
|
+
};
|
|
2568
|
+
declare function getInitShareAccountInstruction<TAccountSigner extends string, TAccountMarket extends string, TAccountShareAccount extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitShareAccountInput<TAccountSigner, TAccountMarket, TAccountShareAccount, TAccountSystemProgram>, config?: {
|
|
2569
|
+
programAddress?: TProgramAddress;
|
|
2570
|
+
}): InitShareAccountInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountShareAccount, TAccountSystemProgram>;
|
|
2571
|
+
type ParsedInitShareAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2572
|
+
programAddress: Address<TProgram>;
|
|
2573
|
+
accounts: {
|
|
2574
|
+
signer: TAccountMetas[0];
|
|
2575
|
+
market: TAccountMetas[1];
|
|
2576
|
+
shareAccount: TAccountMetas[2];
|
|
2577
|
+
systemProgram: TAccountMetas[3];
|
|
2578
|
+
};
|
|
2579
|
+
data: InitShareAccountInstructionData;
|
|
2580
|
+
};
|
|
2581
|
+
declare function parseInitShareAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitShareAccountInstruction<TProgram, TAccountMetas>;
|
|
2582
|
+
|
|
2583
|
+
/**
|
|
2584
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2585
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2586
|
+
* to add features, then rerun Codama to update it.
|
|
2587
|
+
*
|
|
2588
|
+
* @see https://github.com/codama-idl/codama
|
|
2589
|
+
*/
|
|
2590
|
+
|
|
2591
|
+
declare const INIT_VOTE_TOKEN_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2592
|
+
declare function getInitVoteTokenAccountDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2593
|
+
type InitVoteTokenAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountVoteTokenAccount extends string | AccountMeta<string> = string, TAccountVoteTokenAta extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountSignPdaAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountMempoolAccount extends string | AccountMeta<string> = string, TAccountExecutingPool extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountPoolAccount extends string | AccountMeta<string> = 'G2sRWJvi3xoyh5k2gY49eG9L8YhAEWQPtNb1zb1GXTtC', TAccountClockAccount extends string | AccountMeta<string> = '7EbMUTLo5DjdzbN7s8BXeZwXzEwNQb1hScfRvWg8a6ot', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2594
|
+
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
2595
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
2596
|
+
TAccountVoteTokenAccount extends string ? WritableAccount<TAccountVoteTokenAccount> : TAccountVoteTokenAccount,
|
|
2597
|
+
TAccountVoteTokenAta extends string ? WritableAccount<TAccountVoteTokenAta> : TAccountVoteTokenAta,
|
|
2598
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2599
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
2600
|
+
TAccountSignPdaAccount extends string ? WritableAccount<TAccountSignPdaAccount> : TAccountSignPdaAccount,
|
|
2601
|
+
TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
2602
|
+
TAccountMempoolAccount extends string ? WritableAccount<TAccountMempoolAccount> : TAccountMempoolAccount,
|
|
2603
|
+
TAccountExecutingPool extends string ? WritableAccount<TAccountExecutingPool> : TAccountExecutingPool,
|
|
2604
|
+
TAccountComputationAccount extends string ? WritableAccount<TAccountComputationAccount> : TAccountComputationAccount,
|
|
2605
|
+
TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
2606
|
+
TAccountClusterAccount extends string ? WritableAccount<TAccountClusterAccount> : TAccountClusterAccount,
|
|
2607
|
+
TAccountPoolAccount extends string ? WritableAccount<TAccountPoolAccount> : TAccountPoolAccount,
|
|
2608
|
+
TAccountClockAccount extends string ? WritableAccount<TAccountClockAccount> : TAccountClockAccount,
|
|
2609
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2610
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
2611
|
+
...TRemainingAccounts
|
|
2612
|
+
]>;
|
|
2613
|
+
type InitVoteTokenAccountInstructionData = {
|
|
2614
|
+
discriminator: ReadonlyUint8Array;
|
|
2615
|
+
computationOffset: bigint;
|
|
2616
|
+
userPubkey: Array<number>;
|
|
2617
|
+
nonce: bigint;
|
|
2618
|
+
};
|
|
2619
|
+
type InitVoteTokenAccountInstructionDataArgs = {
|
|
2620
|
+
computationOffset: number | bigint;
|
|
2621
|
+
userPubkey: Array<number>;
|
|
2622
|
+
nonce: number | bigint;
|
|
2623
|
+
};
|
|
2624
|
+
declare function getInitVoteTokenAccountInstructionDataEncoder(): FixedSizeEncoder<InitVoteTokenAccountInstructionDataArgs>;
|
|
2625
|
+
declare function getInitVoteTokenAccountInstructionDataDecoder(): FixedSizeDecoder<InitVoteTokenAccountInstructionData>;
|
|
2626
|
+
declare function getInitVoteTokenAccountInstructionDataCodec(): FixedSizeCodec<InitVoteTokenAccountInstructionDataArgs, InitVoteTokenAccountInstructionData>;
|
|
2627
|
+
type InitVoteTokenAccountAsyncInput<TAccountSigner extends string = string, TAccountTokenMint extends string = string, TAccountVoteTokenAccount extends string = string, TAccountVoteTokenAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSignPdaAccount extends string = string, TAccountMxeAccount extends string = string, TAccountMempoolAccount extends string = string, TAccountExecutingPool extends string = string, TAccountComputationAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountClusterAccount extends string = string, TAccountPoolAccount extends string = string, TAccountClockAccount extends string = string, TAccountSystemProgram extends string = string, TAccountArciumProgram extends string = string> = {
|
|
2628
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
2629
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2630
|
+
voteTokenAccount?: Address<TAccountVoteTokenAccount>;
|
|
2631
|
+
/** ATA owned by the VTA PDA, holding the actual SPL tokens */
|
|
2632
|
+
voteTokenAta?: Address<TAccountVoteTokenAta>;
|
|
2633
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2634
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2635
|
+
signPdaAccount?: Address<TAccountSignPdaAccount>;
|
|
2636
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
2637
|
+
mempoolAccount: Address<TAccountMempoolAccount>;
|
|
2638
|
+
executingPool: Address<TAccountExecutingPool>;
|
|
2639
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
2640
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
2641
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
2642
|
+
poolAccount?: Address<TAccountPoolAccount>;
|
|
2643
|
+
clockAccount?: Address<TAccountClockAccount>;
|
|
2644
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2645
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
2646
|
+
computationOffset: InitVoteTokenAccountInstructionDataArgs['computationOffset'];
|
|
2647
|
+
userPubkey: InitVoteTokenAccountInstructionDataArgs['userPubkey'];
|
|
2648
|
+
nonce: InitVoteTokenAccountInstructionDataArgs['nonce'];
|
|
2649
|
+
};
|
|
2650
|
+
declare function getInitVoteTokenAccountInstructionAsync<TAccountSigner extends string, TAccountTokenMint extends string, TAccountVoteTokenAccount extends string, TAccountVoteTokenAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitVoteTokenAccountAsyncInput<TAccountSigner, TAccountTokenMint, TAccountVoteTokenAccount, TAccountVoteTokenAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
|
|
2651
|
+
programAddress?: TProgramAddress;
|
|
2652
|
+
}): Promise<InitVoteTokenAccountInstruction<TProgramAddress, TAccountSigner, TAccountTokenMint, TAccountVoteTokenAccount, TAccountVoteTokenAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>>;
|
|
2653
|
+
type InitVoteTokenAccountInput<TAccountSigner extends string = string, TAccountTokenMint extends string = string, TAccountVoteTokenAccount extends string = string, TAccountVoteTokenAta extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSignPdaAccount extends string = string, TAccountMxeAccount extends string = string, TAccountMempoolAccount extends string = string, TAccountExecutingPool extends string = string, TAccountComputationAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountClusterAccount extends string = string, TAccountPoolAccount extends string = string, TAccountClockAccount extends string = string, TAccountSystemProgram extends string = string, TAccountArciumProgram extends string = string> = {
|
|
2654
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
2655
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2656
|
+
voteTokenAccount: Address<TAccountVoteTokenAccount>;
|
|
2657
|
+
/** ATA owned by the VTA PDA, holding the actual SPL tokens */
|
|
2658
|
+
voteTokenAta: Address<TAccountVoteTokenAta>;
|
|
2659
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2660
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2661
|
+
signPdaAccount: Address<TAccountSignPdaAccount>;
|
|
2662
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
2663
|
+
mempoolAccount: Address<TAccountMempoolAccount>;
|
|
2664
|
+
executingPool: Address<TAccountExecutingPool>;
|
|
2665
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
2666
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
2667
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
2668
|
+
poolAccount?: Address<TAccountPoolAccount>;
|
|
2669
|
+
clockAccount?: Address<TAccountClockAccount>;
|
|
2670
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2671
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
2672
|
+
computationOffset: InitVoteTokenAccountInstructionDataArgs['computationOffset'];
|
|
2673
|
+
userPubkey: InitVoteTokenAccountInstructionDataArgs['userPubkey'];
|
|
2674
|
+
nonce: InitVoteTokenAccountInstructionDataArgs['nonce'];
|
|
2675
|
+
};
|
|
2676
|
+
declare function getInitVoteTokenAccountInstruction<TAccountSigner extends string, TAccountTokenMint extends string, TAccountVoteTokenAccount extends string, TAccountVoteTokenAta extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitVoteTokenAccountInput<TAccountSigner, TAccountTokenMint, TAccountVoteTokenAccount, TAccountVoteTokenAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
|
|
2677
|
+
programAddress?: TProgramAddress;
|
|
2678
|
+
}): InitVoteTokenAccountInstruction<TProgramAddress, TAccountSigner, TAccountTokenMint, TAccountVoteTokenAccount, TAccountVoteTokenAta, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>;
|
|
2679
|
+
type ParsedInitVoteTokenAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2680
|
+
programAddress: Address<TProgram>;
|
|
2681
|
+
accounts: {
|
|
2682
|
+
signer: TAccountMetas[0];
|
|
2683
|
+
tokenMint: TAccountMetas[1];
|
|
2684
|
+
voteTokenAccount: TAccountMetas[2];
|
|
2685
|
+
/** ATA owned by the VTA PDA, holding the actual SPL tokens */
|
|
2686
|
+
voteTokenAta: TAccountMetas[3];
|
|
2687
|
+
tokenProgram: TAccountMetas[4];
|
|
2688
|
+
associatedTokenProgram: TAccountMetas[5];
|
|
2689
|
+
signPdaAccount: TAccountMetas[6];
|
|
2690
|
+
mxeAccount: TAccountMetas[7];
|
|
2691
|
+
mempoolAccount: TAccountMetas[8];
|
|
2692
|
+
executingPool: TAccountMetas[9];
|
|
2693
|
+
computationAccount: TAccountMetas[10];
|
|
2694
|
+
compDefAccount: TAccountMetas[11];
|
|
2695
|
+
clusterAccount: TAccountMetas[12];
|
|
2696
|
+
poolAccount: TAccountMetas[13];
|
|
2697
|
+
clockAccount: TAccountMetas[14];
|
|
2698
|
+
systemProgram: TAccountMetas[15];
|
|
2699
|
+
arciumProgram: TAccountMetas[16];
|
|
2700
|
+
};
|
|
2701
|
+
data: InitVoteTokenAccountInstructionData;
|
|
2702
|
+
};
|
|
2703
|
+
declare function parseInitVoteTokenAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitVoteTokenAccountInstruction<TProgram, TAccountMetas>;
|
|
2704
|
+
|
|
2705
|
+
/**
|
|
2706
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2707
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2708
|
+
* to add features, then rerun Codama to update it.
|
|
2709
|
+
*
|
|
2710
|
+
* @see https://github.com/codama-idl/codama
|
|
2711
|
+
*/
|
|
2712
|
+
|
|
2713
|
+
declare const INIT_VOTE_TOKEN_ACCOUNT_CALLBACK_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2714
|
+
declare function getInitVoteTokenAccountCallbackDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2715
|
+
type InitVoteTokenAccountCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountInstructionsSysvar extends string | AccountMeta<string> = 'Sysvar1nstructions1111111111111111111111111', TAccountVoteToken extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2716
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
2717
|
+
TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
2718
|
+
TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
2719
|
+
TAccountComputationAccount extends string ? ReadonlyAccount<TAccountComputationAccount> : TAccountComputationAccount,
|
|
2720
|
+
TAccountClusterAccount extends string ? ReadonlyAccount<TAccountClusterAccount> : TAccountClusterAccount,
|
|
2721
|
+
TAccountInstructionsSysvar extends string ? ReadonlyAccount<TAccountInstructionsSysvar> : TAccountInstructionsSysvar,
|
|
2722
|
+
TAccountVoteToken extends string ? WritableAccount<TAccountVoteToken> : TAccountVoteToken,
|
|
2723
|
+
...TRemainingAccounts
|
|
2724
|
+
]>;
|
|
2725
|
+
type InitVoteTokenAccountCallbackInstructionData = {
|
|
2726
|
+
discriminator: ReadonlyUint8Array;
|
|
2727
|
+
output: {
|
|
2728
|
+
__kind: 'Success';
|
|
2729
|
+
fields: readonly [InitVoteTokenAccountOutput, Array<number>];
|
|
2730
|
+
} | {
|
|
2731
|
+
__kind: 'Failure';
|
|
2732
|
+
} | {
|
|
2733
|
+
__kind: 'MarkerForIdlBuildDoNotUseThis';
|
|
2734
|
+
fields: readonly [InitVoteTokenAccountOutput];
|
|
2735
|
+
};
|
|
2736
|
+
};
|
|
2737
|
+
type InitVoteTokenAccountCallbackInstructionDataArgs = {
|
|
2738
|
+
output: {
|
|
2739
|
+
__kind: 'Success';
|
|
2740
|
+
fields: readonly [InitVoteTokenAccountOutputArgs, Array<number>];
|
|
2741
|
+
} | {
|
|
2742
|
+
__kind: 'Failure';
|
|
2743
|
+
} | {
|
|
2744
|
+
__kind: 'MarkerForIdlBuildDoNotUseThis';
|
|
2745
|
+
fields: readonly [InitVoteTokenAccountOutputArgs];
|
|
2746
|
+
};
|
|
2747
|
+
};
|
|
2748
|
+
declare function getInitVoteTokenAccountCallbackInstructionDataEncoder(): Encoder<InitVoteTokenAccountCallbackInstructionDataArgs>;
|
|
2749
|
+
declare function getInitVoteTokenAccountCallbackInstructionDataDecoder(): Decoder<InitVoteTokenAccountCallbackInstructionData>;
|
|
2750
|
+
declare function getInitVoteTokenAccountCallbackInstructionDataCodec(): Codec<InitVoteTokenAccountCallbackInstructionDataArgs, InitVoteTokenAccountCallbackInstructionData>;
|
|
2751
|
+
type InitVoteTokenAccountCallbackInput<TAccountArciumProgram extends string = string, TAccountCompDefAccount extends string = string, TAccountMxeAccount extends string = string, TAccountComputationAccount extends string = string, TAccountClusterAccount extends string = string, TAccountInstructionsSysvar extends string = string, TAccountVoteToken extends string = string> = {
|
|
2752
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
2753
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
2754
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
2755
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
2756
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
2757
|
+
instructionsSysvar?: Address<TAccountInstructionsSysvar>;
|
|
2758
|
+
voteToken: Address<TAccountVoteToken>;
|
|
2759
|
+
output: InitVoteTokenAccountCallbackInstructionDataArgs['output'];
|
|
2760
|
+
};
|
|
2761
|
+
declare function getInitVoteTokenAccountCallbackInstruction<TAccountArciumProgram extends string, TAccountCompDefAccount extends string, TAccountMxeAccount extends string, TAccountComputationAccount extends string, TAccountClusterAccount extends string, TAccountInstructionsSysvar extends string, TAccountVoteToken extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitVoteTokenAccountCallbackInput<TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountVoteToken>, config?: {
|
|
2762
|
+
programAddress?: TProgramAddress;
|
|
2763
|
+
}): InitVoteTokenAccountCallbackInstruction<TProgramAddress, TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountVoteToken>;
|
|
2764
|
+
type ParsedInitVoteTokenAccountCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2765
|
+
programAddress: Address<TProgram>;
|
|
2766
|
+
accounts: {
|
|
2767
|
+
arciumProgram: TAccountMetas[0];
|
|
2768
|
+
compDefAccount: TAccountMetas[1];
|
|
2769
|
+
mxeAccount: TAccountMetas[2];
|
|
2770
|
+
computationAccount: TAccountMetas[3];
|
|
2771
|
+
clusterAccount: TAccountMetas[4];
|
|
2772
|
+
instructionsSysvar: TAccountMetas[5];
|
|
2773
|
+
voteToken: TAccountMetas[6];
|
|
2774
|
+
};
|
|
2775
|
+
data: InitVoteTokenAccountCallbackInstructionData;
|
|
2776
|
+
};
|
|
2777
|
+
declare function parseInitVoteTokenAccountCallbackInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitVoteTokenAccountCallbackInstruction<TProgram, TAccountMetas>;
|
|
2778
|
+
|
|
2779
|
+
/**
|
|
2780
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2781
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2782
|
+
* to add features, then rerun Codama to update it.
|
|
2783
|
+
*
|
|
2784
|
+
* @see https://github.com/codama-idl/codama
|
|
2785
|
+
*/
|
|
2786
|
+
|
|
2787
|
+
declare const INIT_VOTE_TOKEN_ACCOUNT_COMP_DEF_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2788
|
+
declare function getInitVoteTokenAccountCompDefDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2789
|
+
type InitVoteTokenAccountCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2790
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
2791
|
+
TAccountMxeAccount extends string ? WritableAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
2792
|
+
TAccountCompDefAccount extends string ? WritableAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
2793
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
2794
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2795
|
+
...TRemainingAccounts
|
|
2796
|
+
]>;
|
|
2797
|
+
type InitVoteTokenAccountCompDefInstructionData = {
|
|
2798
|
+
discriminator: ReadonlyUint8Array;
|
|
2799
|
+
};
|
|
2800
|
+
type InitVoteTokenAccountCompDefInstructionDataArgs = {};
|
|
2801
|
+
declare function getInitVoteTokenAccountCompDefInstructionDataEncoder(): FixedSizeEncoder<InitVoteTokenAccountCompDefInstructionDataArgs>;
|
|
2802
|
+
declare function getInitVoteTokenAccountCompDefInstructionDataDecoder(): FixedSizeDecoder<InitVoteTokenAccountCompDefInstructionData>;
|
|
2803
|
+
declare function getInitVoteTokenAccountCompDefInstructionDataCodec(): FixedSizeCodec<InitVoteTokenAccountCompDefInstructionDataArgs, InitVoteTokenAccountCompDefInstructionData>;
|
|
2804
|
+
type InitVoteTokenAccountCompDefInput<TAccountPayer extends string = string, TAccountMxeAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountArciumProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2805
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
2806
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
2807
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
2808
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
2809
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2810
|
+
};
|
|
2811
|
+
declare function getInitVoteTokenAccountCompDefInstruction<TAccountPayer extends string, TAccountMxeAccount extends string, TAccountCompDefAccount extends string, TAccountArciumProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitVoteTokenAccountCompDefInput<TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountArciumProgram, TAccountSystemProgram>, config?: {
|
|
2812
|
+
programAddress?: TProgramAddress;
|
|
2813
|
+
}): InitVoteTokenAccountCompDefInstruction<TProgramAddress, TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountArciumProgram, TAccountSystemProgram>;
|
|
2814
|
+
type ParsedInitVoteTokenAccountCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2815
|
+
programAddress: Address<TProgram>;
|
|
2816
|
+
accounts: {
|
|
2817
|
+
payer: TAccountMetas[0];
|
|
2818
|
+
mxeAccount: TAccountMetas[1];
|
|
2819
|
+
compDefAccount: TAccountMetas[2];
|
|
2820
|
+
arciumProgram: TAccountMetas[3];
|
|
2821
|
+
systemProgram: TAccountMetas[4];
|
|
2822
|
+
};
|
|
2823
|
+
data: InitVoteTokenAccountCompDefInstructionData;
|
|
2824
|
+
};
|
|
2825
|
+
declare function parseInitVoteTokenAccountCompDefInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitVoteTokenAccountCompDefInstruction<TProgram, TAccountMetas>;
|
|
2826
|
+
|
|
2827
|
+
/**
|
|
2828
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2829
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2830
|
+
* to add features, then rerun Codama to update it.
|
|
2831
|
+
*
|
|
2832
|
+
* @see https://github.com/codama-idl/codama
|
|
2833
|
+
*/
|
|
2834
|
+
|
|
2835
|
+
declare const MINT_VOTE_TOKENS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2836
|
+
declare function getMintVoteTokensDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2837
|
+
type MintVoteTokensInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountVoteTokenAccount extends string | AccountMeta<string> = string, TAccountSignerTokenAccount extends string | AccountMeta<string> = string, TAccountVoteTokenAta extends string | AccountMeta<string> = string, TAccountSignPdaAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountMempoolAccount extends string | AccountMeta<string> = string, TAccountExecutingPool extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountPoolAccount extends string | AccountMeta<string> = 'G2sRWJvi3xoyh5k2gY49eG9L8YhAEWQPtNb1zb1GXTtC', TAccountClockAccount extends string | AccountMeta<string> = '7EbMUTLo5DjdzbN7s8BXeZwXzEwNQb1hScfRvWg8a6ot', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2838
|
+
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
2839
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
2840
|
+
TAccountVoteTokenAccount extends string ? WritableAccount<TAccountVoteTokenAccount> : TAccountVoteTokenAccount,
|
|
2841
|
+
TAccountSignerTokenAccount extends string ? WritableAccount<TAccountSignerTokenAccount> : TAccountSignerTokenAccount,
|
|
2842
|
+
TAccountVoteTokenAta extends string ? WritableAccount<TAccountVoteTokenAta> : TAccountVoteTokenAta,
|
|
2843
|
+
TAccountSignPdaAccount extends string ? WritableAccount<TAccountSignPdaAccount> : TAccountSignPdaAccount,
|
|
2844
|
+
TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
2845
|
+
TAccountMempoolAccount extends string ? WritableAccount<TAccountMempoolAccount> : TAccountMempoolAccount,
|
|
2846
|
+
TAccountExecutingPool extends string ? WritableAccount<TAccountExecutingPool> : TAccountExecutingPool,
|
|
2847
|
+
TAccountComputationAccount extends string ? WritableAccount<TAccountComputationAccount> : TAccountComputationAccount,
|
|
2848
|
+
TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
2849
|
+
TAccountClusterAccount extends string ? WritableAccount<TAccountClusterAccount> : TAccountClusterAccount,
|
|
2850
|
+
TAccountPoolAccount extends string ? WritableAccount<TAccountPoolAccount> : TAccountPoolAccount,
|
|
2851
|
+
TAccountClockAccount extends string ? WritableAccount<TAccountClockAccount> : TAccountClockAccount,
|
|
2852
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2853
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2854
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
2855
|
+
...TRemainingAccounts
|
|
2856
|
+
]>;
|
|
2857
|
+
type MintVoteTokensInstructionData = {
|
|
2858
|
+
discriminator: ReadonlyUint8Array;
|
|
2859
|
+
computationOffset: bigint;
|
|
2860
|
+
userPubkey: Array<number>;
|
|
2861
|
+
amount: bigint;
|
|
2862
|
+
};
|
|
2863
|
+
type MintVoteTokensInstructionDataArgs = {
|
|
2864
|
+
computationOffset: number | bigint;
|
|
2865
|
+
userPubkey: Array<number>;
|
|
2866
|
+
amount: number | bigint;
|
|
2867
|
+
};
|
|
2868
|
+
declare function getMintVoteTokensInstructionDataEncoder(): FixedSizeEncoder<MintVoteTokensInstructionDataArgs>;
|
|
2869
|
+
declare function getMintVoteTokensInstructionDataDecoder(): FixedSizeDecoder<MintVoteTokensInstructionData>;
|
|
2870
|
+
declare function getMintVoteTokensInstructionDataCodec(): FixedSizeCodec<MintVoteTokensInstructionDataArgs, MintVoteTokensInstructionData>;
|
|
2871
|
+
type MintVoteTokensAsyncInput<TAccountSigner extends string = string, TAccountTokenMint extends string = string, TAccountVoteTokenAccount extends string = string, TAccountSignerTokenAccount extends string = string, TAccountVoteTokenAta extends string = string, TAccountSignPdaAccount extends string = string, TAccountMxeAccount extends string = string, TAccountMempoolAccount extends string = string, TAccountExecutingPool extends string = string, TAccountComputationAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountClusterAccount extends string = string, TAccountPoolAccount extends string = string, TAccountClockAccount extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountArciumProgram extends string = string> = {
|
|
2872
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
2873
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2874
|
+
voteTokenAccount?: Address<TAccountVoteTokenAccount>;
|
|
2875
|
+
/** The signer's token account (source of SPL tokens) */
|
|
2876
|
+
signerTokenAccount: Address<TAccountSignerTokenAccount>;
|
|
2877
|
+
/** ATA owned by the VTA PDA (destination of SPL tokens) */
|
|
2878
|
+
voteTokenAta?: Address<TAccountVoteTokenAta>;
|
|
2879
|
+
signPdaAccount?: Address<TAccountSignPdaAccount>;
|
|
2880
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
2881
|
+
mempoolAccount: Address<TAccountMempoolAccount>;
|
|
2882
|
+
executingPool: Address<TAccountExecutingPool>;
|
|
2883
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
2884
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
2885
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
2886
|
+
poolAccount?: Address<TAccountPoolAccount>;
|
|
2887
|
+
clockAccount?: Address<TAccountClockAccount>;
|
|
2888
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2889
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2890
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
2891
|
+
computationOffset: MintVoteTokensInstructionDataArgs['computationOffset'];
|
|
2892
|
+
userPubkey: MintVoteTokensInstructionDataArgs['userPubkey'];
|
|
2893
|
+
amount: MintVoteTokensInstructionDataArgs['amount'];
|
|
2894
|
+
};
|
|
2895
|
+
declare function getMintVoteTokensInstructionAsync<TAccountSigner extends string, TAccountTokenMint extends string, TAccountVoteTokenAccount extends string, TAccountSignerTokenAccount extends string, TAccountVoteTokenAta extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: MintVoteTokensAsyncInput<TAccountSigner, TAccountTokenMint, TAccountVoteTokenAccount, TAccountSignerTokenAccount, TAccountVoteTokenAta, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountTokenProgram, TAccountArciumProgram>, config?: {
|
|
2896
|
+
programAddress?: TProgramAddress;
|
|
2897
|
+
}): Promise<MintVoteTokensInstruction<TProgramAddress, TAccountSigner, TAccountTokenMint, TAccountVoteTokenAccount, TAccountSignerTokenAccount, TAccountVoteTokenAta, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountTokenProgram, TAccountArciumProgram>>;
|
|
2898
|
+
type MintVoteTokensInput<TAccountSigner extends string = string, TAccountTokenMint extends string = string, TAccountVoteTokenAccount extends string = string, TAccountSignerTokenAccount extends string = string, TAccountVoteTokenAta extends string = string, TAccountSignPdaAccount extends string = string, TAccountMxeAccount extends string = string, TAccountMempoolAccount extends string = string, TAccountExecutingPool extends string = string, TAccountComputationAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountClusterAccount extends string = string, TAccountPoolAccount extends string = string, TAccountClockAccount extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountArciumProgram extends string = string> = {
|
|
2899
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
2900
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2901
|
+
voteTokenAccount: Address<TAccountVoteTokenAccount>;
|
|
2902
|
+
/** The signer's token account (source of SPL tokens) */
|
|
2903
|
+
signerTokenAccount: Address<TAccountSignerTokenAccount>;
|
|
2904
|
+
/** ATA owned by the VTA PDA (destination of SPL tokens) */
|
|
2905
|
+
voteTokenAta: Address<TAccountVoteTokenAta>;
|
|
2906
|
+
signPdaAccount: Address<TAccountSignPdaAccount>;
|
|
2907
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
2908
|
+
mempoolAccount: Address<TAccountMempoolAccount>;
|
|
2909
|
+
executingPool: Address<TAccountExecutingPool>;
|
|
2910
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
2911
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
2912
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
2913
|
+
poolAccount?: Address<TAccountPoolAccount>;
|
|
2914
|
+
clockAccount?: Address<TAccountClockAccount>;
|
|
2915
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2916
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2917
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
2918
|
+
computationOffset: MintVoteTokensInstructionDataArgs['computationOffset'];
|
|
2919
|
+
userPubkey: MintVoteTokensInstructionDataArgs['userPubkey'];
|
|
2920
|
+
amount: MintVoteTokensInstructionDataArgs['amount'];
|
|
2921
|
+
};
|
|
2922
|
+
declare function getMintVoteTokensInstruction<TAccountSigner extends string, TAccountTokenMint extends string, TAccountVoteTokenAccount extends string, TAccountSignerTokenAccount extends string, TAccountVoteTokenAta extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: MintVoteTokensInput<TAccountSigner, TAccountTokenMint, TAccountVoteTokenAccount, TAccountSignerTokenAccount, TAccountVoteTokenAta, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountTokenProgram, TAccountArciumProgram>, config?: {
|
|
2923
|
+
programAddress?: TProgramAddress;
|
|
2924
|
+
}): MintVoteTokensInstruction<TProgramAddress, TAccountSigner, TAccountTokenMint, TAccountVoteTokenAccount, TAccountSignerTokenAccount, TAccountVoteTokenAta, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountTokenProgram, TAccountArciumProgram>;
|
|
2925
|
+
type ParsedMintVoteTokensInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2926
|
+
programAddress: Address<TProgram>;
|
|
2927
|
+
accounts: {
|
|
2928
|
+
signer: TAccountMetas[0];
|
|
2929
|
+
tokenMint: TAccountMetas[1];
|
|
2930
|
+
voteTokenAccount: TAccountMetas[2];
|
|
2931
|
+
/** The signer's token account (source of SPL tokens) */
|
|
2932
|
+
signerTokenAccount: TAccountMetas[3];
|
|
2933
|
+
/** ATA owned by the VTA PDA (destination of SPL tokens) */
|
|
2934
|
+
voteTokenAta: TAccountMetas[4];
|
|
2935
|
+
signPdaAccount: TAccountMetas[5];
|
|
2936
|
+
mxeAccount: TAccountMetas[6];
|
|
2937
|
+
mempoolAccount: TAccountMetas[7];
|
|
2938
|
+
executingPool: TAccountMetas[8];
|
|
2939
|
+
computationAccount: TAccountMetas[9];
|
|
2940
|
+
compDefAccount: TAccountMetas[10];
|
|
2941
|
+
clusterAccount: TAccountMetas[11];
|
|
2942
|
+
poolAccount: TAccountMetas[12];
|
|
2943
|
+
clockAccount: TAccountMetas[13];
|
|
2944
|
+
systemProgram: TAccountMetas[14];
|
|
2945
|
+
tokenProgram: TAccountMetas[15];
|
|
2946
|
+
arciumProgram: TAccountMetas[16];
|
|
2947
|
+
};
|
|
2948
|
+
data: MintVoteTokensInstructionData;
|
|
2949
|
+
};
|
|
2950
|
+
declare function parseMintVoteTokensInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedMintVoteTokensInstruction<TProgram, TAccountMetas>;
|
|
2951
|
+
|
|
2952
|
+
/**
|
|
2953
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
2954
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2955
|
+
* to add features, then rerun Codama to update it.
|
|
2956
|
+
*
|
|
2957
|
+
* @see https://github.com/codama-idl/codama
|
|
2958
|
+
*/
|
|
2959
|
+
|
|
2960
|
+
declare const OPEN_MARKET_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2961
|
+
declare function getOpenMarketDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2962
|
+
type OpenMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountCreator extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2963
|
+
TAccountCreator extends string ? ReadonlySignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator,
|
|
2964
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2965
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
2966
|
+
TAccountMarketTokenAta extends string ? ReadonlyAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
2967
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2968
|
+
...TRemainingAccounts
|
|
2969
|
+
]>;
|
|
2970
|
+
type OpenMarketInstructionData = {
|
|
2971
|
+
discriminator: ReadonlyUint8Array;
|
|
2972
|
+
openTimestamp: bigint;
|
|
2973
|
+
};
|
|
2974
|
+
type OpenMarketInstructionDataArgs = {
|
|
2975
|
+
openTimestamp: number | bigint;
|
|
2976
|
+
};
|
|
2977
|
+
declare function getOpenMarketInstructionDataEncoder(): FixedSizeEncoder<OpenMarketInstructionDataArgs>;
|
|
2978
|
+
declare function getOpenMarketInstructionDataDecoder(): FixedSizeDecoder<OpenMarketInstructionData>;
|
|
2979
|
+
declare function getOpenMarketInstructionDataCodec(): FixedSizeCodec<OpenMarketInstructionDataArgs, OpenMarketInstructionData>;
|
|
2980
|
+
type OpenMarketAsyncInput<TAccountCreator extends string = string, TAccountMarket extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string> = {
|
|
2981
|
+
creator: TransactionSigner<TAccountCreator>;
|
|
2982
|
+
market: Address<TAccountMarket>;
|
|
2983
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2984
|
+
/** Market's ATA holding reward tokens */
|
|
2985
|
+
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
2986
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2987
|
+
openTimestamp: OpenMarketInstructionDataArgs['openTimestamp'];
|
|
2988
|
+
};
|
|
2989
|
+
declare function getOpenMarketInstructionAsync<TAccountCreator extends string, TAccountMarket extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: OpenMarketAsyncInput<TAccountCreator, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>, config?: {
|
|
2990
|
+
programAddress?: TProgramAddress;
|
|
2991
|
+
}): Promise<OpenMarketInstruction<TProgramAddress, TAccountCreator, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>>;
|
|
2992
|
+
type OpenMarketInput<TAccountCreator extends string = string, TAccountMarket extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string> = {
|
|
2993
|
+
creator: TransactionSigner<TAccountCreator>;
|
|
2994
|
+
market: Address<TAccountMarket>;
|
|
2995
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2996
|
+
/** Market's ATA holding reward tokens */
|
|
2997
|
+
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
2998
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2999
|
+
openTimestamp: OpenMarketInstructionDataArgs['openTimestamp'];
|
|
3000
|
+
};
|
|
3001
|
+
declare function getOpenMarketInstruction<TAccountCreator extends string, TAccountMarket extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: OpenMarketInput<TAccountCreator, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>, config?: {
|
|
3002
|
+
programAddress?: TProgramAddress;
|
|
3003
|
+
}): OpenMarketInstruction<TProgramAddress, TAccountCreator, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountTokenProgram>;
|
|
3004
|
+
type ParsedOpenMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3005
|
+
programAddress: Address<TProgram>;
|
|
3006
|
+
accounts: {
|
|
3007
|
+
creator: TAccountMetas[0];
|
|
3008
|
+
market: TAccountMetas[1];
|
|
3009
|
+
tokenMint: TAccountMetas[2];
|
|
3010
|
+
/** Market's ATA holding reward tokens */
|
|
3011
|
+
marketTokenAta: TAccountMetas[3];
|
|
3012
|
+
tokenProgram: TAccountMetas[4];
|
|
3013
|
+
};
|
|
3014
|
+
data: OpenMarketInstructionData;
|
|
3015
|
+
};
|
|
3016
|
+
declare function parseOpenMarketInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedOpenMarketInstruction<TProgram, TAccountMetas>;
|
|
3017
|
+
|
|
3018
|
+
/**
|
|
3019
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3020
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3021
|
+
* to add features, then rerun Codama to update it.
|
|
3022
|
+
*
|
|
3023
|
+
* @see https://github.com/codama-idl/codama
|
|
3024
|
+
*/
|
|
3025
|
+
|
|
3026
|
+
declare const REVEAL_SHARES_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3027
|
+
declare function getRevealSharesDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3028
|
+
type RevealSharesInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountShareAccount extends string | AccountMeta<string> = string, TAccountUserVta extends string | AccountMeta<string> = string, TAccountSignPdaAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountMempoolAccount extends string | AccountMeta<string> = string, TAccountExecutingPool extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountPoolAccount extends string | AccountMeta<string> = 'G2sRWJvi3xoyh5k2gY49eG9L8YhAEWQPtNb1zb1GXTtC', TAccountClockAccount extends string | AccountMeta<string> = '7EbMUTLo5DjdzbN7s8BXeZwXzEwNQb1hScfRvWg8a6ot', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3029
|
+
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
3030
|
+
TAccountOwner extends string ? ReadonlyAccount<TAccountOwner> : TAccountOwner,
|
|
3031
|
+
TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
|
|
3032
|
+
TAccountShareAccount extends string ? WritableAccount<TAccountShareAccount> : TAccountShareAccount,
|
|
3033
|
+
TAccountUserVta extends string ? WritableAccount<TAccountUserVta> : TAccountUserVta,
|
|
3034
|
+
TAccountSignPdaAccount extends string ? WritableAccount<TAccountSignPdaAccount> : TAccountSignPdaAccount,
|
|
3035
|
+
TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
3036
|
+
TAccountMempoolAccount extends string ? WritableAccount<TAccountMempoolAccount> : TAccountMempoolAccount,
|
|
3037
|
+
TAccountExecutingPool extends string ? WritableAccount<TAccountExecutingPool> : TAccountExecutingPool,
|
|
3038
|
+
TAccountComputationAccount extends string ? WritableAccount<TAccountComputationAccount> : TAccountComputationAccount,
|
|
3039
|
+
TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
3040
|
+
TAccountClusterAccount extends string ? WritableAccount<TAccountClusterAccount> : TAccountClusterAccount,
|
|
3041
|
+
TAccountPoolAccount extends string ? WritableAccount<TAccountPoolAccount> : TAccountPoolAccount,
|
|
3042
|
+
TAccountClockAccount extends string ? WritableAccount<TAccountClockAccount> : TAccountClockAccount,
|
|
3043
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3044
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
3045
|
+
...TRemainingAccounts
|
|
3046
|
+
]>;
|
|
3047
|
+
type RevealSharesInstructionData = {
|
|
3048
|
+
discriminator: ReadonlyUint8Array;
|
|
3049
|
+
computationOffset: bigint;
|
|
3050
|
+
userPubkey: Array<number>;
|
|
3051
|
+
};
|
|
3052
|
+
type RevealSharesInstructionDataArgs = {
|
|
3053
|
+
computationOffset: number | bigint;
|
|
3054
|
+
userPubkey: Array<number>;
|
|
3055
|
+
};
|
|
3056
|
+
declare function getRevealSharesInstructionDataEncoder(): FixedSizeEncoder<RevealSharesInstructionDataArgs>;
|
|
3057
|
+
declare function getRevealSharesInstructionDataDecoder(): FixedSizeDecoder<RevealSharesInstructionData>;
|
|
3058
|
+
declare function getRevealSharesInstructionDataCodec(): FixedSizeCodec<RevealSharesInstructionDataArgs, RevealSharesInstructionData>;
|
|
3059
|
+
type RevealSharesAsyncInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountShareAccount extends string = string, TAccountUserVta extends string = string, TAccountSignPdaAccount extends string = string, TAccountMxeAccount extends string = string, TAccountMempoolAccount extends string = string, TAccountExecutingPool extends string = string, TAccountComputationAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountClusterAccount extends string = string, TAccountPoolAccount extends string = string, TAccountClockAccount extends string = string, TAccountSystemProgram extends string = string, TAccountArciumProgram extends string = string> = {
|
|
3060
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
3061
|
+
owner: Address<TAccountOwner>;
|
|
3062
|
+
market: Address<TAccountMarket>;
|
|
3063
|
+
shareAccount?: Address<TAccountShareAccount>;
|
|
3064
|
+
userVta: Address<TAccountUserVta>;
|
|
3065
|
+
signPdaAccount?: Address<TAccountSignPdaAccount>;
|
|
3066
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
3067
|
+
mempoolAccount: Address<TAccountMempoolAccount>;
|
|
3068
|
+
executingPool: Address<TAccountExecutingPool>;
|
|
3069
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
3070
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
3071
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
3072
|
+
poolAccount?: Address<TAccountPoolAccount>;
|
|
3073
|
+
clockAccount?: Address<TAccountClockAccount>;
|
|
3074
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3075
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
3076
|
+
computationOffset: RevealSharesInstructionDataArgs['computationOffset'];
|
|
3077
|
+
userPubkey: RevealSharesInstructionDataArgs['userPubkey'];
|
|
3078
|
+
};
|
|
3079
|
+
declare function getRevealSharesInstructionAsync<TAccountSigner extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountShareAccount extends string, TAccountUserVta extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: RevealSharesAsyncInput<TAccountSigner, TAccountOwner, TAccountMarket, TAccountShareAccount, TAccountUserVta, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
|
|
3080
|
+
programAddress?: TProgramAddress;
|
|
3081
|
+
}): Promise<RevealSharesInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountShareAccount, TAccountUserVta, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>>;
|
|
3082
|
+
type RevealSharesInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountShareAccount extends string = string, TAccountUserVta extends string = string, TAccountSignPdaAccount extends string = string, TAccountMxeAccount extends string = string, TAccountMempoolAccount extends string = string, TAccountExecutingPool extends string = string, TAccountComputationAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountClusterAccount extends string = string, TAccountPoolAccount extends string = string, TAccountClockAccount extends string = string, TAccountSystemProgram extends string = string, TAccountArciumProgram extends string = string> = {
|
|
3083
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
3084
|
+
owner: Address<TAccountOwner>;
|
|
3085
|
+
market: Address<TAccountMarket>;
|
|
3086
|
+
shareAccount: Address<TAccountShareAccount>;
|
|
3087
|
+
userVta: Address<TAccountUserVta>;
|
|
3088
|
+
signPdaAccount: Address<TAccountSignPdaAccount>;
|
|
3089
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
3090
|
+
mempoolAccount: Address<TAccountMempoolAccount>;
|
|
3091
|
+
executingPool: Address<TAccountExecutingPool>;
|
|
3092
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
3093
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
3094
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
3095
|
+
poolAccount?: Address<TAccountPoolAccount>;
|
|
3096
|
+
clockAccount?: Address<TAccountClockAccount>;
|
|
3097
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3098
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
3099
|
+
computationOffset: RevealSharesInstructionDataArgs['computationOffset'];
|
|
3100
|
+
userPubkey: RevealSharesInstructionDataArgs['userPubkey'];
|
|
3101
|
+
};
|
|
3102
|
+
declare function getRevealSharesInstruction<TAccountSigner extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountShareAccount extends string, TAccountUserVta extends string, TAccountSignPdaAccount extends string, TAccountMxeAccount extends string, TAccountMempoolAccount extends string, TAccountExecutingPool extends string, TAccountComputationAccount extends string, TAccountCompDefAccount extends string, TAccountClusterAccount extends string, TAccountPoolAccount extends string, TAccountClockAccount extends string, TAccountSystemProgram extends string, TAccountArciumProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: RevealSharesInput<TAccountSigner, TAccountOwner, TAccountMarket, TAccountShareAccount, TAccountUserVta, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
|
|
3103
|
+
programAddress?: TProgramAddress;
|
|
3104
|
+
}): RevealSharesInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountShareAccount, TAccountUserVta, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>;
|
|
3105
|
+
type ParsedRevealSharesInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3106
|
+
programAddress: Address<TProgram>;
|
|
3107
|
+
accounts: {
|
|
3108
|
+
signer: TAccountMetas[0];
|
|
3109
|
+
owner: TAccountMetas[1];
|
|
3110
|
+
market: TAccountMetas[2];
|
|
3111
|
+
shareAccount: TAccountMetas[3];
|
|
3112
|
+
userVta: TAccountMetas[4];
|
|
3113
|
+
signPdaAccount: TAccountMetas[5];
|
|
3114
|
+
mxeAccount: TAccountMetas[6];
|
|
3115
|
+
mempoolAccount: TAccountMetas[7];
|
|
3116
|
+
executingPool: TAccountMetas[8];
|
|
3117
|
+
computationAccount: TAccountMetas[9];
|
|
3118
|
+
compDefAccount: TAccountMetas[10];
|
|
3119
|
+
clusterAccount: TAccountMetas[11];
|
|
3120
|
+
poolAccount: TAccountMetas[12];
|
|
3121
|
+
clockAccount: TAccountMetas[13];
|
|
3122
|
+
systemProgram: TAccountMetas[14];
|
|
3123
|
+
arciumProgram: TAccountMetas[15];
|
|
3124
|
+
};
|
|
3125
|
+
data: RevealSharesInstructionData;
|
|
3126
|
+
};
|
|
3127
|
+
declare function parseRevealSharesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevealSharesInstruction<TProgram, TAccountMetas>;
|
|
3128
|
+
|
|
3129
|
+
/**
|
|
3130
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3131
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3132
|
+
* to add features, then rerun Codama to update it.
|
|
3133
|
+
*
|
|
3134
|
+
* @see https://github.com/codama-idl/codama
|
|
3135
|
+
*/
|
|
3136
|
+
|
|
3137
|
+
declare const REVEAL_SHARES_CALLBACK_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3138
|
+
declare function getRevealSharesCallbackDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3139
|
+
type RevealSharesCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountComputationAccount extends string | AccountMeta<string> = string, TAccountClusterAccount extends string | AccountMeta<string> = string, TAccountInstructionsSysvar extends string | AccountMeta<string> = 'Sysvar1nstructions1111111111111111111111111', TAccountShareAccount extends string | AccountMeta<string> = string, TAccountUserVta extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3140
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
3141
|
+
TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
3142
|
+
TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
3143
|
+
TAccountComputationAccount extends string ? ReadonlyAccount<TAccountComputationAccount> : TAccountComputationAccount,
|
|
3144
|
+
TAccountClusterAccount extends string ? ReadonlyAccount<TAccountClusterAccount> : TAccountClusterAccount,
|
|
3145
|
+
TAccountInstructionsSysvar extends string ? ReadonlyAccount<TAccountInstructionsSysvar> : TAccountInstructionsSysvar,
|
|
3146
|
+
TAccountShareAccount extends string ? WritableAccount<TAccountShareAccount> : TAccountShareAccount,
|
|
3147
|
+
TAccountUserVta extends string ? WritableAccount<TAccountUserVta> : TAccountUserVta,
|
|
3148
|
+
...TRemainingAccounts
|
|
3149
|
+
]>;
|
|
3150
|
+
type RevealSharesCallbackInstructionData = {
|
|
3151
|
+
discriminator: ReadonlyUint8Array;
|
|
3152
|
+
output: {
|
|
3153
|
+
__kind: 'Success';
|
|
3154
|
+
fields: readonly [RevealSharesOutput, Array<number>];
|
|
3155
|
+
} | {
|
|
3156
|
+
__kind: 'Failure';
|
|
3157
|
+
} | {
|
|
3158
|
+
__kind: 'MarkerForIdlBuildDoNotUseThis';
|
|
3159
|
+
fields: readonly [RevealSharesOutput];
|
|
3160
|
+
};
|
|
3161
|
+
};
|
|
3162
|
+
type RevealSharesCallbackInstructionDataArgs = {
|
|
3163
|
+
output: {
|
|
3164
|
+
__kind: 'Success';
|
|
3165
|
+
fields: readonly [RevealSharesOutputArgs, Array<number>];
|
|
3166
|
+
} | {
|
|
3167
|
+
__kind: 'Failure';
|
|
3168
|
+
} | {
|
|
3169
|
+
__kind: 'MarkerForIdlBuildDoNotUseThis';
|
|
3170
|
+
fields: readonly [RevealSharesOutputArgs];
|
|
3171
|
+
};
|
|
3172
|
+
};
|
|
3173
|
+
declare function getRevealSharesCallbackInstructionDataEncoder(): Encoder<RevealSharesCallbackInstructionDataArgs>;
|
|
3174
|
+
declare function getRevealSharesCallbackInstructionDataDecoder(): Decoder<RevealSharesCallbackInstructionData>;
|
|
3175
|
+
declare function getRevealSharesCallbackInstructionDataCodec(): Codec<RevealSharesCallbackInstructionDataArgs, RevealSharesCallbackInstructionData>;
|
|
3176
|
+
type RevealSharesCallbackInput<TAccountArciumProgram extends string = string, TAccountCompDefAccount extends string = string, TAccountMxeAccount extends string = string, TAccountComputationAccount extends string = string, TAccountClusterAccount extends string = string, TAccountInstructionsSysvar extends string = string, TAccountShareAccount extends string = string, TAccountUserVta extends string = string> = {
|
|
3177
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
3178
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
3179
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
3180
|
+
computationAccount: Address<TAccountComputationAccount>;
|
|
3181
|
+
clusterAccount: Address<TAccountClusterAccount>;
|
|
3182
|
+
instructionsSysvar?: Address<TAccountInstructionsSysvar>;
|
|
3183
|
+
shareAccount: Address<TAccountShareAccount>;
|
|
3184
|
+
userVta: Address<TAccountUserVta>;
|
|
3185
|
+
output: RevealSharesCallbackInstructionDataArgs['output'];
|
|
3186
|
+
};
|
|
3187
|
+
declare function getRevealSharesCallbackInstruction<TAccountArciumProgram extends string, TAccountCompDefAccount extends string, TAccountMxeAccount extends string, TAccountComputationAccount extends string, TAccountClusterAccount extends string, TAccountInstructionsSysvar extends string, TAccountShareAccount extends string, TAccountUserVta extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: RevealSharesCallbackInput<TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountShareAccount, TAccountUserVta>, config?: {
|
|
3188
|
+
programAddress?: TProgramAddress;
|
|
3189
|
+
}): RevealSharesCallbackInstruction<TProgramAddress, TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountShareAccount, TAccountUserVta>;
|
|
3190
|
+
type ParsedRevealSharesCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3191
|
+
programAddress: Address<TProgram>;
|
|
3192
|
+
accounts: {
|
|
3193
|
+
arciumProgram: TAccountMetas[0];
|
|
3194
|
+
compDefAccount: TAccountMetas[1];
|
|
3195
|
+
mxeAccount: TAccountMetas[2];
|
|
3196
|
+
computationAccount: TAccountMetas[3];
|
|
3197
|
+
clusterAccount: TAccountMetas[4];
|
|
3198
|
+
instructionsSysvar: TAccountMetas[5];
|
|
3199
|
+
shareAccount: TAccountMetas[6];
|
|
3200
|
+
userVta: TAccountMetas[7];
|
|
3201
|
+
};
|
|
3202
|
+
data: RevealSharesCallbackInstructionData;
|
|
3203
|
+
};
|
|
3204
|
+
declare function parseRevealSharesCallbackInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevealSharesCallbackInstruction<TProgram, TAccountMetas>;
|
|
3205
|
+
|
|
3206
|
+
/**
|
|
3207
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3208
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3209
|
+
* to add features, then rerun Codama to update it.
|
|
3210
|
+
*
|
|
3211
|
+
* @see https://github.com/codama-idl/codama
|
|
3212
|
+
*/
|
|
3213
|
+
|
|
3214
|
+
declare const REVEAL_SHARES_COMP_DEF_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3215
|
+
declare function getRevealSharesCompDefDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3216
|
+
type RevealSharesCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3217
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
3218
|
+
TAccountMxeAccount extends string ? WritableAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
3219
|
+
TAccountCompDefAccount extends string ? WritableAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
3220
|
+
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
3221
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3222
|
+
...TRemainingAccounts
|
|
3223
|
+
]>;
|
|
3224
|
+
type RevealSharesCompDefInstructionData = {
|
|
3225
|
+
discriminator: ReadonlyUint8Array;
|
|
3226
|
+
};
|
|
3227
|
+
type RevealSharesCompDefInstructionDataArgs = {};
|
|
3228
|
+
declare function getRevealSharesCompDefInstructionDataEncoder(): FixedSizeEncoder<RevealSharesCompDefInstructionDataArgs>;
|
|
3229
|
+
declare function getRevealSharesCompDefInstructionDataDecoder(): FixedSizeDecoder<RevealSharesCompDefInstructionData>;
|
|
3230
|
+
declare function getRevealSharesCompDefInstructionDataCodec(): FixedSizeCodec<RevealSharesCompDefInstructionDataArgs, RevealSharesCompDefInstructionData>;
|
|
3231
|
+
type RevealSharesCompDefInput<TAccountPayer extends string = string, TAccountMxeAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountArciumProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
3232
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
3233
|
+
mxeAccount: Address<TAccountMxeAccount>;
|
|
3234
|
+
compDefAccount: Address<TAccountCompDefAccount>;
|
|
3235
|
+
arciumProgram?: Address<TAccountArciumProgram>;
|
|
3236
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3237
|
+
};
|
|
3238
|
+
declare function getRevealSharesCompDefInstruction<TAccountPayer extends string, TAccountMxeAccount extends string, TAccountCompDefAccount extends string, TAccountArciumProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: RevealSharesCompDefInput<TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountArciumProgram, TAccountSystemProgram>, config?: {
|
|
3239
|
+
programAddress?: TProgramAddress;
|
|
3240
|
+
}): RevealSharesCompDefInstruction<TProgramAddress, TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountArciumProgram, TAccountSystemProgram>;
|
|
3241
|
+
type ParsedRevealSharesCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3242
|
+
programAddress: Address<TProgram>;
|
|
3243
|
+
accounts: {
|
|
3244
|
+
payer: TAccountMetas[0];
|
|
3245
|
+
mxeAccount: TAccountMetas[1];
|
|
3246
|
+
compDefAccount: TAccountMetas[2];
|
|
3247
|
+
arciumProgram: TAccountMetas[3];
|
|
3248
|
+
systemProgram: TAccountMetas[4];
|
|
3249
|
+
};
|
|
3250
|
+
data: RevealSharesCompDefInstructionData;
|
|
3251
|
+
};
|
|
3252
|
+
declare function parseRevealSharesCompDefInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevealSharesCompDefInstruction<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 SELECT_OPTION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3263
|
+
declare function getSelectOptionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3264
|
+
type SelectOptionInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3265
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
3266
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3267
|
+
...TRemainingAccounts
|
|
3268
|
+
]>;
|
|
3269
|
+
type SelectOptionInstructionData = {
|
|
3270
|
+
discriminator: ReadonlyUint8Array;
|
|
3271
|
+
optionIndex: number;
|
|
3272
|
+
};
|
|
3273
|
+
type SelectOptionInstructionDataArgs = {
|
|
3274
|
+
optionIndex: number;
|
|
3275
|
+
};
|
|
3276
|
+
declare function getSelectOptionInstructionDataEncoder(): FixedSizeEncoder<SelectOptionInstructionDataArgs>;
|
|
3277
|
+
declare function getSelectOptionInstructionDataDecoder(): FixedSizeDecoder<SelectOptionInstructionData>;
|
|
3278
|
+
declare function getSelectOptionInstructionDataCodec(): FixedSizeCodec<SelectOptionInstructionDataArgs, SelectOptionInstructionData>;
|
|
3279
|
+
type SelectOptionInput<TAccountAuthority extends string = string, TAccountMarket extends string = string> = {
|
|
3280
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
3281
|
+
market: Address<TAccountMarket>;
|
|
3282
|
+
optionIndex: SelectOptionInstructionDataArgs['optionIndex'];
|
|
3283
|
+
};
|
|
3284
|
+
declare function getSelectOptionInstruction<TAccountAuthority extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: SelectOptionInput<TAccountAuthority, TAccountMarket>, config?: {
|
|
3285
|
+
programAddress?: TProgramAddress;
|
|
3286
|
+
}): SelectOptionInstruction<TProgramAddress, TAccountAuthority, TAccountMarket>;
|
|
3287
|
+
type ParsedSelectOptionInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3288
|
+
programAddress: Address<TProgram>;
|
|
3289
|
+
accounts: {
|
|
3290
|
+
authority: TAccountMetas[0];
|
|
3291
|
+
market: TAccountMetas[1];
|
|
3292
|
+
};
|
|
3293
|
+
data: SelectOptionInstructionData;
|
|
3294
|
+
};
|
|
3295
|
+
declare function parseSelectOptionInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSelectOptionInstruction<TProgram, TAccountMetas>;
|
|
3296
|
+
|
|
3297
|
+
interface ArciumConfig {
|
|
3298
|
+
clusterOffset: number;
|
|
3299
|
+
computationOffset: bigint;
|
|
3300
|
+
programId?: Address;
|
|
3301
|
+
}
|
|
3302
|
+
|
|
3303
|
+
/**
|
|
3304
|
+
* Generates a random computation offset for Arcium computations.
|
|
3305
|
+
* Returns a BigInt from 8 random bytes.
|
|
3306
|
+
*/
|
|
3307
|
+
declare function randomComputationOffset(): bigint;
|
|
3308
|
+
/**
|
|
3309
|
+
* Type that accepts either a number[] or Uint8Array for byte array parameters.
|
|
3310
|
+
* Use with toNumberArray() to convert before passing to generated instructions.
|
|
3311
|
+
*/
|
|
3312
|
+
type ByteArray = number[] | Uint8Array<ArrayBufferLike>;
|
|
3313
|
+
/**
|
|
3314
|
+
* Converts a ByteArray (number[] or Uint8Array) to number[].
|
|
3315
|
+
* Generated Codama instructions expect number[], but Uint8Array is often more convenient.
|
|
3316
|
+
*/
|
|
3317
|
+
declare function toNumberArray(bytes: ByteArray): number[];
|
|
3318
|
+
|
|
3319
|
+
interface InitVoteTokenAccountParams {
|
|
3320
|
+
/** The signer/payer for the transaction */
|
|
3321
|
+
signer: TransactionSigner;
|
|
3322
|
+
tokenMint: Address;
|
|
3323
|
+
tokenProgram: Address;
|
|
3324
|
+
/** User's x25519 public key (32 bytes) for encryption */
|
|
3325
|
+
userPubkey: ByteArray;
|
|
3326
|
+
/** Nonce for encryption (16 bytes as bigint) */
|
|
3327
|
+
nonce: bigint;
|
|
3328
|
+
}
|
|
3329
|
+
declare function initVoteTokenAccount(input: InitVoteTokenAccountParams, config: ArciumConfig): Promise<InitVoteTokenAccountInstruction>;
|
|
3330
|
+
|
|
3331
|
+
interface CreateMarketParams {
|
|
3332
|
+
creator: TransactionSigner;
|
|
3333
|
+
tokenMint: Address;
|
|
3334
|
+
tokenProgram: Address;
|
|
3335
|
+
marketIndex: bigint;
|
|
3336
|
+
maxShares: bigint;
|
|
3337
|
+
rewardAmount: bigint;
|
|
3338
|
+
timeToStake: bigint;
|
|
3339
|
+
timeToReveal: bigint;
|
|
3340
|
+
marketAuthority: Address | null;
|
|
3341
|
+
/** Nonce for encryption (16 bytes as bigint) */
|
|
3342
|
+
nonce: bigint;
|
|
3343
|
+
}
|
|
3344
|
+
declare function createMarket(input: CreateMarketParams, config: ArciumConfig): Promise<CreateMarketInstruction>;
|
|
3345
|
+
|
|
3346
|
+
type CompDefCircuitName = "init_vote_token_account" | "buy_vote_tokens" | "claim_vote_tokens" | "buy_opportunity_market_shares" | "init_market_shares" | "reveal_shares";
|
|
3347
|
+
declare const ALL_COMP_DEF_CIRCUITS: CompDefCircuitName[];
|
|
3348
|
+
interface InitCompDefConfig {
|
|
3349
|
+
programId?: Address;
|
|
3350
|
+
}
|
|
3351
|
+
declare function getMxeAccount(programId?: Address): Address;
|
|
3352
|
+
declare function getCompDefAccount(circuitName: CompDefCircuitName, programId?: Address): Address;
|
|
3353
|
+
declare function getCompDefOffsetNumber(circuitName: CompDefCircuitName): number;
|
|
3354
|
+
declare function getInitCompDefInstruction(payer: TransactionSigner, circuitName: CompDefCircuitName, config?: InitCompDefConfig): Instruction;
|
|
3355
|
+
|
|
3356
|
+
interface BuyMarketSharesParams {
|
|
3357
|
+
signer: TransactionSigner;
|
|
3358
|
+
market: Address;
|
|
3359
|
+
userVta: Address;
|
|
3360
|
+
amountCiphertext: ByteArray;
|
|
3361
|
+
selectedOptionCiphertext: ByteArray;
|
|
3362
|
+
userPubkey: ByteArray;
|
|
3363
|
+
inputNonce: bigint;
|
|
3364
|
+
authorizedReaderPubkey: ByteArray;
|
|
3365
|
+
authorizedReaderNonce: bigint;
|
|
3366
|
+
}
|
|
3367
|
+
declare function buyMarketShares(input: BuyMarketSharesParams, config: ArciumConfig): Promise<BuyMarketSharesInstruction>;
|
|
3368
|
+
|
|
3369
|
+
interface MintVoteTokensParams {
|
|
3370
|
+
signer: TransactionSigner;
|
|
3371
|
+
tokenMint: Address;
|
|
3372
|
+
signerTokenAccount: Address;
|
|
3373
|
+
tokenProgram: Address;
|
|
3374
|
+
userPubkey: ByteArray;
|
|
3375
|
+
amount: bigint;
|
|
3376
|
+
}
|
|
3377
|
+
declare function mintVoteTokens(input: MintVoteTokensParams, config: ArciumConfig): Promise<MintVoteTokensInstruction>;
|
|
3378
|
+
|
|
3379
|
+
interface ClaimVoteTokensParams {
|
|
3380
|
+
signer: TransactionSigner;
|
|
3381
|
+
tokenMint: Address;
|
|
3382
|
+
userTokenAccount: Address;
|
|
3383
|
+
tokenProgram: Address;
|
|
3384
|
+
userPubkey: ByteArray;
|
|
3385
|
+
amount: bigint;
|
|
3386
|
+
}
|
|
3387
|
+
declare function claimVoteTokens(input: ClaimVoteTokensParams, config: ArciumConfig): Promise<ClaimVoteTokensInstruction>;
|
|
3388
|
+
|
|
3389
|
+
interface RevealSharesParams {
|
|
3390
|
+
signer: TransactionSigner;
|
|
3391
|
+
owner: Address;
|
|
3392
|
+
market: Address;
|
|
3393
|
+
userVta: Address;
|
|
3394
|
+
userPubkey: ByteArray;
|
|
3395
|
+
}
|
|
3396
|
+
declare function revealShares(input: RevealSharesParams, config: ArciumConfig): Promise<RevealSharesInstruction>;
|
|
3397
|
+
|
|
3398
|
+
interface AddMarketOptionParams {
|
|
3399
|
+
creator: TransactionSigner;
|
|
3400
|
+
market: Address;
|
|
3401
|
+
optionIndex: number;
|
|
3402
|
+
name: string;
|
|
3403
|
+
}
|
|
3404
|
+
declare function addMarketOption(input: AddMarketOptionParams): Promise<AddMarketOptionInstruction>;
|
|
3405
|
+
|
|
3406
|
+
interface OpenMarketParams {
|
|
3407
|
+
creator: TransactionSigner;
|
|
3408
|
+
market: Address;
|
|
3409
|
+
tokenMint: Address;
|
|
3410
|
+
marketTokenAta: Address;
|
|
3411
|
+
tokenProgram: Address;
|
|
3412
|
+
openTimestamp: bigint;
|
|
3413
|
+
}
|
|
3414
|
+
declare function openMarket(input: OpenMarketParams): OpenMarketInstruction;
|
|
3415
|
+
|
|
3416
|
+
interface SelectOptionParams {
|
|
3417
|
+
authority: TransactionSigner;
|
|
3418
|
+
market: Address;
|
|
3419
|
+
optionIndex: number;
|
|
3420
|
+
}
|
|
3421
|
+
declare function selectOption(input: SelectOptionParams): SelectOptionInstruction;
|
|
3422
|
+
|
|
3423
|
+
interface ExtendRevealPeriodParams {
|
|
3424
|
+
authority: TransactionSigner;
|
|
3425
|
+
market: Address;
|
|
3426
|
+
newTimeToReveal: bigint;
|
|
3427
|
+
}
|
|
3428
|
+
declare function extendRevealPeriod(input: ExtendRevealPeriodParams): ExtendRevealPeriodInstruction;
|
|
3429
|
+
|
|
3430
|
+
interface InitShareAccountParams {
|
|
3431
|
+
signer: TransactionSigner;
|
|
3432
|
+
market: Address;
|
|
3433
|
+
stateNonce: bigint;
|
|
3434
|
+
}
|
|
3435
|
+
declare function initShareAccount(input: InitShareAccountParams): Promise<InitShareAccountInstruction>;
|
|
3436
|
+
|
|
3437
|
+
interface CloseShareAccountParams {
|
|
3438
|
+
owner: TransactionSigner;
|
|
3439
|
+
market: Address;
|
|
3440
|
+
tokenMint: Address;
|
|
3441
|
+
ownerTokenAccount: Address;
|
|
3442
|
+
tokenProgram: Address;
|
|
3443
|
+
optionIndex: number;
|
|
3444
|
+
}
|
|
3445
|
+
declare function closeShareAccount(input: CloseShareAccountParams): Promise<CloseShareAccountInstruction>;
|
|
3446
|
+
|
|
3447
|
+
interface IncrementOptionTallyParams {
|
|
3448
|
+
signer: TransactionSigner;
|
|
3449
|
+
owner: Address;
|
|
3450
|
+
market: Address;
|
|
3451
|
+
optionIndex: number;
|
|
3452
|
+
}
|
|
3453
|
+
declare function incrementOptionTally(input: IncrementOptionTallyParams): Promise<IncrementOptionTallyInstruction>;
|
|
3454
|
+
|
|
3455
|
+
declare const VOTE_TOKEN_ACCOUNT_SEED = "vote_token_account";
|
|
3456
|
+
declare function getVoteTokenAccountAddress(tokenMint: Address, owner: Address, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
3457
|
+
|
|
3458
|
+
declare const SHARE_ACCOUNT_SEED = "share_account";
|
|
3459
|
+
declare function getShareAccountAddress(owner: Address, market: Address, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
3460
|
+
|
|
3461
|
+
declare const OPPORTUNITY_MARKET_OPTION_SEED = "option";
|
|
3462
|
+
declare function getOpportunityMarketOptionAddress(market: Address, optionIndex: number, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
3463
|
+
|
|
3464
|
+
interface AwaitComputationOptions {
|
|
3465
|
+
commitment?: "processed" | "confirmed" | "finalized";
|
|
3466
|
+
mxeProgramId?: Address;
|
|
3467
|
+
transactionCountLimit?: number;
|
|
3468
|
+
pollInterval?: number;
|
|
3469
|
+
maxAttempts?: number;
|
|
3470
|
+
}
|
|
3471
|
+
/**
|
|
3472
|
+
* Waits for multiple computations to be finalized on the Arcium network.
|
|
3473
|
+
* Returns a map of computationOffset -> signature for all found computations.
|
|
3474
|
+
*/
|
|
3475
|
+
declare const awaitBatchComputationFinalization: (rpc: Rpc<SolanaRpcApi>, computationOffsets: bigint[], options?: AwaitComputationOptions) => Promise<Map<bigint, string>>;
|
|
3476
|
+
/**
|
|
3477
|
+
* Waits for a single computation to be finalized on the Arcium network.
|
|
3478
|
+
*/
|
|
3479
|
+
declare const awaitComputationFinalization: (rpc: Rpc<SolanaRpcApi>, computationOffset: bigint, options?: AwaitComputationOptions) => Promise<string>;
|
|
3480
|
+
|
|
3481
|
+
export { ADD_MARKET_OPTION_DISCRIMINATOR, ALL_COMP_DEF_CIRCUITS, ARCIUM_SIGNER_ACCOUNT_DISCRIMINATOR, type Activation, type ActivationArgs, type AddMarketOptionAsyncInput, type AddMarketOptionInput, type AddMarketOptionInstruction, type AddMarketOptionInstructionData, type AddMarketOptionInstructionDataArgs, type AddMarketOptionParams, type ArciumSignerAccount, type ArciumSignerAccountArgs, type AwaitComputationOptions, type BN254G2BLSPublicKey, type BN254G2BLSPublicKeyArgs, BUY_MARKET_SHARES_DISCRIMINATOR, BUY_OPPORTUNITY_MARKET_SHARES_CALLBACK_DISCRIMINATOR, BUY_OPPORTUNITY_MARKET_SHARES_COMP_DEF_DISCRIMINATOR, BUY_VOTE_TOKENS_CALLBACK_DISCRIMINATOR, BUY_VOTE_TOKENS_COMP_DEF_DISCRIMINATOR, type BuyMarketSharesAsyncInput, type BuyMarketSharesInput, type BuyMarketSharesInstruction, type BuyMarketSharesInstructionData, type BuyMarketSharesInstructionDataArgs, type BuyMarketSharesParams, type BuyOpportunityMarketSharesCallbackInput, type BuyOpportunityMarketSharesCallbackInstruction, type BuyOpportunityMarketSharesCallbackInstructionData, type BuyOpportunityMarketSharesCallbackInstructionDataArgs, type BuyOpportunityMarketSharesCompDefInput, type BuyOpportunityMarketSharesCompDefInstruction, type BuyOpportunityMarketSharesCompDefInstructionData, type BuyOpportunityMarketSharesCompDefInstructionDataArgs, type BuyOpportunityMarketSharesOutput, type BuyOpportunityMarketSharesOutputArgs, type BuyOpportunityMarketSharesOutputStruct0, type BuyOpportunityMarketSharesOutputStruct0Args, type BuyVoteTokensCallbackInput, type BuyVoteTokensCallbackInstruction, type BuyVoteTokensCallbackInstructionData, type BuyVoteTokensCallbackInstructionDataArgs, type BuyVoteTokensCompDefInput, type BuyVoteTokensCompDefInstruction, type BuyVoteTokensCompDefInstructionData, type BuyVoteTokensCompDefInstructionDataArgs, type BuyVoteTokensOutput, type BuyVoteTokensOutputArgs, type BuyVoteTokensOutputStruct0, type BuyVoteTokensOutputStruct0Args, type ByteArray, CLAIM_PENDING_DEPOSIT_DISCRIMINATOR, CLAIM_VOTE_TOKENS_CALLBACK_DISCRIMINATOR, CLAIM_VOTE_TOKENS_COMP_DEF_DISCRIMINATOR, CLAIM_VOTE_TOKENS_DISCRIMINATOR, CLOCK_ACCOUNT_DISCRIMINATOR, CLOSE_SHARE_ACCOUNT_DISCRIMINATOR, CLUSTER_DISCRIMINATOR, COMPUTATION_DEFINITION_ACCOUNT_DISCRIMINATOR, CREATE_MARKET_DISCRIMINATOR, type CircuitSource, type CircuitSourceArgs, type ClaimPendingDepositAsyncInput, type ClaimPendingDepositInput, type ClaimPendingDepositInstruction, type ClaimPendingDepositInstructionData, type ClaimPendingDepositInstructionDataArgs, type ClaimVoteTokensAsyncInput, type ClaimVoteTokensCallbackInput, type ClaimVoteTokensCallbackInstruction, type ClaimVoteTokensCallbackInstructionData, type ClaimVoteTokensCallbackInstructionDataArgs, type ClaimVoteTokensCompDefInput, type ClaimVoteTokensCompDefInstruction, type ClaimVoteTokensCompDefInstructionData, type ClaimVoteTokensCompDefInstructionDataArgs, type ClaimVoteTokensInput, type ClaimVoteTokensInstruction, type ClaimVoteTokensInstructionData, type ClaimVoteTokensInstructionDataArgs, type ClaimVoteTokensOutput, type ClaimVoteTokensOutputArgs, type ClaimVoteTokensOutputStruct0, type ClaimVoteTokensOutputStruct0Args, type ClaimVoteTokensParams, type ClockAccount, type ClockAccountArgs, type CloseShareAccountAsyncInput, type CloseShareAccountInput, type CloseShareAccountInstruction, type CloseShareAccountInstructionData, type CloseShareAccountInstructionDataArgs, type CloseShareAccountParams, type Cluster, type ClusterArgs, type CompDefCircuitName, type ComputationDefinitionAccount, type ComputationDefinitionAccountArgs, type ComputationDefinitionMeta, type ComputationDefinitionMetaArgs, type ComputationSignature, type ComputationSignatureArgs, type CreateMarketAsyncInput, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateMarketParams, EXTEND_REVEAL_PERIOD_DISCRIMINATOR, type Epoch, type EpochArgs, type ExtendRevealPeriodInput, type ExtendRevealPeriodInstruction, type ExtendRevealPeriodInstructionData, type ExtendRevealPeriodInstructionDataArgs, type ExtendRevealPeriodParams, FEE_POOL_DISCRIMINATOR, type FeePool, type FeePoolArgs, INCREMENT_OPTION_TALLY_DISCRIMINATOR, INIT_MARKET_SHARES_CALLBACK_DISCRIMINATOR, INIT_MARKET_SHARES_COMP_DEF_DISCRIMINATOR, INIT_SHARE_ACCOUNT_DISCRIMINATOR, INIT_VOTE_TOKEN_ACCOUNT_CALLBACK_DISCRIMINATOR, INIT_VOTE_TOKEN_ACCOUNT_COMP_DEF_DISCRIMINATOR, INIT_VOTE_TOKEN_ACCOUNT_DISCRIMINATOR, type IncrementOptionTallyAsyncInput, type IncrementOptionTallyInput, type IncrementOptionTallyInstruction, type IncrementOptionTallyInstructionData, type IncrementOptionTallyInstructionDataArgs, type IncrementOptionTallyParams, type InitCompDefConfig, type InitMarketSharesCallbackInput, type InitMarketSharesCallbackInstruction, type InitMarketSharesCallbackInstructionData, type InitMarketSharesCallbackInstructionDataArgs, type InitMarketSharesCompDefInput, type InitMarketSharesCompDefInstruction, type InitMarketSharesCompDefInstructionData, type InitMarketSharesCompDefInstructionDataArgs, type InitMarketSharesOutput, type InitMarketSharesOutputArgs, type InitShareAccountAsyncInput, type InitShareAccountInput, type InitShareAccountInstruction, type InitShareAccountInstructionData, type InitShareAccountInstructionDataArgs, type InitShareAccountParams, type InitVoteTokenAccountAsyncInput, type InitVoteTokenAccountCallbackInput, type InitVoteTokenAccountCallbackInstruction, type InitVoteTokenAccountCallbackInstructionData, type InitVoteTokenAccountCallbackInstructionDataArgs, type InitVoteTokenAccountCompDefInput, type InitVoteTokenAccountCompDefInstruction, type InitVoteTokenAccountCompDefInstructionData, type InitVoteTokenAccountCompDefInstructionDataArgs, type InitVoteTokenAccountInput, type InitVoteTokenAccountInstruction, type InitVoteTokenAccountInstructionData, type InitVoteTokenAccountInstructionDataArgs, type InitVoteTokenAccountOutput, type InitVoteTokenAccountOutputArgs, type InitVoteTokenAccountParams, LocalCircuitSource, type LocalCircuitSourceArgs, MINT_VOTE_TOKENS_DISCRIMINATOR, type MXEAccount, type MXEAccountArgs, M_X_E_ACCOUNT_DISCRIMINATOR, type MarketCreatedEvent, type MarketCreatedEventArgs, type MintVoteTokensAsyncInput, type MintVoteTokensInput, type MintVoteTokensInstruction, type MintVoteTokensInstructionData, type MintVoteTokensInstructionDataArgs, type MintVoteTokensParams, MxeStatus, type MxeStatusArgs, type NodeMetadata, type NodeMetadataArgs, type NodeRef, type NodeRefArgs, OPEN_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_ERROR__INVALID_CALLBACK_TX, OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR, OPPORTUNITY_MARKET_OPTION_SEED, OPPORTUNITY_MARKET_PROGRAM_ADDRESS, type OffChainCircuitSource, type OffChainCircuitSourceArgs, type OnChainCircuitSource, type OnChainCircuitSourceArgs, type OpenMarketAsyncInput, type OpenMarketInput, type OpenMarketInstruction, type OpenMarketInstructionData, type OpenMarketInstructionDataArgs, type OpenMarketParams, type OpportunityMarket, OpportunityMarketAccount, type OpportunityMarketArgs, type OpportunityMarketError, OpportunityMarketInstruction, type OpportunityMarketOption, type OpportunityMarketOptionArgs, Output, type OutputArgs, Parameter, type ParameterArgs, type ParsedAddMarketOptionInstruction, type ParsedBuyMarketSharesInstruction, type ParsedBuyOpportunityMarketSharesCallbackInstruction, type ParsedBuyOpportunityMarketSharesCompDefInstruction, type ParsedBuyVoteTokensCallbackInstruction, type ParsedBuyVoteTokensCompDefInstruction, type ParsedClaimPendingDepositInstruction, type ParsedClaimVoteTokensCallbackInstruction, type ParsedClaimVoteTokensCompDefInstruction, type ParsedClaimVoteTokensInstruction, type ParsedCloseShareAccountInstruction, type ParsedCreateMarketInstruction, type ParsedExtendRevealPeriodInstruction, type ParsedIncrementOptionTallyInstruction, type ParsedInitMarketSharesCallbackInstruction, type ParsedInitMarketSharesCompDefInstruction, type ParsedInitShareAccountInstruction, type ParsedInitVoteTokenAccountCallbackInstruction, type ParsedInitVoteTokenAccountCompDefInstruction, type ParsedInitVoteTokenAccountInstruction, type ParsedMintVoteTokensInstruction, type ParsedOpenMarketInstruction, type ParsedOpportunityMarketInstruction, type ParsedRevealSharesCallbackInstruction, type ParsedRevealSharesCompDefInstruction, type ParsedRevealSharesInstruction, type ParsedSelectOptionInstruction, REVEAL_SHARES_CALLBACK_DISCRIMINATOR, REVEAL_SHARES_COMP_DEF_DISCRIMINATOR, REVEAL_SHARES_DISCRIMINATOR, type RevealSharesAsyncInput, type RevealSharesCallbackInput, type RevealSharesCallbackInstruction, type RevealSharesCallbackInstructionData, type RevealSharesCallbackInstructionDataArgs, type RevealSharesCompDefInput, type RevealSharesCompDefInstruction, type RevealSharesCompDefInstructionData, type RevealSharesCompDefInstructionDataArgs, type RevealSharesInput, type RevealSharesInstruction, type RevealSharesInstructionData, type RevealSharesInstructionDataArgs, type RevealSharesOutput, type RevealSharesOutputArgs, type RevealSharesOutputStruct0, type RevealSharesOutputStruct0Args, type RevealSharesParams, SELECT_OPTION_DISCRIMINATOR, SHARE_ACCOUNT_DISCRIMINATOR, SHARE_ACCOUNT_SEED, type SelectOptionInput, type SelectOptionInstruction, type SelectOptionInstructionData, type SelectOptionInstructionDataArgs, type SelectOptionParams, type ShareAccount, type ShareAccountArgs, type SharesPurchasedEvent, type SharesPurchasedEventArgs, type SharesRevealedEvent, type SharesRevealedEventArgs, type Timestamp, type TimestampArgs, type UtilityPubkeys, type UtilityPubkeysArgs, VOTE_TOKEN_ACCOUNT_DISCRIMINATOR, VOTE_TOKEN_ACCOUNT_SEED, type VoteTokenAccount, type VoteTokenAccountArgs, type VoteTokenPurchasedEvent, type VoteTokenPurchasedEventArgs, addMarketOption, awaitBatchComputationFinalization, awaitComputationFinalization, buyMarketShares, circuitSource, claimVoteTokens, closeShareAccount, createMarket, decodeArciumSignerAccount, decodeClockAccount, decodeCluster, decodeComputationDefinitionAccount, decodeFeePool, decodeMXEAccount, decodeOpportunityMarket, decodeOpportunityMarketOption, decodeShareAccount, decodeVoteTokenAccount, extendRevealPeriod, fetchAllArciumSignerAccount, fetchAllClockAccount, fetchAllCluster, fetchAllComputationDefinitionAccount, fetchAllFeePool, fetchAllMXEAccount, fetchAllMaybeArciumSignerAccount, fetchAllMaybeClockAccount, fetchAllMaybeCluster, fetchAllMaybeComputationDefinitionAccount, fetchAllMaybeFeePool, fetchAllMaybeMXEAccount, fetchAllMaybeOpportunityMarket, fetchAllMaybeOpportunityMarketOption, fetchAllMaybeShareAccount, fetchAllMaybeVoteTokenAccount, fetchAllOpportunityMarket, fetchAllOpportunityMarketOption, fetchAllShareAccount, fetchAllVoteTokenAccount, fetchArciumSignerAccount, fetchClockAccount, fetchCluster, fetchComputationDefinitionAccount, fetchFeePool, fetchMXEAccount, fetchMaybeArciumSignerAccount, fetchMaybeClockAccount, fetchMaybeCluster, fetchMaybeComputationDefinitionAccount, fetchMaybeFeePool, fetchMaybeMXEAccount, fetchMaybeOpportunityMarket, fetchMaybeOpportunityMarketOption, fetchMaybeShareAccount, fetchMaybeVoteTokenAccount, fetchOpportunityMarket, fetchOpportunityMarketOption, fetchShareAccount, fetchVoteTokenAccount, getActivationCodec, getActivationDecoder, getActivationEncoder, getAddMarketOptionDiscriminatorBytes, getAddMarketOptionInstruction, getAddMarketOptionInstructionAsync, getAddMarketOptionInstructionDataCodec, getAddMarketOptionInstructionDataDecoder, getAddMarketOptionInstructionDataEncoder, getArciumSignerAccountCodec, getArciumSignerAccountDecoder, getArciumSignerAccountDiscriminatorBytes, getArciumSignerAccountEncoder, getBN254G2BLSPublicKeyCodec, getBN254G2BLSPublicKeyDecoder, getBN254G2BLSPublicKeyEncoder, getBuyMarketSharesDiscriminatorBytes, getBuyMarketSharesInstruction, getBuyMarketSharesInstructionAsync, getBuyMarketSharesInstructionDataCodec, getBuyMarketSharesInstructionDataDecoder, getBuyMarketSharesInstructionDataEncoder, getBuyOpportunityMarketSharesCallbackDiscriminatorBytes, getBuyOpportunityMarketSharesCallbackInstruction, getBuyOpportunityMarketSharesCallbackInstructionDataCodec, getBuyOpportunityMarketSharesCallbackInstructionDataDecoder, getBuyOpportunityMarketSharesCallbackInstructionDataEncoder, getBuyOpportunityMarketSharesCompDefDiscriminatorBytes, getBuyOpportunityMarketSharesCompDefInstruction, getBuyOpportunityMarketSharesCompDefInstructionDataCodec, getBuyOpportunityMarketSharesCompDefInstructionDataDecoder, getBuyOpportunityMarketSharesCompDefInstructionDataEncoder, getBuyOpportunityMarketSharesOutputCodec, getBuyOpportunityMarketSharesOutputDecoder, getBuyOpportunityMarketSharesOutputEncoder, getBuyOpportunityMarketSharesOutputStruct0Codec, getBuyOpportunityMarketSharesOutputStruct0Decoder, getBuyOpportunityMarketSharesOutputStruct0Encoder, getBuyVoteTokensCallbackDiscriminatorBytes, getBuyVoteTokensCallbackInstruction, getBuyVoteTokensCallbackInstructionDataCodec, getBuyVoteTokensCallbackInstructionDataDecoder, getBuyVoteTokensCallbackInstructionDataEncoder, getBuyVoteTokensCompDefDiscriminatorBytes, getBuyVoteTokensCompDefInstruction, getBuyVoteTokensCompDefInstructionDataCodec, getBuyVoteTokensCompDefInstructionDataDecoder, getBuyVoteTokensCompDefInstructionDataEncoder, getBuyVoteTokensOutputCodec, getBuyVoteTokensOutputDecoder, getBuyVoteTokensOutputEncoder, getBuyVoteTokensOutputStruct0Codec, getBuyVoteTokensOutputStruct0Decoder, getBuyVoteTokensOutputStruct0Encoder, getCircuitSourceCodec, getCircuitSourceDecoder, getCircuitSourceEncoder, getClaimPendingDepositDiscriminatorBytes, getClaimPendingDepositInstruction, getClaimPendingDepositInstructionAsync, getClaimPendingDepositInstructionDataCodec, getClaimPendingDepositInstructionDataDecoder, getClaimPendingDepositInstructionDataEncoder, getClaimVoteTokensCallbackDiscriminatorBytes, getClaimVoteTokensCallbackInstruction, getClaimVoteTokensCallbackInstructionDataCodec, getClaimVoteTokensCallbackInstructionDataDecoder, getClaimVoteTokensCallbackInstructionDataEncoder, getClaimVoteTokensCompDefDiscriminatorBytes, getClaimVoteTokensCompDefInstruction, getClaimVoteTokensCompDefInstructionDataCodec, getClaimVoteTokensCompDefInstructionDataDecoder, getClaimVoteTokensCompDefInstructionDataEncoder, getClaimVoteTokensDiscriminatorBytes, getClaimVoteTokensInstruction, getClaimVoteTokensInstructionAsync, getClaimVoteTokensInstructionDataCodec, getClaimVoteTokensInstructionDataDecoder, getClaimVoteTokensInstructionDataEncoder, getClaimVoteTokensOutputCodec, getClaimVoteTokensOutputDecoder, getClaimVoteTokensOutputEncoder, getClaimVoteTokensOutputStruct0Codec, getClaimVoteTokensOutputStruct0Decoder, getClaimVoteTokensOutputStruct0Encoder, getClockAccountCodec, getClockAccountDecoder, getClockAccountDiscriminatorBytes, getClockAccountEncoder, getCloseShareAccountDiscriminatorBytes, getCloseShareAccountInstruction, getCloseShareAccountInstructionAsync, getCloseShareAccountInstructionDataCodec, getCloseShareAccountInstructionDataDecoder, getCloseShareAccountInstructionDataEncoder, getClusterCodec, getClusterDecoder, getClusterDiscriminatorBytes, getClusterEncoder, getCompDefAccount, getCompDefOffsetNumber, getComputationDefinitionAccountCodec, getComputationDefinitionAccountDecoder, getComputationDefinitionAccountDiscriminatorBytes, getComputationDefinitionAccountEncoder, getComputationDefinitionMetaCodec, getComputationDefinitionMetaDecoder, getComputationDefinitionMetaEncoder, getComputationSignatureCodec, getComputationSignatureDecoder, getComputationSignatureEncoder, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionAsync, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getEpochCodec, getEpochDecoder, getEpochEncoder, getExtendRevealPeriodDiscriminatorBytes, getExtendRevealPeriodInstruction, getExtendRevealPeriodInstructionDataCodec, getExtendRevealPeriodInstructionDataDecoder, getExtendRevealPeriodInstructionDataEncoder, getFeePoolCodec, getFeePoolDecoder, getFeePoolDiscriminatorBytes, getFeePoolEncoder, getIncrementOptionTallyDiscriminatorBytes, getIncrementOptionTallyInstruction, getIncrementOptionTallyInstructionAsync, getIncrementOptionTallyInstructionDataCodec, getIncrementOptionTallyInstructionDataDecoder, getIncrementOptionTallyInstructionDataEncoder, getInitCompDefInstruction, getInitMarketSharesCallbackDiscriminatorBytes, getInitMarketSharesCallbackInstruction, getInitMarketSharesCallbackInstructionDataCodec, getInitMarketSharesCallbackInstructionDataDecoder, getInitMarketSharesCallbackInstructionDataEncoder, getInitMarketSharesCompDefDiscriminatorBytes, getInitMarketSharesCompDefInstruction, getInitMarketSharesCompDefInstructionDataCodec, getInitMarketSharesCompDefInstructionDataDecoder, getInitMarketSharesCompDefInstructionDataEncoder, getInitMarketSharesOutputCodec, getInitMarketSharesOutputDecoder, getInitMarketSharesOutputEncoder, getInitShareAccountDiscriminatorBytes, getInitShareAccountInstruction, getInitShareAccountInstructionAsync, getInitShareAccountInstructionDataCodec, getInitShareAccountInstructionDataDecoder, getInitShareAccountInstructionDataEncoder, getInitVoteTokenAccountCallbackDiscriminatorBytes, getInitVoteTokenAccountCallbackInstruction, getInitVoteTokenAccountCallbackInstructionDataCodec, getInitVoteTokenAccountCallbackInstructionDataDecoder, getInitVoteTokenAccountCallbackInstructionDataEncoder, getInitVoteTokenAccountCompDefDiscriminatorBytes, getInitVoteTokenAccountCompDefInstruction, getInitVoteTokenAccountCompDefInstructionDataCodec, getInitVoteTokenAccountCompDefInstructionDataDecoder, getInitVoteTokenAccountCompDefInstructionDataEncoder, getInitVoteTokenAccountDiscriminatorBytes, getInitVoteTokenAccountInstruction, getInitVoteTokenAccountInstructionAsync, getInitVoteTokenAccountInstructionDataCodec, getInitVoteTokenAccountInstructionDataDecoder, getInitVoteTokenAccountInstructionDataEncoder, getInitVoteTokenAccountOutputCodec, getInitVoteTokenAccountOutputDecoder, getInitVoteTokenAccountOutputEncoder, getLocalCircuitSourceCodec, getLocalCircuitSourceDecoder, getLocalCircuitSourceEncoder, getMXEAccountCodec, getMXEAccountDecoder, getMXEAccountDiscriminatorBytes, getMXEAccountEncoder, getMarketCreatedEventCodec, getMarketCreatedEventDecoder, getMarketCreatedEventEncoder, getMintVoteTokensDiscriminatorBytes, getMintVoteTokensInstruction, getMintVoteTokensInstructionAsync, getMintVoteTokensInstructionDataCodec, getMintVoteTokensInstructionDataDecoder, getMintVoteTokensInstructionDataEncoder, getMxeAccount, getMxeStatusCodec, getMxeStatusDecoder, getMxeStatusEncoder, getNodeMetadataCodec, getNodeMetadataDecoder, getNodeMetadataEncoder, getNodeRefCodec, getNodeRefDecoder, getNodeRefEncoder, getOffChainCircuitSourceCodec, getOffChainCircuitSourceDecoder, getOffChainCircuitSourceEncoder, getOnChainCircuitSourceCodec, getOnChainCircuitSourceDecoder, getOnChainCircuitSourceEncoder, getOpenMarketDiscriminatorBytes, getOpenMarketInstruction, getOpenMarketInstructionAsync, getOpenMarketInstructionDataCodec, getOpenMarketInstructionDataDecoder, getOpenMarketInstructionDataEncoder, getOpportunityMarketCodec, getOpportunityMarketDecoder, getOpportunityMarketDiscriminatorBytes, getOpportunityMarketEncoder, getOpportunityMarketErrorMessage, getOpportunityMarketOptionAddress, getOpportunityMarketOptionCodec, getOpportunityMarketOptionDecoder, getOpportunityMarketOptionDiscriminatorBytes, getOpportunityMarketOptionEncoder, getOutputCodec, getOutputDecoder, getOutputEncoder, getParameterCodec, getParameterDecoder, getParameterEncoder, getRevealSharesCallbackDiscriminatorBytes, getRevealSharesCallbackInstruction, getRevealSharesCallbackInstructionDataCodec, getRevealSharesCallbackInstructionDataDecoder, getRevealSharesCallbackInstructionDataEncoder, getRevealSharesCompDefDiscriminatorBytes, getRevealSharesCompDefInstruction, getRevealSharesCompDefInstructionDataCodec, getRevealSharesCompDefInstructionDataDecoder, getRevealSharesCompDefInstructionDataEncoder, getRevealSharesDiscriminatorBytes, getRevealSharesInstruction, getRevealSharesInstructionAsync, getRevealSharesInstructionDataCodec, getRevealSharesInstructionDataDecoder, getRevealSharesInstructionDataEncoder, getRevealSharesOutputCodec, getRevealSharesOutputDecoder, getRevealSharesOutputEncoder, getRevealSharesOutputStruct0Codec, getRevealSharesOutputStruct0Decoder, getRevealSharesOutputStruct0Encoder, getSelectOptionDiscriminatorBytes, getSelectOptionInstruction, getSelectOptionInstructionDataCodec, getSelectOptionInstructionDataDecoder, getSelectOptionInstructionDataEncoder, getShareAccountAddress, getShareAccountCodec, getShareAccountDecoder, getShareAccountDiscriminatorBytes, getShareAccountEncoder, getSharesPurchasedEventCodec, getSharesPurchasedEventDecoder, getSharesPurchasedEventEncoder, getSharesRevealedEventCodec, getSharesRevealedEventDecoder, getSharesRevealedEventEncoder, getTimestampCodec, getTimestampDecoder, getTimestampEncoder, getUtilityPubkeysCodec, getUtilityPubkeysDecoder, getUtilityPubkeysEncoder, getVoteTokenAccountAddress, getVoteTokenAccountCodec, getVoteTokenAccountDecoder, getVoteTokenAccountDiscriminatorBytes, getVoteTokenAccountEncoder, getVoteTokenPurchasedEventCodec, getVoteTokenPurchasedEventDecoder, getVoteTokenPurchasedEventEncoder, identifyOpportunityMarketAccount, identifyOpportunityMarketInstruction, incrementOptionTally, initShareAccount, initVoteTokenAccount, isCircuitSource, isOpportunityMarketError, mintVoteTokens, openMarket, parseAddMarketOptionInstruction, parseBuyMarketSharesInstruction, parseBuyOpportunityMarketSharesCallbackInstruction, parseBuyOpportunityMarketSharesCompDefInstruction, parseBuyVoteTokensCallbackInstruction, parseBuyVoteTokensCompDefInstruction, parseClaimPendingDepositInstruction, parseClaimVoteTokensCallbackInstruction, parseClaimVoteTokensCompDefInstruction, parseClaimVoteTokensInstruction, parseCloseShareAccountInstruction, parseCreateMarketInstruction, parseExtendRevealPeriodInstruction, parseIncrementOptionTallyInstruction, parseInitMarketSharesCallbackInstruction, parseInitMarketSharesCompDefInstruction, parseInitShareAccountInstruction, parseInitVoteTokenAccountCallbackInstruction, parseInitVoteTokenAccountCompDefInstruction, parseInitVoteTokenAccountInstruction, parseMintVoteTokensInstruction, parseOpenMarketInstruction, parseRevealSharesCallbackInstruction, parseRevealSharesCompDefInstruction, parseRevealSharesInstruction, parseSelectOptionInstruction, randomComputationOffset, revealShares, selectOption, toNumberArray };
|