@typus/typus-perp-sdk 1.1.32-codegen-exp3 → 1.1.32-testnet-exp1
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/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +88 -0
- package/dist/src/_dependencies/source/0x1/ascii/structs.js +398 -0
- package/dist/src/_dependencies/source/0x1/index.d.ts +3 -0
- package/dist/src/_dependencies/source/0x1/index.js +6 -0
- package/dist/src/_dependencies/source/0x1/option/structs.d.ts +50 -0
- package/dist/src/_dependencies/source/0x1/option/structs.js +271 -0
- package/dist/src/_dependencies/source/0x1/string/structs.d.ts +48 -0
- package/dist/src/_dependencies/source/0x1/string/structs.js +256 -0
- package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +49 -0
- package/dist/src/_dependencies/source/0x1/type-name/structs.js +223 -0
- package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +54 -0
- package/dist/src/_dependencies/source/0x2/bag/structs.js +229 -0
- package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +84 -0
- package/dist/src/_dependencies/source/0x2/balance/structs.js +386 -0
- package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +406 -0
- package/dist/src/_dependencies/source/0x2/coin/structs.js +1247 -0
- package/dist/src/_dependencies/source/0x2/index.d.ts +3 -0
- package/dist/src/_dependencies/source/0x2/index.js +6 -0
- package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +132 -0
- package/dist/src/_dependencies/source/0x2/linked-table/structs.js +438 -0
- package/dist/src/_dependencies/source/0x2/object/structs.d.ts +86 -0
- package/dist/src/_dependencies/source/0x2/object/structs.js +364 -0
- package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +54 -0
- package/dist/src/_dependencies/source/0x2/object-table/structs.js +248 -0
- package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0x2/sui/structs.js +222 -0
- package/dist/src/_dependencies/source/0x2/table/structs.d.ts +54 -0
- package/dist/src/_dependencies/source/0x2/table/structs.js +248 -0
- package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +59 -0
- package/dist/src/_dependencies/source/0x2/table-vec/structs.js +274 -0
- package/dist/src/_dependencies/source/0x2/token/structs.d.ts +421 -0
- package/dist/src/_dependencies/source/0x2/token/structs.js +1095 -0
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +348 -0
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +1091 -0
- package/dist/src/_dependencies/source/0x2/url/structs.d.ts +49 -0
- package/dist/src/_dependencies/source/0x2/url/structs.js +223 -0
- package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +106 -0
- package/dist/src/_dependencies/source/0x2/vec-map/structs.js +446 -0
- package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +49 -0
- package/dist/src/_dependencies/source/0x2/vec-set/structs.js +270 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +422 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.js +1084 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +130 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.js +456 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +208 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +653 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +362 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.js +899 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.d.ts +8 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.js +11 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.js +102 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.d.ts +202 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.js +632 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +600 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.js +1459 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.d.ts +136 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.js +438 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.d.ts +127 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.js +430 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +957 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.js +2261 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +244 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +733 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +294 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +892 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +73 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.js +263 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +294 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.js +591 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +64 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.js +258 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +756 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +1721 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.js +222 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.d.ts +3 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.js +6 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.js +89 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.d.ts +135 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.js +444 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.d.ts +2106 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.js +4952 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +390 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.js +844 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.d.ts +6 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.js +9 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.js +69 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.d.ts +89 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.js +376 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +386 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.js +881 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +59 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.js +274 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +974 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.js +2387 -0
- package/dist/src/_framework/init-loader.d.ts +2 -0
- package/dist/src/{generated/typus_perp/treasury_caps.js → _framework/init-loader.js} +10 -17
- package/dist/src/_framework/loader.d.ts +17 -0
- package/dist/src/_framework/loader.js +108 -0
- package/dist/src/_framework/reified.d.ts +108 -0
- package/dist/src/_framework/reified.js +237 -0
- package/dist/src/_framework/util.d.ts +35 -0
- package/dist/src/_framework/util.js +396 -0
- package/dist/src/_framework/vector.d.ts +42 -0
- package/dist/src/_framework/vector.js +112 -0
- package/dist/src/api/sentio.js +538 -604
- package/dist/src/fetch.d.ts +36 -577
- package/dist/src/fetch.js +665 -367
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +39 -20
- package/dist/src/pyth.js +1 -0
- package/dist/src/typus_perp/admin/functions.d.ts +59 -0
- package/dist/src/typus_perp/admin/functions.js +122 -0
- package/dist/src/typus_perp/admin/structs.d.ts +467 -0
- package/dist/src/typus_perp/admin/structs.js +1065 -0
- package/dist/src/typus_perp/competition/functions.d.ts +24 -0
- package/dist/src/typus_perp/competition/functions.js +38 -0
- package/dist/src/typus_perp/competition/structs.d.ts +80 -0
- package/dist/src/typus_perp/competition/structs.js +288 -0
- package/dist/src/typus_perp/error/functions.d.ts +73 -0
- package/dist/src/typus_perp/error/functions.js +363 -0
- package/dist/src/typus_perp/escrow/functions.d.ts +17 -0
- package/dist/src/typus_perp/escrow/functions.js +36 -0
- package/dist/src/typus_perp/escrow/structs.d.ts +160 -0
- package/dist/src/typus_perp/escrow/structs.js +324 -0
- package/dist/src/typus_perp/index.d.ts +1 -0
- package/dist/src/typus_perp/index.js +7 -0
- package/dist/src/typus_perp/init.d.ts +2 -0
- package/dist/src/typus_perp/init.js +118 -0
- package/dist/src/typus_perp/lending/functions.d.ts +15 -0
- package/dist/src/typus_perp/lending/functions.js +22 -0
- package/dist/src/typus_perp/lp-pool/functions.d.ts +460 -0
- package/dist/src/typus_perp/lp-pool/functions.js +732 -0
- package/dist/src/typus_perp/lp-pool/structs.d.ts +3705 -0
- package/dist/src/typus_perp/lp-pool/structs.js +6789 -0
- package/dist/src/typus_perp/math/functions.d.ts +29 -0
- package/dist/src/typus_perp/math/functions.js +61 -0
- package/dist/src/typus_perp/position/functions.d.ts +379 -0
- package/dist/src/typus_perp/position/functions.js +713 -0
- package/dist/src/typus_perp/position/structs.d.ts +905 -0
- package/dist/src/typus_perp/position/structs.js +1450 -0
- package/dist/src/typus_perp/symbol/functions.d.ts +9 -0
- package/dist/src/typus_perp/symbol/functions.js +24 -0
- package/dist/src/typus_perp/symbol/structs.d.ts +70 -0
- package/dist/src/typus_perp/symbol/structs.js +235 -0
- package/dist/src/typus_perp/tlp/functions.d.ts +19 -0
- package/dist/src/typus_perp/tlp/functions.js +40 -0
- package/dist/src/typus_perp/tlp/structs.d.ts +89 -0
- package/dist/src/typus_perp/tlp/structs.js +365 -0
- package/dist/src/typus_perp/token-interface/functions.d.ts +11 -0
- package/dist/src/typus_perp/token-interface/functions.js +22 -0
- package/dist/src/typus_perp/trading/functions.d.ts +812 -0
- package/dist/src/typus_perp/trading/functions.js +1218 -0
- package/dist/src/typus_perp/trading/structs.d.ts +3060 -0
- package/dist/src/typus_perp/trading/structs.js +5813 -0
- package/dist/src/typus_perp/treasury-caps/functions.d.ts +9 -0
- package/dist/src/typus_perp/treasury-caps/functions.js +36 -0
- package/dist/src/typus_perp/treasury-caps/structs.d.ts +49 -0
- package/dist/src/typus_perp/treasury-caps/structs.js +223 -0
- package/dist/src/typus_perp/user-account/functions.d.ts +36 -0
- package/dist/src/typus_perp/user-account/functions.js +70 -0
- package/dist/src/typus_perp/user-account/structs.d.ts +148 -0
- package/dist/src/typus_perp/user-account/structs.js +448 -0
- package/dist/src/typus_stake_pool/admin/functions.d.ts +49 -0
- package/dist/src/typus_stake_pool/admin/functions.js +105 -0
- package/dist/src/typus_stake_pool/admin/structs.d.ts +365 -0
- package/dist/src/typus_stake_pool/admin/structs.js +789 -0
- package/dist/src/typus_stake_pool/index.d.ts +1 -0
- package/dist/src/typus_stake_pool/index.js +7 -0
- package/dist/src/typus_stake_pool/init.d.ts +2 -0
- package/dist/src/typus_stake_pool/init.js +69 -0
- package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +229 -0
- package/dist/src/typus_stake_pool/stake-pool/functions.js +380 -0
- package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +2199 -0
- package/dist/src/typus_stake_pool/stake-pool/structs.js +4653 -0
- package/dist/src/user/history.js +685 -614
- package/dist/src/user/order.d.ts +11 -16
- package/dist/src/user/order.js +302 -171
- package/dist/src/user/orderWithBidReceipt.d.ts +6 -8
- package/dist/src/user/orderWithBidReceipt.js +225 -127
- package/dist/src/user/tlp.d.ts +24 -25
- package/dist/src/user/tlp.js +468 -317
- package/package.json +3 -11
- package/dist/src/client.d.ts +0 -27
- package/dist/src/client.js +0 -108
- package/dist/src/generated/typus_perp/admin.d.ts +0 -117
- package/dist/src/generated/typus_perp/admin.js +0 -110
- package/dist/src/generated/typus_perp/competition.d.ts +0 -22
- package/dist/src/generated/typus_perp/competition.js +0 -58
- package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +0 -17
- package/dist/src/generated/typus_perp/deps/std/type_name.js +0 -25
- package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +0 -12
- package/dist/src/generated/typus_perp/deps/sui/balance.js +0 -20
- package/dist/src/generated/typus_perp/deps/sui/object.d.ts +0 -8
- package/dist/src/generated/typus_perp/deps/sui/object.js +0 -16
- package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +0 -19
- package/dist/src/generated/typus_perp/deps/sui/object_table.js +0 -59
- package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +0 -18
- package/dist/src/generated/typus_perp/deps/sui/vec_set.js +0 -25
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +0 -30
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +0 -67
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +0 -32
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +0 -71
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +0 -23
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +0 -61
- package/dist/src/generated/typus_perp/escrow.d.ts +0 -59
- package/dist/src/generated/typus_perp/escrow.js +0 -76
- package/dist/src/generated/typus_perp/lending.d.ts +0 -47
- package/dist/src/generated/typus_perp/lending.js +0 -50
- package/dist/src/generated/typus_perp/lp_pool.d.ts +0 -2327
- package/dist/src/generated/typus_perp/lp_pool.js +0 -1956
- package/dist/src/generated/typus_perp/math.d.ts +0 -95
- package/dist/src/generated/typus_perp/math.js +0 -97
- package/dist/src/generated/typus_perp/position.d.ts +0 -234
- package/dist/src/generated/typus_perp/position.js +0 -204
- package/dist/src/generated/typus_perp/symbol.d.ts +0 -18
- package/dist/src/generated/typus_perp/symbol.js +0 -55
- package/dist/src/generated/typus_perp/tlp.d.ts +0 -13
- package/dist/src/generated/typus_perp/tlp.js +0 -56
- package/dist/src/generated/typus_perp/trading.d.ts +0 -2486
- package/dist/src/generated/typus_perp/trading.js +0 -2476
- package/dist/src/generated/typus_perp/treasury_caps.d.ts +0 -13
- package/dist/src/generated/typus_perp/user_account.d.ts +0 -40
- package/dist/src/generated/typus_perp/user_account.js +0 -72
- package/dist/src/generated/typus_stake_pool/admin.d.ts +0 -234
- package/dist/src/generated/typus_stake_pool/admin.js +0 -272
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +0 -17
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +0 -25
- package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +0 -8
- package/dist/src/generated/typus_stake_pool/deps/sui/object.js +0 -16
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +0 -30
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +0 -37
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +0 -18
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +0 -25
- package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +0 -986
- package/dist/src/generated/typus_stake_pool/stake_pool.js +0 -874
- package/dist/src/generated/utils/index.d.ts +0 -11
- package/dist/src/generated/utils/index.js +0 -135
- package/dist/src/grpc/graphql.d.ts +0 -26
- package/dist/src/grpc/graphql.js +0 -126
- package/dist/src/grpc/grpc.d.ts +0 -1
- package/dist/src/grpc/grpc.js +0 -38
- package/dist/src/grpc/ledgerService.js +0 -64
- package/dist/src/grpc/liveDataService.d.ts +0 -0
- package/dist/src/grpc/liveDataService.js +0 -49
- /package/dist/src/{grpc/ledgerService.d.ts → pyth.d.ts} +0 -0
|
@@ -1,2486 +0,0 @@
|
|
|
1
|
-
/**************************************************************
|
|
2
|
-
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
-
**************************************************************/
|
|
4
|
-
import { MoveStruct, type RawTransactionArgument } from "../utils/index";
|
|
5
|
-
import { type Transaction } from "@mysten/sui/transactions";
|
|
6
|
-
export declare const MarketRegistry: MoveStruct<{
|
|
7
|
-
id: MoveStruct<{
|
|
8
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
9
|
-
}, "0x2::object::UID">;
|
|
10
|
-
/** The UID of the referral registry. */
|
|
11
|
-
referral_registry: MoveStruct<{
|
|
12
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
13
|
-
}, "0x2::object::UID">;
|
|
14
|
-
/** A linked object table of markets. */
|
|
15
|
-
markets: MoveStruct<{
|
|
16
|
-
id: MoveStruct<{
|
|
17
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
18
|
-
}, "0x2::object::UID">;
|
|
19
|
-
vid: MoveStruct<{
|
|
20
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
21
|
-
}, "0x2::object::UID">;
|
|
22
|
-
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
23
|
-
head: import("@mysten/sui/bcs").BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
24
|
-
tail: import("@mysten/sui/bcs").BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
25
|
-
}, "typus::linked_object_table::LinkedObjectTable<u64>">;
|
|
26
|
-
/** The number of markets. */
|
|
27
|
-
num_market: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
28
|
-
/** Padding for future use. */
|
|
29
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
30
|
-
length: number;
|
|
31
|
-
}, string>;
|
|
32
|
-
}, "@typus/perp::trading::MarketRegistry">;
|
|
33
|
-
export declare const Markets: MoveStruct<{
|
|
34
|
-
id: MoveStruct<{
|
|
35
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
36
|
-
}, "0x2::object::UID">;
|
|
37
|
-
/** The index of the market. */
|
|
38
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
39
|
-
/** The type name of the LP token. */
|
|
40
|
-
lp_token_type: MoveStruct<{
|
|
41
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
42
|
-
}, "std::type_name::TypeName">;
|
|
43
|
-
/** The type name of the quote token. */
|
|
44
|
-
quote_token_type: MoveStruct<{
|
|
45
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
46
|
-
}, "std::type_name::TypeName">;
|
|
47
|
-
/** Whether the market is active. */
|
|
48
|
-
is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
49
|
-
/** The protocol's share of the trading fee in basis points. */
|
|
50
|
-
protocol_fee_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
51
|
-
/** A vector of the symbols in the market. */
|
|
52
|
-
symbols: import("@mysten/sui/bcs").BcsType<{
|
|
53
|
-
name: string;
|
|
54
|
-
}[], Iterable<{
|
|
55
|
-
name: string;
|
|
56
|
-
}> & {
|
|
57
|
-
length: number;
|
|
58
|
-
}, string>;
|
|
59
|
-
/** An object table of the symbol markets. */
|
|
60
|
-
symbol_markets: MoveStruct<{
|
|
61
|
-
id: MoveStruct<{
|
|
62
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
63
|
-
}, "0x2::object::UID">;
|
|
64
|
-
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
65
|
-
}, "0x2::object_table::ObjectTable">;
|
|
66
|
-
/** Padding for future use. */
|
|
67
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
68
|
-
length: number;
|
|
69
|
-
}, string>;
|
|
70
|
-
}, "@typus/perp::trading::Markets">;
|
|
71
|
-
export declare const MarketInfo: MoveStruct<{
|
|
72
|
-
/** Whether the market is active. */
|
|
73
|
-
is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
74
|
-
/** The number of decimals for the size. */
|
|
75
|
-
size_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
76
|
-
/** The total size of long positions. */
|
|
77
|
-
user_long_position_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
78
|
-
/** The total size of short positions. */
|
|
79
|
-
user_short_position_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
80
|
-
/** The next position ID. */
|
|
81
|
-
next_position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
82
|
-
/** The total size of long orders. */
|
|
83
|
-
user_long_order_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
84
|
-
/** The total size of short orders. */
|
|
85
|
-
user_short_order_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
86
|
-
/** The next order ID. */
|
|
87
|
-
next_order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
88
|
-
/** The timestamp of the last funding. */
|
|
89
|
-
last_funding_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
90
|
-
/** The sign of the cumulative funding rate index. */
|
|
91
|
-
cumulative_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
92
|
-
/** The cumulative funding rate index. */
|
|
93
|
-
cumulative_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
94
|
-
/** The previous timestamp of the last funding. */
|
|
95
|
-
previous_last_funding_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
96
|
-
/** The previous sign of the cumulative funding rate index. */
|
|
97
|
-
previous_cumulative_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
98
|
-
/** The previous cumulative funding rate index. */
|
|
99
|
-
previous_cumulative_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
100
|
-
/** Padding for future use. */
|
|
101
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
102
|
-
length: number;
|
|
103
|
-
}, string>;
|
|
104
|
-
}, "@typus/perp::trading::MarketInfo">;
|
|
105
|
-
export declare const MarketConfig: MoveStruct<{
|
|
106
|
-
/** The address of the oracle. */
|
|
107
|
-
oracle_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
108
|
-
/** The maximum leverage in mega basis points. */
|
|
109
|
-
max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
110
|
-
/** The maximum leverage for option collateral in mega basis points. */
|
|
111
|
-
option_collateral_max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
112
|
-
/** The minimum size of an order. */
|
|
113
|
-
min_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
114
|
-
/** The lot size of an order. */
|
|
115
|
-
lot_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
116
|
-
/** The trading fee configuration. */
|
|
117
|
-
trading_fee_config: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
118
|
-
length: number;
|
|
119
|
-
}, string>;
|
|
120
|
-
/** The basic funding rate. */
|
|
121
|
-
basic_funding_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
122
|
-
/** The funding interval in milliseconds. */
|
|
123
|
-
funding_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
124
|
-
/** The experience multiplier. */
|
|
125
|
-
exp_multiplier: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
126
|
-
/** Padding for future use. */
|
|
127
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
128
|
-
length: number;
|
|
129
|
-
}, string>;
|
|
130
|
-
}, "@typus/perp::trading::MarketConfig">;
|
|
131
|
-
export declare const SymbolMarket: MoveStruct<{
|
|
132
|
-
id: MoveStruct<{
|
|
133
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
134
|
-
}, "0x2::object::UID">;
|
|
135
|
-
/** A keyed big vector of user positions. */
|
|
136
|
-
user_positions: MoveStruct<{
|
|
137
|
-
id: MoveStruct<{
|
|
138
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
139
|
-
}, "0x2::object::UID">;
|
|
140
|
-
key_type: MoveStruct<{
|
|
141
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
142
|
-
}, "std::type_name::TypeName">;
|
|
143
|
-
value_type: MoveStruct<{
|
|
144
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
145
|
-
}, "std::type_name::TypeName">;
|
|
146
|
-
slice_idx: import("@mysten/sui/bcs").BcsType<number, number, "u16">;
|
|
147
|
-
slice_size: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
|
|
148
|
-
length: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
149
|
-
}, "typus::keyed_big_vector::KeyedBigVector">;
|
|
150
|
-
/** The UID of the token collateral orders. */
|
|
151
|
-
token_collateral_orders: MoveStruct<{
|
|
152
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
153
|
-
}, "0x2::object::UID">;
|
|
154
|
-
/** The UID of the option collateral orders. */
|
|
155
|
-
option_collateral_orders: MoveStruct<{
|
|
156
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
157
|
-
}, "0x2::object::UID">;
|
|
158
|
-
/** Information about the market. */
|
|
159
|
-
market_info: MoveStruct<{
|
|
160
|
-
/** Whether the market is active. */
|
|
161
|
-
is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
162
|
-
/** The number of decimals for the size. */
|
|
163
|
-
size_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
164
|
-
/** The total size of long positions. */
|
|
165
|
-
user_long_position_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
166
|
-
/** The total size of short positions. */
|
|
167
|
-
user_short_position_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
168
|
-
/** The next position ID. */
|
|
169
|
-
next_position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
170
|
-
/** The total size of long orders. */
|
|
171
|
-
user_long_order_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
172
|
-
/** The total size of short orders. */
|
|
173
|
-
user_short_order_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
174
|
-
/** The next order ID. */
|
|
175
|
-
next_order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
176
|
-
/** The timestamp of the last funding. */
|
|
177
|
-
last_funding_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
178
|
-
/** The sign of the cumulative funding rate index. */
|
|
179
|
-
cumulative_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
180
|
-
/** The cumulative funding rate index. */
|
|
181
|
-
cumulative_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
182
|
-
/** The previous timestamp of the last funding. */
|
|
183
|
-
previous_last_funding_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
184
|
-
/** The previous sign of the cumulative funding rate index. */
|
|
185
|
-
previous_cumulative_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
186
|
-
/** The previous cumulative funding rate index. */
|
|
187
|
-
previous_cumulative_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
188
|
-
/** Padding for future use. */
|
|
189
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
190
|
-
length: number;
|
|
191
|
-
}, string>;
|
|
192
|
-
}, "@typus/perp::trading::MarketInfo">;
|
|
193
|
-
/** Configuration for the market. */
|
|
194
|
-
market_config: MoveStruct<{
|
|
195
|
-
/** The address of the oracle. */
|
|
196
|
-
oracle_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
197
|
-
/** The maximum leverage in mega basis points. */
|
|
198
|
-
max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
199
|
-
/** The maximum leverage for option collateral in mega basis points. */
|
|
200
|
-
option_collateral_max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
201
|
-
/** The minimum size of an order. */
|
|
202
|
-
min_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
203
|
-
/** The lot size of an order. */
|
|
204
|
-
lot_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
205
|
-
/** The trading fee configuration. */
|
|
206
|
-
trading_fee_config: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
207
|
-
length: number;
|
|
208
|
-
}, string>;
|
|
209
|
-
/** The basic funding rate. */
|
|
210
|
-
basic_funding_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
211
|
-
/** The funding interval in milliseconds. */
|
|
212
|
-
funding_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
213
|
-
/** The experience multiplier. */
|
|
214
|
-
exp_multiplier: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
215
|
-
/** Padding for future use. */
|
|
216
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
217
|
-
length: number;
|
|
218
|
-
}, string>;
|
|
219
|
-
}, "@typus/perp::trading::MarketConfig">;
|
|
220
|
-
}, "@typus/perp::trading::SymbolMarket">;
|
|
221
|
-
export declare const USD: MoveStruct<{
|
|
222
|
-
dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
223
|
-
}, "@typus/perp::trading::USD">;
|
|
224
|
-
export declare const NewMarketsEvent: MoveStruct<{
|
|
225
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
226
|
-
lp_token_type: MoveStruct<{
|
|
227
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
228
|
-
}, "std::type_name::TypeName">;
|
|
229
|
-
quote_token_type: MoveStruct<{
|
|
230
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
231
|
-
}, "std::type_name::TypeName">;
|
|
232
|
-
protocol_fee_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
233
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
234
|
-
length: number;
|
|
235
|
-
}, string>;
|
|
236
|
-
}, "@typus/perp::trading::NewMarketsEvent">;
|
|
237
|
-
export declare const AddTradingSymbolEvent: MoveStruct<{
|
|
238
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
239
|
-
base_token_type: MoveStruct<{
|
|
240
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
241
|
-
}, "std::type_name::TypeName">;
|
|
242
|
-
market_info: MoveStruct<{
|
|
243
|
-
/** Whether the market is active. */
|
|
244
|
-
is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
245
|
-
/** The number of decimals for the size. */
|
|
246
|
-
size_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
247
|
-
/** The total size of long positions. */
|
|
248
|
-
user_long_position_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
249
|
-
/** The total size of short positions. */
|
|
250
|
-
user_short_position_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
251
|
-
/** The next position ID. */
|
|
252
|
-
next_position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
253
|
-
/** The total size of long orders. */
|
|
254
|
-
user_long_order_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
255
|
-
/** The total size of short orders. */
|
|
256
|
-
user_short_order_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
257
|
-
/** The next order ID. */
|
|
258
|
-
next_order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
259
|
-
/** The timestamp of the last funding. */
|
|
260
|
-
last_funding_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
261
|
-
/** The sign of the cumulative funding rate index. */
|
|
262
|
-
cumulative_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
263
|
-
/** The cumulative funding rate index. */
|
|
264
|
-
cumulative_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
265
|
-
/** The previous timestamp of the last funding. */
|
|
266
|
-
previous_last_funding_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
267
|
-
/** The previous sign of the cumulative funding rate index. */
|
|
268
|
-
previous_cumulative_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
269
|
-
/** The previous cumulative funding rate index. */
|
|
270
|
-
previous_cumulative_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
271
|
-
/** Padding for future use. */
|
|
272
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
273
|
-
length: number;
|
|
274
|
-
}, string>;
|
|
275
|
-
}, "@typus/perp::trading::MarketInfo">;
|
|
276
|
-
market_config: MoveStruct<{
|
|
277
|
-
/** The address of the oracle. */
|
|
278
|
-
oracle_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
279
|
-
/** The maximum leverage in mega basis points. */
|
|
280
|
-
max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
281
|
-
/** The maximum leverage for option collateral in mega basis points. */
|
|
282
|
-
option_collateral_max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
283
|
-
/** The minimum size of an order. */
|
|
284
|
-
min_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
285
|
-
/** The lot size of an order. */
|
|
286
|
-
lot_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
287
|
-
/** The trading fee configuration. */
|
|
288
|
-
trading_fee_config: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
289
|
-
length: number;
|
|
290
|
-
}, string>;
|
|
291
|
-
/** The basic funding rate. */
|
|
292
|
-
basic_funding_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
293
|
-
/** The funding interval in milliseconds. */
|
|
294
|
-
funding_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
295
|
-
/** The experience multiplier. */
|
|
296
|
-
exp_multiplier: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
297
|
-
/** Padding for future use. */
|
|
298
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
299
|
-
length: number;
|
|
300
|
-
}, string>;
|
|
301
|
-
}, "@typus/perp::trading::MarketConfig">;
|
|
302
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
303
|
-
length: number;
|
|
304
|
-
}, string>;
|
|
305
|
-
}, "@typus/perp::trading::AddTradingSymbolEvent">;
|
|
306
|
-
export declare const UpdateProtocolFeeShareBpEvent: MoveStruct<{
|
|
307
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
308
|
-
previous_protocol_fee_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
309
|
-
new_protocol_fee_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
310
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
311
|
-
length: number;
|
|
312
|
-
}, string>;
|
|
313
|
-
}, "@typus/perp::trading::UpdateProtocolFeeShareBpEvent">;
|
|
314
|
-
export declare const UpdateMarketConfigEvent: MoveStruct<{
|
|
315
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
316
|
-
base_token_type: MoveStruct<{
|
|
317
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
318
|
-
}, "std::type_name::TypeName">;
|
|
319
|
-
previous_market_config: MoveStruct<{
|
|
320
|
-
/** The address of the oracle. */
|
|
321
|
-
oracle_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
322
|
-
/** The maximum leverage in mega basis points. */
|
|
323
|
-
max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
324
|
-
/** The maximum leverage for option collateral in mega basis points. */
|
|
325
|
-
option_collateral_max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
326
|
-
/** The minimum size of an order. */
|
|
327
|
-
min_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
328
|
-
/** The lot size of an order. */
|
|
329
|
-
lot_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
330
|
-
/** The trading fee configuration. */
|
|
331
|
-
trading_fee_config: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
332
|
-
length: number;
|
|
333
|
-
}, string>;
|
|
334
|
-
/** The basic funding rate. */
|
|
335
|
-
basic_funding_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
336
|
-
/** The funding interval in milliseconds. */
|
|
337
|
-
funding_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
338
|
-
/** The experience multiplier. */
|
|
339
|
-
exp_multiplier: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
340
|
-
/** Padding for future use. */
|
|
341
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
342
|
-
length: number;
|
|
343
|
-
}, string>;
|
|
344
|
-
}, "@typus/perp::trading::MarketConfig">;
|
|
345
|
-
new_market_config: MoveStruct<{
|
|
346
|
-
/** The address of the oracle. */
|
|
347
|
-
oracle_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
348
|
-
/** The maximum leverage in mega basis points. */
|
|
349
|
-
max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
350
|
-
/** The maximum leverage for option collateral in mega basis points. */
|
|
351
|
-
option_collateral_max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
352
|
-
/** The minimum size of an order. */
|
|
353
|
-
min_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
354
|
-
/** The lot size of an order. */
|
|
355
|
-
lot_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
356
|
-
/** The trading fee configuration. */
|
|
357
|
-
trading_fee_config: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
358
|
-
length: number;
|
|
359
|
-
}, string>;
|
|
360
|
-
/** The basic funding rate. */
|
|
361
|
-
basic_funding_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
362
|
-
/** The funding interval in milliseconds. */
|
|
363
|
-
funding_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
364
|
-
/** The experience multiplier. */
|
|
365
|
-
exp_multiplier: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
366
|
-
/** Padding for future use. */
|
|
367
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
368
|
-
length: number;
|
|
369
|
-
}, string>;
|
|
370
|
-
}, "@typus/perp::trading::MarketConfig">;
|
|
371
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
372
|
-
length: number;
|
|
373
|
-
}, string>;
|
|
374
|
-
}, "@typus/perp::trading::UpdateMarketConfigEvent">;
|
|
375
|
-
export declare const SuspendMarketEvent: MoveStruct<{
|
|
376
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
377
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
378
|
-
length: number;
|
|
379
|
-
}, string>;
|
|
380
|
-
}, "@typus/perp::trading::SuspendMarketEvent">;
|
|
381
|
-
export declare const ResumeMarketEvent: MoveStruct<{
|
|
382
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
383
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
384
|
-
length: number;
|
|
385
|
-
}, string>;
|
|
386
|
-
}, "@typus/perp::trading::ResumeMarketEvent">;
|
|
387
|
-
export declare const SuspendTradingSymbolEvent: MoveStruct<{
|
|
388
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
389
|
-
suspended_base_token: MoveStruct<{
|
|
390
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
391
|
-
}, "std::type_name::TypeName">;
|
|
392
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
393
|
-
length: number;
|
|
394
|
-
}, string>;
|
|
395
|
-
}, "@typus/perp::trading::SuspendTradingSymbolEvent">;
|
|
396
|
-
export declare const ResumeTradingSymbolEvent: MoveStruct<{
|
|
397
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
398
|
-
resumed_base_token: MoveStruct<{
|
|
399
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
400
|
-
}, "std::type_name::TypeName">;
|
|
401
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
402
|
-
length: number;
|
|
403
|
-
}, string>;
|
|
404
|
-
}, "@typus/perp::trading::ResumeTradingSymbolEvent">;
|
|
405
|
-
export declare const CreateTradingOrderEvent: MoveStruct<{
|
|
406
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
407
|
-
market_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
408
|
-
pool_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
409
|
-
collateral_token: MoveStruct<{
|
|
410
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
411
|
-
}, "std::type_name::TypeName">;
|
|
412
|
-
base_token: MoveStruct<{
|
|
413
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
414
|
-
}, "std::type_name::TypeName">;
|
|
415
|
-
order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
416
|
-
linked_position_id: import("@mysten/sui/bcs").BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
417
|
-
collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
418
|
-
leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
419
|
-
reduce_only: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
420
|
-
is_long: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
421
|
-
is_stop_order: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
422
|
-
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
423
|
-
trigger_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
424
|
-
filled: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
425
|
-
filled_price: import("@mysten/sui/bcs").BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
426
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
427
|
-
length: number;
|
|
428
|
-
}, string>;
|
|
429
|
-
}, "@typus/perp::trading::CreateTradingOrderEvent">;
|
|
430
|
-
export declare const CancelTradingOrderEvent: MoveStruct<{
|
|
431
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
432
|
-
market_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
433
|
-
order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
434
|
-
trigger_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
435
|
-
collateral_token: MoveStruct<{
|
|
436
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
437
|
-
}, "std::type_name::TypeName">;
|
|
438
|
-
base_token: MoveStruct<{
|
|
439
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
440
|
-
}, "std::type_name::TypeName">;
|
|
441
|
-
released_collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
442
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
443
|
-
length: number;
|
|
444
|
-
}, string>;
|
|
445
|
-
}, "@typus/perp::trading::CancelTradingOrderEvent">;
|
|
446
|
-
export declare const ReleaseCollateralEvent: MoveStruct<{
|
|
447
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
448
|
-
market_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
449
|
-
pool_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
450
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
451
|
-
collateral_token: MoveStruct<{
|
|
452
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
453
|
-
}, "std::type_name::TypeName">;
|
|
454
|
-
base_token: MoveStruct<{
|
|
455
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
456
|
-
}, "std::type_name::TypeName">;
|
|
457
|
-
released_collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
458
|
-
remaining_collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
459
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
460
|
-
length: number;
|
|
461
|
-
}, string>;
|
|
462
|
-
}, "@typus/perp::trading::ReleaseCollateralEvent">;
|
|
463
|
-
export declare const IncreaseCollateralEvent: MoveStruct<{
|
|
464
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
465
|
-
market_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
466
|
-
pool_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
467
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
468
|
-
collateral_token: MoveStruct<{
|
|
469
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
470
|
-
}, "std::type_name::TypeName">;
|
|
471
|
-
base_token: MoveStruct<{
|
|
472
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
473
|
-
}, "std::type_name::TypeName">;
|
|
474
|
-
increased_collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
475
|
-
remaining_collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
476
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
477
|
-
length: number;
|
|
478
|
-
}, string>;
|
|
479
|
-
}, "@typus/perp::trading::IncreaseCollateralEvent">;
|
|
480
|
-
export declare const CreateTradingOrderWithBidReceiptsEvent: MoveStruct<{
|
|
481
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
482
|
-
market_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
483
|
-
pool_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
484
|
-
dov_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
485
|
-
collateral_token: MoveStruct<{
|
|
486
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
487
|
-
}, "std::type_name::TypeName">;
|
|
488
|
-
base_token: MoveStruct<{
|
|
489
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
490
|
-
}, "std::type_name::TypeName">;
|
|
491
|
-
order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
492
|
-
collateral_in_deposit_token: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
493
|
-
is_long: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
494
|
-
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
495
|
-
trigger_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
496
|
-
filled: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
497
|
-
filled_price: import("@mysten/sui/bcs").BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
498
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
499
|
-
length: number;
|
|
500
|
-
}, string>;
|
|
501
|
-
}, "@typus/perp::trading::CreateTradingOrderWithBidReceiptsEvent">;
|
|
502
|
-
export declare const MatchTradingOrderEvent: MoveStruct<{
|
|
503
|
-
collateral_token: MoveStruct<{
|
|
504
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
505
|
-
}, "std::type_name::TypeName">;
|
|
506
|
-
base_token: MoveStruct<{
|
|
507
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
508
|
-
}, "std::type_name::TypeName">;
|
|
509
|
-
matched_order_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
510
|
-
length: number;
|
|
511
|
-
}, string>;
|
|
512
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
513
|
-
length: number;
|
|
514
|
-
}, string>;
|
|
515
|
-
}, "@typus/perp::trading::MatchTradingOrderEvent">;
|
|
516
|
-
export declare const ManagerCancelOrdersEvent: MoveStruct<{
|
|
517
|
-
reason: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
518
|
-
collateral_token: MoveStruct<{
|
|
519
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
520
|
-
}, "std::type_name::TypeName">;
|
|
521
|
-
base_token: MoveStruct<{
|
|
522
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
523
|
-
}, "std::type_name::TypeName">;
|
|
524
|
-
order_type_tag: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
|
|
525
|
-
order_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
526
|
-
length: number;
|
|
527
|
-
}, string>;
|
|
528
|
-
order_sizes: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
529
|
-
length: number;
|
|
530
|
-
}, string>;
|
|
531
|
-
order_prices: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
532
|
-
length: number;
|
|
533
|
-
}, string>;
|
|
534
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
535
|
-
length: number;
|
|
536
|
-
}, string>;
|
|
537
|
-
}, "@typus/perp::trading::ManagerCancelOrdersEvent">;
|
|
538
|
-
export declare const ManagerReducePositionEvent: MoveStruct<{
|
|
539
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
540
|
-
collateral_token: MoveStruct<{
|
|
541
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
542
|
-
}, "std::type_name::TypeName">;
|
|
543
|
-
base_token: MoveStruct<{
|
|
544
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
545
|
-
}, "std::type_name::TypeName">;
|
|
546
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
547
|
-
reduced_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
548
|
-
collateral_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
549
|
-
trading_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
550
|
-
cancelled_order_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
551
|
-
length: number;
|
|
552
|
-
}, string>;
|
|
553
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
554
|
-
length: number;
|
|
555
|
-
}, string>;
|
|
556
|
-
}, "@typus/perp::trading::ManagerReducePositionEvent">;
|
|
557
|
-
export declare const ManagerClearPositionEvent: MoveStruct<{
|
|
558
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
559
|
-
collateral_token: MoveStruct<{
|
|
560
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
561
|
-
}, "std::type_name::TypeName">;
|
|
562
|
-
base_token: MoveStruct<{
|
|
563
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
564
|
-
}, "std::type_name::TypeName">;
|
|
565
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
566
|
-
removed_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
567
|
-
cancelled_order_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
568
|
-
length: number;
|
|
569
|
-
}, string>;
|
|
570
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
571
|
-
length: number;
|
|
572
|
-
}, string>;
|
|
573
|
-
}, "@typus/perp::trading::ManagerClearPositionEvent">;
|
|
574
|
-
export declare const ManagerCloseOptionPositionEvent: MoveStruct<{
|
|
575
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
576
|
-
collateral_token: MoveStruct<{
|
|
577
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
578
|
-
}, "std::type_name::TypeName">;
|
|
579
|
-
base_token: MoveStruct<{
|
|
580
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
581
|
-
}, "std::type_name::TypeName">;
|
|
582
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
583
|
-
order_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
584
|
-
collateral_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
585
|
-
trading_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
586
|
-
cancelled_order_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
587
|
-
length: number;
|
|
588
|
-
}, string>;
|
|
589
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
590
|
-
length: number;
|
|
591
|
-
}, string>;
|
|
592
|
-
}, "@typus/perp::trading::ManagerCloseOptionPositionEvent">;
|
|
593
|
-
export declare const ManagerUpdateProcessStatusAfterPositionEvent: MoveStruct<{
|
|
594
|
-
market_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
595
|
-
pool_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
596
|
-
liquidity_token: MoveStruct<{
|
|
597
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
598
|
-
}, "std::type_name::TypeName">;
|
|
599
|
-
trading_base_token: MoveStruct<{
|
|
600
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
601
|
-
}, "std::type_name::TypeName">;
|
|
602
|
-
}, "@typus/perp::trading::ManagerUpdateProcessStatusAfterPositionEvent">;
|
|
603
|
-
export declare const ManagerUpdateProcessStatusAfterOrderEvent: MoveStruct<{
|
|
604
|
-
market_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
605
|
-
pool_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
606
|
-
liquidity_token: MoveStruct<{
|
|
607
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
608
|
-
}, "std::type_name::TypeName">;
|
|
609
|
-
trading_base_token: MoveStruct<{
|
|
610
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
611
|
-
}, "std::type_name::TypeName">;
|
|
612
|
-
}, "@typus/perp::trading::ManagerUpdateProcessStatusAfterOrderEvent">;
|
|
613
|
-
export declare const LiquidationInfo: MoveStruct<{
|
|
614
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
615
|
-
dov_index: import("@mysten/sui/bcs").BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
616
|
-
bid_token: import("@mysten/sui/bcs").BcsType<{
|
|
617
|
-
name: string;
|
|
618
|
-
} | null, {
|
|
619
|
-
name: string;
|
|
620
|
-
} | null | undefined, "Option<std::type_name::TypeName>">;
|
|
621
|
-
}, "@typus/perp::trading::LiquidationInfo">;
|
|
622
|
-
export declare const LiquidateEvent: MoveStruct<{
|
|
623
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
624
|
-
collateral_token: MoveStruct<{
|
|
625
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
626
|
-
}, "std::type_name::TypeName">;
|
|
627
|
-
base_token: MoveStruct<{
|
|
628
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
629
|
-
}, "std::type_name::TypeName">;
|
|
630
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
631
|
-
collateral_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
632
|
-
trading_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
633
|
-
realized_liquidator_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
634
|
-
realized_value_for_lp_pool: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
635
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
636
|
-
length: number;
|
|
637
|
-
}, string>;
|
|
638
|
-
}, "@typus/perp::trading::LiquidateEvent">;
|
|
639
|
-
export declare const SettleReceiptCollateralEvent: MoveStruct<{
|
|
640
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
641
|
-
collateral_token: MoveStruct<{
|
|
642
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
643
|
-
}, "std::type_name::TypeName">;
|
|
644
|
-
bid_token: MoveStruct<{
|
|
645
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
646
|
-
}, "std::type_name::TypeName">;
|
|
647
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
648
|
-
realized_liquidator_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
649
|
-
remaining_unrealized_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
650
|
-
remaining_unrealized_value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
651
|
-
remaining_value_for_lp_pool: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
652
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
653
|
-
length: number;
|
|
654
|
-
}, string>;
|
|
655
|
-
}, "@typus/perp::trading::SettleReceiptCollateralEvent">;
|
|
656
|
-
export declare const UpdateFundingRateEvent: MoveStruct<{
|
|
657
|
-
base_token: MoveStruct<{
|
|
658
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
659
|
-
}, "std::type_name::TypeName">;
|
|
660
|
-
new_funding_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
661
|
-
intervals_count: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
662
|
-
previous_cumulative_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
663
|
-
previous_cumulative_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
664
|
-
cumulative_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
665
|
-
cumulative_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
666
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
667
|
-
length: number;
|
|
668
|
-
}, string>;
|
|
669
|
-
}, "@typus/perp::trading::UpdateFundingRateEvent">;
|
|
670
|
-
export declare const ExpiredPositionInfo: MoveStruct<{
|
|
671
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
672
|
-
dov_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
673
|
-
collateral_token: MoveStruct<{
|
|
674
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
675
|
-
}, "std::type_name::TypeName">;
|
|
676
|
-
bid_token: MoveStruct<{
|
|
677
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
678
|
-
}, "std::type_name::TypeName">;
|
|
679
|
-
base_token: MoveStruct<{
|
|
680
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
681
|
-
}, "std::type_name::TypeName">;
|
|
682
|
-
}, "@typus/perp::trading::ExpiredPositionInfo">;
|
|
683
|
-
export declare const RealizeOptionPositionEvent: MoveStruct<{
|
|
684
|
-
position_user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
685
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
686
|
-
trading_symbol: MoveStruct<{
|
|
687
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
688
|
-
}, "std::type_name::TypeName">;
|
|
689
|
-
realize_balance_token_type: MoveStruct<{
|
|
690
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
691
|
-
}, "std::type_name::TypeName">;
|
|
692
|
-
exercise_balance_value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
693
|
-
user_remaining_value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
694
|
-
user_remaining_in_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
695
|
-
realized_loss_value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
696
|
-
fee_value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
697
|
-
realized_trading_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
698
|
-
realized_borrow_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
699
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
700
|
-
length: number;
|
|
701
|
-
}, string>;
|
|
702
|
-
}, "@typus/perp::trading::RealizeOptionPositionEvent">;
|
|
703
|
-
export interface InitOptions {
|
|
704
|
-
package?: string;
|
|
705
|
-
arguments?: [];
|
|
706
|
-
}
|
|
707
|
-
export declare function init(options?: InitOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
708
|
-
export interface NewMarketsArguments {
|
|
709
|
-
version: RawTransactionArgument<string>;
|
|
710
|
-
registry: RawTransactionArgument<string>;
|
|
711
|
-
protocolFeeShareBp: RawTransactionArgument<number | bigint>;
|
|
712
|
-
}
|
|
713
|
-
export interface NewMarketsOptions {
|
|
714
|
-
package?: string;
|
|
715
|
-
arguments: NewMarketsArguments | [
|
|
716
|
-
version: RawTransactionArgument<string>,
|
|
717
|
-
registry: RawTransactionArgument<string>,
|
|
718
|
-
protocolFeeShareBp: RawTransactionArgument<number | bigint>
|
|
719
|
-
];
|
|
720
|
-
typeArguments: [string, string];
|
|
721
|
-
}
|
|
722
|
-
/** [Authorized Function] Creates a new market. */
|
|
723
|
-
export declare function newMarkets(options: NewMarketsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
724
|
-
export interface AddTradingSymbolArguments {
|
|
725
|
-
version: RawTransactionArgument<string>;
|
|
726
|
-
registry: RawTransactionArgument<string>;
|
|
727
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
728
|
-
sizeDecimal: RawTransactionArgument<number | bigint>;
|
|
729
|
-
oracle: RawTransactionArgument<string>;
|
|
730
|
-
maxLeverageMbp: RawTransactionArgument<number | bigint>;
|
|
731
|
-
optionCollateralMaxLeverageMbp: RawTransactionArgument<number | bigint>;
|
|
732
|
-
minSize: RawTransactionArgument<number | bigint>;
|
|
733
|
-
lotSize: RawTransactionArgument<number | bigint>;
|
|
734
|
-
tradingFeeConfig: RawTransactionArgument<number | bigint[]>;
|
|
735
|
-
basicFundingRate: RawTransactionArgument<number | bigint>;
|
|
736
|
-
fundingIntervalTsMs: RawTransactionArgument<number | bigint>;
|
|
737
|
-
expMultiplier: RawTransactionArgument<number | bigint>;
|
|
738
|
-
maxBuyOpenInterest: RawTransactionArgument<number | bigint>;
|
|
739
|
-
maxSellOpenInterest: RawTransactionArgument<number | bigint>;
|
|
740
|
-
maintenanceMarginRateBp: RawTransactionArgument<number | bigint>;
|
|
741
|
-
optionMaintenanceMarginRateBp: RawTransactionArgument<number | bigint>;
|
|
742
|
-
optionTradingFeeConfig: RawTransactionArgument<number | bigint[]>;
|
|
743
|
-
tradingFeeFormulaVersion: RawTransactionArgument<number | bigint>;
|
|
744
|
-
}
|
|
745
|
-
export interface AddTradingSymbolOptions {
|
|
746
|
-
package?: string;
|
|
747
|
-
arguments: AddTradingSymbolArguments | [
|
|
748
|
-
version: RawTransactionArgument<string>,
|
|
749
|
-
registry: RawTransactionArgument<string>,
|
|
750
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
751
|
-
sizeDecimal: RawTransactionArgument<number | bigint>,
|
|
752
|
-
oracle: RawTransactionArgument<string>,
|
|
753
|
-
maxLeverageMbp: RawTransactionArgument<number | bigint>,
|
|
754
|
-
optionCollateralMaxLeverageMbp: RawTransactionArgument<number | bigint>,
|
|
755
|
-
minSize: RawTransactionArgument<number | bigint>,
|
|
756
|
-
lotSize: RawTransactionArgument<number | bigint>,
|
|
757
|
-
tradingFeeConfig: RawTransactionArgument<number | bigint[]>,
|
|
758
|
-
basicFundingRate: RawTransactionArgument<number | bigint>,
|
|
759
|
-
fundingIntervalTsMs: RawTransactionArgument<number | bigint>,
|
|
760
|
-
expMultiplier: RawTransactionArgument<number | bigint>,
|
|
761
|
-
maxBuyOpenInterest: RawTransactionArgument<number | bigint>,
|
|
762
|
-
maxSellOpenInterest: RawTransactionArgument<number | bigint>,
|
|
763
|
-
maintenanceMarginRateBp: RawTransactionArgument<number | bigint>,
|
|
764
|
-
optionMaintenanceMarginRateBp: RawTransactionArgument<number | bigint>,
|
|
765
|
-
optionTradingFeeConfig: RawTransactionArgument<number | bigint[]>,
|
|
766
|
-
tradingFeeFormulaVersion: RawTransactionArgument<number | bigint>
|
|
767
|
-
];
|
|
768
|
-
typeArguments: [string];
|
|
769
|
-
}
|
|
770
|
-
/** [Authorized Function] Adds a new trading symbol to a market. */
|
|
771
|
-
export declare function addTradingSymbol(options: AddTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
772
|
-
export interface UpdateProtocolFeeShareBpArguments {
|
|
773
|
-
version: RawTransactionArgument<string>;
|
|
774
|
-
registry: RawTransactionArgument<string>;
|
|
775
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
776
|
-
protocolFeeShareBp: RawTransactionArgument<number | bigint>;
|
|
777
|
-
}
|
|
778
|
-
export interface UpdateProtocolFeeShareBpOptions {
|
|
779
|
-
package?: string;
|
|
780
|
-
arguments: UpdateProtocolFeeShareBpArguments | [
|
|
781
|
-
version: RawTransactionArgument<string>,
|
|
782
|
-
registry: RawTransactionArgument<string>,
|
|
783
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
784
|
-
protocolFeeShareBp: RawTransactionArgument<number | bigint>
|
|
785
|
-
];
|
|
786
|
-
}
|
|
787
|
-
/** [Authorized Function] Updates the protocol fee share. */
|
|
788
|
-
export declare function updateProtocolFeeShareBp(options: UpdateProtocolFeeShareBpOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
789
|
-
export interface UpdateMarketConfigArguments {
|
|
790
|
-
version: RawTransactionArgument<string>;
|
|
791
|
-
registry: RawTransactionArgument<string>;
|
|
792
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
793
|
-
oracleId: RawTransactionArgument<string | null>;
|
|
794
|
-
maxLeverageMbp: RawTransactionArgument<number | bigint | null>;
|
|
795
|
-
optionCollateralMaxLeverageMbp: RawTransactionArgument<number | bigint | null>;
|
|
796
|
-
minSize: RawTransactionArgument<number | bigint | null>;
|
|
797
|
-
lotSize: RawTransactionArgument<number | bigint | null>;
|
|
798
|
-
tradingFeeConfig: RawTransactionArgument<number | bigint[] | null>;
|
|
799
|
-
basicFundingRate: RawTransactionArgument<number | bigint | null>;
|
|
800
|
-
fundingIntervalTsMs: RawTransactionArgument<number | bigint | null>;
|
|
801
|
-
expMultiplier: RawTransactionArgument<number | bigint | null>;
|
|
802
|
-
maxBuyOpenInterest: RawTransactionArgument<number | bigint | null>;
|
|
803
|
-
maxSellOpenInterest: RawTransactionArgument<number | bigint | null>;
|
|
804
|
-
maintenanceMarginRateBp: RawTransactionArgument<number | bigint | null>;
|
|
805
|
-
optionCollateralMaintenanceMarginRateBp: RawTransactionArgument<number | bigint | null>;
|
|
806
|
-
optionCollateralTradingFeeConfig: RawTransactionArgument<number | bigint[] | null>;
|
|
807
|
-
tradingFeeFormulaVersion: RawTransactionArgument<number | bigint | null>;
|
|
808
|
-
}
|
|
809
|
-
export interface UpdateMarketConfigOptions {
|
|
810
|
-
package?: string;
|
|
811
|
-
arguments: UpdateMarketConfigArguments | [
|
|
812
|
-
version: RawTransactionArgument<string>,
|
|
813
|
-
registry: RawTransactionArgument<string>,
|
|
814
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
815
|
-
oracleId: RawTransactionArgument<string | null>,
|
|
816
|
-
maxLeverageMbp: RawTransactionArgument<number | bigint | null>,
|
|
817
|
-
optionCollateralMaxLeverageMbp: RawTransactionArgument<number | bigint | null>,
|
|
818
|
-
minSize: RawTransactionArgument<number | bigint | null>,
|
|
819
|
-
lotSize: RawTransactionArgument<number | bigint | null>,
|
|
820
|
-
tradingFeeConfig: RawTransactionArgument<number | bigint[] | null>,
|
|
821
|
-
basicFundingRate: RawTransactionArgument<number | bigint | null>,
|
|
822
|
-
fundingIntervalTsMs: RawTransactionArgument<number | bigint | null>,
|
|
823
|
-
expMultiplier: RawTransactionArgument<number | bigint | null>,
|
|
824
|
-
maxBuyOpenInterest: RawTransactionArgument<number | bigint | null>,
|
|
825
|
-
maxSellOpenInterest: RawTransactionArgument<number | bigint | null>,
|
|
826
|
-
maintenanceMarginRateBp: RawTransactionArgument<number | bigint | null>,
|
|
827
|
-
optionCollateralMaintenanceMarginRateBp: RawTransactionArgument<number | bigint | null>,
|
|
828
|
-
optionCollateralTradingFeeConfig: RawTransactionArgument<number | bigint[] | null>,
|
|
829
|
-
tradingFeeFormulaVersion: RawTransactionArgument<number | bigint | null>
|
|
830
|
-
];
|
|
831
|
-
typeArguments: [string];
|
|
832
|
-
}
|
|
833
|
-
/** [Authorized Function] Updates the market configuration. */
|
|
834
|
-
export declare function updateMarketConfig(options: UpdateMarketConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
835
|
-
export interface SuspendMarketArguments {
|
|
836
|
-
version: RawTransactionArgument<string>;
|
|
837
|
-
registry: RawTransactionArgument<string>;
|
|
838
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
839
|
-
}
|
|
840
|
-
export interface SuspendMarketOptions {
|
|
841
|
-
package?: string;
|
|
842
|
-
arguments: SuspendMarketArguments | [
|
|
843
|
-
version: RawTransactionArgument<string>,
|
|
844
|
-
registry: RawTransactionArgument<string>,
|
|
845
|
-
marketIndex: RawTransactionArgument<number | bigint>
|
|
846
|
-
];
|
|
847
|
-
}
|
|
848
|
-
/** [Authorized Function] Suspends a market. */
|
|
849
|
-
export declare function suspendMarket(options: SuspendMarketOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
850
|
-
export interface ResumeMarketArguments {
|
|
851
|
-
version: RawTransactionArgument<string>;
|
|
852
|
-
registry: RawTransactionArgument<string>;
|
|
853
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
854
|
-
}
|
|
855
|
-
export interface ResumeMarketOptions {
|
|
856
|
-
package?: string;
|
|
857
|
-
arguments: ResumeMarketArguments | [
|
|
858
|
-
version: RawTransactionArgument<string>,
|
|
859
|
-
registry: RawTransactionArgument<string>,
|
|
860
|
-
marketIndex: RawTransactionArgument<number | bigint>
|
|
861
|
-
];
|
|
862
|
-
}
|
|
863
|
-
/** [Authorized Function] Resumes a market. */
|
|
864
|
-
export declare function resumeMarket(options: ResumeMarketOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
865
|
-
export interface SuspendTradingSymbolArguments {
|
|
866
|
-
version: RawTransactionArgument<string>;
|
|
867
|
-
registry: RawTransactionArgument<string>;
|
|
868
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
869
|
-
}
|
|
870
|
-
export interface SuspendTradingSymbolOptions {
|
|
871
|
-
package?: string;
|
|
872
|
-
arguments: SuspendTradingSymbolArguments | [
|
|
873
|
-
version: RawTransactionArgument<string>,
|
|
874
|
-
registry: RawTransactionArgument<string>,
|
|
875
|
-
marketIndex: RawTransactionArgument<number | bigint>
|
|
876
|
-
];
|
|
877
|
-
typeArguments: [string];
|
|
878
|
-
}
|
|
879
|
-
/** [Authorized Function] Suspends a trading symbol. */
|
|
880
|
-
export declare function suspendTradingSymbol(options: SuspendTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
881
|
-
export interface ResumeTradingSymbolArguments {
|
|
882
|
-
version: RawTransactionArgument<string>;
|
|
883
|
-
registry: RawTransactionArgument<string>;
|
|
884
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
885
|
-
}
|
|
886
|
-
export interface ResumeTradingSymbolOptions {
|
|
887
|
-
package?: string;
|
|
888
|
-
arguments: ResumeTradingSymbolArguments | [
|
|
889
|
-
version: RawTransactionArgument<string>,
|
|
890
|
-
registry: RawTransactionArgument<string>,
|
|
891
|
-
marketIndex: RawTransactionArgument<number | bigint>
|
|
892
|
-
];
|
|
893
|
-
typeArguments: [string];
|
|
894
|
-
}
|
|
895
|
-
/** [Authorized Function] Resumes a trading symbol. */
|
|
896
|
-
export declare function resumeTradingSymbol(options: ResumeTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
897
|
-
export interface RemoveTradingSymbolArguments {
|
|
898
|
-
version: RawTransactionArgument<string>;
|
|
899
|
-
registry: RawTransactionArgument<string>;
|
|
900
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
901
|
-
}
|
|
902
|
-
export interface RemoveTradingSymbolOptions {
|
|
903
|
-
package?: string;
|
|
904
|
-
arguments: RemoveTradingSymbolArguments | [
|
|
905
|
-
version: RawTransactionArgument<string>,
|
|
906
|
-
registry: RawTransactionArgument<string>,
|
|
907
|
-
marketIndex: RawTransactionArgument<number | bigint>
|
|
908
|
-
];
|
|
909
|
-
typeArguments: [string];
|
|
910
|
-
}
|
|
911
|
-
/** [Authorized Function] Removes a trading symbol from a market. */
|
|
912
|
-
export declare function removeTradingSymbol(options: RemoveTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
913
|
-
export interface CreateTradingOrderV2Arguments {
|
|
914
|
-
version: RawTransactionArgument<string>;
|
|
915
|
-
registry: RawTransactionArgument<string>;
|
|
916
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
917
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
918
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
919
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
920
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
921
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
922
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
923
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
924
|
-
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
925
|
-
competitionConfig: RawTransactionArgument<string>;
|
|
926
|
-
linkedPositionId: RawTransactionArgument<number | bigint | null>;
|
|
927
|
-
collateral: RawTransactionArgument<string>;
|
|
928
|
-
reduceOnly: RawTransactionArgument<boolean>;
|
|
929
|
-
isLong: RawTransactionArgument<boolean>;
|
|
930
|
-
isStopOrder: RawTransactionArgument<boolean>;
|
|
931
|
-
size: RawTransactionArgument<number | bigint>;
|
|
932
|
-
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
933
|
-
}
|
|
934
|
-
export interface CreateTradingOrderV2Options {
|
|
935
|
-
package?: string;
|
|
936
|
-
arguments: CreateTradingOrderV2Arguments | [
|
|
937
|
-
version: RawTransactionArgument<string>,
|
|
938
|
-
registry: RawTransactionArgument<string>,
|
|
939
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
940
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
941
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
942
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
943
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
944
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
945
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
946
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
947
|
-
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
948
|
-
competitionConfig: RawTransactionArgument<string>,
|
|
949
|
-
linkedPositionId: RawTransactionArgument<number | bigint | null>,
|
|
950
|
-
collateral: RawTransactionArgument<string>,
|
|
951
|
-
reduceOnly: RawTransactionArgument<boolean>,
|
|
952
|
-
isLong: RawTransactionArgument<boolean>,
|
|
953
|
-
isStopOrder: RawTransactionArgument<boolean>,
|
|
954
|
-
size: RawTransactionArgument<number | bigint>,
|
|
955
|
-
triggerPrice: RawTransactionArgument<number | bigint>
|
|
956
|
-
];
|
|
957
|
-
typeArguments: [string, string];
|
|
958
|
-
}
|
|
959
|
-
/** [User Function] Creates a new trading order. */
|
|
960
|
-
export declare function createTradingOrderV2(options: CreateTradingOrderV2Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
961
|
-
export interface CancelTradingOrderArguments {
|
|
962
|
-
version: RawTransactionArgument<string>;
|
|
963
|
-
registry: RawTransactionArgument<string>;
|
|
964
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
965
|
-
orderId: RawTransactionArgument<number | bigint>;
|
|
966
|
-
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
967
|
-
orderUser: RawTransactionArgument<string | null>;
|
|
968
|
-
}
|
|
969
|
-
export interface CancelTradingOrderOptions {
|
|
970
|
-
package?: string;
|
|
971
|
-
arguments: CancelTradingOrderArguments | [
|
|
972
|
-
version: RawTransactionArgument<string>,
|
|
973
|
-
registry: RawTransactionArgument<string>,
|
|
974
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
975
|
-
orderId: RawTransactionArgument<number | bigint>,
|
|
976
|
-
triggerPrice: RawTransactionArgument<number | bigint>,
|
|
977
|
-
orderUser: RawTransactionArgument<string | null>
|
|
978
|
-
];
|
|
979
|
-
typeArguments: [string, string];
|
|
980
|
-
}
|
|
981
|
-
/** [User Function] Cancels a trading order. */
|
|
982
|
-
export declare function cancelTradingOrder(options: CancelTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
983
|
-
export interface ReleaseCollateralArguments {
|
|
984
|
-
version: RawTransactionArgument<string>;
|
|
985
|
-
registry: RawTransactionArgument<string>;
|
|
986
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
987
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
988
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
989
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
990
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
991
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
992
|
-
releaseAmount: RawTransactionArgument<number | bigint>;
|
|
993
|
-
}
|
|
994
|
-
export interface ReleaseCollateralOptions {
|
|
995
|
-
package?: string;
|
|
996
|
-
arguments: ReleaseCollateralArguments | [
|
|
997
|
-
version: RawTransactionArgument<string>,
|
|
998
|
-
registry: RawTransactionArgument<string>,
|
|
999
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1000
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1001
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1002
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1003
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1004
|
-
positionId: RawTransactionArgument<number | bigint>,
|
|
1005
|
-
releaseAmount: RawTransactionArgument<number | bigint>
|
|
1006
|
-
];
|
|
1007
|
-
typeArguments: [string, string];
|
|
1008
|
-
}
|
|
1009
|
-
/**
|
|
1010
|
-
* [User Function] Releases collateral from a position. Safe with
|
|
1011
|
-
* `check_position_user_matched`
|
|
1012
|
-
*/
|
|
1013
|
-
export declare function releaseCollateral(options: ReleaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1014
|
-
export interface IncreaseCollateralArguments {
|
|
1015
|
-
version: RawTransactionArgument<string>;
|
|
1016
|
-
registry: RawTransactionArgument<string>;
|
|
1017
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1018
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1019
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1020
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1021
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1022
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
1023
|
-
collateral: RawTransactionArgument<string>;
|
|
1024
|
-
}
|
|
1025
|
-
export interface IncreaseCollateralOptions {
|
|
1026
|
-
package?: string;
|
|
1027
|
-
arguments: IncreaseCollateralArguments | [
|
|
1028
|
-
version: RawTransactionArgument<string>,
|
|
1029
|
-
registry: RawTransactionArgument<string>,
|
|
1030
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1031
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1032
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1033
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1034
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1035
|
-
positionId: RawTransactionArgument<number | bigint>,
|
|
1036
|
-
collateral: RawTransactionArgument<string>
|
|
1037
|
-
];
|
|
1038
|
-
typeArguments: [string, string];
|
|
1039
|
-
}
|
|
1040
|
-
/**
|
|
1041
|
-
* [User Function] Increases the collateral of a position. Safe with
|
|
1042
|
-
* `check_position_user_matched`
|
|
1043
|
-
*/
|
|
1044
|
-
export declare function increaseCollateral(options: IncreaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1045
|
-
export interface CollectPositionFundingFeeArguments {
|
|
1046
|
-
version: RawTransactionArgument<string>;
|
|
1047
|
-
registry: RawTransactionArgument<string>;
|
|
1048
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1049
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1050
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1051
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1052
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1053
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
1054
|
-
}
|
|
1055
|
-
export interface CollectPositionFundingFeeOptions {
|
|
1056
|
-
package?: string;
|
|
1057
|
-
arguments: CollectPositionFundingFeeArguments | [
|
|
1058
|
-
version: RawTransactionArgument<string>,
|
|
1059
|
-
registry: RawTransactionArgument<string>,
|
|
1060
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1061
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1062
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1063
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1064
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1065
|
-
positionId: RawTransactionArgument<number | bigint>
|
|
1066
|
-
];
|
|
1067
|
-
typeArguments: [string, string];
|
|
1068
|
-
}
|
|
1069
|
-
/** Collects the funding fee for a position. Safe with `check_position_user_matched` */
|
|
1070
|
-
export declare function collectPositionFundingFee(options: CollectPositionFundingFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1071
|
-
export interface CreateTradingOrderWithBidReceiptV3Arguments {
|
|
1072
|
-
version: RawTransactionArgument<string>;
|
|
1073
|
-
registry: RawTransactionArgument<string>;
|
|
1074
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1075
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
1076
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1077
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1078
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1079
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1080
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
1081
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
1082
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
1083
|
-
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
1084
|
-
competitionConfig: RawTransactionArgument<string>;
|
|
1085
|
-
collateralBidReceipt: RawTransactionArgument<string>;
|
|
1086
|
-
isLong: RawTransactionArgument<boolean>;
|
|
1087
|
-
}
|
|
1088
|
-
export interface CreateTradingOrderWithBidReceiptV3Options {
|
|
1089
|
-
package?: string;
|
|
1090
|
-
arguments: CreateTradingOrderWithBidReceiptV3Arguments | [
|
|
1091
|
-
version: RawTransactionArgument<string>,
|
|
1092
|
-
registry: RawTransactionArgument<string>,
|
|
1093
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1094
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
1095
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1096
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1097
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1098
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1099
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
1100
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
1101
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
1102
|
-
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1103
|
-
competitionConfig: RawTransactionArgument<string>,
|
|
1104
|
-
collateralBidReceipt: RawTransactionArgument<string>,
|
|
1105
|
-
isLong: RawTransactionArgument<boolean>
|
|
1106
|
-
];
|
|
1107
|
-
typeArguments: [string, string, string];
|
|
1108
|
-
}
|
|
1109
|
-
/** [User Function] Creates a new trading order with a bid receipt as collateral. */
|
|
1110
|
-
export declare function createTradingOrderWithBidReceiptV3(options: CreateTradingOrderWithBidReceiptV3Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1111
|
-
export interface ReduceOptionCollateralPositionSizeV2Arguments {
|
|
1112
|
-
version: RawTransactionArgument<string>;
|
|
1113
|
-
registry: RawTransactionArgument<string>;
|
|
1114
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1115
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
1116
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1117
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1118
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1119
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1120
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
1121
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
1122
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
1123
|
-
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
1124
|
-
competitionConfig: RawTransactionArgument<string>;
|
|
1125
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
1126
|
-
orderSize: RawTransactionArgument<number | bigint | null>;
|
|
1127
|
-
}
|
|
1128
|
-
export interface ReduceOptionCollateralPositionSizeV2Options {
|
|
1129
|
-
package?: string;
|
|
1130
|
-
arguments: ReduceOptionCollateralPositionSizeV2Arguments | [
|
|
1131
|
-
version: RawTransactionArgument<string>,
|
|
1132
|
-
registry: RawTransactionArgument<string>,
|
|
1133
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1134
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
1135
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1136
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1137
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1138
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1139
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
1140
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
1141
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
1142
|
-
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1143
|
-
competitionConfig: RawTransactionArgument<string>,
|
|
1144
|
-
positionId: RawTransactionArgument<number | bigint>,
|
|
1145
|
-
orderSize: RawTransactionArgument<number | bigint | null>
|
|
1146
|
-
];
|
|
1147
|
-
typeArguments: [string, string, string];
|
|
1148
|
-
}
|
|
1149
|
-
/** [User Function] Reduces the size of an option collateral position. */
|
|
1150
|
-
export declare function reduceOptionCollateralPositionSizeV2(options: ReduceOptionCollateralPositionSizeV2Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1151
|
-
export interface MatchTradingOrderV2Arguments {
|
|
1152
|
-
version: RawTransactionArgument<string>;
|
|
1153
|
-
registry: RawTransactionArgument<string>;
|
|
1154
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1155
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1156
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1157
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1158
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1159
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
1160
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
1161
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
1162
|
-
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
1163
|
-
competitionConfig: RawTransactionArgument<string>;
|
|
1164
|
-
orderTypeTag: RawTransactionArgument<number>;
|
|
1165
|
-
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
1166
|
-
maxOperationCount: RawTransactionArgument<number | bigint>;
|
|
1167
|
-
}
|
|
1168
|
-
export interface MatchTradingOrderV2Options {
|
|
1169
|
-
package?: string;
|
|
1170
|
-
arguments: MatchTradingOrderV2Arguments | [
|
|
1171
|
-
version: RawTransactionArgument<string>,
|
|
1172
|
-
registry: RawTransactionArgument<string>,
|
|
1173
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1174
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1175
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1176
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1177
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1178
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
1179
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
1180
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
1181
|
-
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1182
|
-
competitionConfig: RawTransactionArgument<string>,
|
|
1183
|
-
orderTypeTag: RawTransactionArgument<number>,
|
|
1184
|
-
triggerPrice: RawTransactionArgument<number | bigint>,
|
|
1185
|
-
maxOperationCount: RawTransactionArgument<number | bigint>
|
|
1186
|
-
];
|
|
1187
|
-
typeArguments: [string, string];
|
|
1188
|
-
}
|
|
1189
|
-
/** [Authorized Function] Matches trading orders. */
|
|
1190
|
-
export declare function matchTradingOrderV2(options: MatchTradingOrderV2Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1191
|
-
export interface ManagerCancelOrderByOpenInterestLimitArguments {
|
|
1192
|
-
version: RawTransactionArgument<string>;
|
|
1193
|
-
registry: RawTransactionArgument<string>;
|
|
1194
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1195
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1196
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1197
|
-
orderTypeTag: RawTransactionArgument<number>;
|
|
1198
|
-
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
1199
|
-
maxOperationCount: RawTransactionArgument<number | bigint>;
|
|
1200
|
-
}
|
|
1201
|
-
export interface ManagerCancelOrderByOpenInterestLimitOptions {
|
|
1202
|
-
package?: string;
|
|
1203
|
-
arguments: ManagerCancelOrderByOpenInterestLimitArguments | [
|
|
1204
|
-
version: RawTransactionArgument<string>,
|
|
1205
|
-
registry: RawTransactionArgument<string>,
|
|
1206
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1207
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1208
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1209
|
-
orderTypeTag: RawTransactionArgument<number>,
|
|
1210
|
-
triggerPrice: RawTransactionArgument<number | bigint>,
|
|
1211
|
-
maxOperationCount: RawTransactionArgument<number | bigint>
|
|
1212
|
-
];
|
|
1213
|
-
typeArguments: [string, string];
|
|
1214
|
-
}
|
|
1215
|
-
/** [Authorized Function] Cancels orders by the manager due to open interest limit. */
|
|
1216
|
-
export declare function managerCancelOrderByOpenInterestLimit(options: ManagerCancelOrderByOpenInterestLimitOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1217
|
-
export interface CancelLinkedOrdersArguments {
|
|
1218
|
-
version: RawTransactionArgument<string>;
|
|
1219
|
-
registry: RawTransactionArgument<string>;
|
|
1220
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1221
|
-
linkedOrderIds: RawTransactionArgument<number | bigint[]>;
|
|
1222
|
-
linkedOrderPrices: RawTransactionArgument<number | bigint[]>;
|
|
1223
|
-
user: RawTransactionArgument<string>;
|
|
1224
|
-
}
|
|
1225
|
-
export interface CancelLinkedOrdersOptions {
|
|
1226
|
-
package?: string;
|
|
1227
|
-
arguments: CancelLinkedOrdersArguments | [
|
|
1228
|
-
version: RawTransactionArgument<string>,
|
|
1229
|
-
registry: RawTransactionArgument<string>,
|
|
1230
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1231
|
-
linkedOrderIds: RawTransactionArgument<number | bigint[]>,
|
|
1232
|
-
linkedOrderPrices: RawTransactionArgument<number | bigint[]>,
|
|
1233
|
-
user: RawTransactionArgument<string>
|
|
1234
|
-
];
|
|
1235
|
-
typeArguments: [string, string];
|
|
1236
|
-
}
|
|
1237
|
-
/** [Authorized Function] Cancels linked orders. */
|
|
1238
|
-
export declare function cancelLinkedOrders(options: CancelLinkedOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1239
|
-
export interface ManagerReducePositionV2Arguments {
|
|
1240
|
-
version: RawTransactionArgument<string>;
|
|
1241
|
-
registry: RawTransactionArgument<string>;
|
|
1242
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1243
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1244
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1245
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1246
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1247
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
1248
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
1249
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
1250
|
-
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
1251
|
-
competitionConfig: RawTransactionArgument<string>;
|
|
1252
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
1253
|
-
reducedRatioBp: RawTransactionArgument<number | bigint>;
|
|
1254
|
-
}
|
|
1255
|
-
export interface ManagerReducePositionV2Options {
|
|
1256
|
-
package?: string;
|
|
1257
|
-
arguments: ManagerReducePositionV2Arguments | [
|
|
1258
|
-
version: RawTransactionArgument<string>,
|
|
1259
|
-
registry: RawTransactionArgument<string>,
|
|
1260
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1261
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1262
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1263
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1264
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1265
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
1266
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
1267
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
1268
|
-
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1269
|
-
competitionConfig: RawTransactionArgument<string>,
|
|
1270
|
-
positionId: RawTransactionArgument<number | bigint>,
|
|
1271
|
-
reducedRatioBp: RawTransactionArgument<number | bigint>
|
|
1272
|
-
];
|
|
1273
|
-
typeArguments: [string, string];
|
|
1274
|
-
}
|
|
1275
|
-
/** [Authorized Function] Reduces a position by the manager. */
|
|
1276
|
-
export declare function managerReducePositionV2(options: ManagerReducePositionV2Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1277
|
-
export interface ManagerClearPositionArguments {
|
|
1278
|
-
version: RawTransactionArgument<string>;
|
|
1279
|
-
registry: RawTransactionArgument<string>;
|
|
1280
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1281
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1282
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1283
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
1284
|
-
}
|
|
1285
|
-
export interface ManagerClearPositionOptions {
|
|
1286
|
-
package?: string;
|
|
1287
|
-
arguments: ManagerClearPositionArguments | [
|
|
1288
|
-
version: RawTransactionArgument<string>,
|
|
1289
|
-
registry: RawTransactionArgument<string>,
|
|
1290
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1291
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1292
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1293
|
-
positionId: RawTransactionArgument<number | bigint>
|
|
1294
|
-
];
|
|
1295
|
-
typeArguments: [string, string];
|
|
1296
|
-
}
|
|
1297
|
-
export declare function managerClearPosition(options: ManagerClearPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1298
|
-
export interface ManagerCloseOptionPositionV2Arguments {
|
|
1299
|
-
version: RawTransactionArgument<string>;
|
|
1300
|
-
registry: RawTransactionArgument<string>;
|
|
1301
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1302
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
1303
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1304
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1305
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1306
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1307
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
1308
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
1309
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
1310
|
-
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
1311
|
-
competitionConfig: RawTransactionArgument<string>;
|
|
1312
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
1313
|
-
}
|
|
1314
|
-
export interface ManagerCloseOptionPositionV2Options {
|
|
1315
|
-
package?: string;
|
|
1316
|
-
arguments: ManagerCloseOptionPositionV2Arguments | [
|
|
1317
|
-
version: RawTransactionArgument<string>,
|
|
1318
|
-
registry: RawTransactionArgument<string>,
|
|
1319
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1320
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
1321
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1322
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1323
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1324
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1325
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
1326
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
1327
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
1328
|
-
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1329
|
-
competitionConfig: RawTransactionArgument<string>,
|
|
1330
|
-
positionId: RawTransactionArgument<number | bigint>
|
|
1331
|
-
];
|
|
1332
|
-
typeArguments: [string, string, string];
|
|
1333
|
-
}
|
|
1334
|
-
/** [Authorized Function] Closes an option position by the manager. */
|
|
1335
|
-
export declare function managerCloseOptionPositionV2(options: ManagerCloseOptionPositionV2Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1336
|
-
export interface ManagerRemovePositionV2Arguments {
|
|
1337
|
-
version: RawTransactionArgument<string>;
|
|
1338
|
-
registry: RawTransactionArgument<string>;
|
|
1339
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1340
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
1341
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1342
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1343
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1344
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1345
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
1346
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
1347
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
1348
|
-
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
1349
|
-
competitionConfig: RawTransactionArgument<string>;
|
|
1350
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
1351
|
-
isOptionPosition: RawTransactionArgument<boolean>;
|
|
1352
|
-
process: RawTransactionArgument<string>;
|
|
1353
|
-
}
|
|
1354
|
-
export interface ManagerRemovePositionV2Options {
|
|
1355
|
-
package?: string;
|
|
1356
|
-
arguments: ManagerRemovePositionV2Arguments | [
|
|
1357
|
-
version: RawTransactionArgument<string>,
|
|
1358
|
-
registry: RawTransactionArgument<string>,
|
|
1359
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1360
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
1361
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1362
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1363
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1364
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1365
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
1366
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
1367
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
1368
|
-
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1369
|
-
competitionConfig: RawTransactionArgument<string>,
|
|
1370
|
-
positionId: RawTransactionArgument<number | bigint>,
|
|
1371
|
-
isOptionPosition: RawTransactionArgument<boolean>,
|
|
1372
|
-
process: RawTransactionArgument<string>
|
|
1373
|
-
];
|
|
1374
|
-
typeArguments: [string, string, string];
|
|
1375
|
-
}
|
|
1376
|
-
export declare function managerRemovePositionV2(options: ManagerRemovePositionV2Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1377
|
-
export interface ManagerRemoveOrderArguments {
|
|
1378
|
-
version: RawTransactionArgument<string>;
|
|
1379
|
-
registry: RawTransactionArgument<string>;
|
|
1380
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1381
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1382
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1383
|
-
orderUser: RawTransactionArgument<string>;
|
|
1384
|
-
orderId: RawTransactionArgument<number | bigint>;
|
|
1385
|
-
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
1386
|
-
process: RawTransactionArgument<string>;
|
|
1387
|
-
}
|
|
1388
|
-
export interface ManagerRemoveOrderOptions {
|
|
1389
|
-
package?: string;
|
|
1390
|
-
arguments: ManagerRemoveOrderArguments | [
|
|
1391
|
-
version: RawTransactionArgument<string>,
|
|
1392
|
-
registry: RawTransactionArgument<string>,
|
|
1393
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1394
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1395
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1396
|
-
orderUser: RawTransactionArgument<string>,
|
|
1397
|
-
orderId: RawTransactionArgument<number | bigint>,
|
|
1398
|
-
triggerPrice: RawTransactionArgument<number | bigint>,
|
|
1399
|
-
process: RawTransactionArgument<string>
|
|
1400
|
-
];
|
|
1401
|
-
typeArguments: [string, string];
|
|
1402
|
-
}
|
|
1403
|
-
export declare function managerRemoveOrder(options: ManagerRemoveOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1404
|
-
export interface GetTradingFeeConfigArguments {
|
|
1405
|
-
marketConfig: RawTransactionArgument<string>;
|
|
1406
|
-
isOptionPosition: RawTransactionArgument<boolean>;
|
|
1407
|
-
}
|
|
1408
|
-
export interface GetTradingFeeConfigOptions {
|
|
1409
|
-
package?: string;
|
|
1410
|
-
arguments: GetTradingFeeConfigArguments | [marketConfig: RawTransactionArgument<string>, isOptionPosition: RawTransactionArgument<boolean>];
|
|
1411
|
-
}
|
|
1412
|
-
export declare function getTradingFeeConfig(options: GetTradingFeeConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1413
|
-
export interface GetLiquidationInfoArguments {
|
|
1414
|
-
version: RawTransactionArgument<string>;
|
|
1415
|
-
registry: RawTransactionArgument<string>;
|
|
1416
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1417
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
1418
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1419
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1420
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1421
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1422
|
-
getAll: RawTransactionArgument<boolean>;
|
|
1423
|
-
}
|
|
1424
|
-
export interface GetLiquidationInfoOptions {
|
|
1425
|
-
package?: string;
|
|
1426
|
-
arguments: GetLiquidationInfoArguments | [
|
|
1427
|
-
version: RawTransactionArgument<string>,
|
|
1428
|
-
registry: RawTransactionArgument<string>,
|
|
1429
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1430
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
1431
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1432
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1433
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1434
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1435
|
-
getAll: RawTransactionArgument<boolean>
|
|
1436
|
-
];
|
|
1437
|
-
typeArguments: [string, string];
|
|
1438
|
-
}
|
|
1439
|
-
/** [View Function] Gets the liquidation information for a position. */
|
|
1440
|
-
export declare function getLiquidationInfo(options: GetLiquidationInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1441
|
-
export interface LiquidateArguments {
|
|
1442
|
-
version: RawTransactionArgument<string>;
|
|
1443
|
-
registry: RawTransactionArgument<string>;
|
|
1444
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1445
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
1446
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1447
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1448
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1449
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1450
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
1451
|
-
}
|
|
1452
|
-
export interface LiquidateOptions {
|
|
1453
|
-
package?: string;
|
|
1454
|
-
arguments: LiquidateArguments | [
|
|
1455
|
-
version: RawTransactionArgument<string>,
|
|
1456
|
-
registry: RawTransactionArgument<string>,
|
|
1457
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1458
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
1459
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1460
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1461
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1462
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1463
|
-
positionId: RawTransactionArgument<number | bigint>
|
|
1464
|
-
];
|
|
1465
|
-
typeArguments: [string, string, string];
|
|
1466
|
-
}
|
|
1467
|
-
/** [Authorized Function] Liquidates a position. */
|
|
1468
|
-
export declare function liquidate(options: LiquidateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1469
|
-
export interface SettleReceiptCollateralArguments {
|
|
1470
|
-
version: RawTransactionArgument<string>;
|
|
1471
|
-
registry: RawTransactionArgument<string>;
|
|
1472
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1473
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
1474
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1475
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1476
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1477
|
-
}
|
|
1478
|
-
export interface SettleReceiptCollateralOptions {
|
|
1479
|
-
package?: string;
|
|
1480
|
-
arguments: SettleReceiptCollateralArguments | [
|
|
1481
|
-
version: RawTransactionArgument<string>,
|
|
1482
|
-
registry: RawTransactionArgument<string>,
|
|
1483
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1484
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
1485
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1486
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1487
|
-
poolIndex: RawTransactionArgument<number | bigint>
|
|
1488
|
-
];
|
|
1489
|
-
typeArguments: [string, string];
|
|
1490
|
-
}
|
|
1491
|
-
/** [Authorized Function] Settles receipt collateral. */
|
|
1492
|
-
export declare function settleReceiptCollateral(options: SettleReceiptCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1493
|
-
export interface UpdateFundingRateArguments {
|
|
1494
|
-
version: RawTransactionArgument<string>;
|
|
1495
|
-
registry: RawTransactionArgument<string>;
|
|
1496
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1497
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1498
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1499
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1500
|
-
}
|
|
1501
|
-
export interface UpdateFundingRateOptions {
|
|
1502
|
-
package?: string;
|
|
1503
|
-
arguments: UpdateFundingRateArguments | [
|
|
1504
|
-
version: RawTransactionArgument<string>,
|
|
1505
|
-
registry: RawTransactionArgument<string>,
|
|
1506
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1507
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1508
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1509
|
-
poolIndex: RawTransactionArgument<number | bigint>
|
|
1510
|
-
];
|
|
1511
|
-
typeArguments: [string];
|
|
1512
|
-
}
|
|
1513
|
-
/** [Authorized Function] Updates the funding rate. */
|
|
1514
|
-
export declare function updateFundingRate(options: UpdateFundingRateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1515
|
-
export interface GetExpiredPositionInfoArguments {
|
|
1516
|
-
version: RawTransactionArgument<string>;
|
|
1517
|
-
registry: RawTransactionArgument<string>;
|
|
1518
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1519
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
1520
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1521
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1522
|
-
}
|
|
1523
|
-
export interface GetExpiredPositionInfoOptions {
|
|
1524
|
-
package?: string;
|
|
1525
|
-
arguments: GetExpiredPositionInfoArguments | [
|
|
1526
|
-
version: RawTransactionArgument<string>,
|
|
1527
|
-
registry: RawTransactionArgument<string>,
|
|
1528
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1529
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
1530
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1531
|
-
poolIndex: RawTransactionArgument<number | bigint>
|
|
1532
|
-
];
|
|
1533
|
-
}
|
|
1534
|
-
export declare function getExpiredPositionInfo(options: GetExpiredPositionInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1535
|
-
export interface InitUserAccountTableArguments {
|
|
1536
|
-
version: RawTransactionArgument<string>;
|
|
1537
|
-
registry: RawTransactionArgument<string>;
|
|
1538
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1539
|
-
}
|
|
1540
|
-
export interface InitUserAccountTableOptions {
|
|
1541
|
-
package?: string;
|
|
1542
|
-
arguments: InitUserAccountTableArguments | [
|
|
1543
|
-
version: RawTransactionArgument<string>,
|
|
1544
|
-
registry: RawTransactionArgument<string>,
|
|
1545
|
-
marketIndex: RawTransactionArgument<number | bigint>
|
|
1546
|
-
];
|
|
1547
|
-
}
|
|
1548
|
-
/**
|
|
1549
|
-
* [Authorized Function] Initializes the user account table. TODO: can be removed,
|
|
1550
|
-
* only use once.
|
|
1551
|
-
*/
|
|
1552
|
-
export declare function initUserAccountTable(options: InitUserAccountTableOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1553
|
-
export interface CreateUserAccountArguments {
|
|
1554
|
-
version: RawTransactionArgument<string>;
|
|
1555
|
-
registry: RawTransactionArgument<string>;
|
|
1556
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1557
|
-
}
|
|
1558
|
-
export interface CreateUserAccountOptions {
|
|
1559
|
-
package?: string;
|
|
1560
|
-
arguments: CreateUserAccountArguments | [
|
|
1561
|
-
version: RawTransactionArgument<string>,
|
|
1562
|
-
registry: RawTransactionArgument<string>,
|
|
1563
|
-
marketIndex: RawTransactionArgument<number | bigint>
|
|
1564
|
-
];
|
|
1565
|
-
}
|
|
1566
|
-
/** [User Function] Creates a new user account. */
|
|
1567
|
-
export declare function createUserAccount(options: CreateUserAccountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1568
|
-
export interface AddDelegateUserArguments {
|
|
1569
|
-
version: RawTransactionArgument<string>;
|
|
1570
|
-
registry: RawTransactionArgument<string>;
|
|
1571
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1572
|
-
user: RawTransactionArgument<string>;
|
|
1573
|
-
}
|
|
1574
|
-
export interface AddDelegateUserOptions {
|
|
1575
|
-
package?: string;
|
|
1576
|
-
arguments: AddDelegateUserArguments | [
|
|
1577
|
-
version: RawTransactionArgument<string>,
|
|
1578
|
-
registry: RawTransactionArgument<string>,
|
|
1579
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1580
|
-
user: RawTransactionArgument<string>
|
|
1581
|
-
];
|
|
1582
|
-
}
|
|
1583
|
-
/** [User Function] Adds a delegate user to a user account. Safe with `check_owner` */
|
|
1584
|
-
export declare function addDelegateUser(options: AddDelegateUserOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1585
|
-
export interface RemoveUserAccountArguments {
|
|
1586
|
-
version: RawTransactionArgument<string>;
|
|
1587
|
-
registry: RawTransactionArgument<string>;
|
|
1588
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1589
|
-
userAccountCap: RawTransactionArgument<string>;
|
|
1590
|
-
}
|
|
1591
|
-
export interface RemoveUserAccountOptions {
|
|
1592
|
-
package?: string;
|
|
1593
|
-
arguments: RemoveUserAccountArguments | [
|
|
1594
|
-
version: RawTransactionArgument<string>,
|
|
1595
|
-
registry: RawTransactionArgument<string>,
|
|
1596
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1597
|
-
userAccountCap: RawTransactionArgument<string>
|
|
1598
|
-
];
|
|
1599
|
-
}
|
|
1600
|
-
/** [User Function] Removes a user account. Safe with `UserAccountCap` */
|
|
1601
|
-
export declare function removeUserAccount(options: RemoveUserAccountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1602
|
-
export interface DepositUserAccountArguments {
|
|
1603
|
-
version: RawTransactionArgument<string>;
|
|
1604
|
-
registry: RawTransactionArgument<string>;
|
|
1605
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1606
|
-
collateral: RawTransactionArgument<string>;
|
|
1607
|
-
}
|
|
1608
|
-
export interface DepositUserAccountOptions {
|
|
1609
|
-
package?: string;
|
|
1610
|
-
arguments: DepositUserAccountArguments | [
|
|
1611
|
-
version: RawTransactionArgument<string>,
|
|
1612
|
-
registry: RawTransactionArgument<string>,
|
|
1613
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1614
|
-
collateral: RawTransactionArgument<string>
|
|
1615
|
-
];
|
|
1616
|
-
typeArguments: [string];
|
|
1617
|
-
}
|
|
1618
|
-
/** Deposits collateral into a user account. Safe with `check_owner` */
|
|
1619
|
-
export declare function depositUserAccount(options: DepositUserAccountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1620
|
-
export interface WithdrawUserAccountArguments {
|
|
1621
|
-
version: RawTransactionArgument<string>;
|
|
1622
|
-
registry: RawTransactionArgument<string>;
|
|
1623
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1624
|
-
amount: RawTransactionArgument<number | bigint | null>;
|
|
1625
|
-
userAccountCap: RawTransactionArgument<string>;
|
|
1626
|
-
}
|
|
1627
|
-
export interface WithdrawUserAccountOptions {
|
|
1628
|
-
package?: string;
|
|
1629
|
-
arguments: WithdrawUserAccountArguments | [
|
|
1630
|
-
version: RawTransactionArgument<string>,
|
|
1631
|
-
registry: RawTransactionArgument<string>,
|
|
1632
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1633
|
-
amount: RawTransactionArgument<number | bigint | null>,
|
|
1634
|
-
userAccountCap: RawTransactionArgument<string>
|
|
1635
|
-
];
|
|
1636
|
-
typeArguments: [string];
|
|
1637
|
-
}
|
|
1638
|
-
/** Withdraws collateral from a user account. Safe with `UserAccountCap` */
|
|
1639
|
-
export declare function withdrawUserAccount(options: WithdrawUserAccountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1640
|
-
export interface ExecuteOrder_Arguments {
|
|
1641
|
-
version: RawTransactionArgument<string>;
|
|
1642
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1643
|
-
symbolMarket: RawTransactionArgument<string>;
|
|
1644
|
-
liquidityPool: RawTransactionArgument<string>;
|
|
1645
|
-
order: RawTransactionArgument<string>;
|
|
1646
|
-
protocolFeeShareBp: RawTransactionArgument<number | bigint>;
|
|
1647
|
-
collateralOraclePrice: RawTransactionArgument<number | bigint>;
|
|
1648
|
-
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>;
|
|
1649
|
-
tradingPairOraclePrice: RawTransactionArgument<number | bigint>;
|
|
1650
|
-
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>;
|
|
1651
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
1652
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
1653
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
1654
|
-
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
1655
|
-
competitionConfig: RawTransactionArgument<string>;
|
|
1656
|
-
}
|
|
1657
|
-
export interface ExecuteOrder_Options {
|
|
1658
|
-
package?: string;
|
|
1659
|
-
arguments: ExecuteOrder_Arguments | [
|
|
1660
|
-
version: RawTransactionArgument<string>,
|
|
1661
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1662
|
-
symbolMarket: RawTransactionArgument<string>,
|
|
1663
|
-
liquidityPool: RawTransactionArgument<string>,
|
|
1664
|
-
order: RawTransactionArgument<string>,
|
|
1665
|
-
protocolFeeShareBp: RawTransactionArgument<number | bigint>,
|
|
1666
|
-
collateralOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1667
|
-
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
1668
|
-
tradingPairOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1669
|
-
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
1670
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
1671
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
1672
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
1673
|
-
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1674
|
-
competitionConfig: RawTransactionArgument<string>
|
|
1675
|
-
];
|
|
1676
|
-
typeArguments: [string];
|
|
1677
|
-
}
|
|
1678
|
-
export declare function executeOrder_(options: ExecuteOrder_Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1679
|
-
export interface ExecuteOptionCollateralOrder_Arguments {
|
|
1680
|
-
version: RawTransactionArgument<string>;
|
|
1681
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
1682
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1683
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1684
|
-
symbolMarket: RawTransactionArgument<string>;
|
|
1685
|
-
liquidityPool: RawTransactionArgument<string>;
|
|
1686
|
-
order: RawTransactionArgument<string>;
|
|
1687
|
-
protocolFeeShareBp: RawTransactionArgument<number | bigint>;
|
|
1688
|
-
collateralOraclePrice: RawTransactionArgument<number | bigint>;
|
|
1689
|
-
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>;
|
|
1690
|
-
tradingPairOraclePrice: RawTransactionArgument<number | bigint>;
|
|
1691
|
-
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>;
|
|
1692
|
-
tradingFeeMbp: RawTransactionArgument<number | bigint>;
|
|
1693
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
1694
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
1695
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
1696
|
-
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
1697
|
-
competitionConfig: RawTransactionArgument<string>;
|
|
1698
|
-
}
|
|
1699
|
-
export interface ExecuteOptionCollateralOrder_Options {
|
|
1700
|
-
package?: string;
|
|
1701
|
-
arguments: ExecuteOptionCollateralOrder_Arguments | [
|
|
1702
|
-
version: RawTransactionArgument<string>,
|
|
1703
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
1704
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1705
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1706
|
-
symbolMarket: RawTransactionArgument<string>,
|
|
1707
|
-
liquidityPool: RawTransactionArgument<string>,
|
|
1708
|
-
order: RawTransactionArgument<string>,
|
|
1709
|
-
protocolFeeShareBp: RawTransactionArgument<number | bigint>,
|
|
1710
|
-
collateralOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1711
|
-
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
1712
|
-
tradingPairOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1713
|
-
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
1714
|
-
tradingFeeMbp: RawTransactionArgument<number | bigint>,
|
|
1715
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
1716
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
1717
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
1718
|
-
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1719
|
-
competitionConfig: RawTransactionArgument<string>
|
|
1720
|
-
];
|
|
1721
|
-
typeArguments: [string, string];
|
|
1722
|
-
}
|
|
1723
|
-
export declare function executeOptionCollateralOrder_(options: ExecuteOptionCollateralOrder_Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1724
|
-
export interface RemoveLinkedOrdersArguments {
|
|
1725
|
-
version: RawTransactionArgument<string>;
|
|
1726
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1727
|
-
symbolMarket: RawTransactionArgument<string>;
|
|
1728
|
-
linkedOrderIds: RawTransactionArgument<number | bigint[]>;
|
|
1729
|
-
linkedOrderPrices: RawTransactionArgument<number | bigint[]>;
|
|
1730
|
-
user: RawTransactionArgument<string>;
|
|
1731
|
-
}
|
|
1732
|
-
export interface RemoveLinkedOrdersOptions {
|
|
1733
|
-
package?: string;
|
|
1734
|
-
arguments: RemoveLinkedOrdersArguments | [
|
|
1735
|
-
version: RawTransactionArgument<string>,
|
|
1736
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1737
|
-
symbolMarket: RawTransactionArgument<string>,
|
|
1738
|
-
linkedOrderIds: RawTransactionArgument<number | bigint[]>,
|
|
1739
|
-
linkedOrderPrices: RawTransactionArgument<number | bigint[]>,
|
|
1740
|
-
user: RawTransactionArgument<string>
|
|
1741
|
-
];
|
|
1742
|
-
typeArguments: [string];
|
|
1743
|
-
}
|
|
1744
|
-
export declare function removeLinkedOrders(options: RemoveLinkedOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1745
|
-
export interface RemoveLinkedOrder_Arguments {
|
|
1746
|
-
version: RawTransactionArgument<string>;
|
|
1747
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1748
|
-
symbolMarket: RawTransactionArgument<string>;
|
|
1749
|
-
order: RawTransactionArgument<string>;
|
|
1750
|
-
user: RawTransactionArgument<string>;
|
|
1751
|
-
}
|
|
1752
|
-
export interface RemoveLinkedOrder_Options {
|
|
1753
|
-
package?: string;
|
|
1754
|
-
arguments: RemoveLinkedOrder_Arguments | [
|
|
1755
|
-
version: RawTransactionArgument<string>,
|
|
1756
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1757
|
-
symbolMarket: RawTransactionArgument<string>,
|
|
1758
|
-
order: RawTransactionArgument<string>,
|
|
1759
|
-
user: RawTransactionArgument<string>
|
|
1760
|
-
];
|
|
1761
|
-
typeArguments: [string];
|
|
1762
|
-
}
|
|
1763
|
-
export declare function removeLinkedOrder_(options: RemoveLinkedOrder_Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1764
|
-
export interface GetMutOrdersArguments {
|
|
1765
|
-
symbolMarket: RawTransactionArgument<string>;
|
|
1766
|
-
isTokenCollateral: RawTransactionArgument<boolean>;
|
|
1767
|
-
orderTypeTag: RawTransactionArgument<number>;
|
|
1768
|
-
}
|
|
1769
|
-
export interface GetMutOrdersOptions {
|
|
1770
|
-
package?: string;
|
|
1771
|
-
arguments: GetMutOrdersArguments | [
|
|
1772
|
-
symbolMarket: RawTransactionArgument<string>,
|
|
1773
|
-
isTokenCollateral: RawTransactionArgument<boolean>,
|
|
1774
|
-
orderTypeTag: RawTransactionArgument<number>
|
|
1775
|
-
];
|
|
1776
|
-
}
|
|
1777
|
-
export declare function getMutOrders(options: GetMutOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1778
|
-
export interface GetOrdersArguments {
|
|
1779
|
-
symbolMarket: RawTransactionArgument<string>;
|
|
1780
|
-
isTokenCollateral: RawTransactionArgument<boolean>;
|
|
1781
|
-
orderTypeTag: RawTransactionArgument<number>;
|
|
1782
|
-
}
|
|
1783
|
-
export interface GetOrdersOptions {
|
|
1784
|
-
package?: string;
|
|
1785
|
-
arguments: GetOrdersArguments | [
|
|
1786
|
-
symbolMarket: RawTransactionArgument<string>,
|
|
1787
|
-
isTokenCollateral: RawTransactionArgument<boolean>,
|
|
1788
|
-
orderTypeTag: RawTransactionArgument<number>
|
|
1789
|
-
];
|
|
1790
|
-
}
|
|
1791
|
-
export declare function getOrders(options: GetOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1792
|
-
export interface TakeOrderByOrderIdAndPriceArguments {
|
|
1793
|
-
symbolMarket: RawTransactionArgument<string>;
|
|
1794
|
-
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
1795
|
-
orderId: RawTransactionArgument<number | bigint>;
|
|
1796
|
-
isTokenCollateral: RawTransactionArgument<boolean>;
|
|
1797
|
-
user: RawTransactionArgument<string>;
|
|
1798
|
-
}
|
|
1799
|
-
export interface TakeOrderByOrderIdAndPriceOptions {
|
|
1800
|
-
package?: string;
|
|
1801
|
-
arguments: TakeOrderByOrderIdAndPriceArguments | [
|
|
1802
|
-
symbolMarket: RawTransactionArgument<string>,
|
|
1803
|
-
triggerPrice: RawTransactionArgument<number | bigint>,
|
|
1804
|
-
orderId: RawTransactionArgument<number | bigint>,
|
|
1805
|
-
isTokenCollateral: RawTransactionArgument<boolean>,
|
|
1806
|
-
user: RawTransactionArgument<string>
|
|
1807
|
-
];
|
|
1808
|
-
}
|
|
1809
|
-
export declare function takeOrderByOrderIdAndPrice(options: TakeOrderByOrderIdAndPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1810
|
-
export interface GetLinkedPositionArguments {
|
|
1811
|
-
symbolMarket: RawTransactionArgument<string>;
|
|
1812
|
-
linkedPositionId: RawTransactionArgument<number | bigint | null>;
|
|
1813
|
-
user: RawTransactionArgument<string>;
|
|
1814
|
-
}
|
|
1815
|
-
export interface GetLinkedPositionOptions {
|
|
1816
|
-
package?: string;
|
|
1817
|
-
arguments: GetLinkedPositionArguments | [
|
|
1818
|
-
symbolMarket: RawTransactionArgument<string>,
|
|
1819
|
-
linkedPositionId: RawTransactionArgument<number | bigint | null>,
|
|
1820
|
-
user: RawTransactionArgument<string>
|
|
1821
|
-
];
|
|
1822
|
-
}
|
|
1823
|
-
export declare function getLinkedPosition(options: GetLinkedPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1824
|
-
export interface CheckCollateralEnoughWhenAddingPositionArguments {
|
|
1825
|
-
symbolMarket: RawTransactionArgument<string>;
|
|
1826
|
-
order: RawTransactionArgument<string>;
|
|
1827
|
-
collateralOraclePrice: RawTransactionArgument<number | bigint>;
|
|
1828
|
-
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>;
|
|
1829
|
-
tradingPairOraclePrice: RawTransactionArgument<number | bigint>;
|
|
1830
|
-
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>;
|
|
1831
|
-
tradingFeeMbp: RawTransactionArgument<number | bigint>;
|
|
1832
|
-
}
|
|
1833
|
-
export interface CheckCollateralEnoughWhenAddingPositionOptions {
|
|
1834
|
-
package?: string;
|
|
1835
|
-
arguments: CheckCollateralEnoughWhenAddingPositionArguments | [
|
|
1836
|
-
symbolMarket: RawTransactionArgument<string>,
|
|
1837
|
-
order: RawTransactionArgument<string>,
|
|
1838
|
-
collateralOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1839
|
-
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
1840
|
-
tradingPairOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1841
|
-
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
1842
|
-
tradingFeeMbp: RawTransactionArgument<number | bigint>
|
|
1843
|
-
];
|
|
1844
|
-
typeArguments: [string];
|
|
1845
|
-
}
|
|
1846
|
-
export declare function checkCollateralEnoughWhenAddingPosition(options: CheckCollateralEnoughWhenAddingPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1847
|
-
export interface CheckCollateralEnoughWhenReducingPositionArguments {
|
|
1848
|
-
symbolMarket: RawTransactionArgument<string>;
|
|
1849
|
-
order: RawTransactionArgument<string>;
|
|
1850
|
-
collateralOraclePrice: RawTransactionArgument<number | bigint>;
|
|
1851
|
-
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>;
|
|
1852
|
-
tradingPairOraclePrice: RawTransactionArgument<number | bigint>;
|
|
1853
|
-
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>;
|
|
1854
|
-
tradingFeeMbp: RawTransactionArgument<number | bigint>;
|
|
1855
|
-
}
|
|
1856
|
-
export interface CheckCollateralEnoughWhenReducingPositionOptions {
|
|
1857
|
-
package?: string;
|
|
1858
|
-
arguments: CheckCollateralEnoughWhenReducingPositionArguments | [
|
|
1859
|
-
symbolMarket: RawTransactionArgument<string>,
|
|
1860
|
-
order: RawTransactionArgument<string>,
|
|
1861
|
-
collateralOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1862
|
-
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
1863
|
-
tradingPairOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1864
|
-
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
1865
|
-
tradingFeeMbp: RawTransactionArgument<number | bigint>
|
|
1866
|
-
];
|
|
1867
|
-
typeArguments: [string];
|
|
1868
|
-
}
|
|
1869
|
-
export declare function checkCollateralEnoughWhenReducingPosition(options: CheckCollateralEnoughWhenReducingPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1870
|
-
export interface CheckOptionCollateralEnoughArguments {
|
|
1871
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
1872
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1873
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1874
|
-
symbolMarket: RawTransactionArgument<string>;
|
|
1875
|
-
order: RawTransactionArgument<string>;
|
|
1876
|
-
collateralOraclePrice: RawTransactionArgument<number | bigint>;
|
|
1877
|
-
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>;
|
|
1878
|
-
tradingPairOraclePrice: RawTransactionArgument<number | bigint>;
|
|
1879
|
-
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>;
|
|
1880
|
-
tradingFeeMbp: RawTransactionArgument<number | bigint>;
|
|
1881
|
-
}
|
|
1882
|
-
export interface CheckOptionCollateralEnoughOptions {
|
|
1883
|
-
package?: string;
|
|
1884
|
-
arguments: CheckOptionCollateralEnoughArguments | [
|
|
1885
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
1886
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1887
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1888
|
-
symbolMarket: RawTransactionArgument<string>,
|
|
1889
|
-
order: RawTransactionArgument<string>,
|
|
1890
|
-
collateralOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1891
|
-
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
1892
|
-
tradingPairOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1893
|
-
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
1894
|
-
tradingFeeMbp: RawTransactionArgument<number | bigint>
|
|
1895
|
-
];
|
|
1896
|
-
typeArguments: [string];
|
|
1897
|
-
}
|
|
1898
|
-
export declare function checkOptionCollateralEnough(options: CheckOptionCollateralEnoughOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1899
|
-
export interface CheckReserveEnoughArguments {
|
|
1900
|
-
symbolMarket: RawTransactionArgument<string>;
|
|
1901
|
-
liquidityPool: RawTransactionArgument<string>;
|
|
1902
|
-
order: RawTransactionArgument<string>;
|
|
1903
|
-
collateralOraclePrice: RawTransactionArgument<number | bigint>;
|
|
1904
|
-
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>;
|
|
1905
|
-
tradingPairOraclePrice: RawTransactionArgument<number | bigint>;
|
|
1906
|
-
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>;
|
|
1907
|
-
}
|
|
1908
|
-
export interface CheckReserveEnoughOptions {
|
|
1909
|
-
package?: string;
|
|
1910
|
-
arguments: CheckReserveEnoughArguments | [
|
|
1911
|
-
symbolMarket: RawTransactionArgument<string>,
|
|
1912
|
-
liquidityPool: RawTransactionArgument<string>,
|
|
1913
|
-
order: RawTransactionArgument<string>,
|
|
1914
|
-
collateralOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1915
|
-
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
1916
|
-
tradingPairOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1917
|
-
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>
|
|
1918
|
-
];
|
|
1919
|
-
typeArguments: [string];
|
|
1920
|
-
}
|
|
1921
|
-
export declare function checkReserveEnough(options: CheckReserveEnoughOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1922
|
-
export interface AdjustMarketInfoUserOrderSizeArguments {
|
|
1923
|
-
symbolMarket: RawTransactionArgument<string>;
|
|
1924
|
-
long: RawTransactionArgument<boolean>;
|
|
1925
|
-
filledOrCancelled: RawTransactionArgument<boolean>;
|
|
1926
|
-
size: RawTransactionArgument<number | bigint>;
|
|
1927
|
-
}
|
|
1928
|
-
export interface AdjustMarketInfoUserOrderSizeOptions {
|
|
1929
|
-
package?: string;
|
|
1930
|
-
arguments: AdjustMarketInfoUserOrderSizeArguments | [
|
|
1931
|
-
symbolMarket: RawTransactionArgument<string>,
|
|
1932
|
-
long: RawTransactionArgument<boolean>,
|
|
1933
|
-
filledOrCancelled: RawTransactionArgument<boolean>,
|
|
1934
|
-
size: RawTransactionArgument<number | bigint>
|
|
1935
|
-
];
|
|
1936
|
-
}
|
|
1937
|
-
export declare function adjustMarketInfoUserOrderSize(options: AdjustMarketInfoUserOrderSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1938
|
-
export interface AdjustMarketInfoUserPositionSizeArguments {
|
|
1939
|
-
symbolMarket: RawTransactionArgument<string>;
|
|
1940
|
-
filledOrderIsLong: RawTransactionArgument<boolean>;
|
|
1941
|
-
reducingPosition: RawTransactionArgument<boolean>;
|
|
1942
|
-
size: RawTransactionArgument<number | bigint>;
|
|
1943
|
-
}
|
|
1944
|
-
export interface AdjustMarketInfoUserPositionSizeOptions {
|
|
1945
|
-
package?: string;
|
|
1946
|
-
arguments: AdjustMarketInfoUserPositionSizeArguments | [
|
|
1947
|
-
symbolMarket: RawTransactionArgument<string>,
|
|
1948
|
-
filledOrderIsLong: RawTransactionArgument<boolean>,
|
|
1949
|
-
reducingPosition: RawTransactionArgument<boolean>,
|
|
1950
|
-
size: RawTransactionArgument<number | bigint>
|
|
1951
|
-
];
|
|
1952
|
-
}
|
|
1953
|
-
export declare function adjustMarketInfoUserPositionSize(options: AdjustMarketInfoUserPositionSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1954
|
-
export interface ExerciseBidReceiptsArguments {
|
|
1955
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
1956
|
-
bidReceipts: RawTransactionArgument<string[]>;
|
|
1957
|
-
}
|
|
1958
|
-
export interface ExerciseBidReceiptsOptions {
|
|
1959
|
-
package?: string;
|
|
1960
|
-
arguments: ExerciseBidReceiptsArguments | [dovRegistry: RawTransactionArgument<string>, bidReceipts: RawTransactionArgument<string[]>];
|
|
1961
|
-
typeArguments: [string, string];
|
|
1962
|
-
}
|
|
1963
|
-
export declare function exerciseBidReceipts(options: ExerciseBidReceiptsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1964
|
-
export interface ReturnToUserArguments {
|
|
1965
|
-
marketId: RawTransactionArgument<string>;
|
|
1966
|
-
balance: RawTransactionArgument<string>;
|
|
1967
|
-
user: RawTransactionArgument<string>;
|
|
1968
|
-
}
|
|
1969
|
-
export interface ReturnToUserOptions {
|
|
1970
|
-
package?: string;
|
|
1971
|
-
arguments: ReturnToUserArguments | [marketId: RawTransactionArgument<string>, balance: RawTransactionArgument<string>, user: RawTransactionArgument<string>];
|
|
1972
|
-
typeArguments: [string];
|
|
1973
|
-
}
|
|
1974
|
-
export declare function returnToUser(options: ReturnToUserOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1975
|
-
export interface CheckPositionUserMatchedArguments {
|
|
1976
|
-
position: RawTransactionArgument<string>;
|
|
1977
|
-
user: RawTransactionArgument<string>;
|
|
1978
|
-
}
|
|
1979
|
-
export interface CheckPositionUserMatchedOptions {
|
|
1980
|
-
package?: string;
|
|
1981
|
-
arguments: CheckPositionUserMatchedArguments | [position: RawTransactionArgument<string>, user: RawTransactionArgument<string>];
|
|
1982
|
-
}
|
|
1983
|
-
export declare function checkPositionUserMatched(options: CheckPositionUserMatchedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1984
|
-
export interface GetUserOrdersArguments {
|
|
1985
|
-
version: RawTransactionArgument<string>;
|
|
1986
|
-
registry: RawTransactionArgument<string>;
|
|
1987
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1988
|
-
user: RawTransactionArgument<string>;
|
|
1989
|
-
}
|
|
1990
|
-
export interface GetUserOrdersOptions {
|
|
1991
|
-
package?: string;
|
|
1992
|
-
arguments: GetUserOrdersArguments | [
|
|
1993
|
-
version: RawTransactionArgument<string>,
|
|
1994
|
-
registry: RawTransactionArgument<string>,
|
|
1995
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1996
|
-
user: RawTransactionArgument<string>
|
|
1997
|
-
];
|
|
1998
|
-
}
|
|
1999
|
-
/** [View Function] Gets the user's orders. */
|
|
2000
|
-
export declare function getUserOrders(options: GetUserOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2001
|
-
export interface GetUserPositionsArguments {
|
|
2002
|
-
version: RawTransactionArgument<string>;
|
|
2003
|
-
registry: RawTransactionArgument<string>;
|
|
2004
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2005
|
-
user: RawTransactionArgument<string>;
|
|
2006
|
-
}
|
|
2007
|
-
export interface GetUserPositionsOptions {
|
|
2008
|
-
package?: string;
|
|
2009
|
-
arguments: GetUserPositionsArguments | [
|
|
2010
|
-
version: RawTransactionArgument<string>,
|
|
2011
|
-
registry: RawTransactionArgument<string>,
|
|
2012
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2013
|
-
user: RawTransactionArgument<string>
|
|
2014
|
-
];
|
|
2015
|
-
}
|
|
2016
|
-
/** [View Function] Gets the user's positions. */
|
|
2017
|
-
export declare function getUserPositions(options: GetUserPositionsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2018
|
-
export interface GetAllPositionsArguments {
|
|
2019
|
-
version: RawTransactionArgument<string>;
|
|
2020
|
-
registry: RawTransactionArgument<string>;
|
|
2021
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2022
|
-
slice: RawTransactionArgument<number | bigint>;
|
|
2023
|
-
page: RawTransactionArgument<number | bigint>;
|
|
2024
|
-
}
|
|
2025
|
-
export interface GetAllPositionsOptions {
|
|
2026
|
-
package?: string;
|
|
2027
|
-
arguments: GetAllPositionsArguments | [
|
|
2028
|
-
version: RawTransactionArgument<string>,
|
|
2029
|
-
registry: RawTransactionArgument<string>,
|
|
2030
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2031
|
-
slice: RawTransactionArgument<number | bigint>,
|
|
2032
|
-
page: RawTransactionArgument<number | bigint>
|
|
2033
|
-
];
|
|
2034
|
-
typeArguments: [string];
|
|
2035
|
-
}
|
|
2036
|
-
/** [View Function] Gets all positions. */
|
|
2037
|
-
export declare function getAllPositions(options: GetAllPositionsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2038
|
-
export interface GetActiveOrdersByOrderTagArguments {
|
|
2039
|
-
version: RawTransactionArgument<string>;
|
|
2040
|
-
registry: RawTransactionArgument<string>;
|
|
2041
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2042
|
-
orderTypeTag: RawTransactionArgument<number>;
|
|
2043
|
-
}
|
|
2044
|
-
export interface GetActiveOrdersByOrderTagOptions {
|
|
2045
|
-
package?: string;
|
|
2046
|
-
arguments: GetActiveOrdersByOrderTagArguments | [
|
|
2047
|
-
version: RawTransactionArgument<string>,
|
|
2048
|
-
registry: RawTransactionArgument<string>,
|
|
2049
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2050
|
-
orderTypeTag: RawTransactionArgument<number>
|
|
2051
|
-
];
|
|
2052
|
-
typeArguments: [string];
|
|
2053
|
-
}
|
|
2054
|
-
/** [View Function] Gets active orders by order type tag. */
|
|
2055
|
-
export declare function getActiveOrdersByOrderTag(options: GetActiveOrdersByOrderTagOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2056
|
-
export interface GetActiveOrdersByOrderTagAndCtokenArguments {
|
|
2057
|
-
version: RawTransactionArgument<string>;
|
|
2058
|
-
registry: RawTransactionArgument<string>;
|
|
2059
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2060
|
-
orderTypeTag: RawTransactionArgument<number>;
|
|
2061
|
-
}
|
|
2062
|
-
export interface GetActiveOrdersByOrderTagAndCtokenOptions {
|
|
2063
|
-
package?: string;
|
|
2064
|
-
arguments: GetActiveOrdersByOrderTagAndCtokenArguments | [
|
|
2065
|
-
version: RawTransactionArgument<string>,
|
|
2066
|
-
registry: RawTransactionArgument<string>,
|
|
2067
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2068
|
-
orderTypeTag: RawTransactionArgument<number>
|
|
2069
|
-
];
|
|
2070
|
-
typeArguments: [string, string];
|
|
2071
|
-
}
|
|
2072
|
-
/** [View Function] Gets active orders by order type tag and collateral token. */
|
|
2073
|
-
export declare function getActiveOrdersByOrderTagAndCtoken(options: GetActiveOrdersByOrderTagAndCtokenOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2074
|
-
export interface GetMaxReleasingCollateralAmountArguments {
|
|
2075
|
-
version: RawTransactionArgument<string>;
|
|
2076
|
-
registry: RawTransactionArgument<string>;
|
|
2077
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2078
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2079
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2080
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2081
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2082
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
2083
|
-
}
|
|
2084
|
-
export interface GetMaxReleasingCollateralAmountOptions {
|
|
2085
|
-
package?: string;
|
|
2086
|
-
arguments: GetMaxReleasingCollateralAmountArguments | [
|
|
2087
|
-
version: RawTransactionArgument<string>,
|
|
2088
|
-
registry: RawTransactionArgument<string>,
|
|
2089
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2090
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2091
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2092
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2093
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2094
|
-
positionId: RawTransactionArgument<number | bigint>
|
|
2095
|
-
];
|
|
2096
|
-
typeArguments: [string, string];
|
|
2097
|
-
}
|
|
2098
|
-
/**
|
|
2099
|
-
* [View Function] Gets the maximum amount of collateral that can be released from
|
|
2100
|
-
* a position.
|
|
2101
|
-
*/
|
|
2102
|
-
export declare function getMaxReleasingCollateralAmount(options: GetMaxReleasingCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2103
|
-
export interface GetEstimatedLiquidationPriceAndPnlArguments {
|
|
2104
|
-
version: RawTransactionArgument<string>;
|
|
2105
|
-
registry: RawTransactionArgument<string>;
|
|
2106
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2107
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
2108
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2109
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2110
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2111
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2112
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
2113
|
-
}
|
|
2114
|
-
export interface GetEstimatedLiquidationPriceAndPnlOptions {
|
|
2115
|
-
package?: string;
|
|
2116
|
-
arguments: GetEstimatedLiquidationPriceAndPnlArguments | [
|
|
2117
|
-
version: RawTransactionArgument<string>,
|
|
2118
|
-
registry: RawTransactionArgument<string>,
|
|
2119
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2120
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
2121
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2122
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2123
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2124
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2125
|
-
positionId: RawTransactionArgument<number | bigint>
|
|
2126
|
-
];
|
|
2127
|
-
typeArguments: [string, string];
|
|
2128
|
-
}
|
|
2129
|
-
/** [View Functio Only] Gets the estimated liquidation price and PnL for a position. */
|
|
2130
|
-
export declare function getEstimatedLiquidationPriceAndPnl(options: GetEstimatedLiquidationPriceAndPnlOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2131
|
-
export interface CalculateTradingFeeRateMbpArguments {
|
|
2132
|
-
formulaVersion: RawTransactionArgument<number | bigint>;
|
|
2133
|
-
userLongPositionSize: RawTransactionArgument<number | bigint>;
|
|
2134
|
-
userShortPositionSize: RawTransactionArgument<number | bigint>;
|
|
2135
|
-
tvlUsd: RawTransactionArgument<number | bigint>;
|
|
2136
|
-
sizeDecimal: RawTransactionArgument<number | bigint>;
|
|
2137
|
-
tradingPairOraclePrice: RawTransactionArgument<number | bigint>;
|
|
2138
|
-
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>;
|
|
2139
|
-
orderSide: RawTransactionArgument<boolean>;
|
|
2140
|
-
orderSize: RawTransactionArgument<number | bigint>;
|
|
2141
|
-
tradingFeeConfig: RawTransactionArgument<number | bigint[]>;
|
|
2142
|
-
}
|
|
2143
|
-
export interface CalculateTradingFeeRateMbpOptions {
|
|
2144
|
-
package?: string;
|
|
2145
|
-
arguments: CalculateTradingFeeRateMbpArguments | [
|
|
2146
|
-
formulaVersion: RawTransactionArgument<number | bigint>,
|
|
2147
|
-
userLongPositionSize: RawTransactionArgument<number | bigint>,
|
|
2148
|
-
userShortPositionSize: RawTransactionArgument<number | bigint>,
|
|
2149
|
-
tvlUsd: RawTransactionArgument<number | bigint>,
|
|
2150
|
-
sizeDecimal: RawTransactionArgument<number | bigint>,
|
|
2151
|
-
tradingPairOraclePrice: RawTransactionArgument<number | bigint>,
|
|
2152
|
-
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
2153
|
-
orderSide: RawTransactionArgument<boolean>,
|
|
2154
|
-
orderSize: RawTransactionArgument<number | bigint>,
|
|
2155
|
-
tradingFeeConfig: RawTransactionArgument<number | bigint[]>
|
|
2156
|
-
];
|
|
2157
|
-
}
|
|
2158
|
-
export declare function calculateTradingFeeRateMbp(options: CalculateTradingFeeRateMbpOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2159
|
-
export interface GetMarketsBcsArguments {
|
|
2160
|
-
registry: RawTransactionArgument<string>;
|
|
2161
|
-
indexes: RawTransactionArgument<number | bigint[]>;
|
|
2162
|
-
}
|
|
2163
|
-
export interface GetMarketsBcsOptions {
|
|
2164
|
-
package?: string;
|
|
2165
|
-
arguments: GetMarketsBcsArguments | [registry: RawTransactionArgument<string>, indexes: RawTransactionArgument<number | bigint[]>];
|
|
2166
|
-
}
|
|
2167
|
-
/** [View Function] Gets the BCS-serialized markets. */
|
|
2168
|
-
export declare function getMarketsBcs(options: GetMarketsBcsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2169
|
-
export interface GetMutMarketIdArguments {
|
|
2170
|
-
registry: RawTransactionArgument<string>;
|
|
2171
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2172
|
-
}
|
|
2173
|
-
export interface GetMutMarketIdOptions {
|
|
2174
|
-
package?: string;
|
|
2175
|
-
arguments: GetMutMarketIdArguments | [registry: RawTransactionArgument<string>, marketIndex: RawTransactionArgument<number | bigint>];
|
|
2176
|
-
}
|
|
2177
|
-
/** Gets a mutable reference to the market ID. WARNING: no authority check inside */
|
|
2178
|
-
export declare function getMutMarketId(options: GetMutMarketIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2179
|
-
export interface TradingSymbolExistsArguments {
|
|
2180
|
-
market: RawTransactionArgument<string>;
|
|
2181
|
-
}
|
|
2182
|
-
export interface TradingSymbolExistsOptions {
|
|
2183
|
-
package?: string;
|
|
2184
|
-
arguments: TradingSymbolExistsArguments | [market: RawTransactionArgument<string>];
|
|
2185
|
-
typeArguments: [string];
|
|
2186
|
-
}
|
|
2187
|
-
export declare function tradingSymbolExists(options: TradingSymbolExistsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2188
|
-
export interface DeprecatedOptions {
|
|
2189
|
-
package?: string;
|
|
2190
|
-
arguments?: [];
|
|
2191
|
-
}
|
|
2192
|
-
export declare function deprecated(options?: DeprecatedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2193
|
-
export interface CreateTradingOrderArguments {
|
|
2194
|
-
version: RawTransactionArgument<string>;
|
|
2195
|
-
registry: RawTransactionArgument<string>;
|
|
2196
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2197
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2198
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2199
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2200
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2201
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
2202
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
2203
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
2204
|
-
linkedPositionId: RawTransactionArgument<number | bigint | null>;
|
|
2205
|
-
collateral: RawTransactionArgument<string>;
|
|
2206
|
-
reduceOnly: RawTransactionArgument<boolean>;
|
|
2207
|
-
isLong: RawTransactionArgument<boolean>;
|
|
2208
|
-
isStopOrder: RawTransactionArgument<boolean>;
|
|
2209
|
-
size: RawTransactionArgument<number | bigint>;
|
|
2210
|
-
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
2211
|
-
}
|
|
2212
|
-
export interface CreateTradingOrderOptions {
|
|
2213
|
-
package?: string;
|
|
2214
|
-
arguments: CreateTradingOrderArguments | [
|
|
2215
|
-
version: RawTransactionArgument<string>,
|
|
2216
|
-
registry: RawTransactionArgument<string>,
|
|
2217
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2218
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2219
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2220
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2221
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2222
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
2223
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
2224
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
2225
|
-
linkedPositionId: RawTransactionArgument<number | bigint | null>,
|
|
2226
|
-
collateral: RawTransactionArgument<string>,
|
|
2227
|
-
reduceOnly: RawTransactionArgument<boolean>,
|
|
2228
|
-
isLong: RawTransactionArgument<boolean>,
|
|
2229
|
-
isStopOrder: RawTransactionArgument<boolean>,
|
|
2230
|
-
size: RawTransactionArgument<number | bigint>,
|
|
2231
|
-
triggerPrice: RawTransactionArgument<number | bigint>
|
|
2232
|
-
];
|
|
2233
|
-
typeArguments: [string, string];
|
|
2234
|
-
}
|
|
2235
|
-
export declare function createTradingOrder(options: CreateTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2236
|
-
export interface MatchTradingOrderArguments {
|
|
2237
|
-
version: RawTransactionArgument<string>;
|
|
2238
|
-
registry: RawTransactionArgument<string>;
|
|
2239
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2240
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2241
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2242
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2243
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2244
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
2245
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
2246
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
2247
|
-
orderTypeTag: RawTransactionArgument<number>;
|
|
2248
|
-
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
2249
|
-
maxOperationCount: RawTransactionArgument<number | bigint>;
|
|
2250
|
-
}
|
|
2251
|
-
export interface MatchTradingOrderOptions {
|
|
2252
|
-
package?: string;
|
|
2253
|
-
arguments: MatchTradingOrderArguments | [
|
|
2254
|
-
version: RawTransactionArgument<string>,
|
|
2255
|
-
registry: RawTransactionArgument<string>,
|
|
2256
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2257
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2258
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2259
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2260
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2261
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
2262
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
2263
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
2264
|
-
orderTypeTag: RawTransactionArgument<number>,
|
|
2265
|
-
triggerPrice: RawTransactionArgument<number | bigint>,
|
|
2266
|
-
maxOperationCount: RawTransactionArgument<number | bigint>
|
|
2267
|
-
];
|
|
2268
|
-
typeArguments: [string, string];
|
|
2269
|
-
}
|
|
2270
|
-
export declare function matchTradingOrder(options: MatchTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2271
|
-
export interface ManagerReducePositionArguments {
|
|
2272
|
-
version: RawTransactionArgument<string>;
|
|
2273
|
-
registry: RawTransactionArgument<string>;
|
|
2274
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2275
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2276
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2277
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2278
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2279
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
2280
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
2281
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
2282
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
2283
|
-
reducedRatioBp: RawTransactionArgument<number | bigint>;
|
|
2284
|
-
}
|
|
2285
|
-
export interface ManagerReducePositionOptions {
|
|
2286
|
-
package?: string;
|
|
2287
|
-
arguments: ManagerReducePositionArguments | [
|
|
2288
|
-
version: RawTransactionArgument<string>,
|
|
2289
|
-
registry: RawTransactionArgument<string>,
|
|
2290
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2291
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2292
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2293
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2294
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2295
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
2296
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
2297
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
2298
|
-
positionId: RawTransactionArgument<number | bigint>,
|
|
2299
|
-
reducedRatioBp: RawTransactionArgument<number | bigint>
|
|
2300
|
-
];
|
|
2301
|
-
typeArguments: [string, string];
|
|
2302
|
-
}
|
|
2303
|
-
export declare function managerReducePosition(options: ManagerReducePositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2304
|
-
export interface CreateTradingOrderWithBidReceiptArguments {
|
|
2305
|
-
version: RawTransactionArgument<string>;
|
|
2306
|
-
registry: RawTransactionArgument<string>;
|
|
2307
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2308
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
2309
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2310
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2311
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2312
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2313
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
2314
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
2315
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
2316
|
-
collateralBidReceipt: RawTransactionArgument<string>;
|
|
2317
|
-
isLong: RawTransactionArgument<boolean>;
|
|
2318
|
-
user: RawTransactionArgument<string>;
|
|
2319
|
-
}
|
|
2320
|
-
export interface CreateTradingOrderWithBidReceiptOptions {
|
|
2321
|
-
package?: string;
|
|
2322
|
-
arguments: CreateTradingOrderWithBidReceiptArguments | [
|
|
2323
|
-
version: RawTransactionArgument<string>,
|
|
2324
|
-
registry: RawTransactionArgument<string>,
|
|
2325
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2326
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
2327
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2328
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2329
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2330
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2331
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
2332
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
2333
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
2334
|
-
collateralBidReceipt: RawTransactionArgument<string>,
|
|
2335
|
-
isLong: RawTransactionArgument<boolean>,
|
|
2336
|
-
user: RawTransactionArgument<string>
|
|
2337
|
-
];
|
|
2338
|
-
typeArguments: [string, string, string];
|
|
2339
|
-
}
|
|
2340
|
-
export declare function createTradingOrderWithBidReceipt(options: CreateTradingOrderWithBidReceiptOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2341
|
-
export interface CreateTradingOrderWithBidReceiptV2Arguments {
|
|
2342
|
-
version: RawTransactionArgument<string>;
|
|
2343
|
-
registry: RawTransactionArgument<string>;
|
|
2344
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2345
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
2346
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2347
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2348
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2349
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2350
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
2351
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
2352
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
2353
|
-
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
2354
|
-
competitionConfig: RawTransactionArgument<string>;
|
|
2355
|
-
collateralBidReceipt: RawTransactionArgument<string>;
|
|
2356
|
-
isLong: RawTransactionArgument<boolean>;
|
|
2357
|
-
user: RawTransactionArgument<string>;
|
|
2358
|
-
}
|
|
2359
|
-
export interface CreateTradingOrderWithBidReceiptV2Options {
|
|
2360
|
-
package?: string;
|
|
2361
|
-
arguments: CreateTradingOrderWithBidReceiptV2Arguments | [
|
|
2362
|
-
version: RawTransactionArgument<string>,
|
|
2363
|
-
registry: RawTransactionArgument<string>,
|
|
2364
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2365
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
2366
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2367
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2368
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2369
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2370
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
2371
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
2372
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
2373
|
-
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
2374
|
-
competitionConfig: RawTransactionArgument<string>,
|
|
2375
|
-
collateralBidReceipt: RawTransactionArgument<string>,
|
|
2376
|
-
isLong: RawTransactionArgument<boolean>,
|
|
2377
|
-
user: RawTransactionArgument<string>
|
|
2378
|
-
];
|
|
2379
|
-
typeArguments: [string, string, string];
|
|
2380
|
-
}
|
|
2381
|
-
export declare function createTradingOrderWithBidReceiptV2(options: CreateTradingOrderWithBidReceiptV2Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2382
|
-
export interface ReduceOptionCollateralPositionSizeArguments {
|
|
2383
|
-
version: RawTransactionArgument<string>;
|
|
2384
|
-
registry: RawTransactionArgument<string>;
|
|
2385
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2386
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
2387
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2388
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2389
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2390
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2391
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
2392
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
2393
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
2394
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
2395
|
-
orderSize: RawTransactionArgument<number | bigint | null>;
|
|
2396
|
-
}
|
|
2397
|
-
export interface ReduceOptionCollateralPositionSizeOptions {
|
|
2398
|
-
package?: string;
|
|
2399
|
-
arguments: ReduceOptionCollateralPositionSizeArguments | [
|
|
2400
|
-
version: RawTransactionArgument<string>,
|
|
2401
|
-
registry: RawTransactionArgument<string>,
|
|
2402
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2403
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
2404
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2405
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2406
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2407
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2408
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
2409
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
2410
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
2411
|
-
positionId: RawTransactionArgument<number | bigint>,
|
|
2412
|
-
orderSize: RawTransactionArgument<number | bigint | null>
|
|
2413
|
-
];
|
|
2414
|
-
typeArguments: [string, string, string];
|
|
2415
|
-
}
|
|
2416
|
-
export declare function reduceOptionCollateralPositionSize(options: ReduceOptionCollateralPositionSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2417
|
-
export interface ManagerRemovePositionArguments {
|
|
2418
|
-
version: RawTransactionArgument<string>;
|
|
2419
|
-
registry: RawTransactionArgument<string>;
|
|
2420
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2421
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
2422
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2423
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2424
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2425
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2426
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
2427
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
2428
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
2429
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
2430
|
-
isOptionPosition: RawTransactionArgument<boolean>;
|
|
2431
|
-
process: RawTransactionArgument<string>;
|
|
2432
|
-
}
|
|
2433
|
-
export interface ManagerRemovePositionOptions {
|
|
2434
|
-
package?: string;
|
|
2435
|
-
arguments: ManagerRemovePositionArguments | [
|
|
2436
|
-
version: RawTransactionArgument<string>,
|
|
2437
|
-
registry: RawTransactionArgument<string>,
|
|
2438
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2439
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
2440
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2441
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2442
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2443
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2444
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
2445
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
2446
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
2447
|
-
positionId: RawTransactionArgument<number | bigint>,
|
|
2448
|
-
isOptionPosition: RawTransactionArgument<boolean>,
|
|
2449
|
-
process: RawTransactionArgument<string>
|
|
2450
|
-
];
|
|
2451
|
-
typeArguments: [string, string, string];
|
|
2452
|
-
}
|
|
2453
|
-
export declare function managerRemovePosition(options: ManagerRemovePositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2454
|
-
export interface ManagerCloseOptionPositionArguments {
|
|
2455
|
-
version: RawTransactionArgument<string>;
|
|
2456
|
-
registry: RawTransactionArgument<string>;
|
|
2457
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2458
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
2459
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2460
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2461
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2462
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2463
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
2464
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
2465
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
2466
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
2467
|
-
}
|
|
2468
|
-
export interface ManagerCloseOptionPositionOptions {
|
|
2469
|
-
package?: string;
|
|
2470
|
-
arguments: ManagerCloseOptionPositionArguments | [
|
|
2471
|
-
version: RawTransactionArgument<string>,
|
|
2472
|
-
registry: RawTransactionArgument<string>,
|
|
2473
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2474
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
2475
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2476
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2477
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2478
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2479
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
2480
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
2481
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
2482
|
-
positionId: RawTransactionArgument<number | bigint>
|
|
2483
|
-
];
|
|
2484
|
-
typeArguments: [string, string, string];
|
|
2485
|
-
}
|
|
2486
|
-
export declare function managerCloseOptionPosition(options: ManagerCloseOptionPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|