@haneullabs/deepbook-v3 0.1.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.
- package/CHANGELOG.md +984 -0
- package/README.md +1 -0
- package/dist/cjs/client.d.ts +861 -0
- package/dist/cjs/client.js +1982 -0
- package/dist/cjs/client.js.map +7 -0
- package/dist/cjs/contracts/deepbook/account.d.ts +105 -0
- package/dist/cjs/contracts/deepbook/account.js +163 -0
- package/dist/cjs/contracts/deepbook/account.js.map +7 -0
- package/dist/cjs/contracts/deepbook/balance_manager.d.ts +268 -0
- package/dist/cjs/contracts/deepbook/balance_manager.js +361 -0
- package/dist/cjs/contracts/deepbook/balance_manager.js.map +7 -0
- package/dist/cjs/contracts/deepbook/balances.d.ts +10 -0
- package/dist/cjs/contracts/deepbook/balances.js +35 -0
- package/dist/cjs/contracts/deepbook/balances.js.map +7 -0
- package/dist/cjs/contracts/deepbook/big_vector.d.ts +62 -0
- package/dist/cjs/contracts/deepbook/big_vector.js +80 -0
- package/dist/cjs/contracts/deepbook/big_vector.js.map +7 -0
- package/dist/cjs/contracts/deepbook/book.d.ts +34 -0
- package/dist/cjs/contracts/deepbook/book.js +50 -0
- package/dist/cjs/contracts/deepbook/book.js.map +7 -0
- package/dist/cjs/contracts/deepbook/constants.d.ts +176 -0
- package/dist/cjs/contracts/deepbook/constants.js +338 -0
- package/dist/cjs/contracts/deepbook/constants.js.map +7 -0
- package/dist/cjs/contracts/deepbook/deep_price.d.ts +60 -0
- package/dist/cjs/contracts/deepbook/deep_price.js +87 -0
- package/dist/cjs/contracts/deepbook/deep_price.js.map +7 -0
- package/dist/cjs/contracts/deepbook/deps/std/type_name.d.ts +14 -0
- package/dist/cjs/contracts/deepbook/deps/std/type_name.js +42 -0
- package/dist/cjs/contracts/deepbook/deps/std/type_name.js.map +7 -0
- package/dist/cjs/contracts/deepbook/deps/sui/bag.d.ts +33 -0
- package/dist/cjs/contracts/deepbook/deps/sui/bag.js +47 -0
- package/dist/cjs/contracts/deepbook/deps/sui/bag.js.map +7 -0
- package/dist/cjs/contracts/deepbook/deps/sui/balance.d.ts +9 -0
- package/dist/cjs/contracts/deepbook/deps/sui/balance.js +33 -0
- package/dist/cjs/contracts/deepbook/deps/sui/balance.js.map +7 -0
- package/dist/cjs/contracts/deepbook/deps/sui/object.d.ts +5 -0
- package/dist/cjs/contracts/deepbook/deps/sui/object.js +33 -0
- package/dist/cjs/contracts/deepbook/deps/sui/object.js.map +7 -0
- package/dist/cjs/contracts/deepbook/deps/sui/table.d.ts +28 -0
- package/dist/cjs/contracts/deepbook/deps/sui/table.js +47 -0
- package/dist/cjs/contracts/deepbook/deps/sui/table.js.map +7 -0
- package/dist/cjs/contracts/deepbook/deps/sui/vec_map.d.ts +27 -0
- package/dist/cjs/contracts/deepbook/deps/sui/vec_map.js +45 -0
- package/dist/cjs/contracts/deepbook/deps/sui/vec_map.js.map +7 -0
- package/dist/cjs/contracts/deepbook/deps/sui/vec_set.d.ts +15 -0
- package/dist/cjs/contracts/deepbook/deps/sui/vec_set.js +35 -0
- package/dist/cjs/contracts/deepbook/deps/sui/vec_set.js.map +7 -0
- package/dist/cjs/contracts/deepbook/deps/sui/versioned.d.ts +7 -0
- package/dist/cjs/contracts/deepbook/deps/sui/versioned.js +45 -0
- package/dist/cjs/contracts/deepbook/deps/sui/versioned.js.map +7 -0
- package/dist/cjs/contracts/deepbook/ewma.d.ts +17 -0
- package/dist/cjs/contracts/deepbook/ewma.js +39 -0
- package/dist/cjs/contracts/deepbook/ewma.js.map +7 -0
- package/dist/cjs/contracts/deepbook/fill.d.ts +153 -0
- package/dist/cjs/contracts/deepbook/fill.js +251 -0
- package/dist/cjs/contracts/deepbook/fill.js.map +7 -0
- package/dist/cjs/contracts/deepbook/governance.d.ts +63 -0
- package/dist/cjs/contracts/deepbook/governance.js +79 -0
- package/dist/cjs/contracts/deepbook/governance.js.map +7 -0
- package/dist/cjs/contracts/deepbook/history.d.ts +60 -0
- package/dist/cjs/contracts/deepbook/history.js +78 -0
- package/dist/cjs/contracts/deepbook/history.js.map +7 -0
- package/dist/cjs/contracts/deepbook/math.d.ts +94 -0
- package/dist/cjs/contracts/deepbook/math.js +132 -0
- package/dist/cjs/contracts/deepbook/math.js.map +7 -0
- package/dist/cjs/contracts/deepbook/order.d.ts +135 -0
- package/dist/cjs/contracts/deepbook/order.js +218 -0
- package/dist/cjs/contracts/deepbook/order.js.map +7 -0
- package/dist/cjs/contracts/deepbook/order_info.d.ts +296 -0
- package/dist/cjs/contracts/deepbook/order_info.js +386 -0
- package/dist/cjs/contracts/deepbook/order_info.js.map +7 -0
- package/dist/cjs/contracts/deepbook/order_query.d.ts +85 -0
- package/dist/cjs/contracts/deepbook/order_query.js +96 -0
- package/dist/cjs/contracts/deepbook/order_query.js.map +7 -0
- package/dist/cjs/contracts/deepbook/pool.d.ts +1218 -0
- package/dist/cjs/contracts/deepbook/pool.js +1236 -0
- package/dist/cjs/contracts/deepbook/pool.js.map +7 -0
- package/dist/cjs/contracts/deepbook/registry.d.ts +134 -0
- package/dist/cjs/contracts/deepbook/registry.js +182 -0
- package/dist/cjs/contracts/deepbook/registry.js.map +7 -0
- package/dist/cjs/contracts/deepbook/state.d.ts +117 -0
- package/dist/cjs/contracts/deepbook/state.js +104 -0
- package/dist/cjs/contracts/deepbook/state.js.map +7 -0
- package/dist/cjs/contracts/deepbook/trade_params.d.ts +7 -0
- package/dist/cjs/contracts/deepbook/trade_params.js +35 -0
- package/dist/cjs/contracts/deepbook/trade_params.js.map +7 -0
- package/dist/cjs/contracts/deepbook/vault.d.ts +30 -0
- package/dist/cjs/contracts/deepbook/vault.js +65 -0
- package/dist/cjs/contracts/deepbook/vault.js.map +7 -0
- package/dist/cjs/contracts/utils/index.d.ts +25 -0
- package/dist/cjs/contracts/utils/index.js +148 -0
- package/dist/cjs/contracts/utils/index.js.map +7 -0
- package/dist/cjs/index.d.ts +23 -0
- package/dist/cjs/index.js +81 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/package.json +4 -0
- package/dist/cjs/pyth/PriceServiceConnection.d.ts +26 -0
- package/dist/cjs/pyth/PriceServiceConnection.js +68 -0
- package/dist/cjs/pyth/PriceServiceConnection.js.map +7 -0
- package/dist/cjs/pyth/pyth-helpers.d.ts +7 -0
- package/dist/cjs/pyth/pyth-helpers.js +36 -0
- package/dist/cjs/pyth/pyth-helpers.js.map +7 -0
- package/dist/cjs/pyth/pyth.d.ts +65 -0
- package/dist/cjs/pyth/pyth.js +269 -0
- package/dist/cjs/pyth/pyth.js.map +7 -0
- package/dist/cjs/transactions/balanceManager.d.ts +168 -0
- package/dist/cjs/transactions/balanceManager.js +384 -0
- package/dist/cjs/transactions/balanceManager.js.map +7 -0
- package/dist/cjs/transactions/deepbook.d.ts +477 -0
- package/dist/cjs/transactions/deepbook.js +1335 -0
- package/dist/cjs/transactions/deepbook.js.map +7 -0
- package/dist/cjs/transactions/deepbookAdmin.d.ts +105 -0
- package/dist/cjs/transactions/deepbookAdmin.js +334 -0
- package/dist/cjs/transactions/deepbookAdmin.js.map +7 -0
- package/dist/cjs/transactions/flashLoans.d.ts +56 -0
- package/dist/cjs/transactions/flashLoans.js +124 -0
- package/dist/cjs/transactions/flashLoans.js.map +7 -0
- package/dist/cjs/transactions/governance.d.ts +42 -0
- package/dist/cjs/transactions/governance.js +135 -0
- package/dist/cjs/transactions/governance.js.map +7 -0
- package/dist/cjs/transactions/marginAdmin.d.ts +133 -0
- package/dist/cjs/transactions/marginAdmin.js +393 -0
- package/dist/cjs/transactions/marginAdmin.js.map +7 -0
- package/dist/cjs/transactions/marginLiquidations.d.ts +61 -0
- package/dist/cjs/transactions/marginLiquidations.js +173 -0
- package/dist/cjs/transactions/marginLiquidations.js.map +7 -0
- package/dist/cjs/transactions/marginMaintainer.d.ts +80 -0
- package/dist/cjs/transactions/marginMaintainer.js +251 -0
- package/dist/cjs/transactions/marginMaintainer.js.map +7 -0
- package/dist/cjs/transactions/marginManager.d.ts +236 -0
- package/dist/cjs/transactions/marginManager.js +688 -0
- package/dist/cjs/transactions/marginManager.js.map +7 -0
- package/dist/cjs/transactions/marginPool.d.ts +134 -0
- package/dist/cjs/transactions/marginPool.js +330 -0
- package/dist/cjs/transactions/marginPool.js.map +7 -0
- package/dist/cjs/transactions/marginRegistry.d.ts +94 -0
- package/dist/cjs/transactions/marginRegistry.js +221 -0
- package/dist/cjs/transactions/marginRegistry.js.map +7 -0
- package/dist/cjs/transactions/marginTPSL.d.ts +93 -0
- package/dist/cjs/transactions/marginTPSL.js +286 -0
- package/dist/cjs/transactions/marginTPSL.js.map +7 -0
- package/dist/cjs/transactions/poolProxy.d.ts +104 -0
- package/dist/cjs/transactions/poolProxy.js +435 -0
- package/dist/cjs/transactions/poolProxy.js.map +7 -0
- package/dist/cjs/types/bcs.d.ts +5 -0
- package/dist/cjs/types/bcs.js +33 -0
- package/dist/cjs/types/bcs.js.map +7 -0
- package/dist/cjs/types/index.d.ts +218 -0
- package/dist/cjs/types/index.js +38 -0
- package/dist/cjs/types/index.js.map +7 -0
- package/dist/cjs/utils/config.d.ts +65 -0
- package/dist/cjs/utils/config.js +144 -0
- package/dist/cjs/utils/config.js.map +7 -0
- package/dist/cjs/utils/constants.d.ts +76 -0
- package/dist/cjs/utils/constants.js +382 -0
- package/dist/cjs/utils/constants.js.map +7 -0
- package/dist/cjs/utils/errors.d.ts +42 -0
- package/dist/cjs/utils/errors.js +70 -0
- package/dist/cjs/utils/errors.js.map +7 -0
- package/dist/cjs/utils/validation.d.ts +50 -0
- package/dist/cjs/utils/validation.js +67 -0
- package/dist/cjs/utils/validation.js.map +7 -0
- package/dist/esm/client.d.ts +861 -0
- package/dist/esm/client.js +1967 -0
- package/dist/esm/client.js.map +7 -0
- package/dist/esm/contracts/deepbook/account.d.ts +105 -0
- package/dist/esm/contracts/deepbook/account.js +133 -0
- package/dist/esm/contracts/deepbook/account.js.map +7 -0
- package/dist/esm/contracts/deepbook/balance_manager.d.ts +268 -0
- package/dist/esm/contracts/deepbook/balance_manager.js +331 -0
- package/dist/esm/contracts/deepbook/balance_manager.js.map +7 -0
- package/dist/esm/contracts/deepbook/balances.d.ts +10 -0
- package/dist/esm/contracts/deepbook/balances.js +15 -0
- package/dist/esm/contracts/deepbook/balances.js.map +7 -0
- package/dist/esm/contracts/deepbook/big_vector.d.ts +62 -0
- package/dist/esm/contracts/deepbook/big_vector.js +50 -0
- package/dist/esm/contracts/deepbook/big_vector.js.map +7 -0
- package/dist/esm/contracts/deepbook/book.d.ts +34 -0
- package/dist/esm/contracts/deepbook/book.js +20 -0
- package/dist/esm/contracts/deepbook/book.js.map +7 -0
- package/dist/esm/contracts/deepbook/constants.d.ts +176 -0
- package/dist/esm/contracts/deepbook/constants.js +318 -0
- package/dist/esm/contracts/deepbook/constants.js.map +7 -0
- package/dist/esm/contracts/deepbook/deep_price.d.ts +60 -0
- package/dist/esm/contracts/deepbook/deep_price.js +67 -0
- package/dist/esm/contracts/deepbook/deep_price.js.map +7 -0
- package/dist/esm/contracts/deepbook/deps/std/type_name.d.ts +14 -0
- package/dist/esm/contracts/deepbook/deps/std/type_name.js +22 -0
- package/dist/esm/contracts/deepbook/deps/std/type_name.js.map +7 -0
- package/dist/esm/contracts/deepbook/deps/sui/bag.d.ts +33 -0
- package/dist/esm/contracts/deepbook/deps/sui/bag.js +17 -0
- package/dist/esm/contracts/deepbook/deps/sui/bag.js.map +7 -0
- package/dist/esm/contracts/deepbook/deps/sui/balance.d.ts +9 -0
- package/dist/esm/contracts/deepbook/deps/sui/balance.js +13 -0
- package/dist/esm/contracts/deepbook/deps/sui/balance.js.map +7 -0
- package/dist/esm/contracts/deepbook/deps/sui/object.d.ts +5 -0
- package/dist/esm/contracts/deepbook/deps/sui/object.js +13 -0
- package/dist/esm/contracts/deepbook/deps/sui/object.js.map +7 -0
- package/dist/esm/contracts/deepbook/deps/sui/table.d.ts +28 -0
- package/dist/esm/contracts/deepbook/deps/sui/table.js +17 -0
- package/dist/esm/contracts/deepbook/deps/sui/table.js.map +7 -0
- package/dist/esm/contracts/deepbook/deps/sui/vec_map.d.ts +27 -0
- package/dist/esm/contracts/deepbook/deps/sui/vec_map.js +25 -0
- package/dist/esm/contracts/deepbook/deps/sui/vec_map.js.map +7 -0
- package/dist/esm/contracts/deepbook/deps/sui/vec_set.d.ts +15 -0
- package/dist/esm/contracts/deepbook/deps/sui/vec_set.js +15 -0
- package/dist/esm/contracts/deepbook/deps/sui/vec_set.js.map +7 -0
- package/dist/esm/contracts/deepbook/deps/sui/versioned.d.ts +7 -0
- package/dist/esm/contracts/deepbook/deps/sui/versioned.js +15 -0
- package/dist/esm/contracts/deepbook/deps/sui/versioned.js.map +7 -0
- package/dist/esm/contracts/deepbook/ewma.d.ts +17 -0
- package/dist/esm/contracts/deepbook/ewma.js +19 -0
- package/dist/esm/contracts/deepbook/ewma.js.map +7 -0
- package/dist/esm/contracts/deepbook/fill.d.ts +153 -0
- package/dist/esm/contracts/deepbook/fill.js +221 -0
- package/dist/esm/contracts/deepbook/fill.js.map +7 -0
- package/dist/esm/contracts/deepbook/governance.d.ts +63 -0
- package/dist/esm/contracts/deepbook/governance.js +49 -0
- package/dist/esm/contracts/deepbook/governance.js.map +7 -0
- package/dist/esm/contracts/deepbook/history.d.ts +60 -0
- package/dist/esm/contracts/deepbook/history.js +48 -0
- package/dist/esm/contracts/deepbook/history.js.map +7 -0
- package/dist/esm/contracts/deepbook/math.d.ts +94 -0
- package/dist/esm/contracts/deepbook/math.js +112 -0
- package/dist/esm/contracts/deepbook/math.js.map +7 -0
- package/dist/esm/contracts/deepbook/order.d.ts +135 -0
- package/dist/esm/contracts/deepbook/order.js +188 -0
- package/dist/esm/contracts/deepbook/order.js.map +7 -0
- package/dist/esm/contracts/deepbook/order_info.d.ts +296 -0
- package/dist/esm/contracts/deepbook/order_info.js +356 -0
- package/dist/esm/contracts/deepbook/order_info.js.map +7 -0
- package/dist/esm/contracts/deepbook/order_query.d.ts +85 -0
- package/dist/esm/contracts/deepbook/order_query.js +66 -0
- package/dist/esm/contracts/deepbook/order_query.js.map +7 -0
- package/dist/esm/contracts/deepbook/pool.d.ts +1218 -0
- package/dist/esm/contracts/deepbook/pool.js +1206 -0
- package/dist/esm/contracts/deepbook/pool.js.map +7 -0
- package/dist/esm/contracts/deepbook/registry.d.ts +134 -0
- package/dist/esm/contracts/deepbook/registry.js +152 -0
- package/dist/esm/contracts/deepbook/registry.js.map +7 -0
- package/dist/esm/contracts/deepbook/state.d.ts +117 -0
- package/dist/esm/contracts/deepbook/state.js +74 -0
- package/dist/esm/contracts/deepbook/state.js.map +7 -0
- package/dist/esm/contracts/deepbook/trade_params.d.ts +7 -0
- package/dist/esm/contracts/deepbook/trade_params.js +15 -0
- package/dist/esm/contracts/deepbook/trade_params.js.map +7 -0
- package/dist/esm/contracts/deepbook/vault.d.ts +30 -0
- package/dist/esm/contracts/deepbook/vault.js +35 -0
- package/dist/esm/contracts/deepbook/vault.js.map +7 -0
- package/dist/esm/contracts/utils/index.d.ts +25 -0
- package/dist/esm/contracts/utils/index.js +128 -0
- package/dist/esm/contracts/utils/index.js.map +7 -0
- package/dist/esm/index.d.ts +23 -0
- package/dist/esm/index.js +81 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/package.json +4 -0
- package/dist/esm/pyth/PriceServiceConnection.d.ts +26 -0
- package/dist/esm/pyth/PriceServiceConnection.js +38 -0
- package/dist/esm/pyth/PriceServiceConnection.js.map +7 -0
- package/dist/esm/pyth/pyth-helpers.d.ts +7 -0
- package/dist/esm/pyth/pyth-helpers.js +16 -0
- package/dist/esm/pyth/pyth-helpers.js.map +7 -0
- package/dist/esm/pyth/pyth.d.ts +65 -0
- package/dist/esm/pyth/pyth.js +249 -0
- package/dist/esm/pyth/pyth.js.map +7 -0
- package/dist/esm/transactions/balanceManager.d.ts +168 -0
- package/dist/esm/transactions/balanceManager.js +364 -0
- package/dist/esm/transactions/balanceManager.js.map +7 -0
- package/dist/esm/transactions/deepbook.d.ts +477 -0
- package/dist/esm/transactions/deepbook.js +1321 -0
- package/dist/esm/transactions/deepbook.js.map +7 -0
- package/dist/esm/transactions/deepbookAdmin.d.ts +105 -0
- package/dist/esm/transactions/deepbookAdmin.js +314 -0
- package/dist/esm/transactions/deepbookAdmin.js.map +7 -0
- package/dist/esm/transactions/flashLoans.d.ts +56 -0
- package/dist/esm/transactions/flashLoans.js +104 -0
- package/dist/esm/transactions/flashLoans.js.map +7 -0
- package/dist/esm/transactions/governance.d.ts +42 -0
- package/dist/esm/transactions/governance.js +115 -0
- package/dist/esm/transactions/governance.js.map +7 -0
- package/dist/esm/transactions/marginAdmin.d.ts +133 -0
- package/dist/esm/transactions/marginAdmin.js +373 -0
- package/dist/esm/transactions/marginAdmin.js.map +7 -0
- package/dist/esm/transactions/marginLiquidations.d.ts +61 -0
- package/dist/esm/transactions/marginLiquidations.js +153 -0
- package/dist/esm/transactions/marginLiquidations.js.map +7 -0
- package/dist/esm/transactions/marginMaintainer.d.ts +80 -0
- package/dist/esm/transactions/marginMaintainer.js +231 -0
- package/dist/esm/transactions/marginMaintainer.js.map +7 -0
- package/dist/esm/transactions/marginManager.d.ts +236 -0
- package/dist/esm/transactions/marginManager.js +668 -0
- package/dist/esm/transactions/marginManager.js.map +7 -0
- package/dist/esm/transactions/marginPool.d.ts +134 -0
- package/dist/esm/transactions/marginPool.js +310 -0
- package/dist/esm/transactions/marginPool.js.map +7 -0
- package/dist/esm/transactions/marginRegistry.d.ts +94 -0
- package/dist/esm/transactions/marginRegistry.js +201 -0
- package/dist/esm/transactions/marginRegistry.js.map +7 -0
- package/dist/esm/transactions/marginTPSL.d.ts +93 -0
- package/dist/esm/transactions/marginTPSL.js +266 -0
- package/dist/esm/transactions/marginTPSL.js.map +7 -0
- package/dist/esm/transactions/poolProxy.d.ts +104 -0
- package/dist/esm/transactions/poolProxy.js +415 -0
- package/dist/esm/transactions/poolProxy.js.map +7 -0
- package/dist/esm/types/bcs.d.ts +5 -0
- package/dist/esm/types/bcs.js +13 -0
- package/dist/esm/types/bcs.js.map +7 -0
- package/dist/esm/types/index.d.ts +218 -0
- package/dist/esm/types/index.js +18 -0
- package/dist/esm/types/index.js.map +7 -0
- package/dist/esm/utils/config.d.ts +65 -0
- package/dist/esm/utils/config.js +135 -0
- package/dist/esm/utils/config.js.map +7 -0
- package/dist/esm/utils/constants.d.ts +76 -0
- package/dist/esm/utils/constants.js +362 -0
- package/dist/esm/utils/constants.js.map +7 -0
- package/dist/esm/utils/errors.d.ts +42 -0
- package/dist/esm/utils/errors.js +50 -0
- package/dist/esm/utils/errors.js.map +7 -0
- package/dist/esm/utils/validation.d.ts +50 -0
- package/dist/esm/utils/validation.js +47 -0
- package/dist/esm/utils/validation.js.map +7 -0
- package/dist/tsconfig.esm.tsbuildinfo +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +63 -0
- package/src/client.ts +2451 -0
- package/src/contracts/deepbook/account.ts +199 -0
- package/src/contracts/deepbook/balance_manager.ts +532 -0
- package/src/contracts/deepbook/balances.ts +19 -0
- package/src/contracts/deepbook/big_vector.ts +74 -0
- package/src/contracts/deepbook/book.ts +24 -0
- package/src/contracts/deepbook/constants.ts +458 -0
- package/src/contracts/deepbook/deep_price.ts +84 -0
- package/src/contracts/deepbook/deps/std/type_name.ts +23 -0
- package/src/contracts/deepbook/deps/sui/bag.ts +41 -0
- package/src/contracts/deepbook/deps/sui/balance.ts +18 -0
- package/src/contracts/deepbook/deps/sui/object.ts +14 -0
- package/src/contracts/deepbook/deps/sui/table.ts +36 -0
- package/src/contracts/deepbook/deps/sui/vec_map.ts +33 -0
- package/src/contracts/deepbook/deps/sui/vec_set.ts +22 -0
- package/src/contracts/deepbook/deps/sui/versioned.ts +13 -0
- package/src/contracts/deepbook/ewma.ts +26 -0
- package/src/contracts/deepbook/fill.ts +336 -0
- package/src/contracts/deepbook/governance.ts +52 -0
- package/src/contracts/deepbook/history.ts +51 -0
- package/src/contracts/deepbook/math.ts +210 -0
- package/src/contracts/deepbook/order.ts +269 -0
- package/src/contracts/deepbook/order_info.ts +513 -0
- package/src/contracts/deepbook/order_query.ts +115 -0
- package/src/contracts/deepbook/pool.ts +2269 -0
- package/src/contracts/deepbook/registry.ts +242 -0
- package/src/contracts/deepbook/state.ts +74 -0
- package/src/contracts/deepbook/trade_params.ts +16 -0
- package/src/contracts/deepbook/vault.ts +37 -0
- package/src/contracts/utils/index.ts +184 -0
- package/src/index.ts +95 -0
- package/src/pyth/PriceServiceConnection.ts +48 -0
- package/src/pyth/pyth-helpers.ts +23 -0
- package/src/pyth/pyth.ts +305 -0
- package/src/transactions/balanceManager.ts +399 -0
- package/src/transactions/deepbook.ts +1519 -0
- package/src/transactions/deepbookAdmin.ts +332 -0
- package/src/transactions/flashLoans.ts +123 -0
- package/src/transactions/governance.ts +123 -0
- package/src/transactions/marginAdmin.ts +396 -0
- package/src/transactions/marginLiquidations.ts +175 -0
- package/src/transactions/marginMaintainer.ts +280 -0
- package/src/transactions/marginManager.ts +708 -0
- package/src/transactions/marginPool.ts +339 -0
- package/src/transactions/marginRegistry.ts +212 -0
- package/src/transactions/marginTPSL.ts +296 -0
- package/src/transactions/poolProxy.ts +438 -0
- package/src/types/bcs.ts +8 -0
- package/src/types/index.ts +255 -0
- package/src/utils/config.ts +177 -0
- package/src/utils/constants.ts +374 -0
- package/src/utils/errors.ts +67 -0
- package/src/utils/validation.ts +91 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/contracts/deepbook/pool.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n/** Public-facing interface for the package. */\n\nimport { MoveStruct, normalizeMoveArguments } from '../utils/index.js';\nimport type { RawTransactionArgument } from '../utils/index.js';\nimport { bcs } from '@haneullabs/haneul/bcs';\nimport type { BcsType } from '@haneullabs/haneul/bcs';\nimport type { Transaction } from '@haneullabs/haneul/transactions';\nimport * as object from './deps/sui/object.js';\nimport * as versioned from './deps/sui/versioned.js';\nimport * as vec_set from './deps/sui/vec_set.js';\nimport * as book from './book.js';\nimport * as state from './state.js';\nimport * as vault from './vault.js';\nimport * as deep_price from './deep_price.js';\nconst $moduleName = '@deepbook/core::pool';\nexport const Pool = new MoveStruct({\n\tname: `${$moduleName}::Pool`,\n\tfields: {\n\t\tid: object.UID,\n\t\tinner: versioned.Versioned,\n\t},\n});\nexport const PoolInner = new MoveStruct({\n\tname: `${$moduleName}::PoolInner`,\n\tfields: {\n\t\tallowed_versions: vec_set.VecSet(bcs.u64()),\n\t\tpool_id: bcs.Address,\n\t\tbook: book.Book,\n\t\tstate: state.State,\n\t\tvault: vault.Vault,\n\t\tdeep_price: deep_price.DeepPrice,\n\t\tregistered_pool: bcs.bool(),\n\t},\n});\nexport const PoolCreated = new MoveStruct({\n\tname: `${$moduleName}::PoolCreated`,\n\tfields: {\n\t\tpool_id: bcs.Address,\n\t\ttaker_fee: bcs.u64(),\n\t\tmaker_fee: bcs.u64(),\n\t\ttick_size: bcs.u64(),\n\t\tlot_size: bcs.u64(),\n\t\tmin_size: bcs.u64(),\n\t\twhitelisted_pool: bcs.bool(),\n\t\ttreasury_address: bcs.Address,\n\t},\n});\nexport const BookParamsUpdated = new MoveStruct({\n\tname: `${$moduleName}::BookParamsUpdated`,\n\tfields: {\n\t\tpool_id: bcs.Address,\n\t\ttick_size: bcs.u64(),\n\t\tlot_size: bcs.u64(),\n\t\tmin_size: bcs.u64(),\n\t\ttimestamp: bcs.u64(),\n\t},\n});\nexport const DeepBurned = new MoveStruct({\n\tname: `${$moduleName}::DeepBurned`,\n\tfields: {\n\t\tpool_id: bcs.Address,\n\t\tdeep_burned: bcs.u64(),\n\t},\n});\nexport const AppKey = new MoveStruct({\n\tname: `${$moduleName}::AppKey`,\n\tfields: {\n\t\tdummy_field: bcs.bool(),\n\t},\n});\nexport const MarginTradingKey = new MoveStruct({\n\tname: `${$moduleName}::MarginTradingKey`,\n\tfields: {\n\t\tdummy_field: bcs.bool(),\n\t},\n});\nexport interface CreatePermissionlessPoolArguments {\n\tregistry: RawTransactionArgument<string>;\n\ttickSize: RawTransactionArgument<number | bigint>;\n\tlotSize: RawTransactionArgument<number | bigint>;\n\tminSize: RawTransactionArgument<number | bigint>;\n\tcreationFee: RawTransactionArgument<string>;\n}\nexport interface CreatePermissionlessPoolOptions {\n\tpackage?: string;\n\targuments:\n\t\t| CreatePermissionlessPoolArguments\n\t\t| [\n\t\t\t\tregistry: RawTransactionArgument<string>,\n\t\t\t\ttickSize: RawTransactionArgument<number | bigint>,\n\t\t\t\tlotSize: RawTransactionArgument<number | bigint>,\n\t\t\t\tminSize: RawTransactionArgument<number | bigint>,\n\t\t\t\tcreationFee: RawTransactionArgument<string>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Create a new pool. The pool is registered in the registry. Checks are performed\n * to ensure the tick size, lot size, and min size are valid. The creation fee is\n * transferred to the treasury address. Returns the id of the pool created\n */\nexport function createPermissionlessPool(options: CreatePermissionlessPoolOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::registry::Registry`,\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t`0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin<${packageAddress}::deep::DEEP>`,\n\t] satisfies string[];\n\tconst parameterNames = ['registry', 'tickSize', 'lotSize', 'minSize', 'creationFee'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'create_permissionless_pool',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface PlaceLimitOrderArguments {\n\tself: RawTransactionArgument<string>;\n\tbalanceManager: RawTransactionArgument<string>;\n\ttradeProof: RawTransactionArgument<string>;\n\tclientOrderId: RawTransactionArgument<number | bigint>;\n\torderType: RawTransactionArgument<number>;\n\tselfMatchingOption: RawTransactionArgument<number>;\n\tprice: RawTransactionArgument<number | bigint>;\n\tquantity: RawTransactionArgument<number | bigint>;\n\tisBid: RawTransactionArgument<boolean>;\n\tpayWithDeep: RawTransactionArgument<boolean>;\n\texpireTimestamp: RawTransactionArgument<number | bigint>;\n}\nexport interface PlaceLimitOrderOptions {\n\tpackage?: string;\n\targuments:\n\t\t| PlaceLimitOrderArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbalanceManager: RawTransactionArgument<string>,\n\t\t\t\ttradeProof: RawTransactionArgument<string>,\n\t\t\t\tclientOrderId: RawTransactionArgument<number | bigint>,\n\t\t\t\torderType: RawTransactionArgument<number>,\n\t\t\t\tselfMatchingOption: RawTransactionArgument<number>,\n\t\t\t\tprice: RawTransactionArgument<number | bigint>,\n\t\t\t\tquantity: RawTransactionArgument<number | bigint>,\n\t\t\t\tisBid: RawTransactionArgument<boolean>,\n\t\t\t\tpayWithDeep: RawTransactionArgument<boolean>,\n\t\t\t\texpireTimestamp: RawTransactionArgument<number | bigint>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Place a limit order. Quantity is in base asset terms. For current version\n * pay_with_deep must be true, so the fee will be paid with DEEP tokens.\n */\nexport function placeLimitOrder(options: PlaceLimitOrderOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::balance_manager::BalanceManager`,\n\t\t`${packageAddress}::balance_manager::TradeProof`,\n\t\t'u64',\n\t\t'u8',\n\t\t'u8',\n\t\t'u64',\n\t\t'u64',\n\t\t'bool',\n\t\t'bool',\n\t\t'u64',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = [\n\t\t'self',\n\t\t'balanceManager',\n\t\t'tradeProof',\n\t\t'clientOrderId',\n\t\t'orderType',\n\t\t'selfMatchingOption',\n\t\t'price',\n\t\t'quantity',\n\t\t'isBid',\n\t\t'payWithDeep',\n\t\t'expireTimestamp',\n\t\t'clock',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'place_limit_order',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface PlaceMarketOrderArguments {\n\tself: RawTransactionArgument<string>;\n\tbalanceManager: RawTransactionArgument<string>;\n\ttradeProof: RawTransactionArgument<string>;\n\tclientOrderId: RawTransactionArgument<number | bigint>;\n\tselfMatchingOption: RawTransactionArgument<number>;\n\tquantity: RawTransactionArgument<number | bigint>;\n\tisBid: RawTransactionArgument<boolean>;\n\tpayWithDeep: RawTransactionArgument<boolean>;\n}\nexport interface PlaceMarketOrderOptions {\n\tpackage?: string;\n\targuments:\n\t\t| PlaceMarketOrderArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbalanceManager: RawTransactionArgument<string>,\n\t\t\t\ttradeProof: RawTransactionArgument<string>,\n\t\t\t\tclientOrderId: RawTransactionArgument<number | bigint>,\n\t\t\t\tselfMatchingOption: RawTransactionArgument<number>,\n\t\t\t\tquantity: RawTransactionArgument<number | bigint>,\n\t\t\t\tisBid: RawTransactionArgument<boolean>,\n\t\t\t\tpayWithDeep: RawTransactionArgument<boolean>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Place a market order. Quantity is in base asset terms. Calls place_limit_order\n * with a price of MAX_PRICE for bids and MIN_PRICE for asks. Any quantity not\n * filled is cancelled.\n */\nexport function placeMarketOrder(options: PlaceMarketOrderOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::balance_manager::BalanceManager`,\n\t\t`${packageAddress}::balance_manager::TradeProof`,\n\t\t'u64',\n\t\t'u8',\n\t\t'u64',\n\t\t'bool',\n\t\t'bool',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = [\n\t\t'self',\n\t\t'balanceManager',\n\t\t'tradeProof',\n\t\t'clientOrderId',\n\t\t'selfMatchingOption',\n\t\t'quantity',\n\t\t'isBid',\n\t\t'payWithDeep',\n\t\t'clock',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'place_market_order',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface SwapExactBaseForQuoteArguments {\n\tself: RawTransactionArgument<string>;\n\tbaseIn: RawTransactionArgument<string>;\n\tdeepIn: RawTransactionArgument<string>;\n\tminQuoteOut: RawTransactionArgument<number | bigint>;\n}\nexport interface SwapExactBaseForQuoteOptions {\n\tpackage?: string;\n\targuments:\n\t\t| SwapExactBaseForQuoteArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbaseIn: RawTransactionArgument<string>,\n\t\t\t\tdeepIn: RawTransactionArgument<string>,\n\t\t\t\tminQuoteOut: RawTransactionArgument<number | bigint>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Swap exact base quantity without needing a `balance_manager`. DEEP quantity can\n * be overestimated. Returns three `Coin` objects: base, quote, and deep. Some base\n * quantity may be left over, if the input quantity is not divisible by lot size.\n */\nexport function swapExactBaseForQuote(options: SwapExactBaseForQuoteOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin<${options.typeArguments[0]}>`,\n\t\t`0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin<${packageAddress}::deep::DEEP>`,\n\t\t'u64',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'baseIn', 'deepIn', 'minQuoteOut', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'swap_exact_base_for_quote',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface SwapExactQuoteForBaseArguments {\n\tself: RawTransactionArgument<string>;\n\tquoteIn: RawTransactionArgument<string>;\n\tdeepIn: RawTransactionArgument<string>;\n\tminBaseOut: RawTransactionArgument<number | bigint>;\n}\nexport interface SwapExactQuoteForBaseOptions {\n\tpackage?: string;\n\targuments:\n\t\t| SwapExactQuoteForBaseArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tquoteIn: RawTransactionArgument<string>,\n\t\t\t\tdeepIn: RawTransactionArgument<string>,\n\t\t\t\tminBaseOut: RawTransactionArgument<number | bigint>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Swap exact quote quantity without needing a `balance_manager`. DEEP quantity can\n * be overestimated. Returns three `Coin` objects: base, quote, and deep. Some\n * quote quantity may be left over if the input quantity is not divisible by lot\n * size.\n */\nexport function swapExactQuoteForBase(options: SwapExactQuoteForBaseOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin<${options.typeArguments[1]}>`,\n\t\t`0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin<${packageAddress}::deep::DEEP>`,\n\t\t'u64',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'quoteIn', 'deepIn', 'minBaseOut', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'swap_exact_quote_for_base',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface SwapExactQuantityArguments {\n\tself: RawTransactionArgument<string>;\n\tbaseIn: RawTransactionArgument<string>;\n\tquoteIn: RawTransactionArgument<string>;\n\tdeepIn: RawTransactionArgument<string>;\n\tminOut: RawTransactionArgument<number | bigint>;\n}\nexport interface SwapExactQuantityOptions {\n\tpackage?: string;\n\targuments:\n\t\t| SwapExactQuantityArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbaseIn: RawTransactionArgument<string>,\n\t\t\t\tquoteIn: RawTransactionArgument<string>,\n\t\t\t\tdeepIn: RawTransactionArgument<string>,\n\t\t\t\tminOut: RawTransactionArgument<number | bigint>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/** Swap exact quantity without needing a balance_manager. */\nexport function swapExactQuantity(options: SwapExactQuantityOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin<${options.typeArguments[0]}>`,\n\t\t`0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin<${options.typeArguments[1]}>`,\n\t\t`0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin<${packageAddress}::deep::DEEP>`,\n\t\t'u64',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'baseIn', 'quoteIn', 'deepIn', 'minOut', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'swap_exact_quantity',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface ModifyOrderArguments {\n\tself: RawTransactionArgument<string>;\n\tbalanceManager: RawTransactionArgument<string>;\n\ttradeProof: RawTransactionArgument<string>;\n\torderId: RawTransactionArgument<number | bigint>;\n\tnewQuantity: RawTransactionArgument<number | bigint>;\n}\nexport interface ModifyOrderOptions {\n\tpackage?: string;\n\targuments:\n\t\t| ModifyOrderArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbalanceManager: RawTransactionArgument<string>,\n\t\t\t\ttradeProof: RawTransactionArgument<string>,\n\t\t\t\torderId: RawTransactionArgument<number | bigint>,\n\t\t\t\tnewQuantity: RawTransactionArgument<number | bigint>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Modifies an order given order_id and new_quantity. New quantity must be less\n * than the original quantity and more than the filled quantity. Order must not\n * have already expired.\n */\nexport function modifyOrder(options: ModifyOrderOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::balance_manager::BalanceManager`,\n\t\t`${packageAddress}::balance_manager::TradeProof`,\n\t\t'u128',\n\t\t'u64',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = [\n\t\t'self',\n\t\t'balanceManager',\n\t\t'tradeProof',\n\t\t'orderId',\n\t\t'newQuantity',\n\t\t'clock',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'modify_order',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface CancelOrderArguments {\n\tself: RawTransactionArgument<string>;\n\tbalanceManager: RawTransactionArgument<string>;\n\ttradeProof: RawTransactionArgument<string>;\n\torderId: RawTransactionArgument<number | bigint>;\n}\nexport interface CancelOrderOptions {\n\tpackage?: string;\n\targuments:\n\t\t| CancelOrderArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbalanceManager: RawTransactionArgument<string>,\n\t\t\t\ttradeProof: RawTransactionArgument<string>,\n\t\t\t\torderId: RawTransactionArgument<number | bigint>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Cancel an order. The order must be owned by the balance_manager. The order is\n * removed from the book and the balance_manager's open orders. The\n * balance_manager's balance is updated with the order's remaining quantity. Order\n * canceled event is emitted.\n */\nexport function cancelOrder(options: CancelOrderOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::balance_manager::BalanceManager`,\n\t\t`${packageAddress}::balance_manager::TradeProof`,\n\t\t'u128',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'balanceManager', 'tradeProof', 'orderId', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'cancel_order',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface CancelOrdersArguments {\n\tself: RawTransactionArgument<string>;\n\tbalanceManager: RawTransactionArgument<string>;\n\ttradeProof: RawTransactionArgument<string>;\n\torderIds: RawTransactionArgument<number | bigint[]>;\n}\nexport interface CancelOrdersOptions {\n\tpackage?: string;\n\targuments:\n\t\t| CancelOrdersArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbalanceManager: RawTransactionArgument<string>,\n\t\t\t\ttradeProof: RawTransactionArgument<string>,\n\t\t\t\torderIds: RawTransactionArgument<number | bigint[]>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Cancel multiple orders within a vector. The orders must be owned by the\n * balance_manager. The orders are removed from the book and the balance_manager's\n * open orders. Order canceled events are emitted. If any order fails to cancel, no\n * orders will be cancelled.\n */\nexport function cancelOrders(options: CancelOrdersOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::balance_manager::BalanceManager`,\n\t\t`${packageAddress}::balance_manager::TradeProof`,\n\t\t'vector<u128>',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'balanceManager', 'tradeProof', 'orderIds', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'cancel_orders',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface CancelAllOrdersArguments {\n\tself: RawTransactionArgument<string>;\n\tbalanceManager: RawTransactionArgument<string>;\n\ttradeProof: RawTransactionArgument<string>;\n}\nexport interface CancelAllOrdersOptions {\n\tpackage?: string;\n\targuments:\n\t\t| CancelAllOrdersArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbalanceManager: RawTransactionArgument<string>,\n\t\t\t\ttradeProof: RawTransactionArgument<string>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/** Cancel all open orders placed by the balance manager in the pool. */\nexport function cancelAllOrders(options: CancelAllOrdersOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::balance_manager::BalanceManager`,\n\t\t`${packageAddress}::balance_manager::TradeProof`,\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'balanceManager', 'tradeProof', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'cancel_all_orders',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface WithdrawSettledAmountsArguments {\n\tself: RawTransactionArgument<string>;\n\tbalanceManager: RawTransactionArgument<string>;\n\ttradeProof: RawTransactionArgument<string>;\n}\nexport interface WithdrawSettledAmountsOptions {\n\tpackage?: string;\n\targuments:\n\t\t| WithdrawSettledAmountsArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbalanceManager: RawTransactionArgument<string>,\n\t\t\t\ttradeProof: RawTransactionArgument<string>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/** Withdraw settled amounts to the `balance_manager`. */\nexport function withdrawSettledAmounts(options: WithdrawSettledAmountsOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::balance_manager::BalanceManager`,\n\t\t`${packageAddress}::balance_manager::TradeProof`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'balanceManager', 'tradeProof'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'withdraw_settled_amounts',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface StakeArguments {\n\tself: RawTransactionArgument<string>;\n\tbalanceManager: RawTransactionArgument<string>;\n\ttradeProof: RawTransactionArgument<string>;\n\tamount: RawTransactionArgument<number | bigint>;\n}\nexport interface StakeOptions {\n\tpackage?: string;\n\targuments:\n\t\t| StakeArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbalanceManager: RawTransactionArgument<string>,\n\t\t\t\ttradeProof: RawTransactionArgument<string>,\n\t\t\t\tamount: RawTransactionArgument<number | bigint>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Stake DEEP tokens to the pool. The balance_manager must have enough DEEP tokens.\n * The balance_manager's data is updated with the staked amount.\n */\nexport function stake(options: StakeOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::balance_manager::BalanceManager`,\n\t\t`${packageAddress}::balance_manager::TradeProof`,\n\t\t'u64',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'balanceManager', 'tradeProof', 'amount'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'stake',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface UnstakeArguments {\n\tself: RawTransactionArgument<string>;\n\tbalanceManager: RawTransactionArgument<string>;\n\ttradeProof: RawTransactionArgument<string>;\n}\nexport interface UnstakeOptions {\n\tpackage?: string;\n\targuments:\n\t\t| UnstakeArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbalanceManager: RawTransactionArgument<string>,\n\t\t\t\ttradeProof: RawTransactionArgument<string>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Unstake DEEP tokens from the pool. The balance_manager must have enough staked\n * DEEP tokens. The balance_manager's data is updated with the unstaked amount.\n * Balance is transferred to the balance_manager immediately.\n */\nexport function unstake(options: UnstakeOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::balance_manager::BalanceManager`,\n\t\t`${packageAddress}::balance_manager::TradeProof`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'balanceManager', 'tradeProof'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'unstake',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface SubmitProposalArguments {\n\tself: RawTransactionArgument<string>;\n\tbalanceManager: RawTransactionArgument<string>;\n\ttradeProof: RawTransactionArgument<string>;\n\ttakerFee: RawTransactionArgument<number | bigint>;\n\tmakerFee: RawTransactionArgument<number | bigint>;\n\tstakeRequired: RawTransactionArgument<number | bigint>;\n}\nexport interface SubmitProposalOptions {\n\tpackage?: string;\n\targuments:\n\t\t| SubmitProposalArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbalanceManager: RawTransactionArgument<string>,\n\t\t\t\ttradeProof: RawTransactionArgument<string>,\n\t\t\t\ttakerFee: RawTransactionArgument<number | bigint>,\n\t\t\t\tmakerFee: RawTransactionArgument<number | bigint>,\n\t\t\t\tstakeRequired: RawTransactionArgument<number | bigint>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Submit a proposal to change the taker fee, maker fee, and stake required. The\n * balance_manager must have enough staked DEEP tokens to participate. Each\n * balance_manager can only submit one proposal per epoch. If the maximum proposal\n * is reached, the proposal with the lowest vote is removed. If the balance_manager\n * has less voting power than the lowest voted proposal, the proposal is not added.\n */\nexport function submitProposal(options: SubmitProposalOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::balance_manager::BalanceManager`,\n\t\t`${packageAddress}::balance_manager::TradeProof`,\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t] satisfies string[];\n\tconst parameterNames = [\n\t\t'self',\n\t\t'balanceManager',\n\t\t'tradeProof',\n\t\t'takerFee',\n\t\t'makerFee',\n\t\t'stakeRequired',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'submit_proposal',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface VoteArguments {\n\tself: RawTransactionArgument<string>;\n\tbalanceManager: RawTransactionArgument<string>;\n\ttradeProof: RawTransactionArgument<string>;\n\tproposalId: RawTransactionArgument<string>;\n}\nexport interface VoteOptions {\n\tpackage?: string;\n\targuments:\n\t\t| VoteArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbalanceManager: RawTransactionArgument<string>,\n\t\t\t\ttradeProof: RawTransactionArgument<string>,\n\t\t\t\tproposalId: RawTransactionArgument<string>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Vote on a proposal. The balance_manager must have enough staked DEEP tokens to\n * participate. Full voting power of the balance_manager is used. Voting for a new\n * proposal will remove the vote from the previous proposal.\n */\nexport function vote(options: VoteOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::balance_manager::BalanceManager`,\n\t\t`${packageAddress}::balance_manager::TradeProof`,\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::object::ID',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'balanceManager', 'tradeProof', 'proposalId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'vote',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface ClaimRebatesArguments {\n\tself: RawTransactionArgument<string>;\n\tbalanceManager: RawTransactionArgument<string>;\n\ttradeProof: RawTransactionArgument<string>;\n}\nexport interface ClaimRebatesOptions {\n\tpackage?: string;\n\targuments:\n\t\t| ClaimRebatesArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbalanceManager: RawTransactionArgument<string>,\n\t\t\t\ttradeProof: RawTransactionArgument<string>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Claim the rewards for the balance_manager. The balance_manager must have rewards\n * to claim. The balance_manager's data is updated with the claimed rewards.\n */\nexport function claimRebates(options: ClaimRebatesOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::balance_manager::BalanceManager`,\n\t\t`${packageAddress}::balance_manager::TradeProof`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'balanceManager', 'tradeProof'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'claim_rebates',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface BorrowFlashloanBaseArguments {\n\tself: RawTransactionArgument<string>;\n\tbaseAmount: RawTransactionArgument<number | bigint>;\n}\nexport interface BorrowFlashloanBaseOptions {\n\tpackage?: string;\n\targuments:\n\t\t| BorrowFlashloanBaseArguments\n\t\t| [self: RawTransactionArgument<string>, baseAmount: RawTransactionArgument<number | bigint>];\n\ttypeArguments: [string, string];\n}\n/**\n * Borrow base assets from the Pool. A hot potato is returned, forcing the borrower\n * to return the assets within the same transaction.\n */\nexport function borrowFlashloanBase(options: BorrowFlashloanBaseOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t'u64',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'baseAmount'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'borrow_flashloan_base',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface BorrowFlashloanQuoteArguments {\n\tself: RawTransactionArgument<string>;\n\tquoteAmount: RawTransactionArgument<number | bigint>;\n}\nexport interface BorrowFlashloanQuoteOptions {\n\tpackage?: string;\n\targuments:\n\t\t| BorrowFlashloanQuoteArguments\n\t\t| [self: RawTransactionArgument<string>, quoteAmount: RawTransactionArgument<number | bigint>];\n\ttypeArguments: [string, string];\n}\n/**\n * Borrow quote assets from the Pool. A hot potato is returned, forcing the\n * borrower to return the assets within the same transaction.\n */\nexport function borrowFlashloanQuote(options: BorrowFlashloanQuoteOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t'u64',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'quoteAmount'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'borrow_flashloan_quote',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface ReturnFlashloanBaseArguments {\n\tself: RawTransactionArgument<string>;\n\tcoin: RawTransactionArgument<string>;\n\tflashLoan: RawTransactionArgument<string>;\n}\nexport interface ReturnFlashloanBaseOptions {\n\tpackage?: string;\n\targuments:\n\t\t| ReturnFlashloanBaseArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tcoin: RawTransactionArgument<string>,\n\t\t\t\tflashLoan: RawTransactionArgument<string>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Return the flashloaned base assets to the Pool. FlashLoan object will only be\n * unwrapped if the assets are returned, otherwise the transaction will fail.\n */\nexport function returnFlashloanBase(options: ReturnFlashloanBaseOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin<${options.typeArguments[0]}>`,\n\t\t`${packageAddress}::vault::FlashLoan`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'coin', 'flashLoan'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'return_flashloan_base',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface ReturnFlashloanQuoteArguments {\n\tself: RawTransactionArgument<string>;\n\tcoin: RawTransactionArgument<string>;\n\tflashLoan: RawTransactionArgument<string>;\n}\nexport interface ReturnFlashloanQuoteOptions {\n\tpackage?: string;\n\targuments:\n\t\t| ReturnFlashloanQuoteArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tcoin: RawTransactionArgument<string>,\n\t\t\t\tflashLoan: RawTransactionArgument<string>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Return the flashloaned quote assets to the Pool. FlashLoan object will only be\n * unwrapped if the assets are returned, otherwise the transaction will fail.\n */\nexport function returnFlashloanQuote(options: ReturnFlashloanQuoteOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin<${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::vault::FlashLoan`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'coin', 'flashLoan'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'return_flashloan_quote',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface AddDeepPricePointArguments {\n\ttargetPool: RawTransactionArgument<string>;\n\treferencePool: RawTransactionArgument<string>;\n}\nexport interface AddDeepPricePointOptions {\n\tpackage?: string;\n\targuments:\n\t\t| AddDeepPricePointArguments\n\t\t| [targetPool: RawTransactionArgument<string>, referencePool: RawTransactionArgument<string>];\n\ttypeArguments: [string, string, string, string];\n}\n/**\n * Adds a price point along with a timestamp to the deep price. Allows for the\n * calculation of deep price per base asset.\n */\nexport function addDeepPricePoint(options: AddDeepPricePointOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[2]}, ${options.typeArguments[3]}>`,\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['targetPool', 'referencePool', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'add_deep_price_point',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface BurnDeepArguments {\n\tself: RawTransactionArgument<string>;\n\ttreasuryCap: RawTransactionArgument<string>;\n}\nexport interface BurnDeepOptions {\n\tpackage?: string;\n\targuments:\n\t\t| BurnDeepArguments\n\t\t| [self: RawTransactionArgument<string>, treasuryCap: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\n/** Burns DEEP tokens from the pool. Amount to burn is within history */\nexport function burnDeep(options: BurnDeepOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::deep::ProtectedTreasury`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'treasuryCap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'burn_deep',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface CreatePoolAdminArguments {\n\tregistry: RawTransactionArgument<string>;\n\ttickSize: RawTransactionArgument<number | bigint>;\n\tlotSize: RawTransactionArgument<number | bigint>;\n\tminSize: RawTransactionArgument<number | bigint>;\n\twhitelistedPool: RawTransactionArgument<boolean>;\n\tstablePool: RawTransactionArgument<boolean>;\n\tCap: RawTransactionArgument<string>;\n}\nexport interface CreatePoolAdminOptions {\n\tpackage?: string;\n\targuments:\n\t\t| CreatePoolAdminArguments\n\t\t| [\n\t\t\t\tregistry: RawTransactionArgument<string>,\n\t\t\t\ttickSize: RawTransactionArgument<number | bigint>,\n\t\t\t\tlotSize: RawTransactionArgument<number | bigint>,\n\t\t\t\tminSize: RawTransactionArgument<number | bigint>,\n\t\t\t\twhitelistedPool: RawTransactionArgument<boolean>,\n\t\t\t\tstablePool: RawTransactionArgument<boolean>,\n\t\t\t\tCap: RawTransactionArgument<string>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Create a new pool. The pool is registered in the registry. Checks are performed\n * to ensure the tick size, lot size, and min size are valid. Returns the id of the\n * pool created\n */\nexport function createPoolAdmin(options: CreatePoolAdminOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::registry::Registry`,\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'bool',\n\t\t'bool',\n\t\t`${packageAddress}::registry::DeepbookAdminCap`,\n\t] satisfies string[];\n\tconst parameterNames = [\n\t\t'registry',\n\t\t'tickSize',\n\t\t'lotSize',\n\t\t'minSize',\n\t\t'whitelistedPool',\n\t\t'stablePool',\n\t\t'Cap',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'create_pool_admin',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface UnregisterPoolAdminArguments {\n\tself: RawTransactionArgument<string>;\n\tregistry: RawTransactionArgument<string>;\n\tCap: RawTransactionArgument<string>;\n}\nexport interface UnregisterPoolAdminOptions {\n\tpackage?: string;\n\targuments:\n\t\t| UnregisterPoolAdminArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tregistry: RawTransactionArgument<string>,\n\t\t\t\tCap: RawTransactionArgument<string>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/** Unregister a pool in case it needs to be redeployed. */\nexport function unregisterPoolAdmin(options: UnregisterPoolAdminOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::registry::Registry`,\n\t\t`${packageAddress}::registry::DeepbookAdminCap`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'registry', 'Cap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'unregister_pool_admin',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface UpdateAllowedVersionsArguments {\n\tself: RawTransactionArgument<string>;\n\tregistry: RawTransactionArgument<string>;\n\tCap: RawTransactionArgument<string>;\n}\nexport interface UpdateAllowedVersionsOptions {\n\tpackage?: string;\n\targuments:\n\t\t| UpdateAllowedVersionsArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tregistry: RawTransactionArgument<string>,\n\t\t\t\tCap: RawTransactionArgument<string>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Takes the registry and updates the allowed version within pool Only admin can\n * update the allowed versions This function does not have version restrictions\n */\nexport function updateAllowedVersions(options: UpdateAllowedVersionsOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::registry::Registry`,\n\t\t`${packageAddress}::registry::DeepbookAdminCap`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'registry', 'Cap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'update_allowed_versions',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface UpdatePoolAllowedVersionsArguments {\n\tself: RawTransactionArgument<string>;\n\tregistry: RawTransactionArgument<string>;\n}\nexport interface UpdatePoolAllowedVersionsOptions {\n\tpackage?: string;\n\targuments:\n\t\t| UpdatePoolAllowedVersionsArguments\n\t\t| [self: RawTransactionArgument<string>, registry: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\n/**\n * Takes the registry and updates the allowed version within pool Permissionless\n * equivalent of `update_allowed_versions` This function does not have version\n * restrictions\n */\nexport function updatePoolAllowedVersions(options: UpdatePoolAllowedVersionsOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::registry::Registry`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'registry'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'update_pool_allowed_versions',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface AdjustTickSizeAdminArguments {\n\tself: RawTransactionArgument<string>;\n\tnewTickSize: RawTransactionArgument<number | bigint>;\n\tCap: RawTransactionArgument<string>;\n}\nexport interface AdjustTickSizeAdminOptions {\n\tpackage?: string;\n\targuments:\n\t\t| AdjustTickSizeAdminArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tnewTickSize: RawTransactionArgument<number | bigint>,\n\t\t\t\tCap: RawTransactionArgument<string>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/** Adjust the tick size of the pool. Only admin can adjust the tick size. */\nexport function adjustTickSizeAdmin(options: AdjustTickSizeAdminOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t'u64',\n\t\t`${packageAddress}::registry::DeepbookAdminCap`,\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'newTickSize', 'Cap', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'adjust_tick_size_admin',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface AdjustMinLotSizeAdminArguments {\n\tself: RawTransactionArgument<string>;\n\tnewLotSize: RawTransactionArgument<number | bigint>;\n\tnewMinSize: RawTransactionArgument<number | bigint>;\n\tCap: RawTransactionArgument<string>;\n}\nexport interface AdjustMinLotSizeAdminOptions {\n\tpackage?: string;\n\targuments:\n\t\t| AdjustMinLotSizeAdminArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tnewLotSize: RawTransactionArgument<number | bigint>,\n\t\t\t\tnewMinSize: RawTransactionArgument<number | bigint>,\n\t\t\t\tCap: RawTransactionArgument<string>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Adjust and lot size and min size of the pool. New lot size must be smaller than\n * current lot size. Only admin can adjust the min size and lot size.\n */\nexport function adjustMinLotSizeAdmin(options: AdjustMinLotSizeAdminOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t'u64',\n\t\t'u64',\n\t\t`${packageAddress}::registry::DeepbookAdminCap`,\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'newLotSize', 'newMinSize', 'Cap', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'adjust_min_lot_size_admin',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface AuthorizeAppArguments {\n\tself: RawTransactionArgument<string>;\n\tCap: RawTransactionArgument<string>;\n}\nexport interface AuthorizeAppOptions {\n\tpackage?: string;\n\targuments:\n\t\t| AuthorizeAppArguments\n\t\t| [self: RawTransactionArgument<string>, Cap: RawTransactionArgument<string>];\n\ttypeArguments: [string, string, string];\n}\n/** Authorize an application to access protected features of Deepbook core. */\nexport function authorizeApp(options: AuthorizeAppOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[1]}, ${options.typeArguments[2]}>`,\n\t\t`${packageAddress}::registry::DeepbookAdminCap`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'Cap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'authorize_app',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface DeauthorizeAppArguments {\n\tself: RawTransactionArgument<string>;\n\tCap: RawTransactionArgument<string>;\n}\nexport interface DeauthorizeAppOptions {\n\tpackage?: string;\n\targuments:\n\t\t| DeauthorizeAppArguments\n\t\t| [self: RawTransactionArgument<string>, Cap: RawTransactionArgument<string>];\n\ttypeArguments: [string, string, string];\n}\n/** Deauthorize an application by removing its authorization key. */\nexport function deauthorizeApp(options: DeauthorizeAppOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[1]}, ${options.typeArguments[2]}>`,\n\t\t`${packageAddress}::registry::DeepbookAdminCap`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'Cap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'deauthorize_app',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface EnableEwmaStateArguments {\n\tself: RawTransactionArgument<string>;\n\tCap: RawTransactionArgument<string>;\n\tenable: RawTransactionArgument<boolean>;\n}\nexport interface EnableEwmaStateOptions {\n\tpackage?: string;\n\targuments:\n\t\t| EnableEwmaStateArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tCap: RawTransactionArgument<string>,\n\t\t\t\tenable: RawTransactionArgument<boolean>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Enable the EWMA state for the pool. This allows the pool to use the EWMA state\n * for volatility calculations and additional taker fees.\n */\nexport function enableEwmaState(options: EnableEwmaStateOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::registry::DeepbookAdminCap`,\n\t\t'bool',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'Cap', 'enable', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'enable_ewma_state',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface SetEwmaParamsArguments {\n\tself: RawTransactionArgument<string>;\n\tCap: RawTransactionArgument<string>;\n\talpha: RawTransactionArgument<number | bigint>;\n\tzScoreThreshold: RawTransactionArgument<number | bigint>;\n\tadditionalTakerFee: RawTransactionArgument<number | bigint>;\n}\nexport interface SetEwmaParamsOptions {\n\tpackage?: string;\n\targuments:\n\t\t| SetEwmaParamsArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tCap: RawTransactionArgument<string>,\n\t\t\t\talpha: RawTransactionArgument<number | bigint>,\n\t\t\t\tzScoreThreshold: RawTransactionArgument<number | bigint>,\n\t\t\t\tadditionalTakerFee: RawTransactionArgument<number | bigint>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/** Set the EWMA parameters for the pool. Only admin can set the parameters. */\nexport function setEwmaParams(options: SetEwmaParamsOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::registry::DeepbookAdminCap`,\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'Cap', 'alpha', 'zScoreThreshold', 'additionalTakerFee', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'set_ewma_params',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface UpdateMarginStatusArguments<A extends BcsType<any>> {\n\tself: RawTransactionArgument<string>;\n\t_: RawTransactionArgument<A>;\n\tenable: RawTransactionArgument<boolean>;\n}\nexport interface UpdateMarginStatusOptions<A extends BcsType<any>> {\n\tpackage?: string;\n\targuments:\n\t\t| UpdateMarginStatusArguments<A>\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\t_: RawTransactionArgument<A>,\n\t\t\t\tenable: RawTransactionArgument<boolean>,\n\t\t ];\n\ttypeArguments: [string, string, string];\n}\nexport function updateMarginStatus<A extends BcsType<any>>(options: UpdateMarginStatusOptions<A>) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[1]}, ${options.typeArguments[2]}>`,\n\t\t`${options.typeArguments[0]}`,\n\t\t'bool',\n\t] satisfies string[];\n\tconst parameterNames = ['self', '_', 'enable'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'update_margin_status',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface WhitelistedArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface WhitelistedOptions {\n\tpackage?: string;\n\targuments: WhitelistedArguments | [self: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\n/** Accessor to check if the pool is whitelisted. */\nexport function whitelisted(options: WhitelistedOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t] satisfies string[];\n\tconst parameterNames = ['self'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'whitelisted',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface StablePoolArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface StablePoolOptions {\n\tpackage?: string;\n\targuments: StablePoolArguments | [self: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\n/** Accessor to check if the pool is a stablecoin pool. */\nexport function stablePool(options: StablePoolOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t] satisfies string[];\n\tconst parameterNames = ['self'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'stable_pool',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface RegisteredPoolArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface RegisteredPoolOptions {\n\tpackage?: string;\n\targuments: RegisteredPoolArguments | [self: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\nexport function registeredPool(options: RegisteredPoolOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t] satisfies string[];\n\tconst parameterNames = ['self'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'registered_pool',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface GetQuoteQuantityOutArguments {\n\tself: RawTransactionArgument<string>;\n\tbaseQuantity: RawTransactionArgument<number | bigint>;\n}\nexport interface GetQuoteQuantityOutOptions {\n\tpackage?: string;\n\targuments:\n\t\t| GetQuoteQuantityOutArguments\n\t\t| [self: RawTransactionArgument<string>, baseQuantity: RawTransactionArgument<number | bigint>];\n\ttypeArguments: [string, string];\n}\n/**\n * Dry run to determine the quote quantity out for a given base quantity. Uses DEEP\n * token as fee.\n */\nexport function getQuoteQuantityOut(options: GetQuoteQuantityOutOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t'u64',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'baseQuantity', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'get_quote_quantity_out',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface GetBaseQuantityOutArguments {\n\tself: RawTransactionArgument<string>;\n\tquoteQuantity: RawTransactionArgument<number | bigint>;\n}\nexport interface GetBaseQuantityOutOptions {\n\tpackage?: string;\n\targuments:\n\t\t| GetBaseQuantityOutArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tquoteQuantity: RawTransactionArgument<number | bigint>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Dry run to determine the base quantity out for a given quote quantity. Uses DEEP\n * token as fee.\n */\nexport function getBaseQuantityOut(options: GetBaseQuantityOutOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t'u64',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'quoteQuantity', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'get_base_quantity_out',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface GetQuoteQuantityOutInputFeeArguments {\n\tself: RawTransactionArgument<string>;\n\tbaseQuantity: RawTransactionArgument<number | bigint>;\n}\nexport interface GetQuoteQuantityOutInputFeeOptions {\n\tpackage?: string;\n\targuments:\n\t\t| GetQuoteQuantityOutInputFeeArguments\n\t\t| [self: RawTransactionArgument<string>, baseQuantity: RawTransactionArgument<number | bigint>];\n\ttypeArguments: [string, string];\n}\n/**\n * Dry run to determine the quote quantity out for a given base quantity. Uses\n * input token as fee.\n */\nexport function getQuoteQuantityOutInputFee(options: GetQuoteQuantityOutInputFeeOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t'u64',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'baseQuantity', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'get_quote_quantity_out_input_fee',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface GetBaseQuantityOutInputFeeArguments {\n\tself: RawTransactionArgument<string>;\n\tquoteQuantity: RawTransactionArgument<number | bigint>;\n}\nexport interface GetBaseQuantityOutInputFeeOptions {\n\tpackage?: string;\n\targuments:\n\t\t| GetBaseQuantityOutInputFeeArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tquoteQuantity: RawTransactionArgument<number | bigint>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Dry run to determine the base quantity out for a given quote quantity. Uses\n * input token as fee.\n */\nexport function getBaseQuantityOutInputFee(options: GetBaseQuantityOutInputFeeOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t'u64',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'quoteQuantity', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'get_base_quantity_out_input_fee',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface GetQuantityOutArguments {\n\tself: RawTransactionArgument<string>;\n\tbaseQuantity: RawTransactionArgument<number | bigint>;\n\tquoteQuantity: RawTransactionArgument<number | bigint>;\n}\nexport interface GetQuantityOutOptions {\n\tpackage?: string;\n\targuments:\n\t\t| GetQuantityOutArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbaseQuantity: RawTransactionArgument<number | bigint>,\n\t\t\t\tquoteQuantity: RawTransactionArgument<number | bigint>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Dry run to determine the quantity out for a given base or quote quantity. Only\n * one out of base or quote quantity should be non-zero. Returns the\n * (base_quantity_out, quote_quantity_out, deep_quantity_required) Uses DEEP token\n * as fee.\n */\nexport function getQuantityOut(options: GetQuantityOutOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t'u64',\n\t\t'u64',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'baseQuantity', 'quoteQuantity', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'get_quantity_out',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface GetQuantityOutInputFeeArguments {\n\tself: RawTransactionArgument<string>;\n\tbaseQuantity: RawTransactionArgument<number | bigint>;\n\tquoteQuantity: RawTransactionArgument<number | bigint>;\n}\nexport interface GetQuantityOutInputFeeOptions {\n\tpackage?: string;\n\targuments:\n\t\t| GetQuantityOutInputFeeArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbaseQuantity: RawTransactionArgument<number | bigint>,\n\t\t\t\tquoteQuantity: RawTransactionArgument<number | bigint>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Dry run to determine the quantity out for a given base or quote quantity. Only\n * one out of base or quote quantity should be non-zero. Returns the\n * (base_quantity_out, quote_quantity_out, deep_quantity_required) Uses input token\n * as fee.\n */\nexport function getQuantityOutInputFee(options: GetQuantityOutInputFeeOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t'u64',\n\t\t'u64',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'baseQuantity', 'quoteQuantity', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'get_quantity_out_input_fee',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface MidPriceArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface MidPriceOptions {\n\tpackage?: string;\n\targuments: MidPriceArguments | [self: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\n/** Returns the mid price of the pool. */\nexport function midPrice(options: MidPriceOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'mid_price',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface AccountOpenOrdersArguments {\n\tself: RawTransactionArgument<string>;\n\tbalanceManager: RawTransactionArgument<string>;\n}\nexport interface AccountOpenOrdersOptions {\n\tpackage?: string;\n\targuments:\n\t\t| AccountOpenOrdersArguments\n\t\t| [self: RawTransactionArgument<string>, balanceManager: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\n/** Returns the order_id for all open order for the balance_manager in the pool. */\nexport function accountOpenOrders(options: AccountOpenOrdersOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::balance_manager::BalanceManager`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'balanceManager'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'account_open_orders',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface GetLevel2RangeArguments {\n\tself: RawTransactionArgument<string>;\n\tpriceLow: RawTransactionArgument<number | bigint>;\n\tpriceHigh: RawTransactionArgument<number | bigint>;\n\tisBid: RawTransactionArgument<boolean>;\n}\nexport interface GetLevel2RangeOptions {\n\tpackage?: string;\n\targuments:\n\t\t| GetLevel2RangeArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tpriceLow: RawTransactionArgument<number | bigint>,\n\t\t\t\tpriceHigh: RawTransactionArgument<number | bigint>,\n\t\t\t\tisBid: RawTransactionArgument<boolean>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Returns the (price_vec, quantity_vec) for the level2 order book. The price_low\n * and price_high are inclusive, all orders within the range are returned. is_bid\n * is true for bids and false for asks.\n */\nexport function getLevel2Range(options: GetLevel2RangeOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t'u64',\n\t\t'u64',\n\t\t'bool',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'priceLow', 'priceHigh', 'isBid', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'get_level2_range',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface GetLevel2TicksFromMidArguments {\n\tself: RawTransactionArgument<string>;\n\tticks: RawTransactionArgument<number | bigint>;\n}\nexport interface GetLevel2TicksFromMidOptions {\n\tpackage?: string;\n\targuments:\n\t\t| GetLevel2TicksFromMidArguments\n\t\t| [self: RawTransactionArgument<string>, ticks: RawTransactionArgument<number | bigint>];\n\ttypeArguments: [string, string];\n}\n/**\n * Returns the (price_vec, quantity_vec) for the level2 order book. Ticks are the\n * maximum number of ticks to return starting from best bid and best ask.\n * (bid_price, bid_quantity, ask_price, ask_quantity) are returned as 4 vectors.\n * The price vectors are sorted in descending order for bids and ascending order\n * for asks.\n */\nexport function getLevel2TicksFromMid(options: GetLevel2TicksFromMidOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t'u64',\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'ticks', 'clock'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'get_level2_ticks_from_mid',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface VaultBalancesArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface VaultBalancesOptions {\n\tpackage?: string;\n\targuments: VaultBalancesArguments | [self: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\n/** Get all balances held in this pool. */\nexport function vaultBalances(options: VaultBalancesOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t] satisfies string[];\n\tconst parameterNames = ['self'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'vault_balances',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface GetPoolIdByAssetArguments {\n\tregistry: RawTransactionArgument<string>;\n}\nexport interface GetPoolIdByAssetOptions {\n\tpackage?: string;\n\targuments: GetPoolIdByAssetArguments | [registry: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\n/** Get the ID of the pool given the asset types. */\nexport function getPoolIdByAsset(options: GetPoolIdByAssetOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [`${packageAddress}::registry::Registry`] satisfies string[];\n\tconst parameterNames = ['registry'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'get_pool_id_by_asset',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface GetOrderArguments {\n\tself: RawTransactionArgument<string>;\n\torderId: RawTransactionArgument<number | bigint>;\n}\nexport interface GetOrderOptions {\n\tpackage?: string;\n\targuments:\n\t\t| GetOrderArguments\n\t\t| [self: RawTransactionArgument<string>, orderId: RawTransactionArgument<number | bigint>];\n\ttypeArguments: [string, string];\n}\n/** Get the Order struct */\nexport function getOrder(options: GetOrderOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t'u128',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'orderId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'get_order',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface GetOrdersArguments {\n\tself: RawTransactionArgument<string>;\n\torderIds: RawTransactionArgument<number | bigint[]>;\n}\nexport interface GetOrdersOptions {\n\tpackage?: string;\n\targuments:\n\t\t| GetOrdersArguments\n\t\t| [self: RawTransactionArgument<string>, orderIds: RawTransactionArgument<number | bigint[]>];\n\ttypeArguments: [string, string];\n}\n/** Get multiple orders given a vector of order_ids. */\nexport function getOrders(options: GetOrdersOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t'vector<u128>',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'orderIds'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'get_orders',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface GetAccountOrderDetailsArguments {\n\tself: RawTransactionArgument<string>;\n\tbalanceManager: RawTransactionArgument<string>;\n}\nexport interface GetAccountOrderDetailsOptions {\n\tpackage?: string;\n\targuments:\n\t\t| GetAccountOrderDetailsArguments\n\t\t| [self: RawTransactionArgument<string>, balanceManager: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\n/** Return a copy of all orders that are in the book for this account. */\nexport function getAccountOrderDetails(options: GetAccountOrderDetailsOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::balance_manager::BalanceManager`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'balanceManager'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'get_account_order_details',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface GetOrderDeepPriceArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface GetOrderDeepPriceOptions {\n\tpackage?: string;\n\targuments: GetOrderDeepPriceArguments | [self: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\n/** Return the DEEP price for the pool. */\nexport function getOrderDeepPrice(options: GetOrderDeepPriceOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t] satisfies string[];\n\tconst parameterNames = ['self'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'get_order_deep_price',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface GetOrderDeepRequiredArguments {\n\tself: RawTransactionArgument<string>;\n\tbaseQuantity: RawTransactionArgument<number | bigint>;\n\tprice: RawTransactionArgument<number | bigint>;\n}\nexport interface GetOrderDeepRequiredOptions {\n\tpackage?: string;\n\targuments:\n\t\t| GetOrderDeepRequiredArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tbaseQuantity: RawTransactionArgument<number | bigint>,\n\t\t\t\tprice: RawTransactionArgument<number | bigint>,\n\t\t ];\n\ttypeArguments: [string, string];\n}\n/**\n * Returns the deep required for an order if it's taker or maker given quantity and\n * price Does not account for discounted taker fees Returns (deep_required_taker,\n * deep_required_maker)\n */\nexport function getOrderDeepRequired(options: GetOrderDeepRequiredOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t'u64',\n\t\t'u64',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'baseQuantity', 'price'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'get_order_deep_required',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface LockedBalanceArguments {\n\tself: RawTransactionArgument<string>;\n\tbalanceManager: RawTransactionArgument<string>;\n}\nexport interface LockedBalanceOptions {\n\tpackage?: string;\n\targuments:\n\t\t| LockedBalanceArguments\n\t\t| [self: RawTransactionArgument<string>, balanceManager: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\n/**\n * Returns the locked balance for the balance_manager in the pool Returns\n * (base_quantity, quote_quantity, deep_quantity)\n */\nexport function lockedBalance(options: LockedBalanceOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::balance_manager::BalanceManager`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'balanceManager'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'locked_balance',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface PoolTradeParamsArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface PoolTradeParamsOptions {\n\tpackage?: string;\n\targuments: PoolTradeParamsArguments | [self: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\n/** Returns the trade params for the pool. */\nexport function poolTradeParams(options: PoolTradeParamsOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t] satisfies string[];\n\tconst parameterNames = ['self'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'pool_trade_params',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface PoolTradeParamsNextArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface PoolTradeParamsNextOptions {\n\tpackage?: string;\n\targuments: PoolTradeParamsNextArguments | [self: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\n/** Returns the currently leading trade params for the next epoch for the pool */\nexport function poolTradeParamsNext(options: PoolTradeParamsNextOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t] satisfies string[];\n\tconst parameterNames = ['self'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'pool_trade_params_next',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface PoolBookParamsArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface PoolBookParamsOptions {\n\tpackage?: string;\n\targuments: PoolBookParamsArguments | [self: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\n/** Returns the tick size, lot size, and min size for the pool. */\nexport function poolBookParams(options: PoolBookParamsOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t] satisfies string[];\n\tconst parameterNames = ['self'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'pool_book_params',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface AccountArguments {\n\tself: RawTransactionArgument<string>;\n\tbalanceManager: RawTransactionArgument<string>;\n}\nexport interface AccountOptions {\n\tpackage?: string;\n\targuments:\n\t\t| AccountArguments\n\t\t| [self: RawTransactionArgument<string>, balanceManager: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\nexport function account(options: AccountOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t\t`${packageAddress}::balance_manager::BalanceManager`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'balanceManager'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'account',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface QuorumArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface QuorumOptions {\n\tpackage?: string;\n\targuments: QuorumArguments | [self: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\n/** Returns the quorum needed to pass proposal in the current epoch */\nexport function quorum(options: QuorumOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t] satisfies string[];\n\tconst parameterNames = ['self'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'quorum',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface IdArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface IdOptions {\n\tpackage?: string;\n\targuments: IdArguments | [self: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\nexport function id(options: IdOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t] satisfies string[];\n\tconst parameterNames = ['self'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'id',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface MarginTradingEnabledArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface MarginTradingEnabledOptions {\n\tpackage?: string;\n\targuments: MarginTradingEnabledArguments | [self: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\nexport function marginTradingEnabled(options: MarginTradingEnabledOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[0]}, ${options.typeArguments[1]}>`,\n\t] satisfies string[];\n\tconst parameterNames = ['self'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'margin_trading_enabled',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface IsAppAuthorizedArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface IsAppAuthorizedOptions {\n\tpackage?: string;\n\targuments: IsAppAuthorizedArguments | [self: RawTransactionArgument<string>];\n\ttypeArguments: [string, string, string];\n}\n/**\n * Check if an application is authorized to access protected features of DeepBook\n * core.\n */\nexport function isAppAuthorized(options: IsAppAuthorizedOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[1]}, ${options.typeArguments[2]}>`,\n\t] satisfies string[];\n\tconst parameterNames = ['self'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'is_app_authorized',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface AssertAppIsAuthorizedArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface AssertAppIsAuthorizedOptions {\n\tpackage?: string;\n\targuments: AssertAppIsAuthorizedArguments | [self: RawTransactionArgument<string>];\n\ttypeArguments: [string, string, string];\n}\n/**\n * Assert that an application is authorized to access protected features of\n * DeepBook core. Aborts with `EAppNotAuthorized` if not.\n */\nexport function assertAppIsAuthorized(options: AssertAppIsAuthorizedOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::pool::Pool<${options.typeArguments[1]}, ${options.typeArguments[2]}>`,\n\t] satisfies string[];\n\tconst parameterNames = ['self'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'pool',\n\t\t\tfunction: 'assert_app_is_authorized',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\n"],
|
|
5
|
+
"mappings": "AAKA,SAAS,YAAY,8BAA8B;AAEnD,SAAS,WAAW;AAGpB,YAAY,YAAY;AACxB,YAAY,eAAe;AAC3B,YAAY,aAAa;AACzB,YAAY,UAAU;AACtB,YAAY,WAAW;A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M,iBAAiB,QAAQ,WAAW;AAC1C,QAAM,iBAAiB;AAAA,IACtB,GAAG,cAAc,gBAAgB,QAAQ,cAAc,CAAC,CAAC,KAAK,QAAQ,cAAc,CAAC,CAAC;AAAA,EACvF;AACA,QAAM,iBAAiB,CAAC,MAAM;AAC9B,SAAO,CAAC,OACP,GAAG,SAAS;AAAA,IACX,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,WAAW,uBAAuB,QAAQ,WAAW,gBAAgB,cAAc;AAAA,IACnF,eAAe,QAAQ;AAAA,EACxB,CAAC;AACH;AAaO,SAAS,sBAAsB,SAAuC;AAC5E,QAAM,iBAAiB,QAAQ,WAAW;AAC1C,QAAM,iBAAiB;AAAA,IACtB,GAAG,cAAc,gBAAgB,QAAQ,cAAc,CAAC,CAAC,KAAK,QAAQ,cAAc,CAAC,CAAC;AAAA,EACvF;AACA,QAAM,iBAAiB,CAAC,MAAM;AAC9B,SAAO,CAAC,OACP,GAAG,SAAS;AAAA,IACX,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,WAAW,uBAAuB,QAAQ,WAAW,gBAAgB,cAAc;AAAA,IACnF,eAAe,QAAQ;AAAA,EACxB,CAAC;AACH;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/** Registry holds all created pools. */
|
|
2
|
+
import { MoveStruct } from '../utils/index.js';
|
|
3
|
+
import type { RawTransactionArgument } from '../utils/index.js';
|
|
4
|
+
import type { Transaction } from '@haneullabs/haneul/transactions';
|
|
5
|
+
export declare const REGISTRY: MoveStruct<{
|
|
6
|
+
dummy_field: import("@haneullabs/haneul/bcs").BcsType<boolean, boolean, "bool">;
|
|
7
|
+
}, "@deepbook/core::registry::REGISTRY">;
|
|
8
|
+
export declare const DeepbookAdminCap: MoveStruct<{
|
|
9
|
+
id: MoveStruct<{
|
|
10
|
+
id: import("@haneullabs/haneul/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
11
|
+
}, "0x2::object::UID">;
|
|
12
|
+
}, "@deepbook/core::registry::DeepbookAdminCap">;
|
|
13
|
+
export declare const Registry: MoveStruct<{
|
|
14
|
+
id: MoveStruct<{
|
|
15
|
+
id: import("@haneullabs/haneul/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
16
|
+
}, "0x2::object::UID">;
|
|
17
|
+
inner: MoveStruct<{
|
|
18
|
+
id: MoveStruct<{
|
|
19
|
+
id: import("@haneullabs/haneul/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
20
|
+
}, "0x2::object::UID">;
|
|
21
|
+
version: import("@haneullabs/haneul/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
22
|
+
}, "0x2::versioned::Versioned">;
|
|
23
|
+
}, "@deepbook/core::registry::Registry">;
|
|
24
|
+
export declare const RegistryInner: MoveStruct<{
|
|
25
|
+
allowed_versions: MoveStruct<{
|
|
26
|
+
contents: import("@haneullabs/haneul/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
27
|
+
length: number;
|
|
28
|
+
}, string>;
|
|
29
|
+
}, "0x2::vec_set::VecSet<u64>">;
|
|
30
|
+
pools: MoveStruct<{
|
|
31
|
+
id: MoveStruct<{
|
|
32
|
+
id: import("@haneullabs/haneul/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
33
|
+
}, "0x2::object::UID">;
|
|
34
|
+
size: import("@haneullabs/haneul/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
35
|
+
}, "0x2::bag::Bag">;
|
|
36
|
+
treasury_address: import("@haneullabs/haneul/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
37
|
+
}, "@deepbook/core::registry::RegistryInner">;
|
|
38
|
+
export declare const PoolKey: MoveStruct<{
|
|
39
|
+
base: MoveStruct<{
|
|
40
|
+
name: import("@haneullabs/haneul/bcs").BcsType<string, string, "string">;
|
|
41
|
+
}, "std::type_name::TypeName">;
|
|
42
|
+
quote: MoveStruct<{
|
|
43
|
+
name: import("@haneullabs/haneul/bcs").BcsType<string, string, "string">;
|
|
44
|
+
}, "std::type_name::TypeName">;
|
|
45
|
+
}, "@deepbook/core::registry::PoolKey">;
|
|
46
|
+
export declare const StableCoinKey: MoveStruct<{
|
|
47
|
+
dummy_field: import("@haneullabs/haneul/bcs").BcsType<boolean, boolean, "bool">;
|
|
48
|
+
}, "@deepbook/core::registry::StableCoinKey">;
|
|
49
|
+
export interface SetTreasuryAddressArguments {
|
|
50
|
+
self: RawTransactionArgument<string>;
|
|
51
|
+
treasuryAddress: RawTransactionArgument<string>;
|
|
52
|
+
Cap: RawTransactionArgument<string>;
|
|
53
|
+
}
|
|
54
|
+
export interface SetTreasuryAddressOptions {
|
|
55
|
+
package?: string;
|
|
56
|
+
arguments: SetTreasuryAddressArguments | [
|
|
57
|
+
self: RawTransactionArgument<string>,
|
|
58
|
+
treasuryAddress: RawTransactionArgument<string>,
|
|
59
|
+
Cap: RawTransactionArgument<string>
|
|
60
|
+
];
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Sets the treasury address where the pool creation fees are sent By default, the
|
|
64
|
+
* treasury address is the publisher of the deepbook package
|
|
65
|
+
*/
|
|
66
|
+
export declare function setTreasuryAddress(options: SetTreasuryAddressOptions): (tx: Transaction) => import("@haneullabs/haneul/transactions").TransactionResult;
|
|
67
|
+
export interface EnableVersionArguments {
|
|
68
|
+
self: RawTransactionArgument<string>;
|
|
69
|
+
version: RawTransactionArgument<number | bigint>;
|
|
70
|
+
Cap: RawTransactionArgument<string>;
|
|
71
|
+
}
|
|
72
|
+
export interface EnableVersionOptions {
|
|
73
|
+
package?: string;
|
|
74
|
+
arguments: EnableVersionArguments | [
|
|
75
|
+
self: RawTransactionArgument<string>,
|
|
76
|
+
version: RawTransactionArgument<number | bigint>,
|
|
77
|
+
Cap: RawTransactionArgument<string>
|
|
78
|
+
];
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Enables a package version Only Admin can enable a package version This function
|
|
82
|
+
* does not have version restrictions
|
|
83
|
+
*/
|
|
84
|
+
export declare function enableVersion(options: EnableVersionOptions): (tx: Transaction) => import("@haneullabs/haneul/transactions").TransactionResult;
|
|
85
|
+
export interface DisableVersionArguments {
|
|
86
|
+
self: RawTransactionArgument<string>;
|
|
87
|
+
version: RawTransactionArgument<number | bigint>;
|
|
88
|
+
Cap: RawTransactionArgument<string>;
|
|
89
|
+
}
|
|
90
|
+
export interface DisableVersionOptions {
|
|
91
|
+
package?: string;
|
|
92
|
+
arguments: DisableVersionArguments | [
|
|
93
|
+
self: RawTransactionArgument<string>,
|
|
94
|
+
version: RawTransactionArgument<number | bigint>,
|
|
95
|
+
Cap: RawTransactionArgument<string>
|
|
96
|
+
];
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Disables a package version Only Admin can disable a package version This
|
|
100
|
+
* function does not have version restrictions
|
|
101
|
+
*/
|
|
102
|
+
export declare function disableVersion(options: DisableVersionOptions): (tx: Transaction) => import("@haneullabs/haneul/transactions").TransactionResult;
|
|
103
|
+
export interface AddStablecoinArguments {
|
|
104
|
+
self: RawTransactionArgument<string>;
|
|
105
|
+
Cap: RawTransactionArgument<string>;
|
|
106
|
+
}
|
|
107
|
+
export interface AddStablecoinOptions {
|
|
108
|
+
package?: string;
|
|
109
|
+
arguments: AddStablecoinArguments | [self: RawTransactionArgument<string>, Cap: RawTransactionArgument<string>];
|
|
110
|
+
typeArguments: [string];
|
|
111
|
+
}
|
|
112
|
+
/** Adds a stablecoin to the whitelist Only Admin can add stablecoin */
|
|
113
|
+
export declare function addStablecoin(options: AddStablecoinOptions): (tx: Transaction) => import("@haneullabs/haneul/transactions").TransactionResult;
|
|
114
|
+
export interface RemoveStablecoinArguments {
|
|
115
|
+
self: RawTransactionArgument<string>;
|
|
116
|
+
Cap: RawTransactionArgument<string>;
|
|
117
|
+
}
|
|
118
|
+
export interface RemoveStablecoinOptions {
|
|
119
|
+
package?: string;
|
|
120
|
+
arguments: RemoveStablecoinArguments | [self: RawTransactionArgument<string>, Cap: RawTransactionArgument<string>];
|
|
121
|
+
typeArguments: [string];
|
|
122
|
+
}
|
|
123
|
+
/** Removes a stablecoin from the whitelist Only Admin can remove stablecoin */
|
|
124
|
+
export declare function removeStablecoin(options: RemoveStablecoinOptions): (tx: Transaction) => import("@haneullabs/haneul/transactions").TransactionResult;
|
|
125
|
+
export interface IsStablecoinArguments {
|
|
126
|
+
self: RawTransactionArgument<string>;
|
|
127
|
+
stableType: RawTransactionArgument<string>;
|
|
128
|
+
}
|
|
129
|
+
export interface IsStablecoinOptions {
|
|
130
|
+
package?: string;
|
|
131
|
+
arguments: IsStablecoinArguments | [self: RawTransactionArgument<string>, stableType: RawTransactionArgument<string>];
|
|
132
|
+
}
|
|
133
|
+
/** Returns whether the given coin is whitelisted */
|
|
134
|
+
export declare function isStablecoin(options: IsStablecoinOptions): (tx: Transaction) => import("@haneullabs/haneul/transactions").TransactionResult;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { MoveStruct, normalizeMoveArguments } from "../utils/index.js";
|
|
2
|
+
import { bcs } from "@haneullabs/haneul/bcs";
|
|
3
|
+
import * as object from "./deps/sui/object.js";
|
|
4
|
+
import * as versioned from "./deps/sui/versioned.js";
|
|
5
|
+
import * as vec_set from "./deps/sui/vec_set.js";
|
|
6
|
+
import * as bag from "./deps/sui/bag.js";
|
|
7
|
+
import * as type_name from "./deps/std/type_name.js";
|
|
8
|
+
const $moduleName = "@deepbook/core::registry";
|
|
9
|
+
const REGISTRY = new MoveStruct({
|
|
10
|
+
name: `${$moduleName}::REGISTRY`,
|
|
11
|
+
fields: {
|
|
12
|
+
dummy_field: bcs.bool()
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
const DeepbookAdminCap = new MoveStruct({
|
|
16
|
+
name: `${$moduleName}::DeepbookAdminCap`,
|
|
17
|
+
fields: {
|
|
18
|
+
id: object.UID
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
const Registry = new MoveStruct({
|
|
22
|
+
name: `${$moduleName}::Registry`,
|
|
23
|
+
fields: {
|
|
24
|
+
id: object.UID,
|
|
25
|
+
inner: versioned.Versioned
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const RegistryInner = new MoveStruct({
|
|
29
|
+
name: `${$moduleName}::RegistryInner`,
|
|
30
|
+
fields: {
|
|
31
|
+
allowed_versions: vec_set.VecSet(bcs.u64()),
|
|
32
|
+
pools: bag.Bag,
|
|
33
|
+
treasury_address: bcs.Address
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const PoolKey = new MoveStruct({
|
|
37
|
+
name: `${$moduleName}::PoolKey`,
|
|
38
|
+
fields: {
|
|
39
|
+
base: type_name.TypeName,
|
|
40
|
+
quote: type_name.TypeName
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const StableCoinKey = new MoveStruct({
|
|
44
|
+
name: `${$moduleName}::StableCoinKey`,
|
|
45
|
+
fields: {
|
|
46
|
+
dummy_field: bcs.bool()
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
function setTreasuryAddress(options) {
|
|
50
|
+
const packageAddress = options.package ?? "@deepbook/core";
|
|
51
|
+
const argumentsTypes = [
|
|
52
|
+
`${packageAddress}::registry::Registry`,
|
|
53
|
+
"address",
|
|
54
|
+
`${packageAddress}::registry::DeepbookAdminCap`
|
|
55
|
+
];
|
|
56
|
+
const parameterNames = ["self", "treasuryAddress", "Cap"];
|
|
57
|
+
return (tx) => tx.moveCall({
|
|
58
|
+
package: packageAddress,
|
|
59
|
+
module: "registry",
|
|
60
|
+
function: "set_treasury_address",
|
|
61
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames)
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
function enableVersion(options) {
|
|
65
|
+
const packageAddress = options.package ?? "@deepbook/core";
|
|
66
|
+
const argumentsTypes = [
|
|
67
|
+
`${packageAddress}::registry::Registry`,
|
|
68
|
+
"u64",
|
|
69
|
+
`${packageAddress}::registry::DeepbookAdminCap`
|
|
70
|
+
];
|
|
71
|
+
const parameterNames = ["self", "version", "Cap"];
|
|
72
|
+
return (tx) => tx.moveCall({
|
|
73
|
+
package: packageAddress,
|
|
74
|
+
module: "registry",
|
|
75
|
+
function: "enable_version",
|
|
76
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames)
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function disableVersion(options) {
|
|
80
|
+
const packageAddress = options.package ?? "@deepbook/core";
|
|
81
|
+
const argumentsTypes = [
|
|
82
|
+
`${packageAddress}::registry::Registry`,
|
|
83
|
+
"u64",
|
|
84
|
+
`${packageAddress}::registry::DeepbookAdminCap`
|
|
85
|
+
];
|
|
86
|
+
const parameterNames = ["self", "version", "Cap"];
|
|
87
|
+
return (tx) => tx.moveCall({
|
|
88
|
+
package: packageAddress,
|
|
89
|
+
module: "registry",
|
|
90
|
+
function: "disable_version",
|
|
91
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames)
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function addStablecoin(options) {
|
|
95
|
+
const packageAddress = options.package ?? "@deepbook/core";
|
|
96
|
+
const argumentsTypes = [
|
|
97
|
+
`${packageAddress}::registry::Registry`,
|
|
98
|
+
`${packageAddress}::registry::DeepbookAdminCap`
|
|
99
|
+
];
|
|
100
|
+
const parameterNames = ["self", "Cap"];
|
|
101
|
+
return (tx) => tx.moveCall({
|
|
102
|
+
package: packageAddress,
|
|
103
|
+
module: "registry",
|
|
104
|
+
function: "add_stablecoin",
|
|
105
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
106
|
+
typeArguments: options.typeArguments
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
function removeStablecoin(options) {
|
|
110
|
+
const packageAddress = options.package ?? "@deepbook/core";
|
|
111
|
+
const argumentsTypes = [
|
|
112
|
+
`${packageAddress}::registry::Registry`,
|
|
113
|
+
`${packageAddress}::registry::DeepbookAdminCap`
|
|
114
|
+
];
|
|
115
|
+
const parameterNames = ["self", "Cap"];
|
|
116
|
+
return (tx) => tx.moveCall({
|
|
117
|
+
package: packageAddress,
|
|
118
|
+
module: "registry",
|
|
119
|
+
function: "remove_stablecoin",
|
|
120
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
121
|
+
typeArguments: options.typeArguments
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function isStablecoin(options) {
|
|
125
|
+
const packageAddress = options.package ?? "@deepbook/core";
|
|
126
|
+
const argumentsTypes = [
|
|
127
|
+
`${packageAddress}::registry::Registry`,
|
|
128
|
+
"0x0000000000000000000000000000000000000000000000000000000000000001::type_name::TypeName"
|
|
129
|
+
];
|
|
130
|
+
const parameterNames = ["self", "stableType"];
|
|
131
|
+
return (tx) => tx.moveCall({
|
|
132
|
+
package: packageAddress,
|
|
133
|
+
module: "registry",
|
|
134
|
+
function: "is_stablecoin",
|
|
135
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames)
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
export {
|
|
139
|
+
DeepbookAdminCap,
|
|
140
|
+
PoolKey,
|
|
141
|
+
REGISTRY,
|
|
142
|
+
Registry,
|
|
143
|
+
RegistryInner,
|
|
144
|
+
StableCoinKey,
|
|
145
|
+
addStablecoin,
|
|
146
|
+
disableVersion,
|
|
147
|
+
enableVersion,
|
|
148
|
+
isStablecoin,
|
|
149
|
+
removeStablecoin,
|
|
150
|
+
setTreasuryAddress
|
|
151
|
+
};
|
|
152
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/contracts/deepbook/registry.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n/** Registry holds all created pools. */\n\nimport { MoveStruct, normalizeMoveArguments } from '../utils/index.js';\nimport type { RawTransactionArgument } from '../utils/index.js';\nimport { bcs } from '@haneullabs/haneul/bcs';\nimport type { Transaction } from '@haneullabs/haneul/transactions';\nimport * as object from './deps/sui/object.js';\nimport * as versioned from './deps/sui/versioned.js';\nimport * as vec_set from './deps/sui/vec_set.js';\nimport * as bag from './deps/sui/bag.js';\nimport * as type_name from './deps/std/type_name.js';\nconst $moduleName = '@deepbook/core::registry';\nexport const REGISTRY = new MoveStruct({\n\tname: `${$moduleName}::REGISTRY`,\n\tfields: {\n\t\tdummy_field: bcs.bool(),\n\t},\n});\nexport const DeepbookAdminCap = new MoveStruct({\n\tname: `${$moduleName}::DeepbookAdminCap`,\n\tfields: {\n\t\tid: object.UID,\n\t},\n});\nexport const Registry = new MoveStruct({\n\tname: `${$moduleName}::Registry`,\n\tfields: {\n\t\tid: object.UID,\n\t\tinner: versioned.Versioned,\n\t},\n});\nexport const RegistryInner = new MoveStruct({\n\tname: `${$moduleName}::RegistryInner`,\n\tfields: {\n\t\tallowed_versions: vec_set.VecSet(bcs.u64()),\n\t\tpools: bag.Bag,\n\t\ttreasury_address: bcs.Address,\n\t},\n});\nexport const PoolKey = new MoveStruct({\n\tname: `${$moduleName}::PoolKey`,\n\tfields: {\n\t\tbase: type_name.TypeName,\n\t\tquote: type_name.TypeName,\n\t},\n});\nexport const StableCoinKey = new MoveStruct({\n\tname: `${$moduleName}::StableCoinKey`,\n\tfields: {\n\t\tdummy_field: bcs.bool(),\n\t},\n});\nexport interface SetTreasuryAddressArguments {\n\tself: RawTransactionArgument<string>;\n\ttreasuryAddress: RawTransactionArgument<string>;\n\tCap: RawTransactionArgument<string>;\n}\nexport interface SetTreasuryAddressOptions {\n\tpackage?: string;\n\targuments:\n\t\t| SetTreasuryAddressArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\ttreasuryAddress: RawTransactionArgument<string>,\n\t\t\t\tCap: RawTransactionArgument<string>,\n\t\t ];\n}\n/**\n * Sets the treasury address where the pool creation fees are sent By default, the\n * treasury address is the publisher of the deepbook package\n */\nexport function setTreasuryAddress(options: SetTreasuryAddressOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::registry::Registry`,\n\t\t'address',\n\t\t`${packageAddress}::registry::DeepbookAdminCap`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'treasuryAddress', 'Cap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'set_treasury_address',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface EnableVersionArguments {\n\tself: RawTransactionArgument<string>;\n\tversion: RawTransactionArgument<number | bigint>;\n\tCap: RawTransactionArgument<string>;\n}\nexport interface EnableVersionOptions {\n\tpackage?: string;\n\targuments:\n\t\t| EnableVersionArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tversion: RawTransactionArgument<number | bigint>,\n\t\t\t\tCap: RawTransactionArgument<string>,\n\t\t ];\n}\n/**\n * Enables a package version Only Admin can enable a package version This function\n * does not have version restrictions\n */\nexport function enableVersion(options: EnableVersionOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::registry::Registry`,\n\t\t'u64',\n\t\t`${packageAddress}::registry::DeepbookAdminCap`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'version', 'Cap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'enable_version',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface DisableVersionArguments {\n\tself: RawTransactionArgument<string>;\n\tversion: RawTransactionArgument<number | bigint>;\n\tCap: RawTransactionArgument<string>;\n}\nexport interface DisableVersionOptions {\n\tpackage?: string;\n\targuments:\n\t\t| DisableVersionArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tversion: RawTransactionArgument<number | bigint>,\n\t\t\t\tCap: RawTransactionArgument<string>,\n\t\t ];\n}\n/**\n * Disables a package version Only Admin can disable a package version This\n * function does not have version restrictions\n */\nexport function disableVersion(options: DisableVersionOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::registry::Registry`,\n\t\t'u64',\n\t\t`${packageAddress}::registry::DeepbookAdminCap`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'version', 'Cap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'disable_version',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface AddStablecoinArguments {\n\tself: RawTransactionArgument<string>;\n\tCap: RawTransactionArgument<string>;\n}\nexport interface AddStablecoinOptions {\n\tpackage?: string;\n\targuments:\n\t\t| AddStablecoinArguments\n\t\t| [self: RawTransactionArgument<string>, Cap: RawTransactionArgument<string>];\n\ttypeArguments: [string];\n}\n/** Adds a stablecoin to the whitelist Only Admin can add stablecoin */\nexport function addStablecoin(options: AddStablecoinOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::registry::Registry`,\n\t\t`${packageAddress}::registry::DeepbookAdminCap`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'Cap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'add_stablecoin',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface RemoveStablecoinArguments {\n\tself: RawTransactionArgument<string>;\n\tCap: RawTransactionArgument<string>;\n}\nexport interface RemoveStablecoinOptions {\n\tpackage?: string;\n\targuments:\n\t\t| RemoveStablecoinArguments\n\t\t| [self: RawTransactionArgument<string>, Cap: RawTransactionArgument<string>];\n\ttypeArguments: [string];\n}\n/** Removes a stablecoin from the whitelist Only Admin can remove stablecoin */\nexport function removeStablecoin(options: RemoveStablecoinOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::registry::Registry`,\n\t\t`${packageAddress}::registry::DeepbookAdminCap`,\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'Cap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'remove_stablecoin',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface IsStablecoinArguments {\n\tself: RawTransactionArgument<string>;\n\tstableType: RawTransactionArgument<string>;\n}\nexport interface IsStablecoinOptions {\n\tpackage?: string;\n\targuments:\n\t\t| IsStablecoinArguments\n\t\t| [self: RawTransactionArgument<string>, stableType: RawTransactionArgument<string>];\n}\n/** Returns whether the given coin is whitelisted */\nexport function isStablecoin(options: IsStablecoinOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/core';\n\tconst argumentsTypes = [\n\t\t`${packageAddress}::registry::Registry`,\n\t\t'0x0000000000000000000000000000000000000000000000000000000000000001::type_name::TypeName',\n\t] satisfies string[];\n\tconst parameterNames = ['self', 'stableType'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'is_stablecoin',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\n"],
|
|
5
|
+
"mappings": "AAKA,SAAS,YAAY,8BAA8B;AAEnD,SAAS,WAAW;AAEpB,YAAY,YAAY;AACxB,YAAY,eAAe;AAC3B,YAAY,aAAa;AACzB,YAAY,SAAS;AACrB,YAAY,eAAe;AAC3B,MAAM,cAAc;AACb,MAAM,WAAW,IAAI,WAAW;AAAA,EACtC,MAAM,GAAG,WAAW;AAAA,EACpB,QAAQ;AAAA,IACP,aAAa,IAAI,KAAK;AAAA,EACvB;AACD,CAAC;AACM,MAAM,mBAAmB,IAAI,WAAW;AAAA,EAC9C,MAAM,GAAG,WAAW;AAAA,EACpB,QAAQ;AAAA,IACP,IAAI,OAAO;AAAA,EACZ;AACD,CAAC;AACM,MAAM,WAAW,IAAI,WAAW;AAAA,EACtC,MAAM,GAAG,WAAW;AAAA,EACpB,QAAQ;AAAA,IACP,IAAI,OAAO;AAAA,IACX,OAAO,UAAU;AAAA,EAClB;AACD,CAAC;AACM,MAAM,gBAAgB,IAAI,WAAW;AAAA,EAC3C,MAAM,GAAG,WAAW;AAAA,EACpB,QAAQ;AAAA,IACP,kBAAkB,QAAQ,OAAO,IAAI,IAAI,CAAC;AAAA,IAC1C,OAAO,IAAI;AAAA,IACX,kBAAkB,IAAI;AAAA,EACvB;AACD,CAAC;AACM,MAAM,UAAU,IAAI,WAAW;AAAA,EACrC,MAAM,GAAG,WAAW;AAAA,EACpB,QAAQ;AAAA,IACP,MAAM,UAAU;AAAA,IAChB,OAAO,UAAU;AAAA,EAClB;AACD,CAAC;AACM,MAAM,gBAAgB,IAAI,WAAW;AAAA,EAC3C,MAAM,GAAG,WAAW;AAAA,EACpB,QAAQ;AAAA,IACP,aAAa,IAAI,KAAK;AAAA,EACvB;AACD,CAAC;AAoBM,SAAS,mBAAmB,SAAoC;AACtE,Q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