@ocap/tx-pipeline 1.30.25 → 1.31.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 (149) hide show
  1. package/esm/appchain-sovereign-hub.d.mts +160 -0
  2. package/esm/appchain-sovereign-hub.mjs +348 -0
  3. package/esm/arcvault-external-adapter.d.mts +166 -0
  4. package/esm/arcvault-external-adapter.mjs +376 -0
  5. package/esm/encrypted-nft-envelope.d.mts +172 -0
  6. package/esm/encrypted-nft-envelope.mjs +458 -0
  7. package/esm/evm-simplified-bridge.d.mts +1370 -0
  8. package/esm/evm-simplified-bridge.mjs +3875 -0
  9. package/esm/give-to-mint-karma.d.mts +472 -0
  10. package/esm/give-to-mint-karma.mjs +1057 -0
  11. package/esm/helpers/replay-guard.d.mts +15 -0
  12. package/esm/helpers/replay-guard.mjs +23 -0
  13. package/esm/index.d.mts +10 -5
  14. package/esm/index.mjs +14 -10
  15. package/esm/legacy-protocol-sunset.d.mts +251 -0
  16. package/esm/legacy-protocol-sunset.mjs +1519 -0
  17. package/esm/library.d.mts +16 -0
  18. package/esm/library.mjs +17 -0
  19. package/esm/native-abt-exchange.d.mts +2055 -0
  20. package/esm/native-abt-exchange.mjs +7250 -0
  21. package/esm/ofac-screening.d.mts +17 -0
  22. package/esm/ofac-screening.mjs +39 -0
  23. package/esm/pipes/anti-land-attack.mjs +1 -1
  24. package/esm/pipes/decode-itx.mjs +43 -4
  25. package/esm/pipes/decode-tx.d.mts +2 -3
  26. package/esm/pipes/decode-tx.mjs +53 -115
  27. package/esm/pipes/extract-signer.mjs +2 -2
  28. package/esm/pipes/extract-state.mjs +14 -3
  29. package/esm/pipes/post-execution-invariant-gate.d.mts +61 -0
  30. package/esm/pipes/post-execution-invariant-gate.mjs +789 -0
  31. package/esm/pipes/pre-flight-waf.d.mts +34 -0
  32. package/esm/pipes/pre-flight-waf.mjs +603 -0
  33. package/esm/pipes/take-state-snapshot.mjs +3 -2
  34. package/esm/pipes/update-owner.mjs +39 -4
  35. package/esm/pipes/verify-account-migration.mjs +14 -4
  36. package/esm/pipes/verify-blocked.mjs +1 -1
  37. package/esm/pipes/verify-delegation.d.mts +22 -3
  38. package/esm/pipes/verify-delegation.mjs +259 -36
  39. package/esm/pipes/verify-list-size.mjs +1 -1
  40. package/esm/pipes/verify-multisig-v2.mjs +15 -7
  41. package/esm/pipes/verify-multisig.mjs +15 -7
  42. package/esm/pipes/verify-sender.mjs +1 -1
  43. package/esm/pipes/verify-signature.mjs +35 -6
  44. package/esm/pipes/verify-signer.mjs +2 -2
  45. package/esm/pipes/verify-state-diff.mjs +3 -3
  46. package/esm/pipes/verify-token-access.mjs +1 -1
  47. package/esm/pipes/verify-token-balance.mjs +13 -5
  48. package/esm/pipes/verify-transferrable.d.mts +8 -1
  49. package/esm/pipes/verify-transferrable.mjs +3 -3
  50. package/esm/pipes/verify-tx-input.mjs +2 -2
  51. package/esm/pipes/verify-tx-size.mjs +46 -2
  52. package/esm/pipes/verify-tx.mjs +5 -7
  53. package/esm/pipes/verify-updater.mjs +1 -1
  54. package/esm/social-economy-factories.d.mts +346 -0
  55. package/esm/social-economy-factories.mjs +845 -0
  56. package/esm/super-suites-foundation.d.mts +513 -0
  57. package/esm/super-suites-foundation.mjs +1241 -0
  58. package/esm/transaction-block.d.mts +471 -0
  59. package/esm/transaction-block.mjs +1906 -0
  60. package/esm/uniswap-erc7683-solver.d.mts +201 -0
  61. package/esm/uniswap-erc7683-solver.mjs +321 -0
  62. package/esm/uniswap-lp-copilot.d.mts +113 -0
  63. package/esm/uniswap-lp-copilot.mjs +320 -0
  64. package/esm/uniswap-router.d.mts +335 -0
  65. package/esm/uniswap-router.mjs +578 -0
  66. package/esm/uniswap-token-factory-graduation.d.mts +187 -0
  67. package/esm/uniswap-token-factory-graduation.mjs +426 -0
  68. package/esm/uniswap-v4-hook.d.mts +173 -0
  69. package/esm/uniswap-v4-hook.mjs +517 -0
  70. package/lib/appchain-sovereign-hub.cjs +352 -0
  71. package/lib/appchain-sovereign-hub.d.cts +160 -0
  72. package/lib/arcvault-external-adapter.cjs +383 -0
  73. package/lib/arcvault-external-adapter.d.cts +166 -0
  74. package/lib/encrypted-nft-envelope.cjs +477 -0
  75. package/lib/encrypted-nft-envelope.d.cts +172 -0
  76. package/lib/evm-simplified-bridge.cjs +3943 -0
  77. package/lib/evm-simplified-bridge.d.cts +1370 -0
  78. package/lib/give-to-mint-karma.cjs +1084 -0
  79. package/lib/give-to-mint-karma.d.cts +472 -0
  80. package/lib/helpers/replay-guard.cjs +27 -0
  81. package/lib/helpers/replay-guard.d.cts +15 -0
  82. package/lib/index.cjs +49 -16
  83. package/lib/index.d.cts +10 -5
  84. package/lib/legacy-protocol-sunset.cjs +1543 -0
  85. package/lib/legacy-protocol-sunset.d.cts +251 -0
  86. package/lib/library.cjs +303 -0
  87. package/lib/library.d.cts +16 -0
  88. package/lib/native-abt-exchange.cjs +7322 -0
  89. package/lib/native-abt-exchange.d.cts +2055 -0
  90. package/lib/ofac-screening.cjs +42 -0
  91. package/lib/ofac-screening.d.cts +17 -0
  92. package/lib/pipes/anti-land-attack.cjs +2 -2
  93. package/lib/pipes/decode-itx.cjs +43 -4
  94. package/lib/pipes/decode-itx.d.cts +1 -1
  95. package/lib/pipes/decode-tx.cjs +52 -116
  96. package/lib/pipes/decode-tx.d.cts +3 -4
  97. package/lib/pipes/extract-signer.cjs +2 -2
  98. package/lib/pipes/extract-state.cjs +14 -3
  99. package/lib/pipes/post-execution-invariant-gate.cjs +800 -0
  100. package/lib/pipes/post-execution-invariant-gate.d.cts +61 -0
  101. package/lib/pipes/pre-flight-waf.cjs +616 -0
  102. package/lib/pipes/pre-flight-waf.d.cts +34 -0
  103. package/lib/pipes/take-state-snapshot.cjs +3 -2
  104. package/lib/pipes/update-owner.cjs +40 -5
  105. package/lib/pipes/update-owner.d.cts +1 -1
  106. package/lib/pipes/verify-account-migration.cjs +14 -4
  107. package/lib/pipes/verify-blocked.cjs +1 -1
  108. package/lib/pipes/verify-delegation.cjs +259 -36
  109. package/lib/pipes/verify-delegation.d.cts +22 -3
  110. package/lib/pipes/verify-list-size.cjs +1 -1
  111. package/lib/pipes/verify-multisig-v2.cjs +15 -7
  112. package/lib/pipes/verify-multisig.cjs +15 -7
  113. package/lib/pipes/verify-sender.cjs +1 -1
  114. package/lib/pipes/verify-service-fee.d.cts +1 -1
  115. package/lib/pipes/verify-signature.cjs +35 -6
  116. package/lib/pipes/verify-signature.d.cts +1 -1
  117. package/lib/pipes/verify-signer.cjs +2 -2
  118. package/lib/pipes/verify-state-diff.cjs +4 -4
  119. package/lib/pipes/verify-token-access.cjs +2 -2
  120. package/lib/pipes/verify-token-balance.cjs +13 -5
  121. package/lib/pipes/verify-transferrable.cjs +3 -3
  122. package/lib/pipes/verify-transferrable.d.cts +8 -1
  123. package/lib/pipes/verify-tx-input.cjs +3 -3
  124. package/lib/pipes/verify-tx-size.cjs +46 -2
  125. package/lib/pipes/verify-tx-size.d.cts +1 -1
  126. package/lib/pipes/verify-tx.cjs +6 -8
  127. package/lib/pipes/verify-tx.d.cts +1 -1
  128. package/lib/pipes/verify-updater.cjs +1 -1
  129. package/lib/social-economy-factories.cjs +852 -0
  130. package/lib/social-economy-factories.d.cts +346 -0
  131. package/lib/super-suites-foundation.cjs +1257 -0
  132. package/lib/super-suites-foundation.d.cts +513 -0
  133. package/lib/transaction-block.cjs +1941 -0
  134. package/lib/transaction-block.d.cts +471 -0
  135. package/lib/uniswap-erc7683-solver.cjs +327 -0
  136. package/lib/uniswap-erc7683-solver.d.cts +201 -0
  137. package/lib/uniswap-lp-copilot.cjs +328 -0
  138. package/lib/uniswap-lp-copilot.d.cts +113 -0
  139. package/lib/uniswap-router.cjs +593 -0
  140. package/lib/uniswap-router.d.cts +335 -0
  141. package/lib/uniswap-token-factory-graduation.cjs +431 -0
  142. package/lib/uniswap-token-factory-graduation.d.cts +187 -0
  143. package/lib/uniswap-v4-hook.cjs +527 -0
  144. package/lib/uniswap-v4-hook.d.cts +173 -0
  145. package/package.json +11 -10
  146. package/esm/helpers/dedup-height.d.mts +0 -16
  147. package/esm/helpers/dedup-height.mjs +0 -61
  148. package/lib/helpers/dedup-height.cjs +0 -72
  149. package/lib/helpers/dedup-height.d.cts +0 -16
@@ -0,0 +1,513 @@
1
+ import { TransactionBlockPostConditions, TransactionStatement } from "./transaction-block.cjs";
2
+
3
+ //#region src/super-suites-foundation.d.ts
4
+ declare const DEFAULT_ABT_TOKEN_ADDRESS = "z35n6UoHSi9s4232bd3832948239482394823";
5
+ declare const IBO_DIVIDEND_PRECISION: bigint;
6
+ declare const BPS_DENOMINATOR = 10000n;
7
+ declare const MAX_PREPAID_CARD_ALLOWED_PROVIDERS = 64;
8
+ declare const MAX_IBO_TOTAL_FEE_SPLIT_BPS = 9000;
9
+ declare const MAX_ARCADE_HOUSE_SPLIT_BPS = 5000;
10
+ declare const MIN_ARCADE_HOUSE_SPLIT_BPS = 100;
11
+ declare const MAX_ARCADE_WINNERS_PER_ROUND = 50;
12
+ declare const MAX_STICKER_ROYALTY_BPS = 2500;
13
+ declare const MAX_SPACE_DISPLAYED_STICKERS = 100;
14
+ declare const MAX_SPACE_PLACED_MACHINES = 32;
15
+ declare const MIN_ATTENTION_STAMP_ABT = 1000000000000000n;
16
+ declare const MAX_ATTENTION_STAMP_TTL_EPOCHS = 90;
17
+ interface CreateSponsorBudgetPoolInput {
18
+ poolDid: string;
19
+ sponsorDid: string;
20
+ tokenAddress?: string;
21
+ initialFundedAbt: bigint;
22
+ epochIndex: number;
23
+ }
24
+ interface SponsorBudgetPoolState {
25
+ poolDid: string;
26
+ sponsorDid: string;
27
+ tokenAddress: string;
28
+ totalFundedAbt: bigint;
29
+ totalDrainedAbt: bigint;
30
+ totalReclaimedAbt: bigint;
31
+ availableBalanceAbt: bigint;
32
+ issuedCardCount: number;
33
+ active: boolean;
34
+ createdAtEpoch: number;
35
+ }
36
+ interface IssuePrepaidBudgetCardInput {
37
+ cardDid: string;
38
+ poolDid: string;
39
+ callerDid: string;
40
+ recipientHolderDid: string;
41
+ maxAllowanceAbt: bigint;
42
+ dailyLimitAbt: bigint;
43
+ allowedProviderDids: string[];
44
+ issuedAtEpoch: number;
45
+ expiresAtEpoch: number;
46
+ }
47
+ interface PrepaidBudgetCardNft {
48
+ cardDid: string;
49
+ poolDid: string;
50
+ sponsorDid: string;
51
+ holderDid: string;
52
+ maxAllowanceAbt: bigint;
53
+ consumedAbt: bigint;
54
+ dailyLimitAbt: bigint;
55
+ dailyConsumedByDay: Record<number, bigint>;
56
+ allowedProviderDids: string[];
57
+ issuedAtEpoch: number;
58
+ expiresAtEpoch: number;
59
+ transferable: false;
60
+ cashoutAllowed: false;
61
+ revoked: boolean;
62
+ }
63
+ interface RedeemPrepaidBudgetCardInput {
64
+ redemptionId: string;
65
+ cardDid: string;
66
+ callerDid: string;
67
+ providerDid: string;
68
+ serviceRefId: string;
69
+ redeemAmountAbt: bigint;
70
+ epochIndex: number;
71
+ /**
72
+ * Optional dayIndex; if provided, MUST equal `epochIndex` (canonical 1-epoch = 1-day mapping)
73
+ * so callers cannot spoof arbitrary day indices to bypass `dailyLimitAbt`.
74
+ */
75
+ dayIndex?: number;
76
+ }
77
+ interface RedeemPrepaidBudgetCardResult {
78
+ redemptionId: string;
79
+ cardDid: string;
80
+ poolDid: string;
81
+ holderDid: string;
82
+ providerDid: string;
83
+ serviceRefId: string;
84
+ drainedAbt: bigint;
85
+ remainingCardAllowanceAbt: bigint;
86
+ remainingDailyAllowanceAbt: bigint;
87
+ remainingPoolAvailableAbt: bigint;
88
+ capitalFrozenAtMintAbt: 0n;
89
+ statements: TransactionStatement[];
90
+ postConditions: TransactionBlockPostConditions;
91
+ }
92
+ interface RegisterIboOrganizationInput {
93
+ orgDid: string;
94
+ creatorDid: string;
95
+ computeProviderDid: string;
96
+ tokenAddress?: string;
97
+ /** Affiliate commission for non-holders (e.g. 500 bps = 5%) */
98
+ baseAffiliateBps: number;
99
+ /** Boosted affiliate commission for ArcKey holders (e.g. 2500 bps = 25%) */
100
+ holderAffiliateBps: number;
101
+ /** Share of gross ticket routed to O(1) ArcKey dividend pool (e.g. 2000 bps = 20%) */
102
+ dividendPoolBps: number;
103
+ /** Share of gross ticket routed to ARC AI/compute provider (e.g. 1000 bps = 10%) */
104
+ computeSplitBps: number;
105
+ /** Minimum ArcKey balance required to unlock holderAffiliateBps */
106
+ minPartnerKeyBalance: bigint;
107
+ initialPartners?: Array<{
108
+ partnerDid: string;
109
+ keyBalance: bigint;
110
+ }>;
111
+ epochIndex: number;
112
+ }
113
+ interface IboOrganizationState {
114
+ orgDid: string;
115
+ creatorDid: string;
116
+ computeProviderDid: string;
117
+ tokenAddress: string;
118
+ baseAffiliateBps: number;
119
+ holderAffiliateBps: number;
120
+ dividendPoolBps: number;
121
+ computeSplitBps: number;
122
+ minPartnerKeyBalance: bigint;
123
+ totalPartnerKeysSupply: bigint;
124
+ accDividendPerKeyScaled: bigint;
125
+ undistributedDividendRemainderScaled: bigint;
126
+ totalGrossVolumeAbt: bigint;
127
+ totalAffiliatePaidAbt: bigint;
128
+ totalDividendsDistributedAbt: bigint;
129
+ totalDividendClaimedAbt: bigint;
130
+ totalComputePaidAbt: bigint;
131
+ totalCreatorNetAbt: bigint;
132
+ createdAtEpoch: number;
133
+ }
134
+ interface IboPartnerPosition {
135
+ orgDid: string;
136
+ partnerDid: string;
137
+ keyBalance: bigint;
138
+ rewardDebtScaled: bigint;
139
+ pendingUnclaimedAbt: bigint;
140
+ cumulativeClaimedAbt: bigint;
141
+ }
142
+ interface SettleIboServiceCheckoutInput {
143
+ checkoutId: string;
144
+ orgDid: string;
145
+ buyerDid: string;
146
+ serviceId: string;
147
+ ticketPriceAbt: bigint;
148
+ referrerDid?: string;
149
+ /** Optional PrepaidBudgetCard redemption so a sponsored gift card directly fuels the IBO split! */
150
+ prepaidCardRedemption?: {
151
+ cardDid: string;
152
+ dayIndex: number;
153
+ };
154
+ epochIndex: number;
155
+ }
156
+ interface SettleIboServiceCheckoutResult {
157
+ checkoutId: string;
158
+ orgDid: string;
159
+ buyerDid: string;
160
+ payerDid: string;
161
+ fundedViaPrepaidCardDid?: string;
162
+ ticketPriceAbt: bigint;
163
+ referrerDid?: string;
164
+ referrerIsPartnerHolder: boolean;
165
+ appliedAffiliateBps: number;
166
+ affiliateAbt: bigint;
167
+ dividendAbt: bigint;
168
+ computeAbt: bigint;
169
+ creatorNetAbt: bigint;
170
+ conservationVerified: true;
171
+ statements: TransactionStatement[];
172
+ postConditions: TransactionBlockPostConditions;
173
+ }
174
+ type ArcadeSettlementMode = 'COMMIT_REVEAL_INSTANT_JACKPOT' | 'TABLE_MATCH_SETTLEMENT' | 'EPOCH_HIGH_SCORE_LEADERBOARD';
175
+ interface RegisterArcadeMachineInput {
176
+ machineDid: string;
177
+ gameCreatorDid: string;
178
+ stickerArtistDid: string;
179
+ roomHostDid: string;
180
+ protocolTreasuryDid: string;
181
+ tokenAddress?: string;
182
+ ticketPriceAbt: bigint;
183
+ creatorSplitBps: number;
184
+ artistSplitBps: number;
185
+ roomHostSplitBps: number;
186
+ referrerSplitBps: number;
187
+ protocolSplitBps: number;
188
+ settlementMode: ArcadeSettlementMode;
189
+ epochIndex: number;
190
+ }
191
+ interface ArcadeMachineState {
192
+ machineDid: string;
193
+ gameCreatorDid: string;
194
+ stickerArtistDid: string;
195
+ roomHostDid: string;
196
+ protocolTreasuryDid: string;
197
+ tokenAddress: string;
198
+ ticketPriceAbt: bigint;
199
+ creatorSplitBps: number;
200
+ artistSplitBps: number;
201
+ roomHostSplitBps: number;
202
+ referrerSplitBps: number;
203
+ protocolSplitBps: number;
204
+ totalHouseSplitBps: number;
205
+ prizePoolContributionBps: number;
206
+ settlementMode: ArcadeSettlementMode;
207
+ poolBalanceAbt: bigint;
208
+ totalTicketsPlayed: number;
209
+ totalGrossInflowAbt: bigint;
210
+ totalSplitBPaidAbt: bigint;
211
+ totalPoolCAddedAbt: bigint;
212
+ totalPayoutsDistributedAbt: bigint;
213
+ createdAtEpoch: number;
214
+ }
215
+ interface PlayArcadeMachineTicketInput {
216
+ playId: string;
217
+ roundId: string;
218
+ machineDid: string;
219
+ playerDid: string;
220
+ referrerDid?: string;
221
+ /** Required when machine settlementMode === 'COMMIT_REVEAL_INSTANT_JACKPOT' */
222
+ houseCommitDigest?: string;
223
+ /** Optional PrepaidBudgetCard funding */
224
+ prepaidCardRedemption?: {
225
+ cardDid: string;
226
+ dayIndex: number;
227
+ };
228
+ epochIndex: number;
229
+ }
230
+ interface PlayArcadeMachineTicketResult {
231
+ playId: string;
232
+ roundId: string;
233
+ machineDid: string;
234
+ playerDid: string;
235
+ payerDid: string;
236
+ fundedViaPrepaidCardDid?: string;
237
+ ticketPriceAbt: bigint;
238
+ splitB: {
239
+ creatorAbt: bigint;
240
+ artistAbt: bigint;
241
+ roomHostAbt: bigint;
242
+ referrerAbt: bigint;
243
+ protocolAbt: bigint;
244
+ totalBAbt: bigint;
245
+ };
246
+ poolCAddedAbt: bigint;
247
+ newPoolBalanceAbt: bigint;
248
+ conservationVerified: true;
249
+ statements: TransactionStatement[];
250
+ postConditions: TransactionBlockPostConditions;
251
+ }
252
+ interface SettleArcadeMachineWinnersInput {
253
+ settlementId: string;
254
+ roundId: string;
255
+ machineDid: string;
256
+ callerDid: string;
257
+ mode: ArcadeSettlementMode;
258
+ /** For COMMIT_REVEAL_INSTANT_JACKPOT: preimage secret & player seed */
259
+ commitRevealProof?: {
260
+ houseSecretHex: string;
261
+ playerSeedHex: string;
262
+ winningThresholdRollBps: number;
263
+ };
264
+ /** ForEPOCH_HIGH_SCORE_LEADERBOARD or TABLE_MATCH_SETTLEMENT: deterministic replay log hash */
265
+ replayVerificationDigest?: string;
266
+ winners: Array<{
267
+ winnerDid: string;
268
+ payoutShareOfPoolBps: number;
269
+ }>;
270
+ epochIndex: number;
271
+ }
272
+ interface SettleArcadeMachineWinnersResult {
273
+ settlementId: string;
274
+ roundId: string;
275
+ machineDid: string;
276
+ mode: ArcadeSettlementMode;
277
+ poolBalanceBeforeAbt: bigint;
278
+ totalPayoutAbt: bigint;
279
+ poolBalanceAfterAbt: bigint;
280
+ winnerPayouts: Array<{
281
+ winnerDid: string;
282
+ amountAbt: bigint;
283
+ }>;
284
+ deterministicRollBps?: number;
285
+ zeroPonziMintingVerified: true;
286
+ statements: TransactionStatement[];
287
+ postConditions: TransactionBlockPostConditions;
288
+ }
289
+ interface RegisterStickerNftInput {
290
+ stickerDid: string;
291
+ creatorDid: string;
292
+ initialHolderDid: string;
293
+ primaryPriceAbt: bigint;
294
+ royaltyBps: number;
295
+ /** Optional IBO organization DID that receives iboRoyaltyShareBps of creator royalties */
296
+ iboOrgDid?: string;
297
+ iboRoyaltyShareBps?: number;
298
+ payloadCommitmentDigest: string;
299
+ epochIndex: number;
300
+ }
301
+ interface StickerNftRecord {
302
+ stickerDid: string;
303
+ creatorDid: string;
304
+ holderDid: string;
305
+ primaryPriceAbt: bigint;
306
+ royaltyBps: number;
307
+ iboOrgDid?: string;
308
+ iboRoyaltyShareBps: number;
309
+ payloadCommitmentDigest: string;
310
+ totalSecondarySalesCount: number;
311
+ totalSecondaryVolumeAbt: bigint;
312
+ createdAtEpoch: number;
313
+ }
314
+ interface MakeStickerOfferInput {
315
+ offerId: string;
316
+ stickerDid: string;
317
+ buyerDid: string;
318
+ offerAmountAbt: bigint;
319
+ expiresAtEpoch: number;
320
+ epochIndex: number;
321
+ }
322
+ interface StickerOfferRecord {
323
+ offerId: string;
324
+ stickerDid: string;
325
+ buyerDid: string;
326
+ offerAmountAbt: bigint;
327
+ createdAtEpoch: number;
328
+ expiresAtEpoch: number;
329
+ status: 'OPEN_ESCROWED' | 'ACCEPTED' | 'CANCELLED_REFUNDED';
330
+ }
331
+ interface AcceptStickerOfferInput {
332
+ offerId: string;
333
+ sellerDid: string;
334
+ epochIndex: number;
335
+ }
336
+ interface AcceptStickerOfferResult {
337
+ offerId: string;
338
+ stickerDid: string;
339
+ sellerDid: string;
340
+ buyerDid: string;
341
+ grossOfferAbt: bigint;
342
+ creatorRoyaltyAbt: bigint;
343
+ iboDividendRoyaltyAbt: bigint;
344
+ sellerNetAbt: bigint;
345
+ conservationVerified: true;
346
+ statements: TransactionStatement[];
347
+ postConditions: TransactionBlockPostConditions;
348
+ }
349
+ interface GrantSpaceAssetDelegationInput {
350
+ grantId: string;
351
+ assetDid: string;
352
+ assetKind: 'STICKER_NFT' | 'ARCADE_MACHINE';
353
+ ownerDid: string;
354
+ delegateRoomOwnerDid: string;
355
+ expiresAtEpoch: number;
356
+ epochIndex: number;
357
+ }
358
+ interface SpaceAssetDelegationGrant {
359
+ grantId: string;
360
+ assetDid: string;
361
+ assetKind: 'STICKER_NFT' | 'ARCADE_MACHINE';
362
+ ownerDid: string;
363
+ delegateRoomOwnerDid: string;
364
+ grantedAtEpoch: number;
365
+ expiresAtEpoch: number;
366
+ revoked: boolean;
367
+ }
368
+ interface AnchorSpaceManifestInput {
369
+ spaceDid: string;
370
+ roomOwnerDid: string;
371
+ displayedStickerDids: string[];
372
+ placedMachineDids: string[];
373
+ /** 32-byte SHA-256 hash of off-chain ArcSpace 3D layout / photo album manifest */
374
+ offChainLayoutCommitmentDigest: string;
375
+ epochIndex: number;
376
+ }
377
+ interface SpaceManifestAnchorRecord {
378
+ spaceDid: string;
379
+ roomOwnerDid: string;
380
+ version: number;
381
+ displayedStickerDids: string[];
382
+ placedMachineDids: string[];
383
+ offChainLayoutCommitmentDigest: string;
384
+ manifestRootDigest: string;
385
+ anchoredAtEpoch: number;
386
+ onChainPayloadFootprint: 'PROOF_ONLY_32B';
387
+ }
388
+ type AttentionStampResolutionMode = 'REFUND_ON_READ_OR_REPLY' | 'CLAIM_AS_PAID_CONSULTATION' | 'SLASH_ON_SPAM';
389
+ interface LockAttentionStampInput {
390
+ stampId: string;
391
+ senderDid: string;
392
+ recipientDid: string;
393
+ stampAmountAbt: bigint;
394
+ messageCommitmentDigest: string;
395
+ referrerDid?: string;
396
+ referrerBps?: number;
397
+ protocolTreasuryDid?: string;
398
+ protocolFeeBps?: number;
399
+ spamSinkDid: string;
400
+ expiresAtEpoch: number;
401
+ epochIndex: number;
402
+ }
403
+ interface AttentionStampRecord {
404
+ stampId: string;
405
+ senderDid: string;
406
+ recipientDid: string;
407
+ stampAmountAbt: bigint;
408
+ messageCommitmentDigest: string;
409
+ referrerDid?: string;
410
+ referrerBps: number;
411
+ protocolTreasuryDid?: string;
412
+ protocolFeeBps: number;
413
+ spamSinkDid: string;
414
+ createdAtEpoch: number;
415
+ expiresAtEpoch: number;
416
+ status: 'ESCROWED' | 'REFUNDED_ON_REPLY' | 'CLAIMED_CONSULTATION' | 'SLASHED_TO_SPAM_SINK' | 'EXPIRED_RECLAIMED';
417
+ }
418
+ interface ResolveAttentionStampInput {
419
+ stampId: string;
420
+ callerDid: string;
421
+ mode: AttentionStampResolutionMode;
422
+ replyOrSpamEvidenceDigest: string;
423
+ epochIndex: number;
424
+ }
425
+ interface ResolveAttentionStampResult {
426
+ stampId: string;
427
+ mode: AttentionStampResolutionMode;
428
+ senderRefundAbt: bigint;
429
+ recipientNetAbt: bigint;
430
+ referrerAbt: bigint;
431
+ protocolFeeAbt: bigint;
432
+ spamSinkAbt: bigint;
433
+ conservationVerified: true;
434
+ statements: TransactionStatement[];
435
+ postConditions: TransactionBlockPostConditions;
436
+ }
437
+ /**
438
+ * Compute deterministic 32-byte Merkle/manifest commitment for an ArcSpace room (#1277).
439
+ */
440
+ declare function computeSpaceManifestRootDigest(input: {
441
+ spaceDid: string;
442
+ roomOwnerDid: string;
443
+ version: number;
444
+ displayedStickerDids: string[];
445
+ placedMachineDids: string[];
446
+ offChainLayoutCommitmentDigest: string;
447
+ epochIndex: number;
448
+ }): string;
449
+ /**
450
+ * Compute deterministic commit-reveal digest for an ArcadeMachine instant jackpot round (#1276).
451
+ */
452
+ declare function computeArcadeCommitDigest(houseSecretHex: string, roundId: string, machineDid: string): string;
453
+ /**
454
+ * Master Engine implementing Issues #1273, #1275, #1276, and #1277 (closing Master Epic #1272):
455
+ * - #1273: Lazy Shared `SponsorBudgetPool` & `PrepaidBudgetCard` NFT
456
+ * - #1275: `IboPartnerEngine` (`ArcKey` equity decoupled from flat consumer ticket + tiered holder commission + O(1) dividend pool)
457
+ * - #1276: `(A,B,C,n,m)` `ArcadeMachinePool` conservation engine + 10 ABT `StickerOfferAndRoyalty` escrow
458
+ * - #1277: `SpaceManifestAnchor` ownership/delegation verifier + `AttentionStampEscrow` anti-spam micro-ABT stamp
459
+ */
460
+ declare class OcapSuperSuitesFoundationEngine {
461
+ private readonly sponsorPools;
462
+ private readonly prepaidCards;
463
+ private readonly consumedRedemptionIds;
464
+ private readonly iboOrgs;
465
+ private readonly iboPositions;
466
+ private readonly consumedCheckoutIds;
467
+ private readonly arcadeMachines;
468
+ private readonly arcadeRoundPlayers;
469
+ private readonly arcadeRoundCommits;
470
+ private readonly settledArcadeRounds;
471
+ private readonly consumedPlayIds;
472
+ private readonly stickers;
473
+ private readonly stickerOffers;
474
+ private readonly spaceDelegations;
475
+ private readonly spaceManifests;
476
+ private readonly attentionStamps;
477
+ createSponsorBudgetPool(input: CreateSponsorBudgetPoolInput): SponsorBudgetPoolState;
478
+ topUpSponsorBudgetPool(poolDid: string, callerDid: string, addAmountAbt: bigint): SponsorBudgetPoolState;
479
+ reclaimUnusedSponsorBudgetPool(poolDid: string, callerDid: string, reclaimAmountAbt: bigint): SponsorBudgetPoolState;
480
+ issuePrepaidBudgetCard(input: IssuePrepaidBudgetCardInput): PrepaidBudgetCardNft;
481
+ redeemPrepaidBudgetCard(input: RedeemPrepaidBudgetCardInput): RedeemPrepaidBudgetCardResult;
482
+ getSponsorBudgetPool(poolDid: string): SponsorBudgetPoolState | undefined;
483
+ getPrepaidBudgetCard(cardDid: string): PrepaidBudgetCardNft | undefined;
484
+ registerIboOrganization(input: RegisterIboOrganizationInput): IboOrganizationState;
485
+ private settlePartnerPendingReward;
486
+ updatePartnerKeyBalance(orgDid: string, callerDid: string, partnerDid: string, newKeyBalance: bigint): IboPartnerPosition;
487
+ settleIboServiceCheckout(input: SettleIboServiceCheckoutInput): SettleIboServiceCheckoutResult;
488
+ claimIboPartnerDividend(orgDid: string, partnerDid: string): {
489
+ orgDid: string;
490
+ partnerDid: string;
491
+ claimedAbt: bigint;
492
+ cumulativeClaimedAbt: bigint;
493
+ statements: TransactionStatement[];
494
+ };
495
+ getIboOrganization(orgDid: string): IboOrganizationState | undefined;
496
+ registerArcadeMachine(input: RegisterArcadeMachineInput): ArcadeMachineState;
497
+ playArcadeMachineTicket(input: PlayArcadeMachineTicketInput): PlayArcadeMachineTicketResult;
498
+ settleArcadeMachineWinners(input: SettleArcadeMachineWinnersInput): SettleArcadeMachineWinnersResult;
499
+ getArcadeMachine(machineDid: string): ArcadeMachineState | undefined;
500
+ registerStickerNft(input: RegisterStickerNftInput): StickerNftRecord;
501
+ makeStickerOffer(input: MakeStickerOfferInput): StickerOfferRecord;
502
+ cancelStickerOffer(offerId: string, callerDid: string): StickerOfferRecord;
503
+ acceptStickerOffer(input: AcceptStickerOfferInput): AcceptStickerOfferResult;
504
+ getStickerNft(stickerDid: string): StickerNftRecord | undefined;
505
+ grantSpaceAssetDelegation(input: GrantSpaceAssetDelegationInput): SpaceAssetDelegationGrant;
506
+ private hasActiveSpaceAssetAuthorization;
507
+ anchorSpaceManifest(input: AnchorSpaceManifestInput): SpaceManifestAnchorRecord;
508
+ lockAttentionStamp(input: LockAttentionStampInput): AttentionStampRecord;
509
+ resolveAttentionStamp(input: ResolveAttentionStampInput): ResolveAttentionStampResult;
510
+ reclaimExpiredAttentionStamp(stampId: string, callerDid: string, epochIndex: number): AttentionStampRecord;
511
+ }
512
+ //#endregion
513
+ export { AcceptStickerOfferInput, AcceptStickerOfferResult, AnchorSpaceManifestInput, ArcadeMachineState, ArcadeSettlementMode, AttentionStampRecord, AttentionStampResolutionMode, BPS_DENOMINATOR, CreateSponsorBudgetPoolInput, DEFAULT_ABT_TOKEN_ADDRESS, GrantSpaceAssetDelegationInput, IBO_DIVIDEND_PRECISION, IboOrganizationState, IboPartnerPosition, IssuePrepaidBudgetCardInput, LockAttentionStampInput, MAX_ARCADE_HOUSE_SPLIT_BPS, MAX_ARCADE_WINNERS_PER_ROUND, MAX_ATTENTION_STAMP_TTL_EPOCHS, MAX_IBO_TOTAL_FEE_SPLIT_BPS, MAX_PREPAID_CARD_ALLOWED_PROVIDERS, MAX_SPACE_DISPLAYED_STICKERS, MAX_SPACE_PLACED_MACHINES, MAX_STICKER_ROYALTY_BPS, MIN_ARCADE_HOUSE_SPLIT_BPS, MIN_ATTENTION_STAMP_ABT, MakeStickerOfferInput, OcapSuperSuitesFoundationEngine, PlayArcadeMachineTicketInput, PlayArcadeMachineTicketResult, PrepaidBudgetCardNft, RedeemPrepaidBudgetCardInput, RedeemPrepaidBudgetCardResult, RegisterArcadeMachineInput, RegisterIboOrganizationInput, RegisterStickerNftInput, ResolveAttentionStampInput, ResolveAttentionStampResult, SettleArcadeMachineWinnersInput, SettleArcadeMachineWinnersResult, SettleIboServiceCheckoutInput, SettleIboServiceCheckoutResult, SpaceAssetDelegationGrant, SpaceManifestAnchorRecord, SponsorBudgetPoolState, StickerNftRecord, StickerOfferRecord, computeArcadeCommitDigest, computeSpaceManifestRootDigest };