@mysten/deepbook-v3 2.5.1 → 2.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 (101) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/PREDICT.md +160 -12
  3. package/dist/contracts/account/account.d.mts +23 -23
  4. package/dist/contracts/account/account_events.d.mts +20 -20
  5. package/dist/contracts/account/account_events.d.mts.map +1 -1
  6. package/dist/contracts/account/account_registry.d.mts +13 -13
  7. package/dist/contracts/deepbook/balances.d.mts +4 -4
  8. package/dist/contracts/deepbook/order.d.mts +12 -12
  9. package/dist/contracts/deepbook_predict/admin.d.mts +4 -4
  10. package/dist/contracts/deepbook_predict/builder_code.d.mts +11 -11
  11. package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -1
  12. package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
  13. package/dist/contracts/deepbook_predict/config_events.d.mts +67 -67
  14. package/dist/contracts/deepbook_predict/expiry_market.d.mts +176 -96
  15. package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -1
  16. package/dist/contracts/deepbook_predict/expiry_market.mjs +114 -1
  17. package/dist/contracts/deepbook_predict/expiry_market.mjs.map +1 -1
  18. package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +5 -5
  19. package/dist/contracts/deepbook_predict/market_manager.d.mts +27 -27
  20. package/dist/contracts/deepbook_predict/order_events.d.mts +50 -50
  21. package/dist/contracts/deepbook_predict/pause_cap.d.mts +5 -5
  22. package/dist/contracts/deepbook_predict/plp.d.mts +72 -72
  23. package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +5 -5
  24. package/dist/contracts/deepbook_predict/predict_account.d.mts +14 -14
  25. package/dist/contracts/deepbook_predict/pricing.d.mts +53 -53
  26. package/dist/contracts/deepbook_predict/protocol_config.d.mts +64 -64
  27. package/dist/contracts/deepbook_predict/range_codec.d.mts +2 -2
  28. package/dist/contracts/deepbook_predict/registry.d.mts +28 -28
  29. package/dist/contracts/deepbook_predict/strike_exposure.mjs +12 -0
  30. package/dist/contracts/deepbook_predict/strike_exposure.mjs.map +1 -1
  31. package/dist/contracts/deepbook_predict/vault_events.d.mts +105 -105
  32. package/dist/contracts/deepbook_sessions/session_config.d.mts +4 -4
  33. package/dist/contracts/deepbook_sessions/sessions.d.mts +35 -10
  34. package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
  35. package/dist/contracts/deepbook_sessions/sessions.mjs +44 -1
  36. package/dist/contracts/deepbook_sessions/sessions.mjs.map +1 -1
  37. package/dist/deployments/mainnet.d.mts.map +1 -1
  38. package/dist/deployments/mainnet.mjs +2 -0
  39. package/dist/deployments/mainnet.mjs.map +1 -1
  40. package/dist/deployments/testnet.d.mts.map +1 -1
  41. package/dist/deployments/testnet.mjs +4 -2
  42. package/dist/deployments/testnet.mjs.map +1 -1
  43. package/dist/deployments/types.d.mts +1 -1
  44. package/dist/predict/client.d.mts +12 -3
  45. package/dist/predict/client.d.mts.map +1 -1
  46. package/dist/predict/client.mjs +39 -18
  47. package/dist/predict/client.mjs.map +1 -1
  48. package/dist/predict/config/generated.d.mts +3 -2
  49. package/dist/predict/config/generated.d.mts.map +1 -1
  50. package/dist/predict/config/generated.mjs +1 -0
  51. package/dist/predict/config/generated.mjs.map +1 -1
  52. package/dist/predict/config/types.d.mts +3 -0
  53. package/dist/predict/config/types.d.mts.map +1 -1
  54. package/dist/predict/cost.d.mts +353 -0
  55. package/dist/predict/cost.d.mts.map +1 -0
  56. package/dist/predict/cost.mjs +555 -0
  57. package/dist/predict/cost.mjs.map +1 -0
  58. package/dist/predict/decode.mjs +6 -7
  59. package/dist/predict/decode.mjs.map +1 -1
  60. package/dist/predict/index.d.mts +3 -2
  61. package/dist/predict/index.mjs +2 -1
  62. package/dist/predict/pricing.mjs +1 -1
  63. package/dist/predict/reads/positions.mjs +1 -1
  64. package/dist/predict/reads/positions.mjs.map +1 -1
  65. package/dist/predict/tx/trade.d.mts.map +1 -1
  66. package/dist/predict/tx/trade.mjs +18 -2
  67. package/dist/predict/tx/trade.mjs.map +1 -1
  68. package/dist/sessions.d.mts +17 -1
  69. package/dist/sessions.d.mts.map +1 -1
  70. package/dist/sessions.mjs +22 -2
  71. package/dist/sessions.mjs.map +1 -1
  72. package/dist/transactions/balanceManager.d.mts +12 -12
  73. package/dist/transactions/deepbook.d.mts +20 -20
  74. package/dist/transactions/deepbookAdmin.d.mts +4 -4
  75. package/dist/transactions/deepbookAdmin.d.mts.map +1 -1
  76. package/dist/transactions/marginAdmin.d.mts +7 -7
  77. package/dist/transactions/marginAdmin.d.mts.map +1 -1
  78. package/dist/transactions/marginLiquidations.d.mts +3 -3
  79. package/dist/transactions/marginMaintainer.d.mts +5 -5
  80. package/dist/transactions/marginMaintainer.d.mts.map +1 -1
  81. package/dist/transactions/marginManager.d.mts +32 -32
  82. package/dist/transactions/marginPool.d.mts +18 -18
  83. package/dist/transactions/marginRegistry.d.mts +16 -16
  84. package/dist/transactions/marginTPSL.d.mts +10 -10
  85. package/dist/transactions/poolProxy.d.mts +8 -8
  86. package/package.json +2 -2
  87. package/src/contracts/deepbook_predict/expiry_market.ts +160 -0
  88. package/src/contracts/deepbook_predict/strike_exposure.ts +14 -0
  89. package/src/contracts/deepbook_sessions/sessions.ts +68 -0
  90. package/src/deployments/mainnet.ts +4 -1
  91. package/src/deployments/testnet.ts +6 -3
  92. package/src/deployments/types.ts +4 -2
  93. package/src/predict/client.ts +80 -27
  94. package/src/predict/config/generated.ts +4 -2
  95. package/src/predict/config/types.ts +3 -0
  96. package/src/predict/cost.ts +1022 -0
  97. package/src/predict/decode.ts +8 -8
  98. package/src/predict/index.ts +9 -0
  99. package/src/predict/reads/positions.ts +1 -1
  100. package/src/predict/tx/trade.ts +30 -1
  101. package/src/sessions.ts +37 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @mysten/deepbook-v3
2
2
 
3
+ ## 2.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 785e9cd: Add `predict.cost`: client-side all-in trade cost for Predict, with no chain call.
8
+ `cost.mintCost` returns the exact debit a mint makes (premium plus the trading, builder,
9
+ congestion and inventory-impact fees, net of any sponsor subsidy), `cost.mintCostForBudget` sizes
10
+ a lot-rounded fill whose all-in cost fits a budget — the `expiry_market::mint_exact_cost` lot
11
+ search, run locally — and `cost.redeemLiveProceeds` returns what closing a live position credits.
12
+ The fee components (`tradingFee`, `builderFee`, `feeIncentiveSubsidy`, `congestionPenaltyRate`,
13
+ `mintInventoryImpact`, `closeInventoryImpact`, `expiryFeeMultiplier`, `bernoulliFeeRate`) and the
14
+ order-ID helpers (`decodeOrderRange`, `orderStrikes`) are exported alongside. The arithmetic is an
15
+ exact integer port of the deployed fee path: matching every execution input yields the same raw
16
+ amounts. Invalid unsigned inputs are rejected, and enabled inventory impact requires book data.
17
+ Budget sizing preserves the contract's best-effort maximum-payout fallback, which can miss a
18
+ larger admissible fill or reject a quantity floor that another fill could meet.
19
+ `exactProbabilities` identifies raw probability inputs, without certifying their source or state
20
+ freshness. These helpers provide local previews; `read.quoteMint` / `read.quoteRedeem` simulate
21
+ the actual transaction against account and market state before submission.
22
+
23
+ Update Testnet Predict/Sessions to v2 and preserve `predictV1` / `sessionsPackageIdV1` for
24
+ existing structs, events and dynamic-field keys. Generate call targets and type origins from
25
+ Published.toml alongside the initial deployment manifest; Mainnet remains v1. Add `tx.mintCost`,
26
+ `read.quoteMintCost`, `SessionsContract.mintExactCost` and regenerated v2 Move bindings.
27
+
28
+ Expose payout multiple and budget/cap/unspent amounts for mint previews, plus net proceeds per
29
+ contract, raw range probability, and optional validated remaining quantity for live-redeem
30
+ previews.
31
+
3
32
  ## 2.5.1
4
33
 
5
34
  ## 2.5.0
package/PREDICT.md CHANGED
@@ -187,22 +187,23 @@ const tx = await client.predict.tx.mint(
187
187
 
188
188
  ## What's in the box
189
189
 
190
- - **`client.predict.tx`** — `createManager`, `deposit`, `withdraw`, `mint`, `mintAmount`, `redeem`,
191
- `claimSettled`, `supplyPlp`, `withdrawPlp`, `cancelSupplyPlp`, `cancelWithdrawPlp`,
192
- `setBuilderCode`, `unsetBuilderCode`. Market-resolving builders
193
- (`mint`/`mintAmount`/`redeem`/`claimSettled`) are async: they resolve the market object from
194
- `{ underlying, expiryMs, strike, side }` via the on-chain registry (cached per client).
190
+ - **`client.predict.tx`** — `createManager`, `deposit`, `withdraw`, `mint`, `mintAmount`,
191
+ `mintCost`, `redeem`, `claimSettled`, `supplyPlp`, `withdrawPlp`, `cancelSupplyPlp`,
192
+ `cancelWithdrawPlp`, `setBuilderCode`, `unsetBuilderCode`. Market-resolving builders
193
+ (`mint`/`mintAmount`/`mintCost`/`redeem`/`claimSettled`) are async: they resolve the market object
194
+ from `{ underlying, expiryMs, strike, side }` via the on-chain registry (cached per client).
195
195
  - **`client.predict.read`** — `markets()` (summaries of the pool's **active** markets — live and not
196
196
  yet settled, so a market past expiry that nobody has settled is still listed and quoting against
197
197
  it aborts; filter on `expiryMs` and `mintPaused` before trading: id, expiry, tick size, admission
198
198
  tick size, mint-paused, reference price), `market(desc)` (state + live NAV), `price(m)` (anonymous
199
199
  both-sides pricing for any strike, one chain call per strike), `pricer(m)` (a **client-side board
200
200
  pricer** — one chain read of the resolved pricer, then price every strike locally; see below),
201
- `quoteMint(owner, m, opts)` / `quoteRedeem(owner, m, opts)` (exact dry-run quotes: real fees from
202
- the real code path — and they throw the same typed errors the real trade would, so a quote doubles
203
- as preflight), `balance(owner)`, `plpBalance(owner)`, `pool()`, `positions(owner)` (chain-only
204
- enumeration of open positions), `hasPosition(owner, marketId, orderId)`. All reads run over the
205
- client's `simulateTransaction`; no indexer required.
201
+ `quoteMint(owner, m, opts)` / `quoteMintCost(owner, m, opts)` / `quoteRedeem(owner, m, opts)`
202
+ (exact dry-run quotes: real fees from the real code path — and they throw the same typed errors
203
+ the real trade would, so a quote doubles as preflight), `balance(owner)`, `plpBalance(owner)`,
204
+ `pool()`, `positions(owner)` (chain-only enumeration of open positions),
205
+ `hasPosition(owner, marketId, orderId)`. All reads run over the client's `simulateTransaction`; no
206
+ indexer required.
206
207
  - **`client.predict.decode`** — pure execution-result decoders (no network): `mint`, `redeem`,
207
208
  `claim`, `createManager`, `deposit`, `withdraw`, `plpRequest`, `plpCancel`, `builderCode`. Each
208
209
  singular form throws unless exactly one matching event is present; `mints`, `redeems` and `claims`
@@ -245,6 +246,11 @@ const tx = await client.predict.tx.mint(
245
246
  tx.add(accountMoveCalls.share({ config, arguments: { self: wrapper } }));
246
247
  ```
247
248
 
249
+ - **`cost`** — the deployed FEE math as an exact integer port, so an all-in quote costs no chain
250
+ call: `mintCost` (what a mint debits), `mintCostForBudget` (the `mint_exact_cost` budget search),
251
+ `redeemLiveProceeds` (what a live close credits), plus the components they are built from. See
252
+ below.
253
+
248
254
  - **Typed errors** — invalid inputs throw `PredictInputError` before the chain sees them; failed
249
255
  simulations throw `PredictMoveError` with the decoded Move abort (`module`, `code`, `abortName`).
250
256
 
@@ -289,10 +295,122 @@ const fwd = pricing.forward(pythSpot, bsSpot, bsForward); // Pyth re-anchored by
289
295
  const rolled = pricing.rollDown(rawSvi, remainingMs, anchorTteMs); // decay a, b toward expiry
290
296
  ```
291
297
 
298
+ ## Client-side cost (`cost`)
299
+
300
+ `pricing` gives the contract's probability; `cost` turns it into what the chain actually debits and
301
+ credits, with no chain call at all — no `devInspect`, no dry run. It is an exact integer port of the
302
+ deployed fee path: the per-boundary Bernoulli trading fee and its expiry ramp, the builder cut, the
303
+ sponsor subsidy, the congestion surcharge, and the inventory-impact charge and rebate, each rounded
304
+ the way the contract rounds it.
305
+
306
+ ```ts
307
+ import { cost } from '@mysten/deepbook-v3/predict';
308
+
309
+ const pricer = await client.predict.read.pricer({ underlying: 'BTC', expiryMs });
310
+ const shape = {
311
+ fees: cost.SHIPPED_FEE_POLICY, // or the market's own MarketCreated snapshot
312
+ expiryMs,
313
+ probabilities: { pricer, lower: 105_000, upper: null }, // an UP order at $105k
314
+ };
315
+
316
+ // 1. What does 100 USDC of payout cost me, all in?
317
+ cost.mintCost({ ...shape, quantity: 100 }).cost; // premium + fees, in USDC
318
+ cost.mintCost({ ...shape, quantity: 100 }).costPerContract; // all-in price, 0..1
319
+
320
+ // 2. I want to spend exactly $50 — how much payout is that? (`mint_exact_cost`, client-side)
321
+ const sized = cost.mintCostForBudget({ ...shape, budget: 50 });
322
+ sized.quantity; // a lot-rounded fill whose ALL-IN cost fits $50
323
+ sized.cost; // actual all-in debit, ≤ 50
324
+ sized.costPerContract; // all-in price per $1 payout
325
+ sized.payoutMultiple; // maximum payout / actual all-in cost
326
+ sized.effectiveBudget; // min(budget, accountBalance), if balance was supplied
327
+ sized.unspentBudget; // requested budget - actual cost, including any balance-cap shortfall
328
+ sized.fees; // trading, subsidy, builder, penalty, impact
329
+
330
+ // 3. What would closing this position credit me?
331
+ const close = cost.redeemLiveProceeds({
332
+ ...shape,
333
+ closeQuantity: 40,
334
+ positionQuantity: 100, // optional; validates the close and reports the remaining payout
335
+ });
336
+ close.proceeds; // net credit, including any inventory rebate
337
+ close.gross; // value before fees and rebate
338
+ close.proceedsPerContract; // net credit / closed payout
339
+ close.remainingQuantity; // 60; null if positionQuantity was omitted
340
+ close.fees; // trading, builder, penalty, impactRebate
341
+ close.raw.proceeds; // exact integer amount for min_proceeds (before your slippage buffer)
342
+ close.raw.probability; // raw 1e9 probability for min_probability
343
+ ```
344
+
345
+ **Local preview or simulation?** If you already call `read.quoteRedeem`, you do not need a second
346
+ quote for the same close. Use the local helper when a changing input needs an immediate preview; use
347
+ the simulation to check the actual trade before submission.
348
+
349
+ | API | Returns | Reads the chain? |
350
+ | ------------------------------------------------------------ | ------------------------------------------------------------ | ---------------------------------------------------------------------------- |
351
+ | `cost.mintCost` | Cost and fee breakdown for an exact payout quantity | No; uses the supplied snapshot |
352
+ | `cost.mintCostForBudget` | The same result, with quantity sized within an all-in budget | No; uses the supplied snapshot |
353
+ | `cost.redeemLiveProceeds` | Net proceeds, gross value, closed quantity and fee breakdown | No; uses the supplied snapshot |
354
+ | `read.quoteMint` / `read.quoteMintCost` / `read.quoteRedeem` | A simulated trade receipt, including cost or proceeds | Yes; executes the transaction in simulation against account and market state |
355
+
356
+ The `cost` functions return synchronously. Their top-level amounts are human-readable numbers; `raw`
357
+ carries integer amounts as bigints. `quantity` is the mint's maximum potential payout; it is not
358
+ profit. `payoutMultiple` uses the all-in cost, so it includes fee drag. Ratios and human-readable
359
+ numbers are for display; use raw bigints for amount bounds. `remainingQuantity` uses the supplied
360
+ `positionQuantity`, and a partial close's replacement order ID comes from the execution receipt.
361
+
362
+ These calculations do not check account ownership or the on-chain position size (they can validate a
363
+ supplied `positionQuantity`), pauses, the no-trade window, oracle freshness or available cash
364
+ backing. A simulation checks the execution path, but its quote can still change before submission;
365
+ keep the transaction's `maxCost` / `minProceeds` slippage bounds.
366
+
367
+ **Why the budget form exists.** Every fee is charged _on top of_ the premium, and `mintAmount` sizes
368
+ on premium alone — so "spend exactly $X" means quoting, subtracting an estimated fee load, padding
369
+ it so the mint does not abort, and systematically underspending. `mintCostForBudget` runs the same
370
+ lot search the contract's `mint_exact_cost` runs, over the same cost function, so it returns the
371
+ fill that entrypoint would size. On v2 deployments, use
372
+ `tx.mintCost(owner, market, { spend: 50, minQuantity })` to let the chain size the fill against the
373
+ same all-in budget. When only the budget binds, one more lot would exceed it. The maximum-payout
374
+ bound or the lot cap can leave a larger remainder. If the budget fill costs more than its payout,
375
+ the contract uses a best-effort step-down search. Integer rounding makes that condition nonmonotone:
376
+ the fallback can miss a larger admissible fill or throw for `minQuantity` even when another fill
377
+ would satisfy it. The SDK preserves that behavior.
378
+
379
+ **What is exact, and what you must supply.** The integer arithmetic matches the contract when all
380
+ inputs match: probabilities, fee policy, builder attribution, sponsor balance, congestion, book
381
+ state and timestamp. The local float pricer introduces an approximation (~1e-4). You can instead
382
+ pass `{ lowerUp, higherUp }` as raw 1e9 bigints; `read.price` returns decimal numbers, so convert
383
+ its `up` value with the exported `probabilityToRaw` helper first. `exactProbabilities: true` only
384
+ means raw probabilities were supplied. It does not verify their source or certify current chain
385
+ state.
386
+
387
+ When `inventoryImpactMaxRate` is nonzero, `book` is required; omitting it throws instead of quoting
388
+ a zero charge or rebate. The congestion rate defaults to zero (disabled in the shipped template);
389
+ when enabled, supply `penaltyRate`, calculated by `cost.congestionPenaltyRate` from the market's
390
+ gas-price EWMA and the transaction's gas price. Supply `builderCode`, `feeIncentiveBalance` and, for
391
+ account-capped budget sizing, `accountBalance` to reflect the account being quoted. The fee
392
+ **policy** is a per-market snapshot taken at creation — use the market's `MarketCreated` event, or
393
+ `cost.SHIPPED_FEE_POLICY` only for a market created under that template.
394
+
395
+ Invalid raw domains (including negative amounts/rates, probabilities outside `[0, 1e9]`, and invalid
396
+ lot sizes) throw `PredictInputError` before arithmetic. Supplied book totals must also be
397
+ consistent, and enabled inventory impact requires a positive scale.
398
+
399
+ Admission is enforced locally too: the entry-probability band, the `min_premium` floor, the lot
400
+ grid, and the "a contract may never cost more than it can pay out" bound each throw the
401
+ `PredictInputError` naming the abort the chain would have raised. `read.quoteMint` /
402
+ `read.quoteRedeem` remain the authoritative pre-trade quote — they run the real code path against
403
+ real account state; `cost` is what you reach for when you cannot afford a round trip per keystroke.
404
+
405
+ The components are exported too (`tradingFee`, `builderFee`, `feeIncentiveSubsidy`,
406
+ `congestionPenaltyRate`, `mintInventoryImpact`, `closeInventoryImpact`, `expiryFeeMultiplier`,
407
+ `bernoulliFeeRate`), along with `decodeOrderRange` / `orderStrikes` for feeding a position from
408
+ `read.positions` straight into `redeemLiveProceeds`.
409
+
292
410
  ## Networks & deployments
293
411
 
294
- Two deployments are recorded. `getDeployment(network)` names each one and the deepbookv3 commit its
295
- ids were generated at:
412
+ Two deployments are recorded. `getDeployment(network)` names each one and the source commit of its
413
+ initial deployment; subsequent package upgrades come from `Published.toml`:
296
414
 
297
415
  | Network | Deployment | Chain id | Source commit | `quoteCoinType` |
298
416
  | --------- | -------------------------- | ---------- | ------------- | -------------------------------------------------------------------------------------------------------------------------- |
@@ -311,6 +429,36 @@ Move-call targets resolve from the config's package ids, so a deployment of your
311
429
  passing `config` — `predict({ network, config })` or
312
430
  `new PredictClient({ client, network, config })` — and `network` is then not consulted.
313
431
 
432
+ Testnet uses Predict and Sessions **v2** from deepbookv3 PR #1311. Mainnet remains **v1**.
433
+ `packages.predict` and `sessionsPackageId` are the current Move-call targets; `packages.predictV1`
434
+ and `sessionsPackageIdV1` retain the original IDs for existing struct types, events and
435
+ dynamic-field keys. Custom upgraded configs must supply both IDs. The v1 fallback is only for custom
436
+ deployments that have never been upgraded. A type first introduced in a later version uses that
437
+ version's defining ID (for example, `MintRange` was introduced in v2).
438
+
439
+ **All-in budget mint (v2 only):** `spend` caps the debit including all trade fees, and `minQuantity`
440
+ is the minimum payout quantity accepted. It may spend less than the budget because of lot rounding,
441
+ balance limits or the contract's sizing constraints. Network gas is separate. `mintAmount` retains
442
+ its existing premium-only budget semantics.
443
+
444
+ ```ts
445
+ const quote = await client.predict.read.quoteMintCost(myAddress, desc, {
446
+ spend: 100,
447
+ minQuantity: 0,
448
+ });
449
+ // Render quote.cost, quote.quantity, and quote.fees (including inventoryImpact).
450
+ const tx = await client.predict.tx.mintCost(myAddress, desc, {
451
+ spend: 100,
452
+ minQuantity: Number((quote.quantity * 0.99).toFixed(6)), // 1% payout slippage
453
+ });
454
+ ```
455
+
456
+ `read.quoteMintCost` simulates the actual budget mint with the owner's current balance and fees; it
457
+ requires an existing funded account. Sessions callers can compose `SessionsContract.mintExactCost`
458
+ with a live pricer using raw Move units. The generated `expiryMarketMoveCalls` also exposes
459
+ `quoteMintExactCostForAccount` for lower-level PTBs. These new entrypoints require the v2 packages;
460
+ do not use them with the recorded v1 Mainnet deployment.
461
+
314
462
  An expired market stays in `read.markets()` until someone settles it — the list is the pool's
315
463
  live-and-not-yet-settled set, not a tradeable set. On either network, check `expiryMs` against the
316
464
  clock (and `mintPaused`) before quoting rather than assuming the list is tradeable.
@@ -1,6 +1,6 @@
1
1
  import { MoveStruct, MoveTuple, RawTransactionArgument } from "../utils/index.mjs";
2
2
  import { BcsType } from "@mysten/sui/bcs";
3
- import * as _mysten_sui_transactions14 from "@mysten/sui/transactions";
3
+ import * as _mysten_sui_transactions15 from "@mysten/sui/transactions";
4
4
  import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
5
5
 
6
6
  //#region src/contracts/account/account.d.ts
@@ -57,7 +57,7 @@ interface IdOptions {
57
57
  };
58
58
  }
59
59
  /** Returns the wrapper object ID. */
60
- declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
60
+ declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
61
61
  interface LoadAccountArguments {
62
62
  self: RawTransactionArgument<string>;
63
63
  }
@@ -69,7 +69,7 @@ interface LoadAccountOptions {
69
69
  };
70
70
  }
71
71
  /** Borrows the wrapped account for read-only composition. */
72
- declare function loadAccount(options: LoadAccountOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
72
+ declare function loadAccount(options: LoadAccountOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
73
73
  interface BalanceArguments {
74
74
  self: TransactionArgument;
75
75
  }
@@ -85,7 +85,7 @@ interface BalanceOptions {
85
85
  * Returns the total balance of `T` available to the account, including funds
86
86
  * delivered through the ambient accumulator but not yet settled into the account.
87
87
  */
88
- declare function balance(options: BalanceOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
88
+ declare function balance(options: BalanceOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
89
89
  interface OwnerArguments {
90
90
  self: TransactionArgument;
91
91
  }
@@ -100,7 +100,7 @@ interface OwnerOptions {
100
100
  * Returns the account owner address. This may be an EOA address or an
101
101
  * object-ID-as-address.
102
102
  */
103
- declare function owner(options: OwnerOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
103
+ declare function owner(options: OwnerOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
104
104
  interface AccountIdArguments {
105
105
  self: TransactionArgument;
106
106
  }
@@ -112,7 +112,7 @@ interface AccountIdOptions {
112
112
  };
113
113
  }
114
114
  /** Returns the canonical account ID. */
115
- declare function accountId(options: AccountIdOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
115
+ declare function accountId(options: AccountIdOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
116
116
  interface ReferrerAccountIdArguments {
117
117
  self: TransactionArgument;
118
118
  }
@@ -127,7 +127,7 @@ interface ReferrerAccountIdOptions {
127
127
  * Returns the canonical referrer account ID recorded at creation for external Move
128
128
  * composition.
129
129
  */
130
- declare function referrerAccountId(options: ReferrerAccountIdOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
130
+ declare function referrerAccountId(options: ReferrerAccountIdOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
131
131
  interface ReferrerReceiveAddressArguments {
132
132
  self: TransactionArgument;
133
133
  }
@@ -142,7 +142,7 @@ interface ReferrerReceiveAddressOptions {
142
142
  * Returns the referrer's accumulator receive address for external Move
143
143
  * composition.
144
144
  */
145
- declare function referrerReceiveAddress(options: ReferrerReceiveAddressOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
145
+ declare function referrerReceiveAddress(options: ReferrerReceiveAddressOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
146
146
  interface ReceiveAddressArguments {
147
147
  self: TransactionArgument;
148
148
  }
@@ -154,7 +154,7 @@ interface ReceiveAddressOptions {
154
154
  };
155
155
  }
156
156
  /** Returns the accumulator receive address for this account (the wrapper address). */
157
- declare function receiveAddress(options: ReceiveAddressOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
157
+ declare function receiveAddress(options: ReceiveAddressOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
158
158
  interface GenerateAuthOptions {
159
159
  package?: string;
160
160
  arguments?: [];
@@ -163,7 +163,7 @@ interface GenerateAuthOptions {
163
163
  };
164
164
  }
165
165
  /** Creates owner authority bound to the transaction sender. */
166
- declare function generateAuth(options?: GenerateAuthOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
166
+ declare function generateAuth(options?: GenerateAuthOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
167
167
  interface GenerateAuthAsObjectArguments {
168
168
  uid: RawTransactionArgument<string>;
169
169
  }
@@ -175,7 +175,7 @@ interface GenerateAuthAsObjectOptions {
175
175
  };
176
176
  }
177
177
  /** Creates owner authority bound to an owning object's address. */
178
- declare function generateAuthAsObject(options: GenerateAuthAsObjectOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
178
+ declare function generateAuthAsObject(options: GenerateAuthAsObjectOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
179
179
  interface ShareArguments {
180
180
  self: RawTransactionArgument<string>;
181
181
  }
@@ -187,7 +187,7 @@ interface ShareOptions {
187
187
  };
188
188
  }
189
189
  /** Shares a newly created account wrapper. */
190
- declare function share(options: ShareOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
190
+ declare function share(options: ShareOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
191
191
  interface LoadAccountMutArguments {
192
192
  self: RawTransactionArgument<string>;
193
193
  auth: TransactionArgument;
@@ -204,7 +204,7 @@ interface LoadAccountMutOptions {
204
204
  * Owner authority must match the stored owner; app authority is package-issued
205
205
  * after registry authorization and carries no owner or operation restriction.
206
206
  */
207
- declare function loadAccountMut(options: LoadAccountMutOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
207
+ declare function loadAccountMut(options: LoadAccountMutOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
208
208
  interface SettleArguments {
209
209
  wrapper: RawTransactionArgument<string>;
210
210
  }
@@ -224,7 +224,7 @@ interface SettleOptions {
224
224
  * address-balance withdrawal; value leaving the account still requires a mutable
225
225
  * borrow through `Auth`.
226
226
  */
227
- declare function settle(options: SettleOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
227
+ declare function settle(options: SettleOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
228
228
  interface DepositArguments {
229
229
  self: TransactionArgument;
230
230
  coin: RawTransactionArgument<string>;
@@ -241,7 +241,7 @@ interface DepositOptions {
241
241
  * Deposits into stored balance only; callers that include accumulator funds must
242
242
  * settle through the wrapper first.
243
243
  */
244
- declare function deposit(options: DepositOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
244
+ declare function deposit(options: DepositOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
245
245
  interface WithdrawArguments {
246
246
  self: TransactionArgument;
247
247
  amount: RawTransactionArgument<number | bigint>;
@@ -258,7 +258,7 @@ interface WithdrawOptions {
258
258
  * Withdraws from stored balance only; callers that include accumulator funds must
259
259
  * settle through the wrapper first.
260
260
  */
261
- declare function withdraw(options: WithdrawOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
261
+ declare function withdraw(options: WithdrawOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
262
262
  interface DepositFundsArguments {
263
263
  wrapper: RawTransactionArgument<string>;
264
264
  auth: TransactionArgument;
@@ -276,7 +276,7 @@ interface DepositFundsOptions {
276
276
  * PTB entrypoint that settles accumulator funds, consumes authority, and deposits
277
277
  * into stored balance in one call.
278
278
  */
279
- declare function depositFunds(options: DepositFundsOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
279
+ declare function depositFunds(options: DepositFundsOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
280
280
  interface WithdrawFundsArguments {
281
281
  wrapper: RawTransactionArgument<string>;
282
282
  auth: TransactionArgument;
@@ -294,7 +294,7 @@ interface WithdrawFundsOptions {
294
294
  * PTB entrypoint that settles accumulator funds, consumes authority, and withdraws
295
295
  * from stored balance in one call.
296
296
  */
297
- declare function withdrawFunds(options: WithdrawFundsOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
297
+ declare function withdrawFunds(options: WithdrawFundsOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
298
298
  interface AttachArguments<Data extends BcsType<any>> {
299
299
  self: TransactionArgument;
300
300
  Permit: TransactionArgument;
@@ -312,7 +312,7 @@ interface AttachOptions<Data extends BcsType<any>> {
312
312
  * Attach an app's `Data` under its witness namespace. Requires `Permit<App>`.
313
313
  * Aborts if `App` already has data attached.
314
314
  */
315
- declare function attach<Data extends BcsType<any>>(options: AttachOptions<Data>): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
315
+ declare function attach<Data extends BcsType<any>>(options: AttachOptions<Data>): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
316
316
  interface HasDataArguments {
317
317
  self: TransactionArgument;
318
318
  }
@@ -325,7 +325,7 @@ interface HasDataOptions {
325
325
  typeArguments: [string];
326
326
  }
327
327
  /** Whether `App` has data attached to this account. */
328
- declare function hasData(options: HasDataOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
328
+ declare function hasData(options: HasDataOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
329
329
  interface BorrowDataArguments {
330
330
  self: TransactionArgument;
331
331
  }
@@ -342,7 +342,7 @@ interface BorrowDataOptions {
342
342
  * `App` and on-chain state is public, so composing apps can read it. Aborts if
343
343
  * nothing is attached.
344
344
  */
345
- declare function borrowData(options: BorrowDataOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
345
+ declare function borrowData(options: BorrowDataOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
346
346
  interface BorrowDataMutArguments {
347
347
  self: TransactionArgument;
348
348
  Permit: TransactionArgument;
@@ -359,7 +359,7 @@ interface BorrowDataMutOptions {
359
359
  * Mutably borrow an app's attached `Data`. Requires `Permit<App>`. Aborts if
360
360
  * nothing is attached.
361
361
  */
362
- declare function borrowDataMut(options: BorrowDataMutOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
362
+ declare function borrowDataMut(options: BorrowDataMutOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
363
363
  interface DetachArguments {
364
364
  self: TransactionArgument;
365
365
  Permit: TransactionArgument;
@@ -376,7 +376,7 @@ interface DetachOptions {
376
376
  * Detach and return an app's `Data`. Requires `Permit<App>`. Aborts if nothing is
377
377
  * attached.
378
378
  */
379
- declare function detach(options: DetachOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
379
+ declare function detach(options: DetachOptions): (tx: Transaction) => _mysten_sui_transactions15.TransactionResult;
380
380
  //#endregion
381
381
  export { Account, AccountWrapper, account_d_exports };
382
382
  //# sourceMappingURL=account.d.mts.map
@@ -1,40 +1,40 @@
1
1
  import { MoveStruct } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs10 from "@mysten/sui/bcs";
2
+ import * as _mysten_sui_bcs0 from "@mysten/sui/bcs";
3
3
 
4
4
  //#region src/contracts/account/account_events.d.ts
5
5
  declare namespace account_events_d_exports {
6
6
  export { AccountCreated, AppAuthorized, AppDeauthorized, Deposited, FundsSettled, Withdrawn };
7
7
  }
8
8
  declare const AccountCreated: MoveStruct<{
9
- account_id: _mysten_sui_bcs10.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
10
- wrapper_id: _mysten_sui_bcs10.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
11
- owner: _mysten_sui_bcs10.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
12
- self_owned: _mysten_sui_bcs10.BcsType<boolean, boolean, "bool">;
13
- referrer_account_id: _mysten_sui_bcs10.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
9
+ account_id: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
10
+ wrapper_id: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
11
+ owner: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
12
+ self_owned: _mysten_sui_bcs0.BcsType<boolean, boolean, "bool">;
13
+ referrer_account_id: _mysten_sui_bcs0.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
14
14
  }, "@local-pkg/account::account_events::AccountCreated">;
15
15
  declare const AppAuthorized: MoveStruct<{
16
- /** Fully-qualified `App` witness type name. */app: _mysten_sui_bcs10.BcsType<string, string, "string">;
16
+ /** Fully-qualified `App` witness type name. */app: _mysten_sui_bcs0.BcsType<string, string, "string">;
17
17
  }, "@local-pkg/account::account_events::AppAuthorized">;
18
18
  declare const AppDeauthorized: MoveStruct<{
19
- app: _mysten_sui_bcs10.BcsType<string, string, "string">;
19
+ app: _mysten_sui_bcs0.BcsType<string, string, "string">;
20
20
  }, "@local-pkg/account::account_events::AppDeauthorized">;
21
21
  declare const Deposited: MoveStruct<{
22
- account_id: _mysten_sui_bcs10.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
23
- coin_type: _mysten_sui_bcs10.BcsType<string, string, "string">;
24
- amount: _mysten_sui_bcs10.BcsType<bigint, string | number | bigint, "u64">;
25
- new_balance: _mysten_sui_bcs10.BcsType<bigint, string | number | bigint, "u64">;
22
+ account_id: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
23
+ coin_type: _mysten_sui_bcs0.BcsType<string, string, "string">;
24
+ amount: _mysten_sui_bcs0.BcsType<bigint, string | number | bigint, "u64">;
25
+ new_balance: _mysten_sui_bcs0.BcsType<bigint, string | number | bigint, "u64">;
26
26
  }, "@local-pkg/account::account_events::Deposited">;
27
27
  declare const Withdrawn: MoveStruct<{
28
- account_id: _mysten_sui_bcs10.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
29
- coin_type: _mysten_sui_bcs10.BcsType<string, string, "string">;
30
- amount: _mysten_sui_bcs10.BcsType<bigint, string | number | bigint, "u64">;
31
- new_balance: _mysten_sui_bcs10.BcsType<bigint, string | number | bigint, "u64">;
28
+ account_id: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
29
+ coin_type: _mysten_sui_bcs0.BcsType<string, string, "string">;
30
+ amount: _mysten_sui_bcs0.BcsType<bigint, string | number | bigint, "u64">;
31
+ new_balance: _mysten_sui_bcs0.BcsType<bigint, string | number | bigint, "u64">;
32
32
  }, "@local-pkg/account::account_events::Withdrawn">;
33
33
  declare const FundsSettled: MoveStruct<{
34
- account_id: _mysten_sui_bcs10.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
35
- coin_type: _mysten_sui_bcs10.BcsType<string, string, "string">;
36
- amount: _mysten_sui_bcs10.BcsType<bigint, string | number | bigint, "u64">;
37
- new_balance: _mysten_sui_bcs10.BcsType<bigint, string | number | bigint, "u64">;
34
+ account_id: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
35
+ coin_type: _mysten_sui_bcs0.BcsType<string, string, "string">;
36
+ amount: _mysten_sui_bcs0.BcsType<bigint, string | number | bigint, "u64">;
37
+ new_balance: _mysten_sui_bcs0.BcsType<bigint, string | number | bigint, "u64">;
38
38
  }, "@local-pkg/account::account_events::FundsSettled">;
39
39
  //#endregion
40
40
  export { account_events_d_exports };
@@ -1 +1 @@
1
- {"version":3,"file":"account_events.d.mts","names":[],"sources":["../../../src/contracts/account/account_events.ts"],"mappings":";;;;;;;cAca,cAAA,EAAc,UAAA;;;;;;;cAUd,aAAA,EAAa,UAAA;sDAMxB,iBAAA,CAAA,OAAA;AAAA;AAAA,cACW,eAAA,EAAe,UAAA;OAK1B,iBAAA,CAAA,OAAA;AAAA;AAAA,cACW,SAAA,EAAS,UAAA;;;;;;cAST,SAAA,EAAS,UAAA;;;;;;cAST,YAAA,EAAY,UAAA"}
1
+ {"version":3,"file":"account_events.d.mts","names":[],"sources":["../../../src/contracts/account/account_events.ts"],"mappings":";;;;;;;cAca,cAAA,EAAc,UAAA;;;;;;;cAUd,aAAA,EAAa,UAAA;sDAMxB,gBAAA,CAAA,OAAA;AAAA;AAAA,cACW,eAAA,EAAe,UAAA;OAK1B,gBAAA,CAAA,OAAA;AAAA;AAAA,cACW,SAAA,EAAS,UAAA;;;;;;cAST,SAAA,EAAS,UAAA;;;;;;cAST,YAAA,EAAY,UAAA"}
@@ -1,6 +1,6 @@
1
1
  import { ConfigValue, MoveStruct, MoveTuple, RawTransactionArgument } from "../utils/index.mjs";
2
2
  import * as _mysten_sui_bcs29 from "@mysten/sui/bcs";
3
- import * as _mysten_sui_transactions36 from "@mysten/sui/transactions";
3
+ import * as _mysten_sui_transactions37 from "@mysten/sui/transactions";
4
4
  import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
5
5
 
6
6
  //#region src/contracts/account/account_registry.d.ts
@@ -32,7 +32,7 @@ interface DerivedAddressOptions {
32
32
  * Returns the deterministic canonical account address for external discovery and
33
33
  * PTB construction.
34
34
  */
35
- declare function derivedAddress(options: DerivedAddressOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
35
+ declare function derivedAddress(options: DerivedAddressOptions): (tx: Transaction) => _mysten_sui_transactions37.TransactionResult;
36
36
  interface DerivedWrapperAddressArguments {
37
37
  registry?: RawTransactionArgument<string>;
38
38
  owner: RawTransactionArgument<string>;
@@ -49,7 +49,7 @@ interface DerivedWrapperAddressOptions {
49
49
  * Returns the deterministic wrapper address for external discovery, accumulator
50
50
  * delivery, and PTB construction.
51
51
  */
52
- declare function derivedWrapperAddress(options: DerivedWrapperAddressOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
52
+ declare function derivedWrapperAddress(options: DerivedWrapperAddressOptions): (tx: Transaction) => _mysten_sui_transactions37.TransactionResult;
53
53
  interface DerivedExistsArguments {
54
54
  registry?: RawTransactionArgument<string>;
55
55
  owner: RawTransactionArgument<string>;
@@ -63,7 +63,7 @@ interface DerivedExistsOptions {
63
63
  };
64
64
  }
65
65
  /** Returns whether the canonical account identity has been claimed. */
66
- declare function derivedExists(options: DerivedExistsOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
66
+ declare function derivedExists(options: DerivedExistsOptions): (tx: Transaction) => _mysten_sui_transactions37.TransactionResult;
67
67
  interface DerivedWrapperExistsArguments {
68
68
  registry?: RawTransactionArgument<string>;
69
69
  owner: RawTransactionArgument<string>;
@@ -77,7 +77,7 @@ interface DerivedWrapperExistsOptions {
77
77
  };
78
78
  }
79
79
  /** Returns whether the canonical wrapper has been claimed. */
80
- declare function derivedWrapperExists(options: DerivedWrapperExistsOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
80
+ declare function derivedWrapperExists(options: DerivedWrapperExistsOptions): (tx: Transaction) => _mysten_sui_transactions37.TransactionResult;
81
81
  interface NewArguments {
82
82
  registry?: RawTransactionArgument<string>;
83
83
  }
@@ -93,7 +93,7 @@ interface NewOptions {
93
93
  * Creates the sender's canonical account and wrapper, aborting if either derived
94
94
  * ID is already claimed.
95
95
  */
96
- declare function _new(options: NewOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
96
+ declare function _new(options: NewOptions): (tx: Transaction) => _mysten_sui_transactions37.TransactionResult;
97
97
  interface NewWithReferrerArguments {
98
98
  registry?: RawTransactionArgument<string>;
99
99
  referrer: RawTransactionArgument<string>;
@@ -110,7 +110,7 @@ interface NewWithReferrerOptions {
110
110
  * Creates the sender's canonical account and permanently records the supplied
111
111
  * wrapper's account identity and receive address as its referrer.
112
112
  */
113
- declare function newWithReferrer(options: NewWithReferrerOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
113
+ declare function newWithReferrer(options: NewWithReferrerOptions): (tx: Transaction) => _mysten_sui_transactions37.TransactionResult;
114
114
  interface NewSelfOwnedArguments {
115
115
  registry?: RawTransactionArgument<string>;
116
116
  ownerUid: RawTransactionArgument<string>;
@@ -127,7 +127,7 @@ interface NewSelfOwnedOptions {
127
127
  * Creates the canonical account owned by `owner_uid`'s object address, aborting if
128
128
  * either derived ID is already claimed.
129
129
  */
130
- declare function newSelfOwned(options: NewSelfOwnedOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
130
+ declare function newSelfOwned(options: NewSelfOwnedOptions): (tx: Transaction) => _mysten_sui_transactions37.TransactionResult;
131
131
  interface IsAppAuthorizedArguments {
132
132
  registry?: RawTransactionArgument<string>;
133
133
  }
@@ -141,7 +141,7 @@ interface IsAppAuthorizedOptions {
141
141
  typeArguments: [string];
142
142
  }
143
143
  /** Returns whether `App` may request package-issued mutable account authority. */
144
- declare function isAppAuthorized(options: IsAppAuthorizedOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
144
+ declare function isAppAuthorized(options: IsAppAuthorizedOptions): (tx: Transaction) => _mysten_sui_transactions37.TransactionResult;
145
145
  interface AuthorizeAppArguments {
146
146
  registry?: RawTransactionArgument<string>;
147
147
  Cap: RawTransactionArgument<string>;
@@ -156,7 +156,7 @@ interface AuthorizeAppOptions {
156
156
  typeArguments: [string];
157
157
  }
158
158
  /** Globally authorizes `App` to request mutable authority for account wrappers. */
159
- declare function authorizeApp(options: AuthorizeAppOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
159
+ declare function authorizeApp(options: AuthorizeAppOptions): (tx: Transaction) => _mysten_sui_transactions37.TransactionResult;
160
160
  interface DeauthorizeAppArguments {
161
161
  registry?: RawTransactionArgument<string>;
162
162
  Cap: RawTransactionArgument<string>;
@@ -171,7 +171,7 @@ interface DeauthorizeAppOptions {
171
171
  typeArguments: [string];
172
172
  }
173
173
  /** Revokes `App` from requesting new mutable account authority. */
174
- declare function deauthorizeApp(options: DeauthorizeAppOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
174
+ declare function deauthorizeApp(options: DeauthorizeAppOptions): (tx: Transaction) => _mysten_sui_transactions37.TransactionResult;
175
175
  interface AssertAppIsAuthorizedArguments {
176
176
  registry?: RawTransactionArgument<string>;
177
177
  }
@@ -185,7 +185,7 @@ interface AssertAppIsAuthorizedOptions {
185
185
  typeArguments: [string];
186
186
  }
187
187
  /** Aborts unless `App` is currently authorized for app-driven account access. */
188
- declare function assertAppIsAuthorized(options: AssertAppIsAuthorizedOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
188
+ declare function assertAppIsAuthorized(options: AssertAppIsAuthorizedOptions): (tx: Transaction) => _mysten_sui_transactions37.TransactionResult;
189
189
  interface GenerateAuthAsAppArguments {
190
190
  registry?: RawTransactionArgument<string>;
191
191
  Permit: TransactionArgument;
@@ -204,7 +204,7 @@ interface GenerateAuthAsAppOptions {
204
204
  * whitelist. `Permit<App>` restricts the request to the module that defines `App`;
205
205
  * the returned authority is not bound to an owner, wrapper, or operation.
206
206
  */
207
- declare function generateAuthAsApp(options: GenerateAuthAsAppOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
207
+ declare function generateAuthAsApp(options: GenerateAuthAsAppOptions): (tx: Transaction) => _mysten_sui_transactions37.TransactionResult;
208
208
  //#endregion
209
209
  export { account_registry_d_exports };
210
210
  //# sourceMappingURL=account_registry.d.mts.map
@@ -1,11 +1,11 @@
1
1
  import { MoveStruct } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs539 from "@mysten/sui/bcs";
2
+ import * as _mysten_sui_bcs507 from "@mysten/sui/bcs";
3
3
 
4
4
  //#region src/contracts/deepbook/balances.d.ts
5
5
  declare const Balances: MoveStruct<{
6
- base: _mysten_sui_bcs539.BcsType<string, string | number | bigint, "u64">;
7
- quote: _mysten_sui_bcs539.BcsType<string, string | number | bigint, "u64">;
8
- deep: _mysten_sui_bcs539.BcsType<string, string | number | bigint, "u64">;
6
+ base: _mysten_sui_bcs507.BcsType<string, string | number | bigint, "u64">;
7
+ quote: _mysten_sui_bcs507.BcsType<string, string | number | bigint, "u64">;
8
+ deep: _mysten_sui_bcs507.BcsType<string, string | number | bigint, "u64">;
9
9
  }, "@deepbook/core::balances::Balances">;
10
10
  //#endregion
11
11
  export { Balances };