@bench.games/opportunity-markets 0.2.13 → 0.3.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 +4931 -6316
- package/dist/index.cjs +4320 -5676
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1482 -1655
- package/dist/index.d.ts +1482 -1655
- package/dist/index.js +4931 -6316
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ReadonlyUint8Array, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccounts,
|
|
2
|
-
import * as _solana_accounts from '@solana/accounts';
|
|
1
|
+
import { ReadonlyUint8Array, Address, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccounts, 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, Rpc, SolanaRpcApi, ProgramDerivedAddress } from '@solana/kit';
|
|
3
2
|
import { RescueCipher } from '@arcium-hq/client';
|
|
4
3
|
|
|
5
4
|
/**
|
|
@@ -10,24 +9,28 @@ import { RescueCipher } from '@arcium-hq/client';
|
|
|
10
9
|
* @see https://github.com/codama-idl/codama
|
|
11
10
|
*/
|
|
12
11
|
|
|
13
|
-
declare const
|
|
14
|
-
declare function
|
|
15
|
-
type
|
|
12
|
+
declare const ALLOWED_MINT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
13
|
+
declare function getAllowedMintDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
14
|
+
type AllowedMint = {
|
|
16
15
|
discriminator: ReadonlyUint8Array;
|
|
17
16
|
bump: number;
|
|
17
|
+
platform: Address;
|
|
18
|
+
mint: Address;
|
|
18
19
|
};
|
|
19
|
-
type
|
|
20
|
+
type AllowedMintArgs = {
|
|
20
21
|
bump: number;
|
|
22
|
+
platform: Address;
|
|
23
|
+
mint: Address;
|
|
21
24
|
};
|
|
22
|
-
declare function
|
|
23
|
-
declare function
|
|
24
|
-
declare function
|
|
25
|
-
declare function
|
|
26
|
-
declare function
|
|
27
|
-
declare function
|
|
28
|
-
declare function
|
|
29
|
-
declare function
|
|
30
|
-
declare function
|
|
25
|
+
declare function getAllowedMintEncoder(): FixedSizeEncoder<AllowedMintArgs>;
|
|
26
|
+
declare function getAllowedMintDecoder(): FixedSizeDecoder<AllowedMint>;
|
|
27
|
+
declare function getAllowedMintCodec(): FixedSizeCodec<AllowedMintArgs, AllowedMint>;
|
|
28
|
+
declare function decodeAllowedMint<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<AllowedMint, TAddress>;
|
|
29
|
+
declare function decodeAllowedMint<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<AllowedMint, TAddress>;
|
|
30
|
+
declare function fetchAllowedMint<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<AllowedMint, TAddress>>;
|
|
31
|
+
declare function fetchMaybeAllowedMint<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<AllowedMint, TAddress>>;
|
|
32
|
+
declare function fetchAllAllowedMint(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<AllowedMint>[]>;
|
|
33
|
+
declare function fetchAllMaybeAllowedMint(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<AllowedMint>[]>;
|
|
31
34
|
|
|
32
35
|
/**
|
|
33
36
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -37,60 +40,24 @@ declare function fetchAllMaybeArciumSignerAccount(rpc: Parameters<typeof fetchEn
|
|
|
37
40
|
* @see https://github.com/codama-idl/codama
|
|
38
41
|
*/
|
|
39
42
|
|
|
40
|
-
declare const
|
|
41
|
-
declare function
|
|
42
|
-
type
|
|
43
|
+
declare const ARCIUM_SIGNER_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
44
|
+
declare function getArciumSignerAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
45
|
+
type ArciumSignerAccount = {
|
|
43
46
|
discriminator: ReadonlyUint8Array;
|
|
44
47
|
bump: number;
|
|
45
|
-
updateAuthority: Address;
|
|
46
|
-
protocolFeeBp: number;
|
|
47
|
-
feeClaimer: Address;
|
|
48
|
-
/** Reserved for future use */
|
|
49
|
-
reserved: Array<number>;
|
|
50
48
|
};
|
|
51
|
-
type
|
|
49
|
+
type ArciumSignerAccountArgs = {
|
|
52
50
|
bump: number;
|
|
53
|
-
updateAuthority: Address;
|
|
54
|
-
protocolFeeBp: number;
|
|
55
|
-
feeClaimer: Address;
|
|
56
|
-
/** Reserved for future use */
|
|
57
|
-
reserved: Array<number>;
|
|
58
|
-
};
|
|
59
|
-
declare function getCentralStateEncoder(): FixedSizeEncoder<CentralStateArgs>;
|
|
60
|
-
declare function getCentralStateDecoder(): FixedSizeDecoder<CentralState>;
|
|
61
|
-
declare function getCentralStateCodec(): FixedSizeCodec<CentralStateArgs, CentralState>;
|
|
62
|
-
declare function decodeCentralState<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<CentralState, TAddress>;
|
|
63
|
-
declare function decodeCentralState<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<CentralState, TAddress>;
|
|
64
|
-
declare function fetchCentralState<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<CentralState, TAddress>>;
|
|
65
|
-
declare function fetchMaybeCentralState<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<CentralState, TAddress>>;
|
|
66
|
-
declare function fetchAllCentralState(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<CentralState>[]>;
|
|
67
|
-
declare function fetchAllMaybeCentralState(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<CentralState>[]>;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
71
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
72
|
-
* to add features, then rerun Codama to update it.
|
|
73
|
-
*
|
|
74
|
-
* @see https://github.com/codama-idl/codama
|
|
75
|
-
*/
|
|
76
|
-
|
|
77
|
-
type AccountChangeCancelledEvent = {
|
|
78
|
-
centralState: Address;
|
|
79
|
-
changeType: string;
|
|
80
|
-
cancelledBy: Address;
|
|
81
|
-
proposedValue: Address;
|
|
82
|
-
timestamp: bigint;
|
|
83
|
-
};
|
|
84
|
-
type AccountChangeCancelledEventArgs = {
|
|
85
|
-
centralState: Address;
|
|
86
|
-
changeType: string;
|
|
87
|
-
cancelledBy: Address;
|
|
88
|
-
proposedValue: Address;
|
|
89
|
-
timestamp: number | bigint;
|
|
90
51
|
};
|
|
91
|
-
declare function
|
|
92
|
-
declare function
|
|
93
|
-
declare function
|
|
52
|
+
declare function getArciumSignerAccountEncoder(): FixedSizeEncoder<ArciumSignerAccountArgs>;
|
|
53
|
+
declare function getArciumSignerAccountDecoder(): FixedSizeDecoder<ArciumSignerAccount>;
|
|
54
|
+
declare function getArciumSignerAccountCodec(): FixedSizeCodec<ArciumSignerAccountArgs, ArciumSignerAccount>;
|
|
55
|
+
declare function decodeArciumSignerAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<ArciumSignerAccount, TAddress>;
|
|
56
|
+
declare function decodeArciumSignerAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<ArciumSignerAccount, TAddress>;
|
|
57
|
+
declare function fetchArciumSignerAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<ArciumSignerAccount, TAddress>>;
|
|
58
|
+
declare function fetchMaybeArciumSignerAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<ArciumSignerAccount, TAddress>>;
|
|
59
|
+
declare function fetchAllArciumSignerAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<ArciumSignerAccount>[]>;
|
|
60
|
+
declare function fetchAllMaybeArciumSignerAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<ArciumSignerAccount>[]>;
|
|
94
61
|
|
|
95
62
|
/**
|
|
96
63
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -100,23 +67,17 @@ declare function getAccountChangeCancelledEventCodec(): Codec<AccountChangeCance
|
|
|
100
67
|
* @see https://github.com/codama-idl/codama
|
|
101
68
|
*/
|
|
102
69
|
|
|
103
|
-
type
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
oldValue: Address;
|
|
107
|
-
newValue: Address;
|
|
108
|
-
timestamp: bigint;
|
|
70
|
+
type Activation = {
|
|
71
|
+
activationEpoch: Epoch;
|
|
72
|
+
deactivationEpoch: Epoch;
|
|
109
73
|
};
|
|
110
|
-
type
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
oldValue: Address;
|
|
114
|
-
newValue: Address;
|
|
115
|
-
timestamp: number | bigint;
|
|
74
|
+
type ActivationArgs = {
|
|
75
|
+
activationEpoch: EpochArgs;
|
|
76
|
+
deactivationEpoch: EpochArgs;
|
|
116
77
|
};
|
|
117
|
-
declare function
|
|
118
|
-
declare function
|
|
119
|
-
declare function
|
|
78
|
+
declare function getActivationEncoder(): FixedSizeEncoder<ActivationArgs>;
|
|
79
|
+
declare function getActivationDecoder(): FixedSizeDecoder<Activation>;
|
|
80
|
+
declare function getActivationCodec(): FixedSizeCodec<ActivationArgs, Activation>;
|
|
120
81
|
|
|
121
82
|
/**
|
|
122
83
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -126,45 +87,21 @@ declare function getAccountChangeFinalizedEventCodec(): Codec<AccountChangeFinal
|
|
|
126
87
|
* @see https://github.com/codama-idl/codama
|
|
127
88
|
*/
|
|
128
89
|
|
|
129
|
-
type
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
proposedValue: Address;
|
|
134
|
-
executeAfter: bigint;
|
|
90
|
+
type AllowedMintInitializedEvent = {
|
|
91
|
+
allowedMint: Address;
|
|
92
|
+
platform: Address;
|
|
93
|
+
mint: Address;
|
|
135
94
|
timestamp: bigint;
|
|
136
95
|
};
|
|
137
|
-
type
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
proposedValue: Address;
|
|
142
|
-
executeAfter: number | bigint;
|
|
96
|
+
type AllowedMintInitializedEventArgs = {
|
|
97
|
+
allowedMint: Address;
|
|
98
|
+
platform: Address;
|
|
99
|
+
mint: Address;
|
|
143
100
|
timestamp: number | bigint;
|
|
144
101
|
};
|
|
145
|
-
declare function
|
|
146
|
-
declare function
|
|
147
|
-
declare function
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
151
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
152
|
-
* to add features, then rerun Codama to update it.
|
|
153
|
-
*
|
|
154
|
-
* @see https://github.com/codama-idl/codama
|
|
155
|
-
*/
|
|
156
|
-
|
|
157
|
-
type Activation = {
|
|
158
|
-
activationEpoch: Epoch;
|
|
159
|
-
deactivationEpoch: Epoch;
|
|
160
|
-
};
|
|
161
|
-
type ActivationArgs = {
|
|
162
|
-
activationEpoch: EpochArgs;
|
|
163
|
-
deactivationEpoch: EpochArgs;
|
|
164
|
-
};
|
|
165
|
-
declare function getActivationEncoder(): FixedSizeEncoder<ActivationArgs>;
|
|
166
|
-
declare function getActivationDecoder(): FixedSizeDecoder<Activation>;
|
|
167
|
-
declare function getActivationCodec(): FixedSizeCodec<ActivationArgs, Activation>;
|
|
102
|
+
declare function getAllowedMintInitializedEventEncoder(): FixedSizeEncoder<AllowedMintInitializedEventArgs>;
|
|
103
|
+
declare function getAllowedMintInitializedEventDecoder(): FixedSizeDecoder<AllowedMintInitializedEvent>;
|
|
104
|
+
declare function getAllowedMintInitializedEventCodec(): FixedSizeCodec<AllowedMintInitializedEventArgs, AllowedMintInitializedEvent>;
|
|
168
105
|
|
|
169
106
|
/**
|
|
170
107
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -218,6 +155,134 @@ declare function isCircuitSource<K extends CircuitSource['__kind']>(kind: K, val
|
|
|
218
155
|
__kind: K;
|
|
219
156
|
};
|
|
220
157
|
|
|
158
|
+
/**
|
|
159
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
160
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
161
|
+
* to add features, then rerun Codama to update it.
|
|
162
|
+
*
|
|
163
|
+
* @see https://github.com/codama-idl/codama
|
|
164
|
+
*/
|
|
165
|
+
|
|
166
|
+
/** An account storing the current network epoch */
|
|
167
|
+
type ClockAccount = {
|
|
168
|
+
startEpoch: Epoch;
|
|
169
|
+
currentEpoch: Epoch;
|
|
170
|
+
startEpochTimestamp: Timestamp;
|
|
171
|
+
bump: number;
|
|
172
|
+
};
|
|
173
|
+
type ClockAccountArgs = {
|
|
174
|
+
startEpoch: EpochArgs;
|
|
175
|
+
currentEpoch: EpochArgs;
|
|
176
|
+
startEpochTimestamp: TimestampArgs;
|
|
177
|
+
bump: number;
|
|
178
|
+
};
|
|
179
|
+
declare function getClockAccountEncoder(): FixedSizeEncoder<ClockAccountArgs>;
|
|
180
|
+
declare function getClockAccountDecoder(): FixedSizeDecoder<ClockAccount>;
|
|
181
|
+
declare function getClockAccountCodec(): FixedSizeCodec<ClockAccountArgs, ClockAccount>;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
185
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
186
|
+
* to add features, then rerun Codama to update it.
|
|
187
|
+
*
|
|
188
|
+
* @see https://github.com/codama-idl/codama
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
type Cluster = {
|
|
192
|
+
tdInfo: Option<NodeMetadata>;
|
|
193
|
+
authority: Option<Address>;
|
|
194
|
+
clusterSize: number;
|
|
195
|
+
activation: Activation;
|
|
196
|
+
maxCapacity: bigint;
|
|
197
|
+
cuPrice: bigint;
|
|
198
|
+
cuPriceProposals: Array<bigint>;
|
|
199
|
+
lastUpdatedEpoch: Epoch;
|
|
200
|
+
nodes: Array<NodeRef>;
|
|
201
|
+
pendingNodes: Array<number>;
|
|
202
|
+
blsPublicKey: {
|
|
203
|
+
__kind: 'Set';
|
|
204
|
+
fields: readonly [BN254G2BLSPublicKey];
|
|
205
|
+
} | {
|
|
206
|
+
__kind: 'Unset';
|
|
207
|
+
fields: readonly [BN254G2BLSPublicKey, Array<boolean>];
|
|
208
|
+
};
|
|
209
|
+
bump: number;
|
|
210
|
+
};
|
|
211
|
+
type ClusterArgs = {
|
|
212
|
+
tdInfo: OptionOrNullable<NodeMetadataArgs>;
|
|
213
|
+
authority: OptionOrNullable<Address>;
|
|
214
|
+
clusterSize: number;
|
|
215
|
+
activation: ActivationArgs;
|
|
216
|
+
maxCapacity: number | bigint;
|
|
217
|
+
cuPrice: number | bigint;
|
|
218
|
+
cuPriceProposals: Array<number | bigint>;
|
|
219
|
+
lastUpdatedEpoch: EpochArgs;
|
|
220
|
+
nodes: Array<NodeRefArgs>;
|
|
221
|
+
pendingNodes: Array<number>;
|
|
222
|
+
blsPublicKey: {
|
|
223
|
+
__kind: 'Set';
|
|
224
|
+
fields: readonly [BN254G2BLSPublicKeyArgs];
|
|
225
|
+
} | {
|
|
226
|
+
__kind: 'Unset';
|
|
227
|
+
fields: readonly [BN254G2BLSPublicKeyArgs, Array<boolean>];
|
|
228
|
+
};
|
|
229
|
+
bump: number;
|
|
230
|
+
};
|
|
231
|
+
declare function getClusterEncoder(): Encoder<ClusterArgs>;
|
|
232
|
+
declare function getClusterDecoder(): Decoder<Cluster>;
|
|
233
|
+
declare function getClusterCodec(): Codec<ClusterArgs, Cluster>;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
237
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
238
|
+
* to add features, then rerun Codama to update it.
|
|
239
|
+
*
|
|
240
|
+
* @see https://github.com/codama-idl/codama
|
|
241
|
+
*/
|
|
242
|
+
|
|
243
|
+
type CollectedFees = {
|
|
244
|
+
platformFee: bigint;
|
|
245
|
+
rewardPoolFee: bigint;
|
|
246
|
+
creatorFee: bigint;
|
|
247
|
+
};
|
|
248
|
+
type CollectedFeesArgs = {
|
|
249
|
+
platformFee: number | bigint;
|
|
250
|
+
rewardPoolFee: number | bigint;
|
|
251
|
+
creatorFee: number | bigint;
|
|
252
|
+
};
|
|
253
|
+
declare function getCollectedFeesEncoder(): FixedSizeEncoder<CollectedFeesArgs>;
|
|
254
|
+
declare function getCollectedFeesDecoder(): FixedSizeDecoder<CollectedFees>;
|
|
255
|
+
declare function getCollectedFeesCodec(): FixedSizeCodec<CollectedFeesArgs, CollectedFees>;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
259
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
260
|
+
* to add features, then rerun Codama to update it.
|
|
261
|
+
*
|
|
262
|
+
* @see https://github.com/codama-idl/codama
|
|
263
|
+
*/
|
|
264
|
+
|
|
265
|
+
/** An account representing a [ComputationDefinition] in a MXE. */
|
|
266
|
+
type ComputationDefinitionAccount = {
|
|
267
|
+
deactivationSlot: Option<bigint>;
|
|
268
|
+
cuAmount: bigint;
|
|
269
|
+
definition: ComputationDefinitionMeta;
|
|
270
|
+
circuitSource: CircuitSource;
|
|
271
|
+
bump: number;
|
|
272
|
+
padding: Array<number>;
|
|
273
|
+
};
|
|
274
|
+
type ComputationDefinitionAccountArgs = {
|
|
275
|
+
deactivationSlot: OptionOrNullable<number | bigint>;
|
|
276
|
+
cuAmount: number | bigint;
|
|
277
|
+
definition: ComputationDefinitionMetaArgs;
|
|
278
|
+
circuitSource: CircuitSourceArgs;
|
|
279
|
+
bump: number;
|
|
280
|
+
padding: Array<number>;
|
|
281
|
+
};
|
|
282
|
+
declare function getComputationDefinitionAccountEncoder(): Encoder<ComputationDefinitionAccountArgs>;
|
|
283
|
+
declare function getComputationDefinitionAccountDecoder(): Decoder<ComputationDefinitionAccount>;
|
|
284
|
+
declare function getComputationDefinitionAccountCodec(): Codec<ComputationDefinitionAccountArgs, ComputationDefinitionAccount>;
|
|
285
|
+
|
|
221
286
|
/**
|
|
222
287
|
* This code was AUTOGENERATED using the Codama library.
|
|
223
288
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -260,6 +325,34 @@ declare function getComputationSignatureEncoder(): Encoder<ComputationSignatureA
|
|
|
260
325
|
declare function getComputationSignatureDecoder(): Decoder<ComputationSignature>;
|
|
261
326
|
declare function getComputationSignatureCodec(): Codec<ComputationSignatureArgs, ComputationSignature>;
|
|
262
327
|
|
|
328
|
+
/**
|
|
329
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
330
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
331
|
+
* to add features, then rerun Codama to update it.
|
|
332
|
+
*
|
|
333
|
+
* @see https://github.com/codama-idl/codama
|
|
334
|
+
*/
|
|
335
|
+
|
|
336
|
+
type CreatorFeesClaimedEvent = {
|
|
337
|
+
market: Address;
|
|
338
|
+
creatorFeeClaimer: Address;
|
|
339
|
+
mint: Address;
|
|
340
|
+
destination: Address;
|
|
341
|
+
amount: bigint;
|
|
342
|
+
timestamp: bigint;
|
|
343
|
+
};
|
|
344
|
+
type CreatorFeesClaimedEventArgs = {
|
|
345
|
+
market: Address;
|
|
346
|
+
creatorFeeClaimer: Address;
|
|
347
|
+
mint: Address;
|
|
348
|
+
destination: Address;
|
|
349
|
+
amount: number | bigint;
|
|
350
|
+
timestamp: number | bigint;
|
|
351
|
+
};
|
|
352
|
+
declare function getCreatorFeesClaimedEventEncoder(): FixedSizeEncoder<CreatorFeesClaimedEventArgs>;
|
|
353
|
+
declare function getCreatorFeesClaimedEventDecoder(): FixedSizeDecoder<CreatorFeesClaimedEvent>;
|
|
354
|
+
declare function getCreatorFeesClaimedEventCodec(): FixedSizeCodec<CreatorFeesClaimedEventArgs, CreatorFeesClaimedEvent>;
|
|
355
|
+
|
|
263
356
|
/**
|
|
264
357
|
* This code was AUTOGENERATED using the Codama library.
|
|
265
358
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -275,6 +368,64 @@ declare function getEpochEncoder(): FixedSizeEncoder<EpochArgs>;
|
|
|
275
368
|
declare function getEpochDecoder(): FixedSizeDecoder<Epoch>;
|
|
276
369
|
declare function getEpochCodec(): FixedSizeCodec<EpochArgs, Epoch>;
|
|
277
370
|
|
|
371
|
+
/**
|
|
372
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
373
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
374
|
+
* to add features, then rerun Codama to update it.
|
|
375
|
+
*
|
|
376
|
+
* @see https://github.com/codama-idl/codama
|
|
377
|
+
*/
|
|
378
|
+
|
|
379
|
+
type FeeClaimAuthorityChangedEvent = {
|
|
380
|
+
platformConfig: Address;
|
|
381
|
+
oldValue: Address;
|
|
382
|
+
newValue: Address;
|
|
383
|
+
timestamp: bigint;
|
|
384
|
+
};
|
|
385
|
+
type FeeClaimAuthorityChangedEventArgs = {
|
|
386
|
+
platformConfig: Address;
|
|
387
|
+
oldValue: Address;
|
|
388
|
+
newValue: Address;
|
|
389
|
+
timestamp: number | bigint;
|
|
390
|
+
};
|
|
391
|
+
declare function getFeeClaimAuthorityChangedEventEncoder(): FixedSizeEncoder<FeeClaimAuthorityChangedEventArgs>;
|
|
392
|
+
declare function getFeeClaimAuthorityChangedEventDecoder(): FixedSizeDecoder<FeeClaimAuthorityChangedEvent>;
|
|
393
|
+
declare function getFeeClaimAuthorityChangedEventCodec(): FixedSizeCodec<FeeClaimAuthorityChangedEventArgs, FeeClaimAuthorityChangedEvent>;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
397
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
398
|
+
* to add features, then rerun Codama to update it.
|
|
399
|
+
*
|
|
400
|
+
* @see https://github.com/codama-idl/codama
|
|
401
|
+
*/
|
|
402
|
+
|
|
403
|
+
type FeePool = {
|
|
404
|
+
bump: number;
|
|
405
|
+
};
|
|
406
|
+
type FeePoolArgs = FeePool;
|
|
407
|
+
declare function getFeePoolEncoder(): FixedSizeEncoder<FeePoolArgs>;
|
|
408
|
+
declare function getFeePoolDecoder(): FixedSizeDecoder<FeePool>;
|
|
409
|
+
declare function getFeePoolCodec(): FixedSizeCodec<FeePoolArgs, FeePool>;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
413
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
414
|
+
* to add features, then rerun Codama to update it.
|
|
415
|
+
*
|
|
416
|
+
* @see https://github.com/codama-idl/codama
|
|
417
|
+
*/
|
|
418
|
+
|
|
419
|
+
type FeeRates = {
|
|
420
|
+
platformFeeBp: number;
|
|
421
|
+
rewardPoolFeeBp: number;
|
|
422
|
+
creatorFeeBp: number;
|
|
423
|
+
};
|
|
424
|
+
type FeeRatesArgs = FeeRates;
|
|
425
|
+
declare function getFeeRatesEncoder(): FixedSizeEncoder<FeeRatesArgs>;
|
|
426
|
+
declare function getFeeRatesDecoder(): FixedSizeDecoder<FeeRates>;
|
|
427
|
+
declare function getFeeRatesCodec(): FixedSizeCodec<FeeRatesArgs, FeeRates>;
|
|
428
|
+
|
|
278
429
|
/**
|
|
279
430
|
* This code was AUTOGENERATED using the Codama library.
|
|
280
431
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -284,14 +435,16 @@ declare function getEpochCodec(): FixedSizeCodec<EpochArgs, Epoch>;
|
|
|
284
435
|
*/
|
|
285
436
|
|
|
286
437
|
type FeesClaimedEvent = {
|
|
287
|
-
|
|
438
|
+
market: Address;
|
|
439
|
+
platform: Address;
|
|
288
440
|
mint: Address;
|
|
289
441
|
destination: Address;
|
|
290
442
|
amount: bigint;
|
|
291
443
|
timestamp: bigint;
|
|
292
444
|
};
|
|
293
445
|
type FeesClaimedEventArgs = {
|
|
294
|
-
|
|
446
|
+
market: Address;
|
|
447
|
+
platform: Address;
|
|
295
448
|
mint: Address;
|
|
296
449
|
destination: Address;
|
|
297
450
|
amount: number | bigint;
|
|
@@ -330,34 +483,44 @@ declare function getLocalCircuitSourceCodec(): FixedSizeCodec<LocalCircuitSource
|
|
|
330
483
|
type MarketCreatedEvent = {
|
|
331
484
|
market: Address;
|
|
332
485
|
creator: Address;
|
|
486
|
+
platform: Address;
|
|
333
487
|
index: bigint;
|
|
334
488
|
mint: Address;
|
|
335
|
-
timeToStake: bigint;
|
|
336
|
-
timeToReveal: bigint;
|
|
337
489
|
earlinessCutoffSeconds: bigint;
|
|
338
|
-
|
|
490
|
+
earlinessMultiplier: number;
|
|
491
|
+
marketAuthority: Address;
|
|
339
492
|
authorizedReaderPubkey: Array<number>;
|
|
340
|
-
|
|
341
|
-
|
|
493
|
+
allowUnstakingEarly: boolean;
|
|
494
|
+
minStakeAmount: bigint;
|
|
495
|
+
feeRates: FeeRates;
|
|
496
|
+
creatorFeeClaimer: Address;
|
|
497
|
+
marketResolutionDeadlineSeconds: bigint;
|
|
498
|
+
minRevealPeriodSeconds: bigint;
|
|
499
|
+
maxRevealPeriodSeconds: bigint;
|
|
342
500
|
timestamp: bigint;
|
|
343
501
|
};
|
|
344
502
|
type MarketCreatedEventArgs = {
|
|
345
503
|
market: Address;
|
|
346
504
|
creator: Address;
|
|
505
|
+
platform: Address;
|
|
347
506
|
index: number | bigint;
|
|
348
507
|
mint: Address;
|
|
349
|
-
timeToStake: number | bigint;
|
|
350
|
-
timeToReveal: number | bigint;
|
|
351
508
|
earlinessCutoffSeconds: number | bigint;
|
|
352
|
-
|
|
509
|
+
earlinessMultiplier: number;
|
|
510
|
+
marketAuthority: Address;
|
|
353
511
|
authorizedReaderPubkey: Array<number>;
|
|
354
|
-
|
|
355
|
-
|
|
512
|
+
allowUnstakingEarly: boolean;
|
|
513
|
+
minStakeAmount: number | bigint;
|
|
514
|
+
feeRates: FeeRatesArgs;
|
|
515
|
+
creatorFeeClaimer: Address;
|
|
516
|
+
marketResolutionDeadlineSeconds: number | bigint;
|
|
517
|
+
minRevealPeriodSeconds: number | bigint;
|
|
518
|
+
maxRevealPeriodSeconds: number | bigint;
|
|
356
519
|
timestamp: number | bigint;
|
|
357
520
|
};
|
|
358
|
-
declare function getMarketCreatedEventEncoder():
|
|
359
|
-
declare function getMarketCreatedEventDecoder():
|
|
360
|
-
declare function getMarketCreatedEventCodec():
|
|
521
|
+
declare function getMarketCreatedEventEncoder(): FixedSizeEncoder<MarketCreatedEventArgs>;
|
|
522
|
+
declare function getMarketCreatedEventDecoder(): FixedSizeDecoder<MarketCreatedEvent>;
|
|
523
|
+
declare function getMarketCreatedEventCodec(): FixedSizeCodec<MarketCreatedEventArgs, MarketCreatedEvent>;
|
|
361
524
|
|
|
362
525
|
/**
|
|
363
526
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -370,13 +533,13 @@ declare function getMarketCreatedEventCodec(): Codec<MarketCreatedEventArgs, Mar
|
|
|
370
533
|
type MarketOpenedEvent = {
|
|
371
534
|
market: Address;
|
|
372
535
|
creator: Address;
|
|
373
|
-
|
|
536
|
+
stakeEndTimestamp: bigint;
|
|
374
537
|
timestamp: bigint;
|
|
375
538
|
};
|
|
376
539
|
type MarketOpenedEventArgs = {
|
|
377
540
|
market: Address;
|
|
378
541
|
creator: Address;
|
|
379
|
-
|
|
542
|
+
stakeEndTimestamp: number | bigint;
|
|
380
543
|
timestamp: number | bigint;
|
|
381
544
|
};
|
|
382
545
|
declare function getMarketOpenedEventEncoder(): FixedSizeEncoder<MarketOpenedEventArgs>;
|
|
@@ -394,14 +557,14 @@ declare function getMarketOpenedEventCodec(): FixedSizeCodec<MarketOpenedEventAr
|
|
|
394
557
|
type MarketOptionCreatedEvent = {
|
|
395
558
|
option: Address;
|
|
396
559
|
market: Address;
|
|
397
|
-
|
|
560
|
+
signer: Address;
|
|
398
561
|
id: bigint;
|
|
399
562
|
timestamp: bigint;
|
|
400
563
|
};
|
|
401
564
|
type MarketOptionCreatedEventArgs = {
|
|
402
565
|
option: Address;
|
|
403
566
|
market: Address;
|
|
404
|
-
|
|
567
|
+
signer: Address;
|
|
405
568
|
id: number | bigint;
|
|
406
569
|
timestamp: number | bigint;
|
|
407
570
|
};
|
|
@@ -417,17 +580,19 @@ declare function getMarketOptionCreatedEventCodec(): FixedSizeCodec<MarketOption
|
|
|
417
580
|
* @see https://github.com/codama-idl/codama
|
|
418
581
|
*/
|
|
419
582
|
|
|
420
|
-
type
|
|
583
|
+
type MarketResolvedEvent = {
|
|
421
584
|
market: Address;
|
|
585
|
+
marketAuthority: Address;
|
|
422
586
|
timestamp: bigint;
|
|
423
587
|
};
|
|
424
|
-
type
|
|
588
|
+
type MarketResolvedEventArgs = {
|
|
425
589
|
market: Address;
|
|
590
|
+
marketAuthority: Address;
|
|
426
591
|
timestamp: number | bigint;
|
|
427
592
|
};
|
|
428
|
-
declare function
|
|
429
|
-
declare function
|
|
430
|
-
declare function
|
|
593
|
+
declare function getMarketResolvedEventEncoder(): FixedSizeEncoder<MarketResolvedEventArgs>;
|
|
594
|
+
declare function getMarketResolvedEventDecoder(): FixedSizeDecoder<MarketResolvedEvent>;
|
|
595
|
+
declare function getMarketResolvedEventCodec(): FixedSizeCodec<MarketResolvedEventArgs, MarketResolvedEvent>;
|
|
431
596
|
|
|
432
597
|
/**
|
|
433
598
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -437,17 +602,48 @@ declare function getMarketPausedEventCodec(): FixedSizeCodec<MarketPausedEventAr
|
|
|
437
602
|
* @see https://github.com/codama-idl/codama
|
|
438
603
|
*/
|
|
439
604
|
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
605
|
+
/** A MPC Execution Environment. */
|
|
606
|
+
type MXEAccount = {
|
|
607
|
+
padding: number;
|
|
608
|
+
cluster: number;
|
|
609
|
+
keygenOffset: bigint;
|
|
610
|
+
keyRecoveryInitOffset: bigint;
|
|
611
|
+
mxeProgramId: Address;
|
|
612
|
+
authority: Option<Address>;
|
|
613
|
+
utilityPubkeys: {
|
|
614
|
+
__kind: 'Set';
|
|
615
|
+
fields: readonly [UtilityPubkeys];
|
|
616
|
+
} | {
|
|
617
|
+
__kind: 'Unset';
|
|
618
|
+
fields: readonly [UtilityPubkeys, Array<boolean>];
|
|
619
|
+
};
|
|
620
|
+
lutOffsetSlot: bigint;
|
|
621
|
+
computationDefinitions: Array<number>;
|
|
622
|
+
status: MxeStatus;
|
|
623
|
+
bump: number;
|
|
443
624
|
};
|
|
444
|
-
type
|
|
445
|
-
|
|
446
|
-
|
|
625
|
+
type MXEAccountArgs = {
|
|
626
|
+
padding: number;
|
|
627
|
+
cluster: number;
|
|
628
|
+
keygenOffset: number | bigint;
|
|
629
|
+
keyRecoveryInitOffset: number | bigint;
|
|
630
|
+
mxeProgramId: Address;
|
|
631
|
+
authority: OptionOrNullable<Address>;
|
|
632
|
+
utilityPubkeys: {
|
|
633
|
+
__kind: 'Set';
|
|
634
|
+
fields: readonly [UtilityPubkeysArgs];
|
|
635
|
+
} | {
|
|
636
|
+
__kind: 'Unset';
|
|
637
|
+
fields: readonly [UtilityPubkeysArgs, Array<boolean>];
|
|
638
|
+
};
|
|
639
|
+
lutOffsetSlot: number | bigint;
|
|
640
|
+
computationDefinitions: Array<number>;
|
|
641
|
+
status: MxeStatusArgs;
|
|
642
|
+
bump: number;
|
|
447
643
|
};
|
|
448
|
-
declare function
|
|
449
|
-
declare function
|
|
450
|
-
declare function
|
|
644
|
+
declare function getMXEAccountEncoder(): Encoder<MXEAccountArgs>;
|
|
645
|
+
declare function getMXEAccountDecoder(): Decoder<MXEAccount>;
|
|
646
|
+
declare function getMXEAccountCodec(): Codec<MXEAccountArgs, MXEAccount>;
|
|
451
647
|
|
|
452
648
|
/**
|
|
453
649
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -543,10 +739,38 @@ type OnChainCircuitSource = {
|
|
|
543
739
|
isCompleted: boolean;
|
|
544
740
|
uploadAuth: Address;
|
|
545
741
|
};
|
|
546
|
-
type OnChainCircuitSourceArgs = OnChainCircuitSource;
|
|
547
|
-
declare function getOnChainCircuitSourceEncoder(): FixedSizeEncoder<OnChainCircuitSourceArgs>;
|
|
548
|
-
declare function getOnChainCircuitSourceDecoder(): FixedSizeDecoder<OnChainCircuitSource>;
|
|
549
|
-
declare function getOnChainCircuitSourceCodec(): FixedSizeCodec<OnChainCircuitSourceArgs, OnChainCircuitSource>;
|
|
742
|
+
type OnChainCircuitSourceArgs = OnChainCircuitSource;
|
|
743
|
+
declare function getOnChainCircuitSourceEncoder(): FixedSizeEncoder<OnChainCircuitSourceArgs>;
|
|
744
|
+
declare function getOnChainCircuitSourceDecoder(): FixedSizeDecoder<OnChainCircuitSource>;
|
|
745
|
+
declare function getOnChainCircuitSourceCodec(): FixedSizeCodec<OnChainCircuitSourceArgs, OnChainCircuitSource>;
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
749
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
750
|
+
* to add features, then rerun Codama to update it.
|
|
751
|
+
*
|
|
752
|
+
* @see https://github.com/codama-idl/codama
|
|
753
|
+
*/
|
|
754
|
+
|
|
755
|
+
type OptionClosedEvent = {
|
|
756
|
+
option: Address;
|
|
757
|
+
optionId: bigint;
|
|
758
|
+
signer: Address;
|
|
759
|
+
creator: Address;
|
|
760
|
+
market: Address;
|
|
761
|
+
timestamp: bigint;
|
|
762
|
+
};
|
|
763
|
+
type OptionClosedEventArgs = {
|
|
764
|
+
option: Address;
|
|
765
|
+
optionId: number | bigint;
|
|
766
|
+
signer: Address;
|
|
767
|
+
creator: Address;
|
|
768
|
+
market: Address;
|
|
769
|
+
timestamp: number | bigint;
|
|
770
|
+
};
|
|
771
|
+
declare function getOptionClosedEventEncoder(): FixedSizeEncoder<OptionClosedEventArgs>;
|
|
772
|
+
declare function getOptionClosedEventDecoder(): FixedSizeDecoder<OptionClosedEvent>;
|
|
773
|
+
declare function getOptionClosedEventCodec(): FixedSizeCodec<OptionClosedEventArgs, OptionClosedEvent>;
|
|
550
774
|
|
|
551
775
|
/**
|
|
552
776
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -631,18 +855,54 @@ declare function getParameterCodec(): FixedSizeCodec<ParameterArgs, Parameter>;
|
|
|
631
855
|
|
|
632
856
|
type RevealPeriodEndedEvent = {
|
|
633
857
|
market: Address;
|
|
634
|
-
|
|
858
|
+
signer: Address;
|
|
635
859
|
timestamp: bigint;
|
|
636
860
|
};
|
|
637
861
|
type RevealPeriodEndedEventArgs = {
|
|
638
862
|
market: Address;
|
|
639
|
-
|
|
863
|
+
signer: Address;
|
|
640
864
|
timestamp: number | bigint;
|
|
641
865
|
};
|
|
642
866
|
declare function getRevealPeriodEndedEventEncoder(): FixedSizeEncoder<RevealPeriodEndedEventArgs>;
|
|
643
867
|
declare function getRevealPeriodEndedEventDecoder(): FixedSizeDecoder<RevealPeriodEndedEvent>;
|
|
644
868
|
declare function getRevealPeriodEndedEventCodec(): FixedSizeCodec<RevealPeriodEndedEventArgs, RevealPeriodEndedEvent>;
|
|
645
869
|
|
|
870
|
+
/**
|
|
871
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
872
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
873
|
+
* to add features, then rerun Codama to update it.
|
|
874
|
+
*
|
|
875
|
+
* @see https://github.com/codama-idl/codama
|
|
876
|
+
*/
|
|
877
|
+
|
|
878
|
+
type RevealStakeFinalizedEvent = {
|
|
879
|
+
owner: Address;
|
|
880
|
+
market: Address;
|
|
881
|
+
stakeAccount: Address;
|
|
882
|
+
stakeAccountId: number;
|
|
883
|
+
optionId: bigint;
|
|
884
|
+
userStake: bigint;
|
|
885
|
+
userScore: bigint;
|
|
886
|
+
totalScore: bigint;
|
|
887
|
+
totalStake: bigint;
|
|
888
|
+
timestamp: bigint;
|
|
889
|
+
};
|
|
890
|
+
type RevealStakeFinalizedEventArgs = {
|
|
891
|
+
owner: Address;
|
|
892
|
+
market: Address;
|
|
893
|
+
stakeAccount: Address;
|
|
894
|
+
stakeAccountId: number;
|
|
895
|
+
optionId: number | bigint;
|
|
896
|
+
userStake: number | bigint;
|
|
897
|
+
userScore: number | bigint;
|
|
898
|
+
totalScore: number | bigint;
|
|
899
|
+
totalStake: number | bigint;
|
|
900
|
+
timestamp: number | bigint;
|
|
901
|
+
};
|
|
902
|
+
declare function getRevealStakeFinalizedEventEncoder(): FixedSizeEncoder<RevealStakeFinalizedEventArgs>;
|
|
903
|
+
declare function getRevealStakeFinalizedEventDecoder(): FixedSizeDecoder<RevealStakeFinalizedEvent>;
|
|
904
|
+
declare function getRevealStakeFinalizedEventCodec(): FixedSizeCodec<RevealStakeFinalizedEventArgs, RevealStakeFinalizedEvent>;
|
|
905
|
+
|
|
646
906
|
/**
|
|
647
907
|
* This code was AUTOGENERATED using the Codama library.
|
|
648
908
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -877,34 +1137,6 @@ declare function getStakeOutputStruct0Encoder(): FixedSizeEncoder<StakeOutputStr
|
|
|
877
1137
|
declare function getStakeOutputStruct0Decoder(): FixedSizeDecoder<StakeOutputStruct0>;
|
|
878
1138
|
declare function getStakeOutputStruct0Codec(): FixedSizeCodec<StakeOutputStruct0Args, StakeOutputStruct0>;
|
|
879
1139
|
|
|
880
|
-
/**
|
|
881
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
882
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
883
|
-
* to add features, then rerun Codama to update it.
|
|
884
|
-
*
|
|
885
|
-
* @see https://github.com/codama-idl/codama
|
|
886
|
-
*/
|
|
887
|
-
|
|
888
|
-
type StakeReclaimedEvent = {
|
|
889
|
-
owner: Address;
|
|
890
|
-
market: Address;
|
|
891
|
-
stakeAccount: Address;
|
|
892
|
-
stakeAccountId: number;
|
|
893
|
-
amount: bigint;
|
|
894
|
-
timestamp: bigint;
|
|
895
|
-
};
|
|
896
|
-
type StakeReclaimedEventArgs = {
|
|
897
|
-
owner: Address;
|
|
898
|
-
market: Address;
|
|
899
|
-
stakeAccount: Address;
|
|
900
|
-
stakeAccountId: number;
|
|
901
|
-
amount: number | bigint;
|
|
902
|
-
timestamp: number | bigint;
|
|
903
|
-
};
|
|
904
|
-
declare function getStakeReclaimedEventEncoder(): FixedSizeEncoder<StakeReclaimedEventArgs>;
|
|
905
|
-
declare function getStakeReclaimedEventDecoder(): FixedSizeDecoder<StakeReclaimedEvent>;
|
|
906
|
-
declare function getStakeReclaimedEventCodec(): FixedSizeCodec<StakeReclaimedEventArgs, StakeReclaimedEvent>;
|
|
907
|
-
|
|
908
1140
|
/**
|
|
909
1141
|
* This code was AUTOGENERATED using the Codama library.
|
|
910
1142
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -943,27 +1175,17 @@ declare function getStakeRevealedEventCodec(): FixedSizeCodec<StakeRevealedEvent
|
|
|
943
1175
|
* @see https://github.com/codama-idl/codama
|
|
944
1176
|
*/
|
|
945
1177
|
|
|
946
|
-
type
|
|
947
|
-
owner: Address;
|
|
1178
|
+
type StakingPausedEvent = {
|
|
948
1179
|
market: Address;
|
|
949
|
-
stakeAccount: Address;
|
|
950
|
-
stakeAccountId: number;
|
|
951
|
-
refundedAmount: bigint;
|
|
952
|
-
refundedFee: bigint;
|
|
953
1180
|
timestamp: bigint;
|
|
954
1181
|
};
|
|
955
|
-
type
|
|
956
|
-
owner: Address;
|
|
1182
|
+
type StakingPausedEventArgs = {
|
|
957
1183
|
market: Address;
|
|
958
|
-
stakeAccount: Address;
|
|
959
|
-
stakeAccountId: number;
|
|
960
|
-
refundedAmount: number | bigint;
|
|
961
|
-
refundedFee: number | bigint;
|
|
962
1184
|
timestamp: number | bigint;
|
|
963
1185
|
};
|
|
964
|
-
declare function
|
|
965
|
-
declare function
|
|
966
|
-
declare function
|
|
1186
|
+
declare function getStakingPausedEventEncoder(): FixedSizeEncoder<StakingPausedEventArgs>;
|
|
1187
|
+
declare function getStakingPausedEventDecoder(): FixedSizeDecoder<StakingPausedEvent>;
|
|
1188
|
+
declare function getStakingPausedEventCodec(): FixedSizeCodec<StakingPausedEventArgs, StakingPausedEvent>;
|
|
967
1189
|
|
|
968
1190
|
/**
|
|
969
1191
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -973,51 +1195,17 @@ declare function getStuckStakeClosedEventCodec(): FixedSizeCodec<StuckStakeClose
|
|
|
973
1195
|
* @see https://github.com/codama-idl/codama
|
|
974
1196
|
*/
|
|
975
1197
|
|
|
976
|
-
type
|
|
977
|
-
owner: Address;
|
|
1198
|
+
type StakingResumedEvent = {
|
|
978
1199
|
market: Address;
|
|
979
|
-
stakeAccount: Address;
|
|
980
|
-
stakeAccountId: number;
|
|
981
|
-
optionId: bigint;
|
|
982
|
-
userStake: bigint;
|
|
983
|
-
userScore: bigint;
|
|
984
|
-
totalScore: bigint;
|
|
985
|
-
totalStake: bigint;
|
|
986
1200
|
timestamp: bigint;
|
|
987
1201
|
};
|
|
988
|
-
type
|
|
989
|
-
owner: Address;
|
|
1202
|
+
type StakingResumedEventArgs = {
|
|
990
1203
|
market: Address;
|
|
991
|
-
stakeAccount: Address;
|
|
992
|
-
stakeAccountId: number;
|
|
993
|
-
optionId: number | bigint;
|
|
994
|
-
userStake: number | bigint;
|
|
995
|
-
userScore: number | bigint;
|
|
996
|
-
totalScore: number | bigint;
|
|
997
|
-
totalStake: number | bigint;
|
|
998
|
-
timestamp: number | bigint;
|
|
999
|
-
};
|
|
1000
|
-
declare function getTallyIncrementedEventEncoder(): FixedSizeEncoder<TallyIncrementedEventArgs>;
|
|
1001
|
-
declare function getTallyIncrementedEventDecoder(): FixedSizeDecoder<TallyIncrementedEvent>;
|
|
1002
|
-
declare function getTallyIncrementedEventCodec(): FixedSizeCodec<TallyIncrementedEventArgs, TallyIncrementedEvent>;
|
|
1003
|
-
|
|
1004
|
-
/**
|
|
1005
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1006
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1007
|
-
* to add features, then rerun Codama to update it.
|
|
1008
|
-
*
|
|
1009
|
-
* @see https://github.com/codama-idl/codama
|
|
1010
|
-
*/
|
|
1011
|
-
|
|
1012
|
-
type Timestamp = {
|
|
1013
|
-
timestamp: bigint;
|
|
1014
|
-
};
|
|
1015
|
-
type TimestampArgs = {
|
|
1016
1204
|
timestamp: number | bigint;
|
|
1017
1205
|
};
|
|
1018
|
-
declare function
|
|
1019
|
-
declare function
|
|
1020
|
-
declare function
|
|
1206
|
+
declare function getStakingResumedEventEncoder(): FixedSizeEncoder<StakingResumedEventArgs>;
|
|
1207
|
+
declare function getStakingResumedEventDecoder(): FixedSizeDecoder<StakingResumedEvent>;
|
|
1208
|
+
declare function getStakingResumedEventCodec(): FixedSizeCodec<StakingResumedEventArgs, StakingResumedEvent>;
|
|
1021
1209
|
|
|
1022
1210
|
/**
|
|
1023
1211
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -1027,23 +1215,31 @@ declare function getTimestampCodec(): FixedSizeCodec<TimestampArgs, Timestamp>;
|
|
|
1027
1215
|
* @see https://github.com/codama-idl/codama
|
|
1028
1216
|
*/
|
|
1029
1217
|
|
|
1030
|
-
type
|
|
1031
|
-
|
|
1218
|
+
type StuckStakeClosedEvent = {
|
|
1219
|
+
owner: Address;
|
|
1032
1220
|
market: Address;
|
|
1033
1221
|
stakeAccount: Address;
|
|
1034
1222
|
stakeAccountId: number;
|
|
1223
|
+
refundedAmount: bigint;
|
|
1224
|
+
refundedPlatformFee: bigint;
|
|
1225
|
+
refundedRewardPoolFee: bigint;
|
|
1226
|
+
refundedCreatorFee: bigint;
|
|
1035
1227
|
timestamp: bigint;
|
|
1036
1228
|
};
|
|
1037
|
-
type
|
|
1038
|
-
|
|
1229
|
+
type StuckStakeClosedEventArgs = {
|
|
1230
|
+
owner: Address;
|
|
1039
1231
|
market: Address;
|
|
1040
1232
|
stakeAccount: Address;
|
|
1041
1233
|
stakeAccountId: number;
|
|
1234
|
+
refundedAmount: number | bigint;
|
|
1235
|
+
refundedPlatformFee: number | bigint;
|
|
1236
|
+
refundedRewardPoolFee: number | bigint;
|
|
1237
|
+
refundedCreatorFee: number | bigint;
|
|
1042
1238
|
timestamp: number | bigint;
|
|
1043
1239
|
};
|
|
1044
|
-
declare function
|
|
1045
|
-
declare function
|
|
1046
|
-
declare function
|
|
1240
|
+
declare function getStuckStakeClosedEventEncoder(): FixedSizeEncoder<StuckStakeClosedEventArgs>;
|
|
1241
|
+
declare function getStuckStakeClosedEventDecoder(): FixedSizeDecoder<StuckStakeClosedEvent>;
|
|
1242
|
+
declare function getStuckStakeClosedEventCodec(): FixedSizeCodec<StuckStakeClosedEventArgs, StuckStakeClosedEvent>;
|
|
1047
1243
|
|
|
1048
1244
|
/**
|
|
1049
1245
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -1053,64 +1249,15 @@ declare function getUnstakedEventCodec(): FixedSizeCodec<UnstakedEventArgs, Unst
|
|
|
1053
1249
|
* @see https://github.com/codama-idl/codama
|
|
1054
1250
|
*/
|
|
1055
1251
|
|
|
1056
|
-
type
|
|
1057
|
-
user: Address;
|
|
1058
|
-
market: Address;
|
|
1059
|
-
stakeAccount: Address;
|
|
1060
|
-
stakeAccountId: number;
|
|
1061
|
-
unstakeableAtTimestamp: bigint;
|
|
1252
|
+
type Timestamp = {
|
|
1062
1253
|
timestamp: bigint;
|
|
1063
1254
|
};
|
|
1064
|
-
type
|
|
1065
|
-
user: Address;
|
|
1066
|
-
market: Address;
|
|
1067
|
-
stakeAccount: Address;
|
|
1068
|
-
stakeAccountId: number;
|
|
1069
|
-
unstakeableAtTimestamp: number | bigint;
|
|
1255
|
+
type TimestampArgs = {
|
|
1070
1256
|
timestamp: number | bigint;
|
|
1071
1257
|
};
|
|
1072
|
-
declare function
|
|
1073
|
-
declare function
|
|
1074
|
-
declare function
|
|
1075
|
-
|
|
1076
|
-
/**
|
|
1077
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1078
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1079
|
-
* to add features, then rerun Codama to update it.
|
|
1080
|
-
*
|
|
1081
|
-
* @see https://github.com/codama-idl/codama
|
|
1082
|
-
*/
|
|
1083
|
-
|
|
1084
|
-
type UtilityPubkeys = {
|
|
1085
|
-
x25519Pubkey: Array<number>;
|
|
1086
|
-
ed25519VerifyingKey: Array<number>;
|
|
1087
|
-
elgamalPubkey: Array<number>;
|
|
1088
|
-
pubkeyValidityProof: Array<number>;
|
|
1089
|
-
};
|
|
1090
|
-
type UtilityPubkeysArgs = UtilityPubkeys;
|
|
1091
|
-
declare function getUtilityPubkeysEncoder(): FixedSizeEncoder<UtilityPubkeysArgs>;
|
|
1092
|
-
declare function getUtilityPubkeysDecoder(): FixedSizeDecoder<UtilityPubkeys>;
|
|
1093
|
-
declare function getUtilityPubkeysCodec(): FixedSizeCodec<UtilityPubkeysArgs, UtilityPubkeys>;
|
|
1094
|
-
|
|
1095
|
-
/**
|
|
1096
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1097
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1098
|
-
* to add features, then rerun Codama to update it.
|
|
1099
|
-
*
|
|
1100
|
-
* @see https://github.com/codama-idl/codama
|
|
1101
|
-
*/
|
|
1102
|
-
|
|
1103
|
-
type WinningOption = {
|
|
1104
|
-
optionId: bigint;
|
|
1105
|
-
rewardPercentage: number;
|
|
1106
|
-
};
|
|
1107
|
-
type WinningOptionArgs = {
|
|
1108
|
-
optionId: number | bigint;
|
|
1109
|
-
rewardPercentage: number;
|
|
1110
|
-
};
|
|
1111
|
-
declare function getWinningOptionEncoder(): FixedSizeEncoder<WinningOptionArgs>;
|
|
1112
|
-
declare function getWinningOptionDecoder(): FixedSizeDecoder<WinningOption>;
|
|
1113
|
-
declare function getWinningOptionCodec(): FixedSizeCodec<WinningOptionArgs, WinningOption>;
|
|
1258
|
+
declare function getTimestampEncoder(): FixedSizeEncoder<TimestampArgs>;
|
|
1259
|
+
declare function getTimestampDecoder(): FixedSizeDecoder<Timestamp>;
|
|
1260
|
+
declare function getTimestampCodec(): FixedSizeCodec<TimestampArgs, Timestamp>;
|
|
1114
1261
|
|
|
1115
1262
|
/**
|
|
1116
1263
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -1120,115 +1267,25 @@ declare function getWinningOptionCodec(): FixedSizeCodec<WinningOptionArgs, Winn
|
|
|
1120
1267
|
* @see https://github.com/codama-idl/codama
|
|
1121
1268
|
*/
|
|
1122
1269
|
|
|
1123
|
-
type
|
|
1270
|
+
type UnstakedEvent = {
|
|
1271
|
+
owner: Address;
|
|
1124
1272
|
market: Address;
|
|
1125
|
-
|
|
1126
|
-
|
|
1273
|
+
stakeAccount: Address;
|
|
1274
|
+
stakeAccountId: number;
|
|
1275
|
+
amount: bigint;
|
|
1127
1276
|
timestamp: bigint;
|
|
1128
1277
|
};
|
|
1129
|
-
type
|
|
1278
|
+
type UnstakedEventArgs = {
|
|
1279
|
+
owner: Address;
|
|
1130
1280
|
market: Address;
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
declare function getWinningOptionsSelectedEventEncoder(): Encoder<WinningOptionsSelectedEventArgs>;
|
|
1136
|
-
declare function getWinningOptionsSelectedEventDecoder(): Decoder<WinningOptionsSelectedEvent>;
|
|
1137
|
-
declare function getWinningOptionsSelectedEventCodec(): Codec<WinningOptionsSelectedEventArgs, WinningOptionsSelectedEvent>;
|
|
1138
|
-
|
|
1139
|
-
/**
|
|
1140
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1141
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1142
|
-
* to add features, then rerun Codama to update it.
|
|
1143
|
-
*
|
|
1144
|
-
* @see https://github.com/codama-idl/codama
|
|
1145
|
-
*/
|
|
1146
|
-
|
|
1147
|
-
declare const CLOCK_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1148
|
-
declare function getClockAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
1149
|
-
type ClockAccount = {
|
|
1150
|
-
discriminator: ReadonlyUint8Array;
|
|
1151
|
-
startEpoch: Epoch;
|
|
1152
|
-
currentEpoch: Epoch;
|
|
1153
|
-
startEpochTimestamp: Timestamp;
|
|
1154
|
-
bump: number;
|
|
1155
|
-
};
|
|
1156
|
-
type ClockAccountArgs = {
|
|
1157
|
-
startEpoch: EpochArgs;
|
|
1158
|
-
currentEpoch: EpochArgs;
|
|
1159
|
-
startEpochTimestamp: TimestampArgs;
|
|
1160
|
-
bump: number;
|
|
1161
|
-
};
|
|
1162
|
-
declare function getClockAccountEncoder(): FixedSizeEncoder<ClockAccountArgs>;
|
|
1163
|
-
declare function getClockAccountDecoder(): FixedSizeDecoder<ClockAccount>;
|
|
1164
|
-
declare function getClockAccountCodec(): FixedSizeCodec<ClockAccountArgs, ClockAccount>;
|
|
1165
|
-
declare function decodeClockAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<ClockAccount, TAddress>;
|
|
1166
|
-
declare function decodeClockAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<ClockAccount, TAddress>;
|
|
1167
|
-
declare function fetchClockAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<ClockAccount, TAddress>>;
|
|
1168
|
-
declare function fetchMaybeClockAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<ClockAccount, TAddress>>;
|
|
1169
|
-
declare function fetchAllClockAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<ClockAccount>[]>;
|
|
1170
|
-
declare function fetchAllMaybeClockAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<ClockAccount>[]>;
|
|
1171
|
-
|
|
1172
|
-
/**
|
|
1173
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1174
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1175
|
-
* to add features, then rerun Codama to update it.
|
|
1176
|
-
*
|
|
1177
|
-
* @see https://github.com/codama-idl/codama
|
|
1178
|
-
*/
|
|
1179
|
-
|
|
1180
|
-
declare const CLUSTER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1181
|
-
declare function getClusterDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
1182
|
-
type Cluster = {
|
|
1183
|
-
discriminator: ReadonlyUint8Array;
|
|
1184
|
-
tdInfo: Option<NodeMetadata>;
|
|
1185
|
-
authority: Option<Address>;
|
|
1186
|
-
clusterSize: number;
|
|
1187
|
-
activation: Activation;
|
|
1188
|
-
maxCapacity: bigint;
|
|
1189
|
-
cuPrice: bigint;
|
|
1190
|
-
cuPriceProposals: Array<bigint>;
|
|
1191
|
-
lastUpdatedEpoch: Epoch;
|
|
1192
|
-
nodes: Array<NodeRef>;
|
|
1193
|
-
pendingNodes: Array<number>;
|
|
1194
|
-
blsPublicKey: {
|
|
1195
|
-
__kind: 'Set';
|
|
1196
|
-
fields: readonly [BN254G2BLSPublicKey];
|
|
1197
|
-
} | {
|
|
1198
|
-
__kind: 'Unset';
|
|
1199
|
-
fields: readonly [BN254G2BLSPublicKey, Array<boolean>];
|
|
1200
|
-
};
|
|
1201
|
-
bump: number;
|
|
1202
|
-
};
|
|
1203
|
-
type ClusterArgs = {
|
|
1204
|
-
tdInfo: OptionOrNullable<NodeMetadataArgs>;
|
|
1205
|
-
authority: OptionOrNullable<Address>;
|
|
1206
|
-
clusterSize: number;
|
|
1207
|
-
activation: ActivationArgs;
|
|
1208
|
-
maxCapacity: number | bigint;
|
|
1209
|
-
cuPrice: number | bigint;
|
|
1210
|
-
cuPriceProposals: Array<number | bigint>;
|
|
1211
|
-
lastUpdatedEpoch: EpochArgs;
|
|
1212
|
-
nodes: Array<NodeRefArgs>;
|
|
1213
|
-
pendingNodes: Array<number>;
|
|
1214
|
-
blsPublicKey: {
|
|
1215
|
-
__kind: 'Set';
|
|
1216
|
-
fields: readonly [BN254G2BLSPublicKeyArgs];
|
|
1217
|
-
} | {
|
|
1218
|
-
__kind: 'Unset';
|
|
1219
|
-
fields: readonly [BN254G2BLSPublicKeyArgs, Array<boolean>];
|
|
1220
|
-
};
|
|
1221
|
-
bump: number;
|
|
1281
|
+
stakeAccount: Address;
|
|
1282
|
+
stakeAccountId: number;
|
|
1283
|
+
amount: number | bigint;
|
|
1284
|
+
timestamp: number | bigint;
|
|
1222
1285
|
};
|
|
1223
|
-
declare function
|
|
1224
|
-
declare function
|
|
1225
|
-
declare function
|
|
1226
|
-
declare function decodeCluster<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Cluster, TAddress>;
|
|
1227
|
-
declare function decodeCluster<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Cluster, TAddress>;
|
|
1228
|
-
declare function fetchCluster<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Cluster, TAddress>>;
|
|
1229
|
-
declare function fetchMaybeCluster<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Cluster, TAddress>>;
|
|
1230
|
-
declare function fetchAllCluster(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Cluster>[]>;
|
|
1231
|
-
declare function fetchAllMaybeCluster(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Cluster>[]>;
|
|
1286
|
+
declare function getUnstakedEventEncoder(): FixedSizeEncoder<UnstakedEventArgs>;
|
|
1287
|
+
declare function getUnstakedEventDecoder(): FixedSizeDecoder<UnstakedEvent>;
|
|
1288
|
+
declare function getUnstakedEventCodec(): FixedSizeCodec<UnstakedEventArgs, UnstakedEvent>;
|
|
1232
1289
|
|
|
1233
1290
|
/**
|
|
1234
1291
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -1238,32 +1295,21 @@ declare function fetchAllMaybeCluster(rpc: Parameters<typeof fetchEncodedAccount
|
|
|
1238
1295
|
* @see https://github.com/codama-idl/codama
|
|
1239
1296
|
*/
|
|
1240
1297
|
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
cuAmount: bigint;
|
|
1247
|
-
definition: ComputationDefinitionMeta;
|
|
1248
|
-
circuitSource: CircuitSource;
|
|
1249
|
-
bump: number;
|
|
1298
|
+
type UpdateAuthorityChangedEvent = {
|
|
1299
|
+
platformConfig: Address;
|
|
1300
|
+
oldValue: Address;
|
|
1301
|
+
newValue: Address;
|
|
1302
|
+
timestamp: bigint;
|
|
1250
1303
|
};
|
|
1251
|
-
type
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
bump: number;
|
|
1304
|
+
type UpdateAuthorityChangedEventArgs = {
|
|
1305
|
+
platformConfig: Address;
|
|
1306
|
+
oldValue: Address;
|
|
1307
|
+
newValue: Address;
|
|
1308
|
+
timestamp: number | bigint;
|
|
1257
1309
|
};
|
|
1258
|
-
declare function
|
|
1259
|
-
declare function
|
|
1260
|
-
declare function
|
|
1261
|
-
declare function decodeComputationDefinitionAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<ComputationDefinitionAccount, TAddress>;
|
|
1262
|
-
declare function decodeComputationDefinitionAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<ComputationDefinitionAccount, TAddress>;
|
|
1263
|
-
declare function fetchComputationDefinitionAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<ComputationDefinitionAccount, TAddress>>;
|
|
1264
|
-
declare function fetchMaybeComputationDefinitionAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<ComputationDefinitionAccount, TAddress>>;
|
|
1265
|
-
declare function fetchAllComputationDefinitionAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<ComputationDefinitionAccount>[]>;
|
|
1266
|
-
declare function fetchAllMaybeComputationDefinitionAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<ComputationDefinitionAccount>[]>;
|
|
1310
|
+
declare function getUpdateAuthorityChangedEventEncoder(): FixedSizeEncoder<UpdateAuthorityChangedEventArgs>;
|
|
1311
|
+
declare function getUpdateAuthorityChangedEventDecoder(): FixedSizeDecoder<UpdateAuthorityChangedEvent>;
|
|
1312
|
+
declare function getUpdateAuthorityChangedEventCodec(): FixedSizeCodec<UpdateAuthorityChangedEventArgs, UpdateAuthorityChangedEvent>;
|
|
1267
1313
|
|
|
1268
1314
|
/**
|
|
1269
1315
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -1273,24 +1319,16 @@ declare function fetchAllMaybeComputationDefinitionAccount(rpc: Parameters<typeo
|
|
|
1273
1319
|
* @see https://github.com/codama-idl/codama
|
|
1274
1320
|
*/
|
|
1275
1321
|
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
};
|
|
1282
|
-
type FeePoolArgs = {
|
|
1283
|
-
bump: number;
|
|
1322
|
+
type UtilityPubkeys = {
|
|
1323
|
+
x25519Pubkey: Array<number>;
|
|
1324
|
+
ed25519VerifyingKey: Array<number>;
|
|
1325
|
+
elgamalPubkey: Array<number>;
|
|
1326
|
+
pubkeyValidityProof: Array<number>;
|
|
1284
1327
|
};
|
|
1285
|
-
|
|
1286
|
-
declare function
|
|
1287
|
-
declare function
|
|
1288
|
-
declare function
|
|
1289
|
-
declare function decodeFeePool<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<FeePool, TAddress>;
|
|
1290
|
-
declare function fetchFeePool<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<FeePool, TAddress>>;
|
|
1291
|
-
declare function fetchMaybeFeePool<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<FeePool, TAddress>>;
|
|
1292
|
-
declare function fetchAllFeePool(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<FeePool>[]>;
|
|
1293
|
-
declare function fetchAllMaybeFeePool(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<FeePool>[]>;
|
|
1328
|
+
type UtilityPubkeysArgs = UtilityPubkeys;
|
|
1329
|
+
declare function getUtilityPubkeysEncoder(): FixedSizeEncoder<UtilityPubkeysArgs>;
|
|
1330
|
+
declare function getUtilityPubkeysDecoder(): FixedSizeDecoder<UtilityPubkeys>;
|
|
1331
|
+
declare function getUtilityPubkeysCodec(): FixedSizeCodec<UtilityPubkeysArgs, UtilityPubkeys>;
|
|
1294
1332
|
|
|
1295
1333
|
/**
|
|
1296
1334
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -1300,54 +1338,27 @@ declare function fetchAllMaybeFeePool(rpc: Parameters<typeof fetchEncodedAccount
|
|
|
1300
1338
|
* @see https://github.com/codama-idl/codama
|
|
1301
1339
|
*/
|
|
1302
1340
|
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
authority: Option<Address>;
|
|
1312
|
-
utilityPubkeys: {
|
|
1313
|
-
__kind: 'Set';
|
|
1314
|
-
fields: readonly [UtilityPubkeys];
|
|
1315
|
-
} | {
|
|
1316
|
-
__kind: 'Unset';
|
|
1317
|
-
fields: readonly [UtilityPubkeys, Array<boolean>];
|
|
1318
|
-
};
|
|
1319
|
-
lutOffsetSlot: bigint;
|
|
1320
|
-
computationDefinitions: Array<number>;
|
|
1321
|
-
status: MxeStatus;
|
|
1322
|
-
bump: number;
|
|
1341
|
+
type WinningOptionSetEvent = {
|
|
1342
|
+
market: Address;
|
|
1343
|
+
marketAuthority: Address;
|
|
1344
|
+
option: Address;
|
|
1345
|
+
optionId: bigint;
|
|
1346
|
+
rewardPercentageBp: number;
|
|
1347
|
+
winningOptionAllocation: number;
|
|
1348
|
+
timestamp: bigint;
|
|
1323
1349
|
};
|
|
1324
|
-
type
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
fields: readonly [UtilityPubkeysArgs];
|
|
1333
|
-
} | {
|
|
1334
|
-
__kind: 'Unset';
|
|
1335
|
-
fields: readonly [UtilityPubkeysArgs, Array<boolean>];
|
|
1336
|
-
};
|
|
1337
|
-
lutOffsetSlot: number | bigint;
|
|
1338
|
-
computationDefinitions: Array<number>;
|
|
1339
|
-
status: MxeStatusArgs;
|
|
1340
|
-
bump: number;
|
|
1350
|
+
type WinningOptionSetEventArgs = {
|
|
1351
|
+
market: Address;
|
|
1352
|
+
marketAuthority: Address;
|
|
1353
|
+
option: Address;
|
|
1354
|
+
optionId: number | bigint;
|
|
1355
|
+
rewardPercentageBp: number;
|
|
1356
|
+
winningOptionAllocation: number;
|
|
1357
|
+
timestamp: number | bigint;
|
|
1341
1358
|
};
|
|
1342
|
-
declare function
|
|
1343
|
-
declare function
|
|
1344
|
-
declare function
|
|
1345
|
-
declare function decodeMXEAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<MXEAccount, TAddress>;
|
|
1346
|
-
declare function decodeMXEAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<MXEAccount, TAddress>;
|
|
1347
|
-
declare function fetchMXEAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<MXEAccount, TAddress>>;
|
|
1348
|
-
declare function fetchMaybeMXEAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<MXEAccount, TAddress>>;
|
|
1349
|
-
declare function fetchAllMXEAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<MXEAccount>[]>;
|
|
1350
|
-
declare function fetchAllMaybeMXEAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<MXEAccount>[]>;
|
|
1359
|
+
declare function getWinningOptionSetEventEncoder(): FixedSizeEncoder<WinningOptionSetEventArgs>;
|
|
1360
|
+
declare function getWinningOptionSetEventDecoder(): FixedSizeDecoder<WinningOptionSetEvent>;
|
|
1361
|
+
declare function getWinningOptionSetEventCodec(): FixedSizeCodec<WinningOptionSetEventArgs, WinningOptionSetEvent>;
|
|
1351
1362
|
|
|
1352
1363
|
/**
|
|
1353
1364
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -1365,38 +1376,56 @@ type OpportunityMarket = {
|
|
|
1365
1376
|
creator: Address;
|
|
1366
1377
|
index: bigint;
|
|
1367
1378
|
totalOptions: bigint;
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1379
|
+
platform: Address;
|
|
1380
|
+
stakeEndTimestamp: Option<bigint>;
|
|
1381
|
+
resolvedAtTimestamp: Option<bigint>;
|
|
1382
|
+
winningOptionAllocation: number;
|
|
1372
1383
|
rewardAmount: bigint;
|
|
1373
1384
|
marketAuthority: Address;
|
|
1374
1385
|
revealPeriodAuthority: Address;
|
|
1375
1386
|
mint: Address;
|
|
1376
1387
|
earlinessCutoffSeconds: bigint;
|
|
1377
|
-
|
|
1388
|
+
earlinessMultiplier: number;
|
|
1389
|
+
allowUnstakingEarly: boolean;
|
|
1378
1390
|
authorizedReaderPubkey: Array<number>;
|
|
1379
|
-
|
|
1380
|
-
|
|
1391
|
+
stakingPaused: boolean;
|
|
1392
|
+
feeRates: FeeRates;
|
|
1393
|
+
collectedPlatformFees: bigint;
|
|
1394
|
+
collectedCreatorFees: bigint;
|
|
1395
|
+
creatorFeeClaimer: Address;
|
|
1396
|
+
marketResolutionDeadlineSeconds: bigint;
|
|
1397
|
+
minRevealPeriodSeconds: bigint;
|
|
1398
|
+
maxRevealPeriodSeconds: bigint;
|
|
1399
|
+
revealEnded: boolean;
|
|
1400
|
+
minStakeAmount: bigint;
|
|
1381
1401
|
};
|
|
1382
1402
|
type OpportunityMarketArgs = {
|
|
1383
1403
|
bump: number;
|
|
1384
1404
|
creator: Address;
|
|
1385
1405
|
index: number | bigint;
|
|
1386
1406
|
totalOptions: number | bigint;
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1407
|
+
platform: Address;
|
|
1408
|
+
stakeEndTimestamp: OptionOrNullable<number | bigint>;
|
|
1409
|
+
resolvedAtTimestamp: OptionOrNullable<number | bigint>;
|
|
1410
|
+
winningOptionAllocation: number;
|
|
1391
1411
|
rewardAmount: number | bigint;
|
|
1392
1412
|
marketAuthority: Address;
|
|
1393
1413
|
revealPeriodAuthority: Address;
|
|
1394
1414
|
mint: Address;
|
|
1395
1415
|
earlinessCutoffSeconds: number | bigint;
|
|
1396
|
-
|
|
1416
|
+
earlinessMultiplier: number;
|
|
1417
|
+
allowUnstakingEarly: boolean;
|
|
1397
1418
|
authorizedReaderPubkey: Array<number>;
|
|
1398
|
-
|
|
1399
|
-
|
|
1419
|
+
stakingPaused: boolean;
|
|
1420
|
+
feeRates: FeeRatesArgs;
|
|
1421
|
+
collectedPlatformFees: number | bigint;
|
|
1422
|
+
collectedCreatorFees: number | bigint;
|
|
1423
|
+
creatorFeeClaimer: Address;
|
|
1424
|
+
marketResolutionDeadlineSeconds: number | bigint;
|
|
1425
|
+
minRevealPeriodSeconds: number | bigint;
|
|
1426
|
+
maxRevealPeriodSeconds: number | bigint;
|
|
1427
|
+
revealEnded: boolean;
|
|
1428
|
+
minStakeAmount: number | bigint;
|
|
1400
1429
|
};
|
|
1401
1430
|
declare function getOpportunityMarketEncoder(): Encoder<OpportunityMarketArgs>;
|
|
1402
1431
|
declare function getOpportunityMarketDecoder(): Decoder<OpportunityMarket>;
|
|
@@ -1422,18 +1451,24 @@ type OpportunityMarketOption = {
|
|
|
1422
1451
|
discriminator: ReadonlyUint8Array;
|
|
1423
1452
|
bump: number;
|
|
1424
1453
|
id: bigint;
|
|
1454
|
+
creator: Address;
|
|
1455
|
+
createdAt: bigint;
|
|
1425
1456
|
totalStaked: bigint;
|
|
1426
1457
|
totalScore: bigint;
|
|
1458
|
+
rewardPercentageBp: Option<number>;
|
|
1427
1459
|
};
|
|
1428
1460
|
type OpportunityMarketOptionArgs = {
|
|
1429
1461
|
bump: number;
|
|
1430
1462
|
id: number | bigint;
|
|
1463
|
+
creator: Address;
|
|
1464
|
+
createdAt: number | bigint;
|
|
1431
1465
|
totalStaked: number | bigint;
|
|
1432
1466
|
totalScore: number | bigint;
|
|
1467
|
+
rewardPercentageBp: OptionOrNullable<number>;
|
|
1433
1468
|
};
|
|
1434
|
-
declare function getOpportunityMarketOptionEncoder():
|
|
1435
|
-
declare function getOpportunityMarketOptionDecoder():
|
|
1436
|
-
declare function getOpportunityMarketOptionCodec():
|
|
1469
|
+
declare function getOpportunityMarketOptionEncoder(): Encoder<OpportunityMarketOptionArgs>;
|
|
1470
|
+
declare function getOpportunityMarketOptionDecoder(): Decoder<OpportunityMarketOption>;
|
|
1471
|
+
declare function getOpportunityMarketOptionCodec(): Codec<OpportunityMarketOptionArgs, OpportunityMarketOption>;
|
|
1437
1472
|
declare function decodeOpportunityMarketOption<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<OpportunityMarketOption, TAddress>;
|
|
1438
1473
|
declare function decodeOpportunityMarketOption<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<OpportunityMarketOption, TAddress>;
|
|
1439
1474
|
declare function fetchOpportunityMarketOption<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<OpportunityMarketOption, TAddress>>;
|
|
@@ -1476,6 +1511,49 @@ declare function fetchMaybeOpportunityMarketSponsor<TAddress extends string = st
|
|
|
1476
1511
|
declare function fetchAllOpportunityMarketSponsor(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<OpportunityMarketSponsor>[]>;
|
|
1477
1512
|
declare function fetchAllMaybeOpportunityMarketSponsor(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<OpportunityMarketSponsor>[]>;
|
|
1478
1513
|
|
|
1514
|
+
/**
|
|
1515
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1516
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1517
|
+
* to add features, then rerun Codama to update it.
|
|
1518
|
+
*
|
|
1519
|
+
* @see https://github.com/codama-idl/codama
|
|
1520
|
+
*/
|
|
1521
|
+
|
|
1522
|
+
declare const PLATFORM_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1523
|
+
declare function getPlatformConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
1524
|
+
type PlatformConfig = {
|
|
1525
|
+
discriminator: ReadonlyUint8Array;
|
|
1526
|
+
bump: number;
|
|
1527
|
+
name: string;
|
|
1528
|
+
updateAuthority: Address;
|
|
1529
|
+
feeClaimAuthority: Address;
|
|
1530
|
+
feeRates: FeeRates;
|
|
1531
|
+
marketResolutionDeadlineSeconds: bigint;
|
|
1532
|
+
minTimeToStakeSeconds: bigint;
|
|
1533
|
+
minRevealPeriodSeconds: bigint;
|
|
1534
|
+
maxRevealPeriodSeconds: bigint;
|
|
1535
|
+
};
|
|
1536
|
+
type PlatformConfigArgs = {
|
|
1537
|
+
bump: number;
|
|
1538
|
+
name: string;
|
|
1539
|
+
updateAuthority: Address;
|
|
1540
|
+
feeClaimAuthority: Address;
|
|
1541
|
+
feeRates: FeeRatesArgs;
|
|
1542
|
+
marketResolutionDeadlineSeconds: number | bigint;
|
|
1543
|
+
minTimeToStakeSeconds: number | bigint;
|
|
1544
|
+
minRevealPeriodSeconds: number | bigint;
|
|
1545
|
+
maxRevealPeriodSeconds: number | bigint;
|
|
1546
|
+
};
|
|
1547
|
+
declare function getPlatformConfigEncoder(): Encoder<PlatformConfigArgs>;
|
|
1548
|
+
declare function getPlatformConfigDecoder(): Decoder<PlatformConfig>;
|
|
1549
|
+
declare function getPlatformConfigCodec(): Codec<PlatformConfigArgs, PlatformConfig>;
|
|
1550
|
+
declare function decodePlatformConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<PlatformConfig, TAddress>;
|
|
1551
|
+
declare function decodePlatformConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<PlatformConfig, TAddress>;
|
|
1552
|
+
declare function fetchPlatformConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<PlatformConfig, TAddress>>;
|
|
1553
|
+
declare function fetchMaybePlatformConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<PlatformConfig, TAddress>>;
|
|
1554
|
+
declare function fetchAllPlatformConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<PlatformConfig>[]>;
|
|
1555
|
+
declare function fetchAllMaybePlatformConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<PlatformConfig>[]>;
|
|
1556
|
+
|
|
1479
1557
|
/**
|
|
1480
1558
|
* This code was AUTOGENERATED using the Codama library.
|
|
1481
1559
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -1499,16 +1577,13 @@ type StakeAccount = {
|
|
|
1499
1577
|
stakedAtTimestamp: Option<bigint>;
|
|
1500
1578
|
unstakedAtTimestamp: Option<bigint>;
|
|
1501
1579
|
amount: bigint;
|
|
1502
|
-
|
|
1580
|
+
collectedFees: CollectedFees;
|
|
1503
1581
|
revealedOption: Option<bigint>;
|
|
1504
1582
|
score: Option<bigint>;
|
|
1505
|
-
|
|
1506
|
-
unstakeableAtTimestamp: Option<bigint>;
|
|
1507
|
-
locked: boolean;
|
|
1508
|
-
stakeReclaimed: boolean;
|
|
1509
|
-
pendingStake: boolean;
|
|
1510
|
-
pendingReveal: boolean;
|
|
1583
|
+
unstaked: boolean;
|
|
1511
1584
|
id: number;
|
|
1585
|
+
pendingStakeComputation: Option<Address>;
|
|
1586
|
+
pendingReveal: boolean;
|
|
1512
1587
|
};
|
|
1513
1588
|
type StakeAccountArgs = {
|
|
1514
1589
|
encryptedOption: Array<number>;
|
|
@@ -1522,16 +1597,13 @@ type StakeAccountArgs = {
|
|
|
1522
1597
|
stakedAtTimestamp: OptionOrNullable<number | bigint>;
|
|
1523
1598
|
unstakedAtTimestamp: OptionOrNullable<number | bigint>;
|
|
1524
1599
|
amount: number | bigint;
|
|
1525
|
-
|
|
1600
|
+
collectedFees: CollectedFeesArgs;
|
|
1526
1601
|
revealedOption: OptionOrNullable<number | bigint>;
|
|
1527
1602
|
score: OptionOrNullable<number | bigint>;
|
|
1528
|
-
|
|
1529
|
-
unstakeableAtTimestamp: OptionOrNullable<number | bigint>;
|
|
1530
|
-
locked: boolean;
|
|
1531
|
-
stakeReclaimed: boolean;
|
|
1532
|
-
pendingStake: boolean;
|
|
1533
|
-
pendingReveal: boolean;
|
|
1603
|
+
unstaked: boolean;
|
|
1534
1604
|
id: number;
|
|
1605
|
+
pendingStakeComputation: OptionOrNullable<Address>;
|
|
1606
|
+
pendingReveal: boolean;
|
|
1535
1607
|
};
|
|
1536
1608
|
declare function getStakeAccountEncoder(): Encoder<StakeAccountArgs>;
|
|
1537
1609
|
declare function getStakeAccountDecoder(): Decoder<StakeAccount>;
|
|
@@ -1543,74 +1615,6 @@ declare function fetchMaybeStakeAccount<TAddress extends string = string>(rpc: P
|
|
|
1543
1615
|
declare function fetchAllStakeAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<StakeAccount>[]>;
|
|
1544
1616
|
declare function fetchAllMaybeStakeAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<StakeAccount>[]>;
|
|
1545
1617
|
|
|
1546
|
-
/**
|
|
1547
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1548
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1549
|
-
* to add features, then rerun Codama to update it.
|
|
1550
|
-
*
|
|
1551
|
-
* @see https://github.com/codama-idl/codama
|
|
1552
|
-
*/
|
|
1553
|
-
|
|
1554
|
-
declare const TIMELOCKED_ACCOUNT_CHANGE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1555
|
-
declare function getTimelockedAccountChangeDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
1556
|
-
type TimelockedAccountChange = {
|
|
1557
|
-
discriminator: ReadonlyUint8Array;
|
|
1558
|
-
bump: number;
|
|
1559
|
-
currentValue: Address;
|
|
1560
|
-
proposedValue: Address;
|
|
1561
|
-
executeAfter: bigint;
|
|
1562
|
-
};
|
|
1563
|
-
type TimelockedAccountChangeArgs = {
|
|
1564
|
-
bump: number;
|
|
1565
|
-
currentValue: Address;
|
|
1566
|
-
proposedValue: Address;
|
|
1567
|
-
executeAfter: number | bigint;
|
|
1568
|
-
};
|
|
1569
|
-
declare function getTimelockedAccountChangeEncoder(): FixedSizeEncoder<TimelockedAccountChangeArgs>;
|
|
1570
|
-
declare function getTimelockedAccountChangeDecoder(): FixedSizeDecoder<TimelockedAccountChange>;
|
|
1571
|
-
declare function getTimelockedAccountChangeCodec(): FixedSizeCodec<TimelockedAccountChangeArgs, TimelockedAccountChange>;
|
|
1572
|
-
declare function decodeTimelockedAccountChange<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<TimelockedAccountChange, TAddress>;
|
|
1573
|
-
declare function decodeTimelockedAccountChange<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<TimelockedAccountChange, TAddress>;
|
|
1574
|
-
declare function fetchTimelockedAccountChange<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<TimelockedAccountChange, TAddress>>;
|
|
1575
|
-
declare function fetchMaybeTimelockedAccountChange<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<TimelockedAccountChange, TAddress>>;
|
|
1576
|
-
declare function fetchAllTimelockedAccountChange(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<TimelockedAccountChange>[]>;
|
|
1577
|
-
declare function fetchAllMaybeTimelockedAccountChange(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<TimelockedAccountChange>[]>;
|
|
1578
|
-
|
|
1579
|
-
/**
|
|
1580
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
1581
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1582
|
-
* to add features, then rerun Codama to update it.
|
|
1583
|
-
*
|
|
1584
|
-
* @see https://github.com/codama-idl/codama
|
|
1585
|
-
*/
|
|
1586
|
-
|
|
1587
|
-
declare const TOKEN_VAULT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1588
|
-
declare function getTokenVaultDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
1589
|
-
type TokenVault = {
|
|
1590
|
-
discriminator: ReadonlyUint8Array;
|
|
1591
|
-
bump: number;
|
|
1592
|
-
mint: Address;
|
|
1593
|
-
collectedFees: bigint;
|
|
1594
|
-
/** Reserved for future use */
|
|
1595
|
-
reserved: Array<number>;
|
|
1596
|
-
};
|
|
1597
|
-
type TokenVaultArgs = {
|
|
1598
|
-
bump: number;
|
|
1599
|
-
mint: Address;
|
|
1600
|
-
collectedFees: number | bigint;
|
|
1601
|
-
/** Reserved for future use */
|
|
1602
|
-
reserved: Array<number>;
|
|
1603
|
-
};
|
|
1604
|
-
declare function getTokenVaultEncoder(): FixedSizeEncoder<TokenVaultArgs>;
|
|
1605
|
-
declare function getTokenVaultDecoder(): FixedSizeDecoder<TokenVault>;
|
|
1606
|
-
declare function getTokenVaultCodec(): FixedSizeCodec<TokenVaultArgs, TokenVault>;
|
|
1607
|
-
declare function decodeTokenVault<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<TokenVault, TAddress>;
|
|
1608
|
-
declare function decodeTokenVault<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<TokenVault, TAddress>;
|
|
1609
|
-
declare function fetchTokenVault<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<TokenVault, TAddress>>;
|
|
1610
|
-
declare function fetchMaybeTokenVault<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<TokenVault, TAddress>>;
|
|
1611
|
-
declare function fetchAllTokenVault(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<TokenVault>[]>;
|
|
1612
|
-
declare function fetchAllMaybeTokenVault(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<TokenVault>[]>;
|
|
1613
|
-
|
|
1614
1618
|
/**
|
|
1615
1619
|
* This code was AUTOGENERATED using the Codama library.
|
|
1616
1620
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -1621,24 +1625,24 @@ declare function fetchAllMaybeTokenVault(rpc: Parameters<typeof fetchEncodedAcco
|
|
|
1621
1625
|
|
|
1622
1626
|
/** AbortedComputation: Computation aborted */
|
|
1623
1627
|
declare const OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION = 6000;
|
|
1624
|
-
/** ClusterNotSet: Cluster not set */
|
|
1625
|
-
declare const OPPORTUNITY_MARKET_ERROR__CLUSTER_NOT_SET = 6001;
|
|
1626
1628
|
/** Unauthorized: Unauthorized */
|
|
1627
|
-
declare const OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED =
|
|
1629
|
+
declare const OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED = 6001;
|
|
1628
1630
|
/** InsufficientBalance: Insufficient balance */
|
|
1629
|
-
declare const OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE =
|
|
1631
|
+
declare const OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE = 6002;
|
|
1630
1632
|
/** InsufficientRewardFunding: Insufficient reward funding */
|
|
1631
|
-
declare const OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING =
|
|
1632
|
-
/**
|
|
1633
|
-
declare const
|
|
1633
|
+
declare const OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING = 6003;
|
|
1634
|
+
/** InvalidParameters: Invalid parameters */
|
|
1635
|
+
declare const OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS = 6004;
|
|
1634
1636
|
/** MarketAlreadyOpen: Market is already open */
|
|
1635
|
-
declare const OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN =
|
|
1637
|
+
declare const OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN = 6005;
|
|
1636
1638
|
/** InvalidOptionId: Invalid option ID */
|
|
1637
|
-
declare const OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID =
|
|
1639
|
+
declare const OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID = 6006;
|
|
1638
1640
|
/** MarketNotOpen: Market is not open */
|
|
1639
|
-
declare const OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN =
|
|
1640
|
-
/**
|
|
1641
|
-
declare const
|
|
1641
|
+
declare const OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN = 6007;
|
|
1642
|
+
/** TimeWindowMismatch: Operation called outside its permitted time window */
|
|
1643
|
+
declare const OPPORTUNITY_MARKET_ERROR__TIME_WINDOW_MISMATCH = 6008;
|
|
1644
|
+
/** NoStake: Stake account has no recorded stake */
|
|
1645
|
+
declare const OPPORTUNITY_MARKET_ERROR__NO_STAKE = 6009;
|
|
1642
1646
|
/** WinnerAlreadySelected: Market winner already selected */
|
|
1643
1647
|
declare const OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED = 6010;
|
|
1644
1648
|
/** AlreadyRevealed: Stake already revealed */
|
|
@@ -1667,29 +1671,31 @@ declare const OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED = 6021;
|
|
|
1667
1671
|
declare const OPPORTUNITY_MARKET_ERROR__LOCKED = 6022;
|
|
1668
1672
|
/** InvalidAccountState: Invalid account state */
|
|
1669
1673
|
declare const OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE = 6023;
|
|
1670
|
-
/** UnstakeDelayNotMet: Unstake delay period has not passed yet */
|
|
1671
|
-
declare const OPPORTUNITY_MARKET_ERROR__UNSTAKE_DELAY_NOT_MET = 6024;
|
|
1672
|
-
/** UnstakeNotInitiated: Unstake has not been initiated */
|
|
1673
|
-
declare const OPPORTUNITY_MARKET_ERROR__UNSTAKE_NOT_INITIATED = 6025;
|
|
1674
|
-
/** ClosingEarlyNotAllowed: Market cannot be closed before stake period ends */
|
|
1675
|
-
declare const OPPORTUNITY_MARKET_ERROR__CLOSING_EARLY_NOT_ALLOWED = 6026;
|
|
1676
1674
|
/** NoFeesToClaim: No fees to claim */
|
|
1677
|
-
declare const OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM =
|
|
1678
|
-
/** InvalidWinningOptionsInput: Invalid winning options input */
|
|
1679
|
-
declare const OPPORTUNITY_MARKET_ERROR__INVALID_WINNING_OPTIONS_INPUT = 6028;
|
|
1675
|
+
declare const OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM = 6024;
|
|
1680
1676
|
/** StakeNotStuck: Stake account is not in a stuck or failed state */
|
|
1681
|
-
declare const OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK =
|
|
1682
|
-
/** ProtocolFeeTooHigh: Protocol fee exceeds maximum 500 bp */
|
|
1683
|
-
declare const OPPORTUNITY_MARKET_ERROR__PROTOCOL_FEE_TOO_HIGH = 6030;
|
|
1677
|
+
declare const OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK = 6025;
|
|
1684
1678
|
/** MarketPaused: Market staking is currently paused */
|
|
1685
|
-
declare const OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED =
|
|
1679
|
+
declare const OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED = 6026;
|
|
1686
1680
|
/** MarketNotPaused: Market is not paused */
|
|
1687
|
-
declare const OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED =
|
|
1688
|
-
/**
|
|
1689
|
-
declare const
|
|
1690
|
-
/**
|
|
1691
|
-
declare const
|
|
1692
|
-
|
|
1681
|
+
declare const OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED = 6027;
|
|
1682
|
+
/** StakeBelowMinimum: Stake amount is below the market minimum */
|
|
1683
|
+
declare const OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM = 6028;
|
|
1684
|
+
/** SelectOptionsDeadlinePassed: Deadline for selecting winning options has passed */
|
|
1685
|
+
declare const OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED = 6029;
|
|
1686
|
+
/** InvalidFeeRates: Invalid fee rates */
|
|
1687
|
+
declare const OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES = 6030;
|
|
1688
|
+
/** OptionStillNeeded: Option still needed */
|
|
1689
|
+
declare const OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED = 6031;
|
|
1690
|
+
/** CreatorMismatch: Creator mismatch */
|
|
1691
|
+
declare const OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH = 6032;
|
|
1692
|
+
/** RevealPeriodNotOver: Reveal period not over */
|
|
1693
|
+
declare const OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER = 6033;
|
|
1694
|
+
/** NoRewardToClaim: No reward to claim */
|
|
1695
|
+
declare const OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM = 6034;
|
|
1696
|
+
/** RewardAlreadyClaimed: Reward already claimed */
|
|
1697
|
+
declare const OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED = 6035;
|
|
1698
|
+
type OpportunityMarketError = typeof OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION | typeof OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED | typeof OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH | typeof OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM | typeof OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE | typeof OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING | typeof OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE | typeof OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES | typeof OPPORTUNITY_MARKET_ERROR__INVALID_MINT | typeof OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID | typeof OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS | typeof OPPORTUNITY_MARKET_ERROR__LOCKED | typeof OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN | typeof OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN | typeof OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED | typeof OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED | typeof OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED | typeof OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM | typeof OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM | typeof OPPORTUNITY_MARKET_ERROR__NO_STAKE | typeof OPPORTUNITY_MARKET_ERROR__NOT_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED | typeof OPPORTUNITY_MARKET_ERROR__OVERFLOW | typeof OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED | typeof OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER | typeof OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED | typeof OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED | typeof OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM | typeof OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK | typeof OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED | typeof OPPORTUNITY_MARKET_ERROR__TIME_WINDOW_MISMATCH | typeof OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED | typeof OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED;
|
|
1693
1699
|
declare function getOpportunityMarketErrorMessage(code: OpportunityMarketError): string;
|
|
1694
1700
|
declare function isOpportunityMarketError<TProgramErrorCode extends OpportunityMarketError>(error: unknown, transactionMessage: {
|
|
1695
1701
|
instructions: Record<number, {
|
|
@@ -1711,19 +1717,13 @@ declare function isOpportunityMarketError<TProgramErrorCode extends OpportunityM
|
|
|
1711
1717
|
|
|
1712
1718
|
declare const OPPORTUNITY_MARKET_PROGRAM_ADDRESS: Address<"B3NCHsGBkdZrPYPJY2rjg4UwmyRotMmFWhxa5hMHwLeg">;
|
|
1713
1719
|
declare enum OpportunityMarketAccount {
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
OpportunityMarket = 7,
|
|
1722
|
-
OpportunityMarketOption = 8,
|
|
1723
|
-
OpportunityMarketSponsor = 9,
|
|
1724
|
-
StakeAccount = 10,
|
|
1725
|
-
TimelockedAccountChange = 11,
|
|
1726
|
-
TokenVault = 12
|
|
1720
|
+
AllowedMint = 0,
|
|
1721
|
+
ArciumSignerAccount = 1,
|
|
1722
|
+
OpportunityMarket = 2,
|
|
1723
|
+
OpportunityMarketOption = 3,
|
|
1724
|
+
OpportunityMarketSponsor = 4,
|
|
1725
|
+
PlatformConfig = 5,
|
|
1726
|
+
StakeAccount = 6
|
|
1727
1727
|
}
|
|
1728
1728
|
declare function identifyOpportunityMarketAccount(account: {
|
|
1729
1729
|
data: ReadonlyUint8Array;
|
|
@@ -1731,36 +1731,33 @@ declare function identifyOpportunityMarketAccount(account: {
|
|
|
1731
1731
|
declare enum OpportunityMarketInstruction {
|
|
1732
1732
|
AddMarketOption = 0,
|
|
1733
1733
|
AddReward = 1,
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1734
|
+
ClaimCreatorFees = 2,
|
|
1735
|
+
ClaimFees = 3,
|
|
1736
|
+
CloseOptionAccount = 4,
|
|
1737
1737
|
CloseStakeAccount = 5,
|
|
1738
1738
|
CloseStuckStakeAccount = 6,
|
|
1739
1739
|
CreateMarket = 7,
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
UnstakeEarly = 29,
|
|
1762
|
-
UpdateCentralState = 30,
|
|
1763
|
-
WithdrawReward = 31
|
|
1740
|
+
EndRevealPeriod = 8,
|
|
1741
|
+
FinalizeRevealStake = 9,
|
|
1742
|
+
InitAllowedMint = 10,
|
|
1743
|
+
InitPlatformConfig = 11,
|
|
1744
|
+
InitStakeAccount = 12,
|
|
1745
|
+
OpenMarket = 13,
|
|
1746
|
+
PauseStaking = 14,
|
|
1747
|
+
ResolveMarket = 15,
|
|
1748
|
+
ResumeStaking = 16,
|
|
1749
|
+
RevealStake = 17,
|
|
1750
|
+
RevealStakeCallback = 18,
|
|
1751
|
+
RevealStakeCompDef = 19,
|
|
1752
|
+
SetFeeClaimAuthority = 20,
|
|
1753
|
+
SetUpdateAuthority = 21,
|
|
1754
|
+
SetWinningOption = 22,
|
|
1755
|
+
Stake = 23,
|
|
1756
|
+
StakeCallback = 24,
|
|
1757
|
+
StakeCompDef = 25,
|
|
1758
|
+
Unstake = 26,
|
|
1759
|
+
UpdatePlatformConfig = 27,
|
|
1760
|
+
WithdrawReward = 28
|
|
1764
1761
|
}
|
|
1765
1762
|
declare function identifyOpportunityMarketInstruction(instruction: {
|
|
1766
1763
|
data: ReadonlyUint8Array;
|
|
@@ -1770,64 +1767,58 @@ type ParsedOpportunityMarketInstruction<TProgram extends string = 'B3NCHsGBkdZrP
|
|
|
1770
1767
|
} & ParsedAddMarketOptionInstruction<TProgram>) | ({
|
|
1771
1768
|
instructionType: OpportunityMarketInstruction.AddReward;
|
|
1772
1769
|
} & ParsedAddRewardInstruction<TProgram>) | ({
|
|
1773
|
-
instructionType: OpportunityMarketInstruction.
|
|
1774
|
-
} &
|
|
1775
|
-
instructionType: OpportunityMarketInstruction.CancelUpdateAuthorityChange;
|
|
1776
|
-
} & ParsedCancelUpdateAuthorityChangeInstruction<TProgram>) | ({
|
|
1770
|
+
instructionType: OpportunityMarketInstruction.ClaimCreatorFees;
|
|
1771
|
+
} & ParsedClaimCreatorFeesInstruction<TProgram>) | ({
|
|
1777
1772
|
instructionType: OpportunityMarketInstruction.ClaimFees;
|
|
1778
1773
|
} & ParsedClaimFeesInstruction<TProgram>) | ({
|
|
1774
|
+
instructionType: OpportunityMarketInstruction.CloseOptionAccount;
|
|
1775
|
+
} & ParsedCloseOptionAccountInstruction<TProgram>) | ({
|
|
1779
1776
|
instructionType: OpportunityMarketInstruction.CloseStakeAccount;
|
|
1780
1777
|
} & ParsedCloseStakeAccountInstruction<TProgram>) | ({
|
|
1781
1778
|
instructionType: OpportunityMarketInstruction.CloseStuckStakeAccount;
|
|
1782
1779
|
} & ParsedCloseStuckStakeAccountInstruction<TProgram>) | ({
|
|
1783
1780
|
instructionType: OpportunityMarketInstruction.CreateMarket;
|
|
1784
1781
|
} & ParsedCreateMarketInstruction<TProgram>) | ({
|
|
1785
|
-
instructionType: OpportunityMarketInstruction.DoUnstakeEarly;
|
|
1786
|
-
} & ParsedDoUnstakeEarlyInstruction<TProgram>) | ({
|
|
1787
1782
|
instructionType: OpportunityMarketInstruction.EndRevealPeriod;
|
|
1788
1783
|
} & ParsedEndRevealPeriodInstruction<TProgram>) | ({
|
|
1789
|
-
instructionType: OpportunityMarketInstruction.
|
|
1790
|
-
} &
|
|
1791
|
-
instructionType: OpportunityMarketInstruction.
|
|
1792
|
-
} &
|
|
1793
|
-
instructionType: OpportunityMarketInstruction.
|
|
1794
|
-
} &
|
|
1795
|
-
instructionType: OpportunityMarketInstruction.InitCentralState;
|
|
1796
|
-
} & ParsedInitCentralStateInstruction<TProgram>) | ({
|
|
1784
|
+
instructionType: OpportunityMarketInstruction.FinalizeRevealStake;
|
|
1785
|
+
} & ParsedFinalizeRevealStakeInstruction<TProgram>) | ({
|
|
1786
|
+
instructionType: OpportunityMarketInstruction.InitAllowedMint;
|
|
1787
|
+
} & ParsedInitAllowedMintInstruction<TProgram>) | ({
|
|
1788
|
+
instructionType: OpportunityMarketInstruction.InitPlatformConfig;
|
|
1789
|
+
} & ParsedInitPlatformConfigInstruction<TProgram>) | ({
|
|
1797
1790
|
instructionType: OpportunityMarketInstruction.InitStakeAccount;
|
|
1798
1791
|
} & ParsedInitStakeAccountInstruction<TProgram>) | ({
|
|
1799
|
-
instructionType: OpportunityMarketInstruction.InitTokenVault;
|
|
1800
|
-
} & ParsedInitTokenVaultInstruction<TProgram>) | ({
|
|
1801
1792
|
instructionType: OpportunityMarketInstruction.OpenMarket;
|
|
1802
1793
|
} & ParsedOpenMarketInstruction<TProgram>) | ({
|
|
1803
|
-
instructionType: OpportunityMarketInstruction.
|
|
1804
|
-
} &
|
|
1805
|
-
instructionType: OpportunityMarketInstruction.
|
|
1806
|
-
} &
|
|
1807
|
-
instructionType: OpportunityMarketInstruction.
|
|
1808
|
-
} &
|
|
1809
|
-
instructionType: OpportunityMarketInstruction.ReclaimStake;
|
|
1810
|
-
} & ParsedReclaimStakeInstruction<TProgram>) | ({
|
|
1811
|
-
instructionType: OpportunityMarketInstruction.ResumeMarket;
|
|
1812
|
-
} & ParsedResumeMarketInstruction<TProgram>) | ({
|
|
1794
|
+
instructionType: OpportunityMarketInstruction.PauseStaking;
|
|
1795
|
+
} & ParsedPauseStakingInstruction<TProgram>) | ({
|
|
1796
|
+
instructionType: OpportunityMarketInstruction.ResolveMarket;
|
|
1797
|
+
} & ParsedResolveMarketInstruction<TProgram>) | ({
|
|
1798
|
+
instructionType: OpportunityMarketInstruction.ResumeStaking;
|
|
1799
|
+
} & ParsedResumeStakingInstruction<TProgram>) | ({
|
|
1813
1800
|
instructionType: OpportunityMarketInstruction.RevealStake;
|
|
1814
1801
|
} & ParsedRevealStakeInstruction<TProgram>) | ({
|
|
1815
1802
|
instructionType: OpportunityMarketInstruction.RevealStakeCallback;
|
|
1816
1803
|
} & ParsedRevealStakeCallbackInstruction<TProgram>) | ({
|
|
1817
1804
|
instructionType: OpportunityMarketInstruction.RevealStakeCompDef;
|
|
1818
1805
|
} & ParsedRevealStakeCompDefInstruction<TProgram>) | ({
|
|
1819
|
-
instructionType: OpportunityMarketInstruction.
|
|
1820
|
-
} &
|
|
1806
|
+
instructionType: OpportunityMarketInstruction.SetFeeClaimAuthority;
|
|
1807
|
+
} & ParsedSetFeeClaimAuthorityInstruction<TProgram>) | ({
|
|
1808
|
+
instructionType: OpportunityMarketInstruction.SetUpdateAuthority;
|
|
1809
|
+
} & ParsedSetUpdateAuthorityInstruction<TProgram>) | ({
|
|
1810
|
+
instructionType: OpportunityMarketInstruction.SetWinningOption;
|
|
1811
|
+
} & ParsedSetWinningOptionInstruction<TProgram>) | ({
|
|
1821
1812
|
instructionType: OpportunityMarketInstruction.Stake;
|
|
1822
1813
|
} & ParsedStakeInstruction<TProgram>) | ({
|
|
1823
1814
|
instructionType: OpportunityMarketInstruction.StakeCallback;
|
|
1824
1815
|
} & ParsedStakeCallbackInstruction<TProgram>) | ({
|
|
1825
1816
|
instructionType: OpportunityMarketInstruction.StakeCompDef;
|
|
1826
1817
|
} & ParsedStakeCompDefInstruction<TProgram>) | ({
|
|
1827
|
-
instructionType: OpportunityMarketInstruction.
|
|
1828
|
-
} &
|
|
1829
|
-
instructionType: OpportunityMarketInstruction.
|
|
1830
|
-
} &
|
|
1818
|
+
instructionType: OpportunityMarketInstruction.Unstake;
|
|
1819
|
+
} & ParsedUnstakeInstruction<TProgram>) | ({
|
|
1820
|
+
instructionType: OpportunityMarketInstruction.UpdatePlatformConfig;
|
|
1821
|
+
} & ParsedUpdatePlatformConfigInstruction<TProgram>) | ({
|
|
1831
1822
|
instructionType: OpportunityMarketInstruction.WithdrawReward;
|
|
1832
1823
|
} & ParsedWithdrawRewardInstruction<TProgram>);
|
|
1833
1824
|
|
|
@@ -1841,8 +1832,8 @@ type ParsedOpportunityMarketInstruction<TProgram extends string = 'B3NCHsGBkdZrP
|
|
|
1841
1832
|
|
|
1842
1833
|
declare const ADD_MARKET_OPTION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1843
1834
|
declare function getAddMarketOptionDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
1844
|
-
type AddMarketOptionInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS,
|
|
1845
|
-
|
|
1835
|
+
type AddMarketOptionInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner 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<[
|
|
1836
|
+
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
1846
1837
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
1847
1838
|
TAccountOption extends string ? WritableAccount<TAccountOption> : TAccountOption,
|
|
1848
1839
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
@@ -1858,30 +1849,30 @@ type AddMarketOptionInstructionDataArgs = {
|
|
|
1858
1849
|
declare function getAddMarketOptionInstructionDataEncoder(): FixedSizeEncoder<AddMarketOptionInstructionDataArgs>;
|
|
1859
1850
|
declare function getAddMarketOptionInstructionDataDecoder(): FixedSizeDecoder<AddMarketOptionInstructionData>;
|
|
1860
1851
|
declare function getAddMarketOptionInstructionDataCodec(): FixedSizeCodec<AddMarketOptionInstructionDataArgs, AddMarketOptionInstructionData>;
|
|
1861
|
-
type AddMarketOptionAsyncInput<
|
|
1862
|
-
|
|
1852
|
+
type AddMarketOptionAsyncInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountOption extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1853
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
1863
1854
|
market: Address<TAccountMarket>;
|
|
1864
1855
|
option?: Address<TAccountOption>;
|
|
1865
1856
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1866
1857
|
optionId: AddMarketOptionInstructionDataArgs['optionId'];
|
|
1867
1858
|
};
|
|
1868
|
-
declare function getAddMarketOptionInstructionAsync<
|
|
1859
|
+
declare function getAddMarketOptionInstructionAsync<TAccountSigner extends string, TAccountMarket extends string, TAccountOption extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: AddMarketOptionAsyncInput<TAccountSigner, TAccountMarket, TAccountOption, TAccountSystemProgram>, config?: {
|
|
1869
1860
|
programAddress?: TProgramAddress;
|
|
1870
|
-
}): Promise<AddMarketOptionInstruction<TProgramAddress,
|
|
1871
|
-
type AddMarketOptionInput<
|
|
1872
|
-
|
|
1861
|
+
}): Promise<AddMarketOptionInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountOption, TAccountSystemProgram>>;
|
|
1862
|
+
type AddMarketOptionInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountOption extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1863
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
1873
1864
|
market: Address<TAccountMarket>;
|
|
1874
1865
|
option: Address<TAccountOption>;
|
|
1875
1866
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1876
1867
|
optionId: AddMarketOptionInstructionDataArgs['optionId'];
|
|
1877
1868
|
};
|
|
1878
|
-
declare function getAddMarketOptionInstruction<
|
|
1869
|
+
declare function getAddMarketOptionInstruction<TAccountSigner extends string, TAccountMarket extends string, TAccountOption extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: AddMarketOptionInput<TAccountSigner, TAccountMarket, TAccountOption, TAccountSystemProgram>, config?: {
|
|
1879
1870
|
programAddress?: TProgramAddress;
|
|
1880
|
-
}): AddMarketOptionInstruction<TProgramAddress,
|
|
1871
|
+
}): AddMarketOptionInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountOption, TAccountSystemProgram>;
|
|
1881
1872
|
type ParsedAddMarketOptionInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1882
1873
|
programAddress: Address<TProgram>;
|
|
1883
1874
|
accounts: {
|
|
1884
|
-
|
|
1875
|
+
signer: TAccountMetas[0];
|
|
1885
1876
|
market: TAccountMetas[1];
|
|
1886
1877
|
option: TAccountMetas[2];
|
|
1887
1878
|
systemProgram: TAccountMetas[3];
|
|
@@ -1929,7 +1920,7 @@ type AddRewardAsyncInput<TAccountSponsor extends string = string, TAccountMarket
|
|
|
1929
1920
|
sponsorAccount?: Address<TAccountSponsorAccount>;
|
|
1930
1921
|
tokenMint: Address<TAccountTokenMint>;
|
|
1931
1922
|
sponsorTokenAccount: Address<TAccountSponsorTokenAccount>;
|
|
1932
|
-
/** Market
|
|
1923
|
+
/** Market-owned ATA holding all program-held tokens for this market. */
|
|
1933
1924
|
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
1934
1925
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
1935
1926
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
@@ -1945,7 +1936,7 @@ type AddRewardInput<TAccountSponsor extends string = string, TAccountMarket exte
|
|
|
1945
1936
|
sponsorAccount: Address<TAccountSponsorAccount>;
|
|
1946
1937
|
tokenMint: Address<TAccountTokenMint>;
|
|
1947
1938
|
sponsorTokenAccount: Address<TAccountSponsorTokenAccount>;
|
|
1948
|
-
/** Market
|
|
1939
|
+
/** Market-owned ATA holding all program-held tokens for this market. */
|
|
1949
1940
|
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
1950
1941
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
1951
1942
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
@@ -1963,7 +1954,7 @@ type ParsedAddRewardInstruction<TProgram extends string = typeof OPPORTUNITY_MAR
|
|
|
1963
1954
|
sponsorAccount: TAccountMetas[2];
|
|
1964
1955
|
tokenMint: TAccountMetas[3];
|
|
1965
1956
|
sponsorTokenAccount: TAccountMetas[4];
|
|
1966
|
-
/** Market
|
|
1957
|
+
/** Market-owned ATA holding all program-held tokens for this market. */
|
|
1967
1958
|
marketTokenAta: TAccountMetas[5];
|
|
1968
1959
|
tokenProgram: TAccountMetas[6];
|
|
1969
1960
|
systemProgram: TAccountMetas[7];
|
|
@@ -1980,47 +1971,59 @@ declare function parseAddRewardInstruction<TProgram extends string, TAccountMeta
|
|
|
1980
1971
|
* @see https://github.com/codama-idl/codama
|
|
1981
1972
|
*/
|
|
1982
1973
|
|
|
1983
|
-
declare const
|
|
1984
|
-
declare function
|
|
1985
|
-
type
|
|
1986
|
-
TAccountSigner extends string ?
|
|
1987
|
-
|
|
1988
|
-
|
|
1974
|
+
declare const CLAIM_CREATOR_FEES_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
1975
|
+
declare function getClaimCreatorFeesDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
1976
|
+
type ClaimCreatorFeesInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountDestinationTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1977
|
+
TAccountSigner extends string ? ReadonlySignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
1978
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
1979
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
1980
|
+
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
1981
|
+
TAccountDestinationTokenAccount extends string ? WritableAccount<TAccountDestinationTokenAccount> : TAccountDestinationTokenAccount,
|
|
1982
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
1989
1983
|
...TRemainingAccounts
|
|
1990
1984
|
]>;
|
|
1991
|
-
type
|
|
1985
|
+
type ClaimCreatorFeesInstructionData = {
|
|
1992
1986
|
discriminator: ReadonlyUint8Array;
|
|
1993
1987
|
};
|
|
1994
|
-
type
|
|
1995
|
-
declare function
|
|
1996
|
-
declare function
|
|
1997
|
-
declare function
|
|
1998
|
-
type
|
|
1988
|
+
type ClaimCreatorFeesInstructionDataArgs = {};
|
|
1989
|
+
declare function getClaimCreatorFeesInstructionDataEncoder(): FixedSizeEncoder<ClaimCreatorFeesInstructionDataArgs>;
|
|
1990
|
+
declare function getClaimCreatorFeesInstructionDataDecoder(): FixedSizeDecoder<ClaimCreatorFeesInstructionData>;
|
|
1991
|
+
declare function getClaimCreatorFeesInstructionDataCodec(): FixedSizeCodec<ClaimCreatorFeesInstructionDataArgs, ClaimCreatorFeesInstructionData>;
|
|
1992
|
+
type ClaimCreatorFeesAsyncInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
|
|
1999
1993
|
signer: TransactionSigner<TAccountSigner>;
|
|
2000
|
-
|
|
2001
|
-
|
|
1994
|
+
market: Address<TAccountMarket>;
|
|
1995
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
1996
|
+
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
1997
|
+
destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
|
|
1998
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2002
1999
|
};
|
|
2003
|
-
declare function
|
|
2000
|
+
declare function getClaimCreatorFeesInstructionAsync<TAccountSigner extends string, TAccountMarket extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountDestinationTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimCreatorFeesAsyncInput<TAccountSigner, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountDestinationTokenAccount, TAccountTokenProgram>, config?: {
|
|
2004
2001
|
programAddress?: TProgramAddress;
|
|
2005
|
-
}): Promise<
|
|
2006
|
-
type
|
|
2002
|
+
}): Promise<ClaimCreatorFeesInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountDestinationTokenAccount, TAccountTokenProgram>>;
|
|
2003
|
+
type ClaimCreatorFeesInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
|
|
2007
2004
|
signer: TransactionSigner<TAccountSigner>;
|
|
2008
|
-
|
|
2009
|
-
|
|
2005
|
+
market: Address<TAccountMarket>;
|
|
2006
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2007
|
+
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
2008
|
+
destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
|
|
2009
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2010
2010
|
};
|
|
2011
|
-
declare function
|
|
2011
|
+
declare function getClaimCreatorFeesInstruction<TAccountSigner extends string, TAccountMarket extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountDestinationTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimCreatorFeesInput<TAccountSigner, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountDestinationTokenAccount, TAccountTokenProgram>, config?: {
|
|
2012
2012
|
programAddress?: TProgramAddress;
|
|
2013
|
-
}):
|
|
2014
|
-
type
|
|
2013
|
+
}): ClaimCreatorFeesInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountTokenMint, TAccountMarketTokenAta, TAccountDestinationTokenAccount, TAccountTokenProgram>;
|
|
2014
|
+
type ParsedClaimCreatorFeesInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2015
2015
|
programAddress: Address<TProgram>;
|
|
2016
2016
|
accounts: {
|
|
2017
2017
|
signer: TAccountMetas[0];
|
|
2018
|
-
|
|
2019
|
-
|
|
2018
|
+
market: TAccountMetas[1];
|
|
2019
|
+
tokenMint: TAccountMetas[2];
|
|
2020
|
+
marketTokenAta: TAccountMetas[3];
|
|
2021
|
+
destinationTokenAccount: TAccountMetas[4];
|
|
2022
|
+
tokenProgram: TAccountMetas[5];
|
|
2020
2023
|
};
|
|
2021
|
-
data:
|
|
2024
|
+
data: ClaimCreatorFeesInstructionData;
|
|
2022
2025
|
};
|
|
2023
|
-
declare function
|
|
2026
|
+
declare function parseClaimCreatorFeesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimCreatorFeesInstruction<TProgram, TAccountMetas>;
|
|
2024
2027
|
|
|
2025
2028
|
/**
|
|
2026
2029
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -2030,47 +2033,63 @@ declare function parseCancelFeeClaimerChangeInstruction<TProgram extends string,
|
|
|
2030
2033
|
* @see https://github.com/codama-idl/codama
|
|
2031
2034
|
*/
|
|
2032
2035
|
|
|
2033
|
-
declare const
|
|
2034
|
-
declare function
|
|
2035
|
-
type
|
|
2036
|
-
TAccountSigner extends string ?
|
|
2037
|
-
|
|
2038
|
-
|
|
2036
|
+
declare const CLAIM_FEES_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2037
|
+
declare function getClaimFeesDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2038
|
+
type ClaimFeesInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountPlatformConfig extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountDestinationTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2039
|
+
TAccountSigner extends string ? ReadonlySignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
2040
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2041
|
+
TAccountPlatformConfig extends string ? ReadonlyAccount<TAccountPlatformConfig> : TAccountPlatformConfig,
|
|
2042
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
2043
|
+
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
2044
|
+
TAccountDestinationTokenAccount extends string ? WritableAccount<TAccountDestinationTokenAccount> : TAccountDestinationTokenAccount,
|
|
2045
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2039
2046
|
...TRemainingAccounts
|
|
2040
2047
|
]>;
|
|
2041
|
-
type
|
|
2048
|
+
type ClaimFeesInstructionData = {
|
|
2042
2049
|
discriminator: ReadonlyUint8Array;
|
|
2043
2050
|
};
|
|
2044
|
-
type
|
|
2045
|
-
declare function
|
|
2046
|
-
declare function
|
|
2047
|
-
declare function
|
|
2048
|
-
type
|
|
2051
|
+
type ClaimFeesInstructionDataArgs = {};
|
|
2052
|
+
declare function getClaimFeesInstructionDataEncoder(): FixedSizeEncoder<ClaimFeesInstructionDataArgs>;
|
|
2053
|
+
declare function getClaimFeesInstructionDataDecoder(): FixedSizeDecoder<ClaimFeesInstructionData>;
|
|
2054
|
+
declare function getClaimFeesInstructionDataCodec(): FixedSizeCodec<ClaimFeesInstructionDataArgs, ClaimFeesInstructionData>;
|
|
2055
|
+
type ClaimFeesAsyncInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountPlatformConfig extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
|
|
2049
2056
|
signer: TransactionSigner<TAccountSigner>;
|
|
2050
|
-
|
|
2051
|
-
|
|
2057
|
+
market: Address<TAccountMarket>;
|
|
2058
|
+
platformConfig: Address<TAccountPlatformConfig>;
|
|
2059
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2060
|
+
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
2061
|
+
destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
|
|
2062
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2052
2063
|
};
|
|
2053
|
-
declare function
|
|
2064
|
+
declare function getClaimFeesInstructionAsync<TAccountSigner extends string, TAccountMarket extends string, TAccountPlatformConfig extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountDestinationTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimFeesAsyncInput<TAccountSigner, TAccountMarket, TAccountPlatformConfig, TAccountTokenMint, TAccountMarketTokenAta, TAccountDestinationTokenAccount, TAccountTokenProgram>, config?: {
|
|
2054
2065
|
programAddress?: TProgramAddress;
|
|
2055
|
-
}): Promise<
|
|
2056
|
-
type
|
|
2066
|
+
}): Promise<ClaimFeesInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountPlatformConfig, TAccountTokenMint, TAccountMarketTokenAta, TAccountDestinationTokenAccount, TAccountTokenProgram>>;
|
|
2067
|
+
type ClaimFeesInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountPlatformConfig extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
|
|
2057
2068
|
signer: TransactionSigner<TAccountSigner>;
|
|
2058
|
-
|
|
2059
|
-
|
|
2069
|
+
market: Address<TAccountMarket>;
|
|
2070
|
+
platformConfig: Address<TAccountPlatformConfig>;
|
|
2071
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2072
|
+
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
2073
|
+
destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
|
|
2074
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
2060
2075
|
};
|
|
2061
|
-
declare function
|
|
2076
|
+
declare function getClaimFeesInstruction<TAccountSigner extends string, TAccountMarket extends string, TAccountPlatformConfig extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountDestinationTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimFeesInput<TAccountSigner, TAccountMarket, TAccountPlatformConfig, TAccountTokenMint, TAccountMarketTokenAta, TAccountDestinationTokenAccount, TAccountTokenProgram>, config?: {
|
|
2062
2077
|
programAddress?: TProgramAddress;
|
|
2063
|
-
}):
|
|
2064
|
-
type
|
|
2078
|
+
}): ClaimFeesInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountPlatformConfig, TAccountTokenMint, TAccountMarketTokenAta, TAccountDestinationTokenAccount, TAccountTokenProgram>;
|
|
2079
|
+
type ParsedClaimFeesInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2065
2080
|
programAddress: Address<TProgram>;
|
|
2066
2081
|
accounts: {
|
|
2067
2082
|
signer: TAccountMetas[0];
|
|
2068
|
-
|
|
2069
|
-
|
|
2083
|
+
market: TAccountMetas[1];
|
|
2084
|
+
platformConfig: TAccountMetas[2];
|
|
2085
|
+
tokenMint: TAccountMetas[3];
|
|
2086
|
+
marketTokenAta: TAccountMetas[4];
|
|
2087
|
+
destinationTokenAccount: TAccountMetas[5];
|
|
2088
|
+
tokenProgram: TAccountMetas[6];
|
|
2070
2089
|
};
|
|
2071
|
-
data:
|
|
2090
|
+
data: ClaimFeesInstructionData;
|
|
2072
2091
|
};
|
|
2073
|
-
declare function
|
|
2092
|
+
declare function parseClaimFeesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimFeesInstruction<TProgram, TAccountMetas>;
|
|
2074
2093
|
|
|
2075
2094
|
/**
|
|
2076
2095
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -2080,63 +2099,60 @@ declare function parseCancelUpdateAuthorityChangeInstruction<TProgram extends st
|
|
|
2080
2099
|
* @see https://github.com/codama-idl/codama
|
|
2081
2100
|
*/
|
|
2082
2101
|
|
|
2083
|
-
declare const
|
|
2084
|
-
declare function
|
|
2085
|
-
type
|
|
2086
|
-
TAccountSigner extends string ?
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
TAccountDestinationTokenAccount extends string ? WritableAccount<TAccountDestinationTokenAccount> : TAccountDestinationTokenAccount,
|
|
2092
|
-
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2102
|
+
declare const CLOSE_OPTION_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2103
|
+
declare function getCloseOptionAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2104
|
+
type CloseOptionAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, 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<[
|
|
2105
|
+
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
2106
|
+
TAccountCreator extends string ? WritableAccount<TAccountCreator> : TAccountCreator,
|
|
2107
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2108
|
+
TAccountOption extends string ? WritableAccount<TAccountOption> : TAccountOption,
|
|
2109
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2093
2110
|
...TRemainingAccounts
|
|
2094
2111
|
]>;
|
|
2095
|
-
type
|
|
2112
|
+
type CloseOptionAccountInstructionData = {
|
|
2096
2113
|
discriminator: ReadonlyUint8Array;
|
|
2114
|
+
optionId: bigint;
|
|
2097
2115
|
};
|
|
2098
|
-
type
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
declare function
|
|
2102
|
-
|
|
2116
|
+
type CloseOptionAccountInstructionDataArgs = {
|
|
2117
|
+
optionId: number | bigint;
|
|
2118
|
+
};
|
|
2119
|
+
declare function getCloseOptionAccountInstructionDataEncoder(): FixedSizeEncoder<CloseOptionAccountInstructionDataArgs>;
|
|
2120
|
+
declare function getCloseOptionAccountInstructionDataDecoder(): FixedSizeDecoder<CloseOptionAccountInstructionData>;
|
|
2121
|
+
declare function getCloseOptionAccountInstructionDataCodec(): FixedSizeCodec<CloseOptionAccountInstructionDataArgs, CloseOptionAccountInstructionData>;
|
|
2122
|
+
type CloseOptionAccountAsyncInput<TAccountSigner extends string = string, TAccountCreator extends string = string, TAccountMarket extends string = string, TAccountOption extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2103
2123
|
signer: TransactionSigner<TAccountSigner>;
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
tokenProgram: Address<TAccountTokenProgram>;
|
|
2124
|
+
creator: Address<TAccountCreator>;
|
|
2125
|
+
market: Address<TAccountMarket>;
|
|
2126
|
+
option?: Address<TAccountOption>;
|
|
2127
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2128
|
+
optionId: CloseOptionAccountInstructionDataArgs['optionId'];
|
|
2110
2129
|
};
|
|
2111
|
-
declare function
|
|
2130
|
+
declare function getCloseOptionAccountInstructionAsync<TAccountSigner extends string, TAccountCreator extends string, TAccountMarket extends string, TAccountOption extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseOptionAccountAsyncInput<TAccountSigner, TAccountCreator, TAccountMarket, TAccountOption, TAccountSystemProgram>, config?: {
|
|
2112
2131
|
programAddress?: TProgramAddress;
|
|
2113
|
-
}): Promise<
|
|
2114
|
-
type
|
|
2132
|
+
}): Promise<CloseOptionAccountInstruction<TProgramAddress, TAccountSigner, TAccountCreator, TAccountMarket, TAccountOption, TAccountSystemProgram>>;
|
|
2133
|
+
type CloseOptionAccountInput<TAccountSigner extends string = string, TAccountCreator extends string = string, TAccountMarket extends string = string, TAccountOption extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2115
2134
|
signer: TransactionSigner<TAccountSigner>;
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
tokenProgram: Address<TAccountTokenProgram>;
|
|
2135
|
+
creator: Address<TAccountCreator>;
|
|
2136
|
+
market: Address<TAccountMarket>;
|
|
2137
|
+
option: Address<TAccountOption>;
|
|
2138
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2139
|
+
optionId: CloseOptionAccountInstructionDataArgs['optionId'];
|
|
2122
2140
|
};
|
|
2123
|
-
declare function
|
|
2141
|
+
declare function getCloseOptionAccountInstruction<TAccountSigner extends string, TAccountCreator extends string, TAccountMarket extends string, TAccountOption extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseOptionAccountInput<TAccountSigner, TAccountCreator, TAccountMarket, TAccountOption, TAccountSystemProgram>, config?: {
|
|
2124
2142
|
programAddress?: TProgramAddress;
|
|
2125
|
-
}):
|
|
2126
|
-
type
|
|
2143
|
+
}): CloseOptionAccountInstruction<TProgramAddress, TAccountSigner, TAccountCreator, TAccountMarket, TAccountOption, TAccountSystemProgram>;
|
|
2144
|
+
type ParsedCloseOptionAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2127
2145
|
programAddress: Address<TProgram>;
|
|
2128
2146
|
accounts: {
|
|
2129
2147
|
signer: TAccountMetas[0];
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
destinationTokenAccount: TAccountMetas[5];
|
|
2135
|
-
tokenProgram: TAccountMetas[6];
|
|
2148
|
+
creator: TAccountMetas[1];
|
|
2149
|
+
market: TAccountMetas[2];
|
|
2150
|
+
option: TAccountMetas[3];
|
|
2151
|
+
systemProgram: TAccountMetas[4];
|
|
2136
2152
|
};
|
|
2137
|
-
data:
|
|
2153
|
+
data: CloseOptionAccountInstructionData;
|
|
2138
2154
|
};
|
|
2139
|
-
declare function
|
|
2155
|
+
declare function parseCloseOptionAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseOptionAccountInstruction<TProgram, TAccountMetas>;
|
|
2140
2156
|
|
|
2141
2157
|
/**
|
|
2142
2158
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -2152,7 +2168,7 @@ type CloseStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_M
|
|
|
2152
2168
|
TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
|
|
2153
2169
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2154
2170
|
TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
|
|
2155
|
-
TAccountOption extends string ?
|
|
2171
|
+
TAccountOption extends string ? WritableAccount<TAccountOption> : TAccountOption,
|
|
2156
2172
|
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
2157
2173
|
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
2158
2174
|
TAccountOwnerTokenAccount extends string ? WritableAccount<TAccountOwnerTokenAccount> : TAccountOwnerTokenAccount,
|
|
@@ -2178,7 +2194,7 @@ type CloseStakeAccountAsyncInput<TAccountOwner extends string = string, TAccount
|
|
|
2178
2194
|
stakeAccount?: Address<TAccountStakeAccount>;
|
|
2179
2195
|
option?: Address<TAccountOption>;
|
|
2180
2196
|
tokenMint: Address<TAccountTokenMint>;
|
|
2181
|
-
/** Market
|
|
2197
|
+
/** Market-owned ATA holding all program-held tokens for this market */
|
|
2182
2198
|
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
2183
2199
|
/** Owner's token account to receive rewards */
|
|
2184
2200
|
ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
|
|
@@ -2196,7 +2212,7 @@ type CloseStakeAccountInput<TAccountOwner extends string = string, TAccountMarke
|
|
|
2196
2212
|
stakeAccount: Address<TAccountStakeAccount>;
|
|
2197
2213
|
option: Address<TAccountOption>;
|
|
2198
2214
|
tokenMint: Address<TAccountTokenMint>;
|
|
2199
|
-
/** Market
|
|
2215
|
+
/** Market-owned ATA holding all program-held tokens for this market */
|
|
2200
2216
|
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
2201
2217
|
/** Owner's token account to receive rewards */
|
|
2202
2218
|
ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
|
|
@@ -2216,7 +2232,7 @@ type ParsedCloseStakeAccountInstruction<TProgram extends string = typeof OPPORTU
|
|
|
2216
2232
|
stakeAccount: TAccountMetas[2];
|
|
2217
2233
|
option: TAccountMetas[3];
|
|
2218
2234
|
tokenMint: TAccountMetas[4];
|
|
2219
|
-
/** Market
|
|
2235
|
+
/** Market-owned ATA holding all program-held tokens for this market */
|
|
2220
2236
|
marketTokenAta: TAccountMetas[5];
|
|
2221
2237
|
/** Owner's token account to receive rewards */
|
|
2222
2238
|
ownerTokenAccount: TAccountMetas[6];
|
|
@@ -2237,15 +2253,13 @@ declare function parseCloseStakeAccountInstruction<TProgram extends string, TAcc
|
|
|
2237
2253
|
|
|
2238
2254
|
declare const CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2239
2255
|
declare function getCloseStuckStakeAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2240
|
-
type CloseStuckStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string,
|
|
2256
|
+
type CloseStuckStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountSignerTokenAccount extends string | AccountMeta<string> = string, TAccountMarketTokenAta 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<[
|
|
2241
2257
|
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
2242
2258
|
TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
|
|
2243
2259
|
TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
|
|
2244
2260
|
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
2245
|
-
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
2246
2261
|
TAccountSignerTokenAccount extends string ? WritableAccount<TAccountSignerTokenAccount> : TAccountSignerTokenAccount,
|
|
2247
|
-
|
|
2248
|
-
TAccountTokenVaultAta extends string ? WritableAccount<TAccountTokenVaultAta> : TAccountTokenVaultAta,
|
|
2262
|
+
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
2249
2263
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2250
2264
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2251
2265
|
...TRemainingAccounts
|
|
@@ -2260,44 +2274,36 @@ type CloseStuckStakeAccountInstructionDataArgs = {
|
|
|
2260
2274
|
declare function getCloseStuckStakeAccountInstructionDataEncoder(): FixedSizeEncoder<CloseStuckStakeAccountInstructionDataArgs>;
|
|
2261
2275
|
declare function getCloseStuckStakeAccountInstructionDataDecoder(): FixedSizeDecoder<CloseStuckStakeAccountInstructionData>;
|
|
2262
2276
|
declare function getCloseStuckStakeAccountInstructionDataCodec(): FixedSizeCodec<CloseStuckStakeAccountInstructionDataArgs, CloseStuckStakeAccountInstructionData>;
|
|
2263
|
-
type CloseStuckStakeAccountAsyncInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string,
|
|
2277
|
+
type CloseStuckStakeAccountAsyncInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountSignerTokenAccount extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2264
2278
|
signer: TransactionSigner<TAccountSigner>;
|
|
2265
2279
|
market: Address<TAccountMarket>;
|
|
2266
2280
|
stakeAccount?: Address<TAccountStakeAccount>;
|
|
2267
2281
|
tokenMint: Address<TAccountTokenMint>;
|
|
2268
|
-
/** Market's ATA holding staked tokens */
|
|
2269
|
-
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
2270
2282
|
/** Signer's token account to receive refund */
|
|
2271
2283
|
signerTokenAccount: Address<TAccountSignerTokenAccount>;
|
|
2272
|
-
|
|
2273
|
-
/** Token vault ATA holding fee tokens */
|
|
2274
|
-
tokenVaultAta?: Address<TAccountTokenVaultAta>;
|
|
2284
|
+
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
2275
2285
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
2276
2286
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2277
2287
|
stakeAccountId: CloseStuckStakeAccountInstructionDataArgs['stakeAccountId'];
|
|
2278
2288
|
};
|
|
2279
|
-
declare function getCloseStuckStakeAccountInstructionAsync<TAccountSigner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string,
|
|
2289
|
+
declare function getCloseStuckStakeAccountInstructionAsync<TAccountSigner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountSignerTokenAccount extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseStuckStakeAccountAsyncInput<TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
2280
2290
|
programAddress?: TProgramAddress;
|
|
2281
|
-
}): Promise<CloseStuckStakeAccountInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint,
|
|
2282
|
-
type CloseStuckStakeAccountInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string,
|
|
2291
|
+
}): Promise<CloseStuckStakeAccountInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>>;
|
|
2292
|
+
type CloseStuckStakeAccountInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountSignerTokenAccount extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2283
2293
|
signer: TransactionSigner<TAccountSigner>;
|
|
2284
2294
|
market: Address<TAccountMarket>;
|
|
2285
2295
|
stakeAccount: Address<TAccountStakeAccount>;
|
|
2286
2296
|
tokenMint: Address<TAccountTokenMint>;
|
|
2287
|
-
/** Market's ATA holding staked tokens */
|
|
2288
|
-
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
2289
2297
|
/** Signer's token account to receive refund */
|
|
2290
2298
|
signerTokenAccount: Address<TAccountSignerTokenAccount>;
|
|
2291
|
-
|
|
2292
|
-
/** Token vault ATA holding fee tokens */
|
|
2293
|
-
tokenVaultAta: Address<TAccountTokenVaultAta>;
|
|
2299
|
+
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
2294
2300
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
2295
2301
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2296
2302
|
stakeAccountId: CloseStuckStakeAccountInstructionDataArgs['stakeAccountId'];
|
|
2297
2303
|
};
|
|
2298
|
-
declare function getCloseStuckStakeAccountInstruction<TAccountSigner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string,
|
|
2304
|
+
declare function getCloseStuckStakeAccountInstruction<TAccountSigner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountSignerTokenAccount extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseStuckStakeAccountInput<TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
2299
2305
|
programAddress?: TProgramAddress;
|
|
2300
|
-
}): CloseStuckStakeAccountInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint,
|
|
2306
|
+
}): CloseStuckStakeAccountInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>;
|
|
2301
2307
|
type ParsedCloseStuckStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2302
2308
|
programAddress: Address<TProgram>;
|
|
2303
2309
|
accounts: {
|
|
@@ -2305,15 +2311,11 @@ type ParsedCloseStuckStakeAccountInstruction<TProgram extends string = typeof OP
|
|
|
2305
2311
|
market: TAccountMetas[1];
|
|
2306
2312
|
stakeAccount: TAccountMetas[2];
|
|
2307
2313
|
tokenMint: TAccountMetas[3];
|
|
2308
|
-
/** Market's ATA holding staked tokens */
|
|
2309
|
-
marketTokenAta: TAccountMetas[4];
|
|
2310
2314
|
/** Signer's token account to receive refund */
|
|
2311
|
-
signerTokenAccount: TAccountMetas[
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
tokenProgram: TAccountMetas[8];
|
|
2316
|
-
systemProgram: TAccountMetas[9];
|
|
2315
|
+
signerTokenAccount: TAccountMetas[4];
|
|
2316
|
+
marketTokenAta: TAccountMetas[5];
|
|
2317
|
+
tokenProgram: TAccountMetas[6];
|
|
2318
|
+
systemProgram: TAccountMetas[7];
|
|
2317
2319
|
};
|
|
2318
2320
|
data: CloseStuckStakeAccountInstructionData;
|
|
2319
2321
|
};
|
|
@@ -2329,186 +2331,109 @@ declare function parseCloseStuckStakeAccountInstruction<TProgram extends string,
|
|
|
2329
2331
|
|
|
2330
2332
|
declare const CREATE_MARKET_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2331
2333
|
declare function getCreateMarketDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2332
|
-
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,
|
|
2334
|
+
type CreateMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountCreator extends string | AccountMeta<string> = string, TAccountPlatformConfig extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountAllowedMint extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2333
2335
|
TAccountCreator extends string ? WritableSignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator,
|
|
2336
|
+
TAccountPlatformConfig extends string ? ReadonlyAccount<TAccountPlatformConfig> : TAccountPlatformConfig,
|
|
2334
2337
|
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
2335
2338
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2336
2339
|
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
2337
|
-
|
|
2340
|
+
TAccountAllowedMint extends string ? ReadonlyAccount<TAccountAllowedMint> : TAccountAllowedMint,
|
|
2338
2341
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2339
2342
|
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
2343
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2340
2344
|
...TRemainingAccounts
|
|
2341
2345
|
]>;
|
|
2342
2346
|
type CreateMarketInstructionData = {
|
|
2343
2347
|
discriminator: ReadonlyUint8Array;
|
|
2344
2348
|
marketIndex: bigint;
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
marketAuthority: Option<Address>;
|
|
2348
|
-
unstakeDelaySeconds: bigint;
|
|
2349
|
+
marketAuthority: Address;
|
|
2350
|
+
allowUnstakingEarly: boolean;
|
|
2349
2351
|
authorizedReaderPubkey: Array<number>;
|
|
2350
|
-
allowClosingEarly: boolean;
|
|
2351
2352
|
revealPeriodAuthority: Address;
|
|
2352
2353
|
earlinessCutoffSeconds: bigint;
|
|
2354
|
+
earlinessMultiplier: number;
|
|
2355
|
+
minStakeAmount: bigint;
|
|
2356
|
+
creatorFeeClaimer: Address;
|
|
2353
2357
|
};
|
|
2354
2358
|
type CreateMarketInstructionDataArgs = {
|
|
2355
2359
|
marketIndex: number | bigint;
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
marketAuthority: OptionOrNullable<Address>;
|
|
2359
|
-
unstakeDelaySeconds: number | bigint;
|
|
2360
|
+
marketAuthority: Address;
|
|
2361
|
+
allowUnstakingEarly: boolean;
|
|
2360
2362
|
authorizedReaderPubkey: Array<number>;
|
|
2361
|
-
allowClosingEarly: boolean;
|
|
2362
2363
|
revealPeriodAuthority: Address;
|
|
2363
2364
|
earlinessCutoffSeconds: number | bigint;
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2365
|
+
earlinessMultiplier: number;
|
|
2366
|
+
minStakeAmount: number | bigint;
|
|
2367
|
+
creatorFeeClaimer: Address;
|
|
2368
|
+
};
|
|
2369
|
+
declare function getCreateMarketInstructionDataEncoder(): FixedSizeEncoder<CreateMarketInstructionDataArgs>;
|
|
2370
|
+
declare function getCreateMarketInstructionDataDecoder(): FixedSizeDecoder<CreateMarketInstructionData>;
|
|
2371
|
+
declare function getCreateMarketInstructionDataCodec(): FixedSizeCodec<CreateMarketInstructionDataArgs, CreateMarketInstructionData>;
|
|
2372
|
+
type CreateMarketAsyncInput<TAccountCreator extends string = string, TAccountPlatformConfig extends string = string, TAccountTokenMint extends string = string, TAccountMarket extends string = string, TAccountMarketTokenAta extends string = string, TAccountAllowedMint extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2369
2373
|
creator: TransactionSigner<TAccountCreator>;
|
|
2374
|
+
platformConfig: Address<TAccountPlatformConfig>;
|
|
2370
2375
|
tokenMint: Address<TAccountTokenMint>;
|
|
2371
2376
|
market?: Address<TAccountMarket>;
|
|
2372
|
-
/** ATA
|
|
2377
|
+
/** This ATA holds all of the market's program-held tokens (stakes, rewards, fees). */
|
|
2373
2378
|
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
2374
|
-
|
|
2379
|
+
allowedMint?: Address<TAccountAllowedMint>;
|
|
2375
2380
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
2376
2381
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2382
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2377
2383
|
marketIndex: CreateMarketInstructionDataArgs['marketIndex'];
|
|
2378
|
-
timeToStake: CreateMarketInstructionDataArgs['timeToStake'];
|
|
2379
|
-
timeToReveal: CreateMarketInstructionDataArgs['timeToReveal'];
|
|
2380
2384
|
marketAuthority: CreateMarketInstructionDataArgs['marketAuthority'];
|
|
2381
|
-
|
|
2385
|
+
allowUnstakingEarly: CreateMarketInstructionDataArgs['allowUnstakingEarly'];
|
|
2382
2386
|
authorizedReaderPubkey: CreateMarketInstructionDataArgs['authorizedReaderPubkey'];
|
|
2383
|
-
allowClosingEarly: CreateMarketInstructionDataArgs['allowClosingEarly'];
|
|
2384
2387
|
revealPeriodAuthority: CreateMarketInstructionDataArgs['revealPeriodAuthority'];
|
|
2385
2388
|
earlinessCutoffSeconds: CreateMarketInstructionDataArgs['earlinessCutoffSeconds'];
|
|
2389
|
+
earlinessMultiplier: CreateMarketInstructionDataArgs['earlinessMultiplier'];
|
|
2390
|
+
minStakeAmount: CreateMarketInstructionDataArgs['minStakeAmount'];
|
|
2391
|
+
creatorFeeClaimer: CreateMarketInstructionDataArgs['creatorFeeClaimer'];
|
|
2386
2392
|
};
|
|
2387
|
-
declare function getCreateMarketInstructionAsync<TAccountCreator extends string, TAccountTokenMint extends string, TAccountMarket extends string, TAccountMarketTokenAta extends string,
|
|
2393
|
+
declare function getCreateMarketInstructionAsync<TAccountCreator extends string, TAccountPlatformConfig extends string, TAccountTokenMint extends string, TAccountMarket extends string, TAccountMarketTokenAta extends string, TAccountAllowedMint extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CreateMarketAsyncInput<TAccountCreator, TAccountPlatformConfig, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta, TAccountAllowedMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2388
2394
|
programAddress?: TProgramAddress;
|
|
2389
|
-
}): Promise<CreateMarketInstruction<TProgramAddress, TAccountCreator, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta,
|
|
2390
|
-
type CreateMarketInput<TAccountCreator extends string = string, TAccountTokenMint extends string = string, TAccountMarket extends string = string, TAccountMarketTokenAta extends string = string,
|
|
2395
|
+
}): Promise<CreateMarketInstruction<TProgramAddress, TAccountCreator, TAccountPlatformConfig, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta, TAccountAllowedMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
2396
|
+
type CreateMarketInput<TAccountCreator extends string = string, TAccountPlatformConfig extends string = string, TAccountTokenMint extends string = string, TAccountMarket extends string = string, TAccountMarketTokenAta extends string = string, TAccountAllowedMint extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2391
2397
|
creator: TransactionSigner<TAccountCreator>;
|
|
2398
|
+
platformConfig: Address<TAccountPlatformConfig>;
|
|
2392
2399
|
tokenMint: Address<TAccountTokenMint>;
|
|
2393
2400
|
market: Address<TAccountMarket>;
|
|
2394
|
-
/** ATA
|
|
2401
|
+
/** This ATA holds all of the market's program-held tokens (stakes, rewards, fees). */
|
|
2395
2402
|
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
2396
|
-
|
|
2403
|
+
allowedMint: Address<TAccountAllowedMint>;
|
|
2397
2404
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
2398
2405
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
2406
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2399
2407
|
marketIndex: CreateMarketInstructionDataArgs['marketIndex'];
|
|
2400
|
-
timeToStake: CreateMarketInstructionDataArgs['timeToStake'];
|
|
2401
|
-
timeToReveal: CreateMarketInstructionDataArgs['timeToReveal'];
|
|
2402
2408
|
marketAuthority: CreateMarketInstructionDataArgs['marketAuthority'];
|
|
2403
|
-
|
|
2409
|
+
allowUnstakingEarly: CreateMarketInstructionDataArgs['allowUnstakingEarly'];
|
|
2404
2410
|
authorizedReaderPubkey: CreateMarketInstructionDataArgs['authorizedReaderPubkey'];
|
|
2405
|
-
allowClosingEarly: CreateMarketInstructionDataArgs['allowClosingEarly'];
|
|
2406
2411
|
revealPeriodAuthority: CreateMarketInstructionDataArgs['revealPeriodAuthority'];
|
|
2407
2412
|
earlinessCutoffSeconds: CreateMarketInstructionDataArgs['earlinessCutoffSeconds'];
|
|
2413
|
+
earlinessMultiplier: CreateMarketInstructionDataArgs['earlinessMultiplier'];
|
|
2414
|
+
minStakeAmount: CreateMarketInstructionDataArgs['minStakeAmount'];
|
|
2415
|
+
creatorFeeClaimer: CreateMarketInstructionDataArgs['creatorFeeClaimer'];
|
|
2408
2416
|
};
|
|
2409
|
-
declare function getCreateMarketInstruction<TAccountCreator extends string, TAccountTokenMint extends string, TAccountMarket extends string, TAccountMarketTokenAta extends string,
|
|
2417
|
+
declare function getCreateMarketInstruction<TAccountCreator extends string, TAccountPlatformConfig extends string, TAccountTokenMint extends string, TAccountMarket extends string, TAccountMarketTokenAta extends string, TAccountAllowedMint extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CreateMarketInput<TAccountCreator, TAccountPlatformConfig, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta, TAccountAllowedMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
2410
2418
|
programAddress?: TProgramAddress;
|
|
2411
|
-
}): CreateMarketInstruction<TProgramAddress, TAccountCreator, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta,
|
|
2419
|
+
}): CreateMarketInstruction<TProgramAddress, TAccountCreator, TAccountPlatformConfig, TAccountTokenMint, TAccountMarket, TAccountMarketTokenAta, TAccountAllowedMint, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
2412
2420
|
type ParsedCreateMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2413
2421
|
programAddress: Address<TProgram>;
|
|
2414
2422
|
accounts: {
|
|
2415
2423
|
creator: TAccountMetas[0];
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
systemProgram: TAccountMetas[4];
|
|
2421
|
-
tokenProgram: TAccountMetas[5];
|
|
2422
|
-
associatedTokenProgram: TAccountMetas[6];
|
|
2423
|
-
};
|
|
2424
|
-
data: CreateMarketInstructionData;
|
|
2425
|
-
};
|
|
2426
|
-
declare function parseCreateMarketInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateMarketInstruction<TProgram, TAccountMetas>;
|
|
2427
|
-
|
|
2428
|
-
/**
|
|
2429
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
2430
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2431
|
-
* to add features, then rerun Codama to update it.
|
|
2432
|
-
*
|
|
2433
|
-
* @see https://github.com/codama-idl/codama
|
|
2434
|
-
*/
|
|
2435
|
-
|
|
2436
|
-
declare const DO_UNSTAKE_EARLY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2437
|
-
declare function getDoUnstakeEarlyDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2438
|
-
type DoUnstakeEarlyInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount 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<[
|
|
2439
|
-
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
2440
|
-
TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
|
|
2441
|
-
TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
|
|
2442
|
-
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
2443
|
-
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
2444
|
-
TAccountOwnerTokenAccount extends string ? WritableAccount<TAccountOwnerTokenAccount> : TAccountOwnerTokenAccount,
|
|
2445
|
-
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
2446
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2447
|
-
...TRemainingAccounts
|
|
2448
|
-
]>;
|
|
2449
|
-
type DoUnstakeEarlyInstructionData = {
|
|
2450
|
-
discriminator: ReadonlyUint8Array;
|
|
2451
|
-
stakeAccountId: number;
|
|
2452
|
-
stakeAccountOwner: Address;
|
|
2453
|
-
};
|
|
2454
|
-
type DoUnstakeEarlyInstructionDataArgs = {
|
|
2455
|
-
stakeAccountId: number;
|
|
2456
|
-
stakeAccountOwner: Address;
|
|
2457
|
-
};
|
|
2458
|
-
declare function getDoUnstakeEarlyInstructionDataEncoder(): FixedSizeEncoder<DoUnstakeEarlyInstructionDataArgs>;
|
|
2459
|
-
declare function getDoUnstakeEarlyInstructionDataDecoder(): FixedSizeDecoder<DoUnstakeEarlyInstructionData>;
|
|
2460
|
-
declare function getDoUnstakeEarlyInstructionDataCodec(): FixedSizeCodec<DoUnstakeEarlyInstructionDataArgs, DoUnstakeEarlyInstructionData>;
|
|
2461
|
-
type DoUnstakeEarlyAsyncInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2462
|
-
signer: TransactionSigner<TAccountSigner>;
|
|
2463
|
-
market: Address<TAccountMarket>;
|
|
2464
|
-
stakeAccount?: Address<TAccountStakeAccount>;
|
|
2465
|
-
tokenMint: Address<TAccountTokenMint>;
|
|
2466
|
-
/** Market's ATA holding staked tokens */
|
|
2467
|
-
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
2468
|
-
/** Owner's token account to receive refund */
|
|
2469
|
-
ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
|
|
2470
|
-
tokenProgram: Address<TAccountTokenProgram>;
|
|
2471
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
2472
|
-
stakeAccountId: DoUnstakeEarlyInstructionDataArgs['stakeAccountId'];
|
|
2473
|
-
stakeAccountOwner: DoUnstakeEarlyInstructionDataArgs['stakeAccountOwner'];
|
|
2474
|
-
};
|
|
2475
|
-
declare function getDoUnstakeEarlyInstructionAsync<TAccountSigner extends string, TAccountMarket extends string, TAccountStakeAccount 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: DoUnstakeEarlyAsyncInput<TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
2476
|
-
programAddress?: TProgramAddress;
|
|
2477
|
-
}): Promise<DoUnstakeEarlyInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>>;
|
|
2478
|
-
type DoUnstakeEarlyInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2479
|
-
signer: TransactionSigner<TAccountSigner>;
|
|
2480
|
-
market: Address<TAccountMarket>;
|
|
2481
|
-
stakeAccount: Address<TAccountStakeAccount>;
|
|
2482
|
-
tokenMint: Address<TAccountTokenMint>;
|
|
2483
|
-
/** Market's ATA holding staked tokens */
|
|
2484
|
-
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
2485
|
-
/** Owner's token account to receive refund */
|
|
2486
|
-
ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
|
|
2487
|
-
tokenProgram: Address<TAccountTokenProgram>;
|
|
2488
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
2489
|
-
stakeAccountId: DoUnstakeEarlyInstructionDataArgs['stakeAccountId'];
|
|
2490
|
-
stakeAccountOwner: DoUnstakeEarlyInstructionDataArgs['stakeAccountOwner'];
|
|
2491
|
-
};
|
|
2492
|
-
declare function getDoUnstakeEarlyInstruction<TAccountSigner extends string, TAccountMarket extends string, TAccountStakeAccount 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: DoUnstakeEarlyInput<TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
2493
|
-
programAddress?: TProgramAddress;
|
|
2494
|
-
}): DoUnstakeEarlyInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>;
|
|
2495
|
-
type ParsedDoUnstakeEarlyInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2496
|
-
programAddress: Address<TProgram>;
|
|
2497
|
-
accounts: {
|
|
2498
|
-
signer: TAccountMetas[0];
|
|
2499
|
-
market: TAccountMetas[1];
|
|
2500
|
-
stakeAccount: TAccountMetas[2];
|
|
2501
|
-
tokenMint: TAccountMetas[3];
|
|
2502
|
-
/** Market's ATA holding staked tokens */
|
|
2424
|
+
platformConfig: TAccountMetas[1];
|
|
2425
|
+
tokenMint: TAccountMetas[2];
|
|
2426
|
+
market: TAccountMetas[3];
|
|
2427
|
+
/** This ATA holds all of the market's program-held tokens (stakes, rewards, fees). */
|
|
2503
2428
|
marketTokenAta: TAccountMetas[4];
|
|
2504
|
-
|
|
2505
|
-
ownerTokenAccount: TAccountMetas[5];
|
|
2429
|
+
allowedMint: TAccountMetas[5];
|
|
2506
2430
|
tokenProgram: TAccountMetas[6];
|
|
2507
|
-
|
|
2431
|
+
associatedTokenProgram: TAccountMetas[7];
|
|
2432
|
+
systemProgram: TAccountMetas[8];
|
|
2508
2433
|
};
|
|
2509
|
-
data:
|
|
2434
|
+
data: CreateMarketInstructionData;
|
|
2510
2435
|
};
|
|
2511
|
-
declare function
|
|
2436
|
+
declare function parseCreateMarketInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateMarketInstruction<TProgram, TAccountMetas>;
|
|
2512
2437
|
|
|
2513
2438
|
/**
|
|
2514
2439
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -2520,8 +2445,8 @@ declare function parseDoUnstakeEarlyInstruction<TProgram extends string, TAccoun
|
|
|
2520
2445
|
|
|
2521
2446
|
declare const END_REVEAL_PERIOD_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2522
2447
|
declare function getEndRevealPeriodDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2523
|
-
type EndRevealPeriodInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS,
|
|
2524
|
-
|
|
2448
|
+
type EndRevealPeriodInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2449
|
+
TAccountSigner extends string ? ReadonlySignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
2525
2450
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2526
2451
|
...TRemainingAccounts
|
|
2527
2452
|
]>;
|
|
@@ -2532,17 +2457,17 @@ type EndRevealPeriodInstructionDataArgs = {};
|
|
|
2532
2457
|
declare function getEndRevealPeriodInstructionDataEncoder(): FixedSizeEncoder<EndRevealPeriodInstructionDataArgs>;
|
|
2533
2458
|
declare function getEndRevealPeriodInstructionDataDecoder(): FixedSizeDecoder<EndRevealPeriodInstructionData>;
|
|
2534
2459
|
declare function getEndRevealPeriodInstructionDataCodec(): FixedSizeCodec<EndRevealPeriodInstructionDataArgs, EndRevealPeriodInstructionData>;
|
|
2535
|
-
type EndRevealPeriodInput<
|
|
2536
|
-
|
|
2460
|
+
type EndRevealPeriodInput<TAccountSigner extends string = string, TAccountMarket extends string = string> = {
|
|
2461
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
2537
2462
|
market: Address<TAccountMarket>;
|
|
2538
2463
|
};
|
|
2539
|
-
declare function getEndRevealPeriodInstruction<
|
|
2464
|
+
declare function getEndRevealPeriodInstruction<TAccountSigner extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: EndRevealPeriodInput<TAccountSigner, TAccountMarket>, config?: {
|
|
2540
2465
|
programAddress?: TProgramAddress;
|
|
2541
|
-
}): EndRevealPeriodInstruction<TProgramAddress,
|
|
2466
|
+
}): EndRevealPeriodInstruction<TProgramAddress, TAccountSigner, TAccountMarket>;
|
|
2542
2467
|
type ParsedEndRevealPeriodInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2543
2468
|
programAddress: Address<TProgram>;
|
|
2544
2469
|
accounts: {
|
|
2545
|
-
|
|
2470
|
+
signer: TAccountMetas[0];
|
|
2546
2471
|
market: TAccountMetas[1];
|
|
2547
2472
|
};
|
|
2548
2473
|
data: EndRevealPeriodInstructionData;
|
|
@@ -2557,170 +2482,56 @@ declare function parseEndRevealPeriodInstruction<TProgram extends string, TAccou
|
|
|
2557
2482
|
* @see https://github.com/codama-idl/codama
|
|
2558
2483
|
*/
|
|
2559
2484
|
|
|
2560
|
-
declare const
|
|
2561
|
-
declare function
|
|
2562
|
-
type
|
|
2563
|
-
TAccountUpdateAuthority extends string ? WritableSignerAccount<TAccountUpdateAuthority> & AccountSignerMeta<TAccountUpdateAuthority> : TAccountUpdateAuthority,
|
|
2564
|
-
TAccountProposedFeeClaimer extends string ? ReadonlySignerAccount<TAccountProposedFeeClaimer> & AccountSignerMeta<TAccountProposedFeeClaimer> : TAccountProposedFeeClaimer,
|
|
2565
|
-
TAccountCentralState extends string ? WritableAccount<TAccountCentralState> : TAccountCentralState,
|
|
2566
|
-
TAccountTimelockedChange extends string ? WritableAccount<TAccountTimelockedChange> : TAccountTimelockedChange,
|
|
2567
|
-
...TRemainingAccounts
|
|
2568
|
-
]>;
|
|
2569
|
-
type FinalizeNewFeeClaimerInstructionData = {
|
|
2570
|
-
discriminator: ReadonlyUint8Array;
|
|
2571
|
-
};
|
|
2572
|
-
type FinalizeNewFeeClaimerInstructionDataArgs = {};
|
|
2573
|
-
declare function getFinalizeNewFeeClaimerInstructionDataEncoder(): FixedSizeEncoder<FinalizeNewFeeClaimerInstructionDataArgs>;
|
|
2574
|
-
declare function getFinalizeNewFeeClaimerInstructionDataDecoder(): FixedSizeDecoder<FinalizeNewFeeClaimerInstructionData>;
|
|
2575
|
-
declare function getFinalizeNewFeeClaimerInstructionDataCodec(): FixedSizeCodec<FinalizeNewFeeClaimerInstructionDataArgs, FinalizeNewFeeClaimerInstructionData>;
|
|
2576
|
-
type FinalizeNewFeeClaimerAsyncInput<TAccountUpdateAuthority extends string = string, TAccountProposedFeeClaimer extends string = string, TAccountCentralState extends string = string, TAccountTimelockedChange extends string = string> = {
|
|
2577
|
-
updateAuthority: TransactionSigner<TAccountUpdateAuthority>;
|
|
2578
|
-
/** The proposed new fee claimer must co-sign to prevent fat-finger mistakes. */
|
|
2579
|
-
proposedFeeClaimer: TransactionSigner<TAccountProposedFeeClaimer>;
|
|
2580
|
-
centralState?: Address<TAccountCentralState>;
|
|
2581
|
-
timelockedChange?: Address<TAccountTimelockedChange>;
|
|
2582
|
-
};
|
|
2583
|
-
declare function getFinalizeNewFeeClaimerInstructionAsync<TAccountUpdateAuthority extends string, TAccountProposedFeeClaimer extends string, TAccountCentralState extends string, TAccountTimelockedChange extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: FinalizeNewFeeClaimerAsyncInput<TAccountUpdateAuthority, TAccountProposedFeeClaimer, TAccountCentralState, TAccountTimelockedChange>, config?: {
|
|
2584
|
-
programAddress?: TProgramAddress;
|
|
2585
|
-
}): Promise<FinalizeNewFeeClaimerInstruction<TProgramAddress, TAccountUpdateAuthority, TAccountProposedFeeClaimer, TAccountCentralState, TAccountTimelockedChange>>;
|
|
2586
|
-
type FinalizeNewFeeClaimerInput<TAccountUpdateAuthority extends string = string, TAccountProposedFeeClaimer extends string = string, TAccountCentralState extends string = string, TAccountTimelockedChange extends string = string> = {
|
|
2587
|
-
updateAuthority: TransactionSigner<TAccountUpdateAuthority>;
|
|
2588
|
-
/** The proposed new fee claimer must co-sign to prevent fat-finger mistakes. */
|
|
2589
|
-
proposedFeeClaimer: TransactionSigner<TAccountProposedFeeClaimer>;
|
|
2590
|
-
centralState: Address<TAccountCentralState>;
|
|
2591
|
-
timelockedChange: Address<TAccountTimelockedChange>;
|
|
2592
|
-
};
|
|
2593
|
-
declare function getFinalizeNewFeeClaimerInstruction<TAccountUpdateAuthority extends string, TAccountProposedFeeClaimer extends string, TAccountCentralState extends string, TAccountTimelockedChange extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: FinalizeNewFeeClaimerInput<TAccountUpdateAuthority, TAccountProposedFeeClaimer, TAccountCentralState, TAccountTimelockedChange>, config?: {
|
|
2594
|
-
programAddress?: TProgramAddress;
|
|
2595
|
-
}): FinalizeNewFeeClaimerInstruction<TProgramAddress, TAccountUpdateAuthority, TAccountProposedFeeClaimer, TAccountCentralState, TAccountTimelockedChange>;
|
|
2596
|
-
type ParsedFinalizeNewFeeClaimerInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2597
|
-
programAddress: Address<TProgram>;
|
|
2598
|
-
accounts: {
|
|
2599
|
-
updateAuthority: TAccountMetas[0];
|
|
2600
|
-
/** The proposed new fee claimer must co-sign to prevent fat-finger mistakes. */
|
|
2601
|
-
proposedFeeClaimer: TAccountMetas[1];
|
|
2602
|
-
centralState: TAccountMetas[2];
|
|
2603
|
-
timelockedChange: TAccountMetas[3];
|
|
2604
|
-
};
|
|
2605
|
-
data: FinalizeNewFeeClaimerInstructionData;
|
|
2606
|
-
};
|
|
2607
|
-
declare function parseFinalizeNewFeeClaimerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedFinalizeNewFeeClaimerInstruction<TProgram, TAccountMetas>;
|
|
2608
|
-
|
|
2609
|
-
/**
|
|
2610
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
2611
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2612
|
-
* to add features, then rerun Codama to update it.
|
|
2613
|
-
*
|
|
2614
|
-
* @see https://github.com/codama-idl/codama
|
|
2615
|
-
*/
|
|
2616
|
-
|
|
2617
|
-
declare const FINALIZE_NEW_UPDATE_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2618
|
-
declare function getFinalizeNewUpdateAuthorityDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2619
|
-
type FinalizeNewUpdateAuthorityInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountUpdateAuthority extends string | AccountMeta<string> = string, TAccountProposedAuthority extends string | AccountMeta<string> = string, TAccountCentralState extends string | AccountMeta<string> = string, TAccountTimelockedChange extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2620
|
-
TAccountUpdateAuthority extends string ? WritableSignerAccount<TAccountUpdateAuthority> & AccountSignerMeta<TAccountUpdateAuthority> : TAccountUpdateAuthority,
|
|
2621
|
-
TAccountProposedAuthority extends string ? ReadonlySignerAccount<TAccountProposedAuthority> & AccountSignerMeta<TAccountProposedAuthority> : TAccountProposedAuthority,
|
|
2622
|
-
TAccountCentralState extends string ? WritableAccount<TAccountCentralState> : TAccountCentralState,
|
|
2623
|
-
TAccountTimelockedChange extends string ? WritableAccount<TAccountTimelockedChange> : TAccountTimelockedChange,
|
|
2624
|
-
...TRemainingAccounts
|
|
2625
|
-
]>;
|
|
2626
|
-
type FinalizeNewUpdateAuthorityInstructionData = {
|
|
2627
|
-
discriminator: ReadonlyUint8Array;
|
|
2628
|
-
};
|
|
2629
|
-
type FinalizeNewUpdateAuthorityInstructionDataArgs = {};
|
|
2630
|
-
declare function getFinalizeNewUpdateAuthorityInstructionDataEncoder(): FixedSizeEncoder<FinalizeNewUpdateAuthorityInstructionDataArgs>;
|
|
2631
|
-
declare function getFinalizeNewUpdateAuthorityInstructionDataDecoder(): FixedSizeDecoder<FinalizeNewUpdateAuthorityInstructionData>;
|
|
2632
|
-
declare function getFinalizeNewUpdateAuthorityInstructionDataCodec(): FixedSizeCodec<FinalizeNewUpdateAuthorityInstructionDataArgs, FinalizeNewUpdateAuthorityInstructionData>;
|
|
2633
|
-
type FinalizeNewUpdateAuthorityAsyncInput<TAccountUpdateAuthority extends string = string, TAccountProposedAuthority extends string = string, TAccountCentralState extends string = string, TAccountTimelockedChange extends string = string> = {
|
|
2634
|
-
updateAuthority: TransactionSigner<TAccountUpdateAuthority>;
|
|
2635
|
-
/** The proposed new authority must co-sign to prevent fat-finger mistakes. */
|
|
2636
|
-
proposedAuthority: TransactionSigner<TAccountProposedAuthority>;
|
|
2637
|
-
centralState?: Address<TAccountCentralState>;
|
|
2638
|
-
timelockedChange?: Address<TAccountTimelockedChange>;
|
|
2639
|
-
};
|
|
2640
|
-
declare function getFinalizeNewUpdateAuthorityInstructionAsync<TAccountUpdateAuthority extends string, TAccountProposedAuthority extends string, TAccountCentralState extends string, TAccountTimelockedChange extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: FinalizeNewUpdateAuthorityAsyncInput<TAccountUpdateAuthority, TAccountProposedAuthority, TAccountCentralState, TAccountTimelockedChange>, config?: {
|
|
2641
|
-
programAddress?: TProgramAddress;
|
|
2642
|
-
}): Promise<FinalizeNewUpdateAuthorityInstruction<TProgramAddress, TAccountUpdateAuthority, TAccountProposedAuthority, TAccountCentralState, TAccountTimelockedChange>>;
|
|
2643
|
-
type FinalizeNewUpdateAuthorityInput<TAccountUpdateAuthority extends string = string, TAccountProposedAuthority extends string = string, TAccountCentralState extends string = string, TAccountTimelockedChange extends string = string> = {
|
|
2644
|
-
updateAuthority: TransactionSigner<TAccountUpdateAuthority>;
|
|
2645
|
-
/** The proposed new authority must co-sign to prevent fat-finger mistakes. */
|
|
2646
|
-
proposedAuthority: TransactionSigner<TAccountProposedAuthority>;
|
|
2647
|
-
centralState: Address<TAccountCentralState>;
|
|
2648
|
-
timelockedChange: Address<TAccountTimelockedChange>;
|
|
2649
|
-
};
|
|
2650
|
-
declare function getFinalizeNewUpdateAuthorityInstruction<TAccountUpdateAuthority extends string, TAccountProposedAuthority extends string, TAccountCentralState extends string, TAccountTimelockedChange extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: FinalizeNewUpdateAuthorityInput<TAccountUpdateAuthority, TAccountProposedAuthority, TAccountCentralState, TAccountTimelockedChange>, config?: {
|
|
2651
|
-
programAddress?: TProgramAddress;
|
|
2652
|
-
}): FinalizeNewUpdateAuthorityInstruction<TProgramAddress, TAccountUpdateAuthority, TAccountProposedAuthority, TAccountCentralState, TAccountTimelockedChange>;
|
|
2653
|
-
type ParsedFinalizeNewUpdateAuthorityInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2654
|
-
programAddress: Address<TProgram>;
|
|
2655
|
-
accounts: {
|
|
2656
|
-
updateAuthority: TAccountMetas[0];
|
|
2657
|
-
/** The proposed new authority must co-sign to prevent fat-finger mistakes. */
|
|
2658
|
-
proposedAuthority: TAccountMetas[1];
|
|
2659
|
-
centralState: TAccountMetas[2];
|
|
2660
|
-
timelockedChange: TAccountMetas[3];
|
|
2661
|
-
};
|
|
2662
|
-
data: FinalizeNewUpdateAuthorityInstructionData;
|
|
2663
|
-
};
|
|
2664
|
-
declare function parseFinalizeNewUpdateAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedFinalizeNewUpdateAuthorityInstruction<TProgram, TAccountMetas>;
|
|
2665
|
-
|
|
2666
|
-
/**
|
|
2667
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
2668
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2669
|
-
* to add features, then rerun Codama to update it.
|
|
2670
|
-
*
|
|
2671
|
-
* @see https://github.com/codama-idl/codama
|
|
2672
|
-
*/
|
|
2673
|
-
|
|
2674
|
-
declare const INCREMENT_OPTION_TALLY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2675
|
-
declare function getIncrementOptionTallyDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2676
|
-
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, TAccountStakeAccount 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<[
|
|
2485
|
+
declare const FINALIZE_REVEAL_STAKE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2486
|
+
declare function getFinalizeRevealStakeDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2487
|
+
type FinalizeRevealStakeInstruction<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, TAccountStakeAccount 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<[
|
|
2677
2488
|
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
2678
2489
|
TAccountOwner extends string ? ReadonlyAccount<TAccountOwner> : TAccountOwner,
|
|
2679
|
-
TAccountMarket extends string ?
|
|
2490
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2680
2491
|
TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
|
|
2681
2492
|
TAccountOption extends string ? WritableAccount<TAccountOption> : TAccountOption,
|
|
2682
2493
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2683
2494
|
...TRemainingAccounts
|
|
2684
2495
|
]>;
|
|
2685
|
-
type
|
|
2496
|
+
type FinalizeRevealStakeInstructionData = {
|
|
2686
2497
|
discriminator: ReadonlyUint8Array;
|
|
2687
2498
|
optionId: bigint;
|
|
2688
2499
|
stakeAccountId: number;
|
|
2689
2500
|
};
|
|
2690
|
-
type
|
|
2501
|
+
type FinalizeRevealStakeInstructionDataArgs = {
|
|
2691
2502
|
optionId: number | bigint;
|
|
2692
2503
|
stakeAccountId: number;
|
|
2693
2504
|
};
|
|
2694
|
-
declare function
|
|
2695
|
-
declare function
|
|
2696
|
-
declare function
|
|
2697
|
-
type
|
|
2505
|
+
declare function getFinalizeRevealStakeInstructionDataEncoder(): FixedSizeEncoder<FinalizeRevealStakeInstructionDataArgs>;
|
|
2506
|
+
declare function getFinalizeRevealStakeInstructionDataDecoder(): FixedSizeDecoder<FinalizeRevealStakeInstructionData>;
|
|
2507
|
+
declare function getFinalizeRevealStakeInstructionDataCodec(): FixedSizeCodec<FinalizeRevealStakeInstructionDataArgs, FinalizeRevealStakeInstructionData>;
|
|
2508
|
+
type FinalizeRevealStakeAsyncInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountOption extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2698
2509
|
signer: TransactionSigner<TAccountSigner>;
|
|
2699
2510
|
owner: Address<TAccountOwner>;
|
|
2700
2511
|
market: Address<TAccountMarket>;
|
|
2701
2512
|
stakeAccount?: Address<TAccountStakeAccount>;
|
|
2702
2513
|
option?: Address<TAccountOption>;
|
|
2703
2514
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2704
|
-
optionId:
|
|
2705
|
-
stakeAccountId:
|
|
2515
|
+
optionId: FinalizeRevealStakeInstructionDataArgs['optionId'];
|
|
2516
|
+
stakeAccountId: FinalizeRevealStakeInstructionDataArgs['stakeAccountId'];
|
|
2706
2517
|
};
|
|
2707
|
-
declare function
|
|
2518
|
+
declare function getFinalizeRevealStakeInstructionAsync<TAccountSigner extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountOption extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: FinalizeRevealStakeAsyncInput<TAccountSigner, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountSystemProgram>, config?: {
|
|
2708
2519
|
programAddress?: TProgramAddress;
|
|
2709
|
-
}): Promise<
|
|
2710
|
-
type
|
|
2520
|
+
}): Promise<FinalizeRevealStakeInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountSystemProgram>>;
|
|
2521
|
+
type FinalizeRevealStakeInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountOption extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2711
2522
|
signer: TransactionSigner<TAccountSigner>;
|
|
2712
2523
|
owner: Address<TAccountOwner>;
|
|
2713
2524
|
market: Address<TAccountMarket>;
|
|
2714
2525
|
stakeAccount: Address<TAccountStakeAccount>;
|
|
2715
2526
|
option: Address<TAccountOption>;
|
|
2716
2527
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2717
|
-
optionId:
|
|
2718
|
-
stakeAccountId:
|
|
2528
|
+
optionId: FinalizeRevealStakeInstructionDataArgs['optionId'];
|
|
2529
|
+
stakeAccountId: FinalizeRevealStakeInstructionDataArgs['stakeAccountId'];
|
|
2719
2530
|
};
|
|
2720
|
-
declare function
|
|
2531
|
+
declare function getFinalizeRevealStakeInstruction<TAccountSigner extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountOption extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: FinalizeRevealStakeInput<TAccountSigner, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountSystemProgram>, config?: {
|
|
2721
2532
|
programAddress?: TProgramAddress;
|
|
2722
|
-
}):
|
|
2723
|
-
type
|
|
2533
|
+
}): FinalizeRevealStakeInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountSystemProgram>;
|
|
2534
|
+
type ParsedFinalizeRevealStakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2724
2535
|
programAddress: Address<TProgram>;
|
|
2725
2536
|
accounts: {
|
|
2726
2537
|
signer: TAccountMetas[0];
|
|
@@ -2730,68 +2541,9 @@ type ParsedIncrementOptionTallyInstruction<TProgram extends string = typeof OPPO
|
|
|
2730
2541
|
option: TAccountMetas[4];
|
|
2731
2542
|
systemProgram: TAccountMetas[5];
|
|
2732
2543
|
};
|
|
2733
|
-
data:
|
|
2734
|
-
};
|
|
2735
|
-
declare function parseIncrementOptionTallyInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedIncrementOptionTallyInstruction<TProgram, TAccountMetas>;
|
|
2736
|
-
|
|
2737
|
-
/**
|
|
2738
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
2739
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2740
|
-
* to add features, then rerun Codama to update it.
|
|
2741
|
-
*
|
|
2742
|
-
* @see https://github.com/codama-idl/codama
|
|
2743
|
-
*/
|
|
2744
|
-
|
|
2745
|
-
declare const INIT_CENTRAL_STATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2746
|
-
declare function getInitCentralStateDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2747
|
-
type InitCentralStateInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountCentralState extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2748
|
-
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
2749
|
-
TAccountCentralState extends string ? WritableAccount<TAccountCentralState> : TAccountCentralState,
|
|
2750
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2751
|
-
...TRemainingAccounts
|
|
2752
|
-
]>;
|
|
2753
|
-
type InitCentralStateInstructionData = {
|
|
2754
|
-
discriminator: ReadonlyUint8Array;
|
|
2755
|
-
protocolFeeBp: number;
|
|
2756
|
-
feeClaimer: Address;
|
|
2757
|
-
};
|
|
2758
|
-
type InitCentralStateInstructionDataArgs = {
|
|
2759
|
-
protocolFeeBp: number;
|
|
2760
|
-
feeClaimer: Address;
|
|
2761
|
-
};
|
|
2762
|
-
declare function getInitCentralStateInstructionDataEncoder(): FixedSizeEncoder<InitCentralStateInstructionDataArgs>;
|
|
2763
|
-
declare function getInitCentralStateInstructionDataDecoder(): FixedSizeDecoder<InitCentralStateInstructionData>;
|
|
2764
|
-
declare function getInitCentralStateInstructionDataCodec(): FixedSizeCodec<InitCentralStateInstructionDataArgs, InitCentralStateInstructionData>;
|
|
2765
|
-
type InitCentralStateAsyncInput<TAccountPayer extends string = string, TAccountCentralState extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2766
|
-
payer: TransactionSigner<TAccountPayer>;
|
|
2767
|
-
centralState?: Address<TAccountCentralState>;
|
|
2768
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
2769
|
-
protocolFeeBp: InitCentralStateInstructionDataArgs['protocolFeeBp'];
|
|
2770
|
-
feeClaimer: InitCentralStateInstructionDataArgs['feeClaimer'];
|
|
2771
|
-
};
|
|
2772
|
-
declare function getInitCentralStateInstructionAsync<TAccountPayer extends string, TAccountCentralState extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitCentralStateAsyncInput<TAccountPayer, TAccountCentralState, TAccountSystemProgram>, config?: {
|
|
2773
|
-
programAddress?: TProgramAddress;
|
|
2774
|
-
}): Promise<InitCentralStateInstruction<TProgramAddress, TAccountPayer, TAccountCentralState, TAccountSystemProgram>>;
|
|
2775
|
-
type InitCentralStateInput<TAccountPayer extends string = string, TAccountCentralState extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2776
|
-
payer: TransactionSigner<TAccountPayer>;
|
|
2777
|
-
centralState: Address<TAccountCentralState>;
|
|
2778
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
2779
|
-
protocolFeeBp: InitCentralStateInstructionDataArgs['protocolFeeBp'];
|
|
2780
|
-
feeClaimer: InitCentralStateInstructionDataArgs['feeClaimer'];
|
|
2781
|
-
};
|
|
2782
|
-
declare function getInitCentralStateInstruction<TAccountPayer extends string, TAccountCentralState extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitCentralStateInput<TAccountPayer, TAccountCentralState, TAccountSystemProgram>, config?: {
|
|
2783
|
-
programAddress?: TProgramAddress;
|
|
2784
|
-
}): InitCentralStateInstruction<TProgramAddress, TAccountPayer, TAccountCentralState, TAccountSystemProgram>;
|
|
2785
|
-
type ParsedInitCentralStateInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2786
|
-
programAddress: Address<TProgram>;
|
|
2787
|
-
accounts: {
|
|
2788
|
-
payer: TAccountMetas[0];
|
|
2789
|
-
centralState: TAccountMetas[1];
|
|
2790
|
-
systemProgram: TAccountMetas[2];
|
|
2791
|
-
};
|
|
2792
|
-
data: InitCentralStateInstructionData;
|
|
2544
|
+
data: FinalizeRevealStakeInstructionData;
|
|
2793
2545
|
};
|
|
2794
|
-
declare function
|
|
2546
|
+
declare function parseFinalizeRevealStakeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedFinalizeRevealStakeInstruction<TProgram, TAccountMetas>;
|
|
2795
2547
|
|
|
2796
2548
|
/**
|
|
2797
2549
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -2801,60 +2553,55 @@ declare function parseInitCentralStateInstruction<TProgram extends string, TAcco
|
|
|
2801
2553
|
* @see https://github.com/codama-idl/codama
|
|
2802
2554
|
*/
|
|
2803
2555
|
|
|
2804
|
-
declare const
|
|
2805
|
-
declare function
|
|
2806
|
-
type
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2556
|
+
declare const INIT_ALLOWED_MINT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2557
|
+
declare function getInitAllowedMintDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2558
|
+
type InitAllowedMintInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountUpdateAuthority extends string | AccountMeta<string> = string, TAccountPlatformConfig extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountAllowedMint extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2559
|
+
TAccountUpdateAuthority extends string ? WritableSignerAccount<TAccountUpdateAuthority> & AccountSignerMeta<TAccountUpdateAuthority> : TAccountUpdateAuthority,
|
|
2560
|
+
TAccountPlatformConfig extends string ? ReadonlyAccount<TAccountPlatformConfig> : TAccountPlatformConfig,
|
|
2561
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
2562
|
+
TAccountAllowedMint extends string ? WritableAccount<TAccountAllowedMint> : TAccountAllowedMint,
|
|
2810
2563
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2811
2564
|
...TRemainingAccounts
|
|
2812
2565
|
]>;
|
|
2813
|
-
type
|
|
2566
|
+
type InitAllowedMintInstructionData = {
|
|
2814
2567
|
discriminator: ReadonlyUint8Array;
|
|
2815
|
-
stateNonce: bigint;
|
|
2816
|
-
stakeAccountId: number;
|
|
2817
|
-
};
|
|
2818
|
-
type InitStakeAccountInstructionDataArgs = {
|
|
2819
|
-
stateNonce: number | bigint;
|
|
2820
|
-
stakeAccountId: number;
|
|
2821
2568
|
};
|
|
2822
|
-
|
|
2823
|
-
declare function
|
|
2824
|
-
declare function
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2569
|
+
type InitAllowedMintInstructionDataArgs = {};
|
|
2570
|
+
declare function getInitAllowedMintInstructionDataEncoder(): FixedSizeEncoder<InitAllowedMintInstructionDataArgs>;
|
|
2571
|
+
declare function getInitAllowedMintInstructionDataDecoder(): FixedSizeDecoder<InitAllowedMintInstructionData>;
|
|
2572
|
+
declare function getInitAllowedMintInstructionDataCodec(): FixedSizeCodec<InitAllowedMintInstructionDataArgs, InitAllowedMintInstructionData>;
|
|
2573
|
+
type InitAllowedMintAsyncInput<TAccountUpdateAuthority extends string = string, TAccountPlatformConfig extends string = string, TAccountTokenMint extends string = string, TAccountAllowedMint extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2574
|
+
updateAuthority: TransactionSigner<TAccountUpdateAuthority>;
|
|
2575
|
+
platformConfig: Address<TAccountPlatformConfig>;
|
|
2576
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2577
|
+
allowedMint?: Address<TAccountAllowedMint>;
|
|
2829
2578
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2830
|
-
stateNonce: InitStakeAccountInstructionDataArgs['stateNonce'];
|
|
2831
|
-
stakeAccountId: InitStakeAccountInstructionDataArgs['stakeAccountId'];
|
|
2832
2579
|
};
|
|
2833
|
-
declare function
|
|
2580
|
+
declare function getInitAllowedMintInstructionAsync<TAccountUpdateAuthority extends string, TAccountPlatformConfig extends string, TAccountTokenMint extends string, TAccountAllowedMint extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitAllowedMintAsyncInput<TAccountUpdateAuthority, TAccountPlatformConfig, TAccountTokenMint, TAccountAllowedMint, TAccountSystemProgram>, config?: {
|
|
2834
2581
|
programAddress?: TProgramAddress;
|
|
2835
|
-
}): Promise<
|
|
2836
|
-
type
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2582
|
+
}): Promise<InitAllowedMintInstruction<TProgramAddress, TAccountUpdateAuthority, TAccountPlatformConfig, TAccountTokenMint, TAccountAllowedMint, TAccountSystemProgram>>;
|
|
2583
|
+
type InitAllowedMintInput<TAccountUpdateAuthority extends string = string, TAccountPlatformConfig extends string = string, TAccountTokenMint extends string = string, TAccountAllowedMint extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2584
|
+
updateAuthority: TransactionSigner<TAccountUpdateAuthority>;
|
|
2585
|
+
platformConfig: Address<TAccountPlatformConfig>;
|
|
2586
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
2587
|
+
allowedMint: Address<TAccountAllowedMint>;
|
|
2840
2588
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2841
|
-
stateNonce: InitStakeAccountInstructionDataArgs['stateNonce'];
|
|
2842
|
-
stakeAccountId: InitStakeAccountInstructionDataArgs['stakeAccountId'];
|
|
2843
2589
|
};
|
|
2844
|
-
declare function
|
|
2590
|
+
declare function getInitAllowedMintInstruction<TAccountUpdateAuthority extends string, TAccountPlatformConfig extends string, TAccountTokenMint extends string, TAccountAllowedMint extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitAllowedMintInput<TAccountUpdateAuthority, TAccountPlatformConfig, TAccountTokenMint, TAccountAllowedMint, TAccountSystemProgram>, config?: {
|
|
2845
2591
|
programAddress?: TProgramAddress;
|
|
2846
|
-
}):
|
|
2847
|
-
type
|
|
2592
|
+
}): InitAllowedMintInstruction<TProgramAddress, TAccountUpdateAuthority, TAccountPlatformConfig, TAccountTokenMint, TAccountAllowedMint, TAccountSystemProgram>;
|
|
2593
|
+
type ParsedInitAllowedMintInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2848
2594
|
programAddress: Address<TProgram>;
|
|
2849
2595
|
accounts: {
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2596
|
+
updateAuthority: TAccountMetas[0];
|
|
2597
|
+
platformConfig: TAccountMetas[1];
|
|
2598
|
+
tokenMint: TAccountMetas[2];
|
|
2599
|
+
allowedMint: TAccountMetas[3];
|
|
2600
|
+
systemProgram: TAccountMetas[4];
|
|
2854
2601
|
};
|
|
2855
|
-
data:
|
|
2602
|
+
data: InitAllowedMintInstructionData;
|
|
2856
2603
|
};
|
|
2857
|
-
declare function
|
|
2604
|
+
declare function parseInitAllowedMintInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitAllowedMintInstruction<TProgram, TAccountMetas>;
|
|
2858
2605
|
|
|
2859
2606
|
/**
|
|
2860
2607
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -2864,51 +2611,84 @@ declare function parseInitStakeAccountInstruction<TProgram extends string, TAcco
|
|
|
2864
2611
|
* @see https://github.com/codama-idl/codama
|
|
2865
2612
|
*/
|
|
2866
2613
|
|
|
2867
|
-
declare const
|
|
2868
|
-
declare function
|
|
2869
|
-
type
|
|
2614
|
+
declare const INIT_PLATFORM_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2615
|
+
declare function getInitPlatformConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2616
|
+
type InitPlatformConfigInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountPlatformConfig extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2870
2617
|
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
2871
|
-
|
|
2872
|
-
TAccountTokenVault extends string ? WritableAccount<TAccountTokenVault> : TAccountTokenVault,
|
|
2618
|
+
TAccountPlatformConfig extends string ? WritableAccount<TAccountPlatformConfig> : TAccountPlatformConfig,
|
|
2873
2619
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2874
2620
|
...TRemainingAccounts
|
|
2875
2621
|
]>;
|
|
2876
|
-
type
|
|
2622
|
+
type InitPlatformConfigInstructionData = {
|
|
2877
2623
|
discriminator: ReadonlyUint8Array;
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2624
|
+
name: string;
|
|
2625
|
+
platformFeeBp: number;
|
|
2626
|
+
rewardPoolFeeBp: number;
|
|
2627
|
+
creatorFeeBp: number;
|
|
2628
|
+
feeClaimAuthority: Address;
|
|
2629
|
+
minTimeToStakeSeconds: bigint;
|
|
2630
|
+
minRevealPeriodSeconds: bigint;
|
|
2631
|
+
maxRevealPeriodSeconds: bigint;
|
|
2632
|
+
marketResolutionDeadlineSeconds: bigint;
|
|
2633
|
+
};
|
|
2634
|
+
type InitPlatformConfigInstructionDataArgs = {
|
|
2635
|
+
name: string;
|
|
2636
|
+
platformFeeBp: number;
|
|
2637
|
+
rewardPoolFeeBp: number;
|
|
2638
|
+
creatorFeeBp: number;
|
|
2639
|
+
feeClaimAuthority: Address;
|
|
2640
|
+
minTimeToStakeSeconds: number | bigint;
|
|
2641
|
+
minRevealPeriodSeconds: number | bigint;
|
|
2642
|
+
maxRevealPeriodSeconds: number | bigint;
|
|
2643
|
+
marketResolutionDeadlineSeconds: number | bigint;
|
|
2644
|
+
};
|
|
2645
|
+
declare function getInitPlatformConfigInstructionDataEncoder(): Encoder<InitPlatformConfigInstructionDataArgs>;
|
|
2646
|
+
declare function getInitPlatformConfigInstructionDataDecoder(): Decoder<InitPlatformConfigInstructionData>;
|
|
2647
|
+
declare function getInitPlatformConfigInstructionDataCodec(): Codec<InitPlatformConfigInstructionDataArgs, InitPlatformConfigInstructionData>;
|
|
2648
|
+
type InitPlatformConfigAsyncInput<TAccountPayer extends string = string, TAccountPlatformConfig extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2884
2649
|
payer: TransactionSigner<TAccountPayer>;
|
|
2885
|
-
|
|
2886
|
-
tokenVault?: Address<TAccountTokenVault>;
|
|
2650
|
+
platformConfig?: Address<TAccountPlatformConfig>;
|
|
2887
2651
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2888
|
-
|
|
2889
|
-
|
|
2652
|
+
name: InitPlatformConfigInstructionDataArgs['name'];
|
|
2653
|
+
platformFeeBp: InitPlatformConfigInstructionDataArgs['platformFeeBp'];
|
|
2654
|
+
rewardPoolFeeBp: InitPlatformConfigInstructionDataArgs['rewardPoolFeeBp'];
|
|
2655
|
+
creatorFeeBp: InitPlatformConfigInstructionDataArgs['creatorFeeBp'];
|
|
2656
|
+
feeClaimAuthority: InitPlatformConfigInstructionDataArgs['feeClaimAuthority'];
|
|
2657
|
+
minTimeToStakeSeconds: InitPlatformConfigInstructionDataArgs['minTimeToStakeSeconds'];
|
|
2658
|
+
minRevealPeriodSeconds: InitPlatformConfigInstructionDataArgs['minRevealPeriodSeconds'];
|
|
2659
|
+
maxRevealPeriodSeconds: InitPlatformConfigInstructionDataArgs['maxRevealPeriodSeconds'];
|
|
2660
|
+
marketResolutionDeadlineSeconds: InitPlatformConfigInstructionDataArgs['marketResolutionDeadlineSeconds'];
|
|
2661
|
+
};
|
|
2662
|
+
declare function getInitPlatformConfigInstructionAsync<TAccountPayer extends string, TAccountPlatformConfig extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitPlatformConfigAsyncInput<TAccountPayer, TAccountPlatformConfig, TAccountSystemProgram>, config?: {
|
|
2890
2663
|
programAddress?: TProgramAddress;
|
|
2891
|
-
}): Promise<
|
|
2892
|
-
type
|
|
2664
|
+
}): Promise<InitPlatformConfigInstruction<TProgramAddress, TAccountPayer, TAccountPlatformConfig, TAccountSystemProgram>>;
|
|
2665
|
+
type InitPlatformConfigInput<TAccountPayer extends string = string, TAccountPlatformConfig extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2893
2666
|
payer: TransactionSigner<TAccountPayer>;
|
|
2894
|
-
|
|
2895
|
-
tokenVault: Address<TAccountTokenVault>;
|
|
2667
|
+
platformConfig: Address<TAccountPlatformConfig>;
|
|
2896
2668
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2897
|
-
|
|
2898
|
-
|
|
2669
|
+
name: InitPlatformConfigInstructionDataArgs['name'];
|
|
2670
|
+
platformFeeBp: InitPlatformConfigInstructionDataArgs['platformFeeBp'];
|
|
2671
|
+
rewardPoolFeeBp: InitPlatformConfigInstructionDataArgs['rewardPoolFeeBp'];
|
|
2672
|
+
creatorFeeBp: InitPlatformConfigInstructionDataArgs['creatorFeeBp'];
|
|
2673
|
+
feeClaimAuthority: InitPlatformConfigInstructionDataArgs['feeClaimAuthority'];
|
|
2674
|
+
minTimeToStakeSeconds: InitPlatformConfigInstructionDataArgs['minTimeToStakeSeconds'];
|
|
2675
|
+
minRevealPeriodSeconds: InitPlatformConfigInstructionDataArgs['minRevealPeriodSeconds'];
|
|
2676
|
+
maxRevealPeriodSeconds: InitPlatformConfigInstructionDataArgs['maxRevealPeriodSeconds'];
|
|
2677
|
+
marketResolutionDeadlineSeconds: InitPlatformConfigInstructionDataArgs['marketResolutionDeadlineSeconds'];
|
|
2678
|
+
};
|
|
2679
|
+
declare function getInitPlatformConfigInstruction<TAccountPayer extends string, TAccountPlatformConfig extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitPlatformConfigInput<TAccountPayer, TAccountPlatformConfig, TAccountSystemProgram>, config?: {
|
|
2899
2680
|
programAddress?: TProgramAddress;
|
|
2900
|
-
}):
|
|
2901
|
-
type
|
|
2681
|
+
}): InitPlatformConfigInstruction<TProgramAddress, TAccountPayer, TAccountPlatformConfig, TAccountSystemProgram>;
|
|
2682
|
+
type ParsedInitPlatformConfigInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2902
2683
|
programAddress: Address<TProgram>;
|
|
2903
2684
|
accounts: {
|
|
2904
2685
|
payer: TAccountMetas[0];
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
systemProgram: TAccountMetas[3];
|
|
2686
|
+
platformConfig: TAccountMetas[1];
|
|
2687
|
+
systemProgram: TAccountMetas[2];
|
|
2908
2688
|
};
|
|
2909
|
-
data:
|
|
2689
|
+
data: InitPlatformConfigInstructionData;
|
|
2910
2690
|
};
|
|
2911
|
-
declare function
|
|
2691
|
+
declare function parseInitPlatformConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitPlatformConfigInstruction<TProgram, TAccountMetas>;
|
|
2912
2692
|
|
|
2913
2693
|
/**
|
|
2914
2694
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -2918,79 +2698,63 @@ declare function parseInitTokenVaultInstruction<TProgram extends string, TAccoun
|
|
|
2918
2698
|
* @see https://github.com/codama-idl/codama
|
|
2919
2699
|
*/
|
|
2920
2700
|
|
|
2921
|
-
declare const
|
|
2922
|
-
declare function
|
|
2923
|
-
type
|
|
2924
|
-
|
|
2925
|
-
|
|
2701
|
+
declare const INIT_STAKE_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2702
|
+
declare function getInitStakeAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2703
|
+
type InitStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2704
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
2705
|
+
TAccountOwner extends string ? ReadonlyAccount<TAccountOwner> : TAccountOwner,
|
|
2706
|
+
TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
|
|
2707
|
+
TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
|
|
2708
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2926
2709
|
...TRemainingAccounts
|
|
2927
2710
|
]>;
|
|
2928
|
-
type
|
|
2711
|
+
type InitStakeAccountInstructionData = {
|
|
2929
2712
|
discriminator: ReadonlyUint8Array;
|
|
2930
|
-
|
|
2713
|
+
stakeAccountId: number;
|
|
2931
2714
|
};
|
|
2932
|
-
type
|
|
2933
|
-
|
|
2715
|
+
type InitStakeAccountInstructionDataArgs = {
|
|
2716
|
+
stakeAccountId: number;
|
|
2934
2717
|
};
|
|
2935
|
-
declare function
|
|
2936
|
-
declare function
|
|
2937
|
-
declare function
|
|
2938
|
-
type
|
|
2939
|
-
|
|
2718
|
+
declare function getInitStakeAccountInstructionDataEncoder(): FixedSizeEncoder<InitStakeAccountInstructionDataArgs>;
|
|
2719
|
+
declare function getInitStakeAccountInstructionDataDecoder(): FixedSizeDecoder<InitStakeAccountInstructionData>;
|
|
2720
|
+
declare function getInitStakeAccountInstructionDataCodec(): FixedSizeCodec<InitStakeAccountInstructionDataArgs, InitStakeAccountInstructionData>;
|
|
2721
|
+
type InitStakeAccountAsyncInput<TAccountPayer extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2722
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
2723
|
+
/** No signature required: this instruction is permissionless. */
|
|
2724
|
+
owner: Address<TAccountOwner>;
|
|
2940
2725
|
market: Address<TAccountMarket>;
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
programAddress?: TProgramAddress;
|
|
2945
|
-
}): OpenMarketInstruction<TProgramAddress, TAccountCreator, TAccountMarket>;
|
|
2946
|
-
type ParsedOpenMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2947
|
-
programAddress: Address<TProgram>;
|
|
2948
|
-
accounts: {
|
|
2949
|
-
creator: TAccountMetas[0];
|
|
2950
|
-
market: TAccountMetas[1];
|
|
2951
|
-
};
|
|
2952
|
-
data: OpenMarketInstructionData;
|
|
2953
|
-
};
|
|
2954
|
-
declare function parseOpenMarketInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedOpenMarketInstruction<TProgram, TAccountMetas>;
|
|
2955
|
-
|
|
2956
|
-
/**
|
|
2957
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
2958
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
2959
|
-
* to add features, then rerun Codama to update it.
|
|
2960
|
-
*
|
|
2961
|
-
* @see https://github.com/codama-idl/codama
|
|
2962
|
-
*/
|
|
2963
|
-
|
|
2964
|
-
declare const PAUSE_MARKET_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2965
|
-
declare function getPauseMarketDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2966
|
-
type PauseMarketInstruction<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<[
|
|
2967
|
-
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
2968
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2969
|
-
...TRemainingAccounts
|
|
2970
|
-
]>;
|
|
2971
|
-
type PauseMarketInstructionData = {
|
|
2972
|
-
discriminator: ReadonlyUint8Array;
|
|
2726
|
+
stakeAccount?: Address<TAccountStakeAccount>;
|
|
2727
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2728
|
+
stakeAccountId: InitStakeAccountInstructionDataArgs['stakeAccountId'];
|
|
2973
2729
|
};
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2730
|
+
declare function getInitStakeAccountInstructionAsync<TAccountPayer extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitStakeAccountAsyncInput<TAccountPayer, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountSystemProgram>, config?: {
|
|
2731
|
+
programAddress?: TProgramAddress;
|
|
2732
|
+
}): Promise<InitStakeAccountInstruction<TProgramAddress, TAccountPayer, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountSystemProgram>>;
|
|
2733
|
+
type InitStakeAccountInput<TAccountPayer extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountSystemProgram extends string = string> = {
|
|
2734
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
2735
|
+
/** No signature required: this instruction is permissionless. */
|
|
2736
|
+
owner: Address<TAccountOwner>;
|
|
2980
2737
|
market: Address<TAccountMarket>;
|
|
2738
|
+
stakeAccount: Address<TAccountStakeAccount>;
|
|
2739
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
2740
|
+
stakeAccountId: InitStakeAccountInstructionDataArgs['stakeAccountId'];
|
|
2981
2741
|
};
|
|
2982
|
-
declare function
|
|
2742
|
+
declare function getInitStakeAccountInstruction<TAccountPayer extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitStakeAccountInput<TAccountPayer, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountSystemProgram>, config?: {
|
|
2983
2743
|
programAddress?: TProgramAddress;
|
|
2984
|
-
}):
|
|
2985
|
-
type
|
|
2744
|
+
}): InitStakeAccountInstruction<TProgramAddress, TAccountPayer, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountSystemProgram>;
|
|
2745
|
+
type ParsedInitStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2986
2746
|
programAddress: Address<TProgram>;
|
|
2987
2747
|
accounts: {
|
|
2988
|
-
|
|
2989
|
-
|
|
2748
|
+
payer: TAccountMetas[0];
|
|
2749
|
+
/** No signature required: this instruction is permissionless. */
|
|
2750
|
+
owner: TAccountMetas[1];
|
|
2751
|
+
market: TAccountMetas[2];
|
|
2752
|
+
stakeAccount: TAccountMetas[3];
|
|
2753
|
+
systemProgram: TAccountMetas[4];
|
|
2990
2754
|
};
|
|
2991
|
-
data:
|
|
2755
|
+
data: InitStakeAccountInstructionData;
|
|
2992
2756
|
};
|
|
2993
|
-
declare function
|
|
2757
|
+
declare function parseInitStakeAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitStakeAccountInstruction<TProgram, TAccountMetas>;
|
|
2994
2758
|
|
|
2995
2759
|
/**
|
|
2996
2760
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -3000,55 +2764,43 @@ declare function parsePauseMarketInstruction<TProgram extends string, TAccountMe
|
|
|
3000
2764
|
* @see https://github.com/codama-idl/codama
|
|
3001
2765
|
*/
|
|
3002
2766
|
|
|
3003
|
-
declare const
|
|
3004
|
-
declare function
|
|
3005
|
-
type
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
TAccountTimelockedChange extends string ? WritableAccount<TAccountTimelockedChange> : TAccountTimelockedChange,
|
|
3010
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2767
|
+
declare const OPEN_MARKET_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2768
|
+
declare function getOpenMarketDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2769
|
+
type OpenMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMarketAuthority extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountPlatformConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2770
|
+
TAccountMarketAuthority extends string ? ReadonlySignerAccount<TAccountMarketAuthority> & AccountSignerMeta<TAccountMarketAuthority> : TAccountMarketAuthority,
|
|
2771
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
2772
|
+
TAccountPlatformConfig extends string ? ReadonlyAccount<TAccountPlatformConfig> : TAccountPlatformConfig,
|
|
3011
2773
|
...TRemainingAccounts
|
|
3012
2774
|
]>;
|
|
3013
|
-
type
|
|
2775
|
+
type OpenMarketInstructionData = {
|
|
3014
2776
|
discriminator: ReadonlyUint8Array;
|
|
2777
|
+
timeToStake: bigint;
|
|
3015
2778
|
};
|
|
3016
|
-
type
|
|
3017
|
-
|
|
3018
|
-
declare function getProposeNewFeeClaimerInstructionDataDecoder(): FixedSizeDecoder<ProposeNewFeeClaimerInstructionData>;
|
|
3019
|
-
declare function getProposeNewFeeClaimerInstructionDataCodec(): FixedSizeCodec<ProposeNewFeeClaimerInstructionDataArgs, ProposeNewFeeClaimerInstructionData>;
|
|
3020
|
-
type ProposeNewFeeClaimerAsyncInput<TAccountUpdateAuthority extends string = string, TAccountCentralState extends string = string, TAccountProposedFeeClaimer extends string = string, TAccountTimelockedChange extends string = string, TAccountSystemProgram extends string = string> = {
|
|
3021
|
-
updateAuthority: TransactionSigner<TAccountUpdateAuthority>;
|
|
3022
|
-
centralState?: Address<TAccountCentralState>;
|
|
3023
|
-
proposedFeeClaimer: Address<TAccountProposedFeeClaimer>;
|
|
3024
|
-
timelockedChange?: Address<TAccountTimelockedChange>;
|
|
3025
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
2779
|
+
type OpenMarketInstructionDataArgs = {
|
|
2780
|
+
timeToStake: number | bigint;
|
|
3026
2781
|
};
|
|
3027
|
-
declare function
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
type
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
2782
|
+
declare function getOpenMarketInstructionDataEncoder(): FixedSizeEncoder<OpenMarketInstructionDataArgs>;
|
|
2783
|
+
declare function getOpenMarketInstructionDataDecoder(): FixedSizeDecoder<OpenMarketInstructionData>;
|
|
2784
|
+
declare function getOpenMarketInstructionDataCodec(): FixedSizeCodec<OpenMarketInstructionDataArgs, OpenMarketInstructionData>;
|
|
2785
|
+
type OpenMarketInput<TAccountMarketAuthority extends string = string, TAccountMarket extends string = string, TAccountPlatformConfig extends string = string> = {
|
|
2786
|
+
marketAuthority: TransactionSigner<TAccountMarketAuthority>;
|
|
2787
|
+
market: Address<TAccountMarket>;
|
|
2788
|
+
platformConfig: Address<TAccountPlatformConfig>;
|
|
2789
|
+
timeToStake: OpenMarketInstructionDataArgs['timeToStake'];
|
|
3036
2790
|
};
|
|
3037
|
-
declare function
|
|
2791
|
+
declare function getOpenMarketInstruction<TAccountMarketAuthority extends string, TAccountMarket extends string, TAccountPlatformConfig extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: OpenMarketInput<TAccountMarketAuthority, TAccountMarket, TAccountPlatformConfig>, config?: {
|
|
3038
2792
|
programAddress?: TProgramAddress;
|
|
3039
|
-
}):
|
|
3040
|
-
type
|
|
2793
|
+
}): OpenMarketInstruction<TProgramAddress, TAccountMarketAuthority, TAccountMarket, TAccountPlatformConfig>;
|
|
2794
|
+
type ParsedOpenMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3041
2795
|
programAddress: Address<TProgram>;
|
|
3042
2796
|
accounts: {
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
timelockedChange: TAccountMetas[3];
|
|
3047
|
-
systemProgram: TAccountMetas[4];
|
|
2797
|
+
marketAuthority: TAccountMetas[0];
|
|
2798
|
+
market: TAccountMetas[1];
|
|
2799
|
+
platformConfig: TAccountMetas[2];
|
|
3048
2800
|
};
|
|
3049
|
-
data:
|
|
2801
|
+
data: OpenMarketInstructionData;
|
|
3050
2802
|
};
|
|
3051
|
-
declare function
|
|
2803
|
+
declare function parseOpenMarketInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedOpenMarketInstruction<TProgram, TAccountMetas>;
|
|
3052
2804
|
|
|
3053
2805
|
/**
|
|
3054
2806
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -3058,55 +2810,36 @@ declare function parseProposeNewFeeClaimerInstruction<TProgram extends string, T
|
|
|
3058
2810
|
* @see https://github.com/codama-idl/codama
|
|
3059
2811
|
*/
|
|
3060
2812
|
|
|
3061
|
-
declare const
|
|
3062
|
-
declare function
|
|
3063
|
-
type
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
TAccountProposedAuthority extends string ? ReadonlyAccount<TAccountProposedAuthority> : TAccountProposedAuthority,
|
|
3067
|
-
TAccountTimelockedChange extends string ? WritableAccount<TAccountTimelockedChange> : TAccountTimelockedChange,
|
|
3068
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2813
|
+
declare const PAUSE_STAKING_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2814
|
+
declare function getPauseStakingDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2815
|
+
type PauseStakingInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMarketAuthority extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2816
|
+
TAccountMarketAuthority extends string ? ReadonlySignerAccount<TAccountMarketAuthority> & AccountSignerMeta<TAccountMarketAuthority> : TAccountMarketAuthority,
|
|
2817
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3069
2818
|
...TRemainingAccounts
|
|
3070
2819
|
]>;
|
|
3071
|
-
type
|
|
2820
|
+
type PauseStakingInstructionData = {
|
|
3072
2821
|
discriminator: ReadonlyUint8Array;
|
|
3073
2822
|
};
|
|
3074
|
-
type
|
|
3075
|
-
declare function
|
|
3076
|
-
declare function
|
|
3077
|
-
declare function
|
|
3078
|
-
type
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
proposedAuthority: Address<TAccountProposedAuthority>;
|
|
3082
|
-
timelockedChange?: Address<TAccountTimelockedChange>;
|
|
3083
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
3084
|
-
};
|
|
3085
|
-
declare function getProposeNewUpdateAuthorityInstructionAsync<TAccountUpdateAuthority extends string, TAccountCentralState extends string, TAccountProposedAuthority extends string, TAccountTimelockedChange extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ProposeNewUpdateAuthorityAsyncInput<TAccountUpdateAuthority, TAccountCentralState, TAccountProposedAuthority, TAccountTimelockedChange, TAccountSystemProgram>, config?: {
|
|
3086
|
-
programAddress?: TProgramAddress;
|
|
3087
|
-
}): Promise<ProposeNewUpdateAuthorityInstruction<TProgramAddress, TAccountUpdateAuthority, TAccountCentralState, TAccountProposedAuthority, TAccountTimelockedChange, TAccountSystemProgram>>;
|
|
3088
|
-
type ProposeNewUpdateAuthorityInput<TAccountUpdateAuthority extends string = string, TAccountCentralState extends string = string, TAccountProposedAuthority extends string = string, TAccountTimelockedChange extends string = string, TAccountSystemProgram extends string = string> = {
|
|
3089
|
-
updateAuthority: TransactionSigner<TAccountUpdateAuthority>;
|
|
3090
|
-
centralState: Address<TAccountCentralState>;
|
|
3091
|
-
proposedAuthority: Address<TAccountProposedAuthority>;
|
|
3092
|
-
timelockedChange: Address<TAccountTimelockedChange>;
|
|
3093
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
2823
|
+
type PauseStakingInstructionDataArgs = {};
|
|
2824
|
+
declare function getPauseStakingInstructionDataEncoder(): FixedSizeEncoder<PauseStakingInstructionDataArgs>;
|
|
2825
|
+
declare function getPauseStakingInstructionDataDecoder(): FixedSizeDecoder<PauseStakingInstructionData>;
|
|
2826
|
+
declare function getPauseStakingInstructionDataCodec(): FixedSizeCodec<PauseStakingInstructionDataArgs, PauseStakingInstructionData>;
|
|
2827
|
+
type PauseStakingInput<TAccountMarketAuthority extends string = string, TAccountMarket extends string = string> = {
|
|
2828
|
+
marketAuthority: TransactionSigner<TAccountMarketAuthority>;
|
|
2829
|
+
market: Address<TAccountMarket>;
|
|
3094
2830
|
};
|
|
3095
|
-
declare function
|
|
2831
|
+
declare function getPauseStakingInstruction<TAccountMarketAuthority extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: PauseStakingInput<TAccountMarketAuthority, TAccountMarket>, config?: {
|
|
3096
2832
|
programAddress?: TProgramAddress;
|
|
3097
|
-
}):
|
|
3098
|
-
type
|
|
2833
|
+
}): PauseStakingInstruction<TProgramAddress, TAccountMarketAuthority, TAccountMarket>;
|
|
2834
|
+
type ParsedPauseStakingInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3099
2835
|
programAddress: Address<TProgram>;
|
|
3100
2836
|
accounts: {
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
proposedAuthority: TAccountMetas[2];
|
|
3104
|
-
timelockedChange: TAccountMetas[3];
|
|
3105
|
-
systemProgram: TAccountMetas[4];
|
|
2837
|
+
marketAuthority: TAccountMetas[0];
|
|
2838
|
+
market: TAccountMetas[1];
|
|
3106
2839
|
};
|
|
3107
|
-
data:
|
|
2840
|
+
data: PauseStakingInstructionData;
|
|
3108
2841
|
};
|
|
3109
|
-
declare function
|
|
2842
|
+
declare function parsePauseStakingInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedPauseStakingInstruction<TProgram, TAccountMetas>;
|
|
3110
2843
|
|
|
3111
2844
|
/**
|
|
3112
2845
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -3116,82 +2849,36 @@ declare function parseProposeNewUpdateAuthorityInstruction<TProgram extends stri
|
|
|
3116
2849
|
* @see https://github.com/codama-idl/codama
|
|
3117
2850
|
*/
|
|
3118
2851
|
|
|
3119
|
-
declare const
|
|
3120
|
-
declare function
|
|
3121
|
-
type
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
|
|
3125
|
-
TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
|
|
3126
|
-
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
3127
|
-
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
3128
|
-
TAccountOwnerTokenAccount extends string ? WritableAccount<TAccountOwnerTokenAccount> : TAccountOwnerTokenAccount,
|
|
3129
|
-
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
3130
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
2852
|
+
declare const RESOLVE_MARKET_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2853
|
+
declare function getResolveMarketDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2854
|
+
type ResolveMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMarketAuthority extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2855
|
+
TAccountMarketAuthority extends string ? ReadonlySignerAccount<TAccountMarketAuthority> & AccountSignerMeta<TAccountMarketAuthority> : TAccountMarketAuthority,
|
|
2856
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3131
2857
|
...TRemainingAccounts
|
|
3132
2858
|
]>;
|
|
3133
|
-
type
|
|
2859
|
+
type ResolveMarketInstructionData = {
|
|
3134
2860
|
discriminator: ReadonlyUint8Array;
|
|
3135
|
-
stakeAccountId: number;
|
|
3136
|
-
};
|
|
3137
|
-
type ReclaimStakeInstructionDataArgs = {
|
|
3138
|
-
stakeAccountId: number;
|
|
3139
|
-
};
|
|
3140
|
-
declare function getReclaimStakeInstructionDataEncoder(): FixedSizeEncoder<ReclaimStakeInstructionDataArgs>;
|
|
3141
|
-
declare function getReclaimStakeInstructionDataDecoder(): FixedSizeDecoder<ReclaimStakeInstructionData>;
|
|
3142
|
-
declare function getReclaimStakeInstructionDataCodec(): FixedSizeCodec<ReclaimStakeInstructionDataArgs, ReclaimStakeInstructionData>;
|
|
3143
|
-
type ReclaimStakeAsyncInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
3144
|
-
signer: TransactionSigner<TAccountSigner>;
|
|
3145
|
-
owner: Address<TAccountOwner>;
|
|
3146
|
-
market: Address<TAccountMarket>;
|
|
3147
|
-
stakeAccount?: Address<TAccountStakeAccount>;
|
|
3148
|
-
tokenMint: Address<TAccountTokenMint>;
|
|
3149
|
-
/** Market's ATA holding staked tokens */
|
|
3150
|
-
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
3151
|
-
/** Owner's token account to receive staked tokens */
|
|
3152
|
-
ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
|
|
3153
|
-
tokenProgram: Address<TAccountTokenProgram>;
|
|
3154
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
3155
|
-
stakeAccountId: ReclaimStakeInstructionDataArgs['stakeAccountId'];
|
|
3156
2861
|
};
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
2862
|
+
type ResolveMarketInstructionDataArgs = {};
|
|
2863
|
+
declare function getResolveMarketInstructionDataEncoder(): FixedSizeEncoder<ResolveMarketInstructionDataArgs>;
|
|
2864
|
+
declare function getResolveMarketInstructionDataDecoder(): FixedSizeDecoder<ResolveMarketInstructionData>;
|
|
2865
|
+
declare function getResolveMarketInstructionDataCodec(): FixedSizeCodec<ResolveMarketInstructionDataArgs, ResolveMarketInstructionData>;
|
|
2866
|
+
type ResolveMarketInput<TAccountMarketAuthority extends string = string, TAccountMarket extends string = string> = {
|
|
2867
|
+
marketAuthority: TransactionSigner<TAccountMarketAuthority>;
|
|
3163
2868
|
market: Address<TAccountMarket>;
|
|
3164
|
-
stakeAccount: Address<TAccountStakeAccount>;
|
|
3165
|
-
tokenMint: Address<TAccountTokenMint>;
|
|
3166
|
-
/** Market's ATA holding staked tokens */
|
|
3167
|
-
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
3168
|
-
/** Owner's token account to receive staked tokens */
|
|
3169
|
-
ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
|
|
3170
|
-
tokenProgram: Address<TAccountTokenProgram>;
|
|
3171
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
3172
|
-
stakeAccountId: ReclaimStakeInstructionDataArgs['stakeAccountId'];
|
|
3173
2869
|
};
|
|
3174
|
-
declare function
|
|
2870
|
+
declare function getResolveMarketInstruction<TAccountMarketAuthority extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ResolveMarketInput<TAccountMarketAuthority, TAccountMarket>, config?: {
|
|
3175
2871
|
programAddress?: TProgramAddress;
|
|
3176
|
-
}):
|
|
3177
|
-
type
|
|
2872
|
+
}): ResolveMarketInstruction<TProgramAddress, TAccountMarketAuthority, TAccountMarket>;
|
|
2873
|
+
type ParsedResolveMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3178
2874
|
programAddress: Address<TProgram>;
|
|
3179
2875
|
accounts: {
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
market: TAccountMetas[2];
|
|
3183
|
-
stakeAccount: TAccountMetas[3];
|
|
3184
|
-
tokenMint: TAccountMetas[4];
|
|
3185
|
-
/** Market's ATA holding staked tokens */
|
|
3186
|
-
marketTokenAta: TAccountMetas[5];
|
|
3187
|
-
/** Owner's token account to receive staked tokens */
|
|
3188
|
-
ownerTokenAccount: TAccountMetas[6];
|
|
3189
|
-
tokenProgram: TAccountMetas[7];
|
|
3190
|
-
systemProgram: TAccountMetas[8];
|
|
2876
|
+
marketAuthority: TAccountMetas[0];
|
|
2877
|
+
market: TAccountMetas[1];
|
|
3191
2878
|
};
|
|
3192
|
-
data:
|
|
2879
|
+
data: ResolveMarketInstructionData;
|
|
3193
2880
|
};
|
|
3194
|
-
declare function
|
|
2881
|
+
declare function parseResolveMarketInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedResolveMarketInstruction<TProgram, TAccountMetas>;
|
|
3195
2882
|
|
|
3196
2883
|
/**
|
|
3197
2884
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -3201,36 +2888,36 @@ declare function parseReclaimStakeInstruction<TProgram extends string, TAccountM
|
|
|
3201
2888
|
* @see https://github.com/codama-idl/codama
|
|
3202
2889
|
*/
|
|
3203
2890
|
|
|
3204
|
-
declare const
|
|
3205
|
-
declare function
|
|
3206
|
-
type
|
|
3207
|
-
|
|
2891
|
+
declare const RESUME_STAKING_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
2892
|
+
declare function getResumeStakingDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
2893
|
+
type ResumeStakingInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMarketAuthority extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2894
|
+
TAccountMarketAuthority extends string ? ReadonlySignerAccount<TAccountMarketAuthority> & AccountSignerMeta<TAccountMarketAuthority> : TAccountMarketAuthority,
|
|
3208
2895
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3209
2896
|
...TRemainingAccounts
|
|
3210
2897
|
]>;
|
|
3211
|
-
type
|
|
2898
|
+
type ResumeStakingInstructionData = {
|
|
3212
2899
|
discriminator: ReadonlyUint8Array;
|
|
3213
2900
|
};
|
|
3214
|
-
type
|
|
3215
|
-
declare function
|
|
3216
|
-
declare function
|
|
3217
|
-
declare function
|
|
3218
|
-
type
|
|
3219
|
-
|
|
2901
|
+
type ResumeStakingInstructionDataArgs = {};
|
|
2902
|
+
declare function getResumeStakingInstructionDataEncoder(): FixedSizeEncoder<ResumeStakingInstructionDataArgs>;
|
|
2903
|
+
declare function getResumeStakingInstructionDataDecoder(): FixedSizeDecoder<ResumeStakingInstructionData>;
|
|
2904
|
+
declare function getResumeStakingInstructionDataCodec(): FixedSizeCodec<ResumeStakingInstructionDataArgs, ResumeStakingInstructionData>;
|
|
2905
|
+
type ResumeStakingInput<TAccountMarketAuthority extends string = string, TAccountMarket extends string = string> = {
|
|
2906
|
+
marketAuthority: TransactionSigner<TAccountMarketAuthority>;
|
|
3220
2907
|
market: Address<TAccountMarket>;
|
|
3221
2908
|
};
|
|
3222
|
-
declare function
|
|
2909
|
+
declare function getResumeStakingInstruction<TAccountMarketAuthority extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ResumeStakingInput<TAccountMarketAuthority, TAccountMarket>, config?: {
|
|
3223
2910
|
programAddress?: TProgramAddress;
|
|
3224
|
-
}):
|
|
3225
|
-
type
|
|
2911
|
+
}): ResumeStakingInstruction<TProgramAddress, TAccountMarketAuthority, TAccountMarket>;
|
|
2912
|
+
type ParsedResumeStakingInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3226
2913
|
programAddress: Address<TProgram>;
|
|
3227
2914
|
accounts: {
|
|
3228
|
-
|
|
2915
|
+
marketAuthority: TAccountMetas[0];
|
|
3229
2916
|
market: TAccountMetas[1];
|
|
3230
2917
|
};
|
|
3231
|
-
data:
|
|
2918
|
+
data: ResumeStakingInstructionData;
|
|
3232
2919
|
};
|
|
3233
|
-
declare function
|
|
2920
|
+
declare function parseResumeStakingInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedResumeStakingInstruction<TProgram, TAccountMetas>;
|
|
3234
2921
|
|
|
3235
2922
|
/**
|
|
3236
2923
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -3475,40 +3162,140 @@ declare function parseRevealStakeCompDefInstruction<TProgram extends string, TAc
|
|
|
3475
3162
|
* @see https://github.com/codama-idl/codama
|
|
3476
3163
|
*/
|
|
3477
3164
|
|
|
3478
|
-
declare const
|
|
3479
|
-
declare function
|
|
3480
|
-
type
|
|
3481
|
-
|
|
3165
|
+
declare const SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3166
|
+
declare function getSetFeeClaimAuthorityDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
3167
|
+
type SetFeeClaimAuthorityInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountUpdateAuthority extends string | AccountMeta<string> = string, TAccountPlatformConfig extends string | AccountMeta<string> = string, TAccountNewFeeClaimAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3168
|
+
TAccountUpdateAuthority extends string ? ReadonlySignerAccount<TAccountUpdateAuthority> & AccountSignerMeta<TAccountUpdateAuthority> : TAccountUpdateAuthority,
|
|
3169
|
+
TAccountPlatformConfig extends string ? WritableAccount<TAccountPlatformConfig> : TAccountPlatformConfig,
|
|
3170
|
+
TAccountNewFeeClaimAuthority extends string ? ReadonlyAccount<TAccountNewFeeClaimAuthority> : TAccountNewFeeClaimAuthority,
|
|
3171
|
+
...TRemainingAccounts
|
|
3172
|
+
]>;
|
|
3173
|
+
type SetFeeClaimAuthorityInstructionData = {
|
|
3174
|
+
discriminator: ReadonlyUint8Array;
|
|
3175
|
+
};
|
|
3176
|
+
type SetFeeClaimAuthorityInstructionDataArgs = {};
|
|
3177
|
+
declare function getSetFeeClaimAuthorityInstructionDataEncoder(): FixedSizeEncoder<SetFeeClaimAuthorityInstructionDataArgs>;
|
|
3178
|
+
declare function getSetFeeClaimAuthorityInstructionDataDecoder(): FixedSizeDecoder<SetFeeClaimAuthorityInstructionData>;
|
|
3179
|
+
declare function getSetFeeClaimAuthorityInstructionDataCodec(): FixedSizeCodec<SetFeeClaimAuthorityInstructionDataArgs, SetFeeClaimAuthorityInstructionData>;
|
|
3180
|
+
type SetFeeClaimAuthorityInput<TAccountUpdateAuthority extends string = string, TAccountPlatformConfig extends string = string, TAccountNewFeeClaimAuthority extends string = string> = {
|
|
3181
|
+
updateAuthority: TransactionSigner<TAccountUpdateAuthority>;
|
|
3182
|
+
platformConfig: Address<TAccountPlatformConfig>;
|
|
3183
|
+
newFeeClaimAuthority: Address<TAccountNewFeeClaimAuthority>;
|
|
3184
|
+
};
|
|
3185
|
+
declare function getSetFeeClaimAuthorityInstruction<TAccountUpdateAuthority extends string, TAccountPlatformConfig extends string, TAccountNewFeeClaimAuthority extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: SetFeeClaimAuthorityInput<TAccountUpdateAuthority, TAccountPlatformConfig, TAccountNewFeeClaimAuthority>, config?: {
|
|
3186
|
+
programAddress?: TProgramAddress;
|
|
3187
|
+
}): SetFeeClaimAuthorityInstruction<TProgramAddress, TAccountUpdateAuthority, TAccountPlatformConfig, TAccountNewFeeClaimAuthority>;
|
|
3188
|
+
type ParsedSetFeeClaimAuthorityInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3189
|
+
programAddress: Address<TProgram>;
|
|
3190
|
+
accounts: {
|
|
3191
|
+
updateAuthority: TAccountMetas[0];
|
|
3192
|
+
platformConfig: TAccountMetas[1];
|
|
3193
|
+
newFeeClaimAuthority: TAccountMetas[2];
|
|
3194
|
+
};
|
|
3195
|
+
data: SetFeeClaimAuthorityInstructionData;
|
|
3196
|
+
};
|
|
3197
|
+
declare function parseSetFeeClaimAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetFeeClaimAuthorityInstruction<TProgram, TAccountMetas>;
|
|
3198
|
+
|
|
3199
|
+
/**
|
|
3200
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3201
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3202
|
+
* to add features, then rerun Codama to update it.
|
|
3203
|
+
*
|
|
3204
|
+
* @see https://github.com/codama-idl/codama
|
|
3205
|
+
*/
|
|
3206
|
+
|
|
3207
|
+
declare const SET_UPDATE_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3208
|
+
declare function getSetUpdateAuthorityDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
3209
|
+
type SetUpdateAuthorityInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountUpdateAuthority extends string | AccountMeta<string> = string, TAccountPlatformConfig extends string | AccountMeta<string> = string, TAccountNewAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3210
|
+
TAccountUpdateAuthority extends string ? ReadonlySignerAccount<TAccountUpdateAuthority> & AccountSignerMeta<TAccountUpdateAuthority> : TAccountUpdateAuthority,
|
|
3211
|
+
TAccountPlatformConfig extends string ? WritableAccount<TAccountPlatformConfig> : TAccountPlatformConfig,
|
|
3212
|
+
TAccountNewAuthority extends string ? ReadonlyAccount<TAccountNewAuthority> : TAccountNewAuthority,
|
|
3213
|
+
...TRemainingAccounts
|
|
3214
|
+
]>;
|
|
3215
|
+
type SetUpdateAuthorityInstructionData = {
|
|
3216
|
+
discriminator: ReadonlyUint8Array;
|
|
3217
|
+
};
|
|
3218
|
+
type SetUpdateAuthorityInstructionDataArgs = {};
|
|
3219
|
+
declare function getSetUpdateAuthorityInstructionDataEncoder(): FixedSizeEncoder<SetUpdateAuthorityInstructionDataArgs>;
|
|
3220
|
+
declare function getSetUpdateAuthorityInstructionDataDecoder(): FixedSizeDecoder<SetUpdateAuthorityInstructionData>;
|
|
3221
|
+
declare function getSetUpdateAuthorityInstructionDataCodec(): FixedSizeCodec<SetUpdateAuthorityInstructionDataArgs, SetUpdateAuthorityInstructionData>;
|
|
3222
|
+
type SetUpdateAuthorityInput<TAccountUpdateAuthority extends string = string, TAccountPlatformConfig extends string = string, TAccountNewAuthority extends string = string> = {
|
|
3223
|
+
updateAuthority: TransactionSigner<TAccountUpdateAuthority>;
|
|
3224
|
+
platformConfig: Address<TAccountPlatformConfig>;
|
|
3225
|
+
newAuthority: Address<TAccountNewAuthority>;
|
|
3226
|
+
};
|
|
3227
|
+
declare function getSetUpdateAuthorityInstruction<TAccountUpdateAuthority extends string, TAccountPlatformConfig extends string, TAccountNewAuthority extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: SetUpdateAuthorityInput<TAccountUpdateAuthority, TAccountPlatformConfig, TAccountNewAuthority>, config?: {
|
|
3228
|
+
programAddress?: TProgramAddress;
|
|
3229
|
+
}): SetUpdateAuthorityInstruction<TProgramAddress, TAccountUpdateAuthority, TAccountPlatformConfig, TAccountNewAuthority>;
|
|
3230
|
+
type ParsedSetUpdateAuthorityInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3231
|
+
programAddress: Address<TProgram>;
|
|
3232
|
+
accounts: {
|
|
3233
|
+
updateAuthority: TAccountMetas[0];
|
|
3234
|
+
platformConfig: TAccountMetas[1];
|
|
3235
|
+
newAuthority: TAccountMetas[2];
|
|
3236
|
+
};
|
|
3237
|
+
data: SetUpdateAuthorityInstructionData;
|
|
3238
|
+
};
|
|
3239
|
+
declare function parseSetUpdateAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetUpdateAuthorityInstruction<TProgram, TAccountMetas>;
|
|
3240
|
+
|
|
3241
|
+
/**
|
|
3242
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3243
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
3244
|
+
* to add features, then rerun Codama to update it.
|
|
3245
|
+
*
|
|
3246
|
+
* @see https://github.com/codama-idl/codama
|
|
3247
|
+
*/
|
|
3248
|
+
|
|
3249
|
+
declare const SET_WINNING_OPTION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3250
|
+
declare function getSetWinningOptionDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
3251
|
+
type SetWinningOptionInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMarketAuthority extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountOption extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3252
|
+
TAccountMarketAuthority extends string ? ReadonlySignerAccount<TAccountMarketAuthority> & AccountSignerMeta<TAccountMarketAuthority> : TAccountMarketAuthority,
|
|
3482
3253
|
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3254
|
+
TAccountOption extends string ? WritableAccount<TAccountOption> : TAccountOption,
|
|
3483
3255
|
...TRemainingAccounts
|
|
3484
3256
|
]>;
|
|
3485
|
-
type
|
|
3257
|
+
type SetWinningOptionInstructionData = {
|
|
3486
3258
|
discriminator: ReadonlyUint8Array;
|
|
3487
|
-
|
|
3259
|
+
optionId: bigint;
|
|
3260
|
+
rewardPercentageBp: number;
|
|
3261
|
+
};
|
|
3262
|
+
type SetWinningOptionInstructionDataArgs = {
|
|
3263
|
+
optionId: number | bigint;
|
|
3264
|
+
rewardPercentageBp: number;
|
|
3488
3265
|
};
|
|
3489
|
-
|
|
3490
|
-
|
|
3266
|
+
declare function getSetWinningOptionInstructionDataEncoder(): FixedSizeEncoder<SetWinningOptionInstructionDataArgs>;
|
|
3267
|
+
declare function getSetWinningOptionInstructionDataDecoder(): FixedSizeDecoder<SetWinningOptionInstructionData>;
|
|
3268
|
+
declare function getSetWinningOptionInstructionDataCodec(): FixedSizeCodec<SetWinningOptionInstructionDataArgs, SetWinningOptionInstructionData>;
|
|
3269
|
+
type SetWinningOptionAsyncInput<TAccountMarketAuthority extends string = string, TAccountMarket extends string = string, TAccountOption extends string = string> = {
|
|
3270
|
+
marketAuthority: TransactionSigner<TAccountMarketAuthority>;
|
|
3271
|
+
market: Address<TAccountMarket>;
|
|
3272
|
+
option?: Address<TAccountOption>;
|
|
3273
|
+
optionId: SetWinningOptionInstructionDataArgs['optionId'];
|
|
3274
|
+
rewardPercentageBp: SetWinningOptionInstructionDataArgs['rewardPercentageBp'];
|
|
3491
3275
|
};
|
|
3492
|
-
declare function
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
type
|
|
3496
|
-
|
|
3276
|
+
declare function getSetWinningOptionInstructionAsync<TAccountMarketAuthority extends string, TAccountMarket extends string, TAccountOption extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: SetWinningOptionAsyncInput<TAccountMarketAuthority, TAccountMarket, TAccountOption>, config?: {
|
|
3277
|
+
programAddress?: TProgramAddress;
|
|
3278
|
+
}): Promise<SetWinningOptionInstruction<TProgramAddress, TAccountMarketAuthority, TAccountMarket, TAccountOption>>;
|
|
3279
|
+
type SetWinningOptionInput<TAccountMarketAuthority extends string = string, TAccountMarket extends string = string, TAccountOption extends string = string> = {
|
|
3280
|
+
marketAuthority: TransactionSigner<TAccountMarketAuthority>;
|
|
3497
3281
|
market: Address<TAccountMarket>;
|
|
3498
|
-
|
|
3282
|
+
option: Address<TAccountOption>;
|
|
3283
|
+
optionId: SetWinningOptionInstructionDataArgs['optionId'];
|
|
3284
|
+
rewardPercentageBp: SetWinningOptionInstructionDataArgs['rewardPercentageBp'];
|
|
3499
3285
|
};
|
|
3500
|
-
declare function
|
|
3286
|
+
declare function getSetWinningOptionInstruction<TAccountMarketAuthority extends string, TAccountMarket extends string, TAccountOption extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: SetWinningOptionInput<TAccountMarketAuthority, TAccountMarket, TAccountOption>, config?: {
|
|
3501
3287
|
programAddress?: TProgramAddress;
|
|
3502
|
-
}):
|
|
3503
|
-
type
|
|
3288
|
+
}): SetWinningOptionInstruction<TProgramAddress, TAccountMarketAuthority, TAccountMarket, TAccountOption>;
|
|
3289
|
+
type ParsedSetWinningOptionInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3504
3290
|
programAddress: Address<TProgram>;
|
|
3505
3291
|
accounts: {
|
|
3506
|
-
|
|
3292
|
+
marketAuthority: TAccountMetas[0];
|
|
3507
3293
|
market: TAccountMetas[1];
|
|
3294
|
+
option: TAccountMetas[2];
|
|
3508
3295
|
};
|
|
3509
|
-
data:
|
|
3296
|
+
data: SetWinningOptionInstructionData;
|
|
3510
3297
|
};
|
|
3511
|
-
declare function
|
|
3298
|
+
declare function parseSetWinningOptionInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetWinningOptionInstruction<TProgram, TAccountMetas>;
|
|
3512
3299
|
|
|
3513
3300
|
/**
|
|
3514
3301
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -3520,17 +3307,14 @@ declare function parseSelectWinningOptionsInstruction<TProgram extends string, T
|
|
|
3520
3307
|
|
|
3521
3308
|
declare const STAKE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3522
3309
|
declare function getStakeDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
3523
|
-
type StakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountSignerTokenAccount extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string,
|
|
3310
|
+
type StakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountSignerTokenAccount extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountTokenProgram 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<[
|
|
3524
3311
|
TAccountSigner extends string ? ReadonlySignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
3525
3312
|
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
3526
|
-
TAccountMarket extends string ?
|
|
3313
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3527
3314
|
TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
|
|
3528
3315
|
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
3529
3316
|
TAccountSignerTokenAccount extends string ? WritableAccount<TAccountSignerTokenAccount> : TAccountSignerTokenAccount,
|
|
3530
3317
|
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
3531
|
-
TAccountTokenVault extends string ? WritableAccount<TAccountTokenVault> : TAccountTokenVault,
|
|
3532
|
-
TAccountTokenVaultAta extends string ? WritableAccount<TAccountTokenVaultAta> : TAccountTokenVaultAta,
|
|
3533
|
-
TAccountCentralState extends string ? ReadonlyAccount<TAccountCentralState> : TAccountCentralState,
|
|
3534
3318
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
3535
3319
|
TAccountSignPdaAccount extends string ? WritableAccount<TAccountSignPdaAccount> : TAccountSignPdaAccount,
|
|
3536
3320
|
TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
@@ -3554,6 +3338,7 @@ type StakeInstructionData = {
|
|
|
3554
3338
|
inputNonce: bigint;
|
|
3555
3339
|
authorizedReaderNonce: bigint;
|
|
3556
3340
|
userPubkey: Array<number>;
|
|
3341
|
+
stateNonce: bigint;
|
|
3557
3342
|
};
|
|
3558
3343
|
type StakeInstructionDataArgs = {
|
|
3559
3344
|
computationOffset: number | bigint;
|
|
@@ -3563,24 +3348,20 @@ type StakeInstructionDataArgs = {
|
|
|
3563
3348
|
inputNonce: number | bigint;
|
|
3564
3349
|
authorizedReaderNonce: number | bigint;
|
|
3565
3350
|
userPubkey: Array<number>;
|
|
3351
|
+
stateNonce: number | bigint;
|
|
3566
3352
|
};
|
|
3567
3353
|
declare function getStakeInstructionDataEncoder(): FixedSizeEncoder<StakeInstructionDataArgs>;
|
|
3568
3354
|
declare function getStakeInstructionDataDecoder(): FixedSizeDecoder<StakeInstructionData>;
|
|
3569
3355
|
declare function getStakeInstructionDataCodec(): FixedSizeCodec<StakeInstructionDataArgs, StakeInstructionData>;
|
|
3570
|
-
type StakeAsyncInput<TAccountSigner extends string = string, TAccountPayer extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountSignerTokenAccount extends string = string, TAccountMarketTokenAta extends string = string,
|
|
3356
|
+
type StakeAsyncInput<TAccountSigner extends string = string, TAccountPayer extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountSignerTokenAccount extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram 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> = {
|
|
3571
3357
|
signer: TransactionSigner<TAccountSigner>;
|
|
3572
3358
|
payer: TransactionSigner<TAccountPayer>;
|
|
3573
3359
|
market: Address<TAccountMarket>;
|
|
3574
|
-
stakeAccount
|
|
3360
|
+
stakeAccount: Address<TAccountStakeAccount>;
|
|
3575
3361
|
tokenMint: Address<TAccountTokenMint>;
|
|
3362
|
+
/** Funds the stake. */
|
|
3576
3363
|
signerTokenAccount: Address<TAccountSignerTokenAccount>;
|
|
3577
|
-
/** Market's ATA for holding staked tokens */
|
|
3578
3364
|
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
3579
|
-
/** Token vault for fee collection */
|
|
3580
|
-
tokenVault?: Address<TAccountTokenVault>;
|
|
3581
|
-
/** Token vault ATA for fee tokens */
|
|
3582
|
-
tokenVaultAta?: Address<TAccountTokenVaultAta>;
|
|
3583
|
-
centralState?: Address<TAccountCentralState>;
|
|
3584
3365
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
3585
3366
|
signPdaAccount?: Address<TAccountSignPdaAccount>;
|
|
3586
3367
|
mxeAccount: Address<TAccountMxeAccount>;
|
|
@@ -3600,24 +3381,20 @@ type StakeAsyncInput<TAccountSigner extends string = string, TAccountPayer exten
|
|
|
3600
3381
|
inputNonce: StakeInstructionDataArgs['inputNonce'];
|
|
3601
3382
|
authorizedReaderNonce: StakeInstructionDataArgs['authorizedReaderNonce'];
|
|
3602
3383
|
userPubkey: StakeInstructionDataArgs['userPubkey'];
|
|
3384
|
+
stateNonce: StakeInstructionDataArgs['stateNonce'];
|
|
3603
3385
|
};
|
|
3604
|
-
declare function getStakeInstructionAsync<TAccountSigner extends string, TAccountPayer extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountSignerTokenAccount extends string, TAccountMarketTokenAta extends string,
|
|
3386
|
+
declare function getStakeInstructionAsync<TAccountSigner extends string, TAccountPayer extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountSignerTokenAccount extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram 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: StakeAsyncInput<TAccountSigner, TAccountPayer, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
|
|
3605
3387
|
programAddress?: TProgramAddress;
|
|
3606
|
-
}): Promise<StakeInstruction<TProgramAddress, TAccountSigner, TAccountPayer, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta,
|
|
3607
|
-
type StakeInput<TAccountSigner extends string = string, TAccountPayer extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountSignerTokenAccount extends string = string, TAccountMarketTokenAta extends string = string,
|
|
3388
|
+
}): Promise<StakeInstruction<TProgramAddress, TAccountSigner, TAccountPayer, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>>;
|
|
3389
|
+
type StakeInput<TAccountSigner extends string = string, TAccountPayer extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountSignerTokenAccount extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram 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> = {
|
|
3608
3390
|
signer: TransactionSigner<TAccountSigner>;
|
|
3609
3391
|
payer: TransactionSigner<TAccountPayer>;
|
|
3610
3392
|
market: Address<TAccountMarket>;
|
|
3611
3393
|
stakeAccount: Address<TAccountStakeAccount>;
|
|
3612
3394
|
tokenMint: Address<TAccountTokenMint>;
|
|
3395
|
+
/** Funds the stake. */
|
|
3613
3396
|
signerTokenAccount: Address<TAccountSignerTokenAccount>;
|
|
3614
|
-
/** Market's ATA for holding staked tokens */
|
|
3615
3397
|
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
3616
|
-
/** Token vault for fee collection */
|
|
3617
|
-
tokenVault: Address<TAccountTokenVault>;
|
|
3618
|
-
/** Token vault ATA for fee tokens */
|
|
3619
|
-
tokenVaultAta: Address<TAccountTokenVaultAta>;
|
|
3620
|
-
centralState: Address<TAccountCentralState>;
|
|
3621
3398
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
3622
3399
|
signPdaAccount: Address<TAccountSignPdaAccount>;
|
|
3623
3400
|
mxeAccount: Address<TAccountMxeAccount>;
|
|
@@ -3637,10 +3414,11 @@ type StakeInput<TAccountSigner extends string = string, TAccountPayer extends st
|
|
|
3637
3414
|
inputNonce: StakeInstructionDataArgs['inputNonce'];
|
|
3638
3415
|
authorizedReaderNonce: StakeInstructionDataArgs['authorizedReaderNonce'];
|
|
3639
3416
|
userPubkey: StakeInstructionDataArgs['userPubkey'];
|
|
3417
|
+
stateNonce: StakeInstructionDataArgs['stateNonce'];
|
|
3640
3418
|
};
|
|
3641
|
-
declare function getStakeInstruction<TAccountSigner extends string, TAccountPayer extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountSignerTokenAccount extends string, TAccountMarketTokenAta extends string,
|
|
3419
|
+
declare function getStakeInstruction<TAccountSigner extends string, TAccountPayer extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountTokenMint extends string, TAccountSignerTokenAccount extends string, TAccountMarketTokenAta extends string, TAccountTokenProgram 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: StakeInput<TAccountSigner, TAccountPayer, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
|
|
3642
3420
|
programAddress?: TProgramAddress;
|
|
3643
|
-
}): StakeInstruction<TProgramAddress, TAccountSigner, TAccountPayer, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta,
|
|
3421
|
+
}): StakeInstruction<TProgramAddress, TAccountSigner, TAccountPayer, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>;
|
|
3644
3422
|
type ParsedStakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3645
3423
|
programAddress: Address<TProgram>;
|
|
3646
3424
|
accounts: {
|
|
@@ -3649,26 +3427,21 @@ type ParsedStakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_
|
|
|
3649
3427
|
market: TAccountMetas[2];
|
|
3650
3428
|
stakeAccount: TAccountMetas[3];
|
|
3651
3429
|
tokenMint: TAccountMetas[4];
|
|
3430
|
+
/** Funds the stake. */
|
|
3652
3431
|
signerTokenAccount: TAccountMetas[5];
|
|
3653
|
-
/** Market's ATA for holding staked tokens */
|
|
3654
3432
|
marketTokenAta: TAccountMetas[6];
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
clusterAccount: TAccountMetas[17];
|
|
3668
|
-
poolAccount: TAccountMetas[18];
|
|
3669
|
-
clockAccount: TAccountMetas[19];
|
|
3670
|
-
systemProgram: TAccountMetas[20];
|
|
3671
|
-
arciumProgram: TAccountMetas[21];
|
|
3433
|
+
tokenProgram: TAccountMetas[7];
|
|
3434
|
+
signPdaAccount: TAccountMetas[8];
|
|
3435
|
+
mxeAccount: TAccountMetas[9];
|
|
3436
|
+
mempoolAccount: TAccountMetas[10];
|
|
3437
|
+
executingPool: TAccountMetas[11];
|
|
3438
|
+
computationAccount: TAccountMetas[12];
|
|
3439
|
+
compDefAccount: TAccountMetas[13];
|
|
3440
|
+
clusterAccount: TAccountMetas[14];
|
|
3441
|
+
poolAccount: TAccountMetas[15];
|
|
3442
|
+
clockAccount: TAccountMetas[16];
|
|
3443
|
+
systemProgram: TAccountMetas[17];
|
|
3444
|
+
arciumProgram: TAccountMetas[18];
|
|
3672
3445
|
};
|
|
3673
3446
|
data: StakeInstructionData;
|
|
3674
3447
|
};
|
|
@@ -3684,16 +3457,15 @@ declare function parseStakeInstruction<TProgram extends string, TAccountMetas ex
|
|
|
3684
3457
|
|
|
3685
3458
|
declare const STAKE_CALLBACK_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3686
3459
|
declare function getStakeCallbackDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
3687
|
-
type StakeCallbackInstruction<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',
|
|
3460
|
+
type StakeCallbackInstruction<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', TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3688
3461
|
TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
|
|
3689
3462
|
TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
|
|
3690
3463
|
TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
|
|
3691
3464
|
TAccountComputationAccount extends string ? ReadonlyAccount<TAccountComputationAccount> : TAccountComputationAccount,
|
|
3692
3465
|
TAccountClusterAccount extends string ? ReadonlyAccount<TAccountClusterAccount> : TAccountClusterAccount,
|
|
3693
3466
|
TAccountInstructionsSysvar extends string ? ReadonlyAccount<TAccountInstructionsSysvar> : TAccountInstructionsSysvar,
|
|
3694
|
-
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3695
3467
|
TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
|
|
3696
|
-
|
|
3468
|
+
TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
|
|
3697
3469
|
...TRemainingAccounts
|
|
3698
3470
|
]>;
|
|
3699
3471
|
type StakeCallbackInstructionData = {
|
|
@@ -3722,21 +3494,20 @@ type StakeCallbackInstructionDataArgs = {
|
|
|
3722
3494
|
declare function getStakeCallbackInstructionDataEncoder(): Encoder<StakeCallbackInstructionDataArgs>;
|
|
3723
3495
|
declare function getStakeCallbackInstructionDataDecoder(): Decoder<StakeCallbackInstructionData>;
|
|
3724
3496
|
declare function getStakeCallbackInstructionDataCodec(): Codec<StakeCallbackInstructionDataArgs, StakeCallbackInstructionData>;
|
|
3725
|
-
type StakeCallbackInput<TAccountArciumProgram extends string = string, TAccountCompDefAccount extends string = string, TAccountMxeAccount extends string = string, TAccountComputationAccount extends string = string, TAccountClusterAccount extends string = string, TAccountInstructionsSysvar extends string = string,
|
|
3497
|
+
type StakeCallbackInput<TAccountArciumProgram extends string = string, TAccountCompDefAccount extends string = string, TAccountMxeAccount extends string = string, TAccountComputationAccount extends string = string, TAccountClusterAccount extends string = string, TAccountInstructionsSysvar extends string = string, TAccountStakeAccount extends string = string, TAccountMarket extends string = string> = {
|
|
3726
3498
|
arciumProgram?: Address<TAccountArciumProgram>;
|
|
3727
3499
|
compDefAccount: Address<TAccountCompDefAccount>;
|
|
3728
3500
|
mxeAccount: Address<TAccountMxeAccount>;
|
|
3729
3501
|
computationAccount: Address<TAccountComputationAccount>;
|
|
3730
3502
|
clusterAccount: Address<TAccountClusterAccount>;
|
|
3731
3503
|
instructionsSysvar?: Address<TAccountInstructionsSysvar>;
|
|
3732
|
-
market: Address<TAccountMarket>;
|
|
3733
3504
|
stakeAccount: Address<TAccountStakeAccount>;
|
|
3734
|
-
|
|
3505
|
+
market: Address<TAccountMarket>;
|
|
3735
3506
|
output: StakeCallbackInstructionDataArgs['output'];
|
|
3736
3507
|
};
|
|
3737
|
-
declare function getStakeCallbackInstruction<TAccountArciumProgram extends string, TAccountCompDefAccount extends string, TAccountMxeAccount extends string, TAccountComputationAccount extends string, TAccountClusterAccount extends string, TAccountInstructionsSysvar extends string,
|
|
3508
|
+
declare function getStakeCallbackInstruction<TAccountArciumProgram extends string, TAccountCompDefAccount extends string, TAccountMxeAccount extends string, TAccountComputationAccount extends string, TAccountClusterAccount extends string, TAccountInstructionsSysvar extends string, TAccountStakeAccount extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: StakeCallbackInput<TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountStakeAccount, TAccountMarket>, config?: {
|
|
3738
3509
|
programAddress?: TProgramAddress;
|
|
3739
|
-
}): StakeCallbackInstruction<TProgramAddress, TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar,
|
|
3510
|
+
}): StakeCallbackInstruction<TProgramAddress, TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountStakeAccount, TAccountMarket>;
|
|
3740
3511
|
type ParsedStakeCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3741
3512
|
programAddress: Address<TProgram>;
|
|
3742
3513
|
accounts: {
|
|
@@ -3746,9 +3517,8 @@ type ParsedStakeCallbackInstruction<TProgram extends string = typeof OPPORTUNITY
|
|
|
3746
3517
|
computationAccount: TAccountMetas[3];
|
|
3747
3518
|
clusterAccount: TAccountMetas[4];
|
|
3748
3519
|
instructionsSysvar: TAccountMetas[5];
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
tokenVault: TAccountMetas[8];
|
|
3520
|
+
stakeAccount: TAccountMetas[6];
|
|
3521
|
+
market: TAccountMetas[7];
|
|
3752
3522
|
};
|
|
3753
3523
|
data: StakeCallbackInstructionData;
|
|
3754
3524
|
};
|
|
@@ -3816,52 +3586,79 @@ declare function parseStakeCompDefInstruction<TProgram extends string, TAccountM
|
|
|
3816
3586
|
* @see https://github.com/codama-idl/codama
|
|
3817
3587
|
*/
|
|
3818
3588
|
|
|
3819
|
-
declare const
|
|
3820
|
-
declare function
|
|
3821
|
-
type
|
|
3589
|
+
declare const UNSTAKE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3590
|
+
declare function getUnstakeDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
3591
|
+
type UnstakeInstruction<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, TAccountStakeAccount 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<[
|
|
3822
3592
|
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
3593
|
+
TAccountOwner extends string ? ReadonlyAccount<TAccountOwner> : TAccountOwner,
|
|
3823
3594
|
TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
|
|
3824
3595
|
TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
|
|
3596
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
3597
|
+
TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
|
|
3598
|
+
TAccountOwnerTokenAccount extends string ? WritableAccount<TAccountOwnerTokenAccount> : TAccountOwnerTokenAccount,
|
|
3599
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
3600
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
3825
3601
|
...TRemainingAccounts
|
|
3826
3602
|
]>;
|
|
3827
|
-
type
|
|
3603
|
+
type UnstakeInstructionData = {
|
|
3828
3604
|
discriminator: ReadonlyUint8Array;
|
|
3829
3605
|
stakeAccountId: number;
|
|
3830
3606
|
};
|
|
3831
|
-
type
|
|
3607
|
+
type UnstakeInstructionDataArgs = {
|
|
3832
3608
|
stakeAccountId: number;
|
|
3833
3609
|
};
|
|
3834
|
-
declare function
|
|
3835
|
-
declare function
|
|
3836
|
-
declare function
|
|
3837
|
-
type
|
|
3610
|
+
declare function getUnstakeInstructionDataEncoder(): FixedSizeEncoder<UnstakeInstructionDataArgs>;
|
|
3611
|
+
declare function getUnstakeInstructionDataDecoder(): FixedSizeDecoder<UnstakeInstructionData>;
|
|
3612
|
+
declare function getUnstakeInstructionDataCodec(): FixedSizeCodec<UnstakeInstructionDataArgs, UnstakeInstructionData>;
|
|
3613
|
+
type UnstakeAsyncInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
3838
3614
|
signer: TransactionSigner<TAccountSigner>;
|
|
3615
|
+
owner: Address<TAccountOwner>;
|
|
3839
3616
|
market: Address<TAccountMarket>;
|
|
3840
3617
|
stakeAccount?: Address<TAccountStakeAccount>;
|
|
3841
|
-
|
|
3618
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
3619
|
+
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
3620
|
+
/** Owner's token account to receive staked tokens */
|
|
3621
|
+
ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
|
|
3622
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
3623
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3624
|
+
stakeAccountId: UnstakeInstructionDataArgs['stakeAccountId'];
|
|
3842
3625
|
};
|
|
3843
|
-
declare function
|
|
3626
|
+
declare function getUnstakeInstructionAsync<TAccountSigner extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount 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: UnstakeAsyncInput<TAccountSigner, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
3844
3627
|
programAddress?: TProgramAddress;
|
|
3845
|
-
}): Promise<
|
|
3846
|
-
type
|
|
3628
|
+
}): Promise<UnstakeInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>>;
|
|
3629
|
+
type UnstakeInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
3847
3630
|
signer: TransactionSigner<TAccountSigner>;
|
|
3631
|
+
owner: Address<TAccountOwner>;
|
|
3848
3632
|
market: Address<TAccountMarket>;
|
|
3849
3633
|
stakeAccount: Address<TAccountStakeAccount>;
|
|
3850
|
-
|
|
3634
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
3635
|
+
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
3636
|
+
/** Owner's token account to receive staked tokens */
|
|
3637
|
+
ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
|
|
3638
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
3639
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
3640
|
+
stakeAccountId: UnstakeInstructionDataArgs['stakeAccountId'];
|
|
3851
3641
|
};
|
|
3852
|
-
declare function
|
|
3642
|
+
declare function getUnstakeInstruction<TAccountSigner extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount 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: UnstakeInput<TAccountSigner, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
3853
3643
|
programAddress?: TProgramAddress;
|
|
3854
|
-
}):
|
|
3855
|
-
type
|
|
3644
|
+
}): UnstakeInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>;
|
|
3645
|
+
type ParsedUnstakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3856
3646
|
programAddress: Address<TProgram>;
|
|
3857
3647
|
accounts: {
|
|
3858
3648
|
signer: TAccountMetas[0];
|
|
3859
|
-
|
|
3860
|
-
|
|
3649
|
+
owner: TAccountMetas[1];
|
|
3650
|
+
market: TAccountMetas[2];
|
|
3651
|
+
stakeAccount: TAccountMetas[3];
|
|
3652
|
+
tokenMint: TAccountMetas[4];
|
|
3653
|
+
marketTokenAta: TAccountMetas[5];
|
|
3654
|
+
/** Owner's token account to receive staked tokens */
|
|
3655
|
+
ownerTokenAccount: TAccountMetas[6];
|
|
3656
|
+
tokenProgram: TAccountMetas[7];
|
|
3657
|
+
systemProgram: TAccountMetas[8];
|
|
3861
3658
|
};
|
|
3862
|
-
data:
|
|
3659
|
+
data: UnstakeInstructionData;
|
|
3863
3660
|
};
|
|
3864
|
-
declare function
|
|
3661
|
+
declare function parseUnstakeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUnstakeInstruction<TProgram, TAccountMetas>;
|
|
3865
3662
|
|
|
3866
3663
|
/**
|
|
3867
3664
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -3871,48 +3668,58 @@ declare function parseUnstakeEarlyInstruction<TProgram extends string, TAccountM
|
|
|
3871
3668
|
* @see https://github.com/codama-idl/codama
|
|
3872
3669
|
*/
|
|
3873
3670
|
|
|
3874
|
-
declare const
|
|
3875
|
-
declare function
|
|
3876
|
-
type
|
|
3671
|
+
declare const UPDATE_PLATFORM_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
3672
|
+
declare function getUpdatePlatformConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
3673
|
+
type UpdatePlatformConfigInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountUpdateAuthority extends string | AccountMeta<string> = string, TAccountPlatformConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
3877
3674
|
TAccountUpdateAuthority extends string ? ReadonlySignerAccount<TAccountUpdateAuthority> & AccountSignerMeta<TAccountUpdateAuthority> : TAccountUpdateAuthority,
|
|
3878
|
-
|
|
3675
|
+
TAccountPlatformConfig extends string ? WritableAccount<TAccountPlatformConfig> : TAccountPlatformConfig,
|
|
3879
3676
|
...TRemainingAccounts
|
|
3880
3677
|
]>;
|
|
3881
|
-
type
|
|
3678
|
+
type UpdatePlatformConfigInstructionData = {
|
|
3882
3679
|
discriminator: ReadonlyUint8Array;
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
type
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3680
|
+
platformFeeBp: number;
|
|
3681
|
+
rewardPoolFeeBp: number;
|
|
3682
|
+
creatorFeeBp: number;
|
|
3683
|
+
minTimeToStakeSeconds: bigint;
|
|
3684
|
+
minRevealPeriodSeconds: bigint;
|
|
3685
|
+
maxRevealPeriodSeconds: bigint;
|
|
3686
|
+
marketResolutionDeadlineSeconds: bigint;
|
|
3687
|
+
};
|
|
3688
|
+
type UpdatePlatformConfigInstructionDataArgs = {
|
|
3689
|
+
platformFeeBp: number;
|
|
3690
|
+
rewardPoolFeeBp: number;
|
|
3691
|
+
creatorFeeBp: number;
|
|
3692
|
+
minTimeToStakeSeconds: number | bigint;
|
|
3693
|
+
minRevealPeriodSeconds: number | bigint;
|
|
3694
|
+
maxRevealPeriodSeconds: number | bigint;
|
|
3695
|
+
marketResolutionDeadlineSeconds: number | bigint;
|
|
3696
|
+
};
|
|
3697
|
+
declare function getUpdatePlatformConfigInstructionDataEncoder(): FixedSizeEncoder<UpdatePlatformConfigInstructionDataArgs>;
|
|
3698
|
+
declare function getUpdatePlatformConfigInstructionDataDecoder(): FixedSizeDecoder<UpdatePlatformConfigInstructionData>;
|
|
3699
|
+
declare function getUpdatePlatformConfigInstructionDataCodec(): FixedSizeCodec<UpdatePlatformConfigInstructionDataArgs, UpdatePlatformConfigInstructionData>;
|
|
3700
|
+
type UpdatePlatformConfigInput<TAccountUpdateAuthority extends string = string, TAccountPlatformConfig extends string = string> = {
|
|
3900
3701
|
updateAuthority: TransactionSigner<TAccountUpdateAuthority>;
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3702
|
+
platformConfig: Address<TAccountPlatformConfig>;
|
|
3703
|
+
platformFeeBp: UpdatePlatformConfigInstructionDataArgs['platformFeeBp'];
|
|
3704
|
+
rewardPoolFeeBp: UpdatePlatformConfigInstructionDataArgs['rewardPoolFeeBp'];
|
|
3705
|
+
creatorFeeBp: UpdatePlatformConfigInstructionDataArgs['creatorFeeBp'];
|
|
3706
|
+
minTimeToStakeSeconds: UpdatePlatformConfigInstructionDataArgs['minTimeToStakeSeconds'];
|
|
3707
|
+
minRevealPeriodSeconds: UpdatePlatformConfigInstructionDataArgs['minRevealPeriodSeconds'];
|
|
3708
|
+
maxRevealPeriodSeconds: UpdatePlatformConfigInstructionDataArgs['maxRevealPeriodSeconds'];
|
|
3709
|
+
marketResolutionDeadlineSeconds: UpdatePlatformConfigInstructionDataArgs['marketResolutionDeadlineSeconds'];
|
|
3710
|
+
};
|
|
3711
|
+
declare function getUpdatePlatformConfigInstruction<TAccountUpdateAuthority extends string, TAccountPlatformConfig extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: UpdatePlatformConfigInput<TAccountUpdateAuthority, TAccountPlatformConfig>, config?: {
|
|
3905
3712
|
programAddress?: TProgramAddress;
|
|
3906
|
-
}):
|
|
3907
|
-
type
|
|
3713
|
+
}): UpdatePlatformConfigInstruction<TProgramAddress, TAccountUpdateAuthority, TAccountPlatformConfig>;
|
|
3714
|
+
type ParsedUpdatePlatformConfigInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
3908
3715
|
programAddress: Address<TProgram>;
|
|
3909
3716
|
accounts: {
|
|
3910
3717
|
updateAuthority: TAccountMetas[0];
|
|
3911
|
-
|
|
3718
|
+
platformConfig: TAccountMetas[1];
|
|
3912
3719
|
};
|
|
3913
|
-
data:
|
|
3720
|
+
data: UpdatePlatformConfigInstructionData;
|
|
3914
3721
|
};
|
|
3915
|
-
declare function
|
|
3722
|
+
declare function parseUpdatePlatformConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdatePlatformConfigInstruction<TProgram, TAccountMetas>;
|
|
3916
3723
|
|
|
3917
3724
|
/**
|
|
3918
3725
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -3946,7 +3753,6 @@ type WithdrawRewardAsyncInput<TAccountSponsor extends string = string, TAccountM
|
|
|
3946
3753
|
market: Address<TAccountMarket>;
|
|
3947
3754
|
sponsorAccount?: Address<TAccountSponsorAccount>;
|
|
3948
3755
|
tokenMint: Address<TAccountTokenMint>;
|
|
3949
|
-
/** Market's ATA holding reward tokens */
|
|
3950
3756
|
marketTokenAta?: Address<TAccountMarketTokenAta>;
|
|
3951
3757
|
/** Sponsor's destination for refunded reward tokens */
|
|
3952
3758
|
refundTokenAccount: Address<TAccountRefundTokenAccount>;
|
|
@@ -3960,7 +3766,6 @@ type WithdrawRewardInput<TAccountSponsor extends string = string, TAccountMarket
|
|
|
3960
3766
|
market: Address<TAccountMarket>;
|
|
3961
3767
|
sponsorAccount: Address<TAccountSponsorAccount>;
|
|
3962
3768
|
tokenMint: Address<TAccountTokenMint>;
|
|
3963
|
-
/** Market's ATA holding reward tokens */
|
|
3964
3769
|
marketTokenAta: Address<TAccountMarketTokenAta>;
|
|
3965
3770
|
/** Sponsor's destination for refunded reward tokens */
|
|
3966
3771
|
refundTokenAccount: Address<TAccountRefundTokenAccount>;
|
|
@@ -3976,7 +3781,6 @@ type ParsedWithdrawRewardInstruction<TProgram extends string = typeof OPPORTUNIT
|
|
|
3976
3781
|
market: TAccountMetas[1];
|
|
3977
3782
|
sponsorAccount: TAccountMetas[2];
|
|
3978
3783
|
tokenMint: TAccountMetas[3];
|
|
3979
|
-
/** Market's ATA holding reward tokens */
|
|
3980
3784
|
marketTokenAta: TAccountMetas[4];
|
|
3981
3785
|
/** Sponsor's destination for refunded reward tokens */
|
|
3982
3786
|
refundTokenAccount: TAccountMetas[5];
|
|
@@ -3990,12 +3794,6 @@ interface BaseInstructionParams {
|
|
|
3990
3794
|
programAddress?: Address;
|
|
3991
3795
|
}
|
|
3992
3796
|
|
|
3993
|
-
interface InitTokenVaultParams extends BaseInstructionParams {
|
|
3994
|
-
payer: TransactionSigner;
|
|
3995
|
-
tokenMint: Address;
|
|
3996
|
-
}
|
|
3997
|
-
declare function initTokenVault(input: InitTokenVaultParams): Promise<InitTokenVaultInstruction<string>>;
|
|
3998
|
-
|
|
3999
3797
|
/**
|
|
4000
3798
|
* Generates a random computation offset for Arcium computations.
|
|
4001
3799
|
* Returns a BigInt from 8 random bytes.
|
|
@@ -4019,17 +3817,18 @@ declare function toNumberArray(bytes: ByteArray): number[];
|
|
|
4019
3817
|
|
|
4020
3818
|
interface CreateMarketParams extends BaseInstructionParams {
|
|
4021
3819
|
creator: TransactionSigner;
|
|
3820
|
+
platformConfig: Address;
|
|
4022
3821
|
tokenMint: Address;
|
|
4023
3822
|
tokenProgram: Address;
|
|
4024
3823
|
marketIndex: bigint;
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
marketAuthority: Address | null;
|
|
4028
|
-
unstakeDelaySeconds: bigint;
|
|
3824
|
+
marketAuthority: Address;
|
|
3825
|
+
allowUnstakingEarly: boolean;
|
|
4029
3826
|
authorizedReaderPubkey: ByteArray;
|
|
4030
|
-
allowClosingEarly: boolean;
|
|
4031
3827
|
revealPeriodAuthority: Address;
|
|
4032
3828
|
earlinessCutoffSeconds: bigint;
|
|
3829
|
+
earlinessMultiplier: number;
|
|
3830
|
+
minStakeAmount: bigint;
|
|
3831
|
+
creatorFeeClaimer: Address;
|
|
4033
3832
|
}
|
|
4034
3833
|
declare function createMarket(input: CreateMarketParams): Promise<CreateMarketInstruction<string>>;
|
|
4035
3834
|
|
|
@@ -4037,7 +3836,10 @@ type CompDefCircuitName = "stake" | "reveal_stake";
|
|
|
4037
3836
|
declare const ALL_COMP_DEF_CIRCUITS: CompDefCircuitName[];
|
|
4038
3837
|
interface InitCompDefConfig extends BaseInstructionParams {
|
|
4039
3838
|
}
|
|
4040
|
-
declare function getMxeAccount(rpc: Rpc<SolanaRpcApi>, programId?: Address): Promise<
|
|
3839
|
+
declare function getMxeAccount(rpc: Rpc<SolanaRpcApi>, programId?: Address): Promise<{
|
|
3840
|
+
address: Address;
|
|
3841
|
+
data: MXEAccount;
|
|
3842
|
+
}>;
|
|
4041
3843
|
declare function getCompDefAccount(circuitName: CompDefCircuitName, programId?: Address): Address;
|
|
4042
3844
|
declare function getCompDefOffsetNumber(circuitName: CompDefCircuitName): number;
|
|
4043
3845
|
declare function getInitCompDefInstruction(rpc: Rpc<SolanaRpcApi>, payer: TransactionSigner, circuitName: CompDefCircuitName, config?: InitCompDefConfig): Promise<Instruction>;
|
|
@@ -4052,18 +3854,21 @@ interface StakeParams extends BaseInstructionParams {
|
|
|
4052
3854
|
signer: TransactionSigner;
|
|
4053
3855
|
payer: TransactionSigner;
|
|
4054
3856
|
market: Address;
|
|
3857
|
+
/** PDA of the stake_account being staked into. Use `getStakeAccountAddress(owner, market, id)`. */
|
|
3858
|
+
stakeAccount: Address;
|
|
4055
3859
|
stakeAccountId: number;
|
|
4056
3860
|
tokenMint: Address;
|
|
4057
3861
|
signerTokenAccount: Address;
|
|
4058
|
-
marketTokenAta: Address;
|
|
4059
|
-
tokenVault: Address;
|
|
4060
|
-
tokenVaultAta: Address;
|
|
4061
3862
|
tokenProgram: Address;
|
|
3863
|
+
/** Gross amount (net + fee). Fee is deducted on-chain and routed to the fee vault ATA. */
|
|
4062
3864
|
amount: bigint;
|
|
4063
3865
|
selectedOptionCiphertext: ByteArray;
|
|
4064
3866
|
inputNonce: bigint;
|
|
4065
3867
|
authorizedReaderNonce: bigint;
|
|
3868
|
+
/** User's x25519 public key (NOT their Solana wallet pubkey). */
|
|
4066
3869
|
userPubkey: ByteArray;
|
|
3870
|
+
/** u128 nonce committed to encrypted-state derivation. */
|
|
3871
|
+
stateNonce: bigint;
|
|
4067
3872
|
}
|
|
4068
3873
|
declare function stake(input: StakeParams, config: ArciumConfig): Promise<StakeInstruction<string>>;
|
|
4069
3874
|
|
|
@@ -4076,40 +3881,48 @@ interface RevealStakeParams extends BaseInstructionParams {
|
|
|
4076
3881
|
declare function revealStake(input: RevealStakeParams, config: ArciumConfig): Promise<RevealStakeInstruction<string>>;
|
|
4077
3882
|
|
|
4078
3883
|
interface AddMarketOptionParams extends BaseInstructionParams {
|
|
4079
|
-
|
|
3884
|
+
signer: TransactionSigner;
|
|
4080
3885
|
market: Address;
|
|
4081
3886
|
optionId: number | bigint;
|
|
4082
3887
|
}
|
|
4083
3888
|
declare function addMarketOption(input: AddMarketOptionParams): Promise<AddMarketOptionInstruction<string>>;
|
|
4084
3889
|
|
|
4085
3890
|
interface OpenMarketParams extends BaseInstructionParams {
|
|
4086
|
-
|
|
3891
|
+
marketAuthority: TransactionSigner;
|
|
4087
3892
|
market: Address;
|
|
4088
|
-
|
|
3893
|
+
platformConfig: Address;
|
|
3894
|
+
timeToStake: bigint;
|
|
4089
3895
|
}
|
|
4090
3896
|
declare function openMarket(input: OpenMarketParams): OpenMarketInstruction<string>;
|
|
4091
3897
|
|
|
4092
|
-
interface
|
|
4093
|
-
|
|
3898
|
+
interface PauseStakingParams extends BaseInstructionParams {
|
|
3899
|
+
marketAuthority: TransactionSigner;
|
|
3900
|
+
market: Address;
|
|
3901
|
+
}
|
|
3902
|
+
declare function pauseStaking(input: PauseStakingParams): PauseStakingInstruction<string>;
|
|
3903
|
+
|
|
3904
|
+
interface ResumeStakingParams extends BaseInstructionParams {
|
|
3905
|
+
marketAuthority: TransactionSigner;
|
|
4094
3906
|
market: Address;
|
|
4095
3907
|
}
|
|
4096
|
-
declare function
|
|
3908
|
+
declare function resumeStaking(input: ResumeStakingParams): ResumeStakingInstruction<string>;
|
|
4097
3909
|
|
|
4098
|
-
interface
|
|
4099
|
-
|
|
3910
|
+
interface SetWinningOptionParams extends BaseInstructionParams {
|
|
3911
|
+
marketAuthority: TransactionSigner;
|
|
4100
3912
|
market: Address;
|
|
3913
|
+
optionId: number | bigint;
|
|
3914
|
+
rewardPercentageBp: number;
|
|
4101
3915
|
}
|
|
4102
|
-
declare function
|
|
3916
|
+
declare function setWinningOption(input: SetWinningOptionParams): Promise<SetWinningOptionInstruction<string>>;
|
|
4103
3917
|
|
|
4104
|
-
interface
|
|
4105
|
-
|
|
3918
|
+
interface ResolveMarketParams extends BaseInstructionParams {
|
|
3919
|
+
marketAuthority: TransactionSigner;
|
|
4106
3920
|
market: Address;
|
|
4107
|
-
selections: Array<WinningOptionArgs>;
|
|
4108
3921
|
}
|
|
4109
|
-
declare function
|
|
3922
|
+
declare function resolveMarket(input: ResolveMarketParams): ResolveMarketInstruction<string>;
|
|
4110
3923
|
|
|
4111
3924
|
interface EndRevealPeriodParams extends BaseInstructionParams {
|
|
4112
|
-
|
|
3925
|
+
signer: TransactionSigner;
|
|
4113
3926
|
market: Address;
|
|
4114
3927
|
}
|
|
4115
3928
|
declare function endRevealPeriod(input: EndRevealPeriodParams): EndRevealPeriodInstruction<string>;
|
|
@@ -4126,13 +3939,20 @@ interface AddRewardParams extends BaseInstructionParams {
|
|
|
4126
3939
|
declare function addReward(input: AddRewardParams): Promise<AddRewardInstruction<string>>;
|
|
4127
3940
|
|
|
4128
3941
|
interface InitStakeAccountParams extends BaseInstructionParams {
|
|
4129
|
-
|
|
3942
|
+
payer: TransactionSigner;
|
|
3943
|
+
owner: Address;
|
|
4130
3944
|
market: Address;
|
|
4131
|
-
stateNonce: bigint;
|
|
4132
3945
|
stakeAccountId: number;
|
|
4133
3946
|
}
|
|
4134
3947
|
declare function initStakeAccount(input: InitStakeAccountParams): Promise<InitStakeAccountInstruction<string>>;
|
|
4135
3948
|
|
|
3949
|
+
interface InitAllowedMintParams extends BaseInstructionParams {
|
|
3950
|
+
updateAuthority: TransactionSigner;
|
|
3951
|
+
platformConfig: Address;
|
|
3952
|
+
tokenMint: Address;
|
|
3953
|
+
}
|
|
3954
|
+
declare function initAllowedMint(input: InitAllowedMintParams): Promise<InitAllowedMintInstruction<string>>;
|
|
3955
|
+
|
|
4136
3956
|
interface CloseStakeAccountParams extends BaseInstructionParams {
|
|
4137
3957
|
owner: TransactionSigner;
|
|
4138
3958
|
market: Address;
|
|
@@ -4154,52 +3974,79 @@ interface CloseStuckStakeAccountParams extends BaseInstructionParams {
|
|
|
4154
3974
|
}
|
|
4155
3975
|
declare function closeStuckStakeAccount(input: CloseStuckStakeAccountParams): Promise<CloseStuckStakeAccountInstruction<string>>;
|
|
4156
3976
|
|
|
4157
|
-
interface
|
|
3977
|
+
interface CloseOptionAccountParams extends BaseInstructionParams {
|
|
3978
|
+
signer: TransactionSigner;
|
|
3979
|
+
creator: Address;
|
|
3980
|
+
market: Address;
|
|
3981
|
+
optionId: number | bigint;
|
|
3982
|
+
}
|
|
3983
|
+
declare function closeOptionAccount(input: CloseOptionAccountParams): Promise<CloseOptionAccountInstruction<string>>;
|
|
3984
|
+
|
|
3985
|
+
interface UnstakeParams extends BaseInstructionParams {
|
|
4158
3986
|
signer: TransactionSigner;
|
|
4159
3987
|
owner: Address;
|
|
4160
3988
|
market: Address;
|
|
4161
3989
|
tokenMint: Address;
|
|
4162
|
-
marketTokenAta: Address;
|
|
4163
3990
|
ownerTokenAccount: Address;
|
|
4164
3991
|
tokenProgram: Address;
|
|
4165
3992
|
stakeAccountId: number;
|
|
4166
3993
|
}
|
|
4167
|
-
declare function
|
|
3994
|
+
declare function unstake(input: UnstakeParams): Promise<UnstakeInstruction<string>>;
|
|
4168
3995
|
|
|
4169
|
-
interface
|
|
3996
|
+
interface FinalizeRevealStakeParams extends BaseInstructionParams {
|
|
4170
3997
|
signer: TransactionSigner;
|
|
4171
3998
|
owner: Address;
|
|
4172
3999
|
market: Address;
|
|
4173
4000
|
optionId: number | bigint;
|
|
4174
4001
|
stakeAccountId: number;
|
|
4175
4002
|
}
|
|
4176
|
-
declare function
|
|
4003
|
+
declare function finalizeRevealStake(input: FinalizeRevealStakeParams): Promise<FinalizeRevealStakeInstruction<string>>;
|
|
4177
4004
|
|
|
4178
|
-
interface
|
|
4005
|
+
interface CreatePlatformConfigParams extends BaseInstructionParams {
|
|
4179
4006
|
signer: TransactionSigner;
|
|
4180
|
-
|
|
4181
|
-
|
|
4007
|
+
name: string;
|
|
4008
|
+
platformFeeBp: number;
|
|
4009
|
+
rewardPoolFeeBp: number;
|
|
4010
|
+
creatorFeeBp: number;
|
|
4011
|
+
feeClaimAuthority: Address;
|
|
4012
|
+
minTimeToStakeSeconds: bigint;
|
|
4013
|
+
minRevealPeriodSeconds: bigint;
|
|
4014
|
+
maxRevealPeriodSeconds: bigint;
|
|
4015
|
+
marketResolutionDeadlineSeconds: bigint;
|
|
4182
4016
|
}
|
|
4183
|
-
declare function
|
|
4017
|
+
declare function createPlatformConfig(rpc: Parameters<typeof fetchMaybePlatformConfig>[0], params: CreatePlatformConfigParams): Promise<Instruction>;
|
|
4184
4018
|
|
|
4185
|
-
interface
|
|
4019
|
+
interface UpdatePlatformConfigParams extends BaseInstructionParams {
|
|
4020
|
+
signer: TransactionSigner;
|
|
4021
|
+
name: string;
|
|
4022
|
+
platformFeeBp: number;
|
|
4023
|
+
rewardPoolFeeBp: number;
|
|
4024
|
+
creatorFeeBp: number;
|
|
4025
|
+
minTimeToStakeSeconds: bigint;
|
|
4026
|
+
minRevealPeriodSeconds: bigint;
|
|
4027
|
+
maxRevealPeriodSeconds: bigint;
|
|
4028
|
+
marketResolutionDeadlineSeconds: bigint;
|
|
4029
|
+
}
|
|
4030
|
+
declare function updatePlatformConfig(rpc: Parameters<typeof fetchMaybePlatformConfig>[0], params: UpdatePlatformConfigParams): Promise<Instruction>;
|
|
4031
|
+
|
|
4032
|
+
interface ClaimFeesParams extends BaseInstructionParams {
|
|
4186
4033
|
signer: TransactionSigner;
|
|
4187
4034
|
market: Address;
|
|
4035
|
+
platformConfig: Address;
|
|
4188
4036
|
tokenMint: Address;
|
|
4189
|
-
|
|
4190
|
-
ownerTokenAccount: Address;
|
|
4037
|
+
destinationTokenAccount: Address;
|
|
4191
4038
|
tokenProgram: Address;
|
|
4192
|
-
stakeAccountId: number;
|
|
4193
|
-
stakeAccountOwner: Address;
|
|
4194
4039
|
}
|
|
4195
|
-
declare function
|
|
4040
|
+
declare function claimFees(input: ClaimFeesParams): Promise<ClaimFeesInstruction<string>>;
|
|
4196
4041
|
|
|
4197
|
-
interface
|
|
4042
|
+
interface ClaimCreatorFeesParams extends BaseInstructionParams {
|
|
4198
4043
|
signer: TransactionSigner;
|
|
4199
|
-
|
|
4200
|
-
|
|
4044
|
+
market: Address;
|
|
4045
|
+
tokenMint: Address;
|
|
4046
|
+
destinationTokenAccount: Address;
|
|
4047
|
+
tokenProgram: Address;
|
|
4201
4048
|
}
|
|
4202
|
-
declare function
|
|
4049
|
+
declare function claimCreatorFees(input: ClaimCreatorFeesParams): Promise<ClaimCreatorFeesInstruction<string>>;
|
|
4203
4050
|
|
|
4204
4051
|
interface WithdrawRewardParams extends BaseInstructionParams {
|
|
4205
4052
|
sponsor: TransactionSigner;
|
|
@@ -4210,45 +4057,28 @@ interface WithdrawRewardParams extends BaseInstructionParams {
|
|
|
4210
4057
|
}
|
|
4211
4058
|
declare function withdrawReward(input: WithdrawRewardParams): Promise<WithdrawRewardInstruction<string>>;
|
|
4212
4059
|
|
|
4213
|
-
interface
|
|
4214
|
-
updateAuthority: TransactionSigner;
|
|
4215
|
-
proposedAuthority: Address;
|
|
4216
|
-
}
|
|
4217
|
-
declare function proposeNewUpdateAuthority(input: ProposeNewUpdateAuthorityParams): Promise<ProposeNewUpdateAuthorityInstruction<string>>;
|
|
4218
|
-
|
|
4219
|
-
interface ProposeNewFeeClaimerParams extends BaseInstructionParams {
|
|
4220
|
-
updateAuthority: TransactionSigner;
|
|
4221
|
-
proposedFeeClaimer: Address;
|
|
4222
|
-
}
|
|
4223
|
-
declare function proposeNewFeeClaimer(input: ProposeNewFeeClaimerParams): Promise<ProposeNewFeeClaimerInstruction<string>>;
|
|
4224
|
-
|
|
4225
|
-
interface FinalizeNewUpdateAuthorityParams extends BaseInstructionParams {
|
|
4060
|
+
interface SetUpdateAuthorityParams extends BaseInstructionParams {
|
|
4226
4061
|
updateAuthority: TransactionSigner;
|
|
4227
|
-
|
|
4062
|
+
platformConfig: Address;
|
|
4063
|
+
newAuthority: Address;
|
|
4228
4064
|
}
|
|
4229
|
-
declare function
|
|
4065
|
+
declare function setUpdateAuthority(input: SetUpdateAuthorityParams): SetUpdateAuthorityInstruction<string>;
|
|
4230
4066
|
|
|
4231
|
-
interface
|
|
4067
|
+
interface SetFeeClaimAuthorityParams extends BaseInstructionParams {
|
|
4232
4068
|
updateAuthority: TransactionSigner;
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
declare function finalizeNewFeeClaimer(input: FinalizeNewFeeClaimerParams): Promise<FinalizeNewFeeClaimerInstruction<string>>;
|
|
4236
|
-
|
|
4237
|
-
interface CancelUpdateAuthorityChangeParams extends BaseInstructionParams {
|
|
4238
|
-
signer: TransactionSigner;
|
|
4069
|
+
platformConfig: Address;
|
|
4070
|
+
newFeeClaimAuthority: Address;
|
|
4239
4071
|
}
|
|
4240
|
-
declare function
|
|
4072
|
+
declare function setFeeClaimAuthority(input: SetFeeClaimAuthorityParams): SetFeeClaimAuthorityInstruction<string>;
|
|
4241
4073
|
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
}
|
|
4245
|
-
declare function cancelFeeClaimerChange(input: CancelFeeClaimerChangeParams): Promise<CancelFeeClaimerChangeInstruction<string>>;
|
|
4074
|
+
declare const PLATFORM_CONFIG_SEED = "platform_config";
|
|
4075
|
+
declare function getPlatformConfigAddress(authority: Address, name: string, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
4246
4076
|
|
|
4247
|
-
declare const
|
|
4248
|
-
declare function
|
|
4077
|
+
declare const ALLOWED_MINT_SEED = "allowed_mint";
|
|
4078
|
+
declare function getAllowedMintAddress(platformConfig: Address, mint: Address, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
4249
4079
|
|
|
4250
4080
|
declare const OPPORTUNITY_MARKET_SEED = "opportunity_market";
|
|
4251
|
-
declare function getOpportunityMarketAddress(creator: Address, marketIndex: bigint | number, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
4081
|
+
declare function getOpportunityMarketAddress(platformConfig: Address, creator: Address, marketIndex: bigint | number, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
4252
4082
|
|
|
4253
4083
|
declare const OPPORTUNITY_MARKET_OPTION_SEED = "option";
|
|
4254
4084
|
declare function getOpportunityMarketOptionAddress(market: Address, optionId: number | bigint, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
@@ -4259,9 +4089,6 @@ declare function getOpportunityMarketSponsorAddress(sponsor: Address, market: Ad
|
|
|
4259
4089
|
declare const STAKE_ACCOUNT_SEED = "stake_account";
|
|
4260
4090
|
declare function getStakeAccountAddress(owner: Address, market: Address, stakeAccountId: number, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
4261
4091
|
|
|
4262
|
-
declare const TOKEN_VAULT_SEED = "token_vault";
|
|
4263
|
-
declare function getTokenVaultAddress(mint: Address, programId?: Address): Promise<ProgramDerivedAddress>;
|
|
4264
|
-
|
|
4265
4092
|
interface AwaitComputationOptions {
|
|
4266
4093
|
commitment?: "processed" | "confirmed" | "finalized";
|
|
4267
4094
|
mxeProgramId?: Address;
|
|
@@ -4310,4 +4137,4 @@ declare function deriveSharedSecret(userSecretKey: Uint8Array, mxePublicKey: Uin
|
|
|
4310
4137
|
declare function createCipher(userSecretKey: Uint8Array, mxePublicKey: Uint8Array): RescueCipher;
|
|
4311
4138
|
declare function nonceToBytes(nonce: bigint): Uint8Array;
|
|
4312
4139
|
|
|
4313
|
-
export { ADD_MARKET_OPTION_DISCRIMINATOR, ADD_REWARD_DISCRIMINATOR, ALL_COMP_DEF_CIRCUITS, ARCIUM_SIGNER_ACCOUNT_DISCRIMINATOR, type AccountChangeCancelledEvent, type AccountChangeCancelledEventArgs, type AccountChangeFinalizedEvent, type AccountChangeFinalizedEventArgs, type AccountChangeProposedEvent, type AccountChangeProposedEventArgs, type Activation, type ActivationArgs, type AddMarketOptionAsyncInput, type AddMarketOptionInput, type AddMarketOptionInstruction, type AddMarketOptionInstructionData, type AddMarketOptionInstructionDataArgs, type AddMarketOptionParams, type AddRewardAsyncInput, type AddRewardInput, type AddRewardInstruction, type AddRewardInstructionData, type AddRewardInstructionDataArgs, type AddRewardParams, type ArciumSignerAccount, type ArciumSignerAccountArgs, type AwaitComputationOptions, type BN254G2BLSPublicKey, type BN254G2BLSPublicKeyArgs, type BaseInstructionParams, type ByteArray, CANCEL_FEE_CLAIMER_CHANGE_DISCRIMINATOR, CANCEL_UPDATE_AUTHORITY_CHANGE_DISCRIMINATOR, CENTRAL_STATE_DISCRIMINATOR, CENTRAL_STATE_SEED, CLAIM_FEES_DISCRIMINATOR, CLOCK_ACCOUNT_DISCRIMINATOR, CLOSE_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR, CLUSTER_DISCRIMINATOR, COMPUTATION_DEFINITION_ACCOUNT_DISCRIMINATOR, CREATE_MARKET_DISCRIMINATOR, type CancelFeeClaimerChangeAsyncInput, type CancelFeeClaimerChangeInput, type CancelFeeClaimerChangeInstruction, type CancelFeeClaimerChangeInstructionData, type CancelFeeClaimerChangeInstructionDataArgs, type CancelFeeClaimerChangeParams, type CancelUpdateAuthorityChangeAsyncInput, type CancelUpdateAuthorityChangeInput, type CancelUpdateAuthorityChangeInstruction, type CancelUpdateAuthorityChangeInstructionData, type CancelUpdateAuthorityChangeInstructionDataArgs, type CancelUpdateAuthorityChangeParams, type CentralState, type CentralStateArgs, type CircuitSource, type CircuitSourceArgs, type ClaimFeesAsyncInput, type ClaimFeesInput, type ClaimFeesInstruction, type ClaimFeesInstructionData, type ClaimFeesInstructionDataArgs, type ClockAccount, type ClockAccountArgs, type CloseStakeAccountAsyncInput, type CloseStakeAccountInput, type CloseStakeAccountInstruction, type CloseStakeAccountInstructionData, type CloseStakeAccountInstructionDataArgs, type CloseStakeAccountParams, type CloseStuckStakeAccountAsyncInput, type CloseStuckStakeAccountInput, type CloseStuckStakeAccountInstruction, type CloseStuckStakeAccountInstructionData, type CloseStuckStakeAccountInstructionDataArgs, type CloseStuckStakeAccountParams, type Cluster, type ClusterArgs, type CompDefCircuitName, type ComputationDefinitionAccount, type ComputationDefinitionAccountArgs, type ComputationDefinitionMeta, type ComputationDefinitionMetaArgs, type ComputationResult, type ComputationSignature, type ComputationSignatureArgs, type CreateMarketAsyncInput, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateMarketParams, DO_UNSTAKE_EARLY_DISCRIMINATOR, type DoUnstakeEarlyAsyncInput, type DoUnstakeEarlyInput, type DoUnstakeEarlyInstruction, type DoUnstakeEarlyInstructionData, type DoUnstakeEarlyInstructionDataArgs, type DoUnstakeEarlyParams, END_REVEAL_PERIOD_DISCRIMINATOR, type EndRevealPeriodInput, type EndRevealPeriodInstruction, type EndRevealPeriodInstructionData, type EndRevealPeriodInstructionDataArgs, type EndRevealPeriodParams, type EnsureCentralStateParams, type Epoch, type EpochArgs, FEE_POOL_DISCRIMINATOR, FINALIZE_NEW_FEE_CLAIMER_DISCRIMINATOR, FINALIZE_NEW_UPDATE_AUTHORITY_DISCRIMINATOR, type FeePool, type FeePoolArgs, type FeesClaimedEvent, type FeesClaimedEventArgs, type FinalizeNewFeeClaimerAsyncInput, type FinalizeNewFeeClaimerInput, type FinalizeNewFeeClaimerInstruction, type FinalizeNewFeeClaimerInstructionData, type FinalizeNewFeeClaimerInstructionDataArgs, type FinalizeNewFeeClaimerParams, type FinalizeNewUpdateAuthorityAsyncInput, type FinalizeNewUpdateAuthorityInput, type FinalizeNewUpdateAuthorityInstruction, type FinalizeNewUpdateAuthorityInstructionData, type FinalizeNewUpdateAuthorityInstructionDataArgs, type FinalizeNewUpdateAuthorityParams, INCREMENT_OPTION_TALLY_DISCRIMINATOR, INIT_CENTRAL_STATE_DISCRIMINATOR, INIT_STAKE_ACCOUNT_DISCRIMINATOR, INIT_TOKEN_VAULT_DISCRIMINATOR, type IncrementOptionTallyAsyncInput, type IncrementOptionTallyInput, type IncrementOptionTallyInstruction, type IncrementOptionTallyInstructionData, type IncrementOptionTallyInstructionDataArgs, type IncrementOptionTallyParams, type InitCentralStateAsyncInput, type InitCentralStateInput, type InitCentralStateInstruction, type InitCentralStateInstructionData, type InitCentralStateInstructionDataArgs, type InitCompDefConfig, type InitStakeAccountAsyncInput, type InitStakeAccountInput, type InitStakeAccountInstruction, type InitStakeAccountInstructionData, type InitStakeAccountInstructionDataArgs, type InitStakeAccountParams, type InitTokenVaultAsyncInput, type InitTokenVaultInput, type InitTokenVaultInstruction, type InitTokenVaultInstructionData, type InitTokenVaultInstructionDataArgs, type InitTokenVaultParams, LocalCircuitSource, type LocalCircuitSourceArgs, type MXEAccount, type MXEAccountArgs, M_X_E_ACCOUNT_DISCRIMINATOR, type MarketCreatedEvent, type MarketCreatedEventArgs, type MarketOpenedEvent, type MarketOpenedEventArgs, type MarketOptionCreatedEvent, type MarketOptionCreatedEventArgs, type MarketPausedEvent, type MarketPausedEventArgs, type MarketResumedEvent, type MarketResumedEventArgs, MxeStatus, type MxeStatusArgs, type NodeMetadata, type NodeMetadataArgs, type NodeRef, type NodeRefArgs, OPEN_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION, OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED, OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED, OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED, OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED, OPPORTUNITY_MARKET_ERROR__CLOSING_EARLY_NOT_ALLOWED, OPPORTUNITY_MARKET_ERROR__CLUSTER_NOT_SET, OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__EARLINESS_CUTOFF_TOO_LARGE, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING, OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE, OPPORTUNITY_MARKET_ERROR__INVALID_MINT, OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID, OPPORTUNITY_MARKET_ERROR__INVALID_TIMESTAMP, OPPORTUNITY_MARKET_ERROR__INVALID_WINNING_OPTIONS_INPUT, OPPORTUNITY_MARKET_ERROR__LOCKED, OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED, OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED, OPPORTUNITY_MARKET_ERROR__NOT_REVEALED, OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__OVERFLOW, OPPORTUNITY_MARKET_ERROR__PROTOCOL_FEE_TOO_HIGH, OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED, OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK, OPPORTUNITY_MARKET_ERROR__STAKING_NOT_ACTIVE, OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED, OPPORTUNITY_MARKET_ERROR__TIMELOCK_NOT_ELAPSED, OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED, OPPORTUNITY_MARKET_ERROR__UNSTAKE_DELAY_NOT_MET, OPPORTUNITY_MARKET_ERROR__UNSTAKE_NOT_INITIATED, OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED, OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR, OPPORTUNITY_MARKET_OPTION_SEED, OPPORTUNITY_MARKET_PROGRAM_ADDRESS, OPPORTUNITY_MARKET_SEED, OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR, type OffChainCircuitSource, type OffChainCircuitSourceArgs, type OnChainCircuitSource, type OnChainCircuitSourceArgs, type OpenMarketInput, type OpenMarketInstruction, type OpenMarketInstructionData, type OpenMarketInstructionDataArgs, type OpenMarketParams, type OpportunityMarket, OpportunityMarketAccount, type OpportunityMarketArgs, type OpportunityMarketError, OpportunityMarketInstruction, type OpportunityMarketOption, type OpportunityMarketOptionArgs, type OpportunityMarketSponsor, type OpportunityMarketSponsorArgs, Output, type OutputArgs, PAUSE_MARKET_DISCRIMINATOR, PROPOSE_NEW_FEE_CLAIMER_DISCRIMINATOR, PROPOSE_NEW_UPDATE_AUTHORITY_DISCRIMINATOR, Parameter, type ParameterArgs, type ParsedAddMarketOptionInstruction, type ParsedAddRewardInstruction, type ParsedCancelFeeClaimerChangeInstruction, type ParsedCancelUpdateAuthorityChangeInstruction, type ParsedClaimFeesInstruction, type ParsedCloseStakeAccountInstruction, type ParsedCloseStuckStakeAccountInstruction, type ParsedCreateMarketInstruction, type ParsedDoUnstakeEarlyInstruction, type ParsedEndRevealPeriodInstruction, type ParsedFinalizeNewFeeClaimerInstruction, type ParsedFinalizeNewUpdateAuthorityInstruction, type ParsedIncrementOptionTallyInstruction, type ParsedInitCentralStateInstruction, type ParsedInitStakeAccountInstruction, type ParsedInitTokenVaultInstruction, type ParsedOpenMarketInstruction, type ParsedOpportunityMarketInstruction, type ParsedPauseMarketInstruction, type ParsedProposeNewFeeClaimerInstruction, type ParsedProposeNewUpdateAuthorityInstruction, type ParsedReclaimStakeInstruction, type ParsedResumeMarketInstruction, type ParsedRevealStakeCallbackInstruction, type ParsedRevealStakeCompDefInstruction, type ParsedRevealStakeInstruction, type ParsedSelectWinningOptionsInstruction, type ParsedStakeCallbackInstruction, type ParsedStakeCompDefInstruction, type ParsedStakeInstruction, type ParsedUnstakeEarlyInstruction, type ParsedUpdateCentralStateInstruction, type ParsedWithdrawRewardInstruction, type PauseMarketInput, type PauseMarketInstruction, type PauseMarketInstructionData, type PauseMarketInstructionDataArgs, type PauseMarketParams, type ProposeNewFeeClaimerAsyncInput, type ProposeNewFeeClaimerInput, type ProposeNewFeeClaimerInstruction, type ProposeNewFeeClaimerInstructionData, type ProposeNewFeeClaimerInstructionDataArgs, type ProposeNewFeeClaimerParams, type ProposeNewUpdateAuthorityAsyncInput, type ProposeNewUpdateAuthorityInput, type ProposeNewUpdateAuthorityInstruction, type ProposeNewUpdateAuthorityInstructionData, type ProposeNewUpdateAuthorityInstructionDataArgs, type ProposeNewUpdateAuthorityParams, RECLAIM_STAKE_DISCRIMINATOR, RESUME_MARKET_DISCRIMINATOR, REVEAL_STAKE_CALLBACK_DISCRIMINATOR, REVEAL_STAKE_COMP_DEF_DISCRIMINATOR, REVEAL_STAKE_DISCRIMINATOR, type ReclaimStakeAsyncInput, type ReclaimStakeInput, type ReclaimStakeInstruction, type ReclaimStakeInstructionData, type ReclaimStakeInstructionDataArgs, type ReclaimStakeParams, type ResumeMarketInput, type ResumeMarketInstruction, type ResumeMarketInstructionData, type ResumeMarketInstructionDataArgs, type ResumeMarketParams, type RevealPeriodEndedEvent, type RevealPeriodEndedEventArgs, type RevealStakeAsyncInput, type RevealStakeCallbackInput, type RevealStakeCallbackInstruction, type RevealStakeCallbackInstructionData, type RevealStakeCallbackInstructionDataArgs, type RevealStakeCompDefInput, type RevealStakeCompDefInstruction, type RevealStakeCompDefInstructionData, type RevealStakeCompDefInstructionDataArgs, type RevealStakeInput, type RevealStakeInstruction, type RevealStakeInstructionData, type RevealStakeInstructionDataArgs, type RevealStakeOutput, type RevealStakeOutputArgs, type RevealStakeParams, type RewardAddedEvent, type RewardAddedEventArgs, type RewardClaimedEvent, type RewardClaimedEventArgs, type RewardWithdrawnEvent, type RewardWithdrawnEventArgs, SELECT_WINNING_OPTIONS_DISCRIMINATOR, SPONSOR_SEED, STAKE_ACCOUNT_DISCRIMINATOR, STAKE_ACCOUNT_SEED, STAKE_CALLBACK_DISCRIMINATOR, STAKE_COMP_DEF_DISCRIMINATOR, STAKE_DISCRIMINATOR, type SelectWinningOptionsInput, type SelectWinningOptionsInstruction, type SelectWinningOptionsInstructionData, type SelectWinningOptionsInstructionDataArgs, type SelectWinningOptionsParams, type StakeAccount, type StakeAccountArgs, type StakeAccountInitializedEvent, type StakeAccountInitializedEventArgs, type StakeAsyncInput, type StakeCallbackInput, type StakeCallbackInstruction, type StakeCallbackInstructionData, type StakeCallbackInstructionDataArgs, type StakeCompDefInput, type StakeCompDefInstruction, type StakeCompDefInstructionData, type StakeCompDefInstructionDataArgs, type StakeInput, type StakeInstruction, type StakeInstructionData, type StakeInstructionDataArgs, type StakeOutput, type StakeOutputArgs, type StakeOutputStruct0, type StakeOutputStruct0Args, type StakeParams, type StakeReclaimedEvent, type StakeReclaimedEventArgs, type StakeRevealedEvent, type StakeRevealedEventArgs, type StakedEvent, type StakedEventArgs, type StuckStakeClosedEvent, type StuckStakeClosedEventArgs, TIMELOCKED_ACCOUNT_CHANGE_DISCRIMINATOR, TOKEN_VAULT_DISCRIMINATOR, TOKEN_VAULT_SEED, type TallyIncrementedEvent, type TallyIncrementedEventArgs, type TimelockedAccountChange, type TimelockedAccountChangeArgs, type Timestamp, type TimestampArgs, type TokenVault, type TokenVaultArgs, UNSTAKE_EARLY_DISCRIMINATOR, UPDATE_CENTRAL_STATE_DISCRIMINATOR, type UnstakeEarlyAsyncInput, type UnstakeEarlyInput, type UnstakeEarlyInstruction, type UnstakeEarlyInstructionData, type UnstakeEarlyInstructionDataArgs, type UnstakeEarlyParams, type UnstakeInitiatedEvent, type UnstakeInitiatedEventArgs, type UnstakedEvent, type UnstakedEventArgs, type UpdateCentralStateAsyncInput, type UpdateCentralStateInput, type UpdateCentralStateInstruction, type UpdateCentralStateInstructionData, type UpdateCentralStateInstructionDataArgs, type UtilityPubkeys, type UtilityPubkeysArgs, WITHDRAW_REWARD_DISCRIMINATOR, type WinningOption, type WinningOptionArgs, type WinningOptionsSelectedEvent, type WinningOptionsSelectedEventArgs, type WithdrawRewardAsyncInput, type WithdrawRewardInput, type WithdrawRewardInstruction, type WithdrawRewardInstructionData, type WithdrawRewardInstructionDataArgs, type WithdrawRewardParams, type X25519Keypair, addMarketOption, addReward, awaitBatchComputationFinalization, awaitComputationFinalization, cancelFeeClaimerChange, cancelUpdateAuthorityChange, circuitSource, closeStakeAccount, closeStuckStakeAccount, createCipher, createMarket, decodeArciumSignerAccount, decodeCentralState, decodeClockAccount, decodeCluster, decodeComputationDefinitionAccount, decodeFeePool, decodeMXEAccount, decodeOpportunityMarket, decodeOpportunityMarketOption, decodeOpportunityMarketSponsor, decodeStakeAccount, decodeTimelockedAccountChange, decodeTokenVault, deriveSharedSecret, deriveX25519KeypairFromSignature, doUnstakeEarly, endRevealPeriod, ensureCentralState, fetchAllArciumSignerAccount, fetchAllCentralState, fetchAllClockAccount, fetchAllCluster, fetchAllComputationDefinitionAccount, fetchAllFeePool, fetchAllMXEAccount, fetchAllMaybeArciumSignerAccount, fetchAllMaybeCentralState, fetchAllMaybeClockAccount, fetchAllMaybeCluster, fetchAllMaybeComputationDefinitionAccount, fetchAllMaybeFeePool, fetchAllMaybeMXEAccount, fetchAllMaybeOpportunityMarket, fetchAllMaybeOpportunityMarketOption, fetchAllMaybeOpportunityMarketSponsor, fetchAllMaybeStakeAccount, fetchAllMaybeTimelockedAccountChange, fetchAllMaybeTokenVault, fetchAllOpportunityMarket, fetchAllOpportunityMarketOption, fetchAllOpportunityMarketSponsor, fetchAllStakeAccount, fetchAllTimelockedAccountChange, fetchAllTokenVault, fetchArciumSignerAccount, fetchCentralState, fetchClockAccount, fetchCluster, fetchComputationDefinitionAccount, fetchFeePool, fetchMXEAccount, fetchMaybeArciumSignerAccount, fetchMaybeCentralState, fetchMaybeClockAccount, fetchMaybeCluster, fetchMaybeComputationDefinitionAccount, fetchMaybeFeePool, fetchMaybeMXEAccount, fetchMaybeOpportunityMarket, fetchMaybeOpportunityMarketOption, fetchMaybeOpportunityMarketSponsor, fetchMaybeStakeAccount, fetchMaybeTimelockedAccountChange, fetchMaybeTokenVault, fetchOpportunityMarket, fetchOpportunityMarketOption, fetchOpportunityMarketSponsor, fetchStakeAccount, fetchTimelockedAccountChange, fetchTokenVault, finalizeNewFeeClaimer, finalizeNewUpdateAuthority, generateX25519Keypair, getAccountChangeCancelledEventCodec, getAccountChangeCancelledEventDecoder, getAccountChangeCancelledEventEncoder, getAccountChangeFinalizedEventCodec, getAccountChangeFinalizedEventDecoder, getAccountChangeFinalizedEventEncoder, getAccountChangeProposedEventCodec, getAccountChangeProposedEventDecoder, getAccountChangeProposedEventEncoder, getActivationCodec, getActivationDecoder, getActivationEncoder, getAddMarketOptionDiscriminatorBytes, getAddMarketOptionInstruction, getAddMarketOptionInstructionAsync, getAddMarketOptionInstructionDataCodec, getAddMarketOptionInstructionDataDecoder, getAddMarketOptionInstructionDataEncoder, getAddRewardDiscriminatorBytes, getAddRewardInstruction, getAddRewardInstructionAsync, getAddRewardInstructionDataCodec, getAddRewardInstructionDataDecoder, getAddRewardInstructionDataEncoder, getArciumSignerAccountCodec, getArciumSignerAccountDecoder, getArciumSignerAccountDiscriminatorBytes, getArciumSignerAccountEncoder, getBN254G2BLSPublicKeyCodec, getBN254G2BLSPublicKeyDecoder, getBN254G2BLSPublicKeyEncoder, getCancelFeeClaimerChangeDiscriminatorBytes, getCancelFeeClaimerChangeInstruction, getCancelFeeClaimerChangeInstructionAsync, getCancelFeeClaimerChangeInstructionDataCodec, getCancelFeeClaimerChangeInstructionDataDecoder, getCancelFeeClaimerChangeInstructionDataEncoder, getCancelUpdateAuthorityChangeDiscriminatorBytes, getCancelUpdateAuthorityChangeInstruction, getCancelUpdateAuthorityChangeInstructionAsync, getCancelUpdateAuthorityChangeInstructionDataCodec, getCancelUpdateAuthorityChangeInstructionDataDecoder, getCancelUpdateAuthorityChangeInstructionDataEncoder, getCentralStateAddress, getCentralStateCodec, getCentralStateDecoder, getCentralStateDiscriminatorBytes, getCentralStateEncoder, getCircuitSourceCodec, getCircuitSourceDecoder, getCircuitSourceEncoder, getClaimFeesDiscriminatorBytes, getClaimFeesInstruction, getClaimFeesInstructionAsync, getClaimFeesInstructionDataCodec, getClaimFeesInstructionDataDecoder, getClaimFeesInstructionDataEncoder, getClockAccountCodec, getClockAccountDecoder, getClockAccountDiscriminatorBytes, getClockAccountEncoder, getCloseStakeAccountDiscriminatorBytes, getCloseStakeAccountInstruction, getCloseStakeAccountInstructionAsync, getCloseStakeAccountInstructionDataCodec, getCloseStakeAccountInstructionDataDecoder, getCloseStakeAccountInstructionDataEncoder, getCloseStuckStakeAccountDiscriminatorBytes, getCloseStuckStakeAccountInstruction, getCloseStuckStakeAccountInstructionAsync, getCloseStuckStakeAccountInstructionDataCodec, getCloseStuckStakeAccountInstructionDataDecoder, getCloseStuckStakeAccountInstructionDataEncoder, getClusterCodec, getClusterDecoder, getClusterDiscriminatorBytes, getClusterEncoder, getCompDefAccount, getCompDefOffsetNumber, getComputationDefinitionAccountCodec, getComputationDefinitionAccountDecoder, getComputationDefinitionAccountDiscriminatorBytes, getComputationDefinitionAccountEncoder, getComputationDefinitionMetaCodec, getComputationDefinitionMetaDecoder, getComputationDefinitionMetaEncoder, getComputationSignatureCodec, getComputationSignatureDecoder, getComputationSignatureEncoder, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionAsync, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getDoUnstakeEarlyDiscriminatorBytes, getDoUnstakeEarlyInstruction, getDoUnstakeEarlyInstructionAsync, getDoUnstakeEarlyInstructionDataCodec, getDoUnstakeEarlyInstructionDataDecoder, getDoUnstakeEarlyInstructionDataEncoder, getEndRevealPeriodDiscriminatorBytes, getEndRevealPeriodInstruction, getEndRevealPeriodInstructionDataCodec, getEndRevealPeriodInstructionDataDecoder, getEndRevealPeriodInstructionDataEncoder, getEpochCodec, getEpochDecoder, getEpochEncoder, getFeePoolCodec, getFeePoolDecoder, getFeePoolDiscriminatorBytes, getFeePoolEncoder, getFeesClaimedEventCodec, getFeesClaimedEventDecoder, getFeesClaimedEventEncoder, getFinalizeNewFeeClaimerDiscriminatorBytes, getFinalizeNewFeeClaimerInstruction, getFinalizeNewFeeClaimerInstructionAsync, getFinalizeNewFeeClaimerInstructionDataCodec, getFinalizeNewFeeClaimerInstructionDataDecoder, getFinalizeNewFeeClaimerInstructionDataEncoder, getFinalizeNewUpdateAuthorityDiscriminatorBytes, getFinalizeNewUpdateAuthorityInstruction, getFinalizeNewUpdateAuthorityInstructionAsync, getFinalizeNewUpdateAuthorityInstructionDataCodec, getFinalizeNewUpdateAuthorityInstructionDataDecoder, getFinalizeNewUpdateAuthorityInstructionDataEncoder, getIncrementOptionTallyDiscriminatorBytes, getIncrementOptionTallyInstruction, getIncrementOptionTallyInstructionAsync, getIncrementOptionTallyInstructionDataCodec, getIncrementOptionTallyInstructionDataDecoder, getIncrementOptionTallyInstructionDataEncoder, getInitCentralStateDiscriminatorBytes, getInitCentralStateInstruction, getInitCentralStateInstructionAsync, getInitCentralStateInstructionDataCodec, getInitCentralStateInstructionDataDecoder, getInitCentralStateInstructionDataEncoder, getInitCompDefInstruction, getInitStakeAccountDiscriminatorBytes, getInitStakeAccountInstruction, getInitStakeAccountInstructionAsync, getInitStakeAccountInstructionDataCodec, getInitStakeAccountInstructionDataDecoder, getInitStakeAccountInstructionDataEncoder, getInitTokenVaultDiscriminatorBytes, getInitTokenVaultInstruction, getInitTokenVaultInstructionAsync, getInitTokenVaultInstructionDataCodec, getInitTokenVaultInstructionDataDecoder, getInitTokenVaultInstructionDataEncoder, getLocalCircuitSourceCodec, getLocalCircuitSourceDecoder, getLocalCircuitSourceEncoder, getMXEAccountCodec, getMXEAccountDecoder, getMXEAccountDiscriminatorBytes, getMXEAccountEncoder, getMarketCreatedEventCodec, getMarketCreatedEventDecoder, getMarketCreatedEventEncoder, getMarketOpenedEventCodec, getMarketOpenedEventDecoder, getMarketOpenedEventEncoder, getMarketOptionCreatedEventCodec, getMarketOptionCreatedEventDecoder, getMarketOptionCreatedEventEncoder, getMarketPausedEventCodec, getMarketPausedEventDecoder, getMarketPausedEventEncoder, getMarketResumedEventCodec, getMarketResumedEventDecoder, getMarketResumedEventEncoder, getMxeAccount, getMxeStatusCodec, getMxeStatusDecoder, getMxeStatusEncoder, getNodeMetadataCodec, getNodeMetadataDecoder, getNodeMetadataEncoder, getNodeRefCodec, getNodeRefDecoder, getNodeRefEncoder, getOffChainCircuitSourceCodec, getOffChainCircuitSourceDecoder, getOffChainCircuitSourceEncoder, getOnChainCircuitSourceCodec, getOnChainCircuitSourceDecoder, getOnChainCircuitSourceEncoder, getOpenMarketDiscriminatorBytes, getOpenMarketInstruction, getOpenMarketInstructionDataCodec, getOpenMarketInstructionDataDecoder, getOpenMarketInstructionDataEncoder, getOpportunityMarketAddress, getOpportunityMarketCodec, getOpportunityMarketDecoder, getOpportunityMarketDiscriminatorBytes, getOpportunityMarketEncoder, getOpportunityMarketErrorMessage, getOpportunityMarketOptionAddress, getOpportunityMarketOptionCodec, getOpportunityMarketOptionDecoder, getOpportunityMarketOptionDiscriminatorBytes, getOpportunityMarketOptionEncoder, getOpportunityMarketSponsorAddress, getOpportunityMarketSponsorCodec, getOpportunityMarketSponsorDecoder, getOpportunityMarketSponsorDiscriminatorBytes, getOpportunityMarketSponsorEncoder, getOutputCodec, getOutputDecoder, getOutputEncoder, getParameterCodec, getParameterDecoder, getParameterEncoder, getPauseMarketDiscriminatorBytes, getPauseMarketInstruction, getPauseMarketInstructionDataCodec, getPauseMarketInstructionDataDecoder, getPauseMarketInstructionDataEncoder, getProposeNewFeeClaimerDiscriminatorBytes, getProposeNewFeeClaimerInstruction, getProposeNewFeeClaimerInstructionAsync, getProposeNewFeeClaimerInstructionDataCodec, getProposeNewFeeClaimerInstructionDataDecoder, getProposeNewFeeClaimerInstructionDataEncoder, getProposeNewUpdateAuthorityDiscriminatorBytes, getProposeNewUpdateAuthorityInstruction, getProposeNewUpdateAuthorityInstructionAsync, getProposeNewUpdateAuthorityInstructionDataCodec, getProposeNewUpdateAuthorityInstructionDataDecoder, getProposeNewUpdateAuthorityInstructionDataEncoder, getReclaimStakeDiscriminatorBytes, getReclaimStakeInstruction, getReclaimStakeInstructionAsync, getReclaimStakeInstructionDataCodec, getReclaimStakeInstructionDataDecoder, getReclaimStakeInstructionDataEncoder, getResumeMarketDiscriminatorBytes, getResumeMarketInstruction, getResumeMarketInstructionDataCodec, getResumeMarketInstructionDataDecoder, getResumeMarketInstructionDataEncoder, getRevealPeriodEndedEventCodec, getRevealPeriodEndedEventDecoder, getRevealPeriodEndedEventEncoder, getRevealStakeCallbackDiscriminatorBytes, getRevealStakeCallbackInstruction, getRevealStakeCallbackInstructionDataCodec, getRevealStakeCallbackInstructionDataDecoder, getRevealStakeCallbackInstructionDataEncoder, getRevealStakeCompDefDiscriminatorBytes, getRevealStakeCompDefInstruction, getRevealStakeCompDefInstructionDataCodec, getRevealStakeCompDefInstructionDataDecoder, getRevealStakeCompDefInstructionDataEncoder, getRevealStakeDiscriminatorBytes, getRevealStakeInstruction, getRevealStakeInstructionAsync, getRevealStakeInstructionDataCodec, getRevealStakeInstructionDataDecoder, getRevealStakeInstructionDataEncoder, getRevealStakeOutputCodec, getRevealStakeOutputDecoder, getRevealStakeOutputEncoder, getRewardAddedEventCodec, getRewardAddedEventDecoder, getRewardAddedEventEncoder, getRewardClaimedEventCodec, getRewardClaimedEventDecoder, getRewardClaimedEventEncoder, getRewardWithdrawnEventCodec, getRewardWithdrawnEventDecoder, getRewardWithdrawnEventEncoder, getSelectWinningOptionsDiscriminatorBytes, getSelectWinningOptionsInstruction, getSelectWinningOptionsInstructionDataCodec, getSelectWinningOptionsInstructionDataDecoder, getSelectWinningOptionsInstructionDataEncoder, getStakeAccountAddress, getStakeAccountCodec, getStakeAccountDecoder, getStakeAccountDiscriminatorBytes, getStakeAccountEncoder, getStakeAccountInitializedEventCodec, getStakeAccountInitializedEventDecoder, getStakeAccountInitializedEventEncoder, getStakeCallbackDiscriminatorBytes, getStakeCallbackInstruction, getStakeCallbackInstructionDataCodec, getStakeCallbackInstructionDataDecoder, getStakeCallbackInstructionDataEncoder, getStakeCompDefDiscriminatorBytes, getStakeCompDefInstruction, getStakeCompDefInstructionDataCodec, getStakeCompDefInstructionDataDecoder, getStakeCompDefInstructionDataEncoder, getStakeDiscriminatorBytes, getStakeInstruction, getStakeInstructionAsync, getStakeInstructionDataCodec, getStakeInstructionDataDecoder, getStakeInstructionDataEncoder, getStakeOutputCodec, getStakeOutputDecoder, getStakeOutputEncoder, getStakeOutputStruct0Codec, getStakeOutputStruct0Decoder, getStakeOutputStruct0Encoder, getStakeReclaimedEventCodec, getStakeReclaimedEventDecoder, getStakeReclaimedEventEncoder, getStakeRevealedEventCodec, getStakeRevealedEventDecoder, getStakeRevealedEventEncoder, getStakedEventCodec, getStakedEventDecoder, getStakedEventEncoder, getStuckStakeClosedEventCodec, getStuckStakeClosedEventDecoder, getStuckStakeClosedEventEncoder, getTallyIncrementedEventCodec, getTallyIncrementedEventDecoder, getTallyIncrementedEventEncoder, getTimelockedAccountChangeCodec, getTimelockedAccountChangeDecoder, getTimelockedAccountChangeDiscriminatorBytes, getTimelockedAccountChangeEncoder, getTimestampCodec, getTimestampDecoder, getTimestampEncoder, getTokenVaultAddress, getTokenVaultCodec, getTokenVaultDecoder, getTokenVaultDiscriminatorBytes, getTokenVaultEncoder, getUnstakeEarlyDiscriminatorBytes, getUnstakeEarlyInstruction, getUnstakeEarlyInstructionAsync, getUnstakeEarlyInstructionDataCodec, getUnstakeEarlyInstructionDataDecoder, getUnstakeEarlyInstructionDataEncoder, getUnstakeInitiatedEventCodec, getUnstakeInitiatedEventDecoder, getUnstakeInitiatedEventEncoder, getUnstakedEventCodec, getUnstakedEventDecoder, getUnstakedEventEncoder, getUpdateCentralStateDiscriminatorBytes, getUpdateCentralStateInstruction, getUpdateCentralStateInstructionAsync, getUpdateCentralStateInstructionDataCodec, getUpdateCentralStateInstructionDataDecoder, getUpdateCentralStateInstructionDataEncoder, getUtilityPubkeysCodec, getUtilityPubkeysDecoder, getUtilityPubkeysEncoder, getWinningOptionCodec, getWinningOptionDecoder, getWinningOptionEncoder, getWinningOptionsSelectedEventCodec, getWinningOptionsSelectedEventDecoder, getWinningOptionsSelectedEventEncoder, getWithdrawRewardDiscriminatorBytes, getWithdrawRewardInstruction, getWithdrawRewardInstructionAsync, getWithdrawRewardInstructionDataCodec, getWithdrawRewardInstructionDataDecoder, getWithdrawRewardInstructionDataEncoder, identifyOpportunityMarketAccount, identifyOpportunityMarketInstruction, incrementOptionTally, initStakeAccount, initTokenVault, isCircuitSource, isOpportunityMarketError, nonceToBytes, openMarket, parseAddMarketOptionInstruction, parseAddRewardInstruction, parseCancelFeeClaimerChangeInstruction, parseCancelUpdateAuthorityChangeInstruction, parseClaimFeesInstruction, parseCloseStakeAccountInstruction, parseCloseStuckStakeAccountInstruction, parseCreateMarketInstruction, parseDoUnstakeEarlyInstruction, parseEndRevealPeriodInstruction, parseFinalizeNewFeeClaimerInstruction, parseFinalizeNewUpdateAuthorityInstruction, parseIncrementOptionTallyInstruction, parseInitCentralStateInstruction, parseInitStakeAccountInstruction, parseInitTokenVaultInstruction, parseOpenMarketInstruction, parsePauseMarketInstruction, parseProposeNewFeeClaimerInstruction, parseProposeNewUpdateAuthorityInstruction, parseReclaimStakeInstruction, parseResumeMarketInstruction, parseRevealStakeCallbackInstruction, parseRevealStakeCompDefInstruction, parseRevealStakeInstruction, parseSelectWinningOptionsInstruction, parseStakeCallbackInstruction, parseStakeCompDefInstruction, parseStakeInstruction, parseUnstakeEarlyInstruction, parseUpdateCentralStateInstruction, parseWithdrawRewardInstruction, pauseMarket, proposeNewFeeClaimer, proposeNewUpdateAuthority, randomComputationOffset, randomStateNonce, reclaimStake, resumeMarket, revealStake, selectWinningOptions, stake, toNumberArray, unstakeEarly, withdrawReward };
|
|
4140
|
+
export { ADD_MARKET_OPTION_DISCRIMINATOR, ADD_REWARD_DISCRIMINATOR, ALLOWED_MINT_DISCRIMINATOR, ALLOWED_MINT_SEED, 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 AddRewardAsyncInput, type AddRewardInput, type AddRewardInstruction, type AddRewardInstructionData, type AddRewardInstructionDataArgs, type AddRewardParams, type AllowedMint, type AllowedMintArgs, type AllowedMintInitializedEvent, type AllowedMintInitializedEventArgs, type ArciumSignerAccount, type ArciumSignerAccountArgs, type AwaitComputationOptions, type BN254G2BLSPublicKey, type BN254G2BLSPublicKeyArgs, type BaseInstructionParams, type ByteArray, CLAIM_CREATOR_FEES_DISCRIMINATOR, CLAIM_FEES_DISCRIMINATOR, CLOSE_OPTION_ACCOUNT_DISCRIMINATOR, CLOSE_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR, CREATE_MARKET_DISCRIMINATOR, type CircuitSource, type CircuitSourceArgs, type ClaimCreatorFeesAsyncInput, type ClaimCreatorFeesInput, type ClaimCreatorFeesInstruction, type ClaimCreatorFeesInstructionData, type ClaimCreatorFeesInstructionDataArgs, type ClaimCreatorFeesParams, type ClaimFeesAsyncInput, type ClaimFeesInput, type ClaimFeesInstruction, type ClaimFeesInstructionData, type ClaimFeesInstructionDataArgs, type ClaimFeesParams, type ClockAccount, type ClockAccountArgs, type CloseOptionAccountAsyncInput, type CloseOptionAccountInput, type CloseOptionAccountInstruction, type CloseOptionAccountInstructionData, type CloseOptionAccountInstructionDataArgs, type CloseOptionAccountParams, type CloseStakeAccountAsyncInput, type CloseStakeAccountInput, type CloseStakeAccountInstruction, type CloseStakeAccountInstructionData, type CloseStakeAccountInstructionDataArgs, type CloseStakeAccountParams, type CloseStuckStakeAccountAsyncInput, type CloseStuckStakeAccountInput, type CloseStuckStakeAccountInstruction, type CloseStuckStakeAccountInstructionData, type CloseStuckStakeAccountInstructionDataArgs, type CloseStuckStakeAccountParams, type Cluster, type ClusterArgs, type CollectedFees, type CollectedFeesArgs, type CompDefCircuitName, type ComputationDefinitionAccount, type ComputationDefinitionAccountArgs, type ComputationDefinitionMeta, type ComputationDefinitionMetaArgs, type ComputationResult, type ComputationSignature, type ComputationSignatureArgs, type CreateMarketAsyncInput, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateMarketParams, type CreatePlatformConfigParams, type CreatorFeesClaimedEvent, type CreatorFeesClaimedEventArgs, END_REVEAL_PERIOD_DISCRIMINATOR, type EndRevealPeriodInput, type EndRevealPeriodInstruction, type EndRevealPeriodInstructionData, type EndRevealPeriodInstructionDataArgs, type EndRevealPeriodParams, type Epoch, type EpochArgs, FINALIZE_REVEAL_STAKE_DISCRIMINATOR, type FeeClaimAuthorityChangedEvent, type FeeClaimAuthorityChangedEventArgs, type FeePool, type FeePoolArgs, type FeeRates, type FeeRatesArgs, type FeesClaimedEvent, type FeesClaimedEventArgs, type FinalizeRevealStakeAsyncInput, type FinalizeRevealStakeInput, type FinalizeRevealStakeInstruction, type FinalizeRevealStakeInstructionData, type FinalizeRevealStakeInstructionDataArgs, type FinalizeRevealStakeParams, INIT_ALLOWED_MINT_DISCRIMINATOR, INIT_PLATFORM_CONFIG_DISCRIMINATOR, INIT_STAKE_ACCOUNT_DISCRIMINATOR, type InitAllowedMintAsyncInput, type InitAllowedMintInput, type InitAllowedMintInstruction, type InitAllowedMintInstructionData, type InitAllowedMintInstructionDataArgs, type InitAllowedMintParams, type InitCompDefConfig, type InitPlatformConfigAsyncInput, type InitPlatformConfigInput, type InitPlatformConfigInstruction, type InitPlatformConfigInstructionData, type InitPlatformConfigInstructionDataArgs, type InitStakeAccountAsyncInput, type InitStakeAccountInput, type InitStakeAccountInstruction, type InitStakeAccountInstructionData, type InitStakeAccountInstructionDataArgs, type InitStakeAccountParams, LocalCircuitSource, type LocalCircuitSourceArgs, type MXEAccount, type MXEAccountArgs, type MarketCreatedEvent, type MarketCreatedEventArgs, type MarketOpenedEvent, type MarketOpenedEventArgs, type MarketOptionCreatedEvent, type MarketOptionCreatedEventArgs, type MarketResolvedEvent, type MarketResolvedEventArgs, MxeStatus, type MxeStatusArgs, type NodeMetadata, type NodeMetadataArgs, type NodeRef, type NodeRefArgs, OPEN_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_DISCRIMINATOR, OPPORTUNITY_MARKET_ERROR__ABORTED_COMPUTATION, OPPORTUNITY_MARKET_ERROR__ADD_OPTION_STAKE_FAILED, OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED, OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED, OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED, OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH, OPPORTUNITY_MARKET_ERROR__DEPOSIT_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_BALANCE, OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING, OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE, OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES, OPPORTUNITY_MARKET_ERROR__INVALID_MINT, OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID, OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS, OPPORTUNITY_MARKET_ERROR__LOCKED, OPPORTUNITY_MARKET_ERROR__MARKET_ALREADY_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_OPEN, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_PAUSED, OPPORTUNITY_MARKET_ERROR__MARKET_NOT_RESOLVED, OPPORTUNITY_MARKET_ERROR__MARKET_PAUSED, OPPORTUNITY_MARKET_ERROR__NOT_REVEALED, OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_STAKE, OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED, OPPORTUNITY_MARKET_ERROR__OVERFLOW, OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_ENDED, OPPORTUNITY_MARKET_ERROR__REVEAL_PERIOD_NOT_OVER, OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED, OPPORTUNITY_MARKET_ERROR__SELECT_OPTIONS_DEADLINE_PASSED, OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK, OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED, OPPORTUNITY_MARKET_ERROR__TIME_WINDOW_MISMATCH, OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED, OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED, OPPORTUNITY_MARKET_OPTION_DISCRIMINATOR, OPPORTUNITY_MARKET_OPTION_SEED, OPPORTUNITY_MARKET_PROGRAM_ADDRESS, OPPORTUNITY_MARKET_SEED, OPPORTUNITY_MARKET_SPONSOR_DISCRIMINATOR, type OffChainCircuitSource, type OffChainCircuitSourceArgs, type OnChainCircuitSource, type OnChainCircuitSourceArgs, type OpenMarketInput, type OpenMarketInstruction, type OpenMarketInstructionData, type OpenMarketInstructionDataArgs, type OpenMarketParams, type OpportunityMarket, OpportunityMarketAccount, type OpportunityMarketArgs, type OpportunityMarketError, OpportunityMarketInstruction, type OpportunityMarketOption, type OpportunityMarketOptionArgs, type OpportunityMarketSponsor, type OpportunityMarketSponsorArgs, type OptionClosedEvent, type OptionClosedEventArgs, Output, type OutputArgs, PAUSE_STAKING_DISCRIMINATOR, PLATFORM_CONFIG_DISCRIMINATOR, PLATFORM_CONFIG_SEED, Parameter, type ParameterArgs, type ParsedAddMarketOptionInstruction, type ParsedAddRewardInstruction, type ParsedClaimCreatorFeesInstruction, type ParsedClaimFeesInstruction, type ParsedCloseOptionAccountInstruction, type ParsedCloseStakeAccountInstruction, type ParsedCloseStuckStakeAccountInstruction, type ParsedCreateMarketInstruction, type ParsedEndRevealPeriodInstruction, type ParsedFinalizeRevealStakeInstruction, type ParsedInitAllowedMintInstruction, type ParsedInitPlatformConfigInstruction, type ParsedInitStakeAccountInstruction, type ParsedOpenMarketInstruction, type ParsedOpportunityMarketInstruction, type ParsedPauseStakingInstruction, type ParsedResolveMarketInstruction, type ParsedResumeStakingInstruction, type ParsedRevealStakeCallbackInstruction, type ParsedRevealStakeCompDefInstruction, type ParsedRevealStakeInstruction, type ParsedSetFeeClaimAuthorityInstruction, type ParsedSetUpdateAuthorityInstruction, type ParsedSetWinningOptionInstruction, type ParsedStakeCallbackInstruction, type ParsedStakeCompDefInstruction, type ParsedStakeInstruction, type ParsedUnstakeInstruction, type ParsedUpdatePlatformConfigInstruction, type ParsedWithdrawRewardInstruction, type PauseStakingInput, type PauseStakingInstruction, type PauseStakingInstructionData, type PauseStakingInstructionDataArgs, type PauseStakingParams, type PlatformConfig, type PlatformConfigArgs, RESOLVE_MARKET_DISCRIMINATOR, RESUME_STAKING_DISCRIMINATOR, REVEAL_STAKE_CALLBACK_DISCRIMINATOR, REVEAL_STAKE_COMP_DEF_DISCRIMINATOR, REVEAL_STAKE_DISCRIMINATOR, type ResolveMarketInput, type ResolveMarketInstruction, type ResolveMarketInstructionData, type ResolveMarketInstructionDataArgs, type ResolveMarketParams, type ResumeStakingInput, type ResumeStakingInstruction, type ResumeStakingInstructionData, type ResumeStakingInstructionDataArgs, type ResumeStakingParams, type RevealPeriodEndedEvent, type RevealPeriodEndedEventArgs, type RevealStakeAsyncInput, type RevealStakeCallbackInput, type RevealStakeCallbackInstruction, type RevealStakeCallbackInstructionData, type RevealStakeCallbackInstructionDataArgs, type RevealStakeCompDefInput, type RevealStakeCompDefInstruction, type RevealStakeCompDefInstructionData, type RevealStakeCompDefInstructionDataArgs, type RevealStakeFinalizedEvent, type RevealStakeFinalizedEventArgs, type RevealStakeInput, type RevealStakeInstruction, type RevealStakeInstructionData, type RevealStakeInstructionDataArgs, type RevealStakeOutput, type RevealStakeOutputArgs, type RevealStakeParams, type RewardAddedEvent, type RewardAddedEventArgs, type RewardClaimedEvent, type RewardClaimedEventArgs, type RewardWithdrawnEvent, type RewardWithdrawnEventArgs, SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR, SET_UPDATE_AUTHORITY_DISCRIMINATOR, SET_WINNING_OPTION_DISCRIMINATOR, SPONSOR_SEED, STAKE_ACCOUNT_DISCRIMINATOR, STAKE_ACCOUNT_SEED, STAKE_CALLBACK_DISCRIMINATOR, STAKE_COMP_DEF_DISCRIMINATOR, STAKE_DISCRIMINATOR, type SetFeeClaimAuthorityInput, type SetFeeClaimAuthorityInstruction, type SetFeeClaimAuthorityInstructionData, type SetFeeClaimAuthorityInstructionDataArgs, type SetFeeClaimAuthorityParams, type SetUpdateAuthorityInput, type SetUpdateAuthorityInstruction, type SetUpdateAuthorityInstructionData, type SetUpdateAuthorityInstructionDataArgs, type SetUpdateAuthorityParams, type SetWinningOptionAsyncInput, type SetWinningOptionInput, type SetWinningOptionInstruction, type SetWinningOptionInstructionData, type SetWinningOptionInstructionDataArgs, type SetWinningOptionParams, type StakeAccount, type StakeAccountArgs, type StakeAccountInitializedEvent, type StakeAccountInitializedEventArgs, type StakeAsyncInput, type StakeCallbackInput, type StakeCallbackInstruction, type StakeCallbackInstructionData, type StakeCallbackInstructionDataArgs, type StakeCompDefInput, type StakeCompDefInstruction, type StakeCompDefInstructionData, type StakeCompDefInstructionDataArgs, type StakeInput, type StakeInstruction, type StakeInstructionData, type StakeInstructionDataArgs, type StakeOutput, type StakeOutputArgs, type StakeOutputStruct0, type StakeOutputStruct0Args, type StakeParams, type StakeRevealedEvent, type StakeRevealedEventArgs, type StakedEvent, type StakedEventArgs, type StakingPausedEvent, type StakingPausedEventArgs, type StakingResumedEvent, type StakingResumedEventArgs, type StuckStakeClosedEvent, type StuckStakeClosedEventArgs, type Timestamp, type TimestampArgs, UNSTAKE_DISCRIMINATOR, UPDATE_PLATFORM_CONFIG_DISCRIMINATOR, type UnstakeAsyncInput, type UnstakeInput, type UnstakeInstruction, type UnstakeInstructionData, type UnstakeInstructionDataArgs, type UnstakeParams, type UnstakedEvent, type UnstakedEventArgs, type UpdateAuthorityChangedEvent, type UpdateAuthorityChangedEventArgs, type UpdatePlatformConfigInput, type UpdatePlatformConfigInstruction, type UpdatePlatformConfigInstructionData, type UpdatePlatformConfigInstructionDataArgs, type UpdatePlatformConfigParams, type UtilityPubkeys, type UtilityPubkeysArgs, WITHDRAW_REWARD_DISCRIMINATOR, type WinningOptionSetEvent, type WinningOptionSetEventArgs, type WithdrawRewardAsyncInput, type WithdrawRewardInput, type WithdrawRewardInstruction, type WithdrawRewardInstructionData, type WithdrawRewardInstructionDataArgs, type WithdrawRewardParams, type X25519Keypair, addMarketOption, addReward, awaitBatchComputationFinalization, awaitComputationFinalization, circuitSource, claimCreatorFees, claimFees, closeOptionAccount, closeStakeAccount, closeStuckStakeAccount, createCipher, createMarket, createPlatformConfig, decodeAllowedMint, decodeArciumSignerAccount, decodeOpportunityMarket, decodeOpportunityMarketOption, decodeOpportunityMarketSponsor, decodePlatformConfig, decodeStakeAccount, deriveSharedSecret, deriveX25519KeypairFromSignature, endRevealPeriod, fetchAllAllowedMint, fetchAllArciumSignerAccount, fetchAllMaybeAllowedMint, fetchAllMaybeArciumSignerAccount, fetchAllMaybeOpportunityMarket, fetchAllMaybeOpportunityMarketOption, fetchAllMaybeOpportunityMarketSponsor, fetchAllMaybePlatformConfig, fetchAllMaybeStakeAccount, fetchAllOpportunityMarket, fetchAllOpportunityMarketOption, fetchAllOpportunityMarketSponsor, fetchAllPlatformConfig, fetchAllStakeAccount, fetchAllowedMint, fetchArciumSignerAccount, fetchMaybeAllowedMint, fetchMaybeArciumSignerAccount, fetchMaybeOpportunityMarket, fetchMaybeOpportunityMarketOption, fetchMaybeOpportunityMarketSponsor, fetchMaybePlatformConfig, fetchMaybeStakeAccount, fetchOpportunityMarket, fetchOpportunityMarketOption, fetchOpportunityMarketSponsor, fetchPlatformConfig, fetchStakeAccount, finalizeRevealStake, generateX25519Keypair, getActivationCodec, getActivationDecoder, getActivationEncoder, getAddMarketOptionDiscriminatorBytes, getAddMarketOptionInstruction, getAddMarketOptionInstructionAsync, getAddMarketOptionInstructionDataCodec, getAddMarketOptionInstructionDataDecoder, getAddMarketOptionInstructionDataEncoder, getAddRewardDiscriminatorBytes, getAddRewardInstruction, getAddRewardInstructionAsync, getAddRewardInstructionDataCodec, getAddRewardInstructionDataDecoder, getAddRewardInstructionDataEncoder, getAllowedMintAddress, getAllowedMintCodec, getAllowedMintDecoder, getAllowedMintDiscriminatorBytes, getAllowedMintEncoder, getAllowedMintInitializedEventCodec, getAllowedMintInitializedEventDecoder, getAllowedMintInitializedEventEncoder, getArciumSignerAccountCodec, getArciumSignerAccountDecoder, getArciumSignerAccountDiscriminatorBytes, getArciumSignerAccountEncoder, getBN254G2BLSPublicKeyCodec, getBN254G2BLSPublicKeyDecoder, getBN254G2BLSPublicKeyEncoder, getCircuitSourceCodec, getCircuitSourceDecoder, getCircuitSourceEncoder, getClaimCreatorFeesDiscriminatorBytes, getClaimCreatorFeesInstruction, getClaimCreatorFeesInstructionAsync, getClaimCreatorFeesInstructionDataCodec, getClaimCreatorFeesInstructionDataDecoder, getClaimCreatorFeesInstructionDataEncoder, getClaimFeesDiscriminatorBytes, getClaimFeesInstruction, getClaimFeesInstructionAsync, getClaimFeesInstructionDataCodec, getClaimFeesInstructionDataDecoder, getClaimFeesInstructionDataEncoder, getClockAccountCodec, getClockAccountDecoder, getClockAccountEncoder, getCloseOptionAccountDiscriminatorBytes, getCloseOptionAccountInstruction, getCloseOptionAccountInstructionAsync, getCloseOptionAccountInstructionDataCodec, getCloseOptionAccountInstructionDataDecoder, getCloseOptionAccountInstructionDataEncoder, getCloseStakeAccountDiscriminatorBytes, getCloseStakeAccountInstruction, getCloseStakeAccountInstructionAsync, getCloseStakeAccountInstructionDataCodec, getCloseStakeAccountInstructionDataDecoder, getCloseStakeAccountInstructionDataEncoder, getCloseStuckStakeAccountDiscriminatorBytes, getCloseStuckStakeAccountInstruction, getCloseStuckStakeAccountInstructionAsync, getCloseStuckStakeAccountInstructionDataCodec, getCloseStuckStakeAccountInstructionDataDecoder, getCloseStuckStakeAccountInstructionDataEncoder, getClusterCodec, getClusterDecoder, getClusterEncoder, getCollectedFeesCodec, getCollectedFeesDecoder, getCollectedFeesEncoder, getCompDefAccount, getCompDefOffsetNumber, getComputationDefinitionAccountCodec, getComputationDefinitionAccountDecoder, getComputationDefinitionAccountEncoder, getComputationDefinitionMetaCodec, getComputationDefinitionMetaDecoder, getComputationDefinitionMetaEncoder, getComputationSignatureCodec, getComputationSignatureDecoder, getComputationSignatureEncoder, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionAsync, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getCreatorFeesClaimedEventCodec, getCreatorFeesClaimedEventDecoder, getCreatorFeesClaimedEventEncoder, getEndRevealPeriodDiscriminatorBytes, getEndRevealPeriodInstruction, getEndRevealPeriodInstructionDataCodec, getEndRevealPeriodInstructionDataDecoder, getEndRevealPeriodInstructionDataEncoder, getEpochCodec, getEpochDecoder, getEpochEncoder, getFeeClaimAuthorityChangedEventCodec, getFeeClaimAuthorityChangedEventDecoder, getFeeClaimAuthorityChangedEventEncoder, getFeePoolCodec, getFeePoolDecoder, getFeePoolEncoder, getFeeRatesCodec, getFeeRatesDecoder, getFeeRatesEncoder, getFeesClaimedEventCodec, getFeesClaimedEventDecoder, getFeesClaimedEventEncoder, getFinalizeRevealStakeDiscriminatorBytes, getFinalizeRevealStakeInstruction, getFinalizeRevealStakeInstructionAsync, getFinalizeRevealStakeInstructionDataCodec, getFinalizeRevealStakeInstructionDataDecoder, getFinalizeRevealStakeInstructionDataEncoder, getInitAllowedMintDiscriminatorBytes, getInitAllowedMintInstruction, getInitAllowedMintInstructionAsync, getInitAllowedMintInstructionDataCodec, getInitAllowedMintInstructionDataDecoder, getInitAllowedMintInstructionDataEncoder, getInitCompDefInstruction, getInitPlatformConfigDiscriminatorBytes, getInitPlatformConfigInstruction, getInitPlatformConfigInstructionAsync, getInitPlatformConfigInstructionDataCodec, getInitPlatformConfigInstructionDataDecoder, getInitPlatformConfigInstructionDataEncoder, getInitStakeAccountDiscriminatorBytes, getInitStakeAccountInstruction, getInitStakeAccountInstructionAsync, getInitStakeAccountInstructionDataCodec, getInitStakeAccountInstructionDataDecoder, getInitStakeAccountInstructionDataEncoder, getLocalCircuitSourceCodec, getLocalCircuitSourceDecoder, getLocalCircuitSourceEncoder, getMXEAccountCodec, getMXEAccountDecoder, getMXEAccountEncoder, getMarketCreatedEventCodec, getMarketCreatedEventDecoder, getMarketCreatedEventEncoder, getMarketOpenedEventCodec, getMarketOpenedEventDecoder, getMarketOpenedEventEncoder, getMarketOptionCreatedEventCodec, getMarketOptionCreatedEventDecoder, getMarketOptionCreatedEventEncoder, getMarketResolvedEventCodec, getMarketResolvedEventDecoder, getMarketResolvedEventEncoder, getMxeAccount, getMxeStatusCodec, getMxeStatusDecoder, getMxeStatusEncoder, getNodeMetadataCodec, getNodeMetadataDecoder, getNodeMetadataEncoder, getNodeRefCodec, getNodeRefDecoder, getNodeRefEncoder, getOffChainCircuitSourceCodec, getOffChainCircuitSourceDecoder, getOffChainCircuitSourceEncoder, getOnChainCircuitSourceCodec, getOnChainCircuitSourceDecoder, getOnChainCircuitSourceEncoder, getOpenMarketDiscriminatorBytes, getOpenMarketInstruction, getOpenMarketInstructionDataCodec, getOpenMarketInstructionDataDecoder, getOpenMarketInstructionDataEncoder, getOpportunityMarketAddress, getOpportunityMarketCodec, getOpportunityMarketDecoder, getOpportunityMarketDiscriminatorBytes, getOpportunityMarketEncoder, getOpportunityMarketErrorMessage, getOpportunityMarketOptionAddress, getOpportunityMarketOptionCodec, getOpportunityMarketOptionDecoder, getOpportunityMarketOptionDiscriminatorBytes, getOpportunityMarketOptionEncoder, getOpportunityMarketSponsorAddress, getOpportunityMarketSponsorCodec, getOpportunityMarketSponsorDecoder, getOpportunityMarketSponsorDiscriminatorBytes, getOpportunityMarketSponsorEncoder, getOptionClosedEventCodec, getOptionClosedEventDecoder, getOptionClosedEventEncoder, getOutputCodec, getOutputDecoder, getOutputEncoder, getParameterCodec, getParameterDecoder, getParameterEncoder, getPauseStakingDiscriminatorBytes, getPauseStakingInstruction, getPauseStakingInstructionDataCodec, getPauseStakingInstructionDataDecoder, getPauseStakingInstructionDataEncoder, getPlatformConfigAddress, getPlatformConfigCodec, getPlatformConfigDecoder, getPlatformConfigDiscriminatorBytes, getPlatformConfigEncoder, getResolveMarketDiscriminatorBytes, getResolveMarketInstruction, getResolveMarketInstructionDataCodec, getResolveMarketInstructionDataDecoder, getResolveMarketInstructionDataEncoder, getResumeStakingDiscriminatorBytes, getResumeStakingInstruction, getResumeStakingInstructionDataCodec, getResumeStakingInstructionDataDecoder, getResumeStakingInstructionDataEncoder, getRevealPeriodEndedEventCodec, getRevealPeriodEndedEventDecoder, getRevealPeriodEndedEventEncoder, getRevealStakeCallbackDiscriminatorBytes, getRevealStakeCallbackInstruction, getRevealStakeCallbackInstructionDataCodec, getRevealStakeCallbackInstructionDataDecoder, getRevealStakeCallbackInstructionDataEncoder, getRevealStakeCompDefDiscriminatorBytes, getRevealStakeCompDefInstruction, getRevealStakeCompDefInstructionDataCodec, getRevealStakeCompDefInstructionDataDecoder, getRevealStakeCompDefInstructionDataEncoder, getRevealStakeDiscriminatorBytes, getRevealStakeFinalizedEventCodec, getRevealStakeFinalizedEventDecoder, getRevealStakeFinalizedEventEncoder, getRevealStakeInstruction, getRevealStakeInstructionAsync, getRevealStakeInstructionDataCodec, getRevealStakeInstructionDataDecoder, getRevealStakeInstructionDataEncoder, getRevealStakeOutputCodec, getRevealStakeOutputDecoder, getRevealStakeOutputEncoder, getRewardAddedEventCodec, getRewardAddedEventDecoder, getRewardAddedEventEncoder, getRewardClaimedEventCodec, getRewardClaimedEventDecoder, getRewardClaimedEventEncoder, getRewardWithdrawnEventCodec, getRewardWithdrawnEventDecoder, getRewardWithdrawnEventEncoder, getSetFeeClaimAuthorityDiscriminatorBytes, getSetFeeClaimAuthorityInstruction, getSetFeeClaimAuthorityInstructionDataCodec, getSetFeeClaimAuthorityInstructionDataDecoder, getSetFeeClaimAuthorityInstructionDataEncoder, getSetUpdateAuthorityDiscriminatorBytes, getSetUpdateAuthorityInstruction, getSetUpdateAuthorityInstructionDataCodec, getSetUpdateAuthorityInstructionDataDecoder, getSetUpdateAuthorityInstructionDataEncoder, getSetWinningOptionDiscriminatorBytes, getSetWinningOptionInstruction, getSetWinningOptionInstructionAsync, getSetWinningOptionInstructionDataCodec, getSetWinningOptionInstructionDataDecoder, getSetWinningOptionInstructionDataEncoder, getStakeAccountAddress, getStakeAccountCodec, getStakeAccountDecoder, getStakeAccountDiscriminatorBytes, getStakeAccountEncoder, getStakeAccountInitializedEventCodec, getStakeAccountInitializedEventDecoder, getStakeAccountInitializedEventEncoder, getStakeCallbackDiscriminatorBytes, getStakeCallbackInstruction, getStakeCallbackInstructionDataCodec, getStakeCallbackInstructionDataDecoder, getStakeCallbackInstructionDataEncoder, getStakeCompDefDiscriminatorBytes, getStakeCompDefInstruction, getStakeCompDefInstructionDataCodec, getStakeCompDefInstructionDataDecoder, getStakeCompDefInstructionDataEncoder, getStakeDiscriminatorBytes, getStakeInstruction, getStakeInstructionAsync, getStakeInstructionDataCodec, getStakeInstructionDataDecoder, getStakeInstructionDataEncoder, getStakeOutputCodec, getStakeOutputDecoder, getStakeOutputEncoder, getStakeOutputStruct0Codec, getStakeOutputStruct0Decoder, getStakeOutputStruct0Encoder, getStakeRevealedEventCodec, getStakeRevealedEventDecoder, getStakeRevealedEventEncoder, getStakedEventCodec, getStakedEventDecoder, getStakedEventEncoder, getStakingPausedEventCodec, getStakingPausedEventDecoder, getStakingPausedEventEncoder, getStakingResumedEventCodec, getStakingResumedEventDecoder, getStakingResumedEventEncoder, getStuckStakeClosedEventCodec, getStuckStakeClosedEventDecoder, getStuckStakeClosedEventEncoder, getTimestampCodec, getTimestampDecoder, getTimestampEncoder, getUnstakeDiscriminatorBytes, getUnstakeInstruction, getUnstakeInstructionAsync, getUnstakeInstructionDataCodec, getUnstakeInstructionDataDecoder, getUnstakeInstructionDataEncoder, getUnstakedEventCodec, getUnstakedEventDecoder, getUnstakedEventEncoder, getUpdateAuthorityChangedEventCodec, getUpdateAuthorityChangedEventDecoder, getUpdateAuthorityChangedEventEncoder, getUpdatePlatformConfigDiscriminatorBytes, getUpdatePlatformConfigInstruction, getUpdatePlatformConfigInstructionDataCodec, getUpdatePlatformConfigInstructionDataDecoder, getUpdatePlatformConfigInstructionDataEncoder, getUtilityPubkeysCodec, getUtilityPubkeysDecoder, getUtilityPubkeysEncoder, getWinningOptionSetEventCodec, getWinningOptionSetEventDecoder, getWinningOptionSetEventEncoder, getWithdrawRewardDiscriminatorBytes, getWithdrawRewardInstruction, getWithdrawRewardInstructionAsync, getWithdrawRewardInstructionDataCodec, getWithdrawRewardInstructionDataDecoder, getWithdrawRewardInstructionDataEncoder, identifyOpportunityMarketAccount, identifyOpportunityMarketInstruction, initAllowedMint, initStakeAccount, isCircuitSource, isOpportunityMarketError, nonceToBytes, openMarket, parseAddMarketOptionInstruction, parseAddRewardInstruction, parseClaimCreatorFeesInstruction, parseClaimFeesInstruction, parseCloseOptionAccountInstruction, parseCloseStakeAccountInstruction, parseCloseStuckStakeAccountInstruction, parseCreateMarketInstruction, parseEndRevealPeriodInstruction, parseFinalizeRevealStakeInstruction, parseInitAllowedMintInstruction, parseInitPlatformConfigInstruction, parseInitStakeAccountInstruction, parseOpenMarketInstruction, parsePauseStakingInstruction, parseResolveMarketInstruction, parseResumeStakingInstruction, parseRevealStakeCallbackInstruction, parseRevealStakeCompDefInstruction, parseRevealStakeInstruction, parseSetFeeClaimAuthorityInstruction, parseSetUpdateAuthorityInstruction, parseSetWinningOptionInstruction, parseStakeCallbackInstruction, parseStakeCompDefInstruction, parseStakeInstruction, parseUnstakeInstruction, parseUpdatePlatformConfigInstruction, parseWithdrawRewardInstruction, pauseStaking, randomComputationOffset, randomStateNonce, resolveMarket, resumeStaking, revealStake, setFeeClaimAuthority, setUpdateAuthority, setWinningOption, stake, toNumberArray, unstake, updatePlatformConfig, withdrawReward };
|