@omegax/protocol-sdk 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/README.md +14 -4
  2. package/dist/claims.js +38 -43
  3. package/dist/internal/protocol/all.d.ts +283 -0
  4. package/dist/internal/protocol/all.js +7195 -0
  5. package/dist/internal/protocol/builders.d.ts +1 -0
  6. package/dist/internal/protocol/builders.js +1 -0
  7. package/dist/internal/protocol/client.d.ts +1 -0
  8. package/dist/internal/protocol/client.js +1 -0
  9. package/dist/internal/protocol/constants.d.ts +1 -0
  10. package/dist/internal/protocol/constants.js +1 -0
  11. package/dist/internal/protocol/decoders.d.ts +1 -0
  12. package/dist/internal/protocol/decoders.js +1 -0
  13. package/dist/internal/protocol/fetchers.d.ts +1 -0
  14. package/dist/internal/protocol/fetchers.js +1 -0
  15. package/dist/internal/protocol/shared.d.ts +1 -0
  16. package/dist/internal/protocol/shared.js +1 -0
  17. package/dist/internal/protocol-seeds/all.d.ts +265 -0
  18. package/dist/internal/protocol-seeds/all.js +455 -0
  19. package/dist/internal/protocol-seeds/claims.d.ts +1 -0
  20. package/dist/internal/protocol-seeds/claims.js +1 -0
  21. package/dist/internal/protocol-seeds/core.d.ts +1 -0
  22. package/dist/internal/protocol-seeds/core.js +1 -0
  23. package/dist/internal/protocol-seeds/liquidity.d.ts +1 -0
  24. package/dist/internal/protocol-seeds/liquidity.js +1 -0
  25. package/dist/internal/protocol-seeds/oracle.d.ts +1 -0
  26. package/dist/internal/protocol-seeds/oracle.js +1 -0
  27. package/dist/internal/protocol-seeds/policy.d.ts +1 -0
  28. package/dist/internal/protocol-seeds/policy.js +1 -0
  29. package/dist/internal/reward-claim.d.ts +17 -0
  30. package/dist/internal/reward-claim.js +27 -0
  31. package/dist/internal/rpc.d.ts +15 -0
  32. package/dist/internal/rpc.js +26 -0
  33. package/dist/internal/types/all.d.ts +1952 -0
  34. package/dist/internal/types/all.js +1 -0
  35. package/dist/internal/types/builders.d.ts +1 -0
  36. package/dist/internal/types/builders.js +1 -0
  37. package/dist/internal/types/claims.d.ts +1 -0
  38. package/dist/internal/types/claims.js +1 -0
  39. package/dist/internal/types/oracle.d.ts +1 -0
  40. package/dist/internal/types/oracle.js +1 -0
  41. package/dist/internal/types/protocol.d.ts +1 -0
  42. package/dist/internal/types/protocol.js +1 -0
  43. package/dist/internal/types/rpc.d.ts +1 -0
  44. package/dist/internal/types/rpc.js +1 -0
  45. package/dist/oracle.js +3 -2
  46. package/dist/protocol.d.ts +3 -13
  47. package/dist/protocol.js +3 -6422
  48. package/dist/protocol_seeds.d.ts +1 -265
  49. package/dist/protocol_seeds.js +1 -443
  50. package/dist/rpc.js +13 -28
  51. package/dist/transactions.js +11 -6
  52. package/dist/types.d.ts +1 -1946
  53. package/dist/types.js +1 -1
  54. package/package.json +13 -3
@@ -0,0 +1,1952 @@
1
+ import type { PublicKey, Connection, Transaction, TransactionInstruction } from '@solana/web3.js';
2
+ export type ClaimLifecycleStatus = 'prepared' | 'submitted' | 'confirmed' | 'failed' | 'expired';
3
+ export type ClaimFailureCode = 'invalid_claimant_wallet' | 'wallet_mismatch' | 'pool_not_found' | 'pool_not_active' | 'membership_not_active' | 'claim_window_not_set' | 'claim_window_not_open' | 'claim_window_closed' | 'no_passing_outcomes' | 'seeker_rule_misconfigured' | 'seeker_commitment_disabled' | 'intent_expired' | 'intent_message_mismatch' | 'required_signer_mismatch' | 'simulation_failed_insufficient_funds' | 'simulation_failed_pool_paused' | 'simulation_failed_membership_invalid' | 'simulation_failed_unknown' | 'rpc_rejected' | 'rpc_timeout' | 'already_claimed' | 'unknown';
4
+ export interface ClaimFailureDetail {
5
+ code: ClaimFailureCode;
6
+ message: string;
7
+ }
8
+ export interface RewardSummary {
9
+ wallet: {
10
+ connected: boolean;
11
+ address: string | null;
12
+ provider: string | null;
13
+ };
14
+ cycle: {
15
+ id: string;
16
+ status: 'active' | 'completed' | 'abandoned' | 'paused';
17
+ primaryGoalId: string | null;
18
+ outcomesPassed: number;
19
+ outcomesTotal: number;
20
+ startIso: string;
21
+ endIso: string;
22
+ };
23
+ rewards: {
24
+ asset: string;
25
+ claimableRaw: string;
26
+ claimableUi: string;
27
+ status: 'eligible' | 'not_eligible' | 'pending' | 'claimed' | 'failed';
28
+ errorCode?: string | null;
29
+ errorMessage?: string | null;
30
+ };
31
+ }
32
+ export interface ClaimIntent {
33
+ intentId: string;
34
+ unsignedTxBase64: string;
35
+ requiredSigner: string;
36
+ expiresAtIso: string;
37
+ attestationRefs: string[];
38
+ }
39
+ export interface RewardClaimIntent {
40
+ intentHashHex: string;
41
+ unsignedTxBase64: string;
42
+ requiredSigner: string;
43
+ }
44
+ export interface OutcomeAttestation {
45
+ id: string;
46
+ userId: string;
47
+ cycleId: string;
48
+ outcomeId: string;
49
+ asOfIso: string;
50
+ issuedAtIso: string;
51
+ payload: Record<string, unknown>;
52
+ verifier: {
53
+ keyId: string;
54
+ publicKeyBase58: string;
55
+ algorithm: 'ed25519';
56
+ };
57
+ signatureBase64: string;
58
+ digestHex: string;
59
+ }
60
+ export interface OracleSigner {
61
+ keyId: string;
62
+ publicKeyBase58: string;
63
+ sign: (message: Uint8Array) => Promise<Uint8Array>;
64
+ }
65
+ export interface OracleKmsSignerAdapter {
66
+ keyId: string;
67
+ publicKeyBase58: string;
68
+ signWithKms: (message: Uint8Array) => Promise<Uint8Array>;
69
+ }
70
+ export interface BuildUnsignedRewardClaimTxParams {
71
+ claimantWallet: string;
72
+ member: string;
73
+ poolAddress: string;
74
+ seriesRefHashHex: string;
75
+ cycleHashHex: string;
76
+ ruleHashHex: string;
77
+ intentHashHex: string;
78
+ payoutAmount: bigint;
79
+ recipient: string;
80
+ recipientSystemAccount: string;
81
+ payoutMint?: string;
82
+ claimDelegate?: string;
83
+ memberCycle?: string;
84
+ cohortSettlementRoot?: string;
85
+ poolAssetVault?: string;
86
+ poolVaultTokenAccount?: string;
87
+ recipientTokenAccount?: string;
88
+ includePoolCompliancePolicy?: boolean;
89
+ recentBlockhash: string;
90
+ programId: string;
91
+ }
92
+ export interface ValidateSignedClaimTxParams {
93
+ signedTxBase64: string;
94
+ requiredSigner: string;
95
+ expectedUnsignedTxBase64?: string;
96
+ }
97
+ export type ValidateSignedClaimTxReason = 'invalid_transaction_base64' | 'missing_fee_payer' | 'required_signer_mismatch' | 'missing_required_signature' | 'invalid_required_signature' | 'intent_message_mismatch';
98
+ export interface ValidateSignedClaimTxResult {
99
+ valid: boolean;
100
+ txSignature: string | null;
101
+ reason: ValidateSignedClaimTxReason | null;
102
+ signer: string | null;
103
+ }
104
+ export interface BroadcastSignedTxParams {
105
+ signedTxBase64: string;
106
+ commitment?: 'processed' | 'confirmed' | 'finalized';
107
+ skipPreflight?: boolean;
108
+ maxRetries?: number;
109
+ }
110
+ export interface BroadcastSignedTxResult {
111
+ signature: string;
112
+ status: ClaimLifecycleStatus;
113
+ slot: number | null;
114
+ }
115
+ export interface SimulateSignedTxParams {
116
+ signedTxBase64: string;
117
+ commitment?: 'processed' | 'confirmed' | 'finalized';
118
+ replaceRecentBlockhash?: boolean;
119
+ sigVerify?: boolean;
120
+ }
121
+ export interface SimulateSignedTxResult {
122
+ ok: boolean;
123
+ logs: string[];
124
+ unitsConsumed: number | null;
125
+ err: unknown | null;
126
+ failure: ClaimFailureDetail | null;
127
+ }
128
+ export type SignatureLifecycleStatus = 'processed' | 'confirmed' | 'finalized' | 'failed' | 'unknown';
129
+ export interface GetSignatureStatusParams {
130
+ signature: string;
131
+ searchTransactionHistory?: boolean;
132
+ }
133
+ export interface GetSignatureStatusResult {
134
+ signature: string;
135
+ status: SignatureLifecycleStatus;
136
+ confirmations: number | null;
137
+ slot: number | null;
138
+ err: unknown | null;
139
+ }
140
+ export interface RpcClient {
141
+ getRecentBlockhash: () => Promise<string>;
142
+ broadcastSignedTx: (params: BroadcastSignedTxParams) => Promise<BroadcastSignedTxResult>;
143
+ simulateSignedTx: (params: SimulateSignedTxParams) => Promise<SimulateSignedTxResult>;
144
+ getSignatureStatus: (params: GetSignatureStatusParams) => Promise<GetSignatureStatusResult>;
145
+ }
146
+ export type ProgramAccountLike = {
147
+ pubkey: string | PublicKey;
148
+ isSigner?: boolean;
149
+ isWritable?: boolean;
150
+ };
151
+ export type ProtocolPoolStatus = 'draft' | 'active' | 'paused' | 'closed' | 'unknown';
152
+ export type ProtocolMembershipStatus = 'active' | 'revoked' | 'unknown';
153
+ export interface ProtocolConfigAccount {
154
+ address: string;
155
+ admin: string;
156
+ governanceAuthority: string;
157
+ governanceRealm: string;
158
+ governanceConfig: string;
159
+ defaultStakeMint: string;
160
+ protocolFeeBps: number;
161
+ minOracleStake: bigint;
162
+ emergencyPaused: boolean;
163
+ allowedPayoutMintsHashHex: string;
164
+ bump: number;
165
+ }
166
+ export interface ProtocolPoolAccount {
167
+ address: string;
168
+ authority: string;
169
+ poolId: string;
170
+ organizationRef: string;
171
+ payoutLamportsPerPass: bigint;
172
+ membershipMode: number;
173
+ tokenGateMint: string;
174
+ tokenGateMinBalance: bigint;
175
+ inviteIssuer: string;
176
+ statusCode: number;
177
+ status: ProtocolPoolStatus;
178
+ bump: number;
179
+ }
180
+ export interface ProtocolOracleRegistryEntryAccount {
181
+ address: string;
182
+ oracle: string;
183
+ active: boolean;
184
+ bump: number;
185
+ metadataUri: string;
186
+ }
187
+ export interface ProtocolOracleProfileAccount {
188
+ address: string;
189
+ oracle: string;
190
+ admin: string;
191
+ oracleType: number;
192
+ displayName: string;
193
+ legalName: string;
194
+ websiteUrl: string;
195
+ appUrl: string;
196
+ logoUri: string;
197
+ webhookUrl: string;
198
+ supportedSchemaCount: number;
199
+ supportedSchemaKeyHashesHex: string[];
200
+ claimed: boolean;
201
+ createdAtTs: number;
202
+ updatedAtTs: number;
203
+ bump: number;
204
+ }
205
+ export interface ProtocolPoolOracleApprovalAccount {
206
+ address: string;
207
+ pool: string;
208
+ oracle: string;
209
+ active: boolean;
210
+ bump: number;
211
+ }
212
+ export interface ProtocolMembershipRecordAccount {
213
+ address: string;
214
+ pool: string;
215
+ member: string;
216
+ subjectCommitmentHex: string;
217
+ statusCode: number;
218
+ status: ProtocolMembershipStatus;
219
+ enrolledAt: number;
220
+ updatedAt: number;
221
+ bump: number;
222
+ }
223
+ export interface ProtocolCycleOutcomeAccount {
224
+ address: string;
225
+ pool: string;
226
+ member: string;
227
+ cycleHashHex: string;
228
+ passCount: number;
229
+ attestationCount: number;
230
+ latestAsOfTs: number;
231
+ claimed: boolean;
232
+ bump: number;
233
+ }
234
+ export interface ProtocolClaimRecordAccount {
235
+ address: string;
236
+ pool: string;
237
+ seriesRefHashHex: string;
238
+ member: string;
239
+ claimant: string;
240
+ cycleHashHex: string;
241
+ ruleHashHex: string;
242
+ intentHashHex: string;
243
+ payoutMint: string;
244
+ payoutAmount: bigint;
245
+ recipient: string;
246
+ submittedAt: number;
247
+ bump: number;
248
+ }
249
+ export interface BuildInitializeProtocolTxParams {
250
+ admin: string;
251
+ protocolFeeBps: number;
252
+ governanceRealm: string;
253
+ governanceConfig: string;
254
+ defaultStakeMint: string;
255
+ minOracleStake: bigint;
256
+ recentBlockhash: string;
257
+ programId: string;
258
+ }
259
+ export interface BuildCreatePoolTxParams {
260
+ authority: string;
261
+ poolId: string;
262
+ organizationRef: string;
263
+ payoutLamportsPerPass: bigint;
264
+ membershipMode: number;
265
+ tokenGateMint: string;
266
+ tokenGateMinBalance: bigint;
267
+ inviteIssuer: string;
268
+ poolType: number;
269
+ payoutAssetMint: string;
270
+ termsHashHex: string;
271
+ payoutPolicyHashHex: string;
272
+ cycleMode: number;
273
+ metadataUri: string;
274
+ recentBlockhash: string;
275
+ programId: string;
276
+ }
277
+ export interface BuildSetPoolStatusTxParams {
278
+ authority: string;
279
+ poolAddress: string;
280
+ status: number;
281
+ recentBlockhash: string;
282
+ programId: string;
283
+ }
284
+ export interface BuildRegisterOracleTxParams {
285
+ admin: string;
286
+ oraclePubkey: string;
287
+ oracleType: number;
288
+ displayName: string;
289
+ legalName: string;
290
+ websiteUrl: string;
291
+ appUrl: string;
292
+ logoUri: string;
293
+ webhookUrl: string;
294
+ supportedSchemaKeyHashesHex: string[];
295
+ recentBlockhash: string;
296
+ programId: string;
297
+ }
298
+ export interface BuildClaimOracleTxParams {
299
+ oracle: string;
300
+ recentBlockhash: string;
301
+ programId: string;
302
+ }
303
+ export interface BuildUpdateOracleProfileTxParams {
304
+ authority: string;
305
+ oracle: string;
306
+ oracleType: number;
307
+ displayName: string;
308
+ legalName: string;
309
+ websiteUrl: string;
310
+ appUrl: string;
311
+ logoUri: string;
312
+ webhookUrl: string;
313
+ supportedSchemaKeyHashesHex: string[];
314
+ recentBlockhash: string;
315
+ programId: string;
316
+ }
317
+ export interface BuildSetPoolOracleTxParams {
318
+ authority: string;
319
+ poolAddress: string;
320
+ oracle: string;
321
+ active: boolean;
322
+ recentBlockhash: string;
323
+ programId: string;
324
+ }
325
+ export interface ProtocolCycleQuoteFields {
326
+ poolAddress: string;
327
+ member: string;
328
+ seriesRefHashHex: string;
329
+ paymentMint: string;
330
+ premiumAmountRaw: bigint;
331
+ canonicalPremiumAmount: bigint;
332
+ periodIndex: bigint;
333
+ commitmentEnabled: boolean;
334
+ bondAmountRaw: bigint;
335
+ shieldFeeRaw: bigint;
336
+ protocolFeeRaw: bigint;
337
+ oracleFeeRaw: bigint;
338
+ netPoolPremiumRaw: bigint;
339
+ totalAmountRaw: bigint;
340
+ includedShieldCount: number;
341
+ thresholdBps: number;
342
+ outcomeThresholdScore: number;
343
+ cohortHashHex: string;
344
+ expiresAtTs: bigint;
345
+ nonceHashHex: string;
346
+ quoteMetaHashHex: string;
347
+ }
348
+ export interface BuildActivateCycleWithQuoteSolTxParams {
349
+ payer: string;
350
+ member?: string;
351
+ poolAddress: string;
352
+ oracle: string;
353
+ seriesRefHashHex: string;
354
+ premiumAmountRaw: bigint;
355
+ canonicalPremiumAmount: bigint;
356
+ periodIndex: bigint;
357
+ commitmentEnabled: boolean;
358
+ bondAmountRaw: bigint;
359
+ shieldFeeRaw: bigint;
360
+ protocolFeeRaw: bigint;
361
+ oracleFeeRaw: bigint;
362
+ netPoolPremiumRaw: bigint;
363
+ totalAmountRaw: bigint;
364
+ includedShieldCount: number;
365
+ thresholdBps: number;
366
+ outcomeThresholdScore: number;
367
+ cohortHashHex?: string;
368
+ expiresAtTs: bigint;
369
+ nonceHashHex: string;
370
+ quoteMetaHashHex: string;
371
+ quoteMessage?: Uint8Array;
372
+ oracleSecretKey?: Uint8Array;
373
+ instructionsSysvar?: string;
374
+ quoteVerificationInstruction?: TransactionInstruction;
375
+ computeUnitLimit?: number;
376
+ recentBlockhash: string;
377
+ programId: string;
378
+ }
379
+ export interface BuildActivateCycleWithQuoteSplTxParams {
380
+ payer: string;
381
+ member?: string;
382
+ poolAddress: string;
383
+ oracle: string;
384
+ seriesRefHashHex: string;
385
+ paymentMint: string;
386
+ payerTokenAccount?: string;
387
+ premiumAmountRaw: bigint;
388
+ canonicalPremiumAmount: bigint;
389
+ periodIndex: bigint;
390
+ commitmentEnabled: boolean;
391
+ bondAmountRaw: bigint;
392
+ shieldFeeRaw: bigint;
393
+ protocolFeeRaw: bigint;
394
+ oracleFeeRaw: bigint;
395
+ netPoolPremiumRaw: bigint;
396
+ totalAmountRaw: bigint;
397
+ includedShieldCount: number;
398
+ thresholdBps: number;
399
+ outcomeThresholdScore: number;
400
+ cohortHashHex?: string;
401
+ expiresAtTs: bigint;
402
+ nonceHashHex: string;
403
+ quoteMetaHashHex: string;
404
+ quoteMessage?: Uint8Array;
405
+ oracleSecretKey?: Uint8Array;
406
+ instructionsSysvar?: string;
407
+ quoteVerificationInstruction?: TransactionInstruction;
408
+ computeUnitLimit?: number;
409
+ recentBlockhash: string;
410
+ programId: string;
411
+ }
412
+ export interface BuildSettleCycleCommitmentTxParams {
413
+ oracle: string;
414
+ member: string;
415
+ poolAddress: string;
416
+ seriesRefHashHex: string;
417
+ paymentMint: string;
418
+ periodIndex: bigint;
419
+ passed: boolean;
420
+ shieldConsumed: boolean;
421
+ cohortHashHex?: string;
422
+ settledHealthAlphaScore: number;
423
+ recipientTokenAccount: string;
424
+ recentBlockhash: string;
425
+ programId: string;
426
+ }
427
+ export interface BuildSettleCycleCommitmentSolTxParams {
428
+ oracle: string;
429
+ member: string;
430
+ poolAddress: string;
431
+ seriesRefHashHex: string;
432
+ periodIndex: bigint;
433
+ passed: boolean;
434
+ shieldConsumed: boolean;
435
+ cohortHashHex?: string;
436
+ settledHealthAlphaScore: number;
437
+ recipientSystemAccount: string;
438
+ recentBlockhash: string;
439
+ programId: string;
440
+ }
441
+ export interface BuildFinalizeCohortSettlementRootTxParams {
442
+ oracle: string;
443
+ poolAddress: string;
444
+ seriesRefHashHex: string;
445
+ payoutMint: string;
446
+ cohortHashHex: string;
447
+ recentBlockhash: string;
448
+ programId: string;
449
+ }
450
+ export interface BuildWithdrawPoolTreasurySplTxParams {
451
+ payer: string;
452
+ oracle: string;
453
+ poolAddress: string;
454
+ paymentMint: string;
455
+ amount: bigint;
456
+ recipientTokenAccount: string;
457
+ recentBlockhash: string;
458
+ programId: string;
459
+ }
460
+ export interface BuildWithdrawPoolTreasurySolTxParams {
461
+ payer: string;
462
+ oracle: string;
463
+ poolAddress: string;
464
+ amount: bigint;
465
+ recipientSystemAccount: string;
466
+ recentBlockhash: string;
467
+ programId: string;
468
+ }
469
+ export interface BuildSetPoolCoverageReserveFloorTxParams {
470
+ authority: string;
471
+ poolAddress: string;
472
+ paymentMint: string;
473
+ amount: bigint;
474
+ recentBlockhash: string;
475
+ programId: string;
476
+ }
477
+ export interface BuildWithdrawProtocolFeeSplTxParams {
478
+ governanceAuthority: string;
479
+ paymentMint: string;
480
+ amount: bigint;
481
+ recipientTokenAccount: string;
482
+ recentBlockhash: string;
483
+ programId: string;
484
+ }
485
+ export interface BuildWithdrawProtocolFeeSolTxParams {
486
+ governanceAuthority: string;
487
+ amount: bigint;
488
+ recipientSystemAccount: string;
489
+ recentBlockhash: string;
490
+ programId: string;
491
+ }
492
+ export interface BuildWithdrawPoolOracleFeeSplTxParams {
493
+ oracle: string;
494
+ poolAddress: string;
495
+ paymentMint: string;
496
+ amount: bigint;
497
+ recipientTokenAccount: string;
498
+ recentBlockhash: string;
499
+ programId: string;
500
+ }
501
+ export interface BuildWithdrawPoolOracleFeeSolTxParams {
502
+ oracle: string;
503
+ poolAddress: string;
504
+ amount: bigint;
505
+ recipientSystemAccount: string;
506
+ recentBlockhash: string;
507
+ programId: string;
508
+ }
509
+ interface ProtocolClientBuilders {
510
+ buildActivateCycleWithQuoteSolTx: (params: BuildActivateCycleWithQuoteSolTxParams) => Transaction;
511
+ buildActivateCycleWithQuoteSplTx: (params: BuildActivateCycleWithQuoteSplTxParams) => Transaction;
512
+ buildSettleCycleCommitmentTx: (params: BuildSettleCycleCommitmentTxParams) => Transaction;
513
+ buildSettleCycleCommitmentSolTx: (params: BuildSettleCycleCommitmentSolTxParams) => Transaction;
514
+ buildFinalizeCohortSettlementRootTx: (params: BuildFinalizeCohortSettlementRootTxParams) => Transaction;
515
+ buildWithdrawPoolTreasurySplTx: (params: BuildWithdrawPoolTreasurySplTxParams) => Transaction;
516
+ buildWithdrawPoolTreasurySolTx: (params: BuildWithdrawPoolTreasurySolTxParams) => Transaction;
517
+ buildSetPoolCoverageReserveFloorTx: (params: BuildSetPoolCoverageReserveFloorTxParams) => Transaction;
518
+ buildWithdrawProtocolFeeSplTx: (params: BuildWithdrawProtocolFeeSplTxParams) => Transaction;
519
+ buildWithdrawProtocolFeeSolTx: (params: BuildWithdrawProtocolFeeSolTxParams) => Transaction;
520
+ buildWithdrawPoolOracleFeeSplTx: (params: BuildWithdrawPoolOracleFeeSplTxParams) => Transaction;
521
+ buildWithdrawPoolOracleFeeSolTx: (params: BuildWithdrawPoolOracleFeeSolTxParams) => Transaction;
522
+ buildInitializeProtocolTx: (params: BuildInitializeProtocolTxParams) => Transaction;
523
+ buildSetProtocolParamsTx: (params: BuildSetProtocolParamsTxParams) => Transaction;
524
+ buildRotateGovernanceAuthorityTx: (params: BuildRotateGovernanceAuthorityTxParams) => Transaction;
525
+ buildRegisterOracleTx: (params: BuildRegisterOracleTxParams) => Transaction;
526
+ buildClaimOracleTx: (params: BuildClaimOracleTxParams) => Transaction;
527
+ buildUpdateOracleProfileTx: (params: BuildUpdateOracleProfileTxParams) => Transaction;
528
+ buildUpdateOracleMetadataTx: (params: BuildUpdateOracleMetadataTxParams) => Transaction;
529
+ buildStakeOracleTx: (params: BuildStakeOracleTxParams) => Transaction;
530
+ buildRequestUnstakeTx: (params: BuildRequestUnstakeTxParams) => Transaction;
531
+ buildFinalizeUnstakeTx: (params: BuildFinalizeUnstakeTxParams) => Transaction;
532
+ buildSlashOracleTx: (params: BuildSlashOracleTxParams) => Transaction;
533
+ buildCreatePoolTx: (params: BuildCreatePoolTxParams) => Transaction;
534
+ buildSetPoolStatusTx: (params: BuildSetPoolStatusTxParams) => Transaction;
535
+ buildSetPoolOracleTx: (params: BuildSetPoolOracleTxParams) => Transaction;
536
+ buildSetPoolOraclePolicyTx: (params: BuildSetPoolOraclePolicyTxParams) => Transaction;
537
+ buildSetPoolRiskControlsTx: (params: BuildSetPoolRiskControlsTxParams) => Transaction;
538
+ buildSetPoolCompliancePolicyTx: (params: BuildSetPoolCompliancePolicyTxParams) => Transaction;
539
+ buildSetPoolControlAuthoritiesTx: (params: BuildSetPoolControlAuthoritiesTxParams) => Transaction;
540
+ buildSetPoolAutomationPolicyTx: (params: BuildSetPoolAutomationPolicyTxParams) => Transaction;
541
+ buildSetPoolOraclePermissionsTx: (params: BuildSetPoolOraclePermissionsTxParams) => Transaction;
542
+ buildSetPoolTermsHashTx: (params: BuildSetPoolTermsHashTxParams) => Transaction;
543
+ buildRegisterOutcomeSchemaTx: (params: BuildRegisterOutcomeSchemaTxParams) => Transaction;
544
+ buildVerifyOutcomeSchemaTx: (params: BuildVerifyOutcomeSchemaTxParams) => Transaction;
545
+ buildBackfillSchemaDependencyLedgerTx: (params: BuildBackfillSchemaDependencyLedgerTxParams) => Transaction;
546
+ buildCloseOutcomeSchemaTx: (params: BuildCloseOutcomeSchemaTxParams) => Transaction;
547
+ buildSetPolicySeriesOutcomeRuleTx: (params: BuildSetPoolOutcomeRuleTxParams) => Transaction;
548
+ buildRegisterInviteIssuerTx: (params: BuildRegisterInviteIssuerTxParams) => Transaction;
549
+ buildEnrollMemberOpenTx: (params: BuildEnrollMemberOpenTxParams) => Transaction;
550
+ buildEnrollMemberTokenGateTx: (params: BuildEnrollMemberTokenGateTxParams) => Transaction;
551
+ buildEnrollMemberInvitePermitTx: (params: BuildEnrollMemberInvitePermitTxParams) => Transaction;
552
+ buildSetClaimDelegateTx: (params: BuildSetClaimDelegateTxParams) => Transaction;
553
+ buildFundPoolSolTx: (params: BuildFundPoolSolTxParams) => Transaction;
554
+ buildFundPoolSplTx: (params: BuildFundPoolSplTxParams) => Transaction;
555
+ buildInitializePoolLiquiditySolTx: (params: BuildInitializePoolLiquiditySolTxParams) => Transaction;
556
+ buildInitializePoolLiquiditySplTx: (params: BuildInitializePoolLiquiditySplTxParams) => Transaction;
557
+ buildSetPoolLiquidityEnabledTx: (params: BuildSetPoolLiquidityEnabledTxParams) => Transaction;
558
+ buildRegisterPoolCapitalClassTx: (params: BuildRegisterPoolCapitalClassTxParams) => Transaction;
559
+ buildDepositPoolLiquiditySolTx: (params: BuildDepositPoolLiquiditySolTxParams) => Transaction;
560
+ buildDepositPoolLiquiditySplTx: (params: BuildDepositPoolLiquiditySplTxParams) => Transaction;
561
+ buildRedeemPoolLiquiditySolTx: (params: BuildRedeemPoolLiquiditySolTxParams) => Transaction;
562
+ buildRedeemPoolLiquiditySplTx: (params: BuildRedeemPoolLiquiditySplTxParams) => Transaction;
563
+ buildRequestPoolLiquidityRedemptionTx: (params: BuildRequestPoolLiquidityRedemptionTxParams) => Transaction;
564
+ buildSchedulePoolLiquidityRedemptionTx: (params: BuildSchedulePoolLiquidityRedemptionTxParams) => Transaction;
565
+ buildCancelPoolLiquidityRedemptionTx: (params: BuildCancelPoolLiquidityRedemptionTxParams) => Transaction;
566
+ buildFailPoolLiquidityRedemptionTx: (params: BuildFailPoolLiquidityRedemptionTxParams) => Transaction;
567
+ buildFulfillPoolLiquidityRedemptionSolTx: (params: BuildFulfillPoolLiquidityRedemptionSolTxParams) => Transaction;
568
+ buildFulfillPoolLiquidityRedemptionSplTx: (params: BuildFulfillPoolLiquidityRedemptionSplTxParams) => Transaction;
569
+ buildSubmitOutcomeAttestationVoteTx: (params: BuildSubmitOutcomeAttestationVoteTxParams) => Transaction;
570
+ buildFinalizeCycleOutcomeTx: (params: BuildFinalizeCycleOutcomeTxParams) => Transaction;
571
+ buildOpenCycleOutcomeDisputeTx: (params: BuildOpenCycleOutcomeDisputeTxParams) => Transaction;
572
+ buildResolveCycleOutcomeDisputeTx: (params: BuildResolveCycleOutcomeDisputeTxParams) => Transaction;
573
+ buildSubmitRewardClaimTx: (params: BuildSubmitRewardClaimTxParams) => Transaction;
574
+ buildCreatePolicySeriesTx: (params: BuildCreatePolicySeriesTxParams) => Transaction;
575
+ buildUpdatePolicySeriesTx: (params: BuildUpdatePolicySeriesTxParams) => Transaction;
576
+ buildUpsertPolicySeriesPaymentOptionTx: (params: BuildUpsertPolicySeriesPaymentOptionTxParams) => Transaction;
577
+ buildSubscribePolicySeriesTx: (params: BuildSubscribePolicySeriesTxParams) => Transaction;
578
+ buildIssuePolicyPositionTx: (params: BuildIssuePolicyPositionTxParams) => Transaction;
579
+ buildMintPolicyNftTx: (params: BuildMintPolicyNftTxParams) => Transaction;
580
+ buildPayPremiumSolTx: (params: BuildPayPremiumSolTxParams) => Transaction;
581
+ buildPayPremiumSplTx: (params: BuildPayPremiumSplTxParams) => Transaction;
582
+ buildAttestPremiumPaidOffchainTx: (params: BuildAttestPremiumPaidOffchainTxParams) => Transaction;
583
+ buildSubmitCoverageClaimTx: (params: BuildSubmitCoverageClaimTxParams) => Transaction;
584
+ buildReviewCoverageClaimTx: (params: BuildReviewCoverageClaimTxParams) => Transaction;
585
+ buildAttachCoverageClaimDecisionSupportTx: (params: BuildAttachCoverageClaimDecisionSupportTxParams) => Transaction;
586
+ buildApproveCoverageClaimTx: (params: BuildApproveCoverageClaimTxParams) => Transaction;
587
+ buildDenyCoverageClaimTx: (params: BuildDenyCoverageClaimTxParams) => Transaction;
588
+ buildPayCoverageClaimTx: (params: BuildPayCoverageClaimTxParams) => Transaction;
589
+ buildClaimApprovedCoveragePayoutTx: (params: BuildClaimApprovedCoveragePayoutTxParams) => Transaction;
590
+ buildCloseCoverageClaimTx: (params: BuildCloseCoverageClaimTxParams) => Transaction;
591
+ buildSettleCoverageClaimTx: (params: BuildSettleCoverageClaimTxParams) => Transaction;
592
+ }
593
+ interface ProtocolClientFetchers {
594
+ fetchProtocolConfig: () => Promise<ProtocolConfigAccount | null>;
595
+ fetchPool: (poolAddress: string) => Promise<ProtocolPoolAccount | null>;
596
+ fetchOracleRegistryEntry: (oracle: string) => Promise<ProtocolOracleRegistryEntryAccount | null>;
597
+ fetchOracleProfile: (oracle: string) => Promise<ProtocolOracleProfileAccount | null>;
598
+ fetchOracleStakePosition: (params: {
599
+ oracle: string;
600
+ staker: string;
601
+ }) => Promise<ProtocolOracleStakePositionAccount | null>;
602
+ fetchPoolOracleApproval: (params: {
603
+ poolAddress: string;
604
+ oracle: string;
605
+ }) => Promise<ProtocolPoolOracleApprovalAccount | null>;
606
+ fetchPoolOraclePolicy: (poolAddress: string) => Promise<ProtocolPoolOraclePolicyAccount | null>;
607
+ fetchMembershipRecord: (params: {
608
+ poolAddress: string;
609
+ member: string;
610
+ }) => Promise<ProtocolMembershipRecordAccount | null>;
611
+ fetchPoolTerms: (poolAddress: string) => Promise<ProtocolPoolTermsAccount | null>;
612
+ fetchPoolAssetVault: (params: {
613
+ poolAddress: string;
614
+ payoutMint: string;
615
+ }) => Promise<ProtocolPoolAssetVaultAccount | null>;
616
+ fetchPoolLiquidityConfig: (poolAddress: string) => Promise<ProtocolPoolLiquidityConfigAccount | null>;
617
+ fetchPoolRiskConfig: (poolAddress: string) => Promise<ProtocolPoolRiskConfigAccount | null>;
618
+ fetchPoolCapitalClass: (params: {
619
+ poolAddress: string;
620
+ shareMint: string;
621
+ }) => Promise<ProtocolPoolCapitalClassAccount | null>;
622
+ fetchPoolCompliancePolicy: (poolAddress: string) => Promise<ProtocolPoolCompliancePolicyAccount | null>;
623
+ fetchPoolControlAuthority: (poolAddress: string) => Promise<ProtocolPoolControlAuthorityAccount | null>;
624
+ fetchPoolAutomationPolicy: (poolAddress: string) => Promise<ProtocolPoolAutomationPolicyAccount | null>;
625
+ fetchProtocolFeeVault: (paymentMint: string) => Promise<ProtocolFeeVaultAccount | null>;
626
+ fetchPoolOracleFeeVault: (params: {
627
+ poolAddress: string;
628
+ oracle: string;
629
+ paymentMint: string;
630
+ }) => Promise<ProtocolPoolOracleFeeVaultAccount | null>;
631
+ fetchPoolOraclePermissionSet: (params: {
632
+ poolAddress: string;
633
+ oracle: string;
634
+ }) => Promise<ProtocolPoolOraclePermissionSetAccount | null>;
635
+ fetchOutcomeSchema: (schemaKeyHashHex: string) => Promise<ProtocolOutcomeSchemaRegistryEntryAccount | null>;
636
+ fetchSchemaDependencyLedger: (schemaKeyHashHex: string) => Promise<ProtocolSchemaDependencyLedgerAccount | null>;
637
+ fetchPoolOutcomeRule: (params: {
638
+ poolAddress: string;
639
+ seriesRefHashHex: string;
640
+ ruleHashHex: string;
641
+ }) => Promise<ProtocolPoolOutcomeRuleAccount | null>;
642
+ fetchInviteIssuer: (issuer: string) => Promise<ProtocolInviteIssuerRegistryEntryAccount | null>;
643
+ fetchCycleOutcomeAggregate: (params: {
644
+ poolAddress: string;
645
+ seriesRefHashHex: string;
646
+ member: string;
647
+ cycleHashHex: string;
648
+ ruleHashHex: string;
649
+ }) => Promise<ProtocolCycleOutcomeAggregateAccount | null>;
650
+ fetchEnrollmentPermitReplay: (params: {
651
+ poolAddress: string;
652
+ member: string;
653
+ nonceHashHex: string;
654
+ }) => Promise<ProtocolEnrollmentPermitReplayAccount | null>;
655
+ fetchAttestationVote: (params: {
656
+ poolAddress: string;
657
+ seriesRefHashHex: string;
658
+ member: string;
659
+ cycleHashHex: string;
660
+ ruleHashHex: string;
661
+ oracle: string;
662
+ }) => Promise<ProtocolAttestationVoteAccount | null>;
663
+ fetchClaimDelegate: (params: {
664
+ poolAddress: string;
665
+ member: string;
666
+ }) => Promise<ProtocolClaimDelegateAuthorizationAccount | null>;
667
+ fetchClaimRecord: (params: {
668
+ poolAddress: string;
669
+ seriesRefHashHex: string;
670
+ member: string;
671
+ cycleHashHex: string;
672
+ ruleHashHex: string;
673
+ }) => Promise<ProtocolClaimRecordAccount | null>;
674
+ fetchPolicySeries: (params: {
675
+ poolAddress: string;
676
+ seriesRefHashHex: string;
677
+ }) => Promise<ProtocolPolicySeriesAccount | null>;
678
+ fetchPolicySeriesPaymentOption: (params: {
679
+ poolAddress: string;
680
+ seriesRefHashHex: string;
681
+ paymentMint: string;
682
+ }) => Promise<ProtocolPolicySeriesPaymentOptionAccount | null>;
683
+ fetchPolicyPosition: (params: {
684
+ poolAddress: string;
685
+ seriesRefHashHex: string;
686
+ member: string;
687
+ }) => Promise<ProtocolPolicyPositionAccount | null>;
688
+ fetchPolicyPositionNft: (params: {
689
+ poolAddress: string;
690
+ seriesRefHashHex: string;
691
+ member: string;
692
+ }) => Promise<ProtocolPolicyPositionNftAccount | null>;
693
+ fetchMemberCycle: (params: {
694
+ poolAddress: string;
695
+ seriesRefHashHex: string;
696
+ member: string;
697
+ periodIndex: bigint | number;
698
+ }) => Promise<ProtocolMemberCycleAccount | null>;
699
+ fetchMemberCycleByAddress: (address: string) => Promise<ProtocolMemberCycleAccount | null>;
700
+ fetchCycleQuoteReplay: (params: {
701
+ poolAddress: string;
702
+ seriesRefHashHex: string;
703
+ member: string;
704
+ nonceHashHex: string;
705
+ }) => Promise<ProtocolCycleQuoteReplayAccount | null>;
706
+ fetchPoolTreasuryReserve: (params: {
707
+ poolAddress: string;
708
+ paymentMint: string;
709
+ }) => Promise<ProtocolPoolTreasuryReserveAccount | null>;
710
+ fetchRedemptionRequest: (params: {
711
+ poolAddress: string;
712
+ redeemer: string;
713
+ requestHashHex: string;
714
+ }) => Promise<ProtocolPoolRedemptionRequestAccount | null>;
715
+ fetchCohortSettlementRoot: (params: {
716
+ poolAddress: string;
717
+ seriesRefHashHex: string;
718
+ cohortHashHex: string;
719
+ }) => Promise<ProtocolCohortSettlementRootAccount | null>;
720
+ fetchPremiumLedger: (params: {
721
+ poolAddress: string;
722
+ seriesRefHashHex: string;
723
+ member: string;
724
+ }) => Promise<ProtocolPremiumLedgerAccount | null>;
725
+ fetchPremiumAttestationReplay: (params: {
726
+ poolAddress: string;
727
+ seriesRefHashHex: string;
728
+ member: string;
729
+ replayHashHex: string;
730
+ }) => Promise<ProtocolPremiumAttestationReplayAccount | null>;
731
+ fetchCoverageClaimRecord: (params: {
732
+ poolAddress: string;
733
+ seriesRefHashHex: string;
734
+ member: string;
735
+ intentHashHex: string;
736
+ }) => Promise<ProtocolCoverageClaimRecordAccount | null>;
737
+ }
738
+ export interface ProtocolClient extends ProtocolClientBuilders, ProtocolClientFetchers {
739
+ connection: Connection;
740
+ programId: PublicKey;
741
+ }
742
+ export type ProtocolPoolType = 'reward' | 'coverage' | 'unknown';
743
+ export interface ProtocolOracleStakePositionAccount {
744
+ address: string;
745
+ oracle: string;
746
+ staker: string;
747
+ stakeMint: string;
748
+ stakeVault: string;
749
+ stakedAmount: bigint;
750
+ pendingUnstakeAmount: bigint;
751
+ canFinalizeUnstakeAt: number;
752
+ slashPending: boolean;
753
+ bump: number;
754
+ }
755
+ export interface ProtocolPoolOraclePolicyAccount {
756
+ address: string;
757
+ pool: string;
758
+ quorumM: number;
759
+ quorumN: number;
760
+ requireVerifiedSchema: boolean;
761
+ oracleFeeBps: number;
762
+ allowDelegateClaim: boolean;
763
+ challengeWindowSecs: number;
764
+ bump: number;
765
+ }
766
+ export interface ProtocolPoolTermsAccount {
767
+ address: string;
768
+ pool: string;
769
+ poolTypeCode: number;
770
+ poolType: ProtocolPoolType;
771
+ payoutAssetMint: string;
772
+ termsHashHex: string;
773
+ payoutPolicyHashHex: string;
774
+ cycleMode: number;
775
+ metadataUri: string;
776
+ bump: number;
777
+ }
778
+ export interface ProtocolPoolAssetVaultAccount {
779
+ address: string;
780
+ pool: string;
781
+ payoutMint: string;
782
+ vaultTokenAccount: string;
783
+ active: boolean;
784
+ bump: number;
785
+ }
786
+ export interface ProtocolPoolLiquidityConfigAccount {
787
+ address: string;
788
+ pool: string;
789
+ payoutMint: string;
790
+ shareMint: string;
791
+ depositsEnabled: boolean;
792
+ bump: number;
793
+ }
794
+ export interface ProtocolPoolRiskConfigAccount {
795
+ address: string;
796
+ pool: string;
797
+ redemptionMode: number;
798
+ claimMode: number;
799
+ impaired: boolean;
800
+ updatedBy: string;
801
+ updatedAt: number;
802
+ bump: number;
803
+ }
804
+ export interface ProtocolPoolCapitalClassAccount {
805
+ address: string;
806
+ pool: string;
807
+ shareMint: string;
808
+ payoutMint: string;
809
+ classIdHashHex: string;
810
+ seriesRefHashHex: string;
811
+ complianceProfileHashHex: string;
812
+ classMode: number;
813
+ classPriority: number;
814
+ transferMode: number;
815
+ restricted: boolean;
816
+ redemptionQueueEnabled: boolean;
817
+ ringFenced: boolean;
818
+ lockupSecs: number;
819
+ redemptionNoticeSecs: number;
820
+ vintageIndex: number;
821
+ issuedAt: number;
822
+ updatedAt: number;
823
+ bump: number;
824
+ }
825
+ export interface ProtocolPoolCompliancePolicyAccount {
826
+ address: string;
827
+ pool: string;
828
+ providerRefHashHex: string;
829
+ credentialTypeHashHex: string;
830
+ revocationListHashHex: string;
831
+ actionsMask: number;
832
+ bindingMode: number;
833
+ providerMode: number;
834
+ capitalRailMode: number;
835
+ payoutRailMode: number;
836
+ active: boolean;
837
+ updatedBy: string;
838
+ updatedAt: number;
839
+ bump: number;
840
+ }
841
+ export interface ProtocolPoolControlAuthorityAccount {
842
+ address: string;
843
+ pool: string;
844
+ operatorAuthority: string;
845
+ riskManagerAuthority: string;
846
+ complianceAuthority: string;
847
+ guardianAuthority: string;
848
+ updatedAt: number;
849
+ bump: number;
850
+ }
851
+ export interface ProtocolPoolAutomationPolicyAccount {
852
+ address: string;
853
+ pool: string;
854
+ oracleAutomationMode: number;
855
+ claimAutomationMode: number;
856
+ allowedAiRolesMask: number;
857
+ maxAutoClaimAmount: bigint;
858
+ requiredAttestationProviderRefHashHex: string;
859
+ updatedBy: string;
860
+ updatedAt: number;
861
+ bump: number;
862
+ }
863
+ export interface ProtocolFeeVaultAccount {
864
+ address: string;
865
+ paymentMint: string;
866
+ bump: number;
867
+ }
868
+ export interface ProtocolPoolOracleFeeVaultAccount {
869
+ address: string;
870
+ pool: string;
871
+ oracle: string;
872
+ paymentMint: string;
873
+ bump: number;
874
+ }
875
+ export interface ProtocolPoolOraclePermissionSetAccount {
876
+ address: string;
877
+ pool: string;
878
+ oracle: string;
879
+ permissions: number;
880
+ bump: number;
881
+ }
882
+ export type ProtocolMemberCycleStatus = 'active' | 'settled' | 'unknown';
883
+ export interface ProtocolMemberCycleAccount {
884
+ address: string;
885
+ pool: string;
886
+ member: string;
887
+ seriesRefHashHex: string;
888
+ periodIndex: bigint;
889
+ paymentMint: string;
890
+ premiumAmountRaw: bigint;
891
+ bondAmountRaw: bigint;
892
+ shieldFeeRaw: bigint;
893
+ protocolFeeRaw: bigint;
894
+ oracleFeeRaw: bigint;
895
+ netPoolPremiumRaw: bigint;
896
+ totalAmountRaw: bigint;
897
+ canonicalPremiumAmount: bigint;
898
+ commitmentEnabled: boolean;
899
+ thresholdBps: number;
900
+ outcomeThresholdScore: number;
901
+ cohortHashHex: string;
902
+ settledHealthAlphaScore: number;
903
+ includedShieldCount: number;
904
+ shieldConsumed: boolean;
905
+ statusCode: number;
906
+ status: ProtocolMemberCycleStatus;
907
+ passed: boolean;
908
+ activatedAt: number;
909
+ settledAt: number;
910
+ quoteHashHex: string;
911
+ bump: number;
912
+ }
913
+ export interface ProtocolCycleQuoteReplayAccount {
914
+ address: string;
915
+ pool: string;
916
+ seriesRefHashHex: string;
917
+ member: string;
918
+ nonceHashHex: string;
919
+ quoteHashHex: string;
920
+ createdAt: number;
921
+ bump: number;
922
+ }
923
+ export interface ProtocolPoolTreasuryReserveAccount {
924
+ address: string;
925
+ pool: string;
926
+ paymentMint: string;
927
+ reservedRefundAmount: bigint;
928
+ reservedRewardAmount: bigint;
929
+ reservedRedistributionAmount: bigint;
930
+ manualCoverageReserveAmount: bigint;
931
+ reservedCoverageClaimAmount: bigint;
932
+ paidCoverageClaimAmount: bigint;
933
+ recoveredCoverageClaimAmount: bigint;
934
+ impairedAmount: bigint;
935
+ lastLiabilityUpdateTs: number;
936
+ bump: number;
937
+ }
938
+ export interface ProtocolCohortSettlementRootAccount {
939
+ address: string;
940
+ pool: string;
941
+ seriesRefHashHex: string;
942
+ paymentMint: string;
943
+ cohortHashHex: string;
944
+ outcomeThresholdScore: number;
945
+ successfulMemberCount: number;
946
+ successfulHealthAlphaScoreSum: bigint;
947
+ redistributableFailedBondsTotal: bigint;
948
+ redistributionClaimedAmount: bigint;
949
+ successfulClaimCount: number;
950
+ finalized: boolean;
951
+ zeroSuccessReleased: boolean;
952
+ finalizedAt: number;
953
+ bump: number;
954
+ }
955
+ export interface ProtocolOutcomeSchemaRegistryEntryAccount {
956
+ address: string;
957
+ schemaKeyHashHex: string;
958
+ schemaKey: string;
959
+ version: number;
960
+ schemaHashHex: string;
961
+ publisher: string;
962
+ verified: boolean;
963
+ schemaFamily: number;
964
+ visibility: number;
965
+ interopProfileHashHex: string;
966
+ codeSystemFamilyHashHex: string;
967
+ mappingVersion: number;
968
+ metadataUri: string;
969
+ bump: number;
970
+ }
971
+ export interface ProtocolSchemaDependencyLedgerAccount {
972
+ address: string;
973
+ schemaKeyHashHex: string;
974
+ activeRuleRefcount: number;
975
+ bump: number;
976
+ }
977
+ export interface ProtocolPoolOutcomeRuleAccount {
978
+ address: string;
979
+ pool: string;
980
+ seriesRefHashHex: string;
981
+ ruleHashHex: string;
982
+ schemaKeyHashHex: string;
983
+ ruleId: string;
984
+ schemaKey: string;
985
+ schemaVersion: number;
986
+ interopProfileHashHex: string;
987
+ codeSystemFamilyHashHex: string;
988
+ mappingVersion: number;
989
+ payoutHashHex: string;
990
+ enabled: boolean;
991
+ bump: number;
992
+ }
993
+ export interface ProtocolInviteIssuerRegistryEntryAccount {
994
+ address: string;
995
+ issuer: string;
996
+ organizationRef: string;
997
+ metadataUri: string;
998
+ active: boolean;
999
+ bump: number;
1000
+ }
1001
+ export interface ProtocolCycleOutcomeAggregateAccount {
1002
+ address: string;
1003
+ pool: string;
1004
+ seriesRefHashHex: string;
1005
+ member: string;
1006
+ cycleHashHex: string;
1007
+ ruleHashHex: string;
1008
+ passVotes: number;
1009
+ failVotes: number;
1010
+ quorumM: number;
1011
+ quorumN: number;
1012
+ finalized: boolean;
1013
+ passed: boolean;
1014
+ claimed: boolean;
1015
+ rewardLiabilityReserved: boolean;
1016
+ evidenceHashHex: string;
1017
+ externalAttestationRefHashHex: string;
1018
+ reviewStatus: number;
1019
+ challengeWindowEndsAt: number;
1020
+ disputeReasonHashHex: string;
1021
+ disputedBy: string;
1022
+ resolvedBy: string;
1023
+ resolvedAt: number;
1024
+ aiRole: number;
1025
+ automationMode: number;
1026
+ modelVersionHashHex: string;
1027
+ policyVersionHashHex: string;
1028
+ executionEnvironmentHashHex: string;
1029
+ attestationProviderRefHashHex: string;
1030
+ latestAsOfTs: number;
1031
+ bump: number;
1032
+ }
1033
+ export interface ProtocolClaimDelegateAuthorizationAccount {
1034
+ address: string;
1035
+ pool: string;
1036
+ member: string;
1037
+ delegate: string;
1038
+ active: boolean;
1039
+ updatedAt: number;
1040
+ bump: number;
1041
+ }
1042
+ export interface ProtocolPolicyPositionAccount {
1043
+ address: string;
1044
+ pool: string;
1045
+ member: string;
1046
+ seriesRefHashHex: string;
1047
+ termsHashHex: string;
1048
+ status: number;
1049
+ startsAt: number;
1050
+ endsAt: number;
1051
+ premiumDueEverySecs: number;
1052
+ premiumGraceSecs: number;
1053
+ nextDueAt: number;
1054
+ nftMint: string;
1055
+ bump: number;
1056
+ }
1057
+ export interface ProtocolPremiumLedgerAccount {
1058
+ address: string;
1059
+ pool: string;
1060
+ seriesRefHashHex: string;
1061
+ member: string;
1062
+ periodIndex: bigint;
1063
+ amount: bigint;
1064
+ source: number;
1065
+ paidAt: number;
1066
+ bump: number;
1067
+ }
1068
+ export interface ProtocolEnrollmentPermitReplayAccount {
1069
+ address: string;
1070
+ pool: string;
1071
+ issuer: string;
1072
+ member: string;
1073
+ nonceHashHex: string;
1074
+ inviteIdHashHex: string;
1075
+ createdAt: number;
1076
+ bump: number;
1077
+ }
1078
+ export interface ProtocolAttestationVoteAccount {
1079
+ address: string;
1080
+ pool: string;
1081
+ seriesRefHashHex: string;
1082
+ member: string;
1083
+ cycleHashHex: string;
1084
+ ruleHashHex: string;
1085
+ oracle: string;
1086
+ passed: boolean;
1087
+ attestationDigestHex: string;
1088
+ observedValueHashHex: string;
1089
+ evidenceHashHex: string;
1090
+ externalAttestationRefHashHex: string;
1091
+ aiRole: number;
1092
+ automationMode: number;
1093
+ modelVersionHashHex: string;
1094
+ policyVersionHashHex: string;
1095
+ executionEnvironmentHashHex: string;
1096
+ attestationProviderRefHashHex: string;
1097
+ asOfTs: number;
1098
+ bump: number;
1099
+ }
1100
+ export interface ProtocolPolicySeriesAccount {
1101
+ address: string;
1102
+ pool: string;
1103
+ seriesRefHashHex: string;
1104
+ status: number;
1105
+ planMode: number;
1106
+ sponsorMode: number;
1107
+ displayName: string;
1108
+ metadataUri: string;
1109
+ termsHashHex: string;
1110
+ durationSecs: bigint;
1111
+ premiumDueEverySecs: bigint;
1112
+ premiumGraceSecs: bigint;
1113
+ premiumAmount: bigint;
1114
+ interopProfileHashHex: string;
1115
+ oracleProfileHashHex: string;
1116
+ riskFamilyHashHex: string;
1117
+ issuanceTemplateHashHex: string;
1118
+ comparabilityHashHex: string;
1119
+ renewalOfHashHex: string;
1120
+ termsVersion: number;
1121
+ mappingVersion: number;
1122
+ createdAtTs: bigint;
1123
+ updatedAtTs: bigint;
1124
+ bump: number;
1125
+ }
1126
+ export interface ProtocolPolicySeriesPaymentOptionAccount {
1127
+ address: string;
1128
+ pool: string;
1129
+ seriesRefHashHex: string;
1130
+ paymentMint: string;
1131
+ paymentAmount: bigint;
1132
+ active: boolean;
1133
+ bump: number;
1134
+ }
1135
+ export interface ProtocolPolicyPositionNftAccount {
1136
+ address: string;
1137
+ pool: string;
1138
+ member: string;
1139
+ seriesRefHashHex: string;
1140
+ nftMint: string;
1141
+ metadataUri: string;
1142
+ bump: number;
1143
+ }
1144
+ export interface ProtocolPremiumAttestationReplayAccount {
1145
+ address: string;
1146
+ pool: string;
1147
+ seriesRefHashHex: string;
1148
+ member: string;
1149
+ replayHashHex: string;
1150
+ oracle: string;
1151
+ createdAt: number;
1152
+ bump: number;
1153
+ }
1154
+ export interface ProtocolCoverageClaimRecordAccount {
1155
+ address: string;
1156
+ pool: string;
1157
+ seriesRefHashHex: string;
1158
+ member: string;
1159
+ claimant: string;
1160
+ intentHashHex: string;
1161
+ eventHashHex: string;
1162
+ evidenceHashHex: string;
1163
+ interopRefHashHex: string;
1164
+ interopProfileHashHex: string;
1165
+ codeSystemFamilyHashHex: string;
1166
+ decisionReasonHashHex: string;
1167
+ adjudicationRefHashHex: string;
1168
+ status: number;
1169
+ claimFamily: number;
1170
+ appealCount: number;
1171
+ requestedAmount: bigint;
1172
+ approvedAmount: bigint;
1173
+ paidAmount: bigint;
1174
+ reservedAmount: bigint;
1175
+ recoveryAmount: bigint;
1176
+ aiDecisionHashHex: string;
1177
+ aiPolicyHashHex: string;
1178
+ aiExecutionEnvironmentHashHex: string;
1179
+ aiAttestationRefHashHex: string;
1180
+ aiAutomationMode: number;
1181
+ submittedAt: number;
1182
+ reviewedAt: number;
1183
+ settledAt: number;
1184
+ closedAt: number;
1185
+ bump: number;
1186
+ }
1187
+ export interface ProtocolPoolRedemptionRequestAccount {
1188
+ address: string;
1189
+ pool: string;
1190
+ redeemer: string;
1191
+ shareMint: string;
1192
+ payoutMint: string;
1193
+ requestHashHex: string;
1194
+ shareEscrow: string;
1195
+ status: number;
1196
+ sharesRequested: bigint;
1197
+ minAmountOut: bigint;
1198
+ expectedAmountOut: bigint;
1199
+ noticeMaturesAt: number;
1200
+ requestedAt: number;
1201
+ scheduledAt: number;
1202
+ fulfilledAt: number;
1203
+ cancelledAt: number;
1204
+ failedAt: number;
1205
+ failureCode: number;
1206
+ bump: number;
1207
+ }
1208
+ export interface BuildSetProtocolParamsTxParams {
1209
+ governanceAuthority: string;
1210
+ protocolFeeBps: number;
1211
+ allowedPayoutMintsHashHex: string;
1212
+ defaultStakeMint: string;
1213
+ minOracleStake: bigint;
1214
+ emergencyPaused: boolean;
1215
+ recentBlockhash: string;
1216
+ programId: string;
1217
+ }
1218
+ export interface BuildUpdateOracleMetadataTxParams {
1219
+ oracle: string;
1220
+ metadataUri: string;
1221
+ active: boolean;
1222
+ recentBlockhash: string;
1223
+ programId: string;
1224
+ }
1225
+ export interface BuildStakeOracleTxParams {
1226
+ staker: string;
1227
+ oracle: string;
1228
+ stakeMint: string;
1229
+ stakeVault: string;
1230
+ stakerTokenAccount: string;
1231
+ amount: bigint;
1232
+ recentBlockhash: string;
1233
+ programId: string;
1234
+ }
1235
+ export interface BuildRequestUnstakeTxParams {
1236
+ staker: string;
1237
+ oracle: string;
1238
+ amount: bigint;
1239
+ cooldownSeconds: bigint | number;
1240
+ recentBlockhash: string;
1241
+ programId: string;
1242
+ }
1243
+ export interface BuildFinalizeUnstakeTxParams {
1244
+ staker: string;
1245
+ oracle: string;
1246
+ stakeVault: string;
1247
+ destinationTokenAccount: string;
1248
+ recentBlockhash: string;
1249
+ programId: string;
1250
+ }
1251
+ export interface BuildSlashOracleTxParams {
1252
+ governanceAuthority: string;
1253
+ oracle: string;
1254
+ staker: string;
1255
+ stakeVault: string;
1256
+ slashTreasuryTokenAccount: string;
1257
+ amount: bigint;
1258
+ recentBlockhash: string;
1259
+ programId: string;
1260
+ }
1261
+ export interface BuildClaimOracleTxParams {
1262
+ oracle: string;
1263
+ recentBlockhash: string;
1264
+ programId: string;
1265
+ }
1266
+ export interface BuildUpdateOracleProfileTxParams {
1267
+ authority: string;
1268
+ oracle: string;
1269
+ oracleType: number;
1270
+ displayName: string;
1271
+ legalName: string;
1272
+ websiteUrl: string;
1273
+ appUrl: string;
1274
+ logoUri: string;
1275
+ webhookUrl: string;
1276
+ supportedSchemaKeyHashesHex: string[];
1277
+ recentBlockhash: string;
1278
+ programId: string;
1279
+ }
1280
+ export interface BuildRotateGovernanceAuthorityTxParams {
1281
+ governanceAuthority: string;
1282
+ newAuthority: string;
1283
+ recentBlockhash: string;
1284
+ programId: string;
1285
+ }
1286
+ export interface BuildSetPoolOraclePolicyTxParams {
1287
+ authority: string;
1288
+ poolAddress: string;
1289
+ quorumM: number;
1290
+ quorumN: number;
1291
+ requireVerifiedSchema: boolean;
1292
+ oracleFeeBps: number;
1293
+ allowDelegateClaim: boolean;
1294
+ challengeWindowSecs?: bigint | number;
1295
+ recentBlockhash: string;
1296
+ programId: string;
1297
+ }
1298
+ export interface BuildSetPoolRiskControlsTxParams {
1299
+ authority: string;
1300
+ poolAddress: string;
1301
+ payoutMint: string;
1302
+ redemptionMode: number;
1303
+ claimMode: number;
1304
+ impaired: boolean;
1305
+ impairmentAmount: bigint;
1306
+ includePoolControlAuthority?: boolean;
1307
+ recentBlockhash: string;
1308
+ programId: string;
1309
+ }
1310
+ export interface BuildSetPoolCompliancePolicyTxParams {
1311
+ authority: string;
1312
+ poolAddress: string;
1313
+ providerRefHashHex?: string;
1314
+ credentialTypeHashHex?: string;
1315
+ revocationListHashHex?: string;
1316
+ actionsMask: number;
1317
+ bindingMode: number;
1318
+ providerMode: number;
1319
+ capitalRailMode: number;
1320
+ payoutRailMode: number;
1321
+ active: boolean;
1322
+ includePoolControlAuthority?: boolean;
1323
+ recentBlockhash: string;
1324
+ programId: string;
1325
+ }
1326
+ export interface BuildSetPoolControlAuthoritiesTxParams {
1327
+ authority: string;
1328
+ poolAddress: string;
1329
+ operatorAuthority: string;
1330
+ riskManagerAuthority: string;
1331
+ complianceAuthority: string;
1332
+ guardianAuthority: string;
1333
+ recentBlockhash: string;
1334
+ programId: string;
1335
+ }
1336
+ export interface BuildSetPoolAutomationPolicyTxParams {
1337
+ authority: string;
1338
+ poolAddress: string;
1339
+ oracleAutomationMode: number;
1340
+ claimAutomationMode: number;
1341
+ allowedAiRolesMask: number;
1342
+ maxAutoClaimAmount: bigint;
1343
+ requiredAttestationProviderRefHashHex?: string;
1344
+ includePoolControlAuthority?: boolean;
1345
+ recentBlockhash: string;
1346
+ programId: string;
1347
+ }
1348
+ export interface BuildSetPoolOraclePermissionsTxParams {
1349
+ authority: string;
1350
+ poolAddress: string;
1351
+ oracle: string;
1352
+ permissions: number;
1353
+ recentBlockhash: string;
1354
+ programId: string;
1355
+ }
1356
+ export interface BuildSetPoolTermsHashTxParams {
1357
+ authority: string;
1358
+ poolAddress: string;
1359
+ termsHashHex: string;
1360
+ payoutPolicyHashHex: string;
1361
+ cycleMode: number;
1362
+ metadataUri: string;
1363
+ recentBlockhash: string;
1364
+ programId: string;
1365
+ }
1366
+ export interface BuildRegisterOutcomeSchemaTxParams {
1367
+ publisher: string;
1368
+ schemaKeyHashHex: string;
1369
+ schemaKey: string;
1370
+ version: number;
1371
+ schemaHashHex: string;
1372
+ schemaFamily?: number;
1373
+ visibility?: number;
1374
+ interopProfileHashHex?: string;
1375
+ codeSystemFamilyHashHex?: string;
1376
+ mappingVersion?: number;
1377
+ metadataUri: string;
1378
+ recentBlockhash: string;
1379
+ programId: string;
1380
+ }
1381
+ export interface BuildVerifyOutcomeSchemaTxParams {
1382
+ governanceAuthority: string;
1383
+ schemaKeyHashHex: string;
1384
+ verified: boolean;
1385
+ recentBlockhash: string;
1386
+ programId: string;
1387
+ }
1388
+ export interface BuildBackfillSchemaDependencyLedgerTxParams {
1389
+ governanceAuthority: string;
1390
+ schemaKeyHashHex: string;
1391
+ poolRuleAddresses?: string[];
1392
+ recentBlockhash: string;
1393
+ programId: string;
1394
+ }
1395
+ export interface BuildCloseOutcomeSchemaTxParams {
1396
+ governanceAuthority: string;
1397
+ schemaKeyHashHex: string;
1398
+ recipientSystemAccount: string;
1399
+ recentBlockhash: string;
1400
+ programId: string;
1401
+ }
1402
+ export interface BuildSetPoolOutcomeRuleTxParams {
1403
+ authority: string;
1404
+ poolAddress: string;
1405
+ seriesRefHashHex: string;
1406
+ ruleHashHex: string;
1407
+ schemaKeyHashHex: string;
1408
+ ruleId: string;
1409
+ schemaKey: string;
1410
+ schemaVersion: number;
1411
+ interopProfileHashHex?: string;
1412
+ codeSystemFamilyHashHex?: string;
1413
+ mappingVersion?: number;
1414
+ payoutHashHex: string;
1415
+ enabled: boolean;
1416
+ recentBlockhash: string;
1417
+ programId: string;
1418
+ }
1419
+ export interface BuildRegisterInviteIssuerTxParams {
1420
+ issuer: string;
1421
+ organizationRef: string;
1422
+ metadataUri: string;
1423
+ active: boolean;
1424
+ recentBlockhash: string;
1425
+ programId: string;
1426
+ }
1427
+ export interface BuildEnrollMemberOpenTxParams {
1428
+ member: string;
1429
+ poolAddress: string;
1430
+ subjectCommitmentHex?: string;
1431
+ includePoolCompliancePolicy?: boolean;
1432
+ recentBlockhash: string;
1433
+ programId: string;
1434
+ }
1435
+ export interface BuildEnrollMemberTokenGateTxParams {
1436
+ member: string;
1437
+ poolAddress: string;
1438
+ tokenGateAccount: string;
1439
+ subjectCommitmentHex?: string;
1440
+ includePoolCompliancePolicy?: boolean;
1441
+ recentBlockhash: string;
1442
+ programId: string;
1443
+ }
1444
+ export interface BuildEnrollMemberInvitePermitTxParams {
1445
+ member: string;
1446
+ poolAddress: string;
1447
+ issuer: string;
1448
+ subjectCommitmentHex?: string;
1449
+ nonceHashHex: string;
1450
+ inviteIdHashHex: string;
1451
+ expiresAtTs: number;
1452
+ includePoolCompliancePolicy?: boolean;
1453
+ recentBlockhash: string;
1454
+ programId: string;
1455
+ }
1456
+ export interface BuildSetClaimDelegateTxParams {
1457
+ member: string;
1458
+ poolAddress: string;
1459
+ delegate: string;
1460
+ active: boolean;
1461
+ recentBlockhash: string;
1462
+ programId: string;
1463
+ }
1464
+ export interface BuildFundPoolSolTxParams {
1465
+ funder: string;
1466
+ poolAddress: string;
1467
+ lamports: bigint;
1468
+ recentBlockhash: string;
1469
+ programId: string;
1470
+ }
1471
+ export interface BuildFundPoolSplTxParams {
1472
+ funder: string;
1473
+ poolAddress: string;
1474
+ payoutMint: string;
1475
+ funderTokenAccount: string;
1476
+ amount: bigint;
1477
+ recentBlockhash: string;
1478
+ programId: string;
1479
+ }
1480
+ export interface BuildInitializePoolLiquiditySolTxParams {
1481
+ authority: string;
1482
+ poolAddress: string;
1483
+ initialLamports: bigint;
1484
+ recentBlockhash: string;
1485
+ programId: string;
1486
+ }
1487
+ export interface BuildInitializePoolLiquiditySplTxParams {
1488
+ authority: string;
1489
+ poolAddress: string;
1490
+ payoutMint: string;
1491
+ authorityPayoutTokenAccount: string;
1492
+ initialAmount: bigint;
1493
+ recentBlockhash: string;
1494
+ programId: string;
1495
+ }
1496
+ export interface BuildSetPoolLiquidityEnabledTxParams {
1497
+ authority: string;
1498
+ poolAddress: string;
1499
+ enabled: boolean;
1500
+ recentBlockhash: string;
1501
+ programId: string;
1502
+ }
1503
+ export interface BuildRegisterPoolCapitalClassTxParams {
1504
+ authority: string;
1505
+ poolAddress: string;
1506
+ classIdHashHex: string;
1507
+ classMode: number;
1508
+ classPriority: number;
1509
+ transferMode: number;
1510
+ restricted: boolean;
1511
+ redemptionQueueEnabled: boolean;
1512
+ ringFenced: boolean;
1513
+ lockupSecs: bigint | number;
1514
+ redemptionNoticeSecs: bigint | number;
1515
+ complianceProfileHashHex?: string;
1516
+ seriesRefHashHex?: string;
1517
+ vintageIndex: number;
1518
+ recentBlockhash: string;
1519
+ programId: string;
1520
+ }
1521
+ export interface BuildDepositPoolLiquiditySolTxParams {
1522
+ depositor: string;
1523
+ poolAddress: string;
1524
+ amountIn: bigint;
1525
+ minSharesOut: bigint;
1526
+ includePoolCapitalClass?: boolean;
1527
+ includePoolCompliancePolicy?: boolean;
1528
+ includeMembership?: boolean;
1529
+ recentBlockhash: string;
1530
+ programId: string;
1531
+ }
1532
+ export interface BuildDepositPoolLiquiditySplTxParams {
1533
+ depositor: string;
1534
+ poolAddress: string;
1535
+ payoutMint: string;
1536
+ depositorPayoutTokenAccount: string;
1537
+ amountIn: bigint;
1538
+ minSharesOut: bigint;
1539
+ includePoolCapitalClass?: boolean;
1540
+ includePoolCompliancePolicy?: boolean;
1541
+ includeMembership?: boolean;
1542
+ recentBlockhash: string;
1543
+ programId: string;
1544
+ }
1545
+ export interface BuildRedeemPoolLiquiditySolTxParams {
1546
+ redeemer: string;
1547
+ poolAddress: string;
1548
+ sharesIn: bigint;
1549
+ minAmountOut: bigint;
1550
+ includePoolCapitalClass?: boolean;
1551
+ includePoolCompliancePolicy?: boolean;
1552
+ includeMembership?: boolean;
1553
+ recentBlockhash: string;
1554
+ programId: string;
1555
+ }
1556
+ export interface BuildRedeemPoolLiquiditySplTxParams {
1557
+ redeemer: string;
1558
+ poolAddress: string;
1559
+ payoutMint: string;
1560
+ redeemerPayoutTokenAccount: string;
1561
+ sharesIn: bigint;
1562
+ minAmountOut: bigint;
1563
+ includePoolCapitalClass?: boolean;
1564
+ includePoolCompliancePolicy?: boolean;
1565
+ includeMembership?: boolean;
1566
+ recentBlockhash: string;
1567
+ programId: string;
1568
+ }
1569
+ export interface BuildRequestPoolLiquidityRedemptionTxParams {
1570
+ redeemer: string;
1571
+ poolAddress: string;
1572
+ payoutMint?: string;
1573
+ requestHashHex: string;
1574
+ sharesIn: bigint;
1575
+ minAmountOut: bigint;
1576
+ redeemerShareTokenAccount?: string;
1577
+ includePoolCapitalClass?: boolean;
1578
+ includePoolCompliancePolicy?: boolean;
1579
+ includeMembership?: boolean;
1580
+ recentBlockhash: string;
1581
+ programId: string;
1582
+ }
1583
+ export interface BuildSchedulePoolLiquidityRedemptionTxParams {
1584
+ authority: string;
1585
+ poolAddress: string;
1586
+ redemptionRequest: string;
1587
+ includePoolControlAuthority?: boolean;
1588
+ recentBlockhash: string;
1589
+ programId: string;
1590
+ }
1591
+ export interface BuildCancelPoolLiquidityRedemptionTxParams {
1592
+ redeemer: string;
1593
+ poolAddress: string;
1594
+ redemptionRequest: string;
1595
+ redeemerShareTokenAccount?: string;
1596
+ recentBlockhash: string;
1597
+ programId: string;
1598
+ }
1599
+ export interface BuildFailPoolLiquidityRedemptionTxParams {
1600
+ authority: string;
1601
+ poolAddress: string;
1602
+ redemptionRequest: string;
1603
+ redeemer: string;
1604
+ failureCode: number;
1605
+ redeemerShareTokenAccount?: string;
1606
+ includePoolControlAuthority?: boolean;
1607
+ recentBlockhash: string;
1608
+ programId: string;
1609
+ }
1610
+ export interface BuildFulfillPoolLiquidityRedemptionSolTxParams {
1611
+ authority: string;
1612
+ poolAddress: string;
1613
+ redemptionRequest: string;
1614
+ redeemerSystemAccount: string;
1615
+ includePoolControlAuthority?: boolean;
1616
+ recentBlockhash: string;
1617
+ programId: string;
1618
+ }
1619
+ export interface BuildFulfillPoolLiquidityRedemptionSplTxParams {
1620
+ authority: string;
1621
+ poolAddress: string;
1622
+ payoutMint: string;
1623
+ redemptionRequest: string;
1624
+ redeemerPayoutTokenAccount: string;
1625
+ includePoolControlAuthority?: boolean;
1626
+ recentBlockhash: string;
1627
+ programId: string;
1628
+ }
1629
+ export interface BuildSubmitOutcomeAttestationVoteTxParams {
1630
+ oracle: string;
1631
+ poolAddress: string;
1632
+ seriesRefHashHex: string;
1633
+ member: string;
1634
+ cycleHashHex: string;
1635
+ ruleHashHex: string;
1636
+ schemaKeyHashHex: string;
1637
+ payoutMint: string;
1638
+ attestationDigestHex: string;
1639
+ observedValueHashHex: string;
1640
+ evidenceHashHex?: string;
1641
+ externalAttestationRefHashHex?: string;
1642
+ aiRole?: number;
1643
+ automationMode?: number;
1644
+ modelVersionHashHex?: string;
1645
+ policyVersionHashHex?: string;
1646
+ executionEnvironmentHashHex?: string;
1647
+ attestationProviderRefHashHex?: string;
1648
+ includePoolAutomationPolicy?: boolean;
1649
+ asOfTs: number;
1650
+ passed: boolean;
1651
+ recentBlockhash: string;
1652
+ programId: string;
1653
+ }
1654
+ export interface BuildFinalizeCycleOutcomeTxParams {
1655
+ feePayer: string;
1656
+ poolAddress: string;
1657
+ seriesRefHashHex: string;
1658
+ member: string;
1659
+ cycleHashHex: string;
1660
+ ruleHashHex: string;
1661
+ payoutMint: string;
1662
+ recentBlockhash: string;
1663
+ programId: string;
1664
+ }
1665
+ export interface BuildOpenCycleOutcomeDisputeTxParams {
1666
+ authority: string;
1667
+ poolAddress: string;
1668
+ aggregate: string;
1669
+ disputeReasonHashHex: string;
1670
+ recentBlockhash: string;
1671
+ programId: string;
1672
+ }
1673
+ export interface BuildResolveCycleOutcomeDisputeTxParams {
1674
+ governanceAuthority: string;
1675
+ poolAddress: string;
1676
+ payoutMint: string;
1677
+ aggregate: string;
1678
+ sustainOriginalOutcome: boolean;
1679
+ recentBlockhash: string;
1680
+ programId: string;
1681
+ }
1682
+ export interface BuildSubmitRewardClaimTxParams {
1683
+ claimant: string;
1684
+ poolAddress: string;
1685
+ member: string;
1686
+ seriesRefHashHex: string;
1687
+ cycleHashHex: string;
1688
+ ruleHashHex: string;
1689
+ intentHashHex: string;
1690
+ payoutAmount: bigint;
1691
+ recipient: string;
1692
+ recipientSystemAccount: string;
1693
+ payoutMint?: string;
1694
+ claimDelegate?: string;
1695
+ memberCycle?: string;
1696
+ cohortSettlementRoot?: string;
1697
+ poolAssetVault?: string;
1698
+ poolVaultTokenAccount?: string;
1699
+ recipientTokenAccount?: string;
1700
+ includePoolCompliancePolicy?: boolean;
1701
+ recentBlockhash: string;
1702
+ programId: string;
1703
+ }
1704
+ export interface BuildMintPolicyNftTxParams {
1705
+ authority: string;
1706
+ poolAddress: string;
1707
+ member: string;
1708
+ seriesRefHashHex: string;
1709
+ nftMint: string;
1710
+ metadataUri: string;
1711
+ recentBlockhash: string;
1712
+ programId: string;
1713
+ }
1714
+ export interface BuildPayPremiumSolTxParams {
1715
+ payer: string;
1716
+ poolAddress: string;
1717
+ member: string;
1718
+ seriesRefHashHex: string;
1719
+ periodIndex: bigint;
1720
+ recentBlockhash: string;
1721
+ programId: string;
1722
+ }
1723
+ export interface BuildPayPremiumSplTxParams {
1724
+ payer: string;
1725
+ poolAddress: string;
1726
+ member: string;
1727
+ seriesRefHashHex: string;
1728
+ paymentMint: string;
1729
+ payerTokenAccount: string;
1730
+ periodIndex: bigint;
1731
+ recentBlockhash: string;
1732
+ programId: string;
1733
+ }
1734
+ export interface BuildAttestPremiumPaidOffchainTxParams {
1735
+ oracle: string;
1736
+ poolAddress: string;
1737
+ member: string;
1738
+ seriesRefHashHex: string;
1739
+ periodIndex: bigint;
1740
+ replayHashHex: string;
1741
+ amount: bigint;
1742
+ paidAtTs: number;
1743
+ recentBlockhash: string;
1744
+ programId: string;
1745
+ }
1746
+ export interface BuildSubmitCoverageClaimTxParams {
1747
+ claimant: string;
1748
+ poolAddress: string;
1749
+ member: string;
1750
+ seriesRefHashHex: string;
1751
+ intentHashHex: string;
1752
+ eventHashHex: string;
1753
+ claimDelegate?: string;
1754
+ includePoolCompliancePolicy?: boolean;
1755
+ recentBlockhash: string;
1756
+ programId: string;
1757
+ }
1758
+ export interface BuildReviewCoverageClaimTxParams {
1759
+ oracle: string;
1760
+ poolAddress: string;
1761
+ member: string;
1762
+ seriesRefHashHex: string;
1763
+ intentHashHex: string;
1764
+ requestedAmount: bigint;
1765
+ evidenceHashHex: string;
1766
+ interopRefHashHex: string;
1767
+ claimFamily: number;
1768
+ interopProfileHashHex?: string;
1769
+ codeSystemFamilyHashHex?: string;
1770
+ recentBlockhash: string;
1771
+ programId: string;
1772
+ }
1773
+ export interface BuildAttachCoverageClaimDecisionSupportTxParams {
1774
+ oracle: string;
1775
+ poolAddress: string;
1776
+ member: string;
1777
+ seriesRefHashHex: string;
1778
+ intentHashHex: string;
1779
+ aiDecisionHashHex?: string;
1780
+ aiPolicyHashHex?: string;
1781
+ aiExecutionEnvironmentHashHex?: string;
1782
+ aiAttestationRefHashHex?: string;
1783
+ aiRole?: number;
1784
+ automationMode?: number;
1785
+ recentBlockhash: string;
1786
+ programId: string;
1787
+ }
1788
+ export interface BuildApproveCoverageClaimTxParams {
1789
+ oracle: string;
1790
+ poolAddress: string;
1791
+ member: string;
1792
+ seriesRefHashHex: string;
1793
+ intentHashHex: string;
1794
+ approvedAmount: bigint;
1795
+ payoutMint: string;
1796
+ poolAssetVault: string;
1797
+ poolVaultTokenAccount: string;
1798
+ decisionReasonHashHex: string;
1799
+ adjudicationRefHashHex?: string;
1800
+ recentBlockhash: string;
1801
+ programId: string;
1802
+ }
1803
+ export interface BuildDenyCoverageClaimTxParams {
1804
+ oracle: string;
1805
+ poolAddress: string;
1806
+ member: string;
1807
+ seriesRefHashHex: string;
1808
+ intentHashHex: string;
1809
+ payoutMint: string;
1810
+ decisionReasonHashHex: string;
1811
+ adjudicationRefHashHex?: string;
1812
+ recentBlockhash: string;
1813
+ programId: string;
1814
+ }
1815
+ export interface BuildPayCoverageClaimTxParams {
1816
+ authority: string;
1817
+ claimant: string;
1818
+ poolAddress: string;
1819
+ member: string;
1820
+ seriesRefHashHex: string;
1821
+ intentHashHex: string;
1822
+ payoutAmount: bigint;
1823
+ payoutMint: string;
1824
+ recipientSystemAccount: string;
1825
+ poolAssetVault: string;
1826
+ poolVaultTokenAccount: string;
1827
+ recipientTokenAccount: string;
1828
+ recentBlockhash: string;
1829
+ programId: string;
1830
+ }
1831
+ export interface BuildClaimApprovedCoveragePayoutTxParams {
1832
+ claimSigner: string;
1833
+ claimant: string;
1834
+ poolAddress: string;
1835
+ member: string;
1836
+ seriesRefHashHex: string;
1837
+ intentHashHex: string;
1838
+ payoutAmount: bigint;
1839
+ payoutMint: string;
1840
+ recipientSystemAccount: string;
1841
+ poolAssetVault: string;
1842
+ poolVaultTokenAccount: string;
1843
+ recipientTokenAccount: string;
1844
+ claimDelegate?: string;
1845
+ recentBlockhash: string;
1846
+ programId: string;
1847
+ }
1848
+ export interface BuildCloseCoverageClaimTxParams {
1849
+ authority: string;
1850
+ poolAddress: string;
1851
+ member: string;
1852
+ seriesRefHashHex: string;
1853
+ intentHashHex: string;
1854
+ payoutMint: string;
1855
+ recoveryAmount: bigint;
1856
+ recentBlockhash: string;
1857
+ programId: string;
1858
+ }
1859
+ export interface BuildSettleCoverageClaimTxParams {
1860
+ oracle: string;
1861
+ claimant: string;
1862
+ poolAddress: string;
1863
+ member: string;
1864
+ seriesRefHashHex: string;
1865
+ intentHashHex: string;
1866
+ payoutAmount: bigint;
1867
+ payoutMint: string;
1868
+ recipientSystemAccount: string;
1869
+ poolAssetVault: string;
1870
+ poolVaultTokenAccount: string;
1871
+ recipientTokenAccount: string;
1872
+ recentBlockhash: string;
1873
+ programId: string;
1874
+ }
1875
+ export interface BuildCreatePolicySeriesTxParams {
1876
+ authority: string;
1877
+ poolAddress: string;
1878
+ seriesRefHashHex: string;
1879
+ status: number;
1880
+ planMode: number;
1881
+ sponsorMode: number;
1882
+ displayName: string;
1883
+ metadataUri: string;
1884
+ termsHashHex: string;
1885
+ durationSecs: bigint | number;
1886
+ premiumDueEverySecs: bigint | number;
1887
+ premiumGraceSecs: bigint | number;
1888
+ premiumAmount: bigint;
1889
+ interopProfileHashHex?: string;
1890
+ oracleProfileHashHex?: string;
1891
+ riskFamilyHashHex?: string;
1892
+ issuanceTemplateHashHex?: string;
1893
+ comparabilityHashHex?: string;
1894
+ renewalOfHashHex?: string;
1895
+ termsVersion: number;
1896
+ mappingVersion: number;
1897
+ recentBlockhash: string;
1898
+ programId: string;
1899
+ }
1900
+ export interface BuildUpsertPolicySeriesPaymentOptionTxParams {
1901
+ authority: string;
1902
+ poolAddress: string;
1903
+ seriesRefHashHex: string;
1904
+ paymentMint: string;
1905
+ paymentAmount: bigint;
1906
+ active: boolean;
1907
+ recentBlockhash: string;
1908
+ programId: string;
1909
+ }
1910
+ export interface BuildUpdatePolicySeriesTxParams {
1911
+ authority: string;
1912
+ poolAddress: string;
1913
+ seriesRefHashHex: string;
1914
+ status: number;
1915
+ planMode: number;
1916
+ sponsorMode: number;
1917
+ displayName: string;
1918
+ metadataUri: string;
1919
+ termsHashHex: string;
1920
+ durationSecs: bigint | number;
1921
+ premiumDueEverySecs: bigint | number;
1922
+ premiumGraceSecs: bigint | number;
1923
+ premiumAmount: bigint;
1924
+ interopProfileHashHex?: string;
1925
+ oracleProfileHashHex?: string;
1926
+ riskFamilyHashHex?: string;
1927
+ issuanceTemplateHashHex?: string;
1928
+ comparabilityHashHex?: string;
1929
+ renewalOfHashHex?: string;
1930
+ termsVersion: number;
1931
+ mappingVersion: number;
1932
+ recentBlockhash: string;
1933
+ programId: string;
1934
+ }
1935
+ export interface BuildSubscribePolicySeriesTxParams {
1936
+ member: string;
1937
+ poolAddress: string;
1938
+ seriesRefHashHex: string;
1939
+ startsAtTs: bigint | number;
1940
+ recentBlockhash: string;
1941
+ programId: string;
1942
+ }
1943
+ export interface BuildIssuePolicyPositionTxParams {
1944
+ authority: string;
1945
+ poolAddress: string;
1946
+ member: string;
1947
+ seriesRefHashHex: string;
1948
+ startsAtTs: bigint | number;
1949
+ recentBlockhash: string;
1950
+ programId: string;
1951
+ }
1952
+ export {};