@omegax/protocol-sdk 0.5.0 → 0.6.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.
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 +7202 -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 +15 -6
@@ -1,265 +1 @@
1
- import { PublicKey } from '@solana/web3.js';
2
- export declare const SEED_CONFIG = "config";
3
- export declare const SEED_POOL = "pool";
4
- export declare const SEED_ORACLE = "oracle";
5
- export declare const SEED_ORACLE_PROFILE = "oracle_profile";
6
- export declare const SEED_POOL_ORACLE = "pool_oracle";
7
- export declare const SEED_MEMBERSHIP = "membership";
8
- export declare const SEED_CYCLE = "cycle";
9
- export declare const SEED_CLAIM = "claim";
10
- export declare const SEED_ORACLE_STAKE = "oracle_stake";
11
- export declare const SEED_POOL_ORACLE_POLICY = "pool_oracle_policy";
12
- export declare const SEED_POOL_TERMS = "pool_terms";
13
- export declare const SEED_POOL_ASSET_VAULT = "pool_asset_vault";
14
- export declare const SEED_POOL_RISK_CONFIG = "pool_risk_config";
15
- export declare const SEED_POOL_CAPITAL_CLASS = "pool_capital_class";
16
- export declare const SEED_POLICY_SERIES = "policy_series";
17
- export declare const SEED_POLICY_SERIES_PAYMENT_OPTION = "policy_series_payment_option";
18
- export declare const SEED_POLICY_POSITION = "policy_position";
19
- export declare const SEED_POLICY_POSITION_NFT = "policy_position_nft";
20
- export declare const SEED_POOL_COMPLIANCE_POLICY = "pool_compliance_policy";
21
- export declare const SEED_POOL_CONTROL_AUTHORITY = "pool_control_authority";
22
- export declare const SEED_POOL_AUTOMATION_POLICY = "pool_automation_policy";
23
- export declare const SEED_POOL_LIQUIDITY_CONFIG = "pool_liquidity_config";
24
- export declare const SEED_POOL_ORACLE_PERMISSIONS = "pool_oracle_permissions";
25
- export declare const SEED_MEMBER_CYCLE = "member_cycle";
26
- export declare const SEED_CYCLE_QUOTE_REPLAY = "cycle_quote_replay";
27
- export declare const SEED_POOL_TREASURY_RESERVE = "pool_treasury_reserve";
28
- export declare const SEED_POOL_SHARE_MINT = "pool_share_mint";
29
- export declare const SEED_REDEMPTION_REQUEST = "redemption_request";
30
- export declare const SEED_COHORT_SETTLEMENT_ROOT = "cohort_settlement_root";
31
- export declare const SEED_PROTOCOL_FEE_VAULT = "protocol_fee_vault";
32
- export declare const SEED_POOL_ORACLE_FEE_VAULT = "pool_oracle_fee_vault";
33
- export declare const SEED_SCHEMA = "schema";
34
- export declare const SEED_SCHEMA_DEPENDENCY = "schema_dependency";
35
- export declare const SEED_POOL_RULE = "pool_rule";
36
- export declare const SEED_INVITE_ISSUER = "invite_issuer";
37
- export declare const SEED_ENROLLMENT_REPLAY = "enrollment_replay";
38
- export declare const SEED_ATTESTATION_VOTE = "attestation_vote";
39
- export declare const SEED_OUTCOME_AGGREGATE = "outcome_agg";
40
- export declare const SEED_CLAIM_DELEGATE = "claim_delegate";
41
- export declare const SEED_PREMIUM_LEDGER = "premium_ledger";
42
- export declare const SEED_PREMIUM_REPLAY = "premium_replay";
43
- export declare const SEED_COVERAGE_CLAIM = "coverage_claim";
44
- export declare const ZERO_PUBKEY = "11111111111111111111111111111111";
45
- export declare function asPubkey(value: string | PublicKey): PublicKey;
46
- export declare function deriveConfigPda(programId: PublicKey): [PublicKey, number];
47
- export declare function derivePoolPda(params: {
48
- programId: string | PublicKey;
49
- authority: string | PublicKey;
50
- poolId: string;
51
- }): [PublicKey, number];
52
- export declare function deriveOraclePda(params: {
53
- programId: string | PublicKey;
54
- oracle: string | PublicKey;
55
- }): [PublicKey, number];
56
- export declare function deriveOracleProfilePda(params: {
57
- programId: string | PublicKey;
58
- oracle: string | PublicKey;
59
- }): [PublicKey, number];
60
- export declare function derivePoolOraclePda(params: {
61
- programId: string | PublicKey;
62
- poolAddress: string | PublicKey;
63
- oracle: string | PublicKey;
64
- }): [PublicKey, number];
65
- export declare function deriveMembershipPda(params: {
66
- programId: string | PublicKey;
67
- poolAddress: string | PublicKey;
68
- member: string | PublicKey;
69
- }): [PublicKey, number];
70
- export declare function deriveCycleOutcomePda(params: {
71
- programId: string | PublicKey;
72
- poolAddress: string | PublicKey;
73
- member: string | PublicKey;
74
- cycleHash: Uint8Array;
75
- }): [PublicKey, number];
76
- export declare function deriveClaimPda(params: {
77
- programId: string | PublicKey;
78
- poolAddress: string | PublicKey;
79
- seriesRefHash: Uint8Array;
80
- member: string | PublicKey;
81
- cycleHash: Uint8Array;
82
- ruleHash: Uint8Array;
83
- }): [PublicKey, number];
84
- export declare function deriveOracleStakePda(params: {
85
- programId: string | PublicKey;
86
- oracle: string | PublicKey;
87
- staker: string | PublicKey;
88
- }): [PublicKey, number];
89
- export declare function derivePoolOraclePolicyPda(params: {
90
- programId: string | PublicKey;
91
- poolAddress: string | PublicKey;
92
- }): [PublicKey, number];
93
- export declare function derivePoolTermsPda(params: {
94
- programId: string | PublicKey;
95
- poolAddress: string | PublicKey;
96
- }): [PublicKey, number];
97
- export declare function derivePoolAssetVaultPda(params: {
98
- programId: string | PublicKey;
99
- poolAddress: string | PublicKey;
100
- payoutMint: string | PublicKey;
101
- }): [PublicKey, number];
102
- export declare function derivePoolRiskConfigPda(params: {
103
- programId: string | PublicKey;
104
- poolAddress: string | PublicKey;
105
- }): [PublicKey, number];
106
- export declare function derivePoolLiquidityConfigPda(params: {
107
- programId: string | PublicKey;
108
- poolAddress: string | PublicKey;
109
- }): [PublicKey, number];
110
- export declare function derivePoolCapitalClassPda(params: {
111
- programId: string | PublicKey;
112
- poolAddress: string | PublicKey;
113
- shareMint: string | PublicKey;
114
- }): [PublicKey, number];
115
- export declare function derivePoolCompliancePolicyPda(params: {
116
- programId: string | PublicKey;
117
- poolAddress: string | PublicKey;
118
- }): [PublicKey, number];
119
- export declare function derivePoolControlAuthorityPda(params: {
120
- programId: string | PublicKey;
121
- poolAddress: string | PublicKey;
122
- }): [PublicKey, number];
123
- export declare function derivePoolAutomationPolicyPda(params: {
124
- programId: string | PublicKey;
125
- poolAddress: string | PublicKey;
126
- }): [PublicKey, number];
127
- export declare function derivePoolOraclePermissionSetPda(params: {
128
- programId: string | PublicKey;
129
- poolAddress: string | PublicKey;
130
- oracle: string | PublicKey;
131
- }): [PublicKey, number];
132
- export declare function deriveMemberCyclePda(params: {
133
- programId: string | PublicKey;
134
- poolAddress: string | PublicKey;
135
- seriesRefHash: Uint8Array;
136
- member: string | PublicKey;
137
- periodIndex: bigint | number;
138
- }): [PublicKey, number];
139
- export declare function deriveCycleQuoteReplayPda(params: {
140
- programId: string | PublicKey;
141
- poolAddress: string | PublicKey;
142
- seriesRefHash: Uint8Array;
143
- member: string | PublicKey;
144
- nonceHash: Uint8Array;
145
- }): [PublicKey, number];
146
- export declare function derivePoolTreasuryReservePda(params: {
147
- programId: string | PublicKey;
148
- poolAddress: string | PublicKey;
149
- paymentMint: string | PublicKey;
150
- }): [PublicKey, number];
151
- export declare function derivePoolShareMintPda(params: {
152
- programId: string | PublicKey;
153
- poolAddress: string | PublicKey;
154
- }): [PublicKey, number];
155
- export declare function deriveRedemptionRequestPda(params: {
156
- programId: string | PublicKey;
157
- poolAddress: string | PublicKey;
158
- redeemer: string | PublicKey;
159
- requestHash: Uint8Array;
160
- }): [PublicKey, number];
161
- export declare function deriveCohortSettlementRootPda(params: {
162
- programId: string | PublicKey;
163
- poolAddress: string | PublicKey;
164
- seriesRefHash: Uint8Array;
165
- cohortHash: Uint8Array;
166
- }): [PublicKey, number];
167
- export declare function deriveProtocolFeeVaultPda(params: {
168
- programId: string | PublicKey;
169
- paymentMint: string | PublicKey;
170
- }): [PublicKey, number];
171
- export declare function derivePoolOracleFeeVaultPda(params: {
172
- programId: string | PublicKey;
173
- poolAddress: string | PublicKey;
174
- oracle: string | PublicKey;
175
- paymentMint: string | PublicKey;
176
- }): [PublicKey, number];
177
- export declare function deriveSchemaPda(params: {
178
- programId: string | PublicKey;
179
- schemaKeyHash: Uint8Array;
180
- }): [PublicKey, number];
181
- export declare function deriveSchemaDependencyPda(params: {
182
- programId: string | PublicKey;
183
- schemaKeyHash: Uint8Array;
184
- }): [PublicKey, number];
185
- export declare function derivePoolRulePda(params: {
186
- programId: string | PublicKey;
187
- poolAddress: string | PublicKey;
188
- seriesRefHash: Uint8Array;
189
- ruleHash: Uint8Array;
190
- }): [PublicKey, number];
191
- export declare function deriveInviteIssuerPda(params: {
192
- programId: string | PublicKey;
193
- issuer: string | PublicKey;
194
- }): [PublicKey, number];
195
- export declare function deriveEnrollmentReplayPda(params: {
196
- programId: string | PublicKey;
197
- poolAddress: string | PublicKey;
198
- member: string | PublicKey;
199
- nonceHash: Uint8Array;
200
- }): [PublicKey, number];
201
- export declare function deriveAttestationVotePda(params: {
202
- programId: string | PublicKey;
203
- poolAddress: string | PublicKey;
204
- seriesRefHash: Uint8Array;
205
- member: string | PublicKey;
206
- cycleHash: Uint8Array;
207
- ruleHash: Uint8Array;
208
- oracle: string | PublicKey;
209
- }): [PublicKey, number];
210
- export declare function deriveClaimDelegatePda(params: {
211
- programId: string | PublicKey;
212
- poolAddress: string | PublicKey;
213
- member: string | PublicKey;
214
- }): [PublicKey, number];
215
- export declare function deriveOutcomeAggregatePda(params: {
216
- programId: string | PublicKey;
217
- poolAddress: string | PublicKey;
218
- seriesRefHash: Uint8Array;
219
- member: string | PublicKey;
220
- cycleHash: Uint8Array;
221
- ruleHash: Uint8Array;
222
- }): [PublicKey, number];
223
- export declare function derivePolicyPositionPda(params: {
224
- programId: string | PublicKey;
225
- poolAddress: string | PublicKey;
226
- seriesRefHash: Uint8Array;
227
- member: string | PublicKey;
228
- }): [PublicKey, number];
229
- export declare function derivePolicySeriesPda(params: {
230
- programId: string | PublicKey;
231
- poolAddress: string | PublicKey;
232
- seriesRefHash: Uint8Array;
233
- }): [PublicKey, number];
234
- export declare function derivePolicyPositionNftPda(params: {
235
- programId: string | PublicKey;
236
- poolAddress: string | PublicKey;
237
- seriesRefHash: Uint8Array;
238
- member: string | PublicKey;
239
- }): [PublicKey, number];
240
- export declare function derivePremiumLedgerPda(params: {
241
- programId: string | PublicKey;
242
- poolAddress: string | PublicKey;
243
- seriesRefHash: Uint8Array;
244
- member: string | PublicKey;
245
- }): [PublicKey, number];
246
- export declare function derivePremiumReplayPda(params: {
247
- programId: string | PublicKey;
248
- poolAddress: string | PublicKey;
249
- seriesRefHash: Uint8Array;
250
- member: string | PublicKey;
251
- replayHash: Uint8Array;
252
- }): [PublicKey, number];
253
- export declare function derivePolicySeriesPaymentOptionPda(params: {
254
- programId: string | PublicKey;
255
- poolAddress: string | PublicKey;
256
- seriesRefHash: Uint8Array;
257
- paymentMint: string | PublicKey;
258
- }): [PublicKey, number];
259
- export declare function deriveCoverageClaimPda(params: {
260
- programId: string | PublicKey;
261
- poolAddress: string | PublicKey;
262
- seriesRefHash: Uint8Array;
263
- member: string | PublicKey;
264
- intentHash: Uint8Array;
265
- }): [PublicKey, number];
1
+ export * from './internal/protocol-seeds/all.js';