@mysten/deepbook-v3 2.1.3 → 2.3.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 (129) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/PREDICT.md +17 -5
  3. package/dist/account.d.mts.map +1 -1
  4. package/dist/account.mjs +3 -1
  5. package/dist/account.mjs.map +1 -1
  6. package/dist/contracts/account/account.d.mts +23 -23
  7. package/dist/contracts/account/account.d.mts.map +1 -1
  8. package/dist/contracts/account/account_events.d.mts +20 -20
  9. package/dist/contracts/account/account_registry.d.mts +19 -19
  10. package/dist/contracts/account/account_registry.d.mts.map +1 -1
  11. package/dist/contracts/deepbook/account.d.mts +18 -18
  12. package/dist/contracts/deepbook/balances.d.mts +4 -4
  13. package/dist/contracts/deepbook/deep_price.d.mts +3 -3
  14. package/dist/contracts/deepbook/order.d.mts +12 -12
  15. package/dist/contracts/deepbook_predict/deps/sui/vec_map.mjs +37 -0
  16. package/dist/contracts/deepbook_predict/deps/sui/vec_map.mjs.map +1 -0
  17. package/dist/contracts/deepbook_predict/expiry_cash.mjs +1 -1
  18. package/dist/contracts/deepbook_predict/expiry_cash.mjs.map +1 -1
  19. package/dist/contracts/deepbook_predict/expiry_market.mjs +15 -6
  20. package/dist/contracts/deepbook_predict/expiry_market.mjs.map +1 -1
  21. package/dist/contracts/deepbook_predict/market_manager.mjs.map +1 -1
  22. package/dist/contracts/deepbook_predict/order_events.mjs.map +1 -1
  23. package/dist/contracts/deepbook_predict/plp.mjs +53 -31
  24. package/dist/contracts/deepbook_predict/plp.mjs.map +1 -1
  25. package/dist/contracts/deepbook_predict/pool_accounting.mjs +7 -7
  26. package/dist/contracts/deepbook_predict/pool_accounting.mjs.map +1 -1
  27. package/dist/contracts/deepbook_predict/predict_account.mjs +1 -1
  28. package/dist/contracts/deepbook_predict/predict_account.mjs.map +1 -1
  29. package/dist/contracts/deepbook_predict/pricing.mjs +13 -1
  30. package/dist/contracts/deepbook_predict/pricing.mjs.map +1 -1
  31. package/dist/contracts/deepbook_predict/registry.mjs +2 -1
  32. package/dist/contracts/deepbook_predict/registry.mjs.map +1 -1
  33. package/dist/contracts/deepbook_predict/strike_exposure.mjs.map +1 -1
  34. package/dist/contracts/deepbook_predict/strike_payout_tree.mjs +13 -1
  35. package/dist/contracts/deepbook_predict/strike_payout_tree.mjs.map +1 -1
  36. package/dist/contracts/deepbook_predict/vault_events.mjs +19 -7
  37. package/dist/contracts/deepbook_predict/vault_events.mjs.map +1 -1
  38. package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
  39. package/dist/contracts/deepbook_sessions/session_config.d.mts.map +1 -1
  40. package/dist/contracts/deepbook_sessions/sessions.d.mts +22 -22
  41. package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
  42. package/dist/deployments/index.d.mts +3 -2
  43. package/dist/deployments/index.d.mts.map +1 -1
  44. package/dist/deployments/index.mjs +4 -1
  45. package/dist/deployments/index.mjs.map +1 -1
  46. package/dist/deployments/mainnet.d.mts +14 -0
  47. package/dist/deployments/mainnet.d.mts.map +1 -0
  48. package/dist/deployments/mainnet.mjs +73 -0
  49. package/dist/deployments/mainnet.mjs.map +1 -0
  50. package/dist/deployments/testnet.mjs +23 -23
  51. package/dist/deployments/testnet.mjs.map +1 -1
  52. package/dist/deployments/types.d.mts +1 -1
  53. package/dist/predict/client.d.mts +25 -4
  54. package/dist/predict/client.d.mts.map +1 -1
  55. package/dist/predict/client.mjs +4 -4
  56. package/dist/predict/client.mjs.map +1 -1
  57. package/dist/predict/config/index.d.mts +2 -0
  58. package/dist/predict/config/index.d.mts.map +1 -1
  59. package/dist/predict/config/index.mjs +4 -1
  60. package/dist/predict/config/index.mjs.map +1 -1
  61. package/dist/predict/config/mainnet.d.mts +17 -0
  62. package/dist/predict/config/mainnet.d.mts.map +1 -0
  63. package/dist/predict/config/mainnet.mjs +26 -0
  64. package/dist/predict/config/mainnet.mjs.map +1 -0
  65. package/dist/predict/config/types.d.mts +6 -0
  66. package/dist/predict/config/types.d.mts.map +1 -1
  67. package/dist/predict/index.d.mts +4 -2
  68. package/dist/predict/index.mjs +3 -1
  69. package/dist/predict/pricing.d.mts +6 -6
  70. package/dist/predict/pricing.d.mts.map +1 -1
  71. package/dist/predict/pricing.mjs +6 -6
  72. package/dist/predict/pricing.mjs.map +1 -1
  73. package/dist/predict/reads/balances.mjs.map +1 -1
  74. package/dist/predict/reads/markets.mjs +1 -1
  75. package/dist/predict/reads/markets.mjs.map +1 -1
  76. package/dist/predict/reads/pricing.d.mts +2 -1
  77. package/dist/predict/reads/pricing.d.mts.map +1 -1
  78. package/dist/predict/reads/pricing.mjs.map +1 -1
  79. package/dist/sessions.d.mts.map +1 -1
  80. package/dist/sessions.mjs +3 -1
  81. package/dist/sessions.mjs.map +1 -1
  82. package/dist/transactions/balanceManager.d.mts +12 -12
  83. package/dist/transactions/balanceManager.d.mts.map +1 -1
  84. package/dist/transactions/deepbook.d.mts +20 -20
  85. package/dist/transactions/deepbookAdmin.d.mts +4 -4
  86. package/dist/transactions/marginAdmin.d.mts +7 -7
  87. package/dist/transactions/marginMaintainer.d.mts +5 -5
  88. package/dist/transactions/marginManager.d.mts +32 -32
  89. package/dist/transactions/marginPool.d.mts +18 -18
  90. package/dist/transactions/marginPool.d.mts.map +1 -1
  91. package/dist/transactions/marginTPSL.d.mts +10 -10
  92. package/dist/transactions/marginTPSL.d.mts.map +1 -1
  93. package/dist/transactions/poolProxy.d.mts +8 -8
  94. package/dist/transactions/poolProxy.d.mts.map +1 -1
  95. package/package.json +3 -3
  96. package/src/account.ts +3 -1
  97. package/src/contracts/deepbook_predict/builder_code.ts +3 -3
  98. package/src/contracts/deepbook_predict/config_events.ts +9 -2
  99. package/src/contracts/deepbook_predict/deps/sui/vec_map.ts +33 -0
  100. package/src/contracts/deepbook_predict/expiry_cash.ts +1 -1
  101. package/src/contracts/deepbook_predict/expiry_market.ts +70 -11
  102. package/src/contracts/deepbook_predict/market_lifecycle_cap.ts +3 -10
  103. package/src/contracts/deepbook_predict/market_manager.ts +2 -2
  104. package/src/contracts/deepbook_predict/order_events.ts +6 -6
  105. package/src/contracts/deepbook_predict/plp.ts +263 -81
  106. package/src/contracts/deepbook_predict/pool_accounting.ts +14 -14
  107. package/src/contracts/deepbook_predict/pool_valuation_cap.ts +69 -0
  108. package/src/contracts/deepbook_predict/predict_account.ts +1 -1
  109. package/src/contracts/deepbook_predict/pricing.ts +16 -4
  110. package/src/contracts/deepbook_predict/protocol_config.ts +202 -7
  111. package/src/contracts/deepbook_predict/registry.ts +91 -17
  112. package/src/contracts/deepbook_predict/strike_exposure.ts +1 -1
  113. package/src/contracts/deepbook_predict/strike_payout_tree.ts +27 -0
  114. package/src/contracts/deepbook_predict/vault_events.ts +45 -14
  115. package/src/contracts/propbook/block_scholes_store.ts +8 -42
  116. package/src/deployments/index.ts +13 -3
  117. package/src/deployments/mainnet.ts +107 -0
  118. package/src/deployments/testnet.ts +25 -25
  119. package/src/deployments/types.ts +1 -1
  120. package/src/predict/client.ts +45 -15
  121. package/src/predict/config/index.ts +7 -2
  122. package/src/predict/config/mainnet.ts +27 -0
  123. package/src/predict/config/types.ts +7 -1
  124. package/src/predict/index.ts +5 -0
  125. package/src/predict/pricing.ts +11 -9
  126. package/src/predict/reads/balances.ts +1 -1
  127. package/src/predict/reads/markets.ts +1 -1
  128. package/src/predict/reads/pricing.ts +2 -1
  129. package/src/sessions.ts +4 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # @mysten/deepbook-v3
2
2
 
3
+ ## 2.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7b47a9a: Predict: let `supplyPlp` and `withdrawPlp` set a price floor. Both hard-pinned the
8
+ request's floor to 0, so the SDK could only ever queue an LP request that accepts whatever mark
9
+ the next pool flush quotes. They now take an optional third argument — `{ minPlpOut }` (raw
10
+ `bigint` shares) and `{ minUsdcOut }` (USD decimals) — defaulting to the previous no-floor
11
+ behaviour.
12
+ - 1e2f728: Add Mainnet deployment ids for Predict, sessions and the account primitive. `getConfig`,
13
+ `getAccountConfig`, `getSessionsConfig`, `getUnits` and `getDeployment` now resolve `'mainnet'`
14
+ instead of throwing, and `MAINNET_CONFIG` / `MAINNET_DEPLOYMENT` / `MAINNET_UNITS` are exported
15
+ alongside their testnet counterparts. `DeployedNetwork` widens to `'testnet' | 'mainnet'`.
16
+
17
+ Mainnet settles in Circle's native USDC
18
+ (`0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC`). The in-repo
19
+ test currency is never published to Mainnet, so the collateral type resolves to Circle's package
20
+ there and to the DeepBook test coin on Testnet — read `quoteCoinType` from the config rather than
21
+ assuming either.
22
+
23
+ The ids are generated from the deploy tooling's own Mainnet manifest, like Testnet's, so both
24
+ networks move together on a redeploy and cannot drift apart across subpaths.
25
+
26
+ ## 2.2.0
27
+
28
+ ### Minor Changes
29
+
30
+ - e7c8014: Target the `deepbook-predict-testnet` deployment. Every testnet id the SDK ships changes
31
+ — the Predict, account and sessions packages and their shared objects — so `getConfig('testnet')`,
32
+ `getAccountConfig('testnet')`, `getSessionsConfig('testnet')` and `TESTNET_CONFIG` all resolve
33
+ against the new deployment, and `getDeployment('testnet')` reports it by name and source commit.
34
+ Anything pinned to the previous testnet deployment's ids will not find its accounts, positions or
35
+ markets there; they are separate deployments, not an upgrade.
36
+
37
+ The settlement collateral is renamed upstream from `dusdc::dusdc::DUSDC` to `usdc::usdc::USDC`, so
38
+ one Move module path resolves on both testnet and mainnet and mainnet can link native USDC by
39
+ address alone. `quoteCoinType` carries the new type. The testnet coin keeps the `DUSDC` display
40
+ symbol, which is what distinguishes the mintable test coin from native USDC in wallets and
41
+ explorers — read `quoteCoinType` rather than assuming a symbol or a type.
42
+
43
+ The exported surface is otherwise unchanged: no symbol is added, removed or re-typed, and the
44
+ renamed Move argument (`min_usdc_out`) is internal to the transaction builders.
45
+
46
+ ## 2.1.4
47
+
3
48
  ## 2.1.3
4
49
 
5
50
  ## 2.1.2
package/PREDICT.md CHANGED
@@ -32,10 +32,10 @@ const client = new SuiGrpcClient({
32
32
  // One-time: create your Predict account (a shared AccountWrapper).
33
33
  const createTx = client.predict.tx.createManager();
34
34
 
35
- // Fund it: pulls DUSDC from your address (coin objects and/or address balance).
35
+ // Fund it: pulls USDC from your address (coin objects and/or address balance).
36
36
  const depositTx = client.predict.tx.deposit(myAddress, 250); // $250
37
37
 
38
- // Cash out: lands in your DUSDC address balance by default (no coin-object churn).
38
+ // Cash out: lands in your USDC address balance by default (no coin-object churn).
39
39
  // Pass { toCoinObject: true } if you need a discrete Coin<T> instead.
40
40
  const withdrawTx = client.predict.tx.withdraw(myAddress, 100); // $100
41
41
 
@@ -101,7 +101,7 @@ reads use the primitives layer, which returns raw `bigint`s (`accountBalance`, `
101
101
 
102
102
  | Concept | You pass / receive | On-chain raw |
103
103
  | ------------------------------------------- | -------------------------------------------------------------- | ------------------------------------- |
104
- | Amounts (deposit, spend, maxCost, balances) | USD decimal number or string (`12.5`, `"12.5"`) | ×1e6 (DUSDC) |
104
+ | Amounts (deposit, spend, maxCost, balances) | USD decimal number or string (`12.5`, `"12.5"`) | ×1e6 (USDC) |
105
105
  | `quantity` | **max payout** in USD; positions pay $1 per contract at expiry | ×1e6, in $0.01 lots |
106
106
  | `strike` | USD (`105_000`) | ×1e9, must land on the admission grid |
107
107
  | `maxProbability` | 0..1 (`0.35` = 35¢ per $1 contract) | ×1e9 |
@@ -109,6 +109,11 @@ reads use the primitives layer, which returns raw `bigint`s (`accountBalance`, `
109
109
 
110
110
  `side: "up"` wins if the settlement price is above the strike; `"down"` below.
111
111
 
112
+ Trading closes slightly before expiry: the protocol enforces a short pre-expiry no-trade window
113
+ (`no_trade_window_ms` on the live `ProtocolConfig`, 2s on the current testnet deployment), so a mint
114
+ or redeem submitted inside it aborts `ETradeWindowClosed` rather than filling. Treat the last
115
+ seconds of a window as untradeable rather than retrying.
116
+
112
117
  ## Reference-price markets (Polymarket-style windows)
113
118
 
114
119
  Each market carries an on-chain **reference price** — derived from the exact previous-window oracle
@@ -233,11 +238,18 @@ stop requiring an SDK release for target resolution.
233
238
  as the cheap validator.
234
239
  - PLP supply/withdraw are queued and fill at the next pool flush; cancels take the queue `index` —
235
240
  get it from `decode.plpRequest(result).index`.
241
+ - **Both take an optional price floor**, and default to none:
242
+ `supplyPlp(owner, amount, { minPlpOut })` (raw `bigint` shares) and
243
+ `withdrawPlp(owner, shares, { minUsdcOut })` (USD decimals). Each floors the flush's MARK for the
244
+ whole request rather than naming a quantity — a flush quoting less declines instead of filling
245
+ smaller. What a miss costs is the deployment's `lp_request_limit_flush_attempts`: at the shipped
246
+ count of one, the first flush below the floor cancels the request and refunds it, so re-queueing
247
+ is a fresh transaction. Leave the floor off and the request takes whatever mark the flush quotes.
236
248
  - `claimSettled` closes the order in full — the deployed entrypoint takes no quantity.
237
249
  - **`withdraw` lands in your address balance by default** (`0x2::coin::send_funds`), not a coin
238
250
  object — it merges into the versionless accumulator `deposit` already draws from, so the round
239
- trip never accretes stray `Coin<DUSDC>` objects. `read.balance(owner)` reflects the account's
240
- internal custody balance; use the client's `getBalance(owner)` for the wallet-side DUSDC total
251
+ trip never accretes stray `Coin<USDC>` objects. `read.balance(owner)` reflects the account's
252
+ internal custody balance; use the client's `getBalance(owner)` for the wallet-side USDC total
241
253
  (coin objects + address balance). Pass `withdraw(owner, amt, { toCoinObject: true })` for a
242
254
  discrete coin (wallets/explorers that only render coin objects, or same-PTB composition).
243
255
 
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.mts","names":[],"sources":["../src/account.ts"],"mappings":";;;;;;;;;;;;AAoCA;;;;;;;;;AAiBA;;UAjBiB,aAAA,SAAsB,eAAA;EAiB6B;EAfnE,gBAAA;EAegC;EAbhC,eAAA;AAAA;;AAqCD;;;;;;;;;iBAxBgB,gBAAA,CAAiB,OAAA,EAAS,UAAA,GAAa,aAAA;;;;;;;;;;cAwB1C,eAAA;EAAA;EA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EA0Db;;;;;;;;;EA3CA,uBAAA,CAAwB,MAAA;IAAU,IAAA,EAAM,yBAAA;IAA2B,QAAA;EAAA,KAC1D,EAAA,EAAI,WAAA;EA8Dc;;;;;;;EAzC3B,YAAA,CAAa,MAAA;IAAU,SAAA;IAAmB,IAAA,EAAM,yBAAA;IAA2B,QAAA;EAAA,KAClE,EAAA,EAAI,WAAA;;;;;;;;;EAoBb,aAAA,CAAc,MAAA;IAAU,SAAA;IAAmB,MAAA;IAAgB,QAAA;EAAA,KAClD,EAAA,EAAI,WAAA,KAAc,iBAAA;;;;;;;EAkB3B,WAAA,CAAY,MAAA;IAAU,SAAA;EAAA,KACb,EAAA,EAAI,WAAA,KAAc,iBAAA;;;;;;;;EAW3B,OAAA,CAAQ,MAAA;IAAU,KAAA;IAAe,QAAA;EAAA,KACxB,EAAA,EAAI,WAAA,KAAc,iBAAA;AAAA"}
package/dist/account.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Account, AccountWrapper, account_exports, balance, depositFunds, generateAuth, loadAccount, share, withdrawFunds } from "./contracts/account/account.mjs";
2
2
  import { _new, account_registry_exports } from "./contracts/account/account_registry.mjs";
3
+ import { MAINNET_ACCOUNT } from "./deployments/mainnet.mjs";
3
4
  import { TESTNET_ACCOUNT, TESTNET_DEPLOYMENT, TESTNET_UNITS } from "./deployments/testnet.mjs";
4
5
  import { getDeployment, getUnits } from "./deployments/index.mjs";
5
6
  import { account_events_exports } from "./contracts/account/account_events.mjs";
@@ -19,7 +20,8 @@ import { deriveObjectID } from "@mysten/sui/utils";
19
20
  */
20
21
  function getAccountConfig(network) {
21
22
  if (network === "testnet") return TESTNET_ACCOUNT;
22
- throw new Error(`@mysten/deepbook-v3/account: no account deployment recorded for network '${network}'. The account primitive is testnet-only today; for your own deployment pass \`{ accountPackageId, accountRegistry }\` to AccountContract directly.`);
23
+ if (network === "mainnet") return MAINNET_ACCOUNT;
24
+ throw new Error(`@mysten/deepbook-v3/account: no account deployment recorded for network '${network}'. The account primitive is recorded for testnet and mainnet; for your own deployment pass \`{ accountPackageId, accountRegistry }\` to AccountContract directly.`);
23
25
  }
24
26
  const AccountWrapperKey = bcs.struct("AccountWrapperKey", { pos0: bcs.Address });
25
27
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"account.mjs","names":["#config","account.generateAuth","accountRegistry._new","account.share","account.depositFunds","account.withdrawFunds","account.loadAccount","account.balance"],"sources":["../src/account.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\nimport { bcs } from '@mysten/sui/bcs';\nimport type {\n\tTransaction,\n\tTransactionObjectArgument,\n\tTransactionResult,\n} from '@mysten/sui/transactions';\nimport { deriveObjectID } from '@mysten/sui/utils';\n\nimport * as account from './contracts/account/account.js';\nimport * as accountRegistry from './contracts/account/account_registry.js';\nimport type { AccountConfig as GeneratedAccountConfig } from './contracts/account/config-arguments.js';\nimport { TESTNET_ACCOUNT } from './deployments/testnet.js';\nimport type { NetworkArg } from './deployments/index.js';\n\n// Provenance: which on-chain deployment the ids above came from. Re-exported so a consumer\n// can answer \"which deploy is this build pinned to?\" without reaching for another subpath.\nexport { getDeployment, getUnits, TESTNET_DEPLOYMENT, TESTNET_UNITS } from './deployments/index.js';\nexport type { NetworkArg } from './deployments/index.js';\nexport type { DeployedNetwork } from './deployments/index.js';\n\n/**\n * The deployed ids of the shared `account` package this contract builds against.\n *\n * Kept deliberately minimal — ids only — so any consumer of the shared account primitive\n * (DeepBook core's account wrapper, Predict, …) can drive these builders with its OWN\n * deployment's ids without constructing a full product-SDK config.\n *\n * Extends the codegen-generated config interface so there is exactly one config shape and\n * casing: the generated bindings resolve `options.config` against these same keys, and if\n * codegen adds, drops, or renames a key this file stops compiling instead of silently\n * building a PTB against the wrong object. The ids are narrowed to `string` — codegen types\n * the package id as optional and the registry as the wider `ConfigValue`, but the\n * wrapper-address derivation needs plain ids.\n */\nexport interface AccountConfig extends GeneratedAccountConfig {\n\t/** The `account` Move package id. */\n\taccountPackageId: string;\n\t/** The shared `AccountRegistry` object id. */\n\taccountRegistry: string;\n}\n\n/**\n * @description The deployed `account` ids for `network`, so a caller does not transcribe\n * them. Generated from the deploy manifest — see `src/deployments/`.\n * @throws if the network has no recorded deployment, rather than returning placeholder ids\n * that would fail as a confusing on-chain abort.\n *\n * ```ts\n * const account = new AccountContract(getAccountConfig('testnet'));\n * ```\n */\nexport function getAccountConfig(network: NetworkArg): AccountConfig {\n\tif (network === 'testnet') return TESTNET_ACCOUNT;\n\tthrow new Error(\n\t\t`@mysten/deepbook-v3/account: no account deployment recorded for network '${network}'. ` +\n\t\t\t'The account primitive is testnet-only today; for your own deployment pass ' +\n\t\t\t'`{ accountPackageId, accountRegistry }` to AccountContract directly.',\n\t);\n}\n\n// `AccountWrapperKey(address)` is a one-field positional struct, so its BCS is just the\n// owner's 32-byte address. See `packages/account/sources/account_registry.move`.\nconst AccountWrapperKey = bcs.struct('AccountWrapperKey', {\n\tpos0: bcs.Address,\n});\n\n/**\n * AccountContract — the reusable on-chain account primitive (`packages/account`).\n *\n * An owner has one canonical `AccountWrapper`, a *derived* object of the account registry,\n * so its id is computable off-chain (no read). The wrapper holds an `Account` whose custody\n * balances apps deposit into and withdraw from; app-specific data hangs off it under an\n * app-keyed slot. Authority is a hot-potato `Auth` minted from the tx sender and consumed\n * by the very next account-loading call.\n */\nexport class AccountContract {\n\t#config: AccountConfig;\n\n\t/**\n\t * @param {AccountConfig} config Deployed ids of the shared `account` package\n\t */\n\tconstructor(config: AccountConfig) {\n\t\tthis.#config = config;\n\t}\n\n\t/**\n\t * @description The deterministic id of an owner's canonical account wrapper — no chain\n\t * read needed. The wrapper is a derived object of the account registry, so its id is\n\t * `derive_address(registry, AccountWrapperKey(owner))`.\n\t * @param {string} owner Owner address\n\t * @returns The wrapper object id\n\t */\n\tderiveAccountWrapperId(owner: string): string {\n\t\tconst key = AccountWrapperKey.serialize({ pos0: owner }).toBytes();\n\t\treturn deriveObjectID(\n\t\t\tthis.#config.accountRegistry,\n\t\t\t`${this.#config.accountPackageId}::account_registry::AccountWrapperKey`,\n\t\t\tkey,\n\t\t);\n\t}\n\n\t/**\n\t * @description Mint owner authority for the transaction sender. A hot-potato `Auth`\n\t * consumed by the very next account-loading call (`load_account_mut` inside\n\t * `deposit_funds` / `withdraw_funds` / an app's own entrypoints).\n\t * @returns A function that takes a Transaction object\n\t */\n\tgenerateAuth() {\n\t\treturn (tx: Transaction): TransactionResult =>\n\t\t\ttx.add(account.generateAuth({ config: this.#config }));\n\t}\n\n\t/**\n\t * @description Create the sender's canonical account wrapper and share it. `new` derives\n\t * the wrapper at its deterministic address (see `deriveAccountWrapperId`) and aborts if\n\t * it already exists; `share` publishes the shared object apps borrow against.\n\t * @returns A function that takes a Transaction object\n\t */\n\tcreateAccount() {\n\t\treturn (tx: Transaction): void => {\n\t\t\tconst wrapper = tx.add(accountRegistry._new({ config: this.#config }));\n\t\t\ttx.add(account.share({ config: this.#config, arguments: { self: wrapper } }));\n\t\t};\n\t}\n\n\t/**\n\t * @description First-time funding in ONE PTB: create the sender's wrapper, deposit\n\t * `coin` through the fresh handle, then `share` LAST (once shared, by-value use of the\n\t * handle is over). This cannot be split into `createAccount` + `depositFunds`: an object\n\t * input can only address an object that pre-exists the PTB, so a wrapper created inside\n\t * it is reachable only through `new`'s result handle.\n\t * @param {object} params Coin to deposit and its coin type\n\t * @returns A function that takes a Transaction object\n\t */\n\tcreateAccountAndDeposit(params: { coin: TransactionObjectArgument; coinType: string }) {\n\t\treturn (tx: Transaction): void => {\n\t\t\tconst wrapper = tx.add(accountRegistry._new({ config: this.#config }));\n\t\t\tconst auth = tx.add(this.generateAuth());\n\t\t\ttx.add(\n\t\t\t\taccount.depositFunds({\n\t\t\t\t\tconfig: this.#config,\n\t\t\t\t\targuments: { wrapper, auth, coin: params.coin },\n\t\t\t\t\ttypeArguments: [params.coinType],\n\t\t\t\t}),\n\t\t\t);\n\t\t\ttx.add(account.share({ config: this.#config, arguments: { self: wrapper } }));\n\t\t};\n\t}\n\n\t/**\n\t * @description Deposit a caller-provided `coin` into the account's stored balance via the\n\t * PTB-callable `deposit_funds` (folds settle → authorize → load → deposit; clock and\n\t * accumulator root auto-injected). The caller owns coin sourcing.\n\t * @param {object} params Wrapper id, coin to deposit, and its coin type\n\t * @returns A function that takes a Transaction object\n\t */\n\tdepositFunds(params: { wrapperId: string; coin: TransactionObjectArgument; coinType: string }) {\n\t\treturn (tx: Transaction): void => {\n\t\t\tconst auth = tx.add(this.generateAuth());\n\t\t\ttx.add(\n\t\t\t\taccount.depositFunds({\n\t\t\t\t\tconfig: this.#config,\n\t\t\t\t\targuments: { wrapper: params.wrapperId, auth, coin: params.coin },\n\t\t\t\t\ttypeArguments: [params.coinType],\n\t\t\t\t}),\n\t\t\t);\n\t\t};\n\t}\n\n\t/**\n\t * @description Withdraw `amount` (raw u64 units) from the account's stored balance via\n\t * the PTB-callable `withdraw_funds` (folds settle → authorize → load → withdraw; clock\n\t * and accumulator root auto-injected), returning the minted `Coin<T>` for the caller to\n\t * transfer or compose.\n\t * @param {object} params Wrapper id, raw amount, and coin type\n\t * @returns A function that takes a Transaction object and returns the `Coin<T>`\n\t */\n\twithdrawFunds(params: { wrapperId: string; amount: bigint; coinType: string }) {\n\t\treturn (tx: Transaction): TransactionResult => {\n\t\t\tconst auth = tx.add(this.generateAuth());\n\t\t\treturn tx.add(\n\t\t\t\taccount.withdrawFunds({\n\t\t\t\t\tconfig: this.#config,\n\t\t\t\t\targuments: { wrapper: params.wrapperId, auth, amount: params.amount },\n\t\t\t\t\ttypeArguments: [params.coinType],\n\t\t\t\t}),\n\t\t\t);\n\t\t};\n\t}\n\n\t/**\n\t * @description Borrow the `Account` out of its wrapper — the read-side entry point apps\n\t * chain their own getters onto (`account::balance<T>`, an app's own data accessors).\n\t * @param {object} params Wrapper id\n\t * @returns A function that takes a Transaction object and returns the `Account`\n\t */\n\tloadAccount(params: { wrapperId: string }) {\n\t\treturn (tx: Transaction): TransactionResult =>\n\t\t\ttx.add(account.loadAccount({ config: this.#config, arguments: { self: params.wrapperId } }));\n\t}\n\n\t/**\n\t * @description Read an owner's stored custody balance for a coin type: chains\n\t * `load_account(wrapper)` → `balance<T>(account, root, clock)`. Compose in a\n\t * dev-inspect/simulate PTB and read the u64 return of the LAST command.\n\t * @param {object} params Owner address and coin type\n\t * @returns A function that takes a Transaction object\n\t */\n\tbalance(params: { owner: string; coinType: string }) {\n\t\treturn (tx: Transaction): TransactionResult => {\n\t\t\tconst acct = tx.add(\n\t\t\t\tthis.loadAccount({ wrapperId: this.deriveAccountWrapperId(params.owner) }),\n\t\t\t);\n\t\t\treturn tx.add(\n\t\t\t\taccount.balance({\n\t\t\t\t\tconfig: this.#config,\n\t\t\t\t\ttypeArguments: [params.coinType],\n\t\t\t\t\targuments: { self: acct },\n\t\t\t\t}),\n\t\t\t);\n\t\t};\n\t}\n}\n\n// === Generated bindings ===\n// The move-call thunks and BCS structs, for consumers composing their own PTBs or\n// parsing account objects/events (e.g. `AccountWrapper.parse`, the event layouts).\n//\n// NOTE: `Account` here is the shared account primitive's custody account\n// (`account::account::Account`). It is deliberately NOT re-exported from this\n// package's root — the root already exports a different `Account`\n// (`@deepbook/core::account::Account`, the per-pool trading account) and the two\n// have unrelated layouts. Keep them separated by subpath.\nexport * as accountMoveCalls from './contracts/account/account.js';\nexport * as accountRegistryMoveCalls from './contracts/account/account_registry.js';\nexport * as accountEvents from './contracts/account/account_events.js';\nexport { Account, AccountWrapper } from './contracts/account/account.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAqDA,SAAgB,iBAAiB,SAAoC;AACpE,KAAI,YAAY,UAAW,QAAO;AAClC,OAAM,IAAI,MACT,4EAA4E,QAAQ,qJAGpF;;AAKF,MAAM,oBAAoB,IAAI,OAAO,qBAAqB,EACzD,MAAM,IAAI,SACV,CAAC;;;;;;;;;;AAWF,IAAa,kBAAb,MAA6B;CAC5B;;;;CAKA,YAAY,QAAuB;AAClC,QAAKA,SAAU;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AAG,IAAI,KAAK,cAAc,CAAC;AACxC,UAAO,GAAG,IACTK,cAAsB;IACrB,QAAQ,MAAKL;IACb,WAAW;KAAE,SAAS,OAAO;KAAW;KAAM,QAAQ,OAAO;KAAQ;IACrE,eAAe,CAAC,OAAO,SAAS;IAChC,CAAC,CACF;;;;;;;;;CAUH,YAAY,QAA+B;AAC1C,UAAQ,OACP,GAAG,IAAIM,YAAoB;GAAE,QAAQ,MAAKN;GAAS,WAAW,EAAE,MAAM,OAAO,WAAW;GAAE,CAAC,CAAC;;;;;;;;;CAU9F,QAAQ,QAA6C;AACpD,UAAQ,OAAuC;GAC9C,MAAM,OAAO,GAAG,IACf,KAAK,YAAY,EAAE,WAAW,KAAK,uBAAuB,OAAO,MAAM,EAAE,CAAC,CAC1E;AACD,UAAO,GAAG,IACTO,QAAgB;IACf,QAAQ,MAAKP;IACb,eAAe,CAAC,OAAO,SAAS;IAChC,WAAW,EAAE,MAAM,MAAM;IACzB,CAAC,CACF"}
1
+ {"version":3,"file":"account.mjs","names":["#config","account.generateAuth","accountRegistry._new","account.share","account.depositFunds","account.withdrawFunds","account.loadAccount","account.balance"],"sources":["../src/account.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\nimport { bcs } from '@mysten/sui/bcs';\nimport type {\n\tTransaction,\n\tTransactionObjectArgument,\n\tTransactionResult,\n} from '@mysten/sui/transactions';\nimport { deriveObjectID } from '@mysten/sui/utils';\n\nimport * as account from './contracts/account/account.js';\nimport * as accountRegistry from './contracts/account/account_registry.js';\nimport type { AccountConfig as GeneratedAccountConfig } from './contracts/account/config-arguments.js';\nimport { MAINNET_ACCOUNT } from './deployments/mainnet.js';\nimport { TESTNET_ACCOUNT } from './deployments/testnet.js';\nimport type { NetworkArg } from './deployments/index.js';\n\n// Provenance: which on-chain deployment the ids above came from. Re-exported so a consumer\n// can answer \"which deploy is this build pinned to?\" without reaching for another subpath.\nexport { getDeployment, getUnits, TESTNET_DEPLOYMENT, TESTNET_UNITS } from './deployments/index.js';\nexport type { NetworkArg } from './deployments/index.js';\nexport type { DeployedNetwork } from './deployments/index.js';\n\n/**\n * The deployed ids of the shared `account` package this contract builds against.\n *\n * Kept deliberately minimal — ids only — so any consumer of the shared account primitive\n * (DeepBook core's account wrapper, Predict, …) can drive these builders with its OWN\n * deployment's ids without constructing a full product-SDK config.\n *\n * Extends the codegen-generated config interface so there is exactly one config shape and\n * casing: the generated bindings resolve `options.config` against these same keys, and if\n * codegen adds, drops, or renames a key this file stops compiling instead of silently\n * building a PTB against the wrong object. The ids are narrowed to `string` — codegen types\n * the package id as optional and the registry as the wider `ConfigValue`, but the\n * wrapper-address derivation needs plain ids.\n */\nexport interface AccountConfig extends GeneratedAccountConfig {\n\t/** The `account` Move package id. */\n\taccountPackageId: string;\n\t/** The shared `AccountRegistry` object id. */\n\taccountRegistry: string;\n}\n\n/**\n * @description The deployed `account` ids for `network`, so a caller does not transcribe\n * them. Generated from the deploy manifest — see `src/deployments/`.\n * @throws if the network has no recorded deployment, rather than returning placeholder ids\n * that would fail as a confusing on-chain abort.\n *\n * ```ts\n * const account = new AccountContract(getAccountConfig('testnet'));\n * ```\n */\nexport function getAccountConfig(network: NetworkArg): AccountConfig {\n\tif (network === 'testnet') return TESTNET_ACCOUNT;\n\tif (network === 'mainnet') return MAINNET_ACCOUNT;\n\tthrow new Error(\n\t\t`@mysten/deepbook-v3/account: no account deployment recorded for network '${network}'. ` +\n\t\t\t'The account primitive is recorded for testnet and mainnet; for your own deployment pass ' +\n\t\t\t'`{ accountPackageId, accountRegistry }` to AccountContract directly.',\n\t);\n}\n\n// `AccountWrapperKey(address)` is a one-field positional struct, so its BCS is just the\n// owner's 32-byte address. See `packages/account/sources/account_registry.move`.\nconst AccountWrapperKey = bcs.struct('AccountWrapperKey', {\n\tpos0: bcs.Address,\n});\n\n/**\n * AccountContract — the reusable on-chain account primitive (`packages/account`).\n *\n * An owner has one canonical `AccountWrapper`, a *derived* object of the account registry,\n * so its id is computable off-chain (no read). The wrapper holds an `Account` whose custody\n * balances apps deposit into and withdraw from; app-specific data hangs off it under an\n * app-keyed slot. Authority is a hot-potato `Auth` minted from the tx sender and consumed\n * by the very next account-loading call.\n */\nexport class AccountContract {\n\t#config: AccountConfig;\n\n\t/**\n\t * @param {AccountConfig} config Deployed ids of the shared `account` package\n\t */\n\tconstructor(config: AccountConfig) {\n\t\tthis.#config = config;\n\t}\n\n\t/**\n\t * @description The deterministic id of an owner's canonical account wrapper — no chain\n\t * read needed. The wrapper is a derived object of the account registry, so its id is\n\t * `derive_address(registry, AccountWrapperKey(owner))`.\n\t * @param {string} owner Owner address\n\t * @returns The wrapper object id\n\t */\n\tderiveAccountWrapperId(owner: string): string {\n\t\tconst key = AccountWrapperKey.serialize({ pos0: owner }).toBytes();\n\t\treturn deriveObjectID(\n\t\t\tthis.#config.accountRegistry,\n\t\t\t`${this.#config.accountPackageId}::account_registry::AccountWrapperKey`,\n\t\t\tkey,\n\t\t);\n\t}\n\n\t/**\n\t * @description Mint owner authority for the transaction sender. A hot-potato `Auth`\n\t * consumed by the very next account-loading call (`load_account_mut` inside\n\t * `deposit_funds` / `withdraw_funds` / an app's own entrypoints).\n\t * @returns A function that takes a Transaction object\n\t */\n\tgenerateAuth() {\n\t\treturn (tx: Transaction): TransactionResult =>\n\t\t\ttx.add(account.generateAuth({ config: this.#config }));\n\t}\n\n\t/**\n\t * @description Create the sender's canonical account wrapper and share it. `new` derives\n\t * the wrapper at its deterministic address (see `deriveAccountWrapperId`) and aborts if\n\t * it already exists; `share` publishes the shared object apps borrow against.\n\t * @returns A function that takes a Transaction object\n\t */\n\tcreateAccount() {\n\t\treturn (tx: Transaction): void => {\n\t\t\tconst wrapper = tx.add(accountRegistry._new({ config: this.#config }));\n\t\t\ttx.add(account.share({ config: this.#config, arguments: { self: wrapper } }));\n\t\t};\n\t}\n\n\t/**\n\t * @description First-time funding in ONE PTB: create the sender's wrapper, deposit\n\t * `coin` through the fresh handle, then `share` LAST (once shared, by-value use of the\n\t * handle is over). This cannot be split into `createAccount` + `depositFunds`: an object\n\t * input can only address an object that pre-exists the PTB, so a wrapper created inside\n\t * it is reachable only through `new`'s result handle.\n\t * @param {object} params Coin to deposit and its coin type\n\t * @returns A function that takes a Transaction object\n\t */\n\tcreateAccountAndDeposit(params: { coin: TransactionObjectArgument; coinType: string }) {\n\t\treturn (tx: Transaction): void => {\n\t\t\tconst wrapper = tx.add(accountRegistry._new({ config: this.#config }));\n\t\t\tconst auth = tx.add(this.generateAuth());\n\t\t\ttx.add(\n\t\t\t\taccount.depositFunds({\n\t\t\t\t\tconfig: this.#config,\n\t\t\t\t\targuments: { wrapper, auth, coin: params.coin },\n\t\t\t\t\ttypeArguments: [params.coinType],\n\t\t\t\t}),\n\t\t\t);\n\t\t\ttx.add(account.share({ config: this.#config, arguments: { self: wrapper } }));\n\t\t};\n\t}\n\n\t/**\n\t * @description Deposit a caller-provided `coin` into the account's stored balance via the\n\t * PTB-callable `deposit_funds` (folds settle → authorize → load → deposit; clock and\n\t * accumulator root auto-injected). The caller owns coin sourcing.\n\t * @param {object} params Wrapper id, coin to deposit, and its coin type\n\t * @returns A function that takes a Transaction object\n\t */\n\tdepositFunds(params: { wrapperId: string; coin: TransactionObjectArgument; coinType: string }) {\n\t\treturn (tx: Transaction): void => {\n\t\t\tconst auth = tx.add(this.generateAuth());\n\t\t\ttx.add(\n\t\t\t\taccount.depositFunds({\n\t\t\t\t\tconfig: this.#config,\n\t\t\t\t\targuments: { wrapper: params.wrapperId, auth, coin: params.coin },\n\t\t\t\t\ttypeArguments: [params.coinType],\n\t\t\t\t}),\n\t\t\t);\n\t\t};\n\t}\n\n\t/**\n\t * @description Withdraw `amount` (raw u64 units) from the account's stored balance via\n\t * the PTB-callable `withdraw_funds` (folds settle → authorize → load → withdraw; clock\n\t * and accumulator root auto-injected), returning the minted `Coin<T>` for the caller to\n\t * transfer or compose.\n\t * @param {object} params Wrapper id, raw amount, and coin type\n\t * @returns A function that takes a Transaction object and returns the `Coin<T>`\n\t */\n\twithdrawFunds(params: { wrapperId: string; amount: bigint; coinType: string }) {\n\t\treturn (tx: Transaction): TransactionResult => {\n\t\t\tconst auth = tx.add(this.generateAuth());\n\t\t\treturn tx.add(\n\t\t\t\taccount.withdrawFunds({\n\t\t\t\t\tconfig: this.#config,\n\t\t\t\t\targuments: { wrapper: params.wrapperId, auth, amount: params.amount },\n\t\t\t\t\ttypeArguments: [params.coinType],\n\t\t\t\t}),\n\t\t\t);\n\t\t};\n\t}\n\n\t/**\n\t * @description Borrow the `Account` out of its wrapper — the read-side entry point apps\n\t * chain their own getters onto (`account::balance<T>`, an app's own data accessors).\n\t * @param {object} params Wrapper id\n\t * @returns A function that takes a Transaction object and returns the `Account`\n\t */\n\tloadAccount(params: { wrapperId: string }) {\n\t\treturn (tx: Transaction): TransactionResult =>\n\t\t\ttx.add(account.loadAccount({ config: this.#config, arguments: { self: params.wrapperId } }));\n\t}\n\n\t/**\n\t * @description Read an owner's stored custody balance for a coin type: chains\n\t * `load_account(wrapper)` → `balance<T>(account, root, clock)`. Compose in a\n\t * dev-inspect/simulate PTB and read the u64 return of the LAST command.\n\t * @param {object} params Owner address and coin type\n\t * @returns A function that takes a Transaction object\n\t */\n\tbalance(params: { owner: string; coinType: string }) {\n\t\treturn (tx: Transaction): TransactionResult => {\n\t\t\tconst acct = tx.add(\n\t\t\t\tthis.loadAccount({ wrapperId: this.deriveAccountWrapperId(params.owner) }),\n\t\t\t);\n\t\t\treturn tx.add(\n\t\t\t\taccount.balance({\n\t\t\t\t\tconfig: this.#config,\n\t\t\t\t\ttypeArguments: [params.coinType],\n\t\t\t\t\targuments: { self: acct },\n\t\t\t\t}),\n\t\t\t);\n\t\t};\n\t}\n}\n\n// === Generated bindings ===\n// The move-call thunks and BCS structs, for consumers composing their own PTBs or\n// parsing account objects/events (e.g. `AccountWrapper.parse`, the event layouts).\n//\n// NOTE: `Account` here is the shared account primitive's custody account\n// (`account::account::Account`). It is deliberately NOT re-exported from this\n// package's root — the root already exports a different `Account`\n// (`@deepbook/core::account::Account`, the per-pool trading account) and the two\n// have unrelated layouts. Keep them separated by subpath.\nexport * as accountMoveCalls from './contracts/account/account.js';\nexport * as accountRegistryMoveCalls from './contracts/account/account_registry.js';\nexport * as accountEvents from './contracts/account/account_events.js';\nexport { Account, AccountWrapper } from './contracts/account/account.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsDA,SAAgB,iBAAiB,SAAoC;AACpE,KAAI,YAAY,UAAW,QAAO;AAClC,KAAI,YAAY,UAAW,QAAO;AAClC,OAAM,IAAI,MACT,4EAA4E,QAAQ,mKAGpF;;AAKF,MAAM,oBAAoB,IAAI,OAAO,qBAAqB,EACzD,MAAM,IAAI,SACV,CAAC;;;;;;;;;;AAWF,IAAa,kBAAb,MAA6B;CAC5B;;;;CAKA,YAAY,QAAuB;AAClC,QAAKA,SAAU;;;;;;;;;CAUhB,uBAAuB,OAAuB;EAC7C,MAAM,MAAM,kBAAkB,UAAU,EAAE,MAAM,OAAO,CAAC,CAAC,SAAS;AAClE,SAAO,eACN,MAAKA,OAAQ,iBACb,GAAG,MAAKA,OAAQ,iBAAiB,wCACjC,IACA;;;;;;;;CASF,eAAe;AACd,UAAQ,OACP,GAAG,IAAIC,aAAqB,EAAE,QAAQ,MAAKD,QAAS,CAAC,CAAC;;;;;;;;CASxD,gBAAgB;AACf,UAAQ,OAA0B;GACjC,MAAM,UAAU,GAAG,IAAIE,KAAqB,EAAE,QAAQ,MAAKF,QAAS,CAAC,CAAC;AACtE,MAAG,IAAIG,MAAc;IAAE,QAAQ,MAAKH;IAAS,WAAW,EAAE,MAAM,SAAS;IAAE,CAAC,CAAC;;;;;;;;;;;;CAa/E,wBAAwB,QAA+D;AACtF,UAAQ,OAA0B;GACjC,MAAM,UAAU,GAAG,IAAIE,KAAqB,EAAE,QAAQ,MAAKF,QAAS,CAAC,CAAC;GACtE,MAAM,OAAO,GAAG,IAAI,KAAK,cAAc,CA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} from "../utils/index.mjs";
2
2
  import { BcsType } from "@mysten/sui/bcs";
3
- import * as _mysten_sui_transactions118 from "@mysten/sui/transactions";
3
+ import * as _mysten_sui_transactions14 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_transactions118.TransactionResult;
60
+ declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
72
+ declare function loadAccount(options: LoadAccountOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
88
+ declare function balance(options: BalanceOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
103
+ declare function owner(options: OwnerOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
115
+ declare function accountId(options: AccountIdOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
130
+ declare function referrerAccountId(options: ReferrerAccountIdOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
145
+ declare function referrerReceiveAddress(options: ReferrerReceiveAddressOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
157
+ declare function receiveAddress(options: ReceiveAddressOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
166
+ declare function generateAuth(options?: GenerateAuthOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
178
+ declare function generateAuthAsObject(options: GenerateAuthAsObjectOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
190
+ declare function share(options: ShareOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
207
+ declare function loadAccountMut(options: LoadAccountMutOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
227
+ declare function settle(options: SettleOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
244
+ declare function deposit(options: DepositOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
261
+ declare function withdraw(options: WithdrawOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
279
+ declare function depositFunds(options: DepositFundsOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
297
+ declare function withdrawFunds(options: WithdrawFundsOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
315
+ declare function attach<Data extends BcsType<any>>(options: AttachOptions<Data>): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
328
+ declare function hasData(options: HasDataOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
345
+ declare function borrowData(options: BorrowDataOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
362
+ declare function borrowDataMut(options: BorrowDataMutOptions): (tx: Transaction) => _mysten_sui_transactions14.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_transactions118.TransactionResult;
379
+ declare function detach(options: DetachOptions): (tx: Transaction) => _mysten_sui_transactions14.TransactionResult;
380
380
  //#endregion
381
381
  export { Account, AccountWrapper, account_d_exports };
382
382
  //# sourceMappingURL=account.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.mts","names":[],"sources":["../../../src/contracts/account/account.ts"],"mappings":";;;;;;;;;cAyBa,OAAA,EAAO,UAAA;;;;;;;;;;;;;;;cAmBP,cAAA,EAAc,UAAA;;;;;;;;;;;;;;;;;;cAOd,OAAA,EAAO,SAAA,WAAA,OAAA;AAAA,cAIP,OAAA,EAAO,SAAA,WAAA,OAAA;AAAA,cAIP,IAAA,EAAI,UAAA;;;;UAOA,WAAA;EAChB,IAAA,EAAM,sBAAA;AAAA;AAAA,UAEU,SAAA;EAChB,OAAA;EACA,SAAA,EAAW,WAAA,IAAe,IAAA,EAAM,sBAAA;EAChC,MAAA;IACC,gBAAA;EAAA;AAAA;AAhDF;AAAA,iBAoDgB,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAQP,oBAAA;EAChB,IAAA,EAAM,sBAAA;AAAA;AAAA,UAEU,kBAAA;EAChB,OAAA;EACA,SAAA,EAAW,oBAAA,IAAwB,IAAA,EAAM,sBAAA;EACzC,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,WAAA,CAAY,OAAA,EAAS,kBAAA,IAK5B,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAQP,gBAAA;EAChB,IAAA,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UASP,eAAA;EAChB,IAAA,EAAM,mBAAA;EACN,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAEQ,aAAA;EAChB,OAAA;EACA,SAAA,EAAW,eAAA,IAAmB,IAAA,EAAM,mBAAA,EAAqB,MAAA,EAAQ,mBAAA;EACjE,MAAA;IACC,gBAAA;EAAA;EAED,aAAA;AAAA;;;;;iBAMe,MAAA,CAAO,OAAA,EAAS,aAAA,IAKvB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA"}
@@ -1,40 +1,40 @@
1
1
  import { MoveStruct } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs0 from "@mysten/sui/bcs";
2
+ import * as _mysten_sui_bcs7 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_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]>">;
9
+ account_id: _mysten_sui_bcs7.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
10
+ wrapper_id: _mysten_sui_bcs7.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
11
+ owner: _mysten_sui_bcs7.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
12
+ self_owned: _mysten_sui_bcs7.BcsType<boolean, boolean, "bool">;
13
+ referrer_account_id: _mysten_sui_bcs7.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_bcs0.BcsType<string, string, "string">;
16
+ /** Fully-qualified `App` witness type name. */app: _mysten_sui_bcs7.BcsType<string, string, "string">;
17
17
  }, "@local-pkg/account::account_events::AppAuthorized">;
18
18
  declare const AppDeauthorized: MoveStruct<{
19
- app: _mysten_sui_bcs0.BcsType<string, string, "string">;
19
+ app: _mysten_sui_bcs7.BcsType<string, string, "string">;
20
20
  }, "@local-pkg/account::account_events::AppDeauthorized">;
21
21
  declare const Deposited: MoveStruct<{
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">;
22
+ account_id: _mysten_sui_bcs7.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
23
+ coin_type: _mysten_sui_bcs7.BcsType<string, string, "string">;
24
+ amount: _mysten_sui_bcs7.BcsType<bigint, string | number | bigint, "u64">;
25
+ new_balance: _mysten_sui_bcs7.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_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">;
28
+ account_id: _mysten_sui_bcs7.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
29
+ coin_type: _mysten_sui_bcs7.BcsType<string, string, "string">;
30
+ amount: _mysten_sui_bcs7.BcsType<bigint, string | number | bigint, "u64">;
31
+ new_balance: _mysten_sui_bcs7.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_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">;
34
+ account_id: _mysten_sui_bcs7.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
35
+ coin_type: _mysten_sui_bcs7.BcsType<string, string, "string">;
36
+ amount: _mysten_sui_bcs7.BcsType<bigint, string | number | bigint, "u64">;
37
+ new_balance: _mysten_sui_bcs7.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,6 +1,6 @@
1
1
  import { ConfigValue, MoveStruct, MoveTuple, RawTransactionArgument } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs18 from "@mysten/sui/bcs";
3
- import * as _mysten_sui_transactions106 from "@mysten/sui/transactions";
2
+ import * as _mysten_sui_bcs29 from "@mysten/sui/bcs";
3
+ import * as _mysten_sui_transactions36 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
@@ -8,14 +8,14 @@ declare namespace account_registry_d_exports {
8
8
  export { AccountAdminCap, AccountKey, AccountRegistry, AccountWrapperKey, AppKey, AssertAppIsAuthorizedArguments, AssertAppIsAuthorizedOptions, AuthorizeAppArguments, AuthorizeAppOptions, DeauthorizeAppArguments, DeauthorizeAppOptions, DerivedAddressArguments, DerivedAddressOptions, DerivedExistsArguments, DerivedExistsOptions, DerivedWrapperAddressArguments, DerivedWrapperAddressOptions, DerivedWrapperExistsArguments, DerivedWrapperExistsOptions, GenerateAuthAsAppArguments, GenerateAuthAsAppOptions, IsAppAuthorizedArguments, IsAppAuthorizedOptions, NewArguments, NewOptions, NewSelfOwnedArguments, NewSelfOwnedOptions, NewWithReferrerArguments, NewWithReferrerOptions, _new, assertAppIsAuthorized, authorizeApp, deauthorizeApp, derivedAddress, derivedExists, derivedWrapperAddress, derivedWrapperExists, generateAuthAsApp, isAppAuthorized, newSelfOwned, newWithReferrer };
9
9
  }
10
10
  declare const AccountAdminCap: MoveStruct<{
11
- id: _mysten_sui_bcs18.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
11
+ id: _mysten_sui_bcs29.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
12
12
  }, "@local-pkg/account::account_registry::AccountAdminCap">;
13
13
  declare const AccountRegistry: MoveStruct<{
14
- id: _mysten_sui_bcs18.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
14
+ id: _mysten_sui_bcs29.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
15
15
  }, "@local-pkg/account::account_registry::AccountRegistry">;
16
- declare const AccountKey: MoveTuple<readonly [_mysten_sui_bcs18.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">], "@local-pkg/account::account_registry::AccountKey">;
17
- declare const AccountWrapperKey: MoveTuple<readonly [_mysten_sui_bcs18.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">], "@local-pkg/account::account_registry::AccountWrapperKey">;
18
- declare const AppKey: MoveTuple<readonly [_mysten_sui_bcs18.BcsType<boolean, boolean, "bool">], "@local-pkg/account::account_registry::AppKey<phantom App>">;
16
+ declare const AccountKey: MoveTuple<readonly [_mysten_sui_bcs29.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">], "@local-pkg/account::account_registry::AccountKey">;
17
+ declare const AccountWrapperKey: MoveTuple<readonly [_mysten_sui_bcs29.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">], "@local-pkg/account::account_registry::AccountWrapperKey">;
18
+ declare const AppKey: MoveTuple<readonly [_mysten_sui_bcs29.BcsType<boolean, boolean, "bool">], "@local-pkg/account::account_registry::AppKey<phantom App>">;
19
19
  interface DerivedAddressArguments {
20
20
  registry?: RawTransactionArgument<string>;
21
21
  owner: RawTransactionArgument<string>;
@@ -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_transactions106.TransactionResult;
35
+ declare function derivedAddress(options: DerivedAddressOptions): (tx: Transaction) => _mysten_sui_transactions36.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_transactions106.TransactionResult;
52
+ declare function derivedWrapperAddress(options: DerivedWrapperAddressOptions): (tx: Transaction) => _mysten_sui_transactions36.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_transactions106.TransactionResult;
66
+ declare function derivedExists(options: DerivedExistsOptions): (tx: Transaction) => _mysten_sui_transactions36.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_transactions106.TransactionResult;
80
+ declare function derivedWrapperExists(options: DerivedWrapperExistsOptions): (tx: Transaction) => _mysten_sui_transactions36.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_transactions106.TransactionResult;
96
+ declare function _new(options: NewOptions): (tx: Transaction) => _mysten_sui_transactions36.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_transactions106.TransactionResult;
113
+ declare function newWithReferrer(options: NewWithReferrerOptions): (tx: Transaction) => _mysten_sui_transactions36.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_transactions106.TransactionResult;
130
+ declare function newSelfOwned(options: NewSelfOwnedOptions): (tx: Transaction) => _mysten_sui_transactions36.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_transactions106.TransactionResult;
144
+ declare function isAppAuthorized(options: IsAppAuthorizedOptions): (tx: Transaction) => _mysten_sui_transactions36.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_transactions106.TransactionResult;
159
+ declare function authorizeApp(options: AuthorizeAppOptions): (tx: Transaction) => _mysten_sui_transactions36.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_transactions106.TransactionResult;
174
+ declare function deauthorizeApp(options: DeauthorizeAppOptions): (tx: Transaction) => _mysten_sui_transactions36.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_transactions106.TransactionResult;
188
+ declare function assertAppIsAuthorized(options: AssertAppIsAuthorizedOptions): (tx: Transaction) => _mysten_sui_transactions36.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_transactions106.TransactionResult;
207
+ declare function generateAuthAsApp(options: GenerateAuthAsAppOptions): (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
208
208
  //#endregion
209
209
  export { account_registry_d_exports };
210
210
  //# sourceMappingURL=account_registry.d.mts.map