@typus/typus-perp-sdk 1.1.29 → 1.1.30-codegen
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/api/sentio.js +604 -538
- package/dist/src/client.d.ts +27 -0
- package/dist/src/client.js +108 -0
- package/dist/src/fetch.d.ts +160 -34
- package/dist/src/fetch.js +365 -665
- package/dist/src/generated/typus_perp/admin.d.ts +117 -0
- package/dist/src/generated/typus_perp/admin.js +110 -0
- package/dist/src/generated/typus_perp/competition.d.ts +22 -0
- package/dist/src/generated/typus_perp/competition.js +58 -0
- package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/typus_perp/deps/std/type_name.js +25 -0
- package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +12 -0
- package/dist/src/generated/typus_perp/deps/sui/balance.js +20 -0
- package/dist/src/generated/typus_perp/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_perp/deps/sui/object.js +16 -0
- package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +19 -0
- package/dist/src/generated/typus_perp/deps/sui/object_table.js +59 -0
- package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +18 -0
- package/dist/src/generated/typus_perp/deps/sui/vec_set.js +25 -0
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +30 -0
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +67 -0
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +32 -0
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +71 -0
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +23 -0
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +61 -0
- package/dist/src/generated/typus_perp/escrow.d.ts +59 -0
- package/dist/src/generated/typus_perp/escrow.js +76 -0
- package/dist/src/generated/typus_perp/lending.d.ts +47 -0
- package/dist/src/generated/typus_perp/lending.js +50 -0
- package/dist/src/generated/typus_perp/lp_pool.d.ts +2327 -0
- package/dist/src/generated/typus_perp/lp_pool.js +1956 -0
- package/dist/src/generated/typus_perp/math.d.ts +95 -0
- package/dist/src/generated/typus_perp/math.js +97 -0
- package/dist/src/generated/typus_perp/position.d.ts +234 -0
- package/dist/src/generated/typus_perp/position.js +204 -0
- package/dist/src/generated/typus_perp/symbol.d.ts +18 -0
- package/dist/src/generated/typus_perp/symbol.js +55 -0
- package/dist/src/generated/typus_perp/tlp.d.ts +13 -0
- package/dist/src/generated/typus_perp/tlp.js +56 -0
- package/dist/src/generated/typus_perp/trading.d.ts +2486 -0
- package/dist/src/generated/typus_perp/trading.js +2476 -0
- package/dist/src/generated/typus_perp/treasury_caps.d.ts +13 -0
- package/dist/src/{_framework/init-loader.js → generated/typus_perp/treasury_caps.js} +17 -10
- package/dist/src/generated/typus_perp/user_account.d.ts +40 -0
- package/dist/src/generated/typus_perp/user_account.js +72 -0
- package/dist/src/generated/typus_stake_pool/admin.d.ts +100 -0
- package/dist/src/generated/typus_stake_pool/admin.js +91 -0
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +25 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/object.js +16 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +30 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +37 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +18 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +25 -0
- package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +1023 -0
- package/dist/src/generated/typus_stake_pool/stake_pool.js +918 -0
- package/dist/src/generated/utils/index.d.ts +11 -0
- package/dist/src/generated/utils/index.js +135 -0
- package/dist/src/grpc/graphql.d.ts +26 -0
- package/dist/src/grpc/graphql.js +126 -0
- package/dist/src/grpc/grpc.d.ts +1 -0
- package/dist/src/grpc/grpc.js +38 -0
- package/dist/src/grpc/ledgerService.js +64 -0
- package/dist/src/grpc/liveDataService.d.ts +0 -0
- package/dist/src/grpc/liveDataService.js +49 -0
- package/dist/src/index.d.ts +1 -4
- package/dist/src/index.js +21 -39
- package/dist/src/user/history.js +611 -680
- package/dist/src/user/order.d.ts +11 -11
- package/dist/src/user/order.js +171 -302
- package/dist/src/user/orderWithBidReceipt.d.ts +8 -5
- package/dist/src/user/orderWithBidReceipt.js +127 -225
- package/dist/src/user/tlp.d.ts +32 -23
- package/dist/src/user/tlp.js +316 -468
- package/package.json +12 -3
- package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +0 -92
- package/dist/src/_dependencies/source/0x1/ascii/structs.js +0 -398
- package/dist/src/_dependencies/source/0x1/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0x1/index.js +0 -6
- package/dist/src/_dependencies/source/0x1/option/structs.d.ts +0 -52
- package/dist/src/_dependencies/source/0x1/option/structs.js +0 -271
- package/dist/src/_dependencies/source/0x1/string/structs.d.ts +0 -50
- package/dist/src/_dependencies/source/0x1/string/structs.js +0 -256
- package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +0 -53
- package/dist/src/_dependencies/source/0x1/type-name/structs.js +0 -223
- package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +0 -61
- package/dist/src/_dependencies/source/0x2/bag/structs.js +0 -229
- package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +0 -88
- package/dist/src/_dependencies/source/0x2/balance/structs.js +0 -386
- package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +0 -460
- package/dist/src/_dependencies/source/0x2/coin/structs.js +0 -1247
- package/dist/src/_dependencies/source/0x2/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0x2/index.js +0 -6
- package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +0 -153
- package/dist/src/_dependencies/source/0x2/linked-table/structs.js +0 -438
- package/dist/src/_dependencies/source/0x2/object/structs.d.ts +0 -92
- package/dist/src/_dependencies/source/0x2/object/structs.js +0 -364
- package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +0 -61
- package/dist/src/_dependencies/source/0x2/object-table/structs.js +0 -248
- package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0x2/sui/structs.js +0 -222
- package/dist/src/_dependencies/source/0x2/table/structs.d.ts +0 -61
- package/dist/src/_dependencies/source/0x2/table/structs.js +0 -248
- package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +0 -68
- package/dist/src/_dependencies/source/0x2/table-vec/structs.js +0 -274
- package/dist/src/_dependencies/source/0x2/token/structs.d.ts +0 -449
- package/dist/src/_dependencies/source/0x2/token/structs.js +0 -1095
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -370
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -1091
- package/dist/src/_dependencies/source/0x2/url/structs.d.ts +0 -53
- package/dist/src/_dependencies/source/0x2/url/structs.js +0 -223
- package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +0 -111
- package/dist/src/_dependencies/source/0x2/vec-map/structs.js +0 -446
- package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +0 -51
- package/dist/src/_dependencies/source/0x2/vec-set/structs.js +0 -270
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +0 -489
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.js +0 -1084
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +0 -147
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.js +0 -456
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +0 -239
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +0 -653
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +0 -405
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.js +0 -899
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.d.ts +0 -8
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.js +0 -11
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.js +0 -102
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.d.ts +0 -227
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.js +0 -632
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +0 -699
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.js +0 -1459
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.d.ts +0 -161
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.js +0 -438
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.d.ts +0 -147
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.js +0 -430
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +0 -1071
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.js +0 -2261
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +0 -279
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +0 -733
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +0 -328
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +0 -892
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +0 -88
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.js +0 -263
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +0 -347
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.js +0 -591
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +0 -73
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.js +0 -258
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +0 -876
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +0 -1721
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.js +0 -222
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.js +0 -6
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.js +0 -89
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.d.ts +0 -155
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.js +0 -444
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.d.ts +0 -2386
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.js +0 -4952
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +0 -446
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.js +0 -844
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.d.ts +0 -6
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.js +0 -9
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.js +0 -69
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.d.ts +0 -94
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.js +0 -376
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +0 -454
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.js +0 -881
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +0 -68
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.js +0 -274
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +0 -1117
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.js +0 -2387
- package/dist/src/_framework/init-loader.d.ts +0 -2
- package/dist/src/_framework/loader.d.ts +0 -17
- package/dist/src/_framework/loader.js +0 -108
- package/dist/src/_framework/reified.d.ts +0 -108
- package/dist/src/_framework/reified.js +0 -237
- package/dist/src/_framework/util.d.ts +0 -35
- package/dist/src/_framework/util.js +0 -396
- package/dist/src/_framework/vector.d.ts +0 -35
- package/dist/src/_framework/vector.js +0 -112
- package/dist/src/pyth.js +0 -1
- package/dist/src/typus_perp/admin/functions.d.ts +0 -59
- package/dist/src/typus_perp/admin/functions.js +0 -122
- package/dist/src/typus_perp/admin/structs.d.ts +0 -529
- package/dist/src/typus_perp/admin/structs.js +0 -1065
- package/dist/src/typus_perp/competition/functions.d.ts +0 -24
- package/dist/src/typus_perp/competition/functions.js +0 -38
- package/dist/src/typus_perp/competition/structs.d.ts +0 -92
- package/dist/src/typus_perp/competition/structs.js +0 -288
- package/dist/src/typus_perp/error/functions.d.ts +0 -73
- package/dist/src/typus_perp/error/functions.js +0 -363
- package/dist/src/typus_perp/escrow/functions.d.ts +0 -17
- package/dist/src/typus_perp/escrow/functions.js +0 -36
- package/dist/src/typus_perp/escrow/structs.d.ts +0 -172
- package/dist/src/typus_perp/escrow/structs.js +0 -324
- package/dist/src/typus_perp/index.d.ts +0 -1
- package/dist/src/typus_perp/index.js +0 -7
- package/dist/src/typus_perp/init.d.ts +0 -2
- package/dist/src/typus_perp/init.js +0 -118
- package/dist/src/typus_perp/lending/functions.d.ts +0 -15
- package/dist/src/typus_perp/lending/functions.js +0 -22
- package/dist/src/typus_perp/lp-pool/functions.d.ts +0 -460
- package/dist/src/typus_perp/lp-pool/functions.js +0 -732
- package/dist/src/typus_perp/lp-pool/structs.d.ts +0 -4268
- package/dist/src/typus_perp/lp-pool/structs.js +0 -6789
- package/dist/src/typus_perp/math/functions.d.ts +0 -29
- package/dist/src/typus_perp/math/functions.js +0 -61
- package/dist/src/typus_perp/position/functions.d.ts +0 -379
- package/dist/src/typus_perp/position/functions.js +0 -713
- package/dist/src/typus_perp/position/structs.d.ts +0 -1064
- package/dist/src/typus_perp/position/structs.js +0 -1450
- package/dist/src/typus_perp/symbol/functions.d.ts +0 -9
- package/dist/src/typus_perp/symbol/functions.js +0 -24
- package/dist/src/typus_perp/symbol/structs.d.ts +0 -81
- package/dist/src/typus_perp/symbol/structs.js +0 -235
- package/dist/src/typus_perp/tlp/functions.d.ts +0 -19
- package/dist/src/typus_perp/tlp/functions.js +0 -40
- package/dist/src/typus_perp/tlp/structs.d.ts +0 -97
- package/dist/src/typus_perp/tlp/structs.js +0 -365
- package/dist/src/typus_perp/token-interface/functions.d.ts +0 -11
- package/dist/src/typus_perp/token-interface/functions.js +0 -22
- package/dist/src/typus_perp/trading/functions.d.ts +0 -812
- package/dist/src/typus_perp/trading/functions.js +0 -1218
- package/dist/src/typus_perp/trading/structs.d.ts +0 -3613
- package/dist/src/typus_perp/trading/structs.js +0 -5813
- package/dist/src/typus_perp/treasury-caps/functions.d.ts +0 -9
- package/dist/src/typus_perp/treasury-caps/functions.js +0 -36
- package/dist/src/typus_perp/treasury-caps/structs.d.ts +0 -55
- package/dist/src/typus_perp/treasury-caps/structs.js +0 -223
- package/dist/src/typus_perp/user-account/functions.d.ts +0 -36
- package/dist/src/typus_perp/user-account/functions.js +0 -70
- package/dist/src/typus_perp/user-account/structs.d.ts +0 -168
- package/dist/src/typus_perp/user-account/structs.js +0 -448
- package/dist/src/typus_stake_pool/admin/functions.d.ts +0 -49
- package/dist/src/typus_stake_pool/admin/functions.js +0 -105
- package/dist/src/typus_stake_pool/admin/structs.d.ts +0 -413
- package/dist/src/typus_stake_pool/admin/structs.js +0 -789
- package/dist/src/typus_stake_pool/index.d.ts +0 -1
- package/dist/src/typus_stake_pool/index.js +0 -7
- package/dist/src/typus_stake_pool/init.d.ts +0 -2
- package/dist/src/typus_stake_pool/init.js +0 -69
- package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +0 -229
- package/dist/src/typus_stake_pool/stake-pool/functions.js +0 -380
- package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +0 -2477
- package/dist/src/typus_stake_pool/stake-pool/structs.js +0 -4653
- /package/dist/src/{pyth.d.ts → grpc/ledgerService.d.ts} +0 -0
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
2
|
-
export interface AmountToUsdArgs {
|
|
3
|
-
amount: bigint | TransactionArgument;
|
|
4
|
-
amountDecimal: bigint | TransactionArgument;
|
|
5
|
-
price: bigint | TransactionArgument;
|
|
6
|
-
priceDecimal: bigint | TransactionArgument;
|
|
7
|
-
}
|
|
8
|
-
export declare function amountToUsd(tx: Transaction, args: AmountToUsdArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
9
|
-
export declare function getFundingRateDecimal(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
10
|
-
export interface GetU64VectorValueArgs {
|
|
11
|
-
u64Vector: Array<bigint | TransactionArgument> | TransactionArgument;
|
|
12
|
-
i: bigint | TransactionArgument;
|
|
13
|
-
}
|
|
14
|
-
export declare function getU64VectorValue(tx: Transaction, args: GetU64VectorValueArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
15
|
-
export declare function getUsdDecimal(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
16
|
-
export declare function multiplier(tx: Transaction, decimal: bigint | TransactionArgument, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
17
|
-
export interface SetU64VectorValueArgs {
|
|
18
|
-
u64Vector: Array<bigint | TransactionArgument> | TransactionArgument;
|
|
19
|
-
i: bigint | TransactionArgument;
|
|
20
|
-
value: bigint | TransactionArgument;
|
|
21
|
-
}
|
|
22
|
-
export declare function setU64VectorValue(tx: Transaction, args: SetU64VectorValueArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
23
|
-
export interface UsdToAmountArgs {
|
|
24
|
-
usd: bigint | TransactionArgument;
|
|
25
|
-
amountDecimal: bigint | TransactionArgument;
|
|
26
|
-
price: bigint | TransactionArgument;
|
|
27
|
-
priceDecimal: bigint | TransactionArgument;
|
|
28
|
-
}
|
|
29
|
-
export declare function usdToAmount(tx: Transaction, args: UsdToAmountArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.amountToUsd = amountToUsd;
|
|
4
|
-
exports.getFundingRateDecimal = getFundingRateDecimal;
|
|
5
|
-
exports.getU64VectorValue = getU64VectorValue;
|
|
6
|
-
exports.getUsdDecimal = getUsdDecimal;
|
|
7
|
-
exports.multiplier = multiplier;
|
|
8
|
-
exports.setU64VectorValue = setU64VectorValue;
|
|
9
|
-
exports.usdToAmount = usdToAmount;
|
|
10
|
-
var __1 = require("..");
|
|
11
|
-
var util_1 = require("../../_framework/util");
|
|
12
|
-
function amountToUsd(tx, args, published_at) {
|
|
13
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
14
|
-
return tx.moveCall({
|
|
15
|
-
target: "".concat(published_at, "::math::amount_to_usd"),
|
|
16
|
-
arguments: [
|
|
17
|
-
(0, util_1.pure)(tx, args.amount, "u64"),
|
|
18
|
-
(0, util_1.pure)(tx, args.amountDecimal, "u64"),
|
|
19
|
-
(0, util_1.pure)(tx, args.price, "u64"),
|
|
20
|
-
(0, util_1.pure)(tx, args.priceDecimal, "u64"),
|
|
21
|
-
],
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
function getFundingRateDecimal(tx, published_at) {
|
|
25
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
26
|
-
return tx.moveCall({ target: "".concat(published_at, "::math::get_funding_rate_decimal"), arguments: [] });
|
|
27
|
-
}
|
|
28
|
-
function getU64VectorValue(tx, args, published_at) {
|
|
29
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
30
|
-
return tx.moveCall({
|
|
31
|
-
target: "".concat(published_at, "::math::get_u64_vector_value"),
|
|
32
|
-
arguments: [(0, util_1.pure)(tx, args.u64Vector, "vector<u64>"), (0, util_1.pure)(tx, args.i, "u64")],
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
function getUsdDecimal(tx, published_at) {
|
|
36
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
37
|
-
return tx.moveCall({ target: "".concat(published_at, "::math::get_usd_decimal"), arguments: [] });
|
|
38
|
-
}
|
|
39
|
-
function multiplier(tx, decimal, published_at) {
|
|
40
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
41
|
-
return tx.moveCall({ target: "".concat(published_at, "::math::multiplier"), arguments: [(0, util_1.pure)(tx, decimal, "u64")] });
|
|
42
|
-
}
|
|
43
|
-
function setU64VectorValue(tx, args, published_at) {
|
|
44
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
45
|
-
return tx.moveCall({
|
|
46
|
-
target: "".concat(published_at, "::math::set_u64_vector_value"),
|
|
47
|
-
arguments: [(0, util_1.pure)(tx, args.u64Vector, "vector<u64>"), (0, util_1.pure)(tx, args.i, "u64"), (0, util_1.pure)(tx, args.value, "u64")],
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
function usdToAmount(tx, args, published_at) {
|
|
51
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
52
|
-
return tx.moveCall({
|
|
53
|
-
target: "".concat(published_at, "::math::usd_to_amount"),
|
|
54
|
-
arguments: [
|
|
55
|
-
(0, util_1.pure)(tx, args.usd, "u64"),
|
|
56
|
-
(0, util_1.pure)(tx, args.amountDecimal, "u64"),
|
|
57
|
-
(0, util_1.pure)(tx, args.price, "u64"),
|
|
58
|
-
(0, util_1.pure)(tx, args.priceDecimal, "u64"),
|
|
59
|
-
],
|
|
60
|
-
});
|
|
61
|
-
}
|
|
@@ -1,379 +0,0 @@
|
|
|
1
|
-
import { Transaction, TransactionArgument, TransactionObjectInput } from "@mysten/sui/transactions";
|
|
2
|
-
export interface AddPositionLinkedOrderInfoArgs {
|
|
3
|
-
position: TransactionObjectInput;
|
|
4
|
-
linkedOrderId: bigint | TransactionArgument;
|
|
5
|
-
linkedOrderPrice: bigint | TransactionArgument;
|
|
6
|
-
}
|
|
7
|
-
export declare function addPositionLinkedOrderInfo(tx: Transaction, args: AddPositionLinkedOrderInfoArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
8
|
-
export interface CalculateFilled_Args {
|
|
9
|
-
position: TransactionObjectInput;
|
|
10
|
-
reduceOnly: boolean | TransactionArgument;
|
|
11
|
-
orderSide: boolean | TransactionArgument;
|
|
12
|
-
orderSize: bigint | TransactionArgument;
|
|
13
|
-
tradingPairOraclePrice: bigint | TransactionArgument;
|
|
14
|
-
tradingPairOraclePriceDecimal: bigint | TransactionArgument;
|
|
15
|
-
}
|
|
16
|
-
export declare function calculateFilled_(tx: Transaction, args: CalculateFilled_Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
17
|
-
export interface CalculateIntrinsicValueArgs {
|
|
18
|
-
dovRegistry: TransactionObjectInput;
|
|
19
|
-
typusOracleTradingSymbol: TransactionObjectInput;
|
|
20
|
-
typusOracleCToken: TransactionObjectInput;
|
|
21
|
-
receipts: Array<TransactionObjectInput> | TransactionArgument;
|
|
22
|
-
clock: TransactionObjectInput;
|
|
23
|
-
}
|
|
24
|
-
export declare function calculateIntrinsicValue(tx: Transaction, typeArg: string, args: CalculateIntrinsicValueArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
25
|
-
export interface CalculatePositionFundingRateArgs {
|
|
26
|
-
position: TransactionObjectInput;
|
|
27
|
-
collateralOraclePrice: bigint | TransactionArgument;
|
|
28
|
-
collateralOraclePriceDecimal: bigint | TransactionArgument;
|
|
29
|
-
tradingPairOraclePrice: bigint | TransactionArgument;
|
|
30
|
-
tradingPairOraclePriceDecimal: bigint | TransactionArgument;
|
|
31
|
-
cumulativeFundingRateIndexSign: boolean | TransactionArgument;
|
|
32
|
-
cumulativeFundingRateIndex: bigint | TransactionArgument;
|
|
33
|
-
}
|
|
34
|
-
export declare function calculatePositionFundingRate(tx: Transaction, args: CalculatePositionFundingRateArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
35
|
-
export interface CalculateRealizedPnlUsdArgs {
|
|
36
|
-
side: boolean | TransactionArgument;
|
|
37
|
-
size: bigint | TransactionArgument;
|
|
38
|
-
entryPrice: bigint | TransactionArgument;
|
|
39
|
-
exitPrice: bigint | TransactionArgument;
|
|
40
|
-
sizeDecimal: bigint | TransactionArgument;
|
|
41
|
-
priceDecimal: bigint | TransactionArgument;
|
|
42
|
-
}
|
|
43
|
-
export declare function calculateRealizedPnlUsd(tx: Transaction, args: CalculateRealizedPnlUsdArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
44
|
-
export interface CalculateTradingFeeArgs {
|
|
45
|
-
size: bigint | TransactionArgument;
|
|
46
|
-
sizeDecimal: bigint | TransactionArgument;
|
|
47
|
-
collateralOraclePrice: bigint | TransactionArgument;
|
|
48
|
-
collateralOraclePriceDecimal: bigint | TransactionArgument;
|
|
49
|
-
tradingPairOraclePrice: bigint | TransactionArgument;
|
|
50
|
-
tradingPairOraclePriceDecimal: bigint | TransactionArgument;
|
|
51
|
-
tradingFeeMbp: bigint | TransactionArgument;
|
|
52
|
-
collateralTokenDecimal: bigint | TransactionArgument;
|
|
53
|
-
}
|
|
54
|
-
export declare function calculateTradingFee(tx: Transaction, args: CalculateTradingFeeArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
55
|
-
export declare function calculateUnrealizedCost(tx: Transaction, position: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
56
|
-
export interface CalculateUnrealizedPnlArgs {
|
|
57
|
-
position: TransactionObjectInput;
|
|
58
|
-
tradingPairOraclePrice: bigint | TransactionArgument;
|
|
59
|
-
tradingPairOraclePriceDecimal: bigint | TransactionArgument;
|
|
60
|
-
tradingFeeMbp: bigint | TransactionArgument;
|
|
61
|
-
}
|
|
62
|
-
export declare function calculateUnrealizedPnl(tx: Transaction, args: CalculateUnrealizedPnlArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
63
|
-
export interface CheckOptionCollateralPositionLiquidatedArgs {
|
|
64
|
-
dovRegistry: TransactionObjectInput;
|
|
65
|
-
typusOracleTradingSymbol: TransactionObjectInput;
|
|
66
|
-
typusOracleCToken: TransactionObjectInput;
|
|
67
|
-
position: TransactionObjectInput;
|
|
68
|
-
collateralOraclePrice: bigint | TransactionArgument;
|
|
69
|
-
collateralOraclePriceDecimal: bigint | TransactionArgument;
|
|
70
|
-
tradingPairOraclePrice: bigint | TransactionArgument;
|
|
71
|
-
tradingPairOraclePriceDecimal: bigint | TransactionArgument;
|
|
72
|
-
tradingFeeMbp: bigint | TransactionArgument;
|
|
73
|
-
maintenanceMarginRateBp: bigint | TransactionArgument;
|
|
74
|
-
cumulativeBorrowRate: bigint | TransactionArgument;
|
|
75
|
-
clock: TransactionObjectInput;
|
|
76
|
-
}
|
|
77
|
-
export declare function checkOptionCollateralPositionLiquidated(tx: Transaction, typeArg: string, args: CheckOptionCollateralPositionLiquidatedArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
78
|
-
export interface CheckOrderFilledArgs {
|
|
79
|
-
order: TransactionObjectInput;
|
|
80
|
-
oraclePrice: bigint | TransactionArgument;
|
|
81
|
-
}
|
|
82
|
-
export declare function checkOrderFilled(tx: Transaction, args: CheckOrderFilledArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
83
|
-
export interface CheckPositionLiquidatedArgs {
|
|
84
|
-
position: TransactionObjectInput;
|
|
85
|
-
collateralOraclePrice: bigint | TransactionArgument;
|
|
86
|
-
collateralOraclePriceDecimal: bigint | TransactionArgument;
|
|
87
|
-
tradingPairOraclePrice: bigint | TransactionArgument;
|
|
88
|
-
tradingPairOraclePriceDecimal: bigint | TransactionArgument;
|
|
89
|
-
tradingFeeMbp: bigint | TransactionArgument;
|
|
90
|
-
maintenanceMarginRateBp: bigint | TransactionArgument;
|
|
91
|
-
cumulativeBorrowRate: bigint | TransactionArgument;
|
|
92
|
-
cumulativeFundingRateIndexSign: boolean | TransactionArgument;
|
|
93
|
-
cumulativeFundingRateIndex: bigint | TransactionArgument;
|
|
94
|
-
}
|
|
95
|
-
export declare function checkPositionLiquidated(tx: Transaction, args: CheckPositionLiquidatedArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
96
|
-
export interface CollateralWithPnlArgs {
|
|
97
|
-
position: TransactionObjectInput;
|
|
98
|
-
collateralOraclePrice: bigint | TransactionArgument;
|
|
99
|
-
collateralOraclePriceDecimal: bigint | TransactionArgument;
|
|
100
|
-
tradingPairOraclePrice: bigint | TransactionArgument;
|
|
101
|
-
tradingPairOraclePriceDecimal: bigint | TransactionArgument;
|
|
102
|
-
tradingFeeMbp: bigint | TransactionArgument;
|
|
103
|
-
}
|
|
104
|
-
export declare function collateralWithPnl(tx: Transaction, args: CollateralWithPnlArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
105
|
-
export interface CreateOrderArgs {
|
|
106
|
-
version: TransactionObjectInput;
|
|
107
|
-
symbol: TransactionObjectInput;
|
|
108
|
-
leverageMbp: bigint | TransactionArgument;
|
|
109
|
-
reduceOnly: boolean | TransactionArgument;
|
|
110
|
-
isLong: boolean | TransactionArgument;
|
|
111
|
-
isStopOrder: boolean | TransactionArgument;
|
|
112
|
-
size: bigint | TransactionArgument;
|
|
113
|
-
sizeDecimal: bigint | TransactionArgument;
|
|
114
|
-
triggerPrice: bigint | TransactionArgument;
|
|
115
|
-
collateral: TransactionObjectInput;
|
|
116
|
-
collateralTokenDecimal: bigint | TransactionArgument;
|
|
117
|
-
linkedPositionId: bigint | TransactionArgument | TransactionArgument | null;
|
|
118
|
-
orderId: bigint | TransactionArgument;
|
|
119
|
-
oraclePrice: bigint | TransactionArgument;
|
|
120
|
-
clock: TransactionObjectInput;
|
|
121
|
-
}
|
|
122
|
-
export declare function createOrder(tx: Transaction, typeArg: string, args: CreateOrderArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
123
|
-
export interface CreateOrderWithBidReceiptsArgs {
|
|
124
|
-
version: TransactionObjectInput;
|
|
125
|
-
symbol: TransactionObjectInput;
|
|
126
|
-
portfolioIndex: bigint | TransactionArgument;
|
|
127
|
-
depositToken: TransactionObjectInput;
|
|
128
|
-
leverageMbp: bigint | TransactionArgument;
|
|
129
|
-
reduceOnly: boolean | TransactionArgument;
|
|
130
|
-
isLong: boolean | TransactionArgument;
|
|
131
|
-
isStopOrder: boolean | TransactionArgument;
|
|
132
|
-
size: bigint | TransactionArgument;
|
|
133
|
-
sizeDecimal: bigint | TransactionArgument;
|
|
134
|
-
triggerPrice: bigint | TransactionArgument;
|
|
135
|
-
collateralBidReceipts: Array<TransactionObjectInput> | TransactionArgument;
|
|
136
|
-
depositTokenDecimal: bigint | TransactionArgument;
|
|
137
|
-
linkedPositionId: bigint | TransactionArgument | TransactionArgument | null;
|
|
138
|
-
orderId: bigint | TransactionArgument;
|
|
139
|
-
oraclePrice: bigint | TransactionArgument;
|
|
140
|
-
user: string | TransactionArgument;
|
|
141
|
-
clock: TransactionObjectInput;
|
|
142
|
-
}
|
|
143
|
-
export declare function createOrderWithBidReceipts(tx: Transaction, args: CreateOrderWithBidReceiptsArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
144
|
-
export interface EmitRealizedFundingEventArgs {
|
|
145
|
-
user: string | TransactionArgument;
|
|
146
|
-
collateralToken: TransactionObjectInput;
|
|
147
|
-
symbol: TransactionObjectInput;
|
|
148
|
-
positionId: bigint | TransactionArgument;
|
|
149
|
-
realizedFundingSign: boolean | TransactionArgument;
|
|
150
|
-
realizedFundingFee: bigint | TransactionArgument;
|
|
151
|
-
realizedFundingFeeUsd: bigint | TransactionArgument;
|
|
152
|
-
u64Padding: Array<bigint | TransactionArgument> | TransactionArgument;
|
|
153
|
-
}
|
|
154
|
-
export declare function emitRealizedFundingEvent(tx: Transaction, args: EmitRealizedFundingEventArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
155
|
-
export interface GetEstimatedLiquidationPriceArgs {
|
|
156
|
-
position: TransactionObjectInput;
|
|
157
|
-
isSameToken: boolean | TransactionArgument;
|
|
158
|
-
collateralOraclePrice: bigint | TransactionArgument;
|
|
159
|
-
collateralOraclePriceDecimal: bigint | TransactionArgument;
|
|
160
|
-
tradingOraclePriceDecimal: bigint | TransactionArgument;
|
|
161
|
-
tradingFeeMbp: bigint | TransactionArgument;
|
|
162
|
-
maintenanceMarginRateBp: bigint | TransactionArgument;
|
|
163
|
-
}
|
|
164
|
-
export declare function getEstimatedLiquidationPrice(tx: Transaction, args: GetEstimatedLiquidationPriceArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
165
|
-
export declare function getMaxOrderTypeTag(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
166
|
-
export interface GetOptionCollateralOrderCollateralAmountArgs {
|
|
167
|
-
dovRegistry: TransactionObjectInput;
|
|
168
|
-
typusOracleTradingSymbol: TransactionObjectInput;
|
|
169
|
-
typusOracleCToken: TransactionObjectInput;
|
|
170
|
-
order: TransactionObjectInput;
|
|
171
|
-
clock: TransactionObjectInput;
|
|
172
|
-
}
|
|
173
|
-
export declare function getOptionCollateralOrderCollateralAmount(tx: Transaction, typeArg: string, args: GetOptionCollateralOrderCollateralAmountArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
174
|
-
export interface GetOptionPositionCollateralAmountArgs {
|
|
175
|
-
dovRegistry: TransactionObjectInput;
|
|
176
|
-
typusOracleTradingSymbol: TransactionObjectInput;
|
|
177
|
-
typusOracleCToken: TransactionObjectInput;
|
|
178
|
-
position: TransactionObjectInput;
|
|
179
|
-
clock: TransactionObjectInput;
|
|
180
|
-
}
|
|
181
|
-
export declare function getOptionPositionCollateralAmount(tx: Transaction, typeArg: string, args: GetOptionPositionCollateralAmountArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
182
|
-
export interface GetOptionPositionExerciseValueArgs {
|
|
183
|
-
dovRegistry: TransactionObjectInput;
|
|
184
|
-
typusOracleTradingSymbol: TransactionObjectInput;
|
|
185
|
-
typusOracleCToken: TransactionObjectInput;
|
|
186
|
-
position: TransactionObjectInput;
|
|
187
|
-
clock: TransactionObjectInput;
|
|
188
|
-
}
|
|
189
|
-
export declare function getOptionPositionExerciseValue(tx: Transaction, typeArg: string, args: GetOptionPositionExerciseValueArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
190
|
-
export declare function getOptionPositionPortfolioIndex(tx: Transaction, position: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
191
|
-
export declare function getOrderCollateralAmount(tx: Transaction, typeArg: string, order: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
192
|
-
export declare function getOrderCollateralToken(tx: Transaction, order: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
193
|
-
export declare function getOrderCollateralTokenDecimal(tx: Transaction, order: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
194
|
-
export interface GetOrderFilledFeeArgs {
|
|
195
|
-
order: TransactionObjectInput;
|
|
196
|
-
collateralOraclePrice: bigint | TransactionArgument;
|
|
197
|
-
collateralOraclePriceDecimal: bigint | TransactionArgument;
|
|
198
|
-
tradingPairOraclePrice: bigint | TransactionArgument;
|
|
199
|
-
tradingPairOraclePriceDecimal: bigint | TransactionArgument;
|
|
200
|
-
tradingFeeMbp: bigint | TransactionArgument;
|
|
201
|
-
}
|
|
202
|
-
export declare function getOrderFilledFee(tx: Transaction, args: GetOrderFilledFeeArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
203
|
-
export declare function getOrderId(tx: Transaction, order: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
204
|
-
export declare function getOrderLinkedPositionId(tx: Transaction, order: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
205
|
-
export declare function getOrderPortfolioIndex(tx: Transaction, order: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
206
|
-
export declare function getOrderPrice(tx: Transaction, order: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
207
|
-
export declare function getOrderReduceOnly(tx: Transaction, order: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
208
|
-
export declare function getOrderSide(tx: Transaction, order: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
209
|
-
export declare function getOrderSize(tx: Transaction, order: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
210
|
-
export declare function getOrderTradingSymbol(tx: Transaction, order: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
211
|
-
export declare function getOrderTypeTag(tx: Transaction, order: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
212
|
-
export declare function getOrderUser(tx: Transaction, order: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
213
|
-
export declare function getPositionCollateralAmount(tx: Transaction, typeArg: string, position: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
214
|
-
export declare function getPositionCollateralTokenDecimal(tx: Transaction, position: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
215
|
-
export declare function getPositionCollateralTokenType(tx: Transaction, position: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
216
|
-
export declare function getPositionId(tx: Transaction, position: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
217
|
-
export declare function getPositionLinkedOrderIds(tx: Transaction, position: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
218
|
-
export declare function getPositionOptionCollateralInfo(tx: Transaction, position: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
219
|
-
export declare function getPositionSide(tx: Transaction, position: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
220
|
-
export declare function getPositionSize(tx: Transaction, position: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
221
|
-
export declare function getPositionSizeDecimal(tx: Transaction, position: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
222
|
-
export declare function getPositionSymbol(tx: Transaction, position: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
223
|
-
export declare function getPositionUnrealizedFundingSign(tx: Transaction, position: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
224
|
-
export declare function getPositionUser(tx: Transaction, position: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
225
|
-
export declare function getReserveAmount(tx: Transaction, position: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
226
|
-
export interface IncreaseCollateralArgs {
|
|
227
|
-
position: TransactionObjectInput;
|
|
228
|
-
collateral: TransactionObjectInput;
|
|
229
|
-
collateralOraclePrice: bigint | TransactionArgument;
|
|
230
|
-
collateralOraclePriceDecimal: bigint | TransactionArgument;
|
|
231
|
-
tradingPairOraclePrice: bigint | TransactionArgument;
|
|
232
|
-
tradingPairOraclePriceDecimal: bigint | TransactionArgument;
|
|
233
|
-
}
|
|
234
|
-
export declare function increaseCollateral(tx: Transaction, typeArg: string, args: IncreaseCollateralArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
235
|
-
export declare function isOptionCollateralOrder(tx: Transaction, order: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
236
|
-
export declare function isOptionCollateralPosition(tx: Transaction, position: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
237
|
-
export interface ManagerCreateReduceOnlyOrderArgs {
|
|
238
|
-
version: TransactionObjectInput;
|
|
239
|
-
symbol: TransactionObjectInput;
|
|
240
|
-
isLong: boolean | TransactionArgument;
|
|
241
|
-
size: bigint | TransactionArgument;
|
|
242
|
-
sizeDecimal: bigint | TransactionArgument;
|
|
243
|
-
triggerPrice: bigint | TransactionArgument;
|
|
244
|
-
collateral: TransactionObjectInput;
|
|
245
|
-
collateralTokenDecimal: bigint | TransactionArgument;
|
|
246
|
-
linkedPositionId: bigint | TransactionArgument;
|
|
247
|
-
user: string | TransactionArgument;
|
|
248
|
-
orderId: bigint | TransactionArgument;
|
|
249
|
-
oraclePrice: bigint | TransactionArgument;
|
|
250
|
-
clock: TransactionObjectInput;
|
|
251
|
-
}
|
|
252
|
-
export declare function managerCreateReduceOnlyOrder(tx: Transaction, typeArg: string, args: ManagerCreateReduceOnlyOrderArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
253
|
-
export interface MaxReleasingCollateralAmountArgs {
|
|
254
|
-
position: TransactionObjectInput;
|
|
255
|
-
collateralOraclePrice: bigint | TransactionArgument;
|
|
256
|
-
collateralOraclePriceDecimal: bigint | TransactionArgument;
|
|
257
|
-
tradingPairOraclePrice: bigint | TransactionArgument;
|
|
258
|
-
tradingPairOraclePriceDecimal: bigint | TransactionArgument;
|
|
259
|
-
tradingFeeMbp: bigint | TransactionArgument;
|
|
260
|
-
cumulativeBorrowRate: bigint | TransactionArgument;
|
|
261
|
-
maxEntryLeverageMbp: bigint | TransactionArgument;
|
|
262
|
-
}
|
|
263
|
-
export declare function maxReleasingCollateralAmount(tx: Transaction, args: MaxReleasingCollateralAmountArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
264
|
-
export interface OptionPositionBidReceiptsExpiredArgs {
|
|
265
|
-
dovRegistry: TransactionObjectInput;
|
|
266
|
-
position: TransactionObjectInput;
|
|
267
|
-
}
|
|
268
|
-
export declare function optionPositionBidReceiptsExpired(tx: Transaction, args: OptionPositionBidReceiptsExpiredArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
269
|
-
export interface OrderFilledArgs {
|
|
270
|
-
version: TransactionObjectInput;
|
|
271
|
-
ecosystemVersion: TransactionObjectInput;
|
|
272
|
-
typusLeaderboardRegistry: TransactionObjectInput;
|
|
273
|
-
tailsStakingRegistry: TransactionObjectInput;
|
|
274
|
-
competitionConfig: TransactionObjectInput;
|
|
275
|
-
order: TransactionObjectInput;
|
|
276
|
-
originalPosition: TransactionObjectInput | TransactionArgument | null;
|
|
277
|
-
nextPositionId: bigint | TransactionArgument;
|
|
278
|
-
collateralOraclePrice: bigint | TransactionArgument;
|
|
279
|
-
collateralOraclePriceDecimal: bigint | TransactionArgument;
|
|
280
|
-
tradingPairOraclePrice: bigint | TransactionArgument;
|
|
281
|
-
tradingPairOraclePriceDecimal: bigint | TransactionArgument;
|
|
282
|
-
cumulativeBorrowRate: bigint | TransactionArgument;
|
|
283
|
-
cumulativeFundingRateIndexSign: boolean | TransactionArgument;
|
|
284
|
-
cumulativeFundingRateIndex: bigint | TransactionArgument;
|
|
285
|
-
tradingFeeMbp: bigint | TransactionArgument;
|
|
286
|
-
clock: TransactionObjectInput;
|
|
287
|
-
}
|
|
288
|
-
export declare function orderFilled(tx: Transaction, typeArg: string, args: OrderFilledArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
289
|
-
export interface OrderFilledWithBidReceiptsCollateralArgs {
|
|
290
|
-
version: TransactionObjectInput;
|
|
291
|
-
ecosystemVersion: TransactionObjectInput;
|
|
292
|
-
typusLeaderboardRegistry: TransactionObjectInput;
|
|
293
|
-
tailsStakingRegistry: TransactionObjectInput;
|
|
294
|
-
competitionConfig: TransactionObjectInput;
|
|
295
|
-
liquidityPool: TransactionObjectInput;
|
|
296
|
-
dovRegistry: TransactionObjectInput;
|
|
297
|
-
typusOracleTradingSymbol: TransactionObjectInput;
|
|
298
|
-
typusOracleCToken: TransactionObjectInput;
|
|
299
|
-
order: TransactionObjectInput;
|
|
300
|
-
originalPosition: TransactionObjectInput | TransactionArgument | null;
|
|
301
|
-
nextPositionId: bigint | TransactionArgument;
|
|
302
|
-
collateralOraclePrice: bigint | TransactionArgument;
|
|
303
|
-
collateralOraclePriceDecimal: bigint | TransactionArgument;
|
|
304
|
-
tradingPairOraclePrice: bigint | TransactionArgument;
|
|
305
|
-
tradingPairOraclePriceDecimal: bigint | TransactionArgument;
|
|
306
|
-
cumulativeBorrowRate: bigint | TransactionArgument;
|
|
307
|
-
cumulativeFundingRateIndexSign: boolean | TransactionArgument;
|
|
308
|
-
cumulativeFundingRateIndex: bigint | TransactionArgument;
|
|
309
|
-
tradingFeeMbp: bigint | TransactionArgument;
|
|
310
|
-
referralFeeRebateBp: bigint | TransactionArgument;
|
|
311
|
-
clock: TransactionObjectInput;
|
|
312
|
-
}
|
|
313
|
-
export declare function orderFilledWithBidReceiptsCollateral(tx: Transaction, typeArgs: [string, string], args: OrderFilledWithBidReceiptsCollateralArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
314
|
-
export interface RealizeFundingArgs {
|
|
315
|
-
position: TransactionObjectInput;
|
|
316
|
-
fundingIncome: TransactionObjectInput;
|
|
317
|
-
collateralOraclePrice: bigint | TransactionArgument;
|
|
318
|
-
collateralOraclePriceDecimal: bigint | TransactionArgument;
|
|
319
|
-
}
|
|
320
|
-
export declare function realizeFunding(tx: Transaction, typeArg: string, args: RealizeFundingArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
321
|
-
export interface ReleaseCollateralArgs {
|
|
322
|
-
position: TransactionObjectInput;
|
|
323
|
-
releaseAmount: bigint | TransactionArgument;
|
|
324
|
-
collateralOraclePrice: bigint | TransactionArgument;
|
|
325
|
-
collateralOraclePriceDecimal: bigint | TransactionArgument;
|
|
326
|
-
tradingPairOraclePrice: bigint | TransactionArgument;
|
|
327
|
-
tradingPairOraclePriceDecimal: bigint | TransactionArgument;
|
|
328
|
-
}
|
|
329
|
-
export declare function releaseCollateral(tx: Transaction, typeArg: string, args: ReleaseCollateralArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
330
|
-
export interface RemoveOrderArgs {
|
|
331
|
-
version: TransactionObjectInput;
|
|
332
|
-
order: TransactionObjectInput;
|
|
333
|
-
}
|
|
334
|
-
export declare function removeOrder(tx: Transaction, typeArg: string, args: RemoveOrderArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
335
|
-
export interface RemoveOrderWithBidReceiptsArgs {
|
|
336
|
-
version: TransactionObjectInput;
|
|
337
|
-
order: TransactionObjectInput;
|
|
338
|
-
}
|
|
339
|
-
export declare function removeOrderWithBidReceipts(tx: Transaction, args: RemoveOrderWithBidReceiptsArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
340
|
-
export interface RemovePositionArgs {
|
|
341
|
-
version: TransactionObjectInput;
|
|
342
|
-
position: TransactionObjectInput;
|
|
343
|
-
}
|
|
344
|
-
export declare function removePosition(tx: Transaction, typeArg: string, args: RemovePositionArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
345
|
-
export interface RemovePositionLinkedOrderInfoArgs {
|
|
346
|
-
position: TransactionObjectInput;
|
|
347
|
-
linkedOrderId: bigint | TransactionArgument;
|
|
348
|
-
}
|
|
349
|
-
export declare function removePositionLinkedOrderInfo(tx: Transaction, args: RemovePositionLinkedOrderInfoArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
350
|
-
export interface RemovePositionWithBidReceiptsArgs {
|
|
351
|
-
version: TransactionObjectInput;
|
|
352
|
-
position: TransactionObjectInput;
|
|
353
|
-
}
|
|
354
|
-
export declare function removePositionWithBidReceipts(tx: Transaction, args: RemovePositionWithBidReceiptsArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
355
|
-
export interface SplitBidReceiptArgs {
|
|
356
|
-
dovRegistry: TransactionObjectInput;
|
|
357
|
-
position: TransactionObjectInput;
|
|
358
|
-
size: bigint | TransactionArgument;
|
|
359
|
-
}
|
|
360
|
-
export declare function splitBidReceipt(tx: Transaction, args: SplitBidReceiptArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
361
|
-
export interface UpdateOptionPositionCollateralAmountArgs {
|
|
362
|
-
dovRegistry: TransactionObjectInput;
|
|
363
|
-
typusOracleTradingSymbol: TransactionObjectInput;
|
|
364
|
-
typusOracleCToken: TransactionObjectInput;
|
|
365
|
-
position: TransactionObjectInput;
|
|
366
|
-
clock: TransactionObjectInput;
|
|
367
|
-
}
|
|
368
|
-
export declare function updateOptionPositionCollateralAmount(tx: Transaction, typeArg: string, args: UpdateOptionPositionCollateralAmountArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
369
|
-
export interface UpdatePositionBorrowRateAndFundingRateArgs {
|
|
370
|
-
position: TransactionObjectInput;
|
|
371
|
-
collateralOraclePrice: bigint | TransactionArgument;
|
|
372
|
-
collateralOraclePriceDecimal: bigint | TransactionArgument;
|
|
373
|
-
tradingPairOraclePrice: bigint | TransactionArgument;
|
|
374
|
-
tradingPairOraclePriceDecimal: bigint | TransactionArgument;
|
|
375
|
-
cumulativeBorrowRate: bigint | TransactionArgument;
|
|
376
|
-
cumulativeFundingRateIndexSign: boolean | TransactionArgument;
|
|
377
|
-
cumulativeFundingRateIndex: bigint | TransactionArgument;
|
|
378
|
-
}
|
|
379
|
-
export declare function updatePositionBorrowRateAndFundingRate(tx: Transaction, args: UpdatePositionBorrowRateAndFundingRateArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|