@bench.games/opportunity-markets 0.3.5 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -339,7 +339,7 @@ type CreateMarketParameters = {
339
339
  authorizedReaderPubkey: Array<number>;
340
340
  earlinessCutoffSeconds: bigint;
341
341
  earlinessMultiplier: number;
342
- minStakeAmount: bigint;
342
+ minVouchAmount: bigint;
343
343
  creatorFeeClaimer: Address;
344
344
  };
345
345
  type CreateMarketParametersArgs = {
@@ -348,7 +348,7 @@ type CreateMarketParametersArgs = {
348
348
  authorizedReaderPubkey: Array<number>;
349
349
  earlinessCutoffSeconds: number | bigint;
350
350
  earlinessMultiplier: number;
351
- minStakeAmount: number | bigint;
351
+ minVouchAmount: number | bigint;
352
352
  creatorFeeClaimer: Address;
353
353
  };
354
354
  declare function getCreateMarketParametersEncoder(): FixedSizeEncoder<CreateMarketParametersArgs>;
@@ -499,7 +499,7 @@ type InitPlatformParameters = {
499
499
  creatorFeeBp: number;
500
500
  feeClaimAuthority: Address;
501
501
  revealAuthority: Address;
502
- minTimeToStakeSeconds: bigint;
502
+ minTimeToVouchSeconds: bigint;
503
503
  revealPeriodSeconds: bigint;
504
504
  marketResolutionDeadlineSeconds: bigint;
505
505
  };
@@ -510,7 +510,7 @@ type InitPlatformParametersArgs = {
510
510
  creatorFeeBp: number;
511
511
  feeClaimAuthority: Address;
512
512
  revealAuthority: Address;
513
- minTimeToStakeSeconds: number | bigint;
513
+ minTimeToVouchSeconds: number | bigint;
514
514
  revealPeriodSeconds: number | bigint;
515
515
  marketResolutionDeadlineSeconds: number | bigint;
516
516
  };
@@ -554,7 +554,7 @@ type MarketCreatedEvent = {
554
554
  earlinessMultiplier: number;
555
555
  marketAuthority: Address;
556
556
  authorizedReaderPubkey: Array<number>;
557
- minStakeAmount: bigint;
557
+ minVouchAmount: bigint;
558
558
  feeRates: FeeRates;
559
559
  creatorFeeClaimer: Address;
560
560
  marketResolutionDeadlineSeconds: bigint;
@@ -571,7 +571,7 @@ type MarketCreatedEventArgs = {
571
571
  earlinessMultiplier: number;
572
572
  marketAuthority: Address;
573
573
  authorizedReaderPubkey: Array<number>;
574
- minStakeAmount: number | bigint;
574
+ minVouchAmount: number | bigint;
575
575
  feeRates: FeeRatesArgs;
576
576
  creatorFeeClaimer: Address;
577
577
  marketResolutionDeadlineSeconds: number | bigint;
@@ -593,13 +593,13 @@ declare function getMarketCreatedEventCodec(): FixedSizeCodec<MarketCreatedEvent
593
593
  type MarketOpenedEvent = {
594
594
  market: Address;
595
595
  creator: Address;
596
- stakingWindowEnd: bigint;
596
+ vouchingWindowEnd: bigint;
597
597
  timestamp: bigint;
598
598
  };
599
599
  type MarketOpenedEventArgs = {
600
600
  market: Address;
601
601
  creator: Address;
602
- stakingWindowEnd: number | bigint;
602
+ vouchingWindowEnd: number | bigint;
603
603
  timestamp: number | bigint;
604
604
  };
605
605
  declare function getMarketOpenedEventEncoder(): FixedSizeEncoder<MarketOpenedEventArgs>;
@@ -935,33 +935,33 @@ declare function getRevealPeriodEndedEventCodec(): FixedSizeCodec<RevealPeriodEn
935
935
  * @see https://github.com/codama-idl/codama
936
936
  */
937
937
 
938
- type RevealStakeFinalizedEvent = {
938
+ type RevealVouchFinalizedEvent = {
939
939
  owner: Address;
940
940
  market: Address;
941
- stakeAccount: Address;
942
- stakeAccountId: number;
941
+ vouchAccount: Address;
942
+ vouchAccountId: number;
943
943
  optionId: bigint;
944
- userStake: bigint;
944
+ userVouch: bigint;
945
945
  userScore: bigint;
946
946
  totalScore: bigint;
947
- totalStake: bigint;
947
+ totalVouch: bigint;
948
948
  timestamp: bigint;
949
949
  };
950
- type RevealStakeFinalizedEventArgs = {
950
+ type RevealVouchFinalizedEventArgs = {
951
951
  owner: Address;
952
952
  market: Address;
953
- stakeAccount: Address;
954
- stakeAccountId: number;
953
+ vouchAccount: Address;
954
+ vouchAccountId: number;
955
955
  optionId: number | bigint;
956
- userStake: number | bigint;
956
+ userVouch: number | bigint;
957
957
  userScore: number | bigint;
958
958
  totalScore: number | bigint;
959
- totalStake: number | bigint;
959
+ totalVouch: number | bigint;
960
960
  timestamp: number | bigint;
961
961
  };
962
- declare function getRevealStakeFinalizedEventEncoder(): FixedSizeEncoder<RevealStakeFinalizedEventArgs>;
963
- declare function getRevealStakeFinalizedEventDecoder(): FixedSizeDecoder<RevealStakeFinalizedEvent>;
964
- declare function getRevealStakeFinalizedEventCodec(): FixedSizeCodec<RevealStakeFinalizedEventArgs, RevealStakeFinalizedEvent>;
962
+ declare function getRevealVouchFinalizedEventEncoder(): FixedSizeEncoder<RevealVouchFinalizedEventArgs>;
963
+ declare function getRevealVouchFinalizedEventDecoder(): FixedSizeDecoder<RevealVouchFinalizedEvent>;
964
+ declare function getRevealVouchFinalizedEventCodec(): FixedSizeCodec<RevealVouchFinalizedEventArgs, RevealVouchFinalizedEvent>;
965
965
 
966
966
  /**
967
967
  * This code was AUTOGENERATED using the Codama library.
@@ -975,15 +975,15 @@ declare function getRevealStakeFinalizedEventCodec(): FixedSizeCodec<RevealStake
975
975
  * The output of the callback instruction. Provided as a struct with ordered fields
976
976
  * as anchor does not support tuples and tuple structs yet.
977
977
  */
978
- type RevealStakeOutput = {
978
+ type RevealVouchOutput = {
979
979
  field0: bigint;
980
980
  };
981
- type RevealStakeOutputArgs = {
981
+ type RevealVouchOutputArgs = {
982
982
  field0: number | bigint;
983
983
  };
984
- declare function getRevealStakeOutputEncoder(): FixedSizeEncoder<RevealStakeOutputArgs>;
985
- declare function getRevealStakeOutputDecoder(): FixedSizeDecoder<RevealStakeOutput>;
986
- declare function getRevealStakeOutputCodec(): FixedSizeCodec<RevealStakeOutputArgs, RevealStakeOutput>;
984
+ declare function getRevealVouchOutputEncoder(): FixedSizeEncoder<RevealVouchOutputArgs>;
985
+ declare function getRevealVouchOutputDecoder(): FixedSizeDecoder<RevealVouchOutput>;
986
+ declare function getRevealVouchOutputCodec(): FixedSizeCodec<RevealVouchOutputArgs, RevealVouchOutput>;
987
987
 
988
988
  /**
989
989
  * This code was AUTOGENERATED using the Codama library.
@@ -1022,8 +1022,8 @@ declare function getRewardAddedEventCodec(): FixedSizeCodec<RewardAddedEventArgs
1022
1022
  type RewardsClaimedEvent = {
1023
1023
  owner: Address;
1024
1024
  market: Address;
1025
- stakeAccount: Address;
1026
- stakeAccountId: number;
1025
+ vouchAccount: Address;
1026
+ vouchAccountId: number;
1027
1027
  optionId: bigint;
1028
1028
  rewardAmount: bigint;
1029
1029
  score: bigint;
@@ -1032,8 +1032,8 @@ type RewardsClaimedEvent = {
1032
1032
  type RewardsClaimedEventArgs = {
1033
1033
  owner: Address;
1034
1034
  market: Address;
1035
- stakeAccount: Address;
1036
- stakeAccountId: number;
1035
+ vouchAccount: Address;
1036
+ vouchAccountId: number;
1037
1037
  optionId: number | bigint;
1038
1038
  rewardAmount: number | bigint;
1039
1039
  score: number | bigint;
@@ -1077,35 +1077,160 @@ declare function getRewardWithdrawnEventCodec(): FixedSizeCodec<RewardWithdrawnE
1077
1077
  * @see https://github.com/codama-idl/codama
1078
1078
  */
1079
1079
 
1080
- type StakeAccountClosedEvent = {
1080
+ type StuckVouchClosedEvent = {
1081
1081
  owner: Address;
1082
1082
  market: Address;
1083
- stakeAccount: Address;
1084
- stakeAccountId: number;
1083
+ vouchAccount: Address;
1084
+ vouchAccountId: number;
1085
+ refundedAmount: bigint;
1086
+ refundedPlatformFee: bigint;
1087
+ refundedRewardPoolFee: bigint;
1088
+ refundedCreatorFee: bigint;
1089
+ timestamp: bigint;
1090
+ };
1091
+ type StuckVouchClosedEventArgs = {
1092
+ owner: Address;
1093
+ market: Address;
1094
+ vouchAccount: Address;
1095
+ vouchAccountId: number;
1096
+ refundedAmount: number | bigint;
1097
+ refundedPlatformFee: number | bigint;
1098
+ refundedRewardPoolFee: number | bigint;
1099
+ refundedCreatorFee: number | bigint;
1100
+ timestamp: number | bigint;
1101
+ };
1102
+ declare function getStuckVouchClosedEventEncoder(): FixedSizeEncoder<StuckVouchClosedEventArgs>;
1103
+ declare function getStuckVouchClosedEventDecoder(): FixedSizeDecoder<StuckVouchClosedEvent>;
1104
+ declare function getStuckVouchClosedEventCodec(): FixedSizeCodec<StuckVouchClosedEventArgs, StuckVouchClosedEvent>;
1105
+
1106
+ /**
1107
+ * This code was AUTOGENERATED using the Codama library.
1108
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1109
+ * to add features, then rerun Codama to update it.
1110
+ *
1111
+ * @see https://github.com/codama-idl/codama
1112
+ */
1113
+
1114
+ type Timestamp = {
1115
+ timestamp: bigint;
1116
+ };
1117
+ type TimestampArgs = {
1118
+ timestamp: number | bigint;
1119
+ };
1120
+ declare function getTimestampEncoder(): FixedSizeEncoder<TimestampArgs>;
1121
+ declare function getTimestampDecoder(): FixedSizeDecoder<Timestamp>;
1122
+ declare function getTimestampCodec(): FixedSizeCodec<TimestampArgs, Timestamp>;
1123
+
1124
+ /**
1125
+ * This code was AUTOGENERATED using the Codama library.
1126
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1127
+ * to add features, then rerun Codama to update it.
1128
+ *
1129
+ * @see https://github.com/codama-idl/codama
1130
+ */
1131
+
1132
+ type UpdateAuthorityChangedEvent = {
1133
+ platformConfig: Address;
1134
+ oldValue: Address;
1135
+ newValue: Address;
1136
+ timestamp: bigint;
1137
+ };
1138
+ type UpdateAuthorityChangedEventArgs = {
1139
+ platformConfig: Address;
1140
+ oldValue: Address;
1141
+ newValue: Address;
1142
+ timestamp: number | bigint;
1143
+ };
1144
+ declare function getUpdateAuthorityChangedEventEncoder(): FixedSizeEncoder<UpdateAuthorityChangedEventArgs>;
1145
+ declare function getUpdateAuthorityChangedEventDecoder(): FixedSizeDecoder<UpdateAuthorityChangedEvent>;
1146
+ declare function getUpdateAuthorityChangedEventCodec(): FixedSizeCodec<UpdateAuthorityChangedEventArgs, UpdateAuthorityChangedEvent>;
1147
+
1148
+ /**
1149
+ * This code was AUTOGENERATED using the Codama library.
1150
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1151
+ * to add features, then rerun Codama to update it.
1152
+ *
1153
+ * @see https://github.com/codama-idl/codama
1154
+ */
1155
+
1156
+ type UpdatePlatformParameters = {
1157
+ platformFeeBp: Option<number>;
1158
+ rewardPoolFeeBp: Option<number>;
1159
+ creatorFeeBp: Option<number>;
1160
+ revealAuthority: Option<Address>;
1161
+ minTimeToVouchSeconds: Option<bigint>;
1162
+ revealPeriodSeconds: Option<bigint>;
1163
+ marketResolutionDeadlineSeconds: Option<bigint>;
1164
+ };
1165
+ type UpdatePlatformParametersArgs = {
1166
+ platformFeeBp: OptionOrNullable<number>;
1167
+ rewardPoolFeeBp: OptionOrNullable<number>;
1168
+ creatorFeeBp: OptionOrNullable<number>;
1169
+ revealAuthority: OptionOrNullable<Address>;
1170
+ minTimeToVouchSeconds: OptionOrNullable<number | bigint>;
1171
+ revealPeriodSeconds: OptionOrNullable<number | bigint>;
1172
+ marketResolutionDeadlineSeconds: OptionOrNullable<number | bigint>;
1173
+ };
1174
+ declare function getUpdatePlatformParametersEncoder(): Encoder<UpdatePlatformParametersArgs>;
1175
+ declare function getUpdatePlatformParametersDecoder(): Decoder<UpdatePlatformParameters>;
1176
+ declare function getUpdatePlatformParametersCodec(): Codec<UpdatePlatformParametersArgs, UpdatePlatformParameters>;
1177
+
1178
+ /**
1179
+ * This code was AUTOGENERATED using the Codama library.
1180
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1181
+ * to add features, then rerun Codama to update it.
1182
+ *
1183
+ * @see https://github.com/codama-idl/codama
1184
+ */
1185
+
1186
+ type UtilityPubkeys = {
1187
+ x25519Pubkey: Array<number>;
1188
+ ed25519VerifyingKey: Array<number>;
1189
+ elgamalPubkey: Array<number>;
1190
+ pubkeyValidityProof: Array<number>;
1191
+ };
1192
+ type UtilityPubkeysArgs = UtilityPubkeys;
1193
+ declare function getUtilityPubkeysEncoder(): FixedSizeEncoder<UtilityPubkeysArgs>;
1194
+ declare function getUtilityPubkeysDecoder(): FixedSizeDecoder<UtilityPubkeys>;
1195
+ declare function getUtilityPubkeysCodec(): FixedSizeCodec<UtilityPubkeysArgs, UtilityPubkeys>;
1196
+
1197
+ /**
1198
+ * This code was AUTOGENERATED using the Codama library.
1199
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1200
+ * to add features, then rerun Codama to update it.
1201
+ *
1202
+ * @see https://github.com/codama-idl/codama
1203
+ */
1204
+
1205
+ type VouchAccountClosedEvent = {
1206
+ owner: Address;
1207
+ market: Address;
1208
+ vouchAccount: Address;
1209
+ vouchAccountId: number;
1085
1210
  optionId: Option<bigint>;
1086
- stakeAmount: bigint;
1211
+ vouchAmount: bigint;
1087
1212
  feeRefund: bigint;
1088
- stakedAtTimestamp: bigint;
1089
- stakingWindowEnd: bigint;
1213
+ vouchedAtTimestamp: bigint;
1214
+ vouchingWindowEnd: bigint;
1090
1215
  score: bigint;
1091
1216
  timestamp: bigint;
1092
1217
  };
1093
- type StakeAccountClosedEventArgs = {
1218
+ type VouchAccountClosedEventArgs = {
1094
1219
  owner: Address;
1095
1220
  market: Address;
1096
- stakeAccount: Address;
1097
- stakeAccountId: number;
1221
+ vouchAccount: Address;
1222
+ vouchAccountId: number;
1098
1223
  optionId: OptionOrNullable<number | bigint>;
1099
- stakeAmount: number | bigint;
1224
+ vouchAmount: number | bigint;
1100
1225
  feeRefund: number | bigint;
1101
- stakedAtTimestamp: number | bigint;
1102
- stakingWindowEnd: number | bigint;
1226
+ vouchedAtTimestamp: number | bigint;
1227
+ vouchingWindowEnd: number | bigint;
1103
1228
  score: number | bigint;
1104
1229
  timestamp: number | bigint;
1105
1230
  };
1106
- declare function getStakeAccountClosedEventEncoder(): Encoder<StakeAccountClosedEventArgs>;
1107
- declare function getStakeAccountClosedEventDecoder(): Decoder<StakeAccountClosedEvent>;
1108
- declare function getStakeAccountClosedEventCodec(): Codec<StakeAccountClosedEventArgs, StakeAccountClosedEvent>;
1231
+ declare function getVouchAccountClosedEventEncoder(): Encoder<VouchAccountClosedEventArgs>;
1232
+ declare function getVouchAccountClosedEventDecoder(): Decoder<VouchAccountClosedEvent>;
1233
+ declare function getVouchAccountClosedEventCodec(): Codec<VouchAccountClosedEventArgs, VouchAccountClosedEvent>;
1109
1234
 
1110
1235
  /**
1111
1236
  * This code was AUTOGENERATED using the Codama library.
@@ -1115,23 +1240,23 @@ declare function getStakeAccountClosedEventCodec(): Codec<StakeAccountClosedEven
1115
1240
  * @see https://github.com/codama-idl/codama
1116
1241
  */
1117
1242
 
1118
- type StakeAccountInitializedEvent = {
1119
- stakeAccount: Address;
1243
+ type VouchAccountInitializedEvent = {
1244
+ vouchAccount: Address;
1120
1245
  owner: Address;
1121
1246
  market: Address;
1122
1247
  accountId: number;
1123
1248
  timestamp: bigint;
1124
1249
  };
1125
- type StakeAccountInitializedEventArgs = {
1126
- stakeAccount: Address;
1250
+ type VouchAccountInitializedEventArgs = {
1251
+ vouchAccount: Address;
1127
1252
  owner: Address;
1128
1253
  market: Address;
1129
1254
  accountId: number;
1130
1255
  timestamp: number | bigint;
1131
1256
  };
1132
- declare function getStakeAccountInitializedEventEncoder(): FixedSizeEncoder<StakeAccountInitializedEventArgs>;
1133
- declare function getStakeAccountInitializedEventDecoder(): FixedSizeDecoder<StakeAccountInitializedEvent>;
1134
- declare function getStakeAccountInitializedEventCodec(): FixedSizeCodec<StakeAccountInitializedEventArgs, StakeAccountInitializedEvent>;
1257
+ declare function getVouchAccountInitializedEventEncoder(): FixedSizeEncoder<VouchAccountInitializedEventArgs>;
1258
+ declare function getVouchAccountInitializedEventDecoder(): FixedSizeDecoder<VouchAccountInitializedEvent>;
1259
+ declare function getVouchAccountInitializedEventCodec(): FixedSizeCodec<VouchAccountInitializedEventArgs, VouchAccountInitializedEvent>;
1135
1260
 
1136
1261
  /**
1137
1262
  * This code was AUTOGENERATED using the Codama library.
@@ -1141,33 +1266,33 @@ declare function getStakeAccountInitializedEventCodec(): FixedSizeCodec<StakeAcc
1141
1266
  * @see https://github.com/codama-idl/codama
1142
1267
  */
1143
1268
 
1144
- type StakedEvent = {
1269
+ type VouchedEvent = {
1145
1270
  user: Address;
1146
1271
  market: Address;
1147
- stakeAccount: Address;
1148
- stakeAccountId: number;
1149
- stakeEncryptedOption: Array<number>;
1150
- stakeStateNonce: bigint;
1151
- stakeEncryptedOptionDisclosure: Array<number>;
1152
- stakeStateDisclosureNonce: bigint;
1272
+ vouchAccount: Address;
1273
+ vouchAccountId: number;
1274
+ vouchEncryptedOption: Array<number>;
1275
+ vouchStateNonce: bigint;
1276
+ vouchEncryptedOptionDisclosure: Array<number>;
1277
+ vouchStateDisclosureNonce: bigint;
1153
1278
  amount: bigint;
1154
1279
  timestamp: bigint;
1155
1280
  };
1156
- type StakedEventArgs = {
1281
+ type VouchedEventArgs = {
1157
1282
  user: Address;
1158
1283
  market: Address;
1159
- stakeAccount: Address;
1160
- stakeAccountId: number;
1161
- stakeEncryptedOption: Array<number>;
1162
- stakeStateNonce: number | bigint;
1163
- stakeEncryptedOptionDisclosure: Array<number>;
1164
- stakeStateDisclosureNonce: number | bigint;
1284
+ vouchAccount: Address;
1285
+ vouchAccountId: number;
1286
+ vouchEncryptedOption: Array<number>;
1287
+ vouchStateNonce: number | bigint;
1288
+ vouchEncryptedOptionDisclosure: Array<number>;
1289
+ vouchStateDisclosureNonce: number | bigint;
1165
1290
  amount: number | bigint;
1166
1291
  timestamp: number | bigint;
1167
1292
  };
1168
- declare function getStakedEventEncoder(): FixedSizeEncoder<StakedEventArgs>;
1169
- declare function getStakedEventDecoder(): FixedSizeDecoder<StakedEvent>;
1170
- declare function getStakedEventCodec(): FixedSizeCodec<StakedEventArgs, StakedEvent>;
1293
+ declare function getVouchedEventEncoder(): FixedSizeEncoder<VouchedEventArgs>;
1294
+ declare function getVouchedEventDecoder(): FixedSizeDecoder<VouchedEvent>;
1295
+ declare function getVouchedEventCodec(): FixedSizeCodec<VouchedEventArgs, VouchedEvent>;
1171
1296
 
1172
1297
  /**
1173
1298
  * This code was AUTOGENERATED using the Codama library.
@@ -1181,15 +1306,15 @@ declare function getStakedEventCodec(): FixedSizeCodec<StakedEventArgs, StakedEv
1181
1306
  * The output of the callback instruction. Provided as a struct with ordered fields
1182
1307
  * as anchor does not support tuples and tuple structs yet.
1183
1308
  */
1184
- type StakeOutput = {
1185
- field0: StakeOutputStruct0;
1309
+ type VouchOutput = {
1310
+ field0: VouchOutputStruct0;
1186
1311
  };
1187
- type StakeOutputArgs = {
1188
- field0: StakeOutputStruct0Args;
1312
+ type VouchOutputArgs = {
1313
+ field0: VouchOutputStruct0Args;
1189
1314
  };
1190
- declare function getStakeOutputEncoder(): FixedSizeEncoder<StakeOutputArgs>;
1191
- declare function getStakeOutputDecoder(): FixedSizeDecoder<StakeOutput>;
1192
- declare function getStakeOutputCodec(): FixedSizeCodec<StakeOutputArgs, StakeOutput>;
1315
+ declare function getVouchOutputEncoder(): FixedSizeEncoder<VouchOutputArgs>;
1316
+ declare function getVouchOutputDecoder(): FixedSizeDecoder<VouchOutput>;
1317
+ declare function getVouchOutputCodec(): FixedSizeCodec<VouchOutputArgs, VouchOutput>;
1193
1318
 
1194
1319
  /**
1195
1320
  * This code was AUTOGENERATED using the Codama library.
@@ -1199,7 +1324,7 @@ declare function getStakeOutputCodec(): FixedSizeCodec<StakeOutputArgs, StakeOut
1199
1324
  * @see https://github.com/codama-idl/codama
1200
1325
  */
1201
1326
 
1202
- type StakeOutputStruct0 = {
1327
+ type VouchOutputStruct0 = {
1203
1328
  field0: {
1204
1329
  encryptionKey: Array<number>;
1205
1330
  nonce: bigint;
@@ -1211,7 +1336,7 @@ type StakeOutputStruct0 = {
1211
1336
  ciphertexts: Array<Array<number>>;
1212
1337
  };
1213
1338
  };
1214
- type StakeOutputStruct0Args = {
1339
+ type VouchOutputStruct0Args = {
1215
1340
  field0: {
1216
1341
  encryptionKey: Array<number>;
1217
1342
  nonce: number | bigint;
@@ -1223,9 +1348,9 @@ type StakeOutputStruct0Args = {
1223
1348
  ciphertexts: Array<Array<number>>;
1224
1349
  };
1225
1350
  };
1226
- declare function getStakeOutputStruct0Encoder(): FixedSizeEncoder<StakeOutputStruct0Args>;
1227
- declare function getStakeOutputStruct0Decoder(): FixedSizeDecoder<StakeOutputStruct0>;
1228
- declare function getStakeOutputStruct0Codec(): FixedSizeCodec<StakeOutputStruct0Args, StakeOutputStruct0>;
1351
+ declare function getVouchOutputStruct0Encoder(): FixedSizeEncoder<VouchOutputStruct0Args>;
1352
+ declare function getVouchOutputStruct0Decoder(): FixedSizeDecoder<VouchOutputStruct0>;
1353
+ declare function getVouchOutputStruct0Codec(): FixedSizeCodec<VouchOutputStruct0Args, VouchOutputStruct0>;
1229
1354
 
1230
1355
  /**
1231
1356
  * This code was AUTOGENERATED using the Codama library.
@@ -1235,9 +1360,9 @@ declare function getStakeOutputStruct0Codec(): FixedSizeCodec<StakeOutputStruct0
1235
1360
  * @see https://github.com/codama-idl/codama
1236
1361
  */
1237
1362
 
1238
- type StakeParameters = {
1363
+ type VouchParameters = {
1239
1364
  computationOffset: bigint;
1240
- stakeAccountId: number;
1365
+ vouchAccountId: number;
1241
1366
  amount: bigint;
1242
1367
  selectedOptionCiphertext: Array<number>;
1243
1368
  inputNonce: bigint;
@@ -1245,9 +1370,9 @@ type StakeParameters = {
1245
1370
  userPubkey: Array<number>;
1246
1371
  stateNonce: bigint;
1247
1372
  };
1248
- type StakeParametersArgs = {
1373
+ type VouchParametersArgs = {
1249
1374
  computationOffset: number | bigint;
1250
- stakeAccountId: number;
1375
+ vouchAccountId: number;
1251
1376
  amount: number | bigint;
1252
1377
  selectedOptionCiphertext: Array<number>;
1253
1378
  inputNonce: number | bigint;
@@ -1255,9 +1380,9 @@ type StakeParametersArgs = {
1255
1380
  userPubkey: Array<number>;
1256
1381
  stateNonce: number | bigint;
1257
1382
  };
1258
- declare function getStakeParametersEncoder(): FixedSizeEncoder<StakeParametersArgs>;
1259
- declare function getStakeParametersDecoder(): FixedSizeDecoder<StakeParameters>;
1260
- declare function getStakeParametersCodec(): FixedSizeCodec<StakeParametersArgs, StakeParameters>;
1383
+ declare function getVouchParametersEncoder(): FixedSizeEncoder<VouchParametersArgs>;
1384
+ declare function getVouchParametersDecoder(): FixedSizeDecoder<VouchParameters>;
1385
+ declare function getVouchParametersCodec(): FixedSizeCodec<VouchParametersArgs, VouchParameters>;
1261
1386
 
1262
1387
  /**
1263
1388
  * This code was AUTOGENERATED using the Codama library.
@@ -1267,27 +1392,27 @@ declare function getStakeParametersCodec(): FixedSizeCodec<StakeParametersArgs,
1267
1392
  * @see https://github.com/codama-idl/codama
1268
1393
  */
1269
1394
 
1270
- type StakeRevealedEvent = {
1395
+ type VouchRevealedEvent = {
1271
1396
  user: Address;
1272
1397
  market: Address;
1273
- stakeAccount: Address;
1274
- stakeAccountId: number;
1275
- stakeAmount: bigint;
1398
+ vouchAccount: Address;
1399
+ vouchAccountId: number;
1400
+ vouchAmount: bigint;
1276
1401
  selectedOption: bigint;
1277
1402
  timestamp: bigint;
1278
1403
  };
1279
- type StakeRevealedEventArgs = {
1404
+ type VouchRevealedEventArgs = {
1280
1405
  user: Address;
1281
1406
  market: Address;
1282
- stakeAccount: Address;
1283
- stakeAccountId: number;
1284
- stakeAmount: number | bigint;
1407
+ vouchAccount: Address;
1408
+ vouchAccountId: number;
1409
+ vouchAmount: number | bigint;
1285
1410
  selectedOption: number | bigint;
1286
1411
  timestamp: number | bigint;
1287
1412
  };
1288
- declare function getStakeRevealedEventEncoder(): FixedSizeEncoder<StakeRevealedEventArgs>;
1289
- declare function getStakeRevealedEventDecoder(): FixedSizeDecoder<StakeRevealedEvent>;
1290
- declare function getStakeRevealedEventCodec(): FixedSizeCodec<StakeRevealedEventArgs, StakeRevealedEvent>;
1413
+ declare function getVouchRevealedEventEncoder(): FixedSizeEncoder<VouchRevealedEventArgs>;
1414
+ declare function getVouchRevealedEventDecoder(): FixedSizeDecoder<VouchRevealedEvent>;
1415
+ declare function getVouchRevealedEventCodec(): FixedSizeCodec<VouchRevealedEventArgs, VouchRevealedEvent>;
1291
1416
 
1292
1417
  /**
1293
1418
  * This code was AUTOGENERATED using the Codama library.
@@ -1297,150 +1422,25 @@ declare function getStakeRevealedEventCodec(): FixedSizeCodec<StakeRevealedEvent
1297
1422
  * @see https://github.com/codama-idl/codama
1298
1423
  */
1299
1424
 
1300
- type StuckStakeClosedEvent = {
1425
+ type VouchWithdrawnEvent = {
1301
1426
  owner: Address;
1302
1427
  market: Address;
1303
- stakeAccount: Address;
1304
- stakeAccountId: number;
1305
- refundedAmount: bigint;
1306
- refundedPlatformFee: bigint;
1307
- refundedRewardPoolFee: bigint;
1308
- refundedCreatorFee: bigint;
1309
- timestamp: bigint;
1310
- };
1311
- type StuckStakeClosedEventArgs = {
1312
- owner: Address;
1313
- market: Address;
1314
- stakeAccount: Address;
1315
- stakeAccountId: number;
1316
- refundedAmount: number | bigint;
1317
- refundedPlatformFee: number | bigint;
1318
- refundedRewardPoolFee: number | bigint;
1319
- refundedCreatorFee: number | bigint;
1320
- timestamp: number | bigint;
1321
- };
1322
- declare function getStuckStakeClosedEventEncoder(): FixedSizeEncoder<StuckStakeClosedEventArgs>;
1323
- declare function getStuckStakeClosedEventDecoder(): FixedSizeDecoder<StuckStakeClosedEvent>;
1324
- declare function getStuckStakeClosedEventCodec(): FixedSizeCodec<StuckStakeClosedEventArgs, StuckStakeClosedEvent>;
1325
-
1326
- /**
1327
- * This code was AUTOGENERATED using the Codama library.
1328
- * Please DO NOT EDIT THIS FILE, instead use visitors
1329
- * to add features, then rerun Codama to update it.
1330
- *
1331
- * @see https://github.com/codama-idl/codama
1332
- */
1333
-
1334
- type Timestamp = {
1335
- timestamp: bigint;
1336
- };
1337
- type TimestampArgs = {
1338
- timestamp: number | bigint;
1339
- };
1340
- declare function getTimestampEncoder(): FixedSizeEncoder<TimestampArgs>;
1341
- declare function getTimestampDecoder(): FixedSizeDecoder<Timestamp>;
1342
- declare function getTimestampCodec(): FixedSizeCodec<TimestampArgs, Timestamp>;
1343
-
1344
- /**
1345
- * This code was AUTOGENERATED using the Codama library.
1346
- * Please DO NOT EDIT THIS FILE, instead use visitors
1347
- * to add features, then rerun Codama to update it.
1348
- *
1349
- * @see https://github.com/codama-idl/codama
1350
- */
1351
-
1352
- type UnstakedEvent = {
1353
- owner: Address;
1354
- market: Address;
1355
- stakeAccount: Address;
1356
- stakeAccountId: number;
1428
+ vouchAccount: Address;
1429
+ vouchAccountId: number;
1357
1430
  amount: bigint;
1358
1431
  timestamp: bigint;
1359
1432
  };
1360
- type UnstakedEventArgs = {
1433
+ type VouchWithdrawnEventArgs = {
1361
1434
  owner: Address;
1362
1435
  market: Address;
1363
- stakeAccount: Address;
1364
- stakeAccountId: number;
1436
+ vouchAccount: Address;
1437
+ vouchAccountId: number;
1365
1438
  amount: number | bigint;
1366
1439
  timestamp: number | bigint;
1367
1440
  };
1368
- declare function getUnstakedEventEncoder(): FixedSizeEncoder<UnstakedEventArgs>;
1369
- declare function getUnstakedEventDecoder(): FixedSizeDecoder<UnstakedEvent>;
1370
- declare function getUnstakedEventCodec(): FixedSizeCodec<UnstakedEventArgs, UnstakedEvent>;
1371
-
1372
- /**
1373
- * This code was AUTOGENERATED using the Codama library.
1374
- * Please DO NOT EDIT THIS FILE, instead use visitors
1375
- * to add features, then rerun Codama to update it.
1376
- *
1377
- * @see https://github.com/codama-idl/codama
1378
- */
1379
-
1380
- type UpdateAuthorityChangedEvent = {
1381
- platformConfig: Address;
1382
- oldValue: Address;
1383
- newValue: Address;
1384
- timestamp: bigint;
1385
- };
1386
- type UpdateAuthorityChangedEventArgs = {
1387
- platformConfig: Address;
1388
- oldValue: Address;
1389
- newValue: Address;
1390
- timestamp: number | bigint;
1391
- };
1392
- declare function getUpdateAuthorityChangedEventEncoder(): FixedSizeEncoder<UpdateAuthorityChangedEventArgs>;
1393
- declare function getUpdateAuthorityChangedEventDecoder(): FixedSizeDecoder<UpdateAuthorityChangedEvent>;
1394
- declare function getUpdateAuthorityChangedEventCodec(): FixedSizeCodec<UpdateAuthorityChangedEventArgs, UpdateAuthorityChangedEvent>;
1395
-
1396
- /**
1397
- * This code was AUTOGENERATED using the Codama library.
1398
- * Please DO NOT EDIT THIS FILE, instead use visitors
1399
- * to add features, then rerun Codama to update it.
1400
- *
1401
- * @see https://github.com/codama-idl/codama
1402
- */
1403
-
1404
- type UpdatePlatformParameters = {
1405
- platformFeeBp: Option<number>;
1406
- rewardPoolFeeBp: Option<number>;
1407
- creatorFeeBp: Option<number>;
1408
- revealAuthority: Option<Address>;
1409
- minTimeToStakeSeconds: Option<bigint>;
1410
- revealPeriodSeconds: Option<bigint>;
1411
- marketResolutionDeadlineSeconds: Option<bigint>;
1412
- };
1413
- type UpdatePlatformParametersArgs = {
1414
- platformFeeBp: OptionOrNullable<number>;
1415
- rewardPoolFeeBp: OptionOrNullable<number>;
1416
- creatorFeeBp: OptionOrNullable<number>;
1417
- revealAuthority: OptionOrNullable<Address>;
1418
- minTimeToStakeSeconds: OptionOrNullable<number | bigint>;
1419
- revealPeriodSeconds: OptionOrNullable<number | bigint>;
1420
- marketResolutionDeadlineSeconds: OptionOrNullable<number | bigint>;
1421
- };
1422
- declare function getUpdatePlatformParametersEncoder(): Encoder<UpdatePlatformParametersArgs>;
1423
- declare function getUpdatePlatformParametersDecoder(): Decoder<UpdatePlatformParameters>;
1424
- declare function getUpdatePlatformParametersCodec(): Codec<UpdatePlatformParametersArgs, UpdatePlatformParameters>;
1425
-
1426
- /**
1427
- * This code was AUTOGENERATED using the Codama library.
1428
- * Please DO NOT EDIT THIS FILE, instead use visitors
1429
- * to add features, then rerun Codama to update it.
1430
- *
1431
- * @see https://github.com/codama-idl/codama
1432
- */
1433
-
1434
- type UtilityPubkeys = {
1435
- x25519Pubkey: Array<number>;
1436
- ed25519VerifyingKey: Array<number>;
1437
- elgamalPubkey: Array<number>;
1438
- pubkeyValidityProof: Array<number>;
1439
- };
1440
- type UtilityPubkeysArgs = UtilityPubkeys;
1441
- declare function getUtilityPubkeysEncoder(): FixedSizeEncoder<UtilityPubkeysArgs>;
1442
- declare function getUtilityPubkeysDecoder(): FixedSizeDecoder<UtilityPubkeys>;
1443
- declare function getUtilityPubkeysCodec(): FixedSizeCodec<UtilityPubkeysArgs, UtilityPubkeys>;
1441
+ declare function getVouchWithdrawnEventEncoder(): FixedSizeEncoder<VouchWithdrawnEventArgs>;
1442
+ declare function getVouchWithdrawnEventDecoder(): FixedSizeDecoder<VouchWithdrawnEvent>;
1443
+ declare function getVouchWithdrawnEventCodec(): FixedSizeCodec<VouchWithdrawnEventArgs, VouchWithdrawnEvent>;
1444
1444
 
1445
1445
  /**
1446
1446
  * This code was AUTOGENERATED using the Codama library.
@@ -1489,7 +1489,7 @@ type OpportunityMarket = {
1489
1489
  index: bigint;
1490
1490
  totalOptions: bigint;
1491
1491
  platform: Address;
1492
- stakingWindowEnd: Option<bigint>;
1492
+ vouchingWindowEnd: Option<bigint>;
1493
1493
  resolvedAtTimestamp: Option<bigint>;
1494
1494
  winningOptionAllocation: number;
1495
1495
  winningOptionActiveBp: number;
@@ -1506,7 +1506,7 @@ type OpportunityMarket = {
1506
1506
  marketResolutionDeadlineSeconds: bigint;
1507
1507
  revealPeriodSeconds: bigint;
1508
1508
  revealEnded: boolean;
1509
- minStakeAmount: bigint;
1509
+ minVouchAmount: bigint;
1510
1510
  };
1511
1511
  type OpportunityMarketArgs = {
1512
1512
  bump: number;
@@ -1514,7 +1514,7 @@ type OpportunityMarketArgs = {
1514
1514
  index: number | bigint;
1515
1515
  totalOptions: number | bigint;
1516
1516
  platform: Address;
1517
- stakingWindowEnd: OptionOrNullable<number | bigint>;
1517
+ vouchingWindowEnd: OptionOrNullable<number | bigint>;
1518
1518
  resolvedAtTimestamp: OptionOrNullable<number | bigint>;
1519
1519
  winningOptionAllocation: number;
1520
1520
  winningOptionActiveBp: number;
@@ -1531,7 +1531,7 @@ type OpportunityMarketArgs = {
1531
1531
  marketResolutionDeadlineSeconds: number | bigint;
1532
1532
  revealPeriodSeconds: number | bigint;
1533
1533
  revealEnded: boolean;
1534
- minStakeAmount: number | bigint;
1534
+ minVouchAmount: number | bigint;
1535
1535
  };
1536
1536
  declare function getOpportunityMarketEncoder(): Encoder<OpportunityMarketArgs>;
1537
1537
  declare function getOpportunityMarketDecoder(): Decoder<OpportunityMarket>;
@@ -1559,7 +1559,7 @@ type OpportunityMarketOption = {
1559
1559
  id: bigint;
1560
1560
  creator: Address;
1561
1561
  createdAt: bigint;
1562
- unclaimedStake: bigint;
1562
+ unclaimedGrossVouch: bigint;
1563
1563
  totalScore: bigint;
1564
1564
  /** Non-zero iff this option is a winner; share of pool in basis points (0–10_000). */
1565
1565
  rewardBp: number;
@@ -1571,7 +1571,7 @@ type OpportunityMarketOptionArgs = {
1571
1571
  id: number | bigint;
1572
1572
  creator: Address;
1573
1573
  createdAt: number | bigint;
1574
- unclaimedStake: number | bigint;
1574
+ unclaimedGrossVouch: number | bigint;
1575
1575
  totalScore: number | bigint;
1576
1576
  /** Non-zero iff this option is a winner; share of pool in basis points (0–10_000). */
1577
1577
  rewardBp: number;
@@ -1639,7 +1639,7 @@ type PlatformConfig = {
1639
1639
  feeClaimAuthority: Address;
1640
1640
  feeRates: FeeRates;
1641
1641
  marketResolutionDeadlineSeconds: bigint;
1642
- minTimeToStakeSeconds: bigint;
1642
+ minTimeToVouchSeconds: bigint;
1643
1643
  revealAuthority: Address;
1644
1644
  revealPeriodSeconds: bigint;
1645
1645
  };
@@ -1650,7 +1650,7 @@ type PlatformConfigArgs = {
1650
1650
  feeClaimAuthority: Address;
1651
1651
  feeRates: FeeRatesArgs;
1652
1652
  marketResolutionDeadlineSeconds: number | bigint;
1653
- minTimeToStakeSeconds: number | bigint;
1653
+ minTimeToVouchSeconds: number | bigint;
1654
1654
  revealAuthority: Address;
1655
1655
  revealPeriodSeconds: number | bigint;
1656
1656
  };
@@ -1672,9 +1672,9 @@ declare function fetchAllMaybePlatformConfig(rpc: Parameters<typeof fetchEncoded
1672
1672
  * @see https://github.com/codama-idl/codama
1673
1673
  */
1674
1674
 
1675
- declare const STAKE_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1676
- declare function getStakeAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1677
- type StakeAccount = {
1675
+ declare const VOUCH_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1676
+ declare function getVouchAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1677
+ type VouchAccount = {
1678
1678
  discriminator: ReadonlyUint8Array;
1679
1679
  encryptedOption: Array<number>;
1680
1680
  stateNonce: bigint;
@@ -1684,18 +1684,20 @@ type StakeAccount = {
1684
1684
  userPubkey: Array<number>;
1685
1685
  encryptedOptionDisclosure: Array<number>;
1686
1686
  stateNonceDisclosure: bigint;
1687
- stakedAtTimestamp: Option<bigint>;
1688
- unstakedAtTimestamp: Option<bigint>;
1687
+ vouchedAtTimestamp: Option<bigint>;
1688
+ vouchWithdrawnAtTimestamp: Option<bigint>;
1689
1689
  amount: bigint;
1690
1690
  collectedFees: CollectedFees;
1691
1691
  revealedOption: Option<bigint>;
1692
1692
  score: Option<bigint>;
1693
1693
  rewardsClaimed: boolean;
1694
1694
  id: number;
1695
- pendingStakeComputation: Option<Address>;
1695
+ pendingVouchComputation: Option<Address>;
1696
1696
  pendingRevealComputation: Option<Address>;
1697
+ /** Unix timestamp of the last successful `reveal_vouch` queue; 0 if never queued. */
1698
+ lastRevealVouchAt: bigint;
1697
1699
  };
1698
- type StakeAccountArgs = {
1700
+ type VouchAccountArgs = {
1699
1701
  encryptedOption: Array<number>;
1700
1702
  stateNonce: number | bigint;
1701
1703
  bump: number;
@@ -1704,26 +1706,28 @@ type StakeAccountArgs = {
1704
1706
  userPubkey: Array<number>;
1705
1707
  encryptedOptionDisclosure: Array<number>;
1706
1708
  stateNonceDisclosure: number | bigint;
1707
- stakedAtTimestamp: OptionOrNullable<number | bigint>;
1708
- unstakedAtTimestamp: OptionOrNullable<number | bigint>;
1709
+ vouchedAtTimestamp: OptionOrNullable<number | bigint>;
1710
+ vouchWithdrawnAtTimestamp: OptionOrNullable<number | bigint>;
1709
1711
  amount: number | bigint;
1710
1712
  collectedFees: CollectedFeesArgs;
1711
1713
  revealedOption: OptionOrNullable<number | bigint>;
1712
1714
  score: OptionOrNullable<number | bigint>;
1713
1715
  rewardsClaimed: boolean;
1714
1716
  id: number;
1715
- pendingStakeComputation: OptionOrNullable<Address>;
1717
+ pendingVouchComputation: OptionOrNullable<Address>;
1716
1718
  pendingRevealComputation: OptionOrNullable<Address>;
1717
- };
1718
- declare function getStakeAccountEncoder(): Encoder<StakeAccountArgs>;
1719
- declare function getStakeAccountDecoder(): Decoder<StakeAccount>;
1720
- declare function getStakeAccountCodec(): Codec<StakeAccountArgs, StakeAccount>;
1721
- declare function decodeStakeAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<StakeAccount, TAddress>;
1722
- declare function decodeStakeAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<StakeAccount, TAddress>;
1723
- declare function fetchStakeAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<StakeAccount, TAddress>>;
1724
- declare function fetchMaybeStakeAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<StakeAccount, TAddress>>;
1725
- declare function fetchAllStakeAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<StakeAccount>[]>;
1726
- declare function fetchAllMaybeStakeAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<StakeAccount>[]>;
1719
+ /** Unix timestamp of the last successful `reveal_vouch` queue; 0 if never queued. */
1720
+ lastRevealVouchAt: number | bigint;
1721
+ };
1722
+ declare function getVouchAccountEncoder(): Encoder<VouchAccountArgs>;
1723
+ declare function getVouchAccountDecoder(): Decoder<VouchAccount>;
1724
+ declare function getVouchAccountCodec(): Codec<VouchAccountArgs, VouchAccount>;
1725
+ declare function decodeVouchAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<VouchAccount, TAddress>;
1726
+ declare function decodeVouchAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<VouchAccount, TAddress>;
1727
+ declare function fetchVouchAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<VouchAccount, TAddress>>;
1728
+ declare function fetchMaybeVouchAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<VouchAccount, TAddress>>;
1729
+ declare function fetchAllVouchAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<VouchAccount>[]>;
1730
+ declare function fetchAllMaybeVouchAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<VouchAccount>[]>;
1727
1731
 
1728
1732
  /**
1729
1733
  * This code was AUTOGENERATED using the Codama library.
@@ -1743,41 +1747,41 @@ declare const OPPORTUNITY_MARKET_ERROR__INSUFFICIENT_REWARD_FUNDING = 6002;
1743
1747
  declare const OPPORTUNITY_MARKET_ERROR__INVALID_PARAMETERS = 6003;
1744
1748
  /** InvalidOptionId: Invalid option ID */
1745
1749
  declare const OPPORTUNITY_MARKET_ERROR__INVALID_OPTION_ID = 6004;
1746
- /** NoStake: Stake account has no recorded stake */
1747
- declare const OPPORTUNITY_MARKET_ERROR__NO_STAKE = 6005;
1750
+ /** NoVouch: Vouch account has no recorded vouch */
1751
+ declare const OPPORTUNITY_MARKET_ERROR__NO_VOUCH = 6005;
1748
1752
  /** WinnerAlreadySelected: Market winner already selected */
1749
1753
  declare const OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED = 6006;
1750
- /** AlreadyRevealed: Stake already revealed */
1754
+ /** AlreadyRevealed: Vouch already revealed */
1751
1755
  declare const OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED = 6007;
1752
- /** NotRevealed: Stake not yet revealed */
1756
+ /** NotRevealed: Vouch not yet revealed */
1753
1757
  declare const OPPORTUNITY_MARKET_ERROR__NOT_REVEALED = 6008;
1754
- /** TallyAlreadyIncremented: Tally already incremented for this stake account */
1758
+ /** TallyAlreadyIncremented: Tally already incremented for this vouch account */
1755
1759
  declare const OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED = 6009;
1756
1760
  /** Overflow: Arithmetic overflow */
1757
1761
  declare const OPPORTUNITY_MARKET_ERROR__OVERFLOW = 6010;
1758
1762
  /** InvalidMint: Token mint does not match account mint */
1759
1763
  declare const OPPORTUNITY_MARKET_ERROR__INVALID_MINT = 6011;
1760
- /** AlreadyUnstaked: Already unstaked */
1761
- declare const OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED = 6012;
1762
- /** AlreadyStaked: Already staked for this stake account */
1763
- declare const OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED = 6013;
1764
+ /** AlreadyVouchWithdrawn: Vouch already withdrawn */
1765
+ declare const OPPORTUNITY_MARKET_ERROR__ALREADY_VOUCH_WITHDRAWN = 6012;
1766
+ /** AlreadyVouched: Already vouched for this vouch account */
1767
+ declare const OPPORTUNITY_MARKET_ERROR__ALREADY_VOUCHED = 6013;
1764
1768
  /** Locked: Account is locked */
1765
1769
  declare const OPPORTUNITY_MARKET_ERROR__LOCKED = 6014;
1766
1770
  /** InvalidAccountState: Invalid account state */
1767
1771
  declare const OPPORTUNITY_MARKET_ERROR__INVALID_ACCOUNT_STATE = 6015;
1768
1772
  /** NoFeesToClaim: No fees to claim */
1769
1773
  declare const OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM = 6016;
1770
- /** StakeNotStuck: Stake account is not in a stuck or failed state */
1771
- declare const OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK = 6017;
1772
- /** StakeBelowMinimum: Stake amount is below the market minimum */
1773
- declare const OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM = 6018;
1774
+ /** VouchNotStuck: Vouch account is not in a stuck or failed state */
1775
+ declare const OPPORTUNITY_MARKET_ERROR__VOUCH_NOT_STUCK = 6017;
1776
+ /** VouchBelowMinimum: Vouch amount is below the market minimum */
1777
+ declare const OPPORTUNITY_MARKET_ERROR__VOUCH_BELOW_MINIMUM = 6018;
1774
1778
  /** InvalidFeeRates: Invalid fee rates */
1775
1779
  declare const OPPORTUNITY_MARKET_ERROR__INVALID_FEE_RATES = 6019;
1776
1780
  /** OptionStillNeeded: Option still needed */
1777
1781
  declare const OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED = 6020;
1778
1782
  /** CreatorMismatch: Creator mismatch */
1779
1783
  declare const OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH = 6021;
1780
- /** NoFinalizedWinningOption: No winning option has a finalized stake */
1784
+ /** NoFinalizedWinningOption: No winning option has a finalized vouch */
1781
1785
  declare const OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION = 6022;
1782
1786
  /** NoRewardToClaim: No reward to claim */
1783
1787
  declare const OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM = 6023;
@@ -1785,7 +1789,7 @@ declare const OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM = 6023;
1785
1789
  declare const OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED = 6024;
1786
1790
  /** WrongMarketPhase: Operation is not permitted in the current market phase */
1787
1791
  declare const OPPORTUNITY_MARKET_ERROR__WRONG_MARKET_PHASE = 6025;
1788
- type OpportunityMarketError = 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__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__NO_FEES_TO_CLAIM | typeof OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION | 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__REWARD_ALREADY_CLAIMED | 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__UNAUTHORIZED | typeof OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED | typeof OPPORTUNITY_MARKET_ERROR__WRONG_MARKET_PHASE;
1792
+ type OpportunityMarketError = typeof OPPORTUNITY_MARKET_ERROR__ALREADY_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_VOUCHED | typeof OPPORTUNITY_MARKET_ERROR__ALREADY_VOUCH_WITHDRAWN | typeof OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH | 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__NO_FEES_TO_CLAIM | typeof OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION | typeof OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM | typeof OPPORTUNITY_MARKET_ERROR__NOT_REVEALED | typeof OPPORTUNITY_MARKET_ERROR__NO_VOUCH | typeof OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED | typeof OPPORTUNITY_MARKET_ERROR__OVERFLOW | typeof OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED | typeof OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED | typeof OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED | typeof OPPORTUNITY_MARKET_ERROR__VOUCH_BELOW_MINIMUM | typeof OPPORTUNITY_MARKET_ERROR__VOUCH_NOT_STUCK | typeof OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED | typeof OPPORTUNITY_MARKET_ERROR__WRONG_MARKET_PHASE;
1789
1793
  declare function getOpportunityMarketErrorMessage(code: OpportunityMarketError): string;
1790
1794
  declare function isOpportunityMarketError<TProgramErrorCode extends OpportunityMarketError>(error: unknown, transactionMessage: {
1791
1795
  instructions: Record<number, {
@@ -1805,7 +1809,7 @@ declare function isOpportunityMarketError<TProgramErrorCode extends OpportunityM
1805
1809
  * @see https://github.com/codama-idl/codama
1806
1810
  */
1807
1811
 
1808
- declare const OPPORTUNITY_MARKET_PROGRAM_ADDRESS: Address<"BENCLZWw5m2xTr3Mtb5nzWMLcBJFw6DNDtNAuhjNPgAe">;
1812
+ declare const OPPORTUNITY_MARKET_PROGRAM_ADDRESS: Address<"bncqApu6NkUibDwnbfXR5oRPCLiYjwHgVuCdHRTD6rp">;
1809
1813
  declare enum OpportunityMarketAccount {
1810
1814
  AllowedMint = 0,
1811
1815
  ArciumSignerAccount = 1,
@@ -1813,7 +1817,7 @@ declare enum OpportunityMarketAccount {
1813
1817
  OpportunityMarketOption = 3,
1814
1818
  OpportunityMarketSponsor = 4,
1815
1819
  PlatformConfig = 5,
1816
- StakeAccount = 6
1820
+ VouchAccount = 6
1817
1821
  }
1818
1822
  declare function identifyOpportunityMarketAccount(account: {
1819
1823
  data: ReadonlyUint8Array;
@@ -1825,34 +1829,34 @@ declare enum OpportunityMarketInstruction {
1825
1829
  ClaimFees = 3,
1826
1830
  ClaimRewards = 4,
1827
1831
  CloseOptionAccount = 5,
1828
- CloseStakeAccount = 6,
1829
- CloseStuckStakeAccount = 7,
1830
- CloseUnrevealedStakeAccount = 8,
1832
+ CloseStuckVouchAccount = 6,
1833
+ CloseUnrevealedVouchAccount = 7,
1834
+ CloseVouchAccount = 8,
1831
1835
  CreateMarket = 9,
1832
1836
  EndRevealPeriod = 10,
1833
- FinalizeRevealStake = 11,
1837
+ FinalizeRevealVouch = 11,
1834
1838
  InitAllowedMint = 12,
1835
1839
  InitPlatformConfig = 13,
1836
- InitStakeAccount = 14,
1840
+ InitVouchAccount = 14,
1837
1841
  OpenMarket = 15,
1838
1842
  ResolveMarket = 16,
1839
- RevealStake = 17,
1840
- RevealStakeCallback = 18,
1841
- RevealStakeCompDef = 19,
1843
+ RevealVouch = 17,
1844
+ RevealVouchCallback = 18,
1845
+ RevealVouchCompDef = 19,
1842
1846
  SetFeeClaimAuthority = 20,
1843
1847
  SetUpdateAuthority = 21,
1844
1848
  SetWinningOption = 22,
1845
- Stake = 23,
1846
- StakeCallback = 24,
1847
- StakeCompDef = 25,
1848
- Unstake = 26,
1849
- UpdatePlatformConfig = 27,
1850
- WithdrawReward = 28
1849
+ UpdatePlatformConfig = 23,
1850
+ Vouch = 24,
1851
+ VouchCallback = 25,
1852
+ VouchCompDef = 26,
1853
+ WithdrawReward = 27,
1854
+ WithdrawVouch = 28
1851
1855
  }
1852
1856
  declare function identifyOpportunityMarketInstruction(instruction: {
1853
1857
  data: ReadonlyUint8Array;
1854
1858
  } | ReadonlyUint8Array): OpportunityMarketInstruction;
1855
- type ParsedOpportunityMarketInstruction<TProgram extends string = 'BENCLZWw5m2xTr3Mtb5nzWMLcBJFw6DNDtNAuhjNPgAe'> = ({
1859
+ type ParsedOpportunityMarketInstruction<TProgram extends string = 'bncqApu6NkUibDwnbfXR5oRPCLiYjwHgVuCdHRTD6rp'> = ({
1856
1860
  instructionType: OpportunityMarketInstruction.AddMarketOption;
1857
1861
  } & ParsedAddMarketOptionInstruction<TProgram>) | ({
1858
1862
  instructionType: OpportunityMarketInstruction.AddReward;
@@ -1865,52 +1869,52 @@ type ParsedOpportunityMarketInstruction<TProgram extends string = 'BENCLZWw5m2xT
1865
1869
  } & ParsedClaimRewardsInstruction<TProgram>) | ({
1866
1870
  instructionType: OpportunityMarketInstruction.CloseOptionAccount;
1867
1871
  } & ParsedCloseOptionAccountInstruction<TProgram>) | ({
1868
- instructionType: OpportunityMarketInstruction.CloseStakeAccount;
1869
- } & ParsedCloseStakeAccountInstruction<TProgram>) | ({
1870
- instructionType: OpportunityMarketInstruction.CloseStuckStakeAccount;
1871
- } & ParsedCloseStuckStakeAccountInstruction<TProgram>) | ({
1872
- instructionType: OpportunityMarketInstruction.CloseUnrevealedStakeAccount;
1873
- } & ParsedCloseUnrevealedStakeAccountInstruction<TProgram>) | ({
1872
+ instructionType: OpportunityMarketInstruction.CloseStuckVouchAccount;
1873
+ } & ParsedCloseStuckVouchAccountInstruction<TProgram>) | ({
1874
+ instructionType: OpportunityMarketInstruction.CloseUnrevealedVouchAccount;
1875
+ } & ParsedCloseUnrevealedVouchAccountInstruction<TProgram>) | ({
1876
+ instructionType: OpportunityMarketInstruction.CloseVouchAccount;
1877
+ } & ParsedCloseVouchAccountInstruction<TProgram>) | ({
1874
1878
  instructionType: OpportunityMarketInstruction.CreateMarket;
1875
1879
  } & ParsedCreateMarketInstruction<TProgram>) | ({
1876
1880
  instructionType: OpportunityMarketInstruction.EndRevealPeriod;
1877
1881
  } & ParsedEndRevealPeriodInstruction<TProgram>) | ({
1878
- instructionType: OpportunityMarketInstruction.FinalizeRevealStake;
1879
- } & ParsedFinalizeRevealStakeInstruction<TProgram>) | ({
1882
+ instructionType: OpportunityMarketInstruction.FinalizeRevealVouch;
1883
+ } & ParsedFinalizeRevealVouchInstruction<TProgram>) | ({
1880
1884
  instructionType: OpportunityMarketInstruction.InitAllowedMint;
1881
1885
  } & ParsedInitAllowedMintInstruction<TProgram>) | ({
1882
1886
  instructionType: OpportunityMarketInstruction.InitPlatformConfig;
1883
1887
  } & ParsedInitPlatformConfigInstruction<TProgram>) | ({
1884
- instructionType: OpportunityMarketInstruction.InitStakeAccount;
1885
- } & ParsedInitStakeAccountInstruction<TProgram>) | ({
1888
+ instructionType: OpportunityMarketInstruction.InitVouchAccount;
1889
+ } & ParsedInitVouchAccountInstruction<TProgram>) | ({
1886
1890
  instructionType: OpportunityMarketInstruction.OpenMarket;
1887
1891
  } & ParsedOpenMarketInstruction<TProgram>) | ({
1888
1892
  instructionType: OpportunityMarketInstruction.ResolveMarket;
1889
1893
  } & ParsedResolveMarketInstruction<TProgram>) | ({
1890
- instructionType: OpportunityMarketInstruction.RevealStake;
1891
- } & ParsedRevealStakeInstruction<TProgram>) | ({
1892
- instructionType: OpportunityMarketInstruction.RevealStakeCallback;
1893
- } & ParsedRevealStakeCallbackInstruction<TProgram>) | ({
1894
- instructionType: OpportunityMarketInstruction.RevealStakeCompDef;
1895
- } & ParsedRevealStakeCompDefInstruction<TProgram>) | ({
1894
+ instructionType: OpportunityMarketInstruction.RevealVouch;
1895
+ } & ParsedRevealVouchInstruction<TProgram>) | ({
1896
+ instructionType: OpportunityMarketInstruction.RevealVouchCallback;
1897
+ } & ParsedRevealVouchCallbackInstruction<TProgram>) | ({
1898
+ instructionType: OpportunityMarketInstruction.RevealVouchCompDef;
1899
+ } & ParsedRevealVouchCompDefInstruction<TProgram>) | ({
1896
1900
  instructionType: OpportunityMarketInstruction.SetFeeClaimAuthority;
1897
1901
  } & ParsedSetFeeClaimAuthorityInstruction<TProgram>) | ({
1898
1902
  instructionType: OpportunityMarketInstruction.SetUpdateAuthority;
1899
1903
  } & ParsedSetUpdateAuthorityInstruction<TProgram>) | ({
1900
1904
  instructionType: OpportunityMarketInstruction.SetWinningOption;
1901
1905
  } & ParsedSetWinningOptionInstruction<TProgram>) | ({
1902
- instructionType: OpportunityMarketInstruction.Stake;
1903
- } & ParsedStakeInstruction<TProgram>) | ({
1904
- instructionType: OpportunityMarketInstruction.StakeCallback;
1905
- } & ParsedStakeCallbackInstruction<TProgram>) | ({
1906
- instructionType: OpportunityMarketInstruction.StakeCompDef;
1907
- } & ParsedStakeCompDefInstruction<TProgram>) | ({
1908
- instructionType: OpportunityMarketInstruction.Unstake;
1909
- } & ParsedUnstakeInstruction<TProgram>) | ({
1910
1906
  instructionType: OpportunityMarketInstruction.UpdatePlatformConfig;
1911
1907
  } & ParsedUpdatePlatformConfigInstruction<TProgram>) | ({
1908
+ instructionType: OpportunityMarketInstruction.Vouch;
1909
+ } & ParsedVouchInstruction<TProgram>) | ({
1910
+ instructionType: OpportunityMarketInstruction.VouchCallback;
1911
+ } & ParsedVouchCallbackInstruction<TProgram>) | ({
1912
+ instructionType: OpportunityMarketInstruction.VouchCompDef;
1913
+ } & ParsedVouchCompDefInstruction<TProgram>) | ({
1912
1914
  instructionType: OpportunityMarketInstruction.WithdrawReward;
1913
- } & ParsedWithdrawRewardInstruction<TProgram>);
1915
+ } & ParsedWithdrawRewardInstruction<TProgram>) | ({
1916
+ instructionType: OpportunityMarketInstruction.WithdrawVouch;
1917
+ } & ParsedWithdrawVouchInstruction<TProgram>);
1914
1918
 
1915
1919
  /**
1916
1920
  * This code was AUTOGENERATED using the Codama library.
@@ -2187,10 +2191,10 @@ declare function parseClaimFeesInstruction<TProgram extends string, TAccountMeta
2187
2191
 
2188
2192
  declare const CLAIM_REWARDS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2189
2193
  declare function getClaimRewardsDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2190
- type ClaimRewardsInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountOption extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountOwnerTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2194
+ type ClaimRewardsInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountVouchAccount extends string | AccountMeta<string> = string, TAccountOption extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountOwnerTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2191
2195
  TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
2192
2196
  TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
2193
- TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
2197
+ TAccountVouchAccount extends string ? WritableAccount<TAccountVouchAccount> : TAccountVouchAccount,
2194
2198
  TAccountOption extends string ? WritableAccount<TAccountOption> : TAccountOption,
2195
2199
  TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
2196
2200
  TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
@@ -2205,38 +2209,38 @@ type ClaimRewardsInstructionDataArgs = {};
2205
2209
  declare function getClaimRewardsInstructionDataEncoder(): FixedSizeEncoder<ClaimRewardsInstructionDataArgs>;
2206
2210
  declare function getClaimRewardsInstructionDataDecoder(): FixedSizeDecoder<ClaimRewardsInstructionData>;
2207
2211
  declare function getClaimRewardsInstructionDataCodec(): FixedSizeCodec<ClaimRewardsInstructionDataArgs, ClaimRewardsInstructionData>;
2208
- type ClaimRewardsAsyncInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountOption extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
2212
+ type ClaimRewardsAsyncInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountVouchAccount extends string = string, TAccountOption extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
2209
2213
  owner: TransactionSigner<TAccountOwner>;
2210
2214
  market: Address<TAccountMarket>;
2211
- stakeAccount: Address<TAccountStakeAccount>;
2215
+ vouchAccount: Address<TAccountVouchAccount>;
2212
2216
  option: Address<TAccountOption>;
2213
2217
  tokenMint: Address<TAccountTokenMint>;
2214
2218
  marketTokenAta?: Address<TAccountMarketTokenAta>;
2215
2219
  ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
2216
2220
  tokenProgram: Address<TAccountTokenProgram>;
2217
2221
  };
2218
- declare function getClaimRewardsInstructionAsync<TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimRewardsAsyncInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram>, config?: {
2222
+ declare function getClaimRewardsInstructionAsync<TAccountOwner extends string, TAccountMarket extends string, TAccountVouchAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimRewardsAsyncInput<TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram>, config?: {
2219
2223
  programAddress?: TProgramAddress;
2220
- }): Promise<ClaimRewardsInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram>>;
2221
- type ClaimRewardsInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountOption extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
2224
+ }): Promise<ClaimRewardsInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram>>;
2225
+ type ClaimRewardsInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountVouchAccount extends string = string, TAccountOption extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string> = {
2222
2226
  owner: TransactionSigner<TAccountOwner>;
2223
2227
  market: Address<TAccountMarket>;
2224
- stakeAccount: Address<TAccountStakeAccount>;
2228
+ vouchAccount: Address<TAccountVouchAccount>;
2225
2229
  option: Address<TAccountOption>;
2226
2230
  tokenMint: Address<TAccountTokenMint>;
2227
2231
  marketTokenAta: Address<TAccountMarketTokenAta>;
2228
2232
  ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
2229
2233
  tokenProgram: Address<TAccountTokenProgram>;
2230
2234
  };
2231
- declare function getClaimRewardsInstruction<TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimRewardsInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram>, config?: {
2235
+ declare function getClaimRewardsInstruction<TAccountOwner extends string, TAccountMarket extends string, TAccountVouchAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: ClaimRewardsInput<TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram>, config?: {
2232
2236
  programAddress?: TProgramAddress;
2233
- }): ClaimRewardsInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram>;
2237
+ }): ClaimRewardsInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram>;
2234
2238
  type ParsedClaimRewardsInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2235
2239
  programAddress: Address<TProgram>;
2236
2240
  accounts: {
2237
2241
  owner: TAccountMetas[0];
2238
2242
  market: TAccountMetas[1];
2239
- stakeAccount: TAccountMetas[2];
2243
+ vouchAccount: TAccountMetas[2];
2240
2244
  option: TAccountMetas[3];
2241
2245
  tokenMint: TAccountMetas[4];
2242
2246
  marketTokenAta: TAccountMetas[5];
@@ -2318,71 +2322,75 @@ declare function parseCloseOptionAccountInstruction<TProgram extends string, TAc
2318
2322
  * @see https://github.com/codama-idl/codama
2319
2323
  */
2320
2324
 
2321
- declare const CLOSE_STAKE_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2322
- declare function getCloseStakeAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2323
- type CloseStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountStakeAccount extends string | AccountMeta<string> = string, TAccountOption extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountOwnerTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2324
- TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
2325
- TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
2326
- TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
2327
- TAccountOption extends string ? WritableAccount<TAccountOption> : TAccountOption,
2325
+ declare const CLOSE_STUCK_VOUCH_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2326
+ declare function getCloseStuckVouchAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2327
+ type CloseStuckVouchAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountVouchAccount 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<[
2328
+ TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
2329
+ TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
2330
+ TAccountVouchAccount extends string ? WritableAccount<TAccountVouchAccount> : TAccountVouchAccount,
2328
2331
  TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
2332
+ TAccountSignerTokenAccount extends string ? WritableAccount<TAccountSignerTokenAccount> : TAccountSignerTokenAccount,
2329
2333
  TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
2330
- TAccountOwnerTokenAccount extends string ? WritableAccount<TAccountOwnerTokenAccount> : TAccountOwnerTokenAccount,
2331
2334
  TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
2332
2335
  TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
2333
2336
  ...TRemainingAccounts
2334
2337
  ]>;
2335
- type CloseStakeAccountInstructionData = {
2338
+ type CloseStuckVouchAccountInstructionData = {
2336
2339
  discriminator: ReadonlyUint8Array;
2340
+ vouchAccountId: number;
2337
2341
  };
2338
- type CloseStakeAccountInstructionDataArgs = {};
2339
- declare function getCloseStakeAccountInstructionDataEncoder(): FixedSizeEncoder<CloseStakeAccountInstructionDataArgs>;
2340
- declare function getCloseStakeAccountInstructionDataDecoder(): FixedSizeDecoder<CloseStakeAccountInstructionData>;
2341
- declare function getCloseStakeAccountInstructionDataCodec(): FixedSizeCodec<CloseStakeAccountInstructionDataArgs, CloseStakeAccountInstructionData>;
2342
- type CloseStakeAccountAsyncInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountOption extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
2343
- owner: TransactionSigner<TAccountOwner>;
2342
+ type CloseStuckVouchAccountInstructionDataArgs = {
2343
+ vouchAccountId: number;
2344
+ };
2345
+ declare function getCloseStuckVouchAccountInstructionDataEncoder(): FixedSizeEncoder<CloseStuckVouchAccountInstructionDataArgs>;
2346
+ declare function getCloseStuckVouchAccountInstructionDataDecoder(): FixedSizeDecoder<CloseStuckVouchAccountInstructionData>;
2347
+ declare function getCloseStuckVouchAccountInstructionDataCodec(): FixedSizeCodec<CloseStuckVouchAccountInstructionDataArgs, CloseStuckVouchAccountInstructionData>;
2348
+ type CloseStuckVouchAccountAsyncInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountVouchAccount extends string = string, TAccountTokenMint extends string = string, TAccountSignerTokenAccount extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
2349
+ signer: TransactionSigner<TAccountSigner>;
2344
2350
  market: Address<TAccountMarket>;
2345
- stakeAccount: Address<TAccountStakeAccount>;
2346
- option: Address<TAccountOption>;
2351
+ vouchAccount?: Address<TAccountVouchAccount>;
2347
2352
  tokenMint: Address<TAccountTokenMint>;
2353
+ /** Signer's token account to receive refund */
2354
+ signerTokenAccount: Address<TAccountSignerTokenAccount>;
2348
2355
  marketTokenAta?: Address<TAccountMarketTokenAta>;
2349
- ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
2350
2356
  tokenProgram: Address<TAccountTokenProgram>;
2351
2357
  systemProgram?: Address<TAccountSystemProgram>;
2358
+ vouchAccountId: CloseStuckVouchAccountInstructionDataArgs['vouchAccountId'];
2352
2359
  };
2353
- declare function getCloseStakeAccountInstructionAsync<TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseStakeAccountAsyncInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
2360
+ declare function getCloseStuckVouchAccountInstructionAsync<TAccountSigner extends string, TAccountMarket extends string, TAccountVouchAccount 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: CloseStuckVouchAccountAsyncInput<TAccountSigner, TAccountMarket, TAccountVouchAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
2354
2361
  programAddress?: TProgramAddress;
2355
- }): Promise<CloseStakeAccountInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>>;
2356
- type CloseStakeAccountInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountOption extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
2357
- owner: TransactionSigner<TAccountOwner>;
2362
+ }): Promise<CloseStuckVouchAccountInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountVouchAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>>;
2363
+ type CloseStuckVouchAccountInput<TAccountSigner extends string = string, TAccountMarket extends string = string, TAccountVouchAccount extends string = string, TAccountTokenMint extends string = string, TAccountSignerTokenAccount extends string = string, TAccountMarketTokenAta extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
2364
+ signer: TransactionSigner<TAccountSigner>;
2358
2365
  market: Address<TAccountMarket>;
2359
- stakeAccount: Address<TAccountStakeAccount>;
2360
- option: Address<TAccountOption>;
2366
+ vouchAccount: Address<TAccountVouchAccount>;
2361
2367
  tokenMint: Address<TAccountTokenMint>;
2368
+ /** Signer's token account to receive refund */
2369
+ signerTokenAccount: Address<TAccountSignerTokenAccount>;
2362
2370
  marketTokenAta: Address<TAccountMarketTokenAta>;
2363
- ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
2364
2371
  tokenProgram: Address<TAccountTokenProgram>;
2365
2372
  systemProgram?: Address<TAccountSystemProgram>;
2373
+ vouchAccountId: CloseStuckVouchAccountInstructionDataArgs['vouchAccountId'];
2366
2374
  };
2367
- declare function getCloseStakeAccountInstruction<TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseStakeAccountInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
2375
+ declare function getCloseStuckVouchAccountInstruction<TAccountSigner extends string, TAccountMarket extends string, TAccountVouchAccount 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: CloseStuckVouchAccountInput<TAccountSigner, TAccountMarket, TAccountVouchAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>, config?: {
2368
2376
  programAddress?: TProgramAddress;
2369
- }): CloseStakeAccountInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>;
2370
- type ParsedCloseStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2377
+ }): CloseStuckVouchAccountInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountVouchAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>;
2378
+ type ParsedCloseStuckVouchAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2371
2379
  programAddress: Address<TProgram>;
2372
2380
  accounts: {
2373
- owner: TAccountMetas[0];
2381
+ signer: TAccountMetas[0];
2374
2382
  market: TAccountMetas[1];
2375
- stakeAccount: TAccountMetas[2];
2376
- option: TAccountMetas[3];
2377
- tokenMint: TAccountMetas[4];
2383
+ vouchAccount: TAccountMetas[2];
2384
+ tokenMint: TAccountMetas[3];
2385
+ /** Signer's token account to receive refund */
2386
+ signerTokenAccount: TAccountMetas[4];
2378
2387
  marketTokenAta: TAccountMetas[5];
2379
- ownerTokenAccount: TAccountMetas[6];
2380
- tokenProgram: TAccountMetas[7];
2381
- systemProgram: TAccountMetas[8];
2388
+ tokenProgram: TAccountMetas[6];
2389
+ systemProgram: TAccountMetas[7];
2382
2390
  };
2383
- data: CloseStakeAccountInstructionData;
2391
+ data: CloseStuckVouchAccountInstructionData;
2384
2392
  };
2385
- declare function parseCloseStakeAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseStakeAccountInstruction<TProgram, TAccountMetas>;
2393
+ declare function parseCloseStuckVouchAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseStuckVouchAccountInstruction<TProgram, TAccountMetas>;
2386
2394
 
2387
2395
  /**
2388
2396
  * This code was AUTOGENERATED using the Codama library.
@@ -2392,75 +2400,67 @@ declare function parseCloseStakeAccountInstruction<TProgram extends string, TAcc
2392
2400
  * @see https://github.com/codama-idl/codama
2393
2401
  */
2394
2402
 
2395
- declare const CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2396
- declare function getCloseStuckStakeAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2397
- 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<[
2398
- TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
2399
- TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
2400
- TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
2403
+ declare const CLOSE_UNREVEALED_VOUCH_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2404
+ declare function getCloseUnrevealedVouchAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2405
+ type CloseUnrevealedVouchAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountVouchAccount 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<[
2406
+ TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
2407
+ TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
2408
+ TAccountVouchAccount extends string ? WritableAccount<TAccountVouchAccount> : TAccountVouchAccount,
2401
2409
  TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
2402
- TAccountSignerTokenAccount extends string ? WritableAccount<TAccountSignerTokenAccount> : TAccountSignerTokenAccount,
2403
2410
  TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
2411
+ TAccountOwnerTokenAccount extends string ? WritableAccount<TAccountOwnerTokenAccount> : TAccountOwnerTokenAccount,
2404
2412
  TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
2405
2413
  TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
2406
2414
  ...TRemainingAccounts
2407
2415
  ]>;
2408
- type CloseStuckStakeAccountInstructionData = {
2416
+ type CloseUnrevealedVouchAccountInstructionData = {
2409
2417
  discriminator: ReadonlyUint8Array;
2410
- stakeAccountId: number;
2411
2418
  };
2412
- type CloseStuckStakeAccountInstructionDataArgs = {
2413
- stakeAccountId: number;
2414
- };
2415
- declare function getCloseStuckStakeAccountInstructionDataEncoder(): FixedSizeEncoder<CloseStuckStakeAccountInstructionDataArgs>;
2416
- declare function getCloseStuckStakeAccountInstructionDataDecoder(): FixedSizeDecoder<CloseStuckStakeAccountInstructionData>;
2417
- declare function getCloseStuckStakeAccountInstructionDataCodec(): FixedSizeCodec<CloseStuckStakeAccountInstructionDataArgs, CloseStuckStakeAccountInstructionData>;
2418
- 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> = {
2419
- signer: TransactionSigner<TAccountSigner>;
2419
+ type CloseUnrevealedVouchAccountInstructionDataArgs = {};
2420
+ declare function getCloseUnrevealedVouchAccountInstructionDataEncoder(): FixedSizeEncoder<CloseUnrevealedVouchAccountInstructionDataArgs>;
2421
+ declare function getCloseUnrevealedVouchAccountInstructionDataDecoder(): FixedSizeDecoder<CloseUnrevealedVouchAccountInstructionData>;
2422
+ declare function getCloseUnrevealedVouchAccountInstructionDataCodec(): FixedSizeCodec<CloseUnrevealedVouchAccountInstructionDataArgs, CloseUnrevealedVouchAccountInstructionData>;
2423
+ type CloseUnrevealedVouchAccountAsyncInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountVouchAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
2424
+ owner: TransactionSigner<TAccountOwner>;
2420
2425
  market: Address<TAccountMarket>;
2421
- stakeAccount?: Address<TAccountStakeAccount>;
2426
+ vouchAccount: Address<TAccountVouchAccount>;
2422
2427
  tokenMint: Address<TAccountTokenMint>;
2423
- /** Signer's token account to receive refund */
2424
- signerTokenAccount: Address<TAccountSignerTokenAccount>;
2425
2428
  marketTokenAta?: Address<TAccountMarketTokenAta>;
2429
+ ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
2426
2430
  tokenProgram: Address<TAccountTokenProgram>;
2427
2431
  systemProgram?: Address<TAccountSystemProgram>;
2428
- stakeAccountId: CloseStuckStakeAccountInstructionDataArgs['stakeAccountId'];
2429
2432
  };
2430
- 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?: {
2433
+ declare function getCloseUnrevealedVouchAccountInstructionAsync<TAccountOwner extends string, TAccountMarket extends string, TAccountVouchAccount 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: CloseUnrevealedVouchAccountAsyncInput<TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
2431
2434
  programAddress?: TProgramAddress;
2432
- }): Promise<CloseStuckStakeAccountInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>>;
2433
- 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> = {
2434
- signer: TransactionSigner<TAccountSigner>;
2435
+ }): Promise<CloseUnrevealedVouchAccountInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>>;
2436
+ type CloseUnrevealedVouchAccountInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountVouchAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
2437
+ owner: TransactionSigner<TAccountOwner>;
2435
2438
  market: Address<TAccountMarket>;
2436
- stakeAccount: Address<TAccountStakeAccount>;
2439
+ vouchAccount: Address<TAccountVouchAccount>;
2437
2440
  tokenMint: Address<TAccountTokenMint>;
2438
- /** Signer's token account to receive refund */
2439
- signerTokenAccount: Address<TAccountSignerTokenAccount>;
2440
2441
  marketTokenAta: Address<TAccountMarketTokenAta>;
2442
+ ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
2441
2443
  tokenProgram: Address<TAccountTokenProgram>;
2442
2444
  systemProgram?: Address<TAccountSystemProgram>;
2443
- stakeAccountId: CloseStuckStakeAccountInstructionDataArgs['stakeAccountId'];
2444
2445
  };
2445
- 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?: {
2446
+ declare function getCloseUnrevealedVouchAccountInstruction<TAccountOwner extends string, TAccountMarket extends string, TAccountVouchAccount 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: CloseUnrevealedVouchAccountInput<TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
2446
2447
  programAddress?: TProgramAddress;
2447
- }): CloseStuckStakeAccountInstruction<TProgramAddress, TAccountSigner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSystemProgram>;
2448
- type ParsedCloseStuckStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2448
+ }): CloseUnrevealedVouchAccountInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>;
2449
+ type ParsedCloseUnrevealedVouchAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2449
2450
  programAddress: Address<TProgram>;
2450
2451
  accounts: {
2451
- signer: TAccountMetas[0];
2452
+ owner: TAccountMetas[0];
2452
2453
  market: TAccountMetas[1];
2453
- stakeAccount: TAccountMetas[2];
2454
+ vouchAccount: TAccountMetas[2];
2454
2455
  tokenMint: TAccountMetas[3];
2455
- /** Signer's token account to receive refund */
2456
- signerTokenAccount: TAccountMetas[4];
2457
- marketTokenAta: TAccountMetas[5];
2456
+ marketTokenAta: TAccountMetas[4];
2457
+ ownerTokenAccount: TAccountMetas[5];
2458
2458
  tokenProgram: TAccountMetas[6];
2459
2459
  systemProgram: TAccountMetas[7];
2460
2460
  };
2461
- data: CloseStuckStakeAccountInstructionData;
2461
+ data: CloseUnrevealedVouchAccountInstructionData;
2462
2462
  };
2463
- declare function parseCloseStuckStakeAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseStuckStakeAccountInstruction<TProgram, TAccountMetas>;
2463
+ declare function parseCloseUnrevealedVouchAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseUnrevealedVouchAccountInstruction<TProgram, TAccountMetas>;
2464
2464
 
2465
2465
  /**
2466
2466
  * This code was AUTOGENERATED using the Codama library.
@@ -2470,12 +2470,13 @@ declare function parseCloseStuckStakeAccountInstruction<TProgram extends string,
2470
2470
  * @see https://github.com/codama-idl/codama
2471
2471
  */
2472
2472
 
2473
- declare const CLOSE_UNREVEALED_STAKE_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2474
- declare function getCloseUnrevealedStakeAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2475
- type CloseUnrevealedStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, 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<[
2473
+ declare const CLOSE_VOUCH_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2474
+ declare function getCloseVouchAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2475
+ type CloseVouchAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountVouchAccount extends string | AccountMeta<string> = string, TAccountOption extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountMarketTokenAta extends string | AccountMeta<string> = string, TAccountOwnerTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2476
2476
  TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
2477
2477
  TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
2478
- TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
2478
+ TAccountVouchAccount extends string ? WritableAccount<TAccountVouchAccount> : TAccountVouchAccount,
2479
+ TAccountOption extends string ? WritableAccount<TAccountOption> : TAccountOption,
2479
2480
  TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
2480
2481
  TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
2481
2482
  TAccountOwnerTokenAccount extends string ? WritableAccount<TAccountOwnerTokenAccount> : TAccountOwnerTokenAccount,
@@ -2483,54 +2484,57 @@ type CloseUnrevealedStakeAccountInstruction<TProgram extends string = typeof OPP
2483
2484
  TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
2484
2485
  ...TRemainingAccounts
2485
2486
  ]>;
2486
- type CloseUnrevealedStakeAccountInstructionData = {
2487
+ type CloseVouchAccountInstructionData = {
2487
2488
  discriminator: ReadonlyUint8Array;
2488
2489
  };
2489
- type CloseUnrevealedStakeAccountInstructionDataArgs = {};
2490
- declare function getCloseUnrevealedStakeAccountInstructionDataEncoder(): FixedSizeEncoder<CloseUnrevealedStakeAccountInstructionDataArgs>;
2491
- declare function getCloseUnrevealedStakeAccountInstructionDataDecoder(): FixedSizeDecoder<CloseUnrevealedStakeAccountInstructionData>;
2492
- declare function getCloseUnrevealedStakeAccountInstructionDataCodec(): FixedSizeCodec<CloseUnrevealedStakeAccountInstructionDataArgs, CloseUnrevealedStakeAccountInstructionData>;
2493
- type CloseUnrevealedStakeAccountAsyncInput<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> = {
2490
+ type CloseVouchAccountInstructionDataArgs = {};
2491
+ declare function getCloseVouchAccountInstructionDataEncoder(): FixedSizeEncoder<CloseVouchAccountInstructionDataArgs>;
2492
+ declare function getCloseVouchAccountInstructionDataDecoder(): FixedSizeDecoder<CloseVouchAccountInstructionData>;
2493
+ declare function getCloseVouchAccountInstructionDataCodec(): FixedSizeCodec<CloseVouchAccountInstructionDataArgs, CloseVouchAccountInstructionData>;
2494
+ type CloseVouchAccountAsyncInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountVouchAccount extends string = string, TAccountOption extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
2494
2495
  owner: TransactionSigner<TAccountOwner>;
2495
2496
  market: Address<TAccountMarket>;
2496
- stakeAccount: Address<TAccountStakeAccount>;
2497
+ vouchAccount: Address<TAccountVouchAccount>;
2498
+ option: Address<TAccountOption>;
2497
2499
  tokenMint: Address<TAccountTokenMint>;
2498
2500
  marketTokenAta?: Address<TAccountMarketTokenAta>;
2499
2501
  ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
2500
2502
  tokenProgram: Address<TAccountTokenProgram>;
2501
2503
  systemProgram?: Address<TAccountSystemProgram>;
2502
2504
  };
2503
- declare function getCloseUnrevealedStakeAccountInstructionAsync<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: CloseUnrevealedStakeAccountAsyncInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
2505
+ declare function getCloseVouchAccountInstructionAsync<TAccountOwner extends string, TAccountMarket extends string, TAccountVouchAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseVouchAccountAsyncInput<TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
2504
2506
  programAddress?: TProgramAddress;
2505
- }): Promise<CloseUnrevealedStakeAccountInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>>;
2506
- type CloseUnrevealedStakeAccountInput<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> = {
2507
+ }): Promise<CloseVouchAccountInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>>;
2508
+ type CloseVouchAccountInput<TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountVouchAccount extends string = string, TAccountOption extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
2507
2509
  owner: TransactionSigner<TAccountOwner>;
2508
2510
  market: Address<TAccountMarket>;
2509
- stakeAccount: Address<TAccountStakeAccount>;
2511
+ vouchAccount: Address<TAccountVouchAccount>;
2512
+ option: Address<TAccountOption>;
2510
2513
  tokenMint: Address<TAccountTokenMint>;
2511
2514
  marketTokenAta: Address<TAccountMarketTokenAta>;
2512
2515
  ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
2513
2516
  tokenProgram: Address<TAccountTokenProgram>;
2514
2517
  systemProgram?: Address<TAccountSystemProgram>;
2515
2518
  };
2516
- declare function getCloseUnrevealedStakeAccountInstruction<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: CloseUnrevealedStakeAccountInput<TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
2519
+ declare function getCloseVouchAccountInstruction<TAccountOwner extends string, TAccountMarket extends string, TAccountVouchAccount extends string, TAccountOption extends string, TAccountTokenMint extends string, TAccountMarketTokenAta extends string, TAccountOwnerTokenAccount extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: CloseVouchAccountInput<TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
2517
2520
  programAddress?: TProgramAddress;
2518
- }): CloseUnrevealedStakeAccountInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>;
2519
- type ParsedCloseUnrevealedStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2521
+ }): CloseVouchAccountInstruction<TProgramAddress, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountOption, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>;
2522
+ type ParsedCloseVouchAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2520
2523
  programAddress: Address<TProgram>;
2521
2524
  accounts: {
2522
2525
  owner: TAccountMetas[0];
2523
2526
  market: TAccountMetas[1];
2524
- stakeAccount: TAccountMetas[2];
2525
- tokenMint: TAccountMetas[3];
2526
- marketTokenAta: TAccountMetas[4];
2527
- ownerTokenAccount: TAccountMetas[5];
2528
- tokenProgram: TAccountMetas[6];
2529
- systemProgram: TAccountMetas[7];
2527
+ vouchAccount: TAccountMetas[2];
2528
+ option: TAccountMetas[3];
2529
+ tokenMint: TAccountMetas[4];
2530
+ marketTokenAta: TAccountMetas[5];
2531
+ ownerTokenAccount: TAccountMetas[6];
2532
+ tokenProgram: TAccountMetas[7];
2533
+ systemProgram: TAccountMetas[8];
2530
2534
  };
2531
- data: CloseUnrevealedStakeAccountInstructionData;
2535
+ data: CloseVouchAccountInstructionData;
2532
2536
  };
2533
- declare function parseCloseUnrevealedStakeAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseUnrevealedStakeAccountInstruction<TProgram, TAccountMetas>;
2537
+ declare function parseCloseVouchAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseVouchAccountInstruction<TProgram, TAccountMetas>;
2534
2538
 
2535
2539
  /**
2536
2540
  * This code was AUTOGENERATED using the Codama library.
@@ -2569,7 +2573,7 @@ type CreateMarketAsyncInput<TAccountCreator extends string = string, TAccountPla
2569
2573
  platformConfig: Address<TAccountPlatformConfig>;
2570
2574
  tokenMint: Address<TAccountTokenMint>;
2571
2575
  market: Address<TAccountMarket>;
2572
- /** This ATA holds all of the market's program-held tokens (stakes, rewards, fees). */
2576
+ /** This ATA holds all of the market's program-held tokens (vouches, rewards, fees). */
2573
2577
  marketTokenAta?: Address<TAccountMarketTokenAta>;
2574
2578
  allowedMint?: Address<TAccountAllowedMint>;
2575
2579
  tokenProgram: Address<TAccountTokenProgram>;
@@ -2585,7 +2589,7 @@ type CreateMarketInput<TAccountCreator extends string = string, TAccountPlatform
2585
2589
  platformConfig: Address<TAccountPlatformConfig>;
2586
2590
  tokenMint: Address<TAccountTokenMint>;
2587
2591
  market: Address<TAccountMarket>;
2588
- /** This ATA holds all of the market's program-held tokens (stakes, rewards, fees). */
2592
+ /** This ATA holds all of the market's program-held tokens (vouches, rewards, fees). */
2589
2593
  marketTokenAta: Address<TAccountMarketTokenAta>;
2590
2594
  allowedMint: Address<TAccountAllowedMint>;
2591
2595
  tokenProgram: Address<TAccountTokenProgram>;
@@ -2603,7 +2607,7 @@ type ParsedCreateMarketInstruction<TProgram extends string = typeof OPPORTUNITY_
2603
2607
  platformConfig: TAccountMetas[1];
2604
2608
  tokenMint: TAccountMetas[2];
2605
2609
  market: TAccountMetas[3];
2606
- /** This ATA holds all of the market's program-held tokens (stakes, rewards, fees). */
2610
+ /** This ATA holds all of the market's program-held tokens (vouches, rewards, fees). */
2607
2611
  marketTokenAta: TAccountMetas[4];
2608
2612
  allowedMint: TAccountMetas[5];
2609
2613
  tokenProgram: TAccountMetas[6];
@@ -2664,68 +2668,68 @@ declare function parseEndRevealPeriodInstruction<TProgram extends string, TAccou
2664
2668
  * @see https://github.com/codama-idl/codama
2665
2669
  */
2666
2670
 
2667
- declare const FINALIZE_REVEAL_STAKE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2668
- declare function getFinalizeRevealStakeDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2669
- 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<[
2671
+ declare const FINALIZE_REVEAL_VOUCH_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2672
+ declare function getFinalizeRevealVouchDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2673
+ type FinalizeRevealVouchInstruction<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, TAccountVouchAccount 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<[
2670
2674
  TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
2671
2675
  TAccountOwner extends string ? ReadonlyAccount<TAccountOwner> : TAccountOwner,
2672
2676
  TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
2673
- TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
2677
+ TAccountVouchAccount extends string ? WritableAccount<TAccountVouchAccount> : TAccountVouchAccount,
2674
2678
  TAccountOption extends string ? WritableAccount<TAccountOption> : TAccountOption,
2675
2679
  TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
2676
2680
  ...TRemainingAccounts
2677
2681
  ]>;
2678
- type FinalizeRevealStakeInstructionData = {
2682
+ type FinalizeRevealVouchInstructionData = {
2679
2683
  discriminator: ReadonlyUint8Array;
2680
2684
  optionId: bigint;
2681
- stakeAccountId: number;
2685
+ vouchAccountId: number;
2682
2686
  };
2683
- type FinalizeRevealStakeInstructionDataArgs = {
2687
+ type FinalizeRevealVouchInstructionDataArgs = {
2684
2688
  optionId: number | bigint;
2685
- stakeAccountId: number;
2689
+ vouchAccountId: number;
2686
2690
  };
2687
- declare function getFinalizeRevealStakeInstructionDataEncoder(): FixedSizeEncoder<FinalizeRevealStakeInstructionDataArgs>;
2688
- declare function getFinalizeRevealStakeInstructionDataDecoder(): FixedSizeDecoder<FinalizeRevealStakeInstructionData>;
2689
- declare function getFinalizeRevealStakeInstructionDataCodec(): FixedSizeCodec<FinalizeRevealStakeInstructionDataArgs, FinalizeRevealStakeInstructionData>;
2690
- 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> = {
2691
+ declare function getFinalizeRevealVouchInstructionDataEncoder(): FixedSizeEncoder<FinalizeRevealVouchInstructionDataArgs>;
2692
+ declare function getFinalizeRevealVouchInstructionDataDecoder(): FixedSizeDecoder<FinalizeRevealVouchInstructionData>;
2693
+ declare function getFinalizeRevealVouchInstructionDataCodec(): FixedSizeCodec<FinalizeRevealVouchInstructionDataArgs, FinalizeRevealVouchInstructionData>;
2694
+ type FinalizeRevealVouchAsyncInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountVouchAccount extends string = string, TAccountOption extends string = string, TAccountSystemProgram extends string = string> = {
2691
2695
  signer: TransactionSigner<TAccountSigner>;
2692
2696
  owner: Address<TAccountOwner>;
2693
2697
  market: Address<TAccountMarket>;
2694
- stakeAccount?: Address<TAccountStakeAccount>;
2698
+ vouchAccount?: Address<TAccountVouchAccount>;
2695
2699
  option?: Address<TAccountOption>;
2696
2700
  systemProgram?: Address<TAccountSystemProgram>;
2697
- optionId: FinalizeRevealStakeInstructionDataArgs['optionId'];
2698
- stakeAccountId: FinalizeRevealStakeInstructionDataArgs['stakeAccountId'];
2701
+ optionId: FinalizeRevealVouchInstructionDataArgs['optionId'];
2702
+ vouchAccountId: FinalizeRevealVouchInstructionDataArgs['vouchAccountId'];
2699
2703
  };
2700
- 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?: {
2704
+ declare function getFinalizeRevealVouchInstructionAsync<TAccountSigner extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountVouchAccount extends string, TAccountOption extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: FinalizeRevealVouchAsyncInput<TAccountSigner, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountOption, TAccountSystemProgram>, config?: {
2701
2705
  programAddress?: TProgramAddress;
2702
- }): Promise<FinalizeRevealStakeInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountSystemProgram>>;
2703
- 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> = {
2706
+ }): Promise<FinalizeRevealVouchInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountOption, TAccountSystemProgram>>;
2707
+ type FinalizeRevealVouchInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountVouchAccount extends string = string, TAccountOption extends string = string, TAccountSystemProgram extends string = string> = {
2704
2708
  signer: TransactionSigner<TAccountSigner>;
2705
2709
  owner: Address<TAccountOwner>;
2706
2710
  market: Address<TAccountMarket>;
2707
- stakeAccount: Address<TAccountStakeAccount>;
2711
+ vouchAccount: Address<TAccountVouchAccount>;
2708
2712
  option: Address<TAccountOption>;
2709
2713
  systemProgram?: Address<TAccountSystemProgram>;
2710
- optionId: FinalizeRevealStakeInstructionDataArgs['optionId'];
2711
- stakeAccountId: FinalizeRevealStakeInstructionDataArgs['stakeAccountId'];
2714
+ optionId: FinalizeRevealVouchInstructionDataArgs['optionId'];
2715
+ vouchAccountId: FinalizeRevealVouchInstructionDataArgs['vouchAccountId'];
2712
2716
  };
2713
- 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?: {
2717
+ declare function getFinalizeRevealVouchInstruction<TAccountSigner extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountVouchAccount extends string, TAccountOption extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: FinalizeRevealVouchInput<TAccountSigner, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountOption, TAccountSystemProgram>, config?: {
2714
2718
  programAddress?: TProgramAddress;
2715
- }): FinalizeRevealStakeInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountOption, TAccountSystemProgram>;
2716
- type ParsedFinalizeRevealStakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2719
+ }): FinalizeRevealVouchInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountOption, TAccountSystemProgram>;
2720
+ type ParsedFinalizeRevealVouchInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2717
2721
  programAddress: Address<TProgram>;
2718
2722
  accounts: {
2719
2723
  signer: TAccountMetas[0];
2720
2724
  owner: TAccountMetas[1];
2721
2725
  market: TAccountMetas[2];
2722
- stakeAccount: TAccountMetas[3];
2726
+ vouchAccount: TAccountMetas[3];
2723
2727
  option: TAccountMetas[4];
2724
2728
  systemProgram: TAccountMetas[5];
2725
2729
  };
2726
- data: FinalizeRevealStakeInstructionData;
2730
+ data: FinalizeRevealVouchInstructionData;
2727
2731
  };
2728
- declare function parseFinalizeRevealStakeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedFinalizeRevealStakeInstruction<TProgram, TAccountMetas>;
2732
+ declare function parseFinalizeRevealVouchInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedFinalizeRevealVouchInstruction<TProgram, TAccountMetas>;
2729
2733
 
2730
2734
  /**
2731
2735
  * This code was AUTOGENERATED using the Codama library.
@@ -2839,63 +2843,63 @@ declare function parseInitPlatformConfigInstruction<TProgram extends string, TAc
2839
2843
  * @see https://github.com/codama-idl/codama
2840
2844
  */
2841
2845
 
2842
- declare const INIT_STAKE_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2843
- declare function getInitStakeAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2844
- 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<[
2846
+ declare const INIT_VOUCH_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2847
+ declare function getInitVouchAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2848
+ type InitVouchAccountInstruction<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, TAccountVouchAccount extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2845
2849
  TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
2846
2850
  TAccountOwner extends string ? ReadonlyAccount<TAccountOwner> : TAccountOwner,
2847
2851
  TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
2848
- TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
2852
+ TAccountVouchAccount extends string ? WritableAccount<TAccountVouchAccount> : TAccountVouchAccount,
2849
2853
  TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
2850
2854
  ...TRemainingAccounts
2851
2855
  ]>;
2852
- type InitStakeAccountInstructionData = {
2856
+ type InitVouchAccountInstructionData = {
2853
2857
  discriminator: ReadonlyUint8Array;
2854
- stakeAccountId: number;
2858
+ vouchAccountId: number;
2855
2859
  };
2856
- type InitStakeAccountInstructionDataArgs = {
2857
- stakeAccountId: number;
2860
+ type InitVouchAccountInstructionDataArgs = {
2861
+ vouchAccountId: number;
2858
2862
  };
2859
- declare function getInitStakeAccountInstructionDataEncoder(): FixedSizeEncoder<InitStakeAccountInstructionDataArgs>;
2860
- declare function getInitStakeAccountInstructionDataDecoder(): FixedSizeDecoder<InitStakeAccountInstructionData>;
2861
- declare function getInitStakeAccountInstructionDataCodec(): FixedSizeCodec<InitStakeAccountInstructionDataArgs, InitStakeAccountInstructionData>;
2862
- type InitStakeAccountAsyncInput<TAccountPayer extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountSystemProgram extends string = string> = {
2863
+ declare function getInitVouchAccountInstructionDataEncoder(): FixedSizeEncoder<InitVouchAccountInstructionDataArgs>;
2864
+ declare function getInitVouchAccountInstructionDataDecoder(): FixedSizeDecoder<InitVouchAccountInstructionData>;
2865
+ declare function getInitVouchAccountInstructionDataCodec(): FixedSizeCodec<InitVouchAccountInstructionDataArgs, InitVouchAccountInstructionData>;
2866
+ type InitVouchAccountAsyncInput<TAccountPayer extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountVouchAccount extends string = string, TAccountSystemProgram extends string = string> = {
2863
2867
  payer: TransactionSigner<TAccountPayer>;
2864
2868
  /** No signature required: this instruction is permissionless. */
2865
2869
  owner: Address<TAccountOwner>;
2866
2870
  market: Address<TAccountMarket>;
2867
- stakeAccount?: Address<TAccountStakeAccount>;
2871
+ vouchAccount?: Address<TAccountVouchAccount>;
2868
2872
  systemProgram?: Address<TAccountSystemProgram>;
2869
- stakeAccountId: InitStakeAccountInstructionDataArgs['stakeAccountId'];
2873
+ vouchAccountId: InitVouchAccountInstructionDataArgs['vouchAccountId'];
2870
2874
  };
2871
- 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?: {
2875
+ declare function getInitVouchAccountInstructionAsync<TAccountPayer extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountVouchAccount extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitVouchAccountAsyncInput<TAccountPayer, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountSystemProgram>, config?: {
2872
2876
  programAddress?: TProgramAddress;
2873
- }): Promise<InitStakeAccountInstruction<TProgramAddress, TAccountPayer, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountSystemProgram>>;
2874
- type InitStakeAccountInput<TAccountPayer extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount extends string = string, TAccountSystemProgram extends string = string> = {
2877
+ }): Promise<InitVouchAccountInstruction<TProgramAddress, TAccountPayer, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountSystemProgram>>;
2878
+ type InitVouchAccountInput<TAccountPayer extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountVouchAccount extends string = string, TAccountSystemProgram extends string = string> = {
2875
2879
  payer: TransactionSigner<TAccountPayer>;
2876
2880
  /** No signature required: this instruction is permissionless. */
2877
2881
  owner: Address<TAccountOwner>;
2878
2882
  market: Address<TAccountMarket>;
2879
- stakeAccount: Address<TAccountStakeAccount>;
2883
+ vouchAccount: Address<TAccountVouchAccount>;
2880
2884
  systemProgram?: Address<TAccountSystemProgram>;
2881
- stakeAccountId: InitStakeAccountInstructionDataArgs['stakeAccountId'];
2885
+ vouchAccountId: InitVouchAccountInstructionDataArgs['vouchAccountId'];
2882
2886
  };
2883
- 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?: {
2887
+ declare function getInitVouchAccountInstruction<TAccountPayer extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountVouchAccount extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitVouchAccountInput<TAccountPayer, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountSystemProgram>, config?: {
2884
2888
  programAddress?: TProgramAddress;
2885
- }): InitStakeAccountInstruction<TProgramAddress, TAccountPayer, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountSystemProgram>;
2886
- type ParsedInitStakeAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2889
+ }): InitVouchAccountInstruction<TProgramAddress, TAccountPayer, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountSystemProgram>;
2890
+ type ParsedInitVouchAccountInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2887
2891
  programAddress: Address<TProgram>;
2888
2892
  accounts: {
2889
2893
  payer: TAccountMetas[0];
2890
2894
  /** No signature required: this instruction is permissionless. */
2891
2895
  owner: TAccountMetas[1];
2892
2896
  market: TAccountMetas[2];
2893
- stakeAccount: TAccountMetas[3];
2897
+ vouchAccount: TAccountMetas[3];
2894
2898
  systemProgram: TAccountMetas[4];
2895
2899
  };
2896
- data: InitStakeAccountInstructionData;
2900
+ data: InitVouchAccountInstructionData;
2897
2901
  };
2898
- declare function parseInitStakeAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitStakeAccountInstruction<TProgram, TAccountMetas>;
2902
+ declare function parseInitVouchAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitVouchAccountInstruction<TProgram, TAccountMetas>;
2899
2903
 
2900
2904
  /**
2901
2905
  * This code was AUTOGENERATED using the Codama library.
@@ -2915,10 +2919,10 @@ type OpenMarketInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_P
2915
2919
  ]>;
2916
2920
  type OpenMarketInstructionData = {
2917
2921
  discriminator: ReadonlyUint8Array;
2918
- timeToStake: bigint;
2922
+ timeToVouch: bigint;
2919
2923
  };
2920
2924
  type OpenMarketInstructionDataArgs = {
2921
- timeToStake: number | bigint;
2925
+ timeToVouch: number | bigint;
2922
2926
  };
2923
2927
  declare function getOpenMarketInstructionDataEncoder(): FixedSizeEncoder<OpenMarketInstructionDataArgs>;
2924
2928
  declare function getOpenMarketInstructionDataDecoder(): FixedSizeDecoder<OpenMarketInstructionData>;
@@ -2927,7 +2931,7 @@ type OpenMarketInput<TAccountMarketAuthority extends string = string, TAccountMa
2927
2931
  marketAuthority: TransactionSigner<TAccountMarketAuthority>;
2928
2932
  market: Address<TAccountMarket>;
2929
2933
  platformConfig: Address<TAccountPlatformConfig>;
2930
- timeToStake: OpenMarketInstructionDataArgs['timeToStake'];
2934
+ timeToVouch: OpenMarketInstructionDataArgs['timeToVouch'];
2931
2935
  };
2932
2936
  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?: {
2933
2937
  programAddress?: TProgramAddress;
@@ -2990,13 +2994,13 @@ declare function parseResolveMarketInstruction<TProgram extends string, TAccount
2990
2994
  * @see https://github.com/codama-idl/codama
2991
2995
  */
2992
2996
 
2993
- declare const REVEAL_STAKE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2994
- declare function getRevealStakeDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2995
- type RevealStakeInstruction<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, 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<[
2997
+ declare const REVEAL_VOUCH_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2998
+ declare function getRevealVouchDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2999
+ type RevealVouchInstruction<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, TAccountVouchAccount 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<[
2996
3000
  TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
2997
3001
  TAccountOwner extends string ? ReadonlyAccount<TAccountOwner> : TAccountOwner,
2998
3002
  TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
2999
- TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
3003
+ TAccountVouchAccount extends string ? WritableAccount<TAccountVouchAccount> : TAccountVouchAccount,
3000
3004
  TAccountSignPdaAccount extends string ? WritableAccount<TAccountSignPdaAccount> : TAccountSignPdaAccount,
3001
3005
  TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
3002
3006
  TAccountMempoolAccount extends string ? WritableAccount<TAccountMempoolAccount> : TAccountMempoolAccount,
@@ -3010,23 +3014,23 @@ type RevealStakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_
3010
3014
  TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
3011
3015
  ...TRemainingAccounts
3012
3016
  ]>;
3013
- type RevealStakeInstructionData = {
3017
+ type RevealVouchInstructionData = {
3014
3018
  discriminator: ReadonlyUint8Array;
3015
3019
  computationOffset: bigint;
3016
- stakeAccountId: number;
3020
+ vouchAccountId: number;
3017
3021
  };
3018
- type RevealStakeInstructionDataArgs = {
3022
+ type RevealVouchInstructionDataArgs = {
3019
3023
  computationOffset: number | bigint;
3020
- stakeAccountId: number;
3024
+ vouchAccountId: number;
3021
3025
  };
3022
- declare function getRevealStakeInstructionDataEncoder(): FixedSizeEncoder<RevealStakeInstructionDataArgs>;
3023
- declare function getRevealStakeInstructionDataDecoder(): FixedSizeDecoder<RevealStakeInstructionData>;
3024
- declare function getRevealStakeInstructionDataCodec(): FixedSizeCodec<RevealStakeInstructionDataArgs, RevealStakeInstructionData>;
3025
- type RevealStakeAsyncInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount 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> = {
3026
+ declare function getRevealVouchInstructionDataEncoder(): FixedSizeEncoder<RevealVouchInstructionDataArgs>;
3027
+ declare function getRevealVouchInstructionDataDecoder(): FixedSizeDecoder<RevealVouchInstructionData>;
3028
+ declare function getRevealVouchInstructionDataCodec(): FixedSizeCodec<RevealVouchInstructionDataArgs, RevealVouchInstructionData>;
3029
+ type RevealVouchAsyncInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountVouchAccount 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> = {
3026
3030
  signer: TransactionSigner<TAccountSigner>;
3027
3031
  owner: Address<TAccountOwner>;
3028
3032
  market: Address<TAccountMarket>;
3029
- stakeAccount?: Address<TAccountStakeAccount>;
3033
+ vouchAccount?: Address<TAccountVouchAccount>;
3030
3034
  signPdaAccount?: Address<TAccountSignPdaAccount>;
3031
3035
  mxeAccount: Address<TAccountMxeAccount>;
3032
3036
  mempoolAccount: Address<TAccountMempoolAccount>;
@@ -3038,17 +3042,17 @@ type RevealStakeAsyncInput<TAccountSigner extends string = string, TAccountOwner
3038
3042
  clockAccount?: Address<TAccountClockAccount>;
3039
3043
  systemProgram?: Address<TAccountSystemProgram>;
3040
3044
  arciumProgram?: Address<TAccountArciumProgram>;
3041
- computationOffset: RevealStakeInstructionDataArgs['computationOffset'];
3042
- stakeAccountId: RevealStakeInstructionDataArgs['stakeAccountId'];
3045
+ computationOffset: RevealVouchInstructionDataArgs['computationOffset'];
3046
+ vouchAccountId: RevealVouchInstructionDataArgs['vouchAccountId'];
3043
3047
  };
3044
- declare function getRevealStakeInstructionAsync<TAccountSigner extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount 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: RevealStakeAsyncInput<TAccountSigner, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
3048
+ declare function getRevealVouchInstructionAsync<TAccountSigner extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountVouchAccount 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: RevealVouchAsyncInput<TAccountSigner, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
3045
3049
  programAddress?: TProgramAddress;
3046
- }): Promise<RevealStakeInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>>;
3047
- type RevealStakeInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountStakeAccount 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> = {
3050
+ }): Promise<RevealVouchInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>>;
3051
+ type RevealVouchInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountVouchAccount 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> = {
3048
3052
  signer: TransactionSigner<TAccountSigner>;
3049
3053
  owner: Address<TAccountOwner>;
3050
3054
  market: Address<TAccountMarket>;
3051
- stakeAccount: Address<TAccountStakeAccount>;
3055
+ vouchAccount: Address<TAccountVouchAccount>;
3052
3056
  signPdaAccount: Address<TAccountSignPdaAccount>;
3053
3057
  mxeAccount: Address<TAccountMxeAccount>;
3054
3058
  mempoolAccount: Address<TAccountMempoolAccount>;
@@ -3060,19 +3064,19 @@ type RevealStakeInput<TAccountSigner extends string = string, TAccountOwner exte
3060
3064
  clockAccount?: Address<TAccountClockAccount>;
3061
3065
  systemProgram?: Address<TAccountSystemProgram>;
3062
3066
  arciumProgram?: Address<TAccountArciumProgram>;
3063
- computationOffset: RevealStakeInstructionDataArgs['computationOffset'];
3064
- stakeAccountId: RevealStakeInstructionDataArgs['stakeAccountId'];
3067
+ computationOffset: RevealVouchInstructionDataArgs['computationOffset'];
3068
+ vouchAccountId: RevealVouchInstructionDataArgs['vouchAccountId'];
3065
3069
  };
3066
- declare function getRevealStakeInstruction<TAccountSigner extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountStakeAccount 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: RevealStakeInput<TAccountSigner, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
3070
+ declare function getRevealVouchInstruction<TAccountSigner extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountVouchAccount 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: RevealVouchInput<TAccountSigner, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
3067
3071
  programAddress?: TProgramAddress;
3068
- }): RevealStakeInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>;
3069
- type ParsedRevealStakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3072
+ }): RevealVouchInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>;
3073
+ type ParsedRevealVouchInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3070
3074
  programAddress: Address<TProgram>;
3071
3075
  accounts: {
3072
3076
  signer: TAccountMetas[0];
3073
3077
  owner: TAccountMetas[1];
3074
3078
  market: TAccountMetas[2];
3075
- stakeAccount: TAccountMetas[3];
3079
+ vouchAccount: TAccountMetas[3];
3076
3080
  signPdaAccount: TAccountMetas[4];
3077
3081
  mxeAccount: TAccountMetas[5];
3078
3082
  mempoolAccount: TAccountMetas[6];
@@ -3085,9 +3089,9 @@ type ParsedRevealStakeInstruction<TProgram extends string = typeof OPPORTUNITY_M
3085
3089
  systemProgram: TAccountMetas[13];
3086
3090
  arciumProgram: TAccountMetas[14];
3087
3091
  };
3088
- data: RevealStakeInstructionData;
3092
+ data: RevealVouchInstructionData;
3089
3093
  };
3090
- declare function parseRevealStakeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevealStakeInstruction<TProgram, TAccountMetas>;
3094
+ declare function parseRevealVouchInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevealVouchInstruction<TProgram, TAccountMetas>;
3091
3095
 
3092
3096
  /**
3093
3097
  * This code was AUTOGENERATED using the Codama library.
@@ -3097,58 +3101,58 @@ declare function parseRevealStakeInstruction<TProgram extends string, TAccountMe
3097
3101
  * @see https://github.com/codama-idl/codama
3098
3102
  */
3099
3103
 
3100
- declare const REVEAL_STAKE_CALLBACK_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3101
- declare function getRevealStakeCallbackDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3102
- type RevealStakeCallbackInstruction<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, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3104
+ declare const REVEAL_VOUCH_CALLBACK_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3105
+ declare function getRevealVouchCallbackDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3106
+ type RevealVouchCallbackInstruction<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', TAccountVouchAccount extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3103
3107
  TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
3104
3108
  TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
3105
3109
  TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
3106
3110
  TAccountComputationAccount extends string ? ReadonlyAccount<TAccountComputationAccount> : TAccountComputationAccount,
3107
3111
  TAccountClusterAccount extends string ? ReadonlyAccount<TAccountClusterAccount> : TAccountClusterAccount,
3108
3112
  TAccountInstructionsSysvar extends string ? ReadonlyAccount<TAccountInstructionsSysvar> : TAccountInstructionsSysvar,
3109
- TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
3113
+ TAccountVouchAccount extends string ? WritableAccount<TAccountVouchAccount> : TAccountVouchAccount,
3110
3114
  ...TRemainingAccounts
3111
3115
  ]>;
3112
- type RevealStakeCallbackInstructionData = {
3116
+ type RevealVouchCallbackInstructionData = {
3113
3117
  discriminator: ReadonlyUint8Array;
3114
3118
  output: {
3115
3119
  __kind: 'Success';
3116
- fields: readonly [RevealStakeOutput, Array<number>];
3120
+ fields: readonly [RevealVouchOutput, Array<number>];
3117
3121
  } | {
3118
3122
  __kind: 'Failure';
3119
3123
  } | {
3120
3124
  __kind: 'MarkerForIdlBuildDoNotUseThis';
3121
- fields: readonly [RevealStakeOutput];
3125
+ fields: readonly [RevealVouchOutput];
3122
3126
  };
3123
3127
  };
3124
- type RevealStakeCallbackInstructionDataArgs = {
3128
+ type RevealVouchCallbackInstructionDataArgs = {
3125
3129
  output: {
3126
3130
  __kind: 'Success';
3127
- fields: readonly [RevealStakeOutputArgs, Array<number>];
3131
+ fields: readonly [RevealVouchOutputArgs, Array<number>];
3128
3132
  } | {
3129
3133
  __kind: 'Failure';
3130
3134
  } | {
3131
3135
  __kind: 'MarkerForIdlBuildDoNotUseThis';
3132
- fields: readonly [RevealStakeOutputArgs];
3136
+ fields: readonly [RevealVouchOutputArgs];
3133
3137
  };
3134
3138
  };
3135
- declare function getRevealStakeCallbackInstructionDataEncoder(): Encoder<RevealStakeCallbackInstructionDataArgs>;
3136
- declare function getRevealStakeCallbackInstructionDataDecoder(): Decoder<RevealStakeCallbackInstructionData>;
3137
- declare function getRevealStakeCallbackInstructionDataCodec(): Codec<RevealStakeCallbackInstructionDataArgs, RevealStakeCallbackInstructionData>;
3138
- type RevealStakeCallbackInput<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> = {
3139
+ declare function getRevealVouchCallbackInstructionDataEncoder(): Encoder<RevealVouchCallbackInstructionDataArgs>;
3140
+ declare function getRevealVouchCallbackInstructionDataDecoder(): Decoder<RevealVouchCallbackInstructionData>;
3141
+ declare function getRevealVouchCallbackInstructionDataCodec(): Codec<RevealVouchCallbackInstructionDataArgs, RevealVouchCallbackInstructionData>;
3142
+ type RevealVouchCallbackInput<TAccountArciumProgram extends string = string, TAccountCompDefAccount extends string = string, TAccountMxeAccount extends string = string, TAccountComputationAccount extends string = string, TAccountClusterAccount extends string = string, TAccountInstructionsSysvar extends string = string, TAccountVouchAccount extends string = string> = {
3139
3143
  arciumProgram?: Address<TAccountArciumProgram>;
3140
3144
  compDefAccount: Address<TAccountCompDefAccount>;
3141
3145
  mxeAccount: Address<TAccountMxeAccount>;
3142
3146
  computationAccount: Address<TAccountComputationAccount>;
3143
3147
  clusterAccount: Address<TAccountClusterAccount>;
3144
3148
  instructionsSysvar?: Address<TAccountInstructionsSysvar>;
3145
- stakeAccount: Address<TAccountStakeAccount>;
3146
- output: RevealStakeCallbackInstructionDataArgs['output'];
3149
+ vouchAccount: Address<TAccountVouchAccount>;
3150
+ output: RevealVouchCallbackInstructionDataArgs['output'];
3147
3151
  };
3148
- declare function getRevealStakeCallbackInstruction<TAccountArciumProgram extends string, TAccountCompDefAccount extends string, TAccountMxeAccount extends string, TAccountComputationAccount extends string, TAccountClusterAccount extends string, TAccountInstructionsSysvar extends string, TAccountStakeAccount extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: RevealStakeCallbackInput<TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountStakeAccount>, config?: {
3152
+ declare function getRevealVouchCallbackInstruction<TAccountArciumProgram extends string, TAccountCompDefAccount extends string, TAccountMxeAccount extends string, TAccountComputationAccount extends string, TAccountClusterAccount extends string, TAccountInstructionsSysvar extends string, TAccountVouchAccount extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: RevealVouchCallbackInput<TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountVouchAccount>, config?: {
3149
3153
  programAddress?: TProgramAddress;
3150
- }): RevealStakeCallbackInstruction<TProgramAddress, TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountStakeAccount>;
3151
- type ParsedRevealStakeCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3154
+ }): RevealVouchCallbackInstruction<TProgramAddress, TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountVouchAccount>;
3155
+ type ParsedRevealVouchCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3152
3156
  programAddress: Address<TProgram>;
3153
3157
  accounts: {
3154
3158
  arciumProgram: TAccountMetas[0];
@@ -3157,11 +3161,11 @@ type ParsedRevealStakeCallbackInstruction<TProgram extends string = typeof OPPOR
3157
3161
  computationAccount: TAccountMetas[3];
3158
3162
  clusterAccount: TAccountMetas[4];
3159
3163
  instructionsSysvar: TAccountMetas[5];
3160
- stakeAccount: TAccountMetas[6];
3164
+ vouchAccount: TAccountMetas[6];
3161
3165
  };
3162
- data: RevealStakeCallbackInstructionData;
3166
+ data: RevealVouchCallbackInstructionData;
3163
3167
  };
3164
- declare function parseRevealStakeCallbackInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevealStakeCallbackInstruction<TProgram, TAccountMetas>;
3168
+ declare function parseRevealVouchCallbackInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevealVouchCallbackInstruction<TProgram, TAccountMetas>;
3165
3169
 
3166
3170
  /**
3167
3171
  * This code was AUTOGENERATED using the Codama library.
@@ -3171,9 +3175,9 @@ declare function parseRevealStakeCallbackInstruction<TProgram extends string, TA
3171
3175
  * @see https://github.com/codama-idl/codama
3172
3176
  */
3173
3177
 
3174
- declare const REVEAL_STAKE_COMP_DEF_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3175
- declare function getRevealStakeCompDefDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3176
- type RevealStakeCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountAddressLookupTable extends string | AccountMeta<string> = string, TAccountLutProgram extends string | AccountMeta<string> = 'AddressLookupTab1e1111111111111111111111111', TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3178
+ declare const REVEAL_VOUCH_COMP_DEF_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3179
+ declare function getRevealVouchCompDefDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3180
+ type RevealVouchCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountAddressLookupTable extends string | AccountMeta<string> = string, TAccountLutProgram extends string | AccountMeta<string> = 'AddressLookupTab1e1111111111111111111111111', TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3177
3181
  TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
3178
3182
  TAccountMxeAccount extends string ? WritableAccount<TAccountMxeAccount> : TAccountMxeAccount,
3179
3183
  TAccountCompDefAccount extends string ? WritableAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
@@ -3183,14 +3187,14 @@ type RevealStakeCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_
3183
3187
  TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
3184
3188
  ...TRemainingAccounts
3185
3189
  ]>;
3186
- type RevealStakeCompDefInstructionData = {
3190
+ type RevealVouchCompDefInstructionData = {
3187
3191
  discriminator: ReadonlyUint8Array;
3188
3192
  };
3189
- type RevealStakeCompDefInstructionDataArgs = {};
3190
- declare function getRevealStakeCompDefInstructionDataEncoder(): FixedSizeEncoder<RevealStakeCompDefInstructionDataArgs>;
3191
- declare function getRevealStakeCompDefInstructionDataDecoder(): FixedSizeDecoder<RevealStakeCompDefInstructionData>;
3192
- declare function getRevealStakeCompDefInstructionDataCodec(): FixedSizeCodec<RevealStakeCompDefInstructionDataArgs, RevealStakeCompDefInstructionData>;
3193
- type RevealStakeCompDefInput<TAccountPayer extends string = string, TAccountMxeAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountAddressLookupTable extends string = string, TAccountLutProgram extends string = string, TAccountArciumProgram extends string = string, TAccountSystemProgram extends string = string> = {
3193
+ type RevealVouchCompDefInstructionDataArgs = {};
3194
+ declare function getRevealVouchCompDefInstructionDataEncoder(): FixedSizeEncoder<RevealVouchCompDefInstructionDataArgs>;
3195
+ declare function getRevealVouchCompDefInstructionDataDecoder(): FixedSizeDecoder<RevealVouchCompDefInstructionData>;
3196
+ declare function getRevealVouchCompDefInstructionDataCodec(): FixedSizeCodec<RevealVouchCompDefInstructionDataArgs, RevealVouchCompDefInstructionData>;
3197
+ type RevealVouchCompDefInput<TAccountPayer extends string = string, TAccountMxeAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountAddressLookupTable extends string = string, TAccountLutProgram extends string = string, TAccountArciumProgram extends string = string, TAccountSystemProgram extends string = string> = {
3194
3198
  payer: TransactionSigner<TAccountPayer>;
3195
3199
  mxeAccount: Address<TAccountMxeAccount>;
3196
3200
  compDefAccount: Address<TAccountCompDefAccount>;
@@ -3199,10 +3203,10 @@ type RevealStakeCompDefInput<TAccountPayer extends string = string, TAccountMxeA
3199
3203
  arciumProgram?: Address<TAccountArciumProgram>;
3200
3204
  systemProgram?: Address<TAccountSystemProgram>;
3201
3205
  };
3202
- declare function getRevealStakeCompDefInstruction<TAccountPayer extends string, TAccountMxeAccount extends string, TAccountCompDefAccount extends string, TAccountAddressLookupTable extends string, TAccountLutProgram extends string, TAccountArciumProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: RevealStakeCompDefInput<TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountAddressLookupTable, TAccountLutProgram, TAccountArciumProgram, TAccountSystemProgram>, config?: {
3206
+ declare function getRevealVouchCompDefInstruction<TAccountPayer extends string, TAccountMxeAccount extends string, TAccountCompDefAccount extends string, TAccountAddressLookupTable extends string, TAccountLutProgram extends string, TAccountArciumProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: RevealVouchCompDefInput<TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountAddressLookupTable, TAccountLutProgram, TAccountArciumProgram, TAccountSystemProgram>, config?: {
3203
3207
  programAddress?: TProgramAddress;
3204
- }): RevealStakeCompDefInstruction<TProgramAddress, TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountAddressLookupTable, TAccountLutProgram, TAccountArciumProgram, TAccountSystemProgram>;
3205
- type ParsedRevealStakeCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3208
+ }): RevealVouchCompDefInstruction<TProgramAddress, TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountAddressLookupTable, TAccountLutProgram, TAccountArciumProgram, TAccountSystemProgram>;
3209
+ type ParsedRevealVouchCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3206
3210
  programAddress: Address<TProgram>;
3207
3211
  accounts: {
3208
3212
  payer: TAccountMetas[0];
@@ -3213,9 +3217,9 @@ type ParsedRevealStakeCompDefInstruction<TProgram extends string = typeof OPPORT
3213
3217
  arciumProgram: TAccountMetas[5];
3214
3218
  systemProgram: TAccountMetas[6];
3215
3219
  };
3216
- data: RevealStakeCompDefInstructionData;
3220
+ data: RevealVouchCompDefInstructionData;
3217
3221
  };
3218
- declare function parseRevealStakeCompDefInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevealStakeCompDefInstruction<TProgram, TAccountMetas>;
3222
+ declare function parseRevealVouchCompDefInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevealVouchCompDefInstruction<TProgram, TAccountMetas>;
3219
3223
 
3220
3224
  /**
3221
3225
  * This code was AUTOGENERATED using the Codama library.
@@ -3368,13 +3372,56 @@ declare function parseSetWinningOptionInstruction<TProgram extends string, TAcco
3368
3372
  * @see https://github.com/codama-idl/codama
3369
3373
  */
3370
3374
 
3371
- declare const STAKE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3372
- declare function getStakeDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3373
- 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<[
3375
+ declare const UPDATE_PLATFORM_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3376
+ declare function getUpdatePlatformConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3377
+ 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<[
3378
+ TAccountUpdateAuthority extends string ? ReadonlySignerAccount<TAccountUpdateAuthority> & AccountSignerMeta<TAccountUpdateAuthority> : TAccountUpdateAuthority,
3379
+ TAccountPlatformConfig extends string ? WritableAccount<TAccountPlatformConfig> : TAccountPlatformConfig,
3380
+ ...TRemainingAccounts
3381
+ ]>;
3382
+ type UpdatePlatformConfigInstructionData = {
3383
+ discriminator: ReadonlyUint8Array;
3384
+ params: UpdatePlatformParameters;
3385
+ };
3386
+ type UpdatePlatformConfigInstructionDataArgs = {
3387
+ params: UpdatePlatformParametersArgs;
3388
+ };
3389
+ declare function getUpdatePlatformConfigInstructionDataEncoder(): Encoder<UpdatePlatformConfigInstructionDataArgs>;
3390
+ declare function getUpdatePlatformConfigInstructionDataDecoder(): Decoder<UpdatePlatformConfigInstructionData>;
3391
+ declare function getUpdatePlatformConfigInstructionDataCodec(): Codec<UpdatePlatformConfigInstructionDataArgs, UpdatePlatformConfigInstructionData>;
3392
+ type UpdatePlatformConfigInput<TAccountUpdateAuthority extends string = string, TAccountPlatformConfig extends string = string> = {
3393
+ updateAuthority: TransactionSigner<TAccountUpdateAuthority>;
3394
+ platformConfig: Address<TAccountPlatformConfig>;
3395
+ params: UpdatePlatformConfigInstructionDataArgs['params'];
3396
+ };
3397
+ declare function getUpdatePlatformConfigInstruction<TAccountUpdateAuthority extends string, TAccountPlatformConfig extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: UpdatePlatformConfigInput<TAccountUpdateAuthority, TAccountPlatformConfig>, config?: {
3398
+ programAddress?: TProgramAddress;
3399
+ }): UpdatePlatformConfigInstruction<TProgramAddress, TAccountUpdateAuthority, TAccountPlatformConfig>;
3400
+ type ParsedUpdatePlatformConfigInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3401
+ programAddress: Address<TProgram>;
3402
+ accounts: {
3403
+ updateAuthority: TAccountMetas[0];
3404
+ platformConfig: TAccountMetas[1];
3405
+ };
3406
+ data: UpdatePlatformConfigInstructionData;
3407
+ };
3408
+ declare function parseUpdatePlatformConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdatePlatformConfigInstruction<TProgram, TAccountMetas>;
3409
+
3410
+ /**
3411
+ * This code was AUTOGENERATED using the Codama library.
3412
+ * Please DO NOT EDIT THIS FILE, instead use visitors
3413
+ * to add features, then rerun Codama to update it.
3414
+ *
3415
+ * @see https://github.com/codama-idl/codama
3416
+ */
3417
+
3418
+ declare const VOUCH_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3419
+ declare function getVouchDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3420
+ type VouchInstruction<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, TAccountVouchAccount 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<[
3374
3421
  TAccountSigner extends string ? ReadonlySignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
3375
3422
  TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
3376
3423
  TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
3377
- TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
3424
+ TAccountVouchAccount extends string ? WritableAccount<TAccountVouchAccount> : TAccountVouchAccount,
3378
3425
  TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
3379
3426
  TAccountSignerTokenAccount extends string ? WritableAccount<TAccountSignerTokenAccount> : TAccountSignerTokenAccount,
3380
3427
  TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
@@ -3392,23 +3439,23 @@ type StakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRA
3392
3439
  TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
3393
3440
  ...TRemainingAccounts
3394
3441
  ]>;
3395
- type StakeInstructionData = {
3442
+ type VouchInstructionData = {
3396
3443
  discriminator: ReadonlyUint8Array;
3397
- params: StakeParameters;
3444
+ params: VouchParameters;
3398
3445
  };
3399
- type StakeInstructionDataArgs = {
3400
- params: StakeParametersArgs;
3446
+ type VouchInstructionDataArgs = {
3447
+ params: VouchParametersArgs;
3401
3448
  };
3402
- declare function getStakeInstructionDataEncoder(): FixedSizeEncoder<StakeInstructionDataArgs>;
3403
- declare function getStakeInstructionDataDecoder(): FixedSizeDecoder<StakeInstructionData>;
3404
- declare function getStakeInstructionDataCodec(): FixedSizeCodec<StakeInstructionDataArgs, StakeInstructionData>;
3405
- 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> = {
3449
+ declare function getVouchInstructionDataEncoder(): FixedSizeEncoder<VouchInstructionDataArgs>;
3450
+ declare function getVouchInstructionDataDecoder(): FixedSizeDecoder<VouchInstructionData>;
3451
+ declare function getVouchInstructionDataCodec(): FixedSizeCodec<VouchInstructionDataArgs, VouchInstructionData>;
3452
+ type VouchAsyncInput<TAccountSigner extends string = string, TAccountPayer extends string = string, TAccountMarket extends string = string, TAccountVouchAccount 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> = {
3406
3453
  signer: TransactionSigner<TAccountSigner>;
3407
3454
  payer: TransactionSigner<TAccountPayer>;
3408
3455
  market: Address<TAccountMarket>;
3409
- stakeAccount: Address<TAccountStakeAccount>;
3456
+ vouchAccount: Address<TAccountVouchAccount>;
3410
3457
  tokenMint: Address<TAccountTokenMint>;
3411
- /** Funds the stake. */
3458
+ /** Funds the vouch. */
3412
3459
  signerTokenAccount: Address<TAccountSignerTokenAccount>;
3413
3460
  marketTokenAta?: Address<TAccountMarketTokenAta>;
3414
3461
  tokenProgram: Address<TAccountTokenProgram>;
@@ -3423,18 +3470,18 @@ type StakeAsyncInput<TAccountSigner extends string = string, TAccountPayer exten
3423
3470
  clockAccount?: Address<TAccountClockAccount>;
3424
3471
  systemProgram?: Address<TAccountSystemProgram>;
3425
3472
  arciumProgram?: Address<TAccountArciumProgram>;
3426
- params: StakeInstructionDataArgs['params'];
3473
+ params: VouchInstructionDataArgs['params'];
3427
3474
  };
3428
- 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?: {
3475
+ declare function getVouchInstructionAsync<TAccountSigner extends string, TAccountPayer extends string, TAccountMarket extends string, TAccountVouchAccount 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: VouchAsyncInput<TAccountSigner, TAccountPayer, TAccountMarket, TAccountVouchAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
3429
3476
  programAddress?: TProgramAddress;
3430
- }): Promise<StakeInstruction<TProgramAddress, TAccountSigner, TAccountPayer, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>>;
3431
- 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> = {
3477
+ }): Promise<VouchInstruction<TProgramAddress, TAccountSigner, TAccountPayer, TAccountMarket, TAccountVouchAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>>;
3478
+ type VouchInput<TAccountSigner extends string = string, TAccountPayer extends string = string, TAccountMarket extends string = string, TAccountVouchAccount 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> = {
3432
3479
  signer: TransactionSigner<TAccountSigner>;
3433
3480
  payer: TransactionSigner<TAccountPayer>;
3434
3481
  market: Address<TAccountMarket>;
3435
- stakeAccount: Address<TAccountStakeAccount>;
3482
+ vouchAccount: Address<TAccountVouchAccount>;
3436
3483
  tokenMint: Address<TAccountTokenMint>;
3437
- /** Funds the stake. */
3484
+ /** Funds the vouch. */
3438
3485
  signerTokenAccount: Address<TAccountSignerTokenAccount>;
3439
3486
  marketTokenAta: Address<TAccountMarketTokenAta>;
3440
3487
  tokenProgram: Address<TAccountTokenProgram>;
@@ -3449,20 +3496,20 @@ type StakeInput<TAccountSigner extends string = string, TAccountPayer extends st
3449
3496
  clockAccount?: Address<TAccountClockAccount>;
3450
3497
  systemProgram?: Address<TAccountSystemProgram>;
3451
3498
  arciumProgram?: Address<TAccountArciumProgram>;
3452
- params: StakeInstructionDataArgs['params'];
3499
+ params: VouchInstructionDataArgs['params'];
3453
3500
  };
3454
- 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?: {
3501
+ declare function getVouchInstruction<TAccountSigner extends string, TAccountPayer extends string, TAccountMarket extends string, TAccountVouchAccount 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: VouchInput<TAccountSigner, TAccountPayer, TAccountMarket, TAccountVouchAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>, config?: {
3455
3502
  programAddress?: TProgramAddress;
3456
- }): StakeInstruction<TProgramAddress, TAccountSigner, TAccountPayer, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>;
3457
- type ParsedStakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3503
+ }): VouchInstruction<TProgramAddress, TAccountSigner, TAccountPayer, TAccountMarket, TAccountVouchAccount, TAccountTokenMint, TAccountSignerTokenAccount, TAccountMarketTokenAta, TAccountTokenProgram, TAccountSignPdaAccount, TAccountMxeAccount, TAccountMempoolAccount, TAccountExecutingPool, TAccountComputationAccount, TAccountCompDefAccount, TAccountClusterAccount, TAccountPoolAccount, TAccountClockAccount, TAccountSystemProgram, TAccountArciumProgram>;
3504
+ type ParsedVouchInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3458
3505
  programAddress: Address<TProgram>;
3459
3506
  accounts: {
3460
3507
  signer: TAccountMetas[0];
3461
3508
  payer: TAccountMetas[1];
3462
3509
  market: TAccountMetas[2];
3463
- stakeAccount: TAccountMetas[3];
3510
+ vouchAccount: TAccountMetas[3];
3464
3511
  tokenMint: TAccountMetas[4];
3465
- /** Funds the stake. */
3512
+ /** Funds the vouch. */
3466
3513
  signerTokenAccount: TAccountMetas[5];
3467
3514
  marketTokenAta: TAccountMetas[6];
3468
3515
  tokenProgram: TAccountMetas[7];
@@ -3478,9 +3525,9 @@ type ParsedStakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_
3478
3525
  systemProgram: TAccountMetas[17];
3479
3526
  arciumProgram: TAccountMetas[18];
3480
3527
  };
3481
- data: StakeInstructionData;
3528
+ data: VouchInstructionData;
3482
3529
  };
3483
- declare function parseStakeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedStakeInstruction<TProgram, TAccountMetas>;
3530
+ declare function parseVouchInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedVouchInstruction<TProgram, TAccountMetas>;
3484
3531
 
3485
3532
  /**
3486
3533
  * This code was AUTOGENERATED using the Codama library.
@@ -3490,60 +3537,60 @@ declare function parseStakeInstruction<TProgram extends string, TAccountMetas ex
3490
3537
  * @see https://github.com/codama-idl/codama
3491
3538
  */
3492
3539
 
3493
- declare const STAKE_CALLBACK_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3494
- declare function getStakeCallbackDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3495
- 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<[
3540
+ declare const VOUCH_CALLBACK_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3541
+ declare function getVouchCallbackDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3542
+ type VouchCallbackInstruction<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', TAccountVouchAccount extends string | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3496
3543
  TAccountArciumProgram extends string ? ReadonlyAccount<TAccountArciumProgram> : TAccountArciumProgram,
3497
3544
  TAccountCompDefAccount extends string ? ReadonlyAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
3498
3545
  TAccountMxeAccount extends string ? ReadonlyAccount<TAccountMxeAccount> : TAccountMxeAccount,
3499
3546
  TAccountComputationAccount extends string ? ReadonlyAccount<TAccountComputationAccount> : TAccountComputationAccount,
3500
3547
  TAccountClusterAccount extends string ? ReadonlyAccount<TAccountClusterAccount> : TAccountClusterAccount,
3501
3548
  TAccountInstructionsSysvar extends string ? ReadonlyAccount<TAccountInstructionsSysvar> : TAccountInstructionsSysvar,
3502
- TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
3549
+ TAccountVouchAccount extends string ? WritableAccount<TAccountVouchAccount> : TAccountVouchAccount,
3503
3550
  TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
3504
3551
  ...TRemainingAccounts
3505
3552
  ]>;
3506
- type StakeCallbackInstructionData = {
3553
+ type VouchCallbackInstructionData = {
3507
3554
  discriminator: ReadonlyUint8Array;
3508
3555
  output: {
3509
3556
  __kind: 'Success';
3510
- fields: readonly [StakeOutput, Array<number>];
3557
+ fields: readonly [VouchOutput, Array<number>];
3511
3558
  } | {
3512
3559
  __kind: 'Failure';
3513
3560
  } | {
3514
3561
  __kind: 'MarkerForIdlBuildDoNotUseThis';
3515
- fields: readonly [StakeOutput];
3562
+ fields: readonly [VouchOutput];
3516
3563
  };
3517
3564
  };
3518
- type StakeCallbackInstructionDataArgs = {
3565
+ type VouchCallbackInstructionDataArgs = {
3519
3566
  output: {
3520
3567
  __kind: 'Success';
3521
- fields: readonly [StakeOutputArgs, Array<number>];
3568
+ fields: readonly [VouchOutputArgs, Array<number>];
3522
3569
  } | {
3523
3570
  __kind: 'Failure';
3524
3571
  } | {
3525
3572
  __kind: 'MarkerForIdlBuildDoNotUseThis';
3526
- fields: readonly [StakeOutputArgs];
3573
+ fields: readonly [VouchOutputArgs];
3527
3574
  };
3528
3575
  };
3529
- declare function getStakeCallbackInstructionDataEncoder(): Encoder<StakeCallbackInstructionDataArgs>;
3530
- declare function getStakeCallbackInstructionDataDecoder(): Decoder<StakeCallbackInstructionData>;
3531
- declare function getStakeCallbackInstructionDataCodec(): Codec<StakeCallbackInstructionDataArgs, StakeCallbackInstructionData>;
3532
- 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> = {
3576
+ declare function getVouchCallbackInstructionDataEncoder(): Encoder<VouchCallbackInstructionDataArgs>;
3577
+ declare function getVouchCallbackInstructionDataDecoder(): Decoder<VouchCallbackInstructionData>;
3578
+ declare function getVouchCallbackInstructionDataCodec(): Codec<VouchCallbackInstructionDataArgs, VouchCallbackInstructionData>;
3579
+ type VouchCallbackInput<TAccountArciumProgram extends string = string, TAccountCompDefAccount extends string = string, TAccountMxeAccount extends string = string, TAccountComputationAccount extends string = string, TAccountClusterAccount extends string = string, TAccountInstructionsSysvar extends string = string, TAccountVouchAccount extends string = string, TAccountMarket extends string = string> = {
3533
3580
  arciumProgram?: Address<TAccountArciumProgram>;
3534
3581
  compDefAccount: Address<TAccountCompDefAccount>;
3535
3582
  mxeAccount: Address<TAccountMxeAccount>;
3536
3583
  computationAccount: Address<TAccountComputationAccount>;
3537
3584
  clusterAccount: Address<TAccountClusterAccount>;
3538
3585
  instructionsSysvar?: Address<TAccountInstructionsSysvar>;
3539
- stakeAccount: Address<TAccountStakeAccount>;
3586
+ vouchAccount: Address<TAccountVouchAccount>;
3540
3587
  market: Address<TAccountMarket>;
3541
- output: StakeCallbackInstructionDataArgs['output'];
3588
+ output: VouchCallbackInstructionDataArgs['output'];
3542
3589
  };
3543
- 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?: {
3590
+ declare function getVouchCallbackInstruction<TAccountArciumProgram extends string, TAccountCompDefAccount extends string, TAccountMxeAccount extends string, TAccountComputationAccount extends string, TAccountClusterAccount extends string, TAccountInstructionsSysvar extends string, TAccountVouchAccount extends string, TAccountMarket extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: VouchCallbackInput<TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountVouchAccount, TAccountMarket>, config?: {
3544
3591
  programAddress?: TProgramAddress;
3545
- }): StakeCallbackInstruction<TProgramAddress, TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountStakeAccount, TAccountMarket>;
3546
- type ParsedStakeCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3592
+ }): VouchCallbackInstruction<TProgramAddress, TAccountArciumProgram, TAccountCompDefAccount, TAccountMxeAccount, TAccountComputationAccount, TAccountClusterAccount, TAccountInstructionsSysvar, TAccountVouchAccount, TAccountMarket>;
3593
+ type ParsedVouchCallbackInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3547
3594
  programAddress: Address<TProgram>;
3548
3595
  accounts: {
3549
3596
  arciumProgram: TAccountMetas[0];
@@ -3552,12 +3599,12 @@ type ParsedStakeCallbackInstruction<TProgram extends string = typeof OPPORTUNITY
3552
3599
  computationAccount: TAccountMetas[3];
3553
3600
  clusterAccount: TAccountMetas[4];
3554
3601
  instructionsSysvar: TAccountMetas[5];
3555
- stakeAccount: TAccountMetas[6];
3602
+ vouchAccount: TAccountMetas[6];
3556
3603
  market: TAccountMetas[7];
3557
3604
  };
3558
- data: StakeCallbackInstructionData;
3605
+ data: VouchCallbackInstructionData;
3559
3606
  };
3560
- declare function parseStakeCallbackInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedStakeCallbackInstruction<TProgram, TAccountMetas>;
3607
+ declare function parseVouchCallbackInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedVouchCallbackInstruction<TProgram, TAccountMetas>;
3561
3608
 
3562
3609
  /**
3563
3610
  * This code was AUTOGENERATED using the Codama library.
@@ -3567,9 +3614,9 @@ declare function parseStakeCallbackInstruction<TProgram extends string, TAccount
3567
3614
  * @see https://github.com/codama-idl/codama
3568
3615
  */
3569
3616
 
3570
- declare const STAKE_COMP_DEF_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3571
- declare function getStakeCompDefDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3572
- type StakeCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountAddressLookupTable extends string | AccountMeta<string> = string, TAccountLutProgram extends string | AccountMeta<string> = 'AddressLookupTab1e1111111111111111111111111', TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3617
+ declare const VOUCH_COMP_DEF_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3618
+ declare function getVouchCompDefDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3619
+ type VouchCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountMxeAccount extends string | AccountMeta<string> = string, TAccountCompDefAccount extends string | AccountMeta<string> = string, TAccountAddressLookupTable extends string | AccountMeta<string> = string, TAccountLutProgram extends string | AccountMeta<string> = 'AddressLookupTab1e1111111111111111111111111', TAccountArciumProgram extends string | AccountMeta<string> = 'Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3573
3620
  TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
3574
3621
  TAccountMxeAccount extends string ? WritableAccount<TAccountMxeAccount> : TAccountMxeAccount,
3575
3622
  TAccountCompDefAccount extends string ? WritableAccount<TAccountCompDefAccount> : TAccountCompDefAccount,
@@ -3579,14 +3626,14 @@ type StakeCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET
3579
3626
  TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
3580
3627
  ...TRemainingAccounts
3581
3628
  ]>;
3582
- type StakeCompDefInstructionData = {
3629
+ type VouchCompDefInstructionData = {
3583
3630
  discriminator: ReadonlyUint8Array;
3584
3631
  };
3585
- type StakeCompDefInstructionDataArgs = {};
3586
- declare function getStakeCompDefInstructionDataEncoder(): FixedSizeEncoder<StakeCompDefInstructionDataArgs>;
3587
- declare function getStakeCompDefInstructionDataDecoder(): FixedSizeDecoder<StakeCompDefInstructionData>;
3588
- declare function getStakeCompDefInstructionDataCodec(): FixedSizeCodec<StakeCompDefInstructionDataArgs, StakeCompDefInstructionData>;
3589
- type StakeCompDefInput<TAccountPayer extends string = string, TAccountMxeAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountAddressLookupTable extends string = string, TAccountLutProgram extends string = string, TAccountArciumProgram extends string = string, TAccountSystemProgram extends string = string> = {
3632
+ type VouchCompDefInstructionDataArgs = {};
3633
+ declare function getVouchCompDefInstructionDataEncoder(): FixedSizeEncoder<VouchCompDefInstructionDataArgs>;
3634
+ declare function getVouchCompDefInstructionDataDecoder(): FixedSizeDecoder<VouchCompDefInstructionData>;
3635
+ declare function getVouchCompDefInstructionDataCodec(): FixedSizeCodec<VouchCompDefInstructionDataArgs, VouchCompDefInstructionData>;
3636
+ type VouchCompDefInput<TAccountPayer extends string = string, TAccountMxeAccount extends string = string, TAccountCompDefAccount extends string = string, TAccountAddressLookupTable extends string = string, TAccountLutProgram extends string = string, TAccountArciumProgram extends string = string, TAccountSystemProgram extends string = string> = {
3590
3637
  payer: TransactionSigner<TAccountPayer>;
3591
3638
  mxeAccount: Address<TAccountMxeAccount>;
3592
3639
  compDefAccount: Address<TAccountCompDefAccount>;
@@ -3595,10 +3642,10 @@ type StakeCompDefInput<TAccountPayer extends string = string, TAccountMxeAccount
3595
3642
  arciumProgram?: Address<TAccountArciumProgram>;
3596
3643
  systemProgram?: Address<TAccountSystemProgram>;
3597
3644
  };
3598
- declare function getStakeCompDefInstruction<TAccountPayer extends string, TAccountMxeAccount extends string, TAccountCompDefAccount extends string, TAccountAddressLookupTable extends string, TAccountLutProgram extends string, TAccountArciumProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: StakeCompDefInput<TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountAddressLookupTable, TAccountLutProgram, TAccountArciumProgram, TAccountSystemProgram>, config?: {
3645
+ declare function getVouchCompDefInstruction<TAccountPayer extends string, TAccountMxeAccount extends string, TAccountCompDefAccount extends string, TAccountAddressLookupTable extends string, TAccountLutProgram extends string, TAccountArciumProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: VouchCompDefInput<TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountAddressLookupTable, TAccountLutProgram, TAccountArciumProgram, TAccountSystemProgram>, config?: {
3599
3646
  programAddress?: TProgramAddress;
3600
- }): StakeCompDefInstruction<TProgramAddress, TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountAddressLookupTable, TAccountLutProgram, TAccountArciumProgram, TAccountSystemProgram>;
3601
- type ParsedStakeCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3647
+ }): VouchCompDefInstruction<TProgramAddress, TAccountPayer, TAccountMxeAccount, TAccountCompDefAccount, TAccountAddressLookupTable, TAccountLutProgram, TAccountArciumProgram, TAccountSystemProgram>;
3648
+ type ParsedVouchCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3602
3649
  programAddress: Address<TProgram>;
3603
3650
  accounts: {
3604
3651
  payer: TAccountMetas[0];
@@ -3609,134 +3656,9 @@ type ParsedStakeCompDefInstruction<TProgram extends string = typeof OPPORTUNITY_
3609
3656
  arciumProgram: TAccountMetas[5];
3610
3657
  systemProgram: TAccountMetas[6];
3611
3658
  };
3612
- data: StakeCompDefInstructionData;
3613
- };
3614
- declare function parseStakeCompDefInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedStakeCompDefInstruction<TProgram, TAccountMetas>;
3615
-
3616
- /**
3617
- * This code was AUTOGENERATED using the Codama library.
3618
- * Please DO NOT EDIT THIS FILE, instead use visitors
3619
- * to add features, then rerun Codama to update it.
3620
- *
3621
- * @see https://github.com/codama-idl/codama
3622
- */
3623
-
3624
- declare const UNSTAKE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3625
- declare function getUnstakeDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3626
- 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<[
3627
- TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
3628
- TAccountOwner extends string ? ReadonlyAccount<TAccountOwner> : TAccountOwner,
3629
- TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
3630
- TAccountStakeAccount extends string ? WritableAccount<TAccountStakeAccount> : TAccountStakeAccount,
3631
- TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
3632
- TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
3633
- TAccountOwnerTokenAccount extends string ? WritableAccount<TAccountOwnerTokenAccount> : TAccountOwnerTokenAccount,
3634
- TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
3635
- TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
3636
- ...TRemainingAccounts
3637
- ]>;
3638
- type UnstakeInstructionData = {
3639
- discriminator: ReadonlyUint8Array;
3640
- stakeAccountId: number;
3641
- };
3642
- type UnstakeInstructionDataArgs = {
3643
- stakeAccountId: number;
3644
- };
3645
- declare function getUnstakeInstructionDataEncoder(): FixedSizeEncoder<UnstakeInstructionDataArgs>;
3646
- declare function getUnstakeInstructionDataDecoder(): FixedSizeDecoder<UnstakeInstructionData>;
3647
- declare function getUnstakeInstructionDataCodec(): FixedSizeCodec<UnstakeInstructionDataArgs, UnstakeInstructionData>;
3648
- 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> = {
3649
- signer: TransactionSigner<TAccountSigner>;
3650
- owner: Address<TAccountOwner>;
3651
- market: Address<TAccountMarket>;
3652
- stakeAccount?: Address<TAccountStakeAccount>;
3653
- tokenMint: Address<TAccountTokenMint>;
3654
- marketTokenAta?: Address<TAccountMarketTokenAta>;
3655
- /** Owner's token account to receive staked tokens */
3656
- ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
3657
- tokenProgram: Address<TAccountTokenProgram>;
3658
- systemProgram?: Address<TAccountSystemProgram>;
3659
- stakeAccountId: UnstakeInstructionDataArgs['stakeAccountId'];
3660
- };
3661
- 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?: {
3662
- programAddress?: TProgramAddress;
3663
- }): Promise<UnstakeInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>>;
3664
- 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> = {
3665
- signer: TransactionSigner<TAccountSigner>;
3666
- owner: Address<TAccountOwner>;
3667
- market: Address<TAccountMarket>;
3668
- stakeAccount: Address<TAccountStakeAccount>;
3669
- tokenMint: Address<TAccountTokenMint>;
3670
- marketTokenAta: Address<TAccountMarketTokenAta>;
3671
- /** Owner's token account to receive staked tokens */
3672
- ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
3673
- tokenProgram: Address<TAccountTokenProgram>;
3674
- systemProgram?: Address<TAccountSystemProgram>;
3675
- stakeAccountId: UnstakeInstructionDataArgs['stakeAccountId'];
3676
- };
3677
- 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?: {
3678
- programAddress?: TProgramAddress;
3679
- }): UnstakeInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountStakeAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>;
3680
- type ParsedUnstakeInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3681
- programAddress: Address<TProgram>;
3682
- accounts: {
3683
- signer: TAccountMetas[0];
3684
- owner: TAccountMetas[1];
3685
- market: TAccountMetas[2];
3686
- stakeAccount: TAccountMetas[3];
3687
- tokenMint: TAccountMetas[4];
3688
- marketTokenAta: TAccountMetas[5];
3689
- /** Owner's token account to receive staked tokens */
3690
- ownerTokenAccount: TAccountMetas[6];
3691
- tokenProgram: TAccountMetas[7];
3692
- systemProgram: TAccountMetas[8];
3693
- };
3694
- data: UnstakeInstructionData;
3659
+ data: VouchCompDefInstructionData;
3695
3660
  };
3696
- declare function parseUnstakeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUnstakeInstruction<TProgram, TAccountMetas>;
3697
-
3698
- /**
3699
- * This code was AUTOGENERATED using the Codama library.
3700
- * Please DO NOT EDIT THIS FILE, instead use visitors
3701
- * to add features, then rerun Codama to update it.
3702
- *
3703
- * @see https://github.com/codama-idl/codama
3704
- */
3705
-
3706
- declare const UPDATE_PLATFORM_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3707
- declare function getUpdatePlatformConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3708
- 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<[
3709
- TAccountUpdateAuthority extends string ? ReadonlySignerAccount<TAccountUpdateAuthority> & AccountSignerMeta<TAccountUpdateAuthority> : TAccountUpdateAuthority,
3710
- TAccountPlatformConfig extends string ? WritableAccount<TAccountPlatformConfig> : TAccountPlatformConfig,
3711
- ...TRemainingAccounts
3712
- ]>;
3713
- type UpdatePlatformConfigInstructionData = {
3714
- discriminator: ReadonlyUint8Array;
3715
- params: UpdatePlatformParameters;
3716
- };
3717
- type UpdatePlatformConfigInstructionDataArgs = {
3718
- params: UpdatePlatformParametersArgs;
3719
- };
3720
- declare function getUpdatePlatformConfigInstructionDataEncoder(): Encoder<UpdatePlatformConfigInstructionDataArgs>;
3721
- declare function getUpdatePlatformConfigInstructionDataDecoder(): Decoder<UpdatePlatformConfigInstructionData>;
3722
- declare function getUpdatePlatformConfigInstructionDataCodec(): Codec<UpdatePlatformConfigInstructionDataArgs, UpdatePlatformConfigInstructionData>;
3723
- type UpdatePlatformConfigInput<TAccountUpdateAuthority extends string = string, TAccountPlatformConfig extends string = string> = {
3724
- updateAuthority: TransactionSigner<TAccountUpdateAuthority>;
3725
- platformConfig: Address<TAccountPlatformConfig>;
3726
- params: UpdatePlatformConfigInstructionDataArgs['params'];
3727
- };
3728
- declare function getUpdatePlatformConfigInstruction<TAccountUpdateAuthority extends string, TAccountPlatformConfig extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: UpdatePlatformConfigInput<TAccountUpdateAuthority, TAccountPlatformConfig>, config?: {
3729
- programAddress?: TProgramAddress;
3730
- }): UpdatePlatformConfigInstruction<TProgramAddress, TAccountUpdateAuthority, TAccountPlatformConfig>;
3731
- type ParsedUpdatePlatformConfigInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3732
- programAddress: Address<TProgram>;
3733
- accounts: {
3734
- updateAuthority: TAccountMetas[0];
3735
- platformConfig: TAccountMetas[1];
3736
- };
3737
- data: UpdatePlatformConfigInstructionData;
3738
- };
3739
- declare function parseUpdatePlatformConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdatePlatformConfigInstruction<TProgram, TAccountMetas>;
3661
+ declare function parseVouchCompDefInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedVouchCompDefInstruction<TProgram, TAccountMetas>;
3740
3662
 
3741
3663
  /**
3742
3664
  * This code was AUTOGENERATED using the Codama library.
@@ -3807,6 +3729,88 @@ type ParsedWithdrawRewardInstruction<TProgram extends string = typeof OPPORTUNIT
3807
3729
  };
3808
3730
  declare function parseWithdrawRewardInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedWithdrawRewardInstruction<TProgram, TAccountMetas>;
3809
3731
 
3732
+ /**
3733
+ * This code was AUTOGENERATED using the Codama library.
3734
+ * Please DO NOT EDIT THIS FILE, instead use visitors
3735
+ * to add features, then rerun Codama to update it.
3736
+ *
3737
+ * @see https://github.com/codama-idl/codama
3738
+ */
3739
+
3740
+ declare const WITHDRAW_VOUCH_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3741
+ declare function getWithdrawVouchDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3742
+ type WithdrawVouchInstruction<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, TAccountVouchAccount 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<[
3743
+ TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
3744
+ TAccountOwner extends string ? ReadonlyAccount<TAccountOwner> : TAccountOwner,
3745
+ TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket,
3746
+ TAccountVouchAccount extends string ? WritableAccount<TAccountVouchAccount> : TAccountVouchAccount,
3747
+ TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
3748
+ TAccountMarketTokenAta extends string ? WritableAccount<TAccountMarketTokenAta> : TAccountMarketTokenAta,
3749
+ TAccountOwnerTokenAccount extends string ? WritableAccount<TAccountOwnerTokenAccount> : TAccountOwnerTokenAccount,
3750
+ TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
3751
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
3752
+ ...TRemainingAccounts
3753
+ ]>;
3754
+ type WithdrawVouchInstructionData = {
3755
+ discriminator: ReadonlyUint8Array;
3756
+ vouchAccountId: number;
3757
+ };
3758
+ type WithdrawVouchInstructionDataArgs = {
3759
+ vouchAccountId: number;
3760
+ };
3761
+ declare function getWithdrawVouchInstructionDataEncoder(): FixedSizeEncoder<WithdrawVouchInstructionDataArgs>;
3762
+ declare function getWithdrawVouchInstructionDataDecoder(): FixedSizeDecoder<WithdrawVouchInstructionData>;
3763
+ declare function getWithdrawVouchInstructionDataCodec(): FixedSizeCodec<WithdrawVouchInstructionDataArgs, WithdrawVouchInstructionData>;
3764
+ type WithdrawVouchAsyncInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountVouchAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
3765
+ signer: TransactionSigner<TAccountSigner>;
3766
+ owner: Address<TAccountOwner>;
3767
+ market: Address<TAccountMarket>;
3768
+ vouchAccount?: Address<TAccountVouchAccount>;
3769
+ tokenMint: Address<TAccountTokenMint>;
3770
+ marketTokenAta?: Address<TAccountMarketTokenAta>;
3771
+ /** Owner's token account to receive vouched tokens */
3772
+ ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
3773
+ tokenProgram: Address<TAccountTokenProgram>;
3774
+ systemProgram?: Address<TAccountSystemProgram>;
3775
+ vouchAccountId: WithdrawVouchInstructionDataArgs['vouchAccountId'];
3776
+ };
3777
+ declare function getWithdrawVouchInstructionAsync<TAccountSigner extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountVouchAccount 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: WithdrawVouchAsyncInput<TAccountSigner, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
3778
+ programAddress?: TProgramAddress;
3779
+ }): Promise<WithdrawVouchInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>>;
3780
+ type WithdrawVouchInput<TAccountSigner extends string = string, TAccountOwner extends string = string, TAccountMarket extends string = string, TAccountVouchAccount extends string = string, TAccountTokenMint extends string = string, TAccountMarketTokenAta extends string = string, TAccountOwnerTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
3781
+ signer: TransactionSigner<TAccountSigner>;
3782
+ owner: Address<TAccountOwner>;
3783
+ market: Address<TAccountMarket>;
3784
+ vouchAccount: Address<TAccountVouchAccount>;
3785
+ tokenMint: Address<TAccountTokenMint>;
3786
+ marketTokenAta: Address<TAccountMarketTokenAta>;
3787
+ /** Owner's token account to receive vouched tokens */
3788
+ ownerTokenAccount: Address<TAccountOwnerTokenAccount>;
3789
+ tokenProgram: Address<TAccountTokenProgram>;
3790
+ systemProgram?: Address<TAccountSystemProgram>;
3791
+ vouchAccountId: WithdrawVouchInstructionDataArgs['vouchAccountId'];
3792
+ };
3793
+ declare function getWithdrawVouchInstruction<TAccountSigner extends string, TAccountOwner extends string, TAccountMarket extends string, TAccountVouchAccount 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: WithdrawVouchInput<TAccountSigner, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>, config?: {
3794
+ programAddress?: TProgramAddress;
3795
+ }): WithdrawVouchInstruction<TProgramAddress, TAccountSigner, TAccountOwner, TAccountMarket, TAccountVouchAccount, TAccountTokenMint, TAccountMarketTokenAta, TAccountOwnerTokenAccount, TAccountTokenProgram, TAccountSystemProgram>;
3796
+ type ParsedWithdrawVouchInstruction<TProgram extends string = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3797
+ programAddress: Address<TProgram>;
3798
+ accounts: {
3799
+ signer: TAccountMetas[0];
3800
+ owner: TAccountMetas[1];
3801
+ market: TAccountMetas[2];
3802
+ vouchAccount: TAccountMetas[3];
3803
+ tokenMint: TAccountMetas[4];
3804
+ marketTokenAta: TAccountMetas[5];
3805
+ /** Owner's token account to receive vouched tokens */
3806
+ ownerTokenAccount: TAccountMetas[6];
3807
+ tokenProgram: TAccountMetas[7];
3808
+ systemProgram: TAccountMetas[8];
3809
+ };
3810
+ data: WithdrawVouchInstructionData;
3811
+ };
3812
+ declare function parseWithdrawVouchInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedWithdrawVouchInstruction<TProgram, TAccountMetas>;
3813
+
3810
3814
  interface BaseInstructionParams {
3811
3815
  programAddress?: Address;
3812
3816
  }
@@ -3842,12 +3846,12 @@ interface CreateMarketParams extends BaseInstructionParams {
3842
3846
  authorizedReaderPubkey: ByteArray;
3843
3847
  earlinessCutoffSeconds: bigint;
3844
3848
  earlinessMultiplier: number;
3845
- minStakeAmount: bigint;
3849
+ minVouchAmount: bigint;
3846
3850
  creatorFeeClaimer: Address;
3847
3851
  }
3848
3852
  declare function createMarket(input: CreateMarketParams): Promise<CreateMarketInstruction<string>>;
3849
3853
 
3850
- type CompDefCircuitName = "stake" | "reveal_stake";
3854
+ type CompDefCircuitName = "vouch" | "reveal_vouch";
3851
3855
  declare const ALL_COMP_DEF_CIRCUITS: CompDefCircuitName[];
3852
3856
  interface InitCompDefConfig extends BaseInstructionParams {
3853
3857
  }
@@ -3875,13 +3879,13 @@ interface AwaitComputationOptions {
3875
3879
  */
3876
3880
  declare const awaitComputationFinalization: (rpc: Rpc<SolanaRpcApi>, computationAccount: Address, invocationSignature: Signature, options?: AwaitComputationOptions) => Promise<Signature>;
3877
3881
 
3878
- interface StakeParams extends BaseInstructionParams {
3882
+ interface VouchParams extends BaseInstructionParams {
3879
3883
  signer: TransactionSigner;
3880
3884
  payer: TransactionSigner;
3881
3885
  market: Address;
3882
- /** PDA of the stake_account being staked into. Use `getStakeAccountAddress(owner, market, id)`. */
3883
- stakeAccount: Address;
3884
- stakeAccountId: number;
3886
+ /** PDA of the vouch_account being vouched into. Use `getVouchAccountAddress(owner, market, id)`. */
3887
+ vouchAccount: Address;
3888
+ vouchAccountId: number;
3885
3889
  tokenMint: Address;
3886
3890
  signerTokenAccount: Address;
3887
3891
  tokenProgram: Address;
@@ -3895,17 +3899,17 @@ interface StakeParams extends BaseInstructionParams {
3895
3899
  /** u128 nonce committed to encrypted-state derivation. */
3896
3900
  stateNonce: bigint;
3897
3901
  }
3898
- declare function stake(input: StakeParams, config: ArciumConfig): Promise<StakeInstruction<string>>;
3899
- declare function awaitStakeFinalization(rpc: Rpc<SolanaRpcApi>, txSignature: Signature, config: ArciumConfig, options?: AwaitComputationOptions): Promise<Signature>;
3902
+ declare function vouch(input: VouchParams, config: ArciumConfig): Promise<VouchInstruction<string>>;
3903
+ declare function awaitVouchFinalization(rpc: Rpc<SolanaRpcApi>, txSignature: Signature, config: ArciumConfig, options?: AwaitComputationOptions): Promise<Signature>;
3900
3904
 
3901
- interface RevealStakeParams extends BaseInstructionParams {
3905
+ interface RevealVouchParams extends BaseInstructionParams {
3902
3906
  signer: TransactionSigner;
3903
3907
  owner: Address;
3904
3908
  market: Address;
3905
- stakeAccountId: number;
3909
+ vouchAccountId: number;
3906
3910
  }
3907
- declare function revealStake(input: RevealStakeParams, config: ArciumConfig): Promise<RevealStakeInstruction<string>>;
3908
- declare function awaitRevealStakeFinalization(rpc: Rpc<SolanaRpcApi>, txSignature: Signature, config: ArciumConfig, options?: AwaitComputationOptions): Promise<Signature>;
3911
+ declare function revealVouch(input: RevealVouchParams, config: ArciumConfig): Promise<RevealVouchInstruction<string>>;
3912
+ declare function awaitRevealVouchFinalization(rpc: Rpc<SolanaRpcApi>, txSignature: Signature, config: ArciumConfig, options?: AwaitComputationOptions): Promise<Signature>;
3909
3913
 
3910
3914
  interface AddMarketOptionParams extends BaseInstructionParams {
3911
3915
  signer: TransactionSigner;
@@ -3918,7 +3922,7 @@ interface OpenMarketParams extends BaseInstructionParams {
3918
3922
  marketAuthority: TransactionSigner;
3919
3923
  market: Address;
3920
3924
  platformConfig: Address;
3921
- timeToStake: bigint;
3925
+ timeToVouch: bigint;
3922
3926
  }
3923
3927
  declare function openMarket(input: OpenMarketParams): OpenMarketInstruction<string>;
3924
3928
 
@@ -3953,13 +3957,13 @@ interface AddRewardParams extends BaseInstructionParams {
3953
3957
  }
3954
3958
  declare function addReward(input: AddRewardParams): Promise<AddRewardInstruction<string>>;
3955
3959
 
3956
- interface InitStakeAccountParams extends BaseInstructionParams {
3960
+ interface InitVouchAccountParams extends BaseInstructionParams {
3957
3961
  payer: TransactionSigner;
3958
3962
  owner: Address;
3959
3963
  market: Address;
3960
- stakeAccountId: number;
3964
+ vouchAccountId: number;
3961
3965
  }
3962
- declare function initStakeAccount(input: InitStakeAccountParams): Promise<InitStakeAccountInstruction<string>>;
3966
+ declare function initVouchAccount(input: InitVouchAccountParams): Promise<InitVouchAccountInstruction<string>>;
3963
3967
 
3964
3968
  interface InitAllowedMintParams extends BaseInstructionParams {
3965
3969
  updateAuthority: TransactionSigner;
@@ -3971,7 +3975,7 @@ declare function initAllowedMint(input: InitAllowedMintParams): Promise<InitAllo
3971
3975
  interface ClaimRewardsParams extends BaseInstructionParams {
3972
3976
  owner: TransactionSigner;
3973
3977
  market: Address;
3974
- stakeAccount: Address;
3978
+ vouchAccount: Address;
3975
3979
  option: Address;
3976
3980
  tokenMint: Address;
3977
3981
  ownerTokenAccount: Address;
@@ -3979,36 +3983,36 @@ interface ClaimRewardsParams extends BaseInstructionParams {
3979
3983
  }
3980
3984
  declare function claimRewards(input: ClaimRewardsParams): Promise<ClaimRewardsInstruction<string>>;
3981
3985
 
3982
- interface CloseStakeAccountParams extends BaseInstructionParams {
3986
+ interface CloseVouchAccountParams extends BaseInstructionParams {
3983
3987
  owner: TransactionSigner;
3984
3988
  market: Address;
3985
- stakeAccount: Address;
3989
+ vouchAccount: Address;
3986
3990
  option: Address;
3987
3991
  tokenMint: Address;
3988
3992
  ownerTokenAccount: Address;
3989
3993
  tokenProgram: Address;
3990
3994
  }
3991
- declare function closeStakeAccount(input: CloseStakeAccountParams): Promise<CloseStakeAccountInstruction<string>>;
3995
+ declare function closeVouchAccount(input: CloseVouchAccountParams): Promise<CloseVouchAccountInstruction<string>>;
3992
3996
 
3993
- interface CloseUnrevealedStakeAccountParams extends BaseInstructionParams {
3997
+ interface CloseUnrevealedVouchAccountParams extends BaseInstructionParams {
3994
3998
  owner: TransactionSigner;
3995
3999
  market: Address;
3996
- stakeAccount: Address;
4000
+ vouchAccount: Address;
3997
4001
  tokenMint: Address;
3998
4002
  ownerTokenAccount: Address;
3999
4003
  tokenProgram: Address;
4000
4004
  }
4001
- declare function closeUnrevealedStakeAccount(input: CloseUnrevealedStakeAccountParams): Promise<CloseUnrevealedStakeAccountInstruction<string>>;
4005
+ declare function closeUnrevealedVouchAccount(input: CloseUnrevealedVouchAccountParams): Promise<CloseUnrevealedVouchAccountInstruction<string>>;
4002
4006
 
4003
- interface CloseStuckStakeAccountParams extends BaseInstructionParams {
4007
+ interface CloseStuckVouchAccountParams extends BaseInstructionParams {
4004
4008
  signer: TransactionSigner;
4005
4009
  market: Address;
4006
4010
  tokenMint: Address;
4007
4011
  signerTokenAccount: Address;
4008
4012
  tokenProgram: Address;
4009
- stakeAccountId: number;
4013
+ vouchAccountId: number;
4010
4014
  }
4011
- declare function closeStuckStakeAccount(input: CloseStuckStakeAccountParams): Promise<CloseStuckStakeAccountInstruction<string>>;
4015
+ declare function closeStuckVouchAccount(input: CloseStuckVouchAccountParams): Promise<CloseStuckVouchAccountInstruction<string>>;
4012
4016
 
4013
4017
  interface CloseOptionAccountParams extends BaseInstructionParams {
4014
4018
  signer: TransactionSigner;
@@ -4018,25 +4022,25 @@ interface CloseOptionAccountParams extends BaseInstructionParams {
4018
4022
  }
4019
4023
  declare function closeOptionAccount(input: CloseOptionAccountParams): Promise<CloseOptionAccountInstruction<string>>;
4020
4024
 
4021
- interface UnstakeParams extends BaseInstructionParams {
4025
+ interface WithdrawVouchParams extends BaseInstructionParams {
4022
4026
  signer: TransactionSigner;
4023
4027
  owner: Address;
4024
4028
  market: Address;
4025
4029
  tokenMint: Address;
4026
4030
  ownerTokenAccount: Address;
4027
4031
  tokenProgram: Address;
4028
- stakeAccountId: number;
4032
+ vouchAccountId: number;
4029
4033
  }
4030
- declare function unstake(input: UnstakeParams): Promise<UnstakeInstruction<string>>;
4034
+ declare function withdrawVouch(input: WithdrawVouchParams): Promise<WithdrawVouchInstruction<string>>;
4031
4035
 
4032
- interface FinalizeRevealStakeParams extends BaseInstructionParams {
4036
+ interface FinalizeRevealVouchParams extends BaseInstructionParams {
4033
4037
  signer: TransactionSigner;
4034
4038
  owner: Address;
4035
4039
  market: Address;
4036
4040
  optionId: number | bigint;
4037
- stakeAccountId: number;
4041
+ vouchAccountId: number;
4038
4042
  }
4039
- declare function finalizeRevealStake(input: FinalizeRevealStakeParams): Promise<FinalizeRevealStakeInstruction<string>>;
4043
+ declare function finalizeRevealVouch(input: FinalizeRevealVouchParams): Promise<FinalizeRevealVouchInstruction<string>>;
4040
4044
 
4041
4045
  interface CreatePlatformConfigParams extends BaseInstructionParams {
4042
4046
  signer: TransactionSigner;
@@ -4046,7 +4050,7 @@ interface CreatePlatformConfigParams extends BaseInstructionParams {
4046
4050
  creatorFeeBp: number;
4047
4051
  feeClaimAuthority: Address;
4048
4052
  revealAuthority: Address;
4049
- minTimeToStakeSeconds: bigint;
4053
+ minTimeToVouchSeconds: bigint;
4050
4054
  revealPeriodSeconds: bigint;
4051
4055
  marketResolutionDeadlineSeconds: bigint;
4052
4056
  }
@@ -4059,7 +4063,7 @@ interface UpdatePlatformConfigParams extends BaseInstructionParams {
4059
4063
  rewardPoolFeeBp: number;
4060
4064
  creatorFeeBp: number;
4061
4065
  revealAuthority: Address;
4062
- minTimeToStakeSeconds: bigint;
4066
+ minTimeToVouchSeconds: bigint;
4063
4067
  revealPeriodSeconds: bigint;
4064
4068
  marketResolutionDeadlineSeconds: bigint;
4065
4069
  }
@@ -4122,8 +4126,8 @@ declare function getOpportunityMarketOptionAddress(market: Address, optionId: nu
4122
4126
  declare const SPONSOR_SEED = "sponsor";
4123
4127
  declare function getOpportunityMarketSponsorAddress(sponsor: Address, market: Address, programId?: Address): Promise<ProgramDerivedAddress>;
4124
4128
 
4125
- declare const STAKE_ACCOUNT_SEED = "stake_account";
4126
- declare function getStakeAccountAddress(owner: Address, market: Address, stakeAccountId: number, programId?: Address): Promise<ProgramDerivedAddress>;
4129
+ declare const VOUCH_ACCOUNT_SEED = "vouch_account";
4130
+ declare function getVouchAccountAddress(owner: Address, market: Address, vouchAccountId: number, programId?: Address): Promise<ProgramDerivedAddress>;
4127
4131
 
4128
4132
  interface X25519Keypair {
4129
4133
  publicKey: Uint8Array;
@@ -4150,4 +4154,4 @@ declare function deriveSharedSecret(userSecretKey: Uint8Array, mxePublicKey: Uin
4150
4154
  declare function createCipher(userSecretKey: Uint8Array, mxePublicKey: Uint8Array): RescueCipher;
4151
4155
  declare function nonceToBytes(nonce: bigint): Uint8Array;
4152
4156
 
4153
- 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, CLAIM_REWARDS_DISCRIMINATOR, CLOSE_OPTION_ACCOUNT_DISCRIMINATOR, CLOSE_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_STUCK_STAKE_ACCOUNT_DISCRIMINATOR, CLOSE_UNREVEALED_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 ClaimRewardsAsyncInput, type ClaimRewardsInput, type ClaimRewardsInstruction, type ClaimRewardsInstructionData, type ClaimRewardsInstructionDataArgs, type ClaimRewardsParams, 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 CloseUnrevealedStakeAccountAsyncInput, type CloseUnrevealedStakeAccountInput, type CloseUnrevealedStakeAccountInstruction, type CloseUnrevealedStakeAccountInstructionData, type CloseUnrevealedStakeAccountInstructionDataArgs, type CloseUnrevealedStakeAccountParams, type Cluster, type ClusterArgs, type CollectedFees, type CollectedFeesArgs, type CompDefCircuitName, type ComputationDefinitionAccount, type ComputationDefinitionAccountArgs, type ComputationDefinitionMeta, type ComputationDefinitionMetaArgs, type ComputationSignature, type ComputationSignatureArgs, type CreateMarketAsyncInput, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateMarketParameters, type CreateMarketParametersArgs, 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 InitPlatformConfigInput, type InitPlatformConfigInstruction, type InitPlatformConfigInstructionData, type InitPlatformConfigInstructionDataArgs, type InitPlatformParameters, type InitPlatformParametersArgs, 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__ALREADY_REVEALED, OPPORTUNITY_MARKET_ERROR__ALREADY_STAKED, OPPORTUNITY_MARKET_ERROR__ALREADY_UNSTAKED, OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH, 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__NOT_REVEALED, OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION, 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__REWARD_ALREADY_CLAIMED, OPPORTUNITY_MARKET_ERROR__STAKE_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__STAKE_NOT_STUCK, OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED, OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED, OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED, OPPORTUNITY_MARKET_ERROR__WRONG_MARKET_PHASE, 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, PLATFORM_CONFIG_DISCRIMINATOR, PLATFORM_CONFIG_SEED, Parameter, type ParameterArgs, type ParsedAddMarketOptionInstruction, type ParsedAddRewardInstruction, type ParsedClaimCreatorFeesInstruction, type ParsedClaimFeesInstruction, type ParsedClaimRewardsInstruction, type ParsedCloseOptionAccountInstruction, type ParsedCloseStakeAccountInstruction, type ParsedCloseStuckStakeAccountInstruction, type ParsedCloseUnrevealedStakeAccountInstruction, type ParsedCreateMarketInstruction, type ParsedEndRevealPeriodInstruction, type ParsedFinalizeRevealStakeInstruction, type ParsedInitAllowedMintInstruction, type ParsedInitPlatformConfigInstruction, type ParsedInitStakeAccountInstruction, type ParsedOpenMarketInstruction, type ParsedOpportunityMarketInstruction, type ParsedResolveMarketInstruction, 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 PlatformConfig, type PlatformConfigArgs, RESOLVE_MARKET_DISCRIMINATOR, REVEAL_STAKE_CALLBACK_DISCRIMINATOR, REVEAL_STAKE_COMP_DEF_DISCRIMINATOR, REVEAL_STAKE_DISCRIMINATOR, type ResolveMarketInput, type ResolveMarketInstruction, type ResolveMarketInstructionData, type ResolveMarketInstructionDataArgs, type ResolveMarketParams, 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 RewardWithdrawnEvent, type RewardWithdrawnEventArgs, type RewardsClaimedEvent, type RewardsClaimedEventArgs, 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 StakeAccountClosedEvent, type StakeAccountClosedEventArgs, 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 StakeParameters, type StakeParametersArgs, type StakeParams, type StakeRevealedEvent, type StakeRevealedEventArgs, type StakedEvent, type StakedEventArgs, 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 UpdatePlatformParameters, type UpdatePlatformParametersArgs, 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, awaitComputationFinalization, awaitRevealStakeFinalization, awaitStakeFinalization, circuitSource, claimCreatorFees, claimFees, claimRewards, closeOptionAccount, closeStakeAccount, closeStuckStakeAccount, closeUnrevealedStakeAccount, 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, getClaimRewardsDiscriminatorBytes, getClaimRewardsInstruction, getClaimRewardsInstructionAsync, getClaimRewardsInstructionDataCodec, getClaimRewardsInstructionDataDecoder, getClaimRewardsInstructionDataEncoder, getClockAccountCodec, getClockAccountDecoder, getClockAccountEncoder, getCloseOptionAccountDiscriminatorBytes, getCloseOptionAccountInstruction, getCloseOptionAccountInstructionAsync, getCloseOptionAccountInstructionDataCodec, getCloseOptionAccountInstructionDataDecoder, getCloseOptionAccountInstructionDataEncoder, getCloseStakeAccountDiscriminatorBytes, getCloseStakeAccountInstruction, getCloseStakeAccountInstructionAsync, getCloseStakeAccountInstructionDataCodec, getCloseStakeAccountInstructionDataDecoder, getCloseStakeAccountInstructionDataEncoder, getCloseStuckStakeAccountDiscriminatorBytes, getCloseStuckStakeAccountInstruction, getCloseStuckStakeAccountInstructionAsync, getCloseStuckStakeAccountInstructionDataCodec, getCloseStuckStakeAccountInstructionDataDecoder, getCloseStuckStakeAccountInstructionDataEncoder, getCloseUnrevealedStakeAccountDiscriminatorBytes, getCloseUnrevealedStakeAccountInstruction, getCloseUnrevealedStakeAccountInstructionAsync, getCloseUnrevealedStakeAccountInstructionDataCodec, getCloseUnrevealedStakeAccountInstructionDataDecoder, getCloseUnrevealedStakeAccountInstructionDataEncoder, getClusterCodec, getClusterDecoder, getClusterEncoder, getCollectedFeesCodec, getCollectedFeesDecoder, getCollectedFeesEncoder, getCompDefAccount, getCompDefOffsetNumber, getComputationDefinitionAccountCodec, getComputationDefinitionAccountDecoder, getComputationDefinitionAccountEncoder, getComputationDefinitionMetaCodec, getComputationDefinitionMetaDecoder, getComputationDefinitionMetaEncoder, getComputationSignatureCodec, getComputationSignatureDecoder, getComputationSignatureEncoder, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionAsync, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getCreateMarketParametersCodec, getCreateMarketParametersDecoder, getCreateMarketParametersEncoder, 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, getInitPlatformConfigInstructionDataCodec, getInitPlatformConfigInstructionDataDecoder, getInitPlatformConfigInstructionDataEncoder, getInitPlatformParametersCodec, getInitPlatformParametersDecoder, getInitPlatformParametersEncoder, 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, getPlatformConfigAddress, getPlatformConfigCodec, getPlatformConfigDecoder, getPlatformConfigDiscriminatorBytes, getPlatformConfigEncoder, getResolveMarketDiscriminatorBytes, getResolveMarketInstruction, getResolveMarketInstructionDataCodec, getResolveMarketInstructionDataDecoder, getResolveMarketInstructionDataEncoder, 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, getRewardWithdrawnEventCodec, getRewardWithdrawnEventDecoder, getRewardWithdrawnEventEncoder, getRewardsClaimedEventCodec, getRewardsClaimedEventDecoder, getRewardsClaimedEventEncoder, getSetFeeClaimAuthorityDiscriminatorBytes, getSetFeeClaimAuthorityInstruction, getSetFeeClaimAuthorityInstructionDataCodec, getSetFeeClaimAuthorityInstructionDataDecoder, getSetFeeClaimAuthorityInstructionDataEncoder, getSetUpdateAuthorityDiscriminatorBytes, getSetUpdateAuthorityInstruction, getSetUpdateAuthorityInstructionDataCodec, getSetUpdateAuthorityInstructionDataDecoder, getSetUpdateAuthorityInstructionDataEncoder, getSetWinningOptionDiscriminatorBytes, getSetWinningOptionInstruction, getSetWinningOptionInstructionAsync, getSetWinningOptionInstructionDataCodec, getSetWinningOptionInstructionDataDecoder, getSetWinningOptionInstructionDataEncoder, getStakeAccountAddress, getStakeAccountClosedEventCodec, getStakeAccountClosedEventDecoder, getStakeAccountClosedEventEncoder, 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, getStakeParametersCodec, getStakeParametersDecoder, getStakeParametersEncoder, getStakeRevealedEventCodec, getStakeRevealedEventDecoder, getStakeRevealedEventEncoder, getStakedEventCodec, getStakedEventDecoder, getStakedEventEncoder, getStuckStakeClosedEventCodec, getStuckStakeClosedEventDecoder, getStuckStakeClosedEventEncoder, getTimestampCodec, getTimestampDecoder, getTimestampEncoder, getUnstakeDiscriminatorBytes, getUnstakeInstruction, getUnstakeInstructionAsync, getUnstakeInstructionDataCodec, getUnstakeInstructionDataDecoder, getUnstakeInstructionDataEncoder, getUnstakedEventCodec, getUnstakedEventDecoder, getUnstakedEventEncoder, getUpdateAuthorityChangedEventCodec, getUpdateAuthorityChangedEventDecoder, getUpdateAuthorityChangedEventEncoder, getUpdatePlatformConfigDiscriminatorBytes, getUpdatePlatformConfigInstruction, getUpdatePlatformConfigInstructionDataCodec, getUpdatePlatformConfigInstructionDataDecoder, getUpdatePlatformConfigInstructionDataEncoder, getUpdatePlatformParametersCodec, getUpdatePlatformParametersDecoder, getUpdatePlatformParametersEncoder, getUtilityPubkeysCodec, getUtilityPubkeysDecoder, getUtilityPubkeysEncoder, getWinningOptionSetEventCodec, getWinningOptionSetEventDecoder, getWinningOptionSetEventEncoder, getWithdrawRewardDiscriminatorBytes, getWithdrawRewardInstruction, getWithdrawRewardInstructionAsync, getWithdrawRewardInstructionDataCodec, getWithdrawRewardInstructionDataDecoder, getWithdrawRewardInstructionDataEncoder, identifyOpportunityMarketAccount, identifyOpportunityMarketInstruction, initAllowedMint, initStakeAccount, isCircuitSource, isOpportunityMarketError, nonceToBytes, openMarket, parseAddMarketOptionInstruction, parseAddRewardInstruction, parseClaimCreatorFeesInstruction, parseClaimFeesInstruction, parseClaimRewardsInstruction, parseCloseOptionAccountInstruction, parseCloseStakeAccountInstruction, parseCloseStuckStakeAccountInstruction, parseCloseUnrevealedStakeAccountInstruction, parseCreateMarketInstruction, parseEndRevealPeriodInstruction, parseFinalizeRevealStakeInstruction, parseInitAllowedMintInstruction, parseInitPlatformConfigInstruction, parseInitStakeAccountInstruction, parseOpenMarketInstruction, parseResolveMarketInstruction, parseRevealStakeCallbackInstruction, parseRevealStakeCompDefInstruction, parseRevealStakeInstruction, parseSetFeeClaimAuthorityInstruction, parseSetUpdateAuthorityInstruction, parseSetWinningOptionInstruction, parseStakeCallbackInstruction, parseStakeCompDefInstruction, parseStakeInstruction, parseUnstakeInstruction, parseUpdatePlatformConfigInstruction, parseWithdrawRewardInstruction, randomComputationOffset, randomStateNonce, resolveMarket, revealStake, setFeeClaimAuthority, setUpdateAuthority, setWinningOption, stake, toNumberArray, unstake, updatePlatformConfig, withdrawReward };
4157
+ 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, CLAIM_REWARDS_DISCRIMINATOR, CLOSE_OPTION_ACCOUNT_DISCRIMINATOR, CLOSE_STUCK_VOUCH_ACCOUNT_DISCRIMINATOR, CLOSE_UNREVEALED_VOUCH_ACCOUNT_DISCRIMINATOR, CLOSE_VOUCH_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 ClaimRewardsAsyncInput, type ClaimRewardsInput, type ClaimRewardsInstruction, type ClaimRewardsInstructionData, type ClaimRewardsInstructionDataArgs, type ClaimRewardsParams, type ClockAccount, type ClockAccountArgs, type CloseOptionAccountAsyncInput, type CloseOptionAccountInput, type CloseOptionAccountInstruction, type CloseOptionAccountInstructionData, type CloseOptionAccountInstructionDataArgs, type CloseOptionAccountParams, type CloseStuckVouchAccountAsyncInput, type CloseStuckVouchAccountInput, type CloseStuckVouchAccountInstruction, type CloseStuckVouchAccountInstructionData, type CloseStuckVouchAccountInstructionDataArgs, type CloseStuckVouchAccountParams, type CloseUnrevealedVouchAccountAsyncInput, type CloseUnrevealedVouchAccountInput, type CloseUnrevealedVouchAccountInstruction, type CloseUnrevealedVouchAccountInstructionData, type CloseUnrevealedVouchAccountInstructionDataArgs, type CloseUnrevealedVouchAccountParams, type CloseVouchAccountAsyncInput, type CloseVouchAccountInput, type CloseVouchAccountInstruction, type CloseVouchAccountInstructionData, type CloseVouchAccountInstructionDataArgs, type CloseVouchAccountParams, type Cluster, type ClusterArgs, type CollectedFees, type CollectedFeesArgs, type CompDefCircuitName, type ComputationDefinitionAccount, type ComputationDefinitionAccountArgs, type ComputationDefinitionMeta, type ComputationDefinitionMetaArgs, type ComputationSignature, type ComputationSignatureArgs, type CreateMarketAsyncInput, type CreateMarketInput, type CreateMarketInstruction, type CreateMarketInstructionData, type CreateMarketInstructionDataArgs, type CreateMarketParameters, type CreateMarketParametersArgs, 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_VOUCH_DISCRIMINATOR, type FeeClaimAuthorityChangedEvent, type FeeClaimAuthorityChangedEventArgs, type FeePool, type FeePoolArgs, type FeeRates, type FeeRatesArgs, type FeesClaimedEvent, type FeesClaimedEventArgs, type FinalizeRevealVouchAsyncInput, type FinalizeRevealVouchInput, type FinalizeRevealVouchInstruction, type FinalizeRevealVouchInstructionData, type FinalizeRevealVouchInstructionDataArgs, type FinalizeRevealVouchParams, INIT_ALLOWED_MINT_DISCRIMINATOR, INIT_PLATFORM_CONFIG_DISCRIMINATOR, INIT_VOUCH_ACCOUNT_DISCRIMINATOR, type InitAllowedMintAsyncInput, type InitAllowedMintInput, type InitAllowedMintInstruction, type InitAllowedMintInstructionData, type InitAllowedMintInstructionDataArgs, type InitAllowedMintParams, type InitCompDefConfig, type InitPlatformConfigInput, type InitPlatformConfigInstruction, type InitPlatformConfigInstructionData, type InitPlatformConfigInstructionDataArgs, type InitPlatformParameters, type InitPlatformParametersArgs, type InitVouchAccountAsyncInput, type InitVouchAccountInput, type InitVouchAccountInstruction, type InitVouchAccountInstructionData, type InitVouchAccountInstructionDataArgs, type InitVouchAccountParams, 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__ALREADY_REVEALED, OPPORTUNITY_MARKET_ERROR__ALREADY_VOUCHED, OPPORTUNITY_MARKET_ERROR__ALREADY_VOUCH_WITHDRAWN, OPPORTUNITY_MARKET_ERROR__CREATOR_MISMATCH, 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__NOT_REVEALED, OPPORTUNITY_MARKET_ERROR__NO_FEES_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_FINALIZED_WINNING_OPTION, OPPORTUNITY_MARKET_ERROR__NO_REWARD_TO_CLAIM, OPPORTUNITY_MARKET_ERROR__NO_VOUCH, OPPORTUNITY_MARKET_ERROR__OPTION_STILL_NEEDED, OPPORTUNITY_MARKET_ERROR__OVERFLOW, OPPORTUNITY_MARKET_ERROR__REWARD_ALREADY_CLAIMED, OPPORTUNITY_MARKET_ERROR__TALLY_ALREADY_INCREMENTED, OPPORTUNITY_MARKET_ERROR__UNAUTHORIZED, OPPORTUNITY_MARKET_ERROR__VOUCH_BELOW_MINIMUM, OPPORTUNITY_MARKET_ERROR__VOUCH_NOT_STUCK, OPPORTUNITY_MARKET_ERROR__WINNER_ALREADY_SELECTED, OPPORTUNITY_MARKET_ERROR__WRONG_MARKET_PHASE, 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, PLATFORM_CONFIG_DISCRIMINATOR, PLATFORM_CONFIG_SEED, Parameter, type ParameterArgs, type ParsedAddMarketOptionInstruction, type ParsedAddRewardInstruction, type ParsedClaimCreatorFeesInstruction, type ParsedClaimFeesInstruction, type ParsedClaimRewardsInstruction, type ParsedCloseOptionAccountInstruction, type ParsedCloseStuckVouchAccountInstruction, type ParsedCloseUnrevealedVouchAccountInstruction, type ParsedCloseVouchAccountInstruction, type ParsedCreateMarketInstruction, type ParsedEndRevealPeriodInstruction, type ParsedFinalizeRevealVouchInstruction, type ParsedInitAllowedMintInstruction, type ParsedInitPlatformConfigInstruction, type ParsedInitVouchAccountInstruction, type ParsedOpenMarketInstruction, type ParsedOpportunityMarketInstruction, type ParsedResolveMarketInstruction, type ParsedRevealVouchCallbackInstruction, type ParsedRevealVouchCompDefInstruction, type ParsedRevealVouchInstruction, type ParsedSetFeeClaimAuthorityInstruction, type ParsedSetUpdateAuthorityInstruction, type ParsedSetWinningOptionInstruction, type ParsedUpdatePlatformConfigInstruction, type ParsedVouchCallbackInstruction, type ParsedVouchCompDefInstruction, type ParsedVouchInstruction, type ParsedWithdrawRewardInstruction, type ParsedWithdrawVouchInstruction, type PlatformConfig, type PlatformConfigArgs, RESOLVE_MARKET_DISCRIMINATOR, REVEAL_VOUCH_CALLBACK_DISCRIMINATOR, REVEAL_VOUCH_COMP_DEF_DISCRIMINATOR, REVEAL_VOUCH_DISCRIMINATOR, type ResolveMarketInput, type ResolveMarketInstruction, type ResolveMarketInstructionData, type ResolveMarketInstructionDataArgs, type ResolveMarketParams, type RevealPeriodEndedEvent, type RevealPeriodEndedEventArgs, type RevealVouchAsyncInput, type RevealVouchCallbackInput, type RevealVouchCallbackInstruction, type RevealVouchCallbackInstructionData, type RevealVouchCallbackInstructionDataArgs, type RevealVouchCompDefInput, type RevealVouchCompDefInstruction, type RevealVouchCompDefInstructionData, type RevealVouchCompDefInstructionDataArgs, type RevealVouchFinalizedEvent, type RevealVouchFinalizedEventArgs, type RevealVouchInput, type RevealVouchInstruction, type RevealVouchInstructionData, type RevealVouchInstructionDataArgs, type RevealVouchOutput, type RevealVouchOutputArgs, type RevealVouchParams, type RewardAddedEvent, type RewardAddedEventArgs, type RewardWithdrawnEvent, type RewardWithdrawnEventArgs, type RewardsClaimedEvent, type RewardsClaimedEventArgs, SET_FEE_CLAIM_AUTHORITY_DISCRIMINATOR, SET_UPDATE_AUTHORITY_DISCRIMINATOR, SET_WINNING_OPTION_DISCRIMINATOR, SPONSOR_SEED, 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 StuckVouchClosedEvent, type StuckVouchClosedEventArgs, type Timestamp, type TimestampArgs, UPDATE_PLATFORM_CONFIG_DISCRIMINATOR, type UpdateAuthorityChangedEvent, type UpdateAuthorityChangedEventArgs, type UpdatePlatformConfigInput, type UpdatePlatformConfigInstruction, type UpdatePlatformConfigInstructionData, type UpdatePlatformConfigInstructionDataArgs, type UpdatePlatformConfigParams, type UpdatePlatformParameters, type UpdatePlatformParametersArgs, type UtilityPubkeys, type UtilityPubkeysArgs, VOUCH_ACCOUNT_DISCRIMINATOR, VOUCH_ACCOUNT_SEED, VOUCH_CALLBACK_DISCRIMINATOR, VOUCH_COMP_DEF_DISCRIMINATOR, VOUCH_DISCRIMINATOR, type VouchAccount, type VouchAccountArgs, type VouchAccountClosedEvent, type VouchAccountClosedEventArgs, type VouchAccountInitializedEvent, type VouchAccountInitializedEventArgs, type VouchAsyncInput, type VouchCallbackInput, type VouchCallbackInstruction, type VouchCallbackInstructionData, type VouchCallbackInstructionDataArgs, type VouchCompDefInput, type VouchCompDefInstruction, type VouchCompDefInstructionData, type VouchCompDefInstructionDataArgs, type VouchInput, type VouchInstruction, type VouchInstructionData, type VouchInstructionDataArgs, type VouchOutput, type VouchOutputArgs, type VouchOutputStruct0, type VouchOutputStruct0Args, type VouchParameters, type VouchParametersArgs, type VouchParams, type VouchRevealedEvent, type VouchRevealedEventArgs, type VouchWithdrawnEvent, type VouchWithdrawnEventArgs, type VouchedEvent, type VouchedEventArgs, WITHDRAW_REWARD_DISCRIMINATOR, WITHDRAW_VOUCH_DISCRIMINATOR, type WinningOptionSetEvent, type WinningOptionSetEventArgs, type WithdrawRewardAsyncInput, type WithdrawRewardInput, type WithdrawRewardInstruction, type WithdrawRewardInstructionData, type WithdrawRewardInstructionDataArgs, type WithdrawRewardParams, type WithdrawVouchAsyncInput, type WithdrawVouchInput, type WithdrawVouchInstruction, type WithdrawVouchInstructionData, type WithdrawVouchInstructionDataArgs, type WithdrawVouchParams, type X25519Keypair, addMarketOption, addReward, awaitComputationFinalization, awaitRevealVouchFinalization, awaitVouchFinalization, circuitSource, claimCreatorFees, claimFees, claimRewards, closeOptionAccount, closeStuckVouchAccount, closeUnrevealedVouchAccount, closeVouchAccount, createCipher, createMarket, createPlatformConfig, decodeAllowedMint, decodeArciumSignerAccount, decodeOpportunityMarket, decodeOpportunityMarketOption, decodeOpportunityMarketSponsor, decodePlatformConfig, decodeVouchAccount, deriveSharedSecret, deriveX25519KeypairFromSignature, endRevealPeriod, fetchAllAllowedMint, fetchAllArciumSignerAccount, fetchAllMaybeAllowedMint, fetchAllMaybeArciumSignerAccount, fetchAllMaybeOpportunityMarket, fetchAllMaybeOpportunityMarketOption, fetchAllMaybeOpportunityMarketSponsor, fetchAllMaybePlatformConfig, fetchAllMaybeVouchAccount, fetchAllOpportunityMarket, fetchAllOpportunityMarketOption, fetchAllOpportunityMarketSponsor, fetchAllPlatformConfig, fetchAllVouchAccount, fetchAllowedMint, fetchArciumSignerAccount, fetchMaybeAllowedMint, fetchMaybeArciumSignerAccount, fetchMaybeOpportunityMarket, fetchMaybeOpportunityMarketOption, fetchMaybeOpportunityMarketSponsor, fetchMaybePlatformConfig, fetchMaybeVouchAccount, fetchOpportunityMarket, fetchOpportunityMarketOption, fetchOpportunityMarketSponsor, fetchPlatformConfig, fetchVouchAccount, finalizeRevealVouch, 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, getClaimRewardsDiscriminatorBytes, getClaimRewardsInstruction, getClaimRewardsInstructionAsync, getClaimRewardsInstructionDataCodec, getClaimRewardsInstructionDataDecoder, getClaimRewardsInstructionDataEncoder, getClockAccountCodec, getClockAccountDecoder, getClockAccountEncoder, getCloseOptionAccountDiscriminatorBytes, getCloseOptionAccountInstruction, getCloseOptionAccountInstructionAsync, getCloseOptionAccountInstructionDataCodec, getCloseOptionAccountInstructionDataDecoder, getCloseOptionAccountInstructionDataEncoder, getCloseStuckVouchAccountDiscriminatorBytes, getCloseStuckVouchAccountInstruction, getCloseStuckVouchAccountInstructionAsync, getCloseStuckVouchAccountInstructionDataCodec, getCloseStuckVouchAccountInstructionDataDecoder, getCloseStuckVouchAccountInstructionDataEncoder, getCloseUnrevealedVouchAccountDiscriminatorBytes, getCloseUnrevealedVouchAccountInstruction, getCloseUnrevealedVouchAccountInstructionAsync, getCloseUnrevealedVouchAccountInstructionDataCodec, getCloseUnrevealedVouchAccountInstructionDataDecoder, getCloseUnrevealedVouchAccountInstructionDataEncoder, getCloseVouchAccountDiscriminatorBytes, getCloseVouchAccountInstruction, getCloseVouchAccountInstructionAsync, getCloseVouchAccountInstructionDataCodec, getCloseVouchAccountInstructionDataDecoder, getCloseVouchAccountInstructionDataEncoder, getClusterCodec, getClusterDecoder, getClusterEncoder, getCollectedFeesCodec, getCollectedFeesDecoder, getCollectedFeesEncoder, getCompDefAccount, getCompDefOffsetNumber, getComputationDefinitionAccountCodec, getComputationDefinitionAccountDecoder, getComputationDefinitionAccountEncoder, getComputationDefinitionMetaCodec, getComputationDefinitionMetaDecoder, getComputationDefinitionMetaEncoder, getComputationSignatureCodec, getComputationSignatureDecoder, getComputationSignatureEncoder, getCreateMarketDiscriminatorBytes, getCreateMarketInstruction, getCreateMarketInstructionAsync, getCreateMarketInstructionDataCodec, getCreateMarketInstructionDataDecoder, getCreateMarketInstructionDataEncoder, getCreateMarketParametersCodec, getCreateMarketParametersDecoder, getCreateMarketParametersEncoder, getCreatorFeesClaimedEventCodec, getCreatorFeesClaimedEventDecoder, getCreatorFeesClaimedEventEncoder, getEndRevealPeriodDiscriminatorBytes, getEndRevealPeriodInstruction, getEndRevealPeriodInstructionDataCodec, getEndRevealPeriodInstructionDataDecoder, getEndRevealPeriodInstructionDataEncoder, getEpochCodec, getEpochDecoder, getEpochEncoder, getFeeClaimAuthorityChangedEventCodec, getFeeClaimAuthorityChangedEventDecoder, getFeeClaimAuthorityChangedEventEncoder, getFeePoolCodec, getFeePoolDecoder, getFeePoolEncoder, getFeeRatesCodec, getFeeRatesDecoder, getFeeRatesEncoder, getFeesClaimedEventCodec, getFeesClaimedEventDecoder, getFeesClaimedEventEncoder, getFinalizeRevealVouchDiscriminatorBytes, getFinalizeRevealVouchInstruction, getFinalizeRevealVouchInstructionAsync, getFinalizeRevealVouchInstructionDataCodec, getFinalizeRevealVouchInstructionDataDecoder, getFinalizeRevealVouchInstructionDataEncoder, getInitAllowedMintDiscriminatorBytes, getInitAllowedMintInstruction, getInitAllowedMintInstructionAsync, getInitAllowedMintInstructionDataCodec, getInitAllowedMintInstructionDataDecoder, getInitAllowedMintInstructionDataEncoder, getInitCompDefInstruction, getInitPlatformConfigDiscriminatorBytes, getInitPlatformConfigInstruction, getInitPlatformConfigInstructionDataCodec, getInitPlatformConfigInstructionDataDecoder, getInitPlatformConfigInstructionDataEncoder, getInitPlatformParametersCodec, getInitPlatformParametersDecoder, getInitPlatformParametersEncoder, getInitVouchAccountDiscriminatorBytes, getInitVouchAccountInstruction, getInitVouchAccountInstructionAsync, getInitVouchAccountInstructionDataCodec, getInitVouchAccountInstructionDataDecoder, getInitVouchAccountInstructionDataEncoder, 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, getPlatformConfigAddress, getPlatformConfigCodec, getPlatformConfigDecoder, getPlatformConfigDiscriminatorBytes, getPlatformConfigEncoder, getResolveMarketDiscriminatorBytes, getResolveMarketInstruction, getResolveMarketInstructionDataCodec, getResolveMarketInstructionDataDecoder, getResolveMarketInstructionDataEncoder, getRevealPeriodEndedEventCodec, getRevealPeriodEndedEventDecoder, getRevealPeriodEndedEventEncoder, getRevealVouchCallbackDiscriminatorBytes, getRevealVouchCallbackInstruction, getRevealVouchCallbackInstructionDataCodec, getRevealVouchCallbackInstructionDataDecoder, getRevealVouchCallbackInstructionDataEncoder, getRevealVouchCompDefDiscriminatorBytes, getRevealVouchCompDefInstruction, getRevealVouchCompDefInstructionDataCodec, getRevealVouchCompDefInstructionDataDecoder, getRevealVouchCompDefInstructionDataEncoder, getRevealVouchDiscriminatorBytes, getRevealVouchFinalizedEventCodec, getRevealVouchFinalizedEventDecoder, getRevealVouchFinalizedEventEncoder, getRevealVouchInstruction, getRevealVouchInstructionAsync, getRevealVouchInstructionDataCodec, getRevealVouchInstructionDataDecoder, getRevealVouchInstructionDataEncoder, getRevealVouchOutputCodec, getRevealVouchOutputDecoder, getRevealVouchOutputEncoder, getRewardAddedEventCodec, getRewardAddedEventDecoder, getRewardAddedEventEncoder, getRewardWithdrawnEventCodec, getRewardWithdrawnEventDecoder, getRewardWithdrawnEventEncoder, getRewardsClaimedEventCodec, getRewardsClaimedEventDecoder, getRewardsClaimedEventEncoder, getSetFeeClaimAuthorityDiscriminatorBytes, getSetFeeClaimAuthorityInstruction, getSetFeeClaimAuthorityInstructionDataCodec, getSetFeeClaimAuthorityInstructionDataDecoder, getSetFeeClaimAuthorityInstructionDataEncoder, getSetUpdateAuthorityDiscriminatorBytes, getSetUpdateAuthorityInstruction, getSetUpdateAuthorityInstructionDataCodec, getSetUpdateAuthorityInstructionDataDecoder, getSetUpdateAuthorityInstructionDataEncoder, getSetWinningOptionDiscriminatorBytes, getSetWinningOptionInstruction, getSetWinningOptionInstructionAsync, getSetWinningOptionInstructionDataCodec, getSetWinningOptionInstructionDataDecoder, getSetWinningOptionInstructionDataEncoder, getStuckVouchClosedEventCodec, getStuckVouchClosedEventDecoder, getStuckVouchClosedEventEncoder, getTimestampCodec, getTimestampDecoder, getTimestampEncoder, getUpdateAuthorityChangedEventCodec, getUpdateAuthorityChangedEventDecoder, getUpdateAuthorityChangedEventEncoder, getUpdatePlatformConfigDiscriminatorBytes, getUpdatePlatformConfigInstruction, getUpdatePlatformConfigInstructionDataCodec, getUpdatePlatformConfigInstructionDataDecoder, getUpdatePlatformConfigInstructionDataEncoder, getUpdatePlatformParametersCodec, getUpdatePlatformParametersDecoder, getUpdatePlatformParametersEncoder, getUtilityPubkeysCodec, getUtilityPubkeysDecoder, getUtilityPubkeysEncoder, getVouchAccountAddress, getVouchAccountClosedEventCodec, getVouchAccountClosedEventDecoder, getVouchAccountClosedEventEncoder, getVouchAccountCodec, getVouchAccountDecoder, getVouchAccountDiscriminatorBytes, getVouchAccountEncoder, getVouchAccountInitializedEventCodec, getVouchAccountInitializedEventDecoder, getVouchAccountInitializedEventEncoder, getVouchCallbackDiscriminatorBytes, getVouchCallbackInstruction, getVouchCallbackInstructionDataCodec, getVouchCallbackInstructionDataDecoder, getVouchCallbackInstructionDataEncoder, getVouchCompDefDiscriminatorBytes, getVouchCompDefInstruction, getVouchCompDefInstructionDataCodec, getVouchCompDefInstructionDataDecoder, getVouchCompDefInstructionDataEncoder, getVouchDiscriminatorBytes, getVouchInstruction, getVouchInstructionAsync, getVouchInstructionDataCodec, getVouchInstructionDataDecoder, getVouchInstructionDataEncoder, getVouchOutputCodec, getVouchOutputDecoder, getVouchOutputEncoder, getVouchOutputStruct0Codec, getVouchOutputStruct0Decoder, getVouchOutputStruct0Encoder, getVouchParametersCodec, getVouchParametersDecoder, getVouchParametersEncoder, getVouchRevealedEventCodec, getVouchRevealedEventDecoder, getVouchRevealedEventEncoder, getVouchWithdrawnEventCodec, getVouchWithdrawnEventDecoder, getVouchWithdrawnEventEncoder, getVouchedEventCodec, getVouchedEventDecoder, getVouchedEventEncoder, getWinningOptionSetEventCodec, getWinningOptionSetEventDecoder, getWinningOptionSetEventEncoder, getWithdrawRewardDiscriminatorBytes, getWithdrawRewardInstruction, getWithdrawRewardInstructionAsync, getWithdrawRewardInstructionDataCodec, getWithdrawRewardInstructionDataDecoder, getWithdrawRewardInstructionDataEncoder, getWithdrawVouchDiscriminatorBytes, getWithdrawVouchInstruction, getWithdrawVouchInstructionAsync, getWithdrawVouchInstructionDataCodec, getWithdrawVouchInstructionDataDecoder, getWithdrawVouchInstructionDataEncoder, identifyOpportunityMarketAccount, identifyOpportunityMarketInstruction, initAllowedMint, initVouchAccount, isCircuitSource, isOpportunityMarketError, nonceToBytes, openMarket, parseAddMarketOptionInstruction, parseAddRewardInstruction, parseClaimCreatorFeesInstruction, parseClaimFeesInstruction, parseClaimRewardsInstruction, parseCloseOptionAccountInstruction, parseCloseStuckVouchAccountInstruction, parseCloseUnrevealedVouchAccountInstruction, parseCloseVouchAccountInstruction, parseCreateMarketInstruction, parseEndRevealPeriodInstruction, parseFinalizeRevealVouchInstruction, parseInitAllowedMintInstruction, parseInitPlatformConfigInstruction, parseInitVouchAccountInstruction, parseOpenMarketInstruction, parseResolveMarketInstruction, parseRevealVouchCallbackInstruction, parseRevealVouchCompDefInstruction, parseRevealVouchInstruction, parseSetFeeClaimAuthorityInstruction, parseSetUpdateAuthorityInstruction, parseSetWinningOptionInstruction, parseUpdatePlatformConfigInstruction, parseVouchCallbackInstruction, parseVouchCompDefInstruction, parseVouchInstruction, parseWithdrawRewardInstruction, parseWithdrawVouchInstruction, randomComputationOffset, randomStateNonce, resolveMarket, revealVouch, setFeeClaimAuthority, setUpdateAuthority, setWinningOption, toNumberArray, updatePlatformConfig, vouch, withdrawReward, withdrawVouch };