@typus/typus-perp-sdk 1.1.27 → 1.1.28-codegen-test
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 +2328 -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 +0 -4
- package/dist/src/index.js +20 -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 +13 -4
- 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,3613 +0,0 @@
|
|
|
1
|
-
import * as reified from "../../_framework/reified";
|
|
2
|
-
import { Option } from "../../_dependencies/source/0x1/option/structs";
|
|
3
|
-
import { String } from "../../_dependencies/source/0x1/string/structs";
|
|
4
|
-
import { TypeName } from "../../_dependencies/source/0x1/type-name/structs";
|
|
5
|
-
import { ObjectTable } from "../../_dependencies/source/0x2/object-table/structs";
|
|
6
|
-
import { UID } from "../../_dependencies/source/0x2/object/structs";
|
|
7
|
-
import { KeyedBigVector } from "../../_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs";
|
|
8
|
-
import { LinkedObjectTable } from "../../_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs";
|
|
9
|
-
import { PhantomReified, Reified, StructClass, ToField, ToTypeStr, ToTypeStr as ToPhantom } from "../../_framework/reified";
|
|
10
|
-
import { FieldsWithTypes } from "../../_framework/util";
|
|
11
|
-
import { Vector } from "../../_framework/vector";
|
|
12
|
-
import { PKG_V1 } from "../index";
|
|
13
|
-
import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
|
|
14
|
-
export declare function isAddTradingSymbolEvent(type: string): boolean;
|
|
15
|
-
export interface AddTradingSymbolEventFields {
|
|
16
|
-
index: ToField<"u64">;
|
|
17
|
-
baseTokenType: ToField<TypeName>;
|
|
18
|
-
marketInfo: ToField<MarketInfo>;
|
|
19
|
-
marketConfig: ToField<MarketConfig>;
|
|
20
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
21
|
-
}
|
|
22
|
-
export type AddTradingSymbolEventReified = Reified<AddTradingSymbolEvent, AddTradingSymbolEventFields>;
|
|
23
|
-
export declare class AddTradingSymbolEvent implements StructClass {
|
|
24
|
-
__StructClass: true;
|
|
25
|
-
static readonly $typeName: string;
|
|
26
|
-
static readonly $numTypeParams = 0;
|
|
27
|
-
static readonly $isPhantom: readonly [];
|
|
28
|
-
readonly $typeName: string;
|
|
29
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::AddTradingSymbolEvent`;
|
|
30
|
-
readonly $typeArgs: [];
|
|
31
|
-
readonly $isPhantom: readonly [];
|
|
32
|
-
readonly index: ToField<"u64">;
|
|
33
|
-
readonly baseTokenType: ToField<TypeName>;
|
|
34
|
-
readonly marketInfo: ToField<MarketInfo>;
|
|
35
|
-
readonly marketConfig: ToField<MarketConfig>;
|
|
36
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
37
|
-
private constructor();
|
|
38
|
-
static reified(): AddTradingSymbolEventReified;
|
|
39
|
-
static get r(): reified.StructClassReified<AddTradingSymbolEvent, AddTradingSymbolEventFields>;
|
|
40
|
-
static phantom(): PhantomReified<ToTypeStr<AddTradingSymbolEvent>>;
|
|
41
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::AddTradingSymbolEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::AddTradingSymbolEvent">;
|
|
42
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
43
|
-
index: string;
|
|
44
|
-
base_token_type: {
|
|
45
|
-
name: {
|
|
46
|
-
bytes: number[];
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
market_info: {
|
|
50
|
-
is_active: boolean;
|
|
51
|
-
size_decimal: string;
|
|
52
|
-
user_long_position_size: string;
|
|
53
|
-
user_short_position_size: string;
|
|
54
|
-
next_position_id: string;
|
|
55
|
-
user_long_order_size: string;
|
|
56
|
-
user_short_order_size: string;
|
|
57
|
-
next_order_id: string;
|
|
58
|
-
last_funding_ts_ms: string;
|
|
59
|
-
cumulative_funding_rate_index_sign: boolean;
|
|
60
|
-
cumulative_funding_rate_index: string;
|
|
61
|
-
previous_last_funding_ts_ms: string;
|
|
62
|
-
previous_cumulative_funding_rate_index_sign: boolean;
|
|
63
|
-
previous_cumulative_funding_rate_index: string;
|
|
64
|
-
u64_padding: string[];
|
|
65
|
-
};
|
|
66
|
-
market_config: {
|
|
67
|
-
oracle_id: string;
|
|
68
|
-
max_leverage_mbp: string;
|
|
69
|
-
option_collateral_max_leverage_mbp: string;
|
|
70
|
-
min_size: string;
|
|
71
|
-
lot_size: string;
|
|
72
|
-
trading_fee_config: string[];
|
|
73
|
-
basic_funding_rate: string;
|
|
74
|
-
funding_interval_ts_ms: string;
|
|
75
|
-
exp_multiplier: string;
|
|
76
|
-
u64_padding: string[];
|
|
77
|
-
};
|
|
78
|
-
u64_padding: string[];
|
|
79
|
-
}, {
|
|
80
|
-
index: string | number | bigint;
|
|
81
|
-
base_token_type: {
|
|
82
|
-
name: {
|
|
83
|
-
bytes: Iterable<number> & {
|
|
84
|
-
length: number;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
market_info: {
|
|
89
|
-
is_active: boolean;
|
|
90
|
-
size_decimal: string | number | bigint;
|
|
91
|
-
user_long_position_size: string | number | bigint;
|
|
92
|
-
user_short_position_size: string | number | bigint;
|
|
93
|
-
next_position_id: string | number | bigint;
|
|
94
|
-
user_long_order_size: string | number | bigint;
|
|
95
|
-
user_short_order_size: string | number | bigint;
|
|
96
|
-
next_order_id: string | number | bigint;
|
|
97
|
-
last_funding_ts_ms: string | number | bigint;
|
|
98
|
-
cumulative_funding_rate_index_sign: boolean;
|
|
99
|
-
cumulative_funding_rate_index: string | number | bigint;
|
|
100
|
-
previous_last_funding_ts_ms: string | number | bigint;
|
|
101
|
-
previous_cumulative_funding_rate_index_sign: boolean;
|
|
102
|
-
previous_cumulative_funding_rate_index: string | number | bigint;
|
|
103
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
104
|
-
length: number;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
market_config: {
|
|
108
|
-
oracle_id: string;
|
|
109
|
-
max_leverage_mbp: string | number | bigint;
|
|
110
|
-
option_collateral_max_leverage_mbp: string | number | bigint;
|
|
111
|
-
min_size: string | number | bigint;
|
|
112
|
-
lot_size: string | number | bigint;
|
|
113
|
-
trading_fee_config: Iterable<string | number | bigint> & {
|
|
114
|
-
length: number;
|
|
115
|
-
};
|
|
116
|
-
basic_funding_rate: string | number | bigint;
|
|
117
|
-
funding_interval_ts_ms: string | number | bigint;
|
|
118
|
-
exp_multiplier: string | number | bigint;
|
|
119
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
120
|
-
length: number;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
124
|
-
length: number;
|
|
125
|
-
};
|
|
126
|
-
}>;
|
|
127
|
-
static fromFields(fields: Record<string, any>): AddTradingSymbolEvent;
|
|
128
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): AddTradingSymbolEvent;
|
|
129
|
-
static fromBcs(data: Uint8Array): AddTradingSymbolEvent;
|
|
130
|
-
toJSONField(): {
|
|
131
|
-
index: string;
|
|
132
|
-
baseTokenType: {
|
|
133
|
-
name: string;
|
|
134
|
-
};
|
|
135
|
-
marketInfo: {
|
|
136
|
-
isActive: boolean;
|
|
137
|
-
sizeDecimal: string;
|
|
138
|
-
userLongPositionSize: string;
|
|
139
|
-
userShortPositionSize: string;
|
|
140
|
-
nextPositionId: string;
|
|
141
|
-
userLongOrderSize: string;
|
|
142
|
-
userShortOrderSize: string;
|
|
143
|
-
nextOrderId: string;
|
|
144
|
-
lastFundingTsMs: string;
|
|
145
|
-
cumulativeFundingRateIndexSign: boolean;
|
|
146
|
-
cumulativeFundingRateIndex: string;
|
|
147
|
-
previousLastFundingTsMs: string;
|
|
148
|
-
previousCumulativeFundingRateIndexSign: boolean;
|
|
149
|
-
previousCumulativeFundingRateIndex: string;
|
|
150
|
-
u64Padding: string[];
|
|
151
|
-
};
|
|
152
|
-
marketConfig: {
|
|
153
|
-
oracleId: string;
|
|
154
|
-
maxLeverageMbp: string;
|
|
155
|
-
optionCollateralMaxLeverageMbp: string;
|
|
156
|
-
minSize: string;
|
|
157
|
-
lotSize: string;
|
|
158
|
-
tradingFeeConfig: string[];
|
|
159
|
-
basicFundingRate: string;
|
|
160
|
-
fundingIntervalTsMs: string;
|
|
161
|
-
expMultiplier: string;
|
|
162
|
-
u64Padding: string[];
|
|
163
|
-
};
|
|
164
|
-
u64Padding: string[];
|
|
165
|
-
};
|
|
166
|
-
toJSON(): {
|
|
167
|
-
index: string;
|
|
168
|
-
baseTokenType: {
|
|
169
|
-
name: string;
|
|
170
|
-
};
|
|
171
|
-
marketInfo: {
|
|
172
|
-
isActive: boolean;
|
|
173
|
-
sizeDecimal: string;
|
|
174
|
-
userLongPositionSize: string;
|
|
175
|
-
userShortPositionSize: string;
|
|
176
|
-
nextPositionId: string;
|
|
177
|
-
userLongOrderSize: string;
|
|
178
|
-
userShortOrderSize: string;
|
|
179
|
-
nextOrderId: string;
|
|
180
|
-
lastFundingTsMs: string;
|
|
181
|
-
cumulativeFundingRateIndexSign: boolean;
|
|
182
|
-
cumulativeFundingRateIndex: string;
|
|
183
|
-
previousLastFundingTsMs: string;
|
|
184
|
-
previousCumulativeFundingRateIndexSign: boolean;
|
|
185
|
-
previousCumulativeFundingRateIndex: string;
|
|
186
|
-
u64Padding: string[];
|
|
187
|
-
};
|
|
188
|
-
marketConfig: {
|
|
189
|
-
oracleId: string;
|
|
190
|
-
maxLeverageMbp: string;
|
|
191
|
-
optionCollateralMaxLeverageMbp: string;
|
|
192
|
-
minSize: string;
|
|
193
|
-
lotSize: string;
|
|
194
|
-
tradingFeeConfig: string[];
|
|
195
|
-
basicFundingRate: string;
|
|
196
|
-
fundingIntervalTsMs: string;
|
|
197
|
-
expMultiplier: string;
|
|
198
|
-
u64Padding: string[];
|
|
199
|
-
};
|
|
200
|
-
u64Padding: string[];
|
|
201
|
-
$typeName: string;
|
|
202
|
-
$typeArgs: [];
|
|
203
|
-
};
|
|
204
|
-
static fromJSONField(field: any): AddTradingSymbolEvent;
|
|
205
|
-
static fromJSON(json: Record<string, any>): AddTradingSymbolEvent;
|
|
206
|
-
static fromSuiParsedData(content: SuiParsedData): AddTradingSymbolEvent;
|
|
207
|
-
static fromSuiObjectData(data: SuiObjectData): AddTradingSymbolEvent;
|
|
208
|
-
static fetch(client: SuiClient, id: string): Promise<AddTradingSymbolEvent>;
|
|
209
|
-
}
|
|
210
|
-
export declare function isCancelTradingOrderEvent(type: string): boolean;
|
|
211
|
-
export interface CancelTradingOrderEventFields {
|
|
212
|
-
user: ToField<"address">;
|
|
213
|
-
marketIndex: ToField<"u64">;
|
|
214
|
-
orderId: ToField<"u64">;
|
|
215
|
-
triggerPrice: ToField<"u64">;
|
|
216
|
-
collateralToken: ToField<TypeName>;
|
|
217
|
-
baseToken: ToField<TypeName>;
|
|
218
|
-
releasedCollateralAmount: ToField<"u64">;
|
|
219
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
220
|
-
}
|
|
221
|
-
export type CancelTradingOrderEventReified = Reified<CancelTradingOrderEvent, CancelTradingOrderEventFields>;
|
|
222
|
-
export declare class CancelTradingOrderEvent implements StructClass {
|
|
223
|
-
__StructClass: true;
|
|
224
|
-
static readonly $typeName: string;
|
|
225
|
-
static readonly $numTypeParams = 0;
|
|
226
|
-
static readonly $isPhantom: readonly [];
|
|
227
|
-
readonly $typeName: string;
|
|
228
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::CancelTradingOrderEvent`;
|
|
229
|
-
readonly $typeArgs: [];
|
|
230
|
-
readonly $isPhantom: readonly [];
|
|
231
|
-
readonly user: ToField<"address">;
|
|
232
|
-
readonly marketIndex: ToField<"u64">;
|
|
233
|
-
readonly orderId: ToField<"u64">;
|
|
234
|
-
readonly triggerPrice: ToField<"u64">;
|
|
235
|
-
readonly collateralToken: ToField<TypeName>;
|
|
236
|
-
readonly baseToken: ToField<TypeName>;
|
|
237
|
-
readonly releasedCollateralAmount: ToField<"u64">;
|
|
238
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
239
|
-
private constructor();
|
|
240
|
-
static reified(): CancelTradingOrderEventReified;
|
|
241
|
-
static get r(): reified.StructClassReified<CancelTradingOrderEvent, CancelTradingOrderEventFields>;
|
|
242
|
-
static phantom(): PhantomReified<ToTypeStr<CancelTradingOrderEvent>>;
|
|
243
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::CancelTradingOrderEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::CancelTradingOrderEvent">;
|
|
244
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
245
|
-
user: string;
|
|
246
|
-
market_index: string;
|
|
247
|
-
order_id: string;
|
|
248
|
-
trigger_price: string;
|
|
249
|
-
collateral_token: {
|
|
250
|
-
name: {
|
|
251
|
-
bytes: number[];
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
base_token: {
|
|
255
|
-
name: {
|
|
256
|
-
bytes: number[];
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
released_collateral_amount: string;
|
|
260
|
-
u64_padding: string[];
|
|
261
|
-
}, {
|
|
262
|
-
user: string;
|
|
263
|
-
market_index: string | number | bigint;
|
|
264
|
-
order_id: string | number | bigint;
|
|
265
|
-
trigger_price: string | number | bigint;
|
|
266
|
-
collateral_token: {
|
|
267
|
-
name: {
|
|
268
|
-
bytes: Iterable<number> & {
|
|
269
|
-
length: number;
|
|
270
|
-
};
|
|
271
|
-
};
|
|
272
|
-
};
|
|
273
|
-
base_token: {
|
|
274
|
-
name: {
|
|
275
|
-
bytes: Iterable<number> & {
|
|
276
|
-
length: number;
|
|
277
|
-
};
|
|
278
|
-
};
|
|
279
|
-
};
|
|
280
|
-
released_collateral_amount: string | number | bigint;
|
|
281
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
282
|
-
length: number;
|
|
283
|
-
};
|
|
284
|
-
}>;
|
|
285
|
-
static fromFields(fields: Record<string, any>): CancelTradingOrderEvent;
|
|
286
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): CancelTradingOrderEvent;
|
|
287
|
-
static fromBcs(data: Uint8Array): CancelTradingOrderEvent;
|
|
288
|
-
toJSONField(): {
|
|
289
|
-
user: string;
|
|
290
|
-
marketIndex: string;
|
|
291
|
-
orderId: string;
|
|
292
|
-
triggerPrice: string;
|
|
293
|
-
collateralToken: {
|
|
294
|
-
name: string;
|
|
295
|
-
};
|
|
296
|
-
baseToken: {
|
|
297
|
-
name: string;
|
|
298
|
-
};
|
|
299
|
-
releasedCollateralAmount: string;
|
|
300
|
-
u64Padding: string[];
|
|
301
|
-
};
|
|
302
|
-
toJSON(): {
|
|
303
|
-
user: string;
|
|
304
|
-
marketIndex: string;
|
|
305
|
-
orderId: string;
|
|
306
|
-
triggerPrice: string;
|
|
307
|
-
collateralToken: {
|
|
308
|
-
name: string;
|
|
309
|
-
};
|
|
310
|
-
baseToken: {
|
|
311
|
-
name: string;
|
|
312
|
-
};
|
|
313
|
-
releasedCollateralAmount: string;
|
|
314
|
-
u64Padding: string[];
|
|
315
|
-
$typeName: string;
|
|
316
|
-
$typeArgs: [];
|
|
317
|
-
};
|
|
318
|
-
static fromJSONField(field: any): CancelTradingOrderEvent;
|
|
319
|
-
static fromJSON(json: Record<string, any>): CancelTradingOrderEvent;
|
|
320
|
-
static fromSuiParsedData(content: SuiParsedData): CancelTradingOrderEvent;
|
|
321
|
-
static fromSuiObjectData(data: SuiObjectData): CancelTradingOrderEvent;
|
|
322
|
-
static fetch(client: SuiClient, id: string): Promise<CancelTradingOrderEvent>;
|
|
323
|
-
}
|
|
324
|
-
export declare function isCreateTradingOrderEvent(type: string): boolean;
|
|
325
|
-
export interface CreateTradingOrderEventFields {
|
|
326
|
-
user: ToField<"address">;
|
|
327
|
-
marketIndex: ToField<"u64">;
|
|
328
|
-
poolIndex: ToField<"u64">;
|
|
329
|
-
collateralToken: ToField<TypeName>;
|
|
330
|
-
baseToken: ToField<TypeName>;
|
|
331
|
-
orderId: ToField<"u64">;
|
|
332
|
-
linkedPositionId: ToField<Option<"u64">>;
|
|
333
|
-
collateralAmount: ToField<"u64">;
|
|
334
|
-
leverageMbp: ToField<"u64">;
|
|
335
|
-
reduceOnly: ToField<"bool">;
|
|
336
|
-
isLong: ToField<"bool">;
|
|
337
|
-
isStopOrder: ToField<"bool">;
|
|
338
|
-
size: ToField<"u64">;
|
|
339
|
-
triggerPrice: ToField<"u64">;
|
|
340
|
-
filled: ToField<"bool">;
|
|
341
|
-
filledPrice: ToField<Option<"u64">>;
|
|
342
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
343
|
-
}
|
|
344
|
-
export type CreateTradingOrderEventReified = Reified<CreateTradingOrderEvent, CreateTradingOrderEventFields>;
|
|
345
|
-
export declare class CreateTradingOrderEvent implements StructClass {
|
|
346
|
-
__StructClass: true;
|
|
347
|
-
static readonly $typeName: string;
|
|
348
|
-
static readonly $numTypeParams = 0;
|
|
349
|
-
static readonly $isPhantom: readonly [];
|
|
350
|
-
readonly $typeName: string;
|
|
351
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::CreateTradingOrderEvent`;
|
|
352
|
-
readonly $typeArgs: [];
|
|
353
|
-
readonly $isPhantom: readonly [];
|
|
354
|
-
readonly user: ToField<"address">;
|
|
355
|
-
readonly marketIndex: ToField<"u64">;
|
|
356
|
-
readonly poolIndex: ToField<"u64">;
|
|
357
|
-
readonly collateralToken: ToField<TypeName>;
|
|
358
|
-
readonly baseToken: ToField<TypeName>;
|
|
359
|
-
readonly orderId: ToField<"u64">;
|
|
360
|
-
readonly linkedPositionId: ToField<Option<"u64">>;
|
|
361
|
-
readonly collateralAmount: ToField<"u64">;
|
|
362
|
-
readonly leverageMbp: ToField<"u64">;
|
|
363
|
-
readonly reduceOnly: ToField<"bool">;
|
|
364
|
-
readonly isLong: ToField<"bool">;
|
|
365
|
-
readonly isStopOrder: ToField<"bool">;
|
|
366
|
-
readonly size: ToField<"u64">;
|
|
367
|
-
readonly triggerPrice: ToField<"u64">;
|
|
368
|
-
readonly filled: ToField<"bool">;
|
|
369
|
-
readonly filledPrice: ToField<Option<"u64">>;
|
|
370
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
371
|
-
private constructor();
|
|
372
|
-
static reified(): CreateTradingOrderEventReified;
|
|
373
|
-
static get r(): reified.StructClassReified<CreateTradingOrderEvent, CreateTradingOrderEventFields>;
|
|
374
|
-
static phantom(): PhantomReified<ToTypeStr<CreateTradingOrderEvent>>;
|
|
375
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::CreateTradingOrderEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::CreateTradingOrderEvent">;
|
|
376
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
377
|
-
user: string;
|
|
378
|
-
market_index: string;
|
|
379
|
-
pool_index: string;
|
|
380
|
-
collateral_token: {
|
|
381
|
-
name: {
|
|
382
|
-
bytes: number[];
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
base_token: {
|
|
386
|
-
name: {
|
|
387
|
-
bytes: number[];
|
|
388
|
-
};
|
|
389
|
-
};
|
|
390
|
-
order_id: string;
|
|
391
|
-
linked_position_id: {
|
|
392
|
-
vec: any[];
|
|
393
|
-
};
|
|
394
|
-
collateral_amount: string;
|
|
395
|
-
leverage_mbp: string;
|
|
396
|
-
reduce_only: boolean;
|
|
397
|
-
is_long: boolean;
|
|
398
|
-
is_stop_order: boolean;
|
|
399
|
-
size: string;
|
|
400
|
-
trigger_price: string;
|
|
401
|
-
filled: boolean;
|
|
402
|
-
filled_price: {
|
|
403
|
-
vec: any[];
|
|
404
|
-
};
|
|
405
|
-
u64_padding: string[];
|
|
406
|
-
}, {
|
|
407
|
-
user: string;
|
|
408
|
-
market_index: string | number | bigint;
|
|
409
|
-
pool_index: string | number | bigint;
|
|
410
|
-
collateral_token: {
|
|
411
|
-
name: {
|
|
412
|
-
bytes: Iterable<number> & {
|
|
413
|
-
length: number;
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
};
|
|
417
|
-
base_token: {
|
|
418
|
-
name: {
|
|
419
|
-
bytes: Iterable<number> & {
|
|
420
|
-
length: number;
|
|
421
|
-
};
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
order_id: string | number | bigint;
|
|
425
|
-
linked_position_id: {
|
|
426
|
-
vec: Iterable<any> & {
|
|
427
|
-
length: number;
|
|
428
|
-
};
|
|
429
|
-
};
|
|
430
|
-
collateral_amount: string | number | bigint;
|
|
431
|
-
leverage_mbp: string | number | bigint;
|
|
432
|
-
reduce_only: boolean;
|
|
433
|
-
is_long: boolean;
|
|
434
|
-
is_stop_order: boolean;
|
|
435
|
-
size: string | number | bigint;
|
|
436
|
-
trigger_price: string | number | bigint;
|
|
437
|
-
filled: boolean;
|
|
438
|
-
filled_price: {
|
|
439
|
-
vec: Iterable<any> & {
|
|
440
|
-
length: number;
|
|
441
|
-
};
|
|
442
|
-
};
|
|
443
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
444
|
-
length: number;
|
|
445
|
-
};
|
|
446
|
-
}>;
|
|
447
|
-
static fromFields(fields: Record<string, any>): CreateTradingOrderEvent;
|
|
448
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): CreateTradingOrderEvent;
|
|
449
|
-
static fromBcs(data: Uint8Array): CreateTradingOrderEvent;
|
|
450
|
-
toJSONField(): {
|
|
451
|
-
user: string;
|
|
452
|
-
marketIndex: string;
|
|
453
|
-
poolIndex: string;
|
|
454
|
-
collateralToken: {
|
|
455
|
-
name: string;
|
|
456
|
-
};
|
|
457
|
-
baseToken: {
|
|
458
|
-
name: string;
|
|
459
|
-
};
|
|
460
|
-
orderId: string;
|
|
461
|
-
linkedPositionId: string | null;
|
|
462
|
-
collateralAmount: string;
|
|
463
|
-
leverageMbp: string;
|
|
464
|
-
reduceOnly: boolean;
|
|
465
|
-
isLong: boolean;
|
|
466
|
-
isStopOrder: boolean;
|
|
467
|
-
size: string;
|
|
468
|
-
triggerPrice: string;
|
|
469
|
-
filled: boolean;
|
|
470
|
-
filledPrice: string | null;
|
|
471
|
-
u64Padding: string[];
|
|
472
|
-
};
|
|
473
|
-
toJSON(): {
|
|
474
|
-
user: string;
|
|
475
|
-
marketIndex: string;
|
|
476
|
-
poolIndex: string;
|
|
477
|
-
collateralToken: {
|
|
478
|
-
name: string;
|
|
479
|
-
};
|
|
480
|
-
baseToken: {
|
|
481
|
-
name: string;
|
|
482
|
-
};
|
|
483
|
-
orderId: string;
|
|
484
|
-
linkedPositionId: string | null;
|
|
485
|
-
collateralAmount: string;
|
|
486
|
-
leverageMbp: string;
|
|
487
|
-
reduceOnly: boolean;
|
|
488
|
-
isLong: boolean;
|
|
489
|
-
isStopOrder: boolean;
|
|
490
|
-
size: string;
|
|
491
|
-
triggerPrice: string;
|
|
492
|
-
filled: boolean;
|
|
493
|
-
filledPrice: string | null;
|
|
494
|
-
u64Padding: string[];
|
|
495
|
-
$typeName: string;
|
|
496
|
-
$typeArgs: [];
|
|
497
|
-
};
|
|
498
|
-
static fromJSONField(field: any): CreateTradingOrderEvent;
|
|
499
|
-
static fromJSON(json: Record<string, any>): CreateTradingOrderEvent;
|
|
500
|
-
static fromSuiParsedData(content: SuiParsedData): CreateTradingOrderEvent;
|
|
501
|
-
static fromSuiObjectData(data: SuiObjectData): CreateTradingOrderEvent;
|
|
502
|
-
static fetch(client: SuiClient, id: string): Promise<CreateTradingOrderEvent>;
|
|
503
|
-
}
|
|
504
|
-
export declare function isCreateTradingOrderWithBidReceiptsEvent(type: string): boolean;
|
|
505
|
-
export interface CreateTradingOrderWithBidReceiptsEventFields {
|
|
506
|
-
user: ToField<"address">;
|
|
507
|
-
marketIndex: ToField<"u64">;
|
|
508
|
-
poolIndex: ToField<"u64">;
|
|
509
|
-
dovIndex: ToField<"u64">;
|
|
510
|
-
collateralToken: ToField<TypeName>;
|
|
511
|
-
baseToken: ToField<TypeName>;
|
|
512
|
-
orderId: ToField<"u64">;
|
|
513
|
-
collateralInDepositToken: ToField<"u64">;
|
|
514
|
-
isLong: ToField<"bool">;
|
|
515
|
-
size: ToField<"u64">;
|
|
516
|
-
triggerPrice: ToField<"u64">;
|
|
517
|
-
filled: ToField<"bool">;
|
|
518
|
-
filledPrice: ToField<Option<"u64">>;
|
|
519
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
520
|
-
}
|
|
521
|
-
export type CreateTradingOrderWithBidReceiptsEventReified = Reified<CreateTradingOrderWithBidReceiptsEvent, CreateTradingOrderWithBidReceiptsEventFields>;
|
|
522
|
-
export declare class CreateTradingOrderWithBidReceiptsEvent implements StructClass {
|
|
523
|
-
__StructClass: true;
|
|
524
|
-
static readonly $typeName: string;
|
|
525
|
-
static readonly $numTypeParams = 0;
|
|
526
|
-
static readonly $isPhantom: readonly [];
|
|
527
|
-
readonly $typeName: string;
|
|
528
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::CreateTradingOrderWithBidReceiptsEvent`;
|
|
529
|
-
readonly $typeArgs: [];
|
|
530
|
-
readonly $isPhantom: readonly [];
|
|
531
|
-
readonly user: ToField<"address">;
|
|
532
|
-
readonly marketIndex: ToField<"u64">;
|
|
533
|
-
readonly poolIndex: ToField<"u64">;
|
|
534
|
-
readonly dovIndex: ToField<"u64">;
|
|
535
|
-
readonly collateralToken: ToField<TypeName>;
|
|
536
|
-
readonly baseToken: ToField<TypeName>;
|
|
537
|
-
readonly orderId: ToField<"u64">;
|
|
538
|
-
readonly collateralInDepositToken: ToField<"u64">;
|
|
539
|
-
readonly isLong: ToField<"bool">;
|
|
540
|
-
readonly size: ToField<"u64">;
|
|
541
|
-
readonly triggerPrice: ToField<"u64">;
|
|
542
|
-
readonly filled: ToField<"bool">;
|
|
543
|
-
readonly filledPrice: ToField<Option<"u64">>;
|
|
544
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
545
|
-
private constructor();
|
|
546
|
-
static reified(): CreateTradingOrderWithBidReceiptsEventReified;
|
|
547
|
-
static get r(): reified.StructClassReified<CreateTradingOrderWithBidReceiptsEvent, CreateTradingOrderWithBidReceiptsEventFields>;
|
|
548
|
-
static phantom(): PhantomReified<ToTypeStr<CreateTradingOrderWithBidReceiptsEvent>>;
|
|
549
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::CreateTradingOrderWithBidReceiptsEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::CreateTradingOrderWithBidReceiptsEvent">;
|
|
550
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
551
|
-
user: string;
|
|
552
|
-
market_index: string;
|
|
553
|
-
pool_index: string;
|
|
554
|
-
dov_index: string;
|
|
555
|
-
collateral_token: {
|
|
556
|
-
name: {
|
|
557
|
-
bytes: number[];
|
|
558
|
-
};
|
|
559
|
-
};
|
|
560
|
-
base_token: {
|
|
561
|
-
name: {
|
|
562
|
-
bytes: number[];
|
|
563
|
-
};
|
|
564
|
-
};
|
|
565
|
-
order_id: string;
|
|
566
|
-
collateral_in_deposit_token: string;
|
|
567
|
-
is_long: boolean;
|
|
568
|
-
size: string;
|
|
569
|
-
trigger_price: string;
|
|
570
|
-
filled: boolean;
|
|
571
|
-
filled_price: {
|
|
572
|
-
vec: any[];
|
|
573
|
-
};
|
|
574
|
-
u64_padding: string[];
|
|
575
|
-
}, {
|
|
576
|
-
user: string;
|
|
577
|
-
market_index: string | number | bigint;
|
|
578
|
-
pool_index: string | number | bigint;
|
|
579
|
-
dov_index: string | number | bigint;
|
|
580
|
-
collateral_token: {
|
|
581
|
-
name: {
|
|
582
|
-
bytes: Iterable<number> & {
|
|
583
|
-
length: number;
|
|
584
|
-
};
|
|
585
|
-
};
|
|
586
|
-
};
|
|
587
|
-
base_token: {
|
|
588
|
-
name: {
|
|
589
|
-
bytes: Iterable<number> & {
|
|
590
|
-
length: number;
|
|
591
|
-
};
|
|
592
|
-
};
|
|
593
|
-
};
|
|
594
|
-
order_id: string | number | bigint;
|
|
595
|
-
collateral_in_deposit_token: string | number | bigint;
|
|
596
|
-
is_long: boolean;
|
|
597
|
-
size: string | number | bigint;
|
|
598
|
-
trigger_price: string | number | bigint;
|
|
599
|
-
filled: boolean;
|
|
600
|
-
filled_price: {
|
|
601
|
-
vec: Iterable<any> & {
|
|
602
|
-
length: number;
|
|
603
|
-
};
|
|
604
|
-
};
|
|
605
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
606
|
-
length: number;
|
|
607
|
-
};
|
|
608
|
-
}>;
|
|
609
|
-
static fromFields(fields: Record<string, any>): CreateTradingOrderWithBidReceiptsEvent;
|
|
610
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): CreateTradingOrderWithBidReceiptsEvent;
|
|
611
|
-
static fromBcs(data: Uint8Array): CreateTradingOrderWithBidReceiptsEvent;
|
|
612
|
-
toJSONField(): {
|
|
613
|
-
user: string;
|
|
614
|
-
marketIndex: string;
|
|
615
|
-
poolIndex: string;
|
|
616
|
-
dovIndex: string;
|
|
617
|
-
collateralToken: {
|
|
618
|
-
name: string;
|
|
619
|
-
};
|
|
620
|
-
baseToken: {
|
|
621
|
-
name: string;
|
|
622
|
-
};
|
|
623
|
-
orderId: string;
|
|
624
|
-
collateralInDepositToken: string;
|
|
625
|
-
isLong: boolean;
|
|
626
|
-
size: string;
|
|
627
|
-
triggerPrice: string;
|
|
628
|
-
filled: boolean;
|
|
629
|
-
filledPrice: string | null;
|
|
630
|
-
u64Padding: string[];
|
|
631
|
-
};
|
|
632
|
-
toJSON(): {
|
|
633
|
-
user: string;
|
|
634
|
-
marketIndex: string;
|
|
635
|
-
poolIndex: string;
|
|
636
|
-
dovIndex: string;
|
|
637
|
-
collateralToken: {
|
|
638
|
-
name: string;
|
|
639
|
-
};
|
|
640
|
-
baseToken: {
|
|
641
|
-
name: string;
|
|
642
|
-
};
|
|
643
|
-
orderId: string;
|
|
644
|
-
collateralInDepositToken: string;
|
|
645
|
-
isLong: boolean;
|
|
646
|
-
size: string;
|
|
647
|
-
triggerPrice: string;
|
|
648
|
-
filled: boolean;
|
|
649
|
-
filledPrice: string | null;
|
|
650
|
-
u64Padding: string[];
|
|
651
|
-
$typeName: string;
|
|
652
|
-
$typeArgs: [];
|
|
653
|
-
};
|
|
654
|
-
static fromJSONField(field: any): CreateTradingOrderWithBidReceiptsEvent;
|
|
655
|
-
static fromJSON(json: Record<string, any>): CreateTradingOrderWithBidReceiptsEvent;
|
|
656
|
-
static fromSuiParsedData(content: SuiParsedData): CreateTradingOrderWithBidReceiptsEvent;
|
|
657
|
-
static fromSuiObjectData(data: SuiObjectData): CreateTradingOrderWithBidReceiptsEvent;
|
|
658
|
-
static fetch(client: SuiClient, id: string): Promise<CreateTradingOrderWithBidReceiptsEvent>;
|
|
659
|
-
}
|
|
660
|
-
export declare function isExpiredPositionInfo(type: string): boolean;
|
|
661
|
-
export interface ExpiredPositionInfoFields {
|
|
662
|
-
positionId: ToField<"u64">;
|
|
663
|
-
dovIndex: ToField<"u64">;
|
|
664
|
-
collateralToken: ToField<TypeName>;
|
|
665
|
-
bidToken: ToField<TypeName>;
|
|
666
|
-
baseToken: ToField<TypeName>;
|
|
667
|
-
}
|
|
668
|
-
export type ExpiredPositionInfoReified = Reified<ExpiredPositionInfo, ExpiredPositionInfoFields>;
|
|
669
|
-
export declare class ExpiredPositionInfo implements StructClass {
|
|
670
|
-
__StructClass: true;
|
|
671
|
-
static readonly $typeName: string;
|
|
672
|
-
static readonly $numTypeParams = 0;
|
|
673
|
-
static readonly $isPhantom: readonly [];
|
|
674
|
-
readonly $typeName: string;
|
|
675
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::ExpiredPositionInfo`;
|
|
676
|
-
readonly $typeArgs: [];
|
|
677
|
-
readonly $isPhantom: readonly [];
|
|
678
|
-
readonly positionId: ToField<"u64">;
|
|
679
|
-
readonly dovIndex: ToField<"u64">;
|
|
680
|
-
readonly collateralToken: ToField<TypeName>;
|
|
681
|
-
readonly bidToken: ToField<TypeName>;
|
|
682
|
-
readonly baseToken: ToField<TypeName>;
|
|
683
|
-
private constructor();
|
|
684
|
-
static reified(): ExpiredPositionInfoReified;
|
|
685
|
-
static get r(): reified.StructClassReified<ExpiredPositionInfo, ExpiredPositionInfoFields>;
|
|
686
|
-
static phantom(): PhantomReified<ToTypeStr<ExpiredPositionInfo>>;
|
|
687
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::ExpiredPositionInfo" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::ExpiredPositionInfo">;
|
|
688
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
689
|
-
position_id: string;
|
|
690
|
-
dov_index: string;
|
|
691
|
-
collateral_token: {
|
|
692
|
-
name: {
|
|
693
|
-
bytes: number[];
|
|
694
|
-
};
|
|
695
|
-
};
|
|
696
|
-
bid_token: {
|
|
697
|
-
name: {
|
|
698
|
-
bytes: number[];
|
|
699
|
-
};
|
|
700
|
-
};
|
|
701
|
-
base_token: {
|
|
702
|
-
name: {
|
|
703
|
-
bytes: number[];
|
|
704
|
-
};
|
|
705
|
-
};
|
|
706
|
-
}, {
|
|
707
|
-
position_id: string | number | bigint;
|
|
708
|
-
dov_index: string | number | bigint;
|
|
709
|
-
collateral_token: {
|
|
710
|
-
name: {
|
|
711
|
-
bytes: Iterable<number> & {
|
|
712
|
-
length: number;
|
|
713
|
-
};
|
|
714
|
-
};
|
|
715
|
-
};
|
|
716
|
-
bid_token: {
|
|
717
|
-
name: {
|
|
718
|
-
bytes: Iterable<number> & {
|
|
719
|
-
length: number;
|
|
720
|
-
};
|
|
721
|
-
};
|
|
722
|
-
};
|
|
723
|
-
base_token: {
|
|
724
|
-
name: {
|
|
725
|
-
bytes: Iterable<number> & {
|
|
726
|
-
length: number;
|
|
727
|
-
};
|
|
728
|
-
};
|
|
729
|
-
};
|
|
730
|
-
}>;
|
|
731
|
-
static fromFields(fields: Record<string, any>): ExpiredPositionInfo;
|
|
732
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): ExpiredPositionInfo;
|
|
733
|
-
static fromBcs(data: Uint8Array): ExpiredPositionInfo;
|
|
734
|
-
toJSONField(): {
|
|
735
|
-
positionId: string;
|
|
736
|
-
dovIndex: string;
|
|
737
|
-
collateralToken: {
|
|
738
|
-
name: string;
|
|
739
|
-
};
|
|
740
|
-
bidToken: {
|
|
741
|
-
name: string;
|
|
742
|
-
};
|
|
743
|
-
baseToken: {
|
|
744
|
-
name: string;
|
|
745
|
-
};
|
|
746
|
-
};
|
|
747
|
-
toJSON(): {
|
|
748
|
-
positionId: string;
|
|
749
|
-
dovIndex: string;
|
|
750
|
-
collateralToken: {
|
|
751
|
-
name: string;
|
|
752
|
-
};
|
|
753
|
-
bidToken: {
|
|
754
|
-
name: string;
|
|
755
|
-
};
|
|
756
|
-
baseToken: {
|
|
757
|
-
name: string;
|
|
758
|
-
};
|
|
759
|
-
$typeName: string;
|
|
760
|
-
$typeArgs: [];
|
|
761
|
-
};
|
|
762
|
-
static fromJSONField(field: any): ExpiredPositionInfo;
|
|
763
|
-
static fromJSON(json: Record<string, any>): ExpiredPositionInfo;
|
|
764
|
-
static fromSuiParsedData(content: SuiParsedData): ExpiredPositionInfo;
|
|
765
|
-
static fromSuiObjectData(data: SuiObjectData): ExpiredPositionInfo;
|
|
766
|
-
static fetch(client: SuiClient, id: string): Promise<ExpiredPositionInfo>;
|
|
767
|
-
}
|
|
768
|
-
export declare function isIncreaseCollateralEvent(type: string): boolean;
|
|
769
|
-
export interface IncreaseCollateralEventFields {
|
|
770
|
-
user: ToField<"address">;
|
|
771
|
-
marketIndex: ToField<"u64">;
|
|
772
|
-
poolIndex: ToField<"u64">;
|
|
773
|
-
positionId: ToField<"u64">;
|
|
774
|
-
collateralToken: ToField<TypeName>;
|
|
775
|
-
baseToken: ToField<TypeName>;
|
|
776
|
-
increasedCollateralAmount: ToField<"u64">;
|
|
777
|
-
remainingCollateralAmount: ToField<"u64">;
|
|
778
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
779
|
-
}
|
|
780
|
-
export type IncreaseCollateralEventReified = Reified<IncreaseCollateralEvent, IncreaseCollateralEventFields>;
|
|
781
|
-
export declare class IncreaseCollateralEvent implements StructClass {
|
|
782
|
-
__StructClass: true;
|
|
783
|
-
static readonly $typeName: string;
|
|
784
|
-
static readonly $numTypeParams = 0;
|
|
785
|
-
static readonly $isPhantom: readonly [];
|
|
786
|
-
readonly $typeName: string;
|
|
787
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::IncreaseCollateralEvent`;
|
|
788
|
-
readonly $typeArgs: [];
|
|
789
|
-
readonly $isPhantom: readonly [];
|
|
790
|
-
readonly user: ToField<"address">;
|
|
791
|
-
readonly marketIndex: ToField<"u64">;
|
|
792
|
-
readonly poolIndex: ToField<"u64">;
|
|
793
|
-
readonly positionId: ToField<"u64">;
|
|
794
|
-
readonly collateralToken: ToField<TypeName>;
|
|
795
|
-
readonly baseToken: ToField<TypeName>;
|
|
796
|
-
readonly increasedCollateralAmount: ToField<"u64">;
|
|
797
|
-
readonly remainingCollateralAmount: ToField<"u64">;
|
|
798
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
799
|
-
private constructor();
|
|
800
|
-
static reified(): IncreaseCollateralEventReified;
|
|
801
|
-
static get r(): reified.StructClassReified<IncreaseCollateralEvent, IncreaseCollateralEventFields>;
|
|
802
|
-
static phantom(): PhantomReified<ToTypeStr<IncreaseCollateralEvent>>;
|
|
803
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::IncreaseCollateralEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::IncreaseCollateralEvent">;
|
|
804
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
805
|
-
user: string;
|
|
806
|
-
market_index: string;
|
|
807
|
-
pool_index: string;
|
|
808
|
-
position_id: string;
|
|
809
|
-
collateral_token: {
|
|
810
|
-
name: {
|
|
811
|
-
bytes: number[];
|
|
812
|
-
};
|
|
813
|
-
};
|
|
814
|
-
base_token: {
|
|
815
|
-
name: {
|
|
816
|
-
bytes: number[];
|
|
817
|
-
};
|
|
818
|
-
};
|
|
819
|
-
increased_collateral_amount: string;
|
|
820
|
-
remaining_collateral_amount: string;
|
|
821
|
-
u64_padding: string[];
|
|
822
|
-
}, {
|
|
823
|
-
user: string;
|
|
824
|
-
market_index: string | number | bigint;
|
|
825
|
-
pool_index: string | number | bigint;
|
|
826
|
-
position_id: string | number | bigint;
|
|
827
|
-
collateral_token: {
|
|
828
|
-
name: {
|
|
829
|
-
bytes: Iterable<number> & {
|
|
830
|
-
length: number;
|
|
831
|
-
};
|
|
832
|
-
};
|
|
833
|
-
};
|
|
834
|
-
base_token: {
|
|
835
|
-
name: {
|
|
836
|
-
bytes: Iterable<number> & {
|
|
837
|
-
length: number;
|
|
838
|
-
};
|
|
839
|
-
};
|
|
840
|
-
};
|
|
841
|
-
increased_collateral_amount: string | number | bigint;
|
|
842
|
-
remaining_collateral_amount: string | number | bigint;
|
|
843
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
844
|
-
length: number;
|
|
845
|
-
};
|
|
846
|
-
}>;
|
|
847
|
-
static fromFields(fields: Record<string, any>): IncreaseCollateralEvent;
|
|
848
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): IncreaseCollateralEvent;
|
|
849
|
-
static fromBcs(data: Uint8Array): IncreaseCollateralEvent;
|
|
850
|
-
toJSONField(): {
|
|
851
|
-
user: string;
|
|
852
|
-
marketIndex: string;
|
|
853
|
-
poolIndex: string;
|
|
854
|
-
positionId: string;
|
|
855
|
-
collateralToken: {
|
|
856
|
-
name: string;
|
|
857
|
-
};
|
|
858
|
-
baseToken: {
|
|
859
|
-
name: string;
|
|
860
|
-
};
|
|
861
|
-
increasedCollateralAmount: string;
|
|
862
|
-
remainingCollateralAmount: string;
|
|
863
|
-
u64Padding: string[];
|
|
864
|
-
};
|
|
865
|
-
toJSON(): {
|
|
866
|
-
user: string;
|
|
867
|
-
marketIndex: string;
|
|
868
|
-
poolIndex: string;
|
|
869
|
-
positionId: string;
|
|
870
|
-
collateralToken: {
|
|
871
|
-
name: string;
|
|
872
|
-
};
|
|
873
|
-
baseToken: {
|
|
874
|
-
name: string;
|
|
875
|
-
};
|
|
876
|
-
increasedCollateralAmount: string;
|
|
877
|
-
remainingCollateralAmount: string;
|
|
878
|
-
u64Padding: string[];
|
|
879
|
-
$typeName: string;
|
|
880
|
-
$typeArgs: [];
|
|
881
|
-
};
|
|
882
|
-
static fromJSONField(field: any): IncreaseCollateralEvent;
|
|
883
|
-
static fromJSON(json: Record<string, any>): IncreaseCollateralEvent;
|
|
884
|
-
static fromSuiParsedData(content: SuiParsedData): IncreaseCollateralEvent;
|
|
885
|
-
static fromSuiObjectData(data: SuiObjectData): IncreaseCollateralEvent;
|
|
886
|
-
static fetch(client: SuiClient, id: string): Promise<IncreaseCollateralEvent>;
|
|
887
|
-
}
|
|
888
|
-
export declare function isLiquidateEvent(type: string): boolean;
|
|
889
|
-
export interface LiquidateEventFields {
|
|
890
|
-
user: ToField<"address">;
|
|
891
|
-
collateralToken: ToField<TypeName>;
|
|
892
|
-
baseToken: ToField<TypeName>;
|
|
893
|
-
positionId: ToField<"u64">;
|
|
894
|
-
collateralPrice: ToField<"u64">;
|
|
895
|
-
tradingPrice: ToField<"u64">;
|
|
896
|
-
realizedLiquidatorFee: ToField<"u64">;
|
|
897
|
-
realizedValueForLpPool: ToField<"u64">;
|
|
898
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
899
|
-
}
|
|
900
|
-
export type LiquidateEventReified = Reified<LiquidateEvent, LiquidateEventFields>;
|
|
901
|
-
export declare class LiquidateEvent implements StructClass {
|
|
902
|
-
__StructClass: true;
|
|
903
|
-
static readonly $typeName: string;
|
|
904
|
-
static readonly $numTypeParams = 0;
|
|
905
|
-
static readonly $isPhantom: readonly [];
|
|
906
|
-
readonly $typeName: string;
|
|
907
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::LiquidateEvent`;
|
|
908
|
-
readonly $typeArgs: [];
|
|
909
|
-
readonly $isPhantom: readonly [];
|
|
910
|
-
readonly user: ToField<"address">;
|
|
911
|
-
readonly collateralToken: ToField<TypeName>;
|
|
912
|
-
readonly baseToken: ToField<TypeName>;
|
|
913
|
-
readonly positionId: ToField<"u64">;
|
|
914
|
-
readonly collateralPrice: ToField<"u64">;
|
|
915
|
-
readonly tradingPrice: ToField<"u64">;
|
|
916
|
-
readonly realizedLiquidatorFee: ToField<"u64">;
|
|
917
|
-
readonly realizedValueForLpPool: ToField<"u64">;
|
|
918
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
919
|
-
private constructor();
|
|
920
|
-
static reified(): LiquidateEventReified;
|
|
921
|
-
static get r(): reified.StructClassReified<LiquidateEvent, LiquidateEventFields>;
|
|
922
|
-
static phantom(): PhantomReified<ToTypeStr<LiquidateEvent>>;
|
|
923
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::LiquidateEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::LiquidateEvent">;
|
|
924
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
925
|
-
user: string;
|
|
926
|
-
collateral_token: {
|
|
927
|
-
name: {
|
|
928
|
-
bytes: number[];
|
|
929
|
-
};
|
|
930
|
-
};
|
|
931
|
-
base_token: {
|
|
932
|
-
name: {
|
|
933
|
-
bytes: number[];
|
|
934
|
-
};
|
|
935
|
-
};
|
|
936
|
-
position_id: string;
|
|
937
|
-
collateral_price: string;
|
|
938
|
-
trading_price: string;
|
|
939
|
-
realized_liquidator_fee: string;
|
|
940
|
-
realized_value_for_lp_pool: string;
|
|
941
|
-
u64_padding: string[];
|
|
942
|
-
}, {
|
|
943
|
-
user: string;
|
|
944
|
-
collateral_token: {
|
|
945
|
-
name: {
|
|
946
|
-
bytes: Iterable<number> & {
|
|
947
|
-
length: number;
|
|
948
|
-
};
|
|
949
|
-
};
|
|
950
|
-
};
|
|
951
|
-
base_token: {
|
|
952
|
-
name: {
|
|
953
|
-
bytes: Iterable<number> & {
|
|
954
|
-
length: number;
|
|
955
|
-
};
|
|
956
|
-
};
|
|
957
|
-
};
|
|
958
|
-
position_id: string | number | bigint;
|
|
959
|
-
collateral_price: string | number | bigint;
|
|
960
|
-
trading_price: string | number | bigint;
|
|
961
|
-
realized_liquidator_fee: string | number | bigint;
|
|
962
|
-
realized_value_for_lp_pool: string | number | bigint;
|
|
963
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
964
|
-
length: number;
|
|
965
|
-
};
|
|
966
|
-
}>;
|
|
967
|
-
static fromFields(fields: Record<string, any>): LiquidateEvent;
|
|
968
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): LiquidateEvent;
|
|
969
|
-
static fromBcs(data: Uint8Array): LiquidateEvent;
|
|
970
|
-
toJSONField(): {
|
|
971
|
-
user: string;
|
|
972
|
-
collateralToken: {
|
|
973
|
-
name: string;
|
|
974
|
-
};
|
|
975
|
-
baseToken: {
|
|
976
|
-
name: string;
|
|
977
|
-
};
|
|
978
|
-
positionId: string;
|
|
979
|
-
collateralPrice: string;
|
|
980
|
-
tradingPrice: string;
|
|
981
|
-
realizedLiquidatorFee: string;
|
|
982
|
-
realizedValueForLpPool: string;
|
|
983
|
-
u64Padding: string[];
|
|
984
|
-
};
|
|
985
|
-
toJSON(): {
|
|
986
|
-
user: string;
|
|
987
|
-
collateralToken: {
|
|
988
|
-
name: string;
|
|
989
|
-
};
|
|
990
|
-
baseToken: {
|
|
991
|
-
name: string;
|
|
992
|
-
};
|
|
993
|
-
positionId: string;
|
|
994
|
-
collateralPrice: string;
|
|
995
|
-
tradingPrice: string;
|
|
996
|
-
realizedLiquidatorFee: string;
|
|
997
|
-
realizedValueForLpPool: string;
|
|
998
|
-
u64Padding: string[];
|
|
999
|
-
$typeName: string;
|
|
1000
|
-
$typeArgs: [];
|
|
1001
|
-
};
|
|
1002
|
-
static fromJSONField(field: any): LiquidateEvent;
|
|
1003
|
-
static fromJSON(json: Record<string, any>): LiquidateEvent;
|
|
1004
|
-
static fromSuiParsedData(content: SuiParsedData): LiquidateEvent;
|
|
1005
|
-
static fromSuiObjectData(data: SuiObjectData): LiquidateEvent;
|
|
1006
|
-
static fetch(client: SuiClient, id: string): Promise<LiquidateEvent>;
|
|
1007
|
-
}
|
|
1008
|
-
export declare function isLiquidationInfo(type: string): boolean;
|
|
1009
|
-
export interface LiquidationInfoFields {
|
|
1010
|
-
positionId: ToField<"u64">;
|
|
1011
|
-
dovIndex: ToField<Option<"u64">>;
|
|
1012
|
-
bidToken: ToField<Option<TypeName>>;
|
|
1013
|
-
}
|
|
1014
|
-
export type LiquidationInfoReified = Reified<LiquidationInfo, LiquidationInfoFields>;
|
|
1015
|
-
export declare class LiquidationInfo implements StructClass {
|
|
1016
|
-
__StructClass: true;
|
|
1017
|
-
static readonly $typeName: string;
|
|
1018
|
-
static readonly $numTypeParams = 0;
|
|
1019
|
-
static readonly $isPhantom: readonly [];
|
|
1020
|
-
readonly $typeName: string;
|
|
1021
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::LiquidationInfo`;
|
|
1022
|
-
readonly $typeArgs: [];
|
|
1023
|
-
readonly $isPhantom: readonly [];
|
|
1024
|
-
readonly positionId: ToField<"u64">;
|
|
1025
|
-
readonly dovIndex: ToField<Option<"u64">>;
|
|
1026
|
-
readonly bidToken: ToField<Option<TypeName>>;
|
|
1027
|
-
private constructor();
|
|
1028
|
-
static reified(): LiquidationInfoReified;
|
|
1029
|
-
static get r(): reified.StructClassReified<LiquidationInfo, LiquidationInfoFields>;
|
|
1030
|
-
static phantom(): PhantomReified<ToTypeStr<LiquidationInfo>>;
|
|
1031
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::LiquidationInfo" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::LiquidationInfo">;
|
|
1032
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1033
|
-
position_id: string;
|
|
1034
|
-
dov_index: {
|
|
1035
|
-
vec: any[];
|
|
1036
|
-
};
|
|
1037
|
-
bid_token: {
|
|
1038
|
-
vec: any[];
|
|
1039
|
-
};
|
|
1040
|
-
}, {
|
|
1041
|
-
position_id: string | number | bigint;
|
|
1042
|
-
dov_index: {
|
|
1043
|
-
vec: Iterable<any> & {
|
|
1044
|
-
length: number;
|
|
1045
|
-
};
|
|
1046
|
-
};
|
|
1047
|
-
bid_token: {
|
|
1048
|
-
vec: Iterable<any> & {
|
|
1049
|
-
length: number;
|
|
1050
|
-
};
|
|
1051
|
-
};
|
|
1052
|
-
}>;
|
|
1053
|
-
static fromFields(fields: Record<string, any>): LiquidationInfo;
|
|
1054
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): LiquidationInfo;
|
|
1055
|
-
static fromBcs(data: Uint8Array): LiquidationInfo;
|
|
1056
|
-
toJSONField(): {
|
|
1057
|
-
positionId: string;
|
|
1058
|
-
dovIndex: string | null;
|
|
1059
|
-
bidToken: {
|
|
1060
|
-
name: string;
|
|
1061
|
-
} | null;
|
|
1062
|
-
};
|
|
1063
|
-
toJSON(): {
|
|
1064
|
-
positionId: string;
|
|
1065
|
-
dovIndex: string | null;
|
|
1066
|
-
bidToken: {
|
|
1067
|
-
name: string;
|
|
1068
|
-
} | null;
|
|
1069
|
-
$typeName: string;
|
|
1070
|
-
$typeArgs: [];
|
|
1071
|
-
};
|
|
1072
|
-
static fromJSONField(field: any): LiquidationInfo;
|
|
1073
|
-
static fromJSON(json: Record<string, any>): LiquidationInfo;
|
|
1074
|
-
static fromSuiParsedData(content: SuiParsedData): LiquidationInfo;
|
|
1075
|
-
static fromSuiObjectData(data: SuiObjectData): LiquidationInfo;
|
|
1076
|
-
static fetch(client: SuiClient, id: string): Promise<LiquidationInfo>;
|
|
1077
|
-
}
|
|
1078
|
-
export declare function isManagerCancelOrdersEvent(type: string): boolean;
|
|
1079
|
-
export interface ManagerCancelOrdersEventFields {
|
|
1080
|
-
reason: ToField<String>;
|
|
1081
|
-
collateralToken: ToField<TypeName>;
|
|
1082
|
-
baseToken: ToField<TypeName>;
|
|
1083
|
-
orderTypeTag: ToField<"u8">;
|
|
1084
|
-
orderIds: ToField<Vector<"u64">>;
|
|
1085
|
-
orderSizes: ToField<Vector<"u64">>;
|
|
1086
|
-
orderPrices: ToField<Vector<"u64">>;
|
|
1087
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
1088
|
-
}
|
|
1089
|
-
export type ManagerCancelOrdersEventReified = Reified<ManagerCancelOrdersEvent, ManagerCancelOrdersEventFields>;
|
|
1090
|
-
export declare class ManagerCancelOrdersEvent implements StructClass {
|
|
1091
|
-
__StructClass: true;
|
|
1092
|
-
static readonly $typeName: string;
|
|
1093
|
-
static readonly $numTypeParams = 0;
|
|
1094
|
-
static readonly $isPhantom: readonly [];
|
|
1095
|
-
readonly $typeName: string;
|
|
1096
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::ManagerCancelOrdersEvent`;
|
|
1097
|
-
readonly $typeArgs: [];
|
|
1098
|
-
readonly $isPhantom: readonly [];
|
|
1099
|
-
readonly reason: ToField<String>;
|
|
1100
|
-
readonly collateralToken: ToField<TypeName>;
|
|
1101
|
-
readonly baseToken: ToField<TypeName>;
|
|
1102
|
-
readonly orderTypeTag: ToField<"u8">;
|
|
1103
|
-
readonly orderIds: ToField<Vector<"u64">>;
|
|
1104
|
-
readonly orderSizes: ToField<Vector<"u64">>;
|
|
1105
|
-
readonly orderPrices: ToField<Vector<"u64">>;
|
|
1106
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1107
|
-
private constructor();
|
|
1108
|
-
static reified(): ManagerCancelOrdersEventReified;
|
|
1109
|
-
static get r(): reified.StructClassReified<ManagerCancelOrdersEvent, ManagerCancelOrdersEventFields>;
|
|
1110
|
-
static phantom(): PhantomReified<ToTypeStr<ManagerCancelOrdersEvent>>;
|
|
1111
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::ManagerCancelOrdersEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::ManagerCancelOrdersEvent">;
|
|
1112
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1113
|
-
reason: {
|
|
1114
|
-
bytes: number[];
|
|
1115
|
-
};
|
|
1116
|
-
collateral_token: {
|
|
1117
|
-
name: {
|
|
1118
|
-
bytes: number[];
|
|
1119
|
-
};
|
|
1120
|
-
};
|
|
1121
|
-
base_token: {
|
|
1122
|
-
name: {
|
|
1123
|
-
bytes: number[];
|
|
1124
|
-
};
|
|
1125
|
-
};
|
|
1126
|
-
order_type_tag: number;
|
|
1127
|
-
order_ids: string[];
|
|
1128
|
-
order_sizes: string[];
|
|
1129
|
-
order_prices: string[];
|
|
1130
|
-
u64_padding: string[];
|
|
1131
|
-
}, {
|
|
1132
|
-
reason: {
|
|
1133
|
-
bytes: Iterable<number> & {
|
|
1134
|
-
length: number;
|
|
1135
|
-
};
|
|
1136
|
-
};
|
|
1137
|
-
collateral_token: {
|
|
1138
|
-
name: {
|
|
1139
|
-
bytes: Iterable<number> & {
|
|
1140
|
-
length: number;
|
|
1141
|
-
};
|
|
1142
|
-
};
|
|
1143
|
-
};
|
|
1144
|
-
base_token: {
|
|
1145
|
-
name: {
|
|
1146
|
-
bytes: Iterable<number> & {
|
|
1147
|
-
length: number;
|
|
1148
|
-
};
|
|
1149
|
-
};
|
|
1150
|
-
};
|
|
1151
|
-
order_type_tag: number;
|
|
1152
|
-
order_ids: Iterable<string | number | bigint> & {
|
|
1153
|
-
length: number;
|
|
1154
|
-
};
|
|
1155
|
-
order_sizes: Iterable<string | number | bigint> & {
|
|
1156
|
-
length: number;
|
|
1157
|
-
};
|
|
1158
|
-
order_prices: Iterable<string | number | bigint> & {
|
|
1159
|
-
length: number;
|
|
1160
|
-
};
|
|
1161
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
1162
|
-
length: number;
|
|
1163
|
-
};
|
|
1164
|
-
}>;
|
|
1165
|
-
static fromFields(fields: Record<string, any>): ManagerCancelOrdersEvent;
|
|
1166
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): ManagerCancelOrdersEvent;
|
|
1167
|
-
static fromBcs(data: Uint8Array): ManagerCancelOrdersEvent;
|
|
1168
|
-
toJSONField(): {
|
|
1169
|
-
reason: string;
|
|
1170
|
-
collateralToken: {
|
|
1171
|
-
name: string;
|
|
1172
|
-
};
|
|
1173
|
-
baseToken: {
|
|
1174
|
-
name: string;
|
|
1175
|
-
};
|
|
1176
|
-
orderTypeTag: number;
|
|
1177
|
-
orderIds: string[];
|
|
1178
|
-
orderSizes: string[];
|
|
1179
|
-
orderPrices: string[];
|
|
1180
|
-
u64Padding: string[];
|
|
1181
|
-
};
|
|
1182
|
-
toJSON(): {
|
|
1183
|
-
reason: string;
|
|
1184
|
-
collateralToken: {
|
|
1185
|
-
name: string;
|
|
1186
|
-
};
|
|
1187
|
-
baseToken: {
|
|
1188
|
-
name: string;
|
|
1189
|
-
};
|
|
1190
|
-
orderTypeTag: number;
|
|
1191
|
-
orderIds: string[];
|
|
1192
|
-
orderSizes: string[];
|
|
1193
|
-
orderPrices: string[];
|
|
1194
|
-
u64Padding: string[];
|
|
1195
|
-
$typeName: string;
|
|
1196
|
-
$typeArgs: [];
|
|
1197
|
-
};
|
|
1198
|
-
static fromJSONField(field: any): ManagerCancelOrdersEvent;
|
|
1199
|
-
static fromJSON(json: Record<string, any>): ManagerCancelOrdersEvent;
|
|
1200
|
-
static fromSuiParsedData(content: SuiParsedData): ManagerCancelOrdersEvent;
|
|
1201
|
-
static fromSuiObjectData(data: SuiObjectData): ManagerCancelOrdersEvent;
|
|
1202
|
-
static fetch(client: SuiClient, id: string): Promise<ManagerCancelOrdersEvent>;
|
|
1203
|
-
}
|
|
1204
|
-
export declare function isManagerCloseOptionPositionEvent(type: string): boolean;
|
|
1205
|
-
export interface ManagerCloseOptionPositionEventFields {
|
|
1206
|
-
user: ToField<"address">;
|
|
1207
|
-
collateralToken: ToField<TypeName>;
|
|
1208
|
-
baseToken: ToField<TypeName>;
|
|
1209
|
-
positionId: ToField<"u64">;
|
|
1210
|
-
orderSize: ToField<"u64">;
|
|
1211
|
-
collateralPrice: ToField<"u64">;
|
|
1212
|
-
tradingPrice: ToField<"u64">;
|
|
1213
|
-
cancelledOrderIds: ToField<Vector<"u64">>;
|
|
1214
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
1215
|
-
}
|
|
1216
|
-
export type ManagerCloseOptionPositionEventReified = Reified<ManagerCloseOptionPositionEvent, ManagerCloseOptionPositionEventFields>;
|
|
1217
|
-
export declare class ManagerCloseOptionPositionEvent implements StructClass {
|
|
1218
|
-
__StructClass: true;
|
|
1219
|
-
static readonly $typeName: string;
|
|
1220
|
-
static readonly $numTypeParams = 0;
|
|
1221
|
-
static readonly $isPhantom: readonly [];
|
|
1222
|
-
readonly $typeName: string;
|
|
1223
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::ManagerCloseOptionPositionEvent`;
|
|
1224
|
-
readonly $typeArgs: [];
|
|
1225
|
-
readonly $isPhantom: readonly [];
|
|
1226
|
-
readonly user: ToField<"address">;
|
|
1227
|
-
readonly collateralToken: ToField<TypeName>;
|
|
1228
|
-
readonly baseToken: ToField<TypeName>;
|
|
1229
|
-
readonly positionId: ToField<"u64">;
|
|
1230
|
-
readonly orderSize: ToField<"u64">;
|
|
1231
|
-
readonly collateralPrice: ToField<"u64">;
|
|
1232
|
-
readonly tradingPrice: ToField<"u64">;
|
|
1233
|
-
readonly cancelledOrderIds: ToField<Vector<"u64">>;
|
|
1234
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1235
|
-
private constructor();
|
|
1236
|
-
static reified(): ManagerCloseOptionPositionEventReified;
|
|
1237
|
-
static get r(): reified.StructClassReified<ManagerCloseOptionPositionEvent, ManagerCloseOptionPositionEventFields>;
|
|
1238
|
-
static phantom(): PhantomReified<ToTypeStr<ManagerCloseOptionPositionEvent>>;
|
|
1239
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::ManagerCloseOptionPositionEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::ManagerCloseOptionPositionEvent">;
|
|
1240
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1241
|
-
user: string;
|
|
1242
|
-
collateral_token: {
|
|
1243
|
-
name: {
|
|
1244
|
-
bytes: number[];
|
|
1245
|
-
};
|
|
1246
|
-
};
|
|
1247
|
-
base_token: {
|
|
1248
|
-
name: {
|
|
1249
|
-
bytes: number[];
|
|
1250
|
-
};
|
|
1251
|
-
};
|
|
1252
|
-
position_id: string;
|
|
1253
|
-
order_size: string;
|
|
1254
|
-
collateral_price: string;
|
|
1255
|
-
trading_price: string;
|
|
1256
|
-
cancelled_order_ids: string[];
|
|
1257
|
-
u64_padding: string[];
|
|
1258
|
-
}, {
|
|
1259
|
-
user: string;
|
|
1260
|
-
collateral_token: {
|
|
1261
|
-
name: {
|
|
1262
|
-
bytes: Iterable<number> & {
|
|
1263
|
-
length: number;
|
|
1264
|
-
};
|
|
1265
|
-
};
|
|
1266
|
-
};
|
|
1267
|
-
base_token: {
|
|
1268
|
-
name: {
|
|
1269
|
-
bytes: Iterable<number> & {
|
|
1270
|
-
length: number;
|
|
1271
|
-
};
|
|
1272
|
-
};
|
|
1273
|
-
};
|
|
1274
|
-
position_id: string | number | bigint;
|
|
1275
|
-
order_size: string | number | bigint;
|
|
1276
|
-
collateral_price: string | number | bigint;
|
|
1277
|
-
trading_price: string | number | bigint;
|
|
1278
|
-
cancelled_order_ids: Iterable<string | number | bigint> & {
|
|
1279
|
-
length: number;
|
|
1280
|
-
};
|
|
1281
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
1282
|
-
length: number;
|
|
1283
|
-
};
|
|
1284
|
-
}>;
|
|
1285
|
-
static fromFields(fields: Record<string, any>): ManagerCloseOptionPositionEvent;
|
|
1286
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): ManagerCloseOptionPositionEvent;
|
|
1287
|
-
static fromBcs(data: Uint8Array): ManagerCloseOptionPositionEvent;
|
|
1288
|
-
toJSONField(): {
|
|
1289
|
-
user: string;
|
|
1290
|
-
collateralToken: {
|
|
1291
|
-
name: string;
|
|
1292
|
-
};
|
|
1293
|
-
baseToken: {
|
|
1294
|
-
name: string;
|
|
1295
|
-
};
|
|
1296
|
-
positionId: string;
|
|
1297
|
-
orderSize: string;
|
|
1298
|
-
collateralPrice: string;
|
|
1299
|
-
tradingPrice: string;
|
|
1300
|
-
cancelledOrderIds: string[];
|
|
1301
|
-
u64Padding: string[];
|
|
1302
|
-
};
|
|
1303
|
-
toJSON(): {
|
|
1304
|
-
user: string;
|
|
1305
|
-
collateralToken: {
|
|
1306
|
-
name: string;
|
|
1307
|
-
};
|
|
1308
|
-
baseToken: {
|
|
1309
|
-
name: string;
|
|
1310
|
-
};
|
|
1311
|
-
positionId: string;
|
|
1312
|
-
orderSize: string;
|
|
1313
|
-
collateralPrice: string;
|
|
1314
|
-
tradingPrice: string;
|
|
1315
|
-
cancelledOrderIds: string[];
|
|
1316
|
-
u64Padding: string[];
|
|
1317
|
-
$typeName: string;
|
|
1318
|
-
$typeArgs: [];
|
|
1319
|
-
};
|
|
1320
|
-
static fromJSONField(field: any): ManagerCloseOptionPositionEvent;
|
|
1321
|
-
static fromJSON(json: Record<string, any>): ManagerCloseOptionPositionEvent;
|
|
1322
|
-
static fromSuiParsedData(content: SuiParsedData): ManagerCloseOptionPositionEvent;
|
|
1323
|
-
static fromSuiObjectData(data: SuiObjectData): ManagerCloseOptionPositionEvent;
|
|
1324
|
-
static fetch(client: SuiClient, id: string): Promise<ManagerCloseOptionPositionEvent>;
|
|
1325
|
-
}
|
|
1326
|
-
export declare function isManagerReducePositionEvent(type: string): boolean;
|
|
1327
|
-
export interface ManagerReducePositionEventFields {
|
|
1328
|
-
user: ToField<"address">;
|
|
1329
|
-
collateralToken: ToField<TypeName>;
|
|
1330
|
-
baseToken: ToField<TypeName>;
|
|
1331
|
-
positionId: ToField<"u64">;
|
|
1332
|
-
reducedSize: ToField<"u64">;
|
|
1333
|
-
collateralPrice: ToField<"u64">;
|
|
1334
|
-
tradingPrice: ToField<"u64">;
|
|
1335
|
-
cancelledOrderIds: ToField<Vector<"u64">>;
|
|
1336
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
1337
|
-
}
|
|
1338
|
-
export type ManagerReducePositionEventReified = Reified<ManagerReducePositionEvent, ManagerReducePositionEventFields>;
|
|
1339
|
-
export declare class ManagerReducePositionEvent implements StructClass {
|
|
1340
|
-
__StructClass: true;
|
|
1341
|
-
static readonly $typeName: string;
|
|
1342
|
-
static readonly $numTypeParams = 0;
|
|
1343
|
-
static readonly $isPhantom: readonly [];
|
|
1344
|
-
readonly $typeName: string;
|
|
1345
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::ManagerReducePositionEvent`;
|
|
1346
|
-
readonly $typeArgs: [];
|
|
1347
|
-
readonly $isPhantom: readonly [];
|
|
1348
|
-
readonly user: ToField<"address">;
|
|
1349
|
-
readonly collateralToken: ToField<TypeName>;
|
|
1350
|
-
readonly baseToken: ToField<TypeName>;
|
|
1351
|
-
readonly positionId: ToField<"u64">;
|
|
1352
|
-
readonly reducedSize: ToField<"u64">;
|
|
1353
|
-
readonly collateralPrice: ToField<"u64">;
|
|
1354
|
-
readonly tradingPrice: ToField<"u64">;
|
|
1355
|
-
readonly cancelledOrderIds: ToField<Vector<"u64">>;
|
|
1356
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1357
|
-
private constructor();
|
|
1358
|
-
static reified(): ManagerReducePositionEventReified;
|
|
1359
|
-
static get r(): reified.StructClassReified<ManagerReducePositionEvent, ManagerReducePositionEventFields>;
|
|
1360
|
-
static phantom(): PhantomReified<ToTypeStr<ManagerReducePositionEvent>>;
|
|
1361
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::ManagerReducePositionEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::ManagerReducePositionEvent">;
|
|
1362
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1363
|
-
user: string;
|
|
1364
|
-
collateral_token: {
|
|
1365
|
-
name: {
|
|
1366
|
-
bytes: number[];
|
|
1367
|
-
};
|
|
1368
|
-
};
|
|
1369
|
-
base_token: {
|
|
1370
|
-
name: {
|
|
1371
|
-
bytes: number[];
|
|
1372
|
-
};
|
|
1373
|
-
};
|
|
1374
|
-
position_id: string;
|
|
1375
|
-
reduced_size: string;
|
|
1376
|
-
collateral_price: string;
|
|
1377
|
-
trading_price: string;
|
|
1378
|
-
cancelled_order_ids: string[];
|
|
1379
|
-
u64_padding: string[];
|
|
1380
|
-
}, {
|
|
1381
|
-
user: string;
|
|
1382
|
-
collateral_token: {
|
|
1383
|
-
name: {
|
|
1384
|
-
bytes: Iterable<number> & {
|
|
1385
|
-
length: number;
|
|
1386
|
-
};
|
|
1387
|
-
};
|
|
1388
|
-
};
|
|
1389
|
-
base_token: {
|
|
1390
|
-
name: {
|
|
1391
|
-
bytes: Iterable<number> & {
|
|
1392
|
-
length: number;
|
|
1393
|
-
};
|
|
1394
|
-
};
|
|
1395
|
-
};
|
|
1396
|
-
position_id: string | number | bigint;
|
|
1397
|
-
reduced_size: string | number | bigint;
|
|
1398
|
-
collateral_price: string | number | bigint;
|
|
1399
|
-
trading_price: string | number | bigint;
|
|
1400
|
-
cancelled_order_ids: Iterable<string | number | bigint> & {
|
|
1401
|
-
length: number;
|
|
1402
|
-
};
|
|
1403
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
1404
|
-
length: number;
|
|
1405
|
-
};
|
|
1406
|
-
}>;
|
|
1407
|
-
static fromFields(fields: Record<string, any>): ManagerReducePositionEvent;
|
|
1408
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): ManagerReducePositionEvent;
|
|
1409
|
-
static fromBcs(data: Uint8Array): ManagerReducePositionEvent;
|
|
1410
|
-
toJSONField(): {
|
|
1411
|
-
user: string;
|
|
1412
|
-
collateralToken: {
|
|
1413
|
-
name: string;
|
|
1414
|
-
};
|
|
1415
|
-
baseToken: {
|
|
1416
|
-
name: string;
|
|
1417
|
-
};
|
|
1418
|
-
positionId: string;
|
|
1419
|
-
reducedSize: string;
|
|
1420
|
-
collateralPrice: string;
|
|
1421
|
-
tradingPrice: string;
|
|
1422
|
-
cancelledOrderIds: string[];
|
|
1423
|
-
u64Padding: string[];
|
|
1424
|
-
};
|
|
1425
|
-
toJSON(): {
|
|
1426
|
-
user: string;
|
|
1427
|
-
collateralToken: {
|
|
1428
|
-
name: string;
|
|
1429
|
-
};
|
|
1430
|
-
baseToken: {
|
|
1431
|
-
name: string;
|
|
1432
|
-
};
|
|
1433
|
-
positionId: string;
|
|
1434
|
-
reducedSize: string;
|
|
1435
|
-
collateralPrice: string;
|
|
1436
|
-
tradingPrice: string;
|
|
1437
|
-
cancelledOrderIds: string[];
|
|
1438
|
-
u64Padding: string[];
|
|
1439
|
-
$typeName: string;
|
|
1440
|
-
$typeArgs: [];
|
|
1441
|
-
};
|
|
1442
|
-
static fromJSONField(field: any): ManagerReducePositionEvent;
|
|
1443
|
-
static fromJSON(json: Record<string, any>): ManagerReducePositionEvent;
|
|
1444
|
-
static fromSuiParsedData(content: SuiParsedData): ManagerReducePositionEvent;
|
|
1445
|
-
static fromSuiObjectData(data: SuiObjectData): ManagerReducePositionEvent;
|
|
1446
|
-
static fetch(client: SuiClient, id: string): Promise<ManagerReducePositionEvent>;
|
|
1447
|
-
}
|
|
1448
|
-
export declare function isManagerUpdateProcessStatusAfterOrderEvent(type: string): boolean;
|
|
1449
|
-
export interface ManagerUpdateProcessStatusAfterOrderEventFields {
|
|
1450
|
-
marketIndex: ToField<"u64">;
|
|
1451
|
-
poolIndex: ToField<"u64">;
|
|
1452
|
-
liquidityToken: ToField<TypeName>;
|
|
1453
|
-
tradingBaseToken: ToField<TypeName>;
|
|
1454
|
-
}
|
|
1455
|
-
export type ManagerUpdateProcessStatusAfterOrderEventReified = Reified<ManagerUpdateProcessStatusAfterOrderEvent, ManagerUpdateProcessStatusAfterOrderEventFields>;
|
|
1456
|
-
export declare class ManagerUpdateProcessStatusAfterOrderEvent implements StructClass {
|
|
1457
|
-
__StructClass: true;
|
|
1458
|
-
static readonly $typeName: string;
|
|
1459
|
-
static readonly $numTypeParams = 0;
|
|
1460
|
-
static readonly $isPhantom: readonly [];
|
|
1461
|
-
readonly $typeName: string;
|
|
1462
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::ManagerUpdateProcessStatusAfterOrderEvent`;
|
|
1463
|
-
readonly $typeArgs: [];
|
|
1464
|
-
readonly $isPhantom: readonly [];
|
|
1465
|
-
readonly marketIndex: ToField<"u64">;
|
|
1466
|
-
readonly poolIndex: ToField<"u64">;
|
|
1467
|
-
readonly liquidityToken: ToField<TypeName>;
|
|
1468
|
-
readonly tradingBaseToken: ToField<TypeName>;
|
|
1469
|
-
private constructor();
|
|
1470
|
-
static reified(): ManagerUpdateProcessStatusAfterOrderEventReified;
|
|
1471
|
-
static get r(): reified.StructClassReified<ManagerUpdateProcessStatusAfterOrderEvent, ManagerUpdateProcessStatusAfterOrderEventFields>;
|
|
1472
|
-
static phantom(): PhantomReified<ToTypeStr<ManagerUpdateProcessStatusAfterOrderEvent>>;
|
|
1473
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::ManagerUpdateProcessStatusAfterOrderEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::ManagerUpdateProcessStatusAfterOrderEvent">;
|
|
1474
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1475
|
-
market_index: string;
|
|
1476
|
-
pool_index: string;
|
|
1477
|
-
liquidity_token: {
|
|
1478
|
-
name: {
|
|
1479
|
-
bytes: number[];
|
|
1480
|
-
};
|
|
1481
|
-
};
|
|
1482
|
-
trading_base_token: {
|
|
1483
|
-
name: {
|
|
1484
|
-
bytes: number[];
|
|
1485
|
-
};
|
|
1486
|
-
};
|
|
1487
|
-
}, {
|
|
1488
|
-
market_index: string | number | bigint;
|
|
1489
|
-
pool_index: string | number | bigint;
|
|
1490
|
-
liquidity_token: {
|
|
1491
|
-
name: {
|
|
1492
|
-
bytes: Iterable<number> & {
|
|
1493
|
-
length: number;
|
|
1494
|
-
};
|
|
1495
|
-
};
|
|
1496
|
-
};
|
|
1497
|
-
trading_base_token: {
|
|
1498
|
-
name: {
|
|
1499
|
-
bytes: Iterable<number> & {
|
|
1500
|
-
length: number;
|
|
1501
|
-
};
|
|
1502
|
-
};
|
|
1503
|
-
};
|
|
1504
|
-
}>;
|
|
1505
|
-
static fromFields(fields: Record<string, any>): ManagerUpdateProcessStatusAfterOrderEvent;
|
|
1506
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): ManagerUpdateProcessStatusAfterOrderEvent;
|
|
1507
|
-
static fromBcs(data: Uint8Array): ManagerUpdateProcessStatusAfterOrderEvent;
|
|
1508
|
-
toJSONField(): {
|
|
1509
|
-
marketIndex: string;
|
|
1510
|
-
poolIndex: string;
|
|
1511
|
-
liquidityToken: {
|
|
1512
|
-
name: string;
|
|
1513
|
-
};
|
|
1514
|
-
tradingBaseToken: {
|
|
1515
|
-
name: string;
|
|
1516
|
-
};
|
|
1517
|
-
};
|
|
1518
|
-
toJSON(): {
|
|
1519
|
-
marketIndex: string;
|
|
1520
|
-
poolIndex: string;
|
|
1521
|
-
liquidityToken: {
|
|
1522
|
-
name: string;
|
|
1523
|
-
};
|
|
1524
|
-
tradingBaseToken: {
|
|
1525
|
-
name: string;
|
|
1526
|
-
};
|
|
1527
|
-
$typeName: string;
|
|
1528
|
-
$typeArgs: [];
|
|
1529
|
-
};
|
|
1530
|
-
static fromJSONField(field: any): ManagerUpdateProcessStatusAfterOrderEvent;
|
|
1531
|
-
static fromJSON(json: Record<string, any>): ManagerUpdateProcessStatusAfterOrderEvent;
|
|
1532
|
-
static fromSuiParsedData(content: SuiParsedData): ManagerUpdateProcessStatusAfterOrderEvent;
|
|
1533
|
-
static fromSuiObjectData(data: SuiObjectData): ManagerUpdateProcessStatusAfterOrderEvent;
|
|
1534
|
-
static fetch(client: SuiClient, id: string): Promise<ManagerUpdateProcessStatusAfterOrderEvent>;
|
|
1535
|
-
}
|
|
1536
|
-
export declare function isManagerUpdateProcessStatusAfterPositionEvent(type: string): boolean;
|
|
1537
|
-
export interface ManagerUpdateProcessStatusAfterPositionEventFields {
|
|
1538
|
-
marketIndex: ToField<"u64">;
|
|
1539
|
-
poolIndex: ToField<"u64">;
|
|
1540
|
-
liquidityToken: ToField<TypeName>;
|
|
1541
|
-
tradingBaseToken: ToField<TypeName>;
|
|
1542
|
-
}
|
|
1543
|
-
export type ManagerUpdateProcessStatusAfterPositionEventReified = Reified<ManagerUpdateProcessStatusAfterPositionEvent, ManagerUpdateProcessStatusAfterPositionEventFields>;
|
|
1544
|
-
export declare class ManagerUpdateProcessStatusAfterPositionEvent implements StructClass {
|
|
1545
|
-
__StructClass: true;
|
|
1546
|
-
static readonly $typeName: string;
|
|
1547
|
-
static readonly $numTypeParams = 0;
|
|
1548
|
-
static readonly $isPhantom: readonly [];
|
|
1549
|
-
readonly $typeName: string;
|
|
1550
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::ManagerUpdateProcessStatusAfterPositionEvent`;
|
|
1551
|
-
readonly $typeArgs: [];
|
|
1552
|
-
readonly $isPhantom: readonly [];
|
|
1553
|
-
readonly marketIndex: ToField<"u64">;
|
|
1554
|
-
readonly poolIndex: ToField<"u64">;
|
|
1555
|
-
readonly liquidityToken: ToField<TypeName>;
|
|
1556
|
-
readonly tradingBaseToken: ToField<TypeName>;
|
|
1557
|
-
private constructor();
|
|
1558
|
-
static reified(): ManagerUpdateProcessStatusAfterPositionEventReified;
|
|
1559
|
-
static get r(): reified.StructClassReified<ManagerUpdateProcessStatusAfterPositionEvent, ManagerUpdateProcessStatusAfterPositionEventFields>;
|
|
1560
|
-
static phantom(): PhantomReified<ToTypeStr<ManagerUpdateProcessStatusAfterPositionEvent>>;
|
|
1561
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::ManagerUpdateProcessStatusAfterPositionEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::ManagerUpdateProcessStatusAfterPositionEvent">;
|
|
1562
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1563
|
-
market_index: string;
|
|
1564
|
-
pool_index: string;
|
|
1565
|
-
liquidity_token: {
|
|
1566
|
-
name: {
|
|
1567
|
-
bytes: number[];
|
|
1568
|
-
};
|
|
1569
|
-
};
|
|
1570
|
-
trading_base_token: {
|
|
1571
|
-
name: {
|
|
1572
|
-
bytes: number[];
|
|
1573
|
-
};
|
|
1574
|
-
};
|
|
1575
|
-
}, {
|
|
1576
|
-
market_index: string | number | bigint;
|
|
1577
|
-
pool_index: string | number | bigint;
|
|
1578
|
-
liquidity_token: {
|
|
1579
|
-
name: {
|
|
1580
|
-
bytes: Iterable<number> & {
|
|
1581
|
-
length: number;
|
|
1582
|
-
};
|
|
1583
|
-
};
|
|
1584
|
-
};
|
|
1585
|
-
trading_base_token: {
|
|
1586
|
-
name: {
|
|
1587
|
-
bytes: Iterable<number> & {
|
|
1588
|
-
length: number;
|
|
1589
|
-
};
|
|
1590
|
-
};
|
|
1591
|
-
};
|
|
1592
|
-
}>;
|
|
1593
|
-
static fromFields(fields: Record<string, any>): ManagerUpdateProcessStatusAfterPositionEvent;
|
|
1594
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): ManagerUpdateProcessStatusAfterPositionEvent;
|
|
1595
|
-
static fromBcs(data: Uint8Array): ManagerUpdateProcessStatusAfterPositionEvent;
|
|
1596
|
-
toJSONField(): {
|
|
1597
|
-
marketIndex: string;
|
|
1598
|
-
poolIndex: string;
|
|
1599
|
-
liquidityToken: {
|
|
1600
|
-
name: string;
|
|
1601
|
-
};
|
|
1602
|
-
tradingBaseToken: {
|
|
1603
|
-
name: string;
|
|
1604
|
-
};
|
|
1605
|
-
};
|
|
1606
|
-
toJSON(): {
|
|
1607
|
-
marketIndex: string;
|
|
1608
|
-
poolIndex: string;
|
|
1609
|
-
liquidityToken: {
|
|
1610
|
-
name: string;
|
|
1611
|
-
};
|
|
1612
|
-
tradingBaseToken: {
|
|
1613
|
-
name: string;
|
|
1614
|
-
};
|
|
1615
|
-
$typeName: string;
|
|
1616
|
-
$typeArgs: [];
|
|
1617
|
-
};
|
|
1618
|
-
static fromJSONField(field: any): ManagerUpdateProcessStatusAfterPositionEvent;
|
|
1619
|
-
static fromJSON(json: Record<string, any>): ManagerUpdateProcessStatusAfterPositionEvent;
|
|
1620
|
-
static fromSuiParsedData(content: SuiParsedData): ManagerUpdateProcessStatusAfterPositionEvent;
|
|
1621
|
-
static fromSuiObjectData(data: SuiObjectData): ManagerUpdateProcessStatusAfterPositionEvent;
|
|
1622
|
-
static fetch(client: SuiClient, id: string): Promise<ManagerUpdateProcessStatusAfterPositionEvent>;
|
|
1623
|
-
}
|
|
1624
|
-
export declare function isMarketConfig(type: string): boolean;
|
|
1625
|
-
export interface MarketConfigFields {
|
|
1626
|
-
oracleId: ToField<"address">;
|
|
1627
|
-
maxLeverageMbp: ToField<"u64">;
|
|
1628
|
-
optionCollateralMaxLeverageMbp: ToField<"u64">;
|
|
1629
|
-
minSize: ToField<"u64">;
|
|
1630
|
-
lotSize: ToField<"u64">;
|
|
1631
|
-
tradingFeeConfig: ToField<Vector<"u64">>;
|
|
1632
|
-
basicFundingRate: ToField<"u64">;
|
|
1633
|
-
fundingIntervalTsMs: ToField<"u64">;
|
|
1634
|
-
expMultiplier: ToField<"u64">;
|
|
1635
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
1636
|
-
}
|
|
1637
|
-
export type MarketConfigReified = Reified<MarketConfig, MarketConfigFields>;
|
|
1638
|
-
export declare class MarketConfig implements StructClass {
|
|
1639
|
-
__StructClass: true;
|
|
1640
|
-
static readonly $typeName: string;
|
|
1641
|
-
static readonly $numTypeParams = 0;
|
|
1642
|
-
static readonly $isPhantom: readonly [];
|
|
1643
|
-
readonly $typeName: string;
|
|
1644
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::MarketConfig`;
|
|
1645
|
-
readonly $typeArgs: [];
|
|
1646
|
-
readonly $isPhantom: readonly [];
|
|
1647
|
-
readonly oracleId: ToField<"address">;
|
|
1648
|
-
readonly maxLeverageMbp: ToField<"u64">;
|
|
1649
|
-
readonly optionCollateralMaxLeverageMbp: ToField<"u64">;
|
|
1650
|
-
readonly minSize: ToField<"u64">;
|
|
1651
|
-
readonly lotSize: ToField<"u64">;
|
|
1652
|
-
readonly tradingFeeConfig: ToField<Vector<"u64">>;
|
|
1653
|
-
readonly basicFundingRate: ToField<"u64">;
|
|
1654
|
-
readonly fundingIntervalTsMs: ToField<"u64">;
|
|
1655
|
-
readonly expMultiplier: ToField<"u64">;
|
|
1656
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1657
|
-
private constructor();
|
|
1658
|
-
static reified(): MarketConfigReified;
|
|
1659
|
-
static get r(): reified.StructClassReified<MarketConfig, MarketConfigFields>;
|
|
1660
|
-
static phantom(): PhantomReified<ToTypeStr<MarketConfig>>;
|
|
1661
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::MarketConfig" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::MarketConfig">;
|
|
1662
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1663
|
-
oracle_id: string;
|
|
1664
|
-
max_leverage_mbp: string;
|
|
1665
|
-
option_collateral_max_leverage_mbp: string;
|
|
1666
|
-
min_size: string;
|
|
1667
|
-
lot_size: string;
|
|
1668
|
-
trading_fee_config: string[];
|
|
1669
|
-
basic_funding_rate: string;
|
|
1670
|
-
funding_interval_ts_ms: string;
|
|
1671
|
-
exp_multiplier: string;
|
|
1672
|
-
u64_padding: string[];
|
|
1673
|
-
}, {
|
|
1674
|
-
oracle_id: string;
|
|
1675
|
-
max_leverage_mbp: string | number | bigint;
|
|
1676
|
-
option_collateral_max_leverage_mbp: string | number | bigint;
|
|
1677
|
-
min_size: string | number | bigint;
|
|
1678
|
-
lot_size: string | number | bigint;
|
|
1679
|
-
trading_fee_config: Iterable<string | number | bigint> & {
|
|
1680
|
-
length: number;
|
|
1681
|
-
};
|
|
1682
|
-
basic_funding_rate: string | number | bigint;
|
|
1683
|
-
funding_interval_ts_ms: string | number | bigint;
|
|
1684
|
-
exp_multiplier: string | number | bigint;
|
|
1685
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
1686
|
-
length: number;
|
|
1687
|
-
};
|
|
1688
|
-
}>;
|
|
1689
|
-
static fromFields(fields: Record<string, any>): MarketConfig;
|
|
1690
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): MarketConfig;
|
|
1691
|
-
static fromBcs(data: Uint8Array): MarketConfig;
|
|
1692
|
-
toJSONField(): {
|
|
1693
|
-
oracleId: string;
|
|
1694
|
-
maxLeverageMbp: string;
|
|
1695
|
-
optionCollateralMaxLeverageMbp: string;
|
|
1696
|
-
minSize: string;
|
|
1697
|
-
lotSize: string;
|
|
1698
|
-
tradingFeeConfig: string[];
|
|
1699
|
-
basicFundingRate: string;
|
|
1700
|
-
fundingIntervalTsMs: string;
|
|
1701
|
-
expMultiplier: string;
|
|
1702
|
-
u64Padding: string[];
|
|
1703
|
-
};
|
|
1704
|
-
toJSON(): {
|
|
1705
|
-
oracleId: string;
|
|
1706
|
-
maxLeverageMbp: string;
|
|
1707
|
-
optionCollateralMaxLeverageMbp: string;
|
|
1708
|
-
minSize: string;
|
|
1709
|
-
lotSize: string;
|
|
1710
|
-
tradingFeeConfig: string[];
|
|
1711
|
-
basicFundingRate: string;
|
|
1712
|
-
fundingIntervalTsMs: string;
|
|
1713
|
-
expMultiplier: string;
|
|
1714
|
-
u64Padding: string[];
|
|
1715
|
-
$typeName: string;
|
|
1716
|
-
$typeArgs: [];
|
|
1717
|
-
};
|
|
1718
|
-
static fromJSONField(field: any): MarketConfig;
|
|
1719
|
-
static fromJSON(json: Record<string, any>): MarketConfig;
|
|
1720
|
-
static fromSuiParsedData(content: SuiParsedData): MarketConfig;
|
|
1721
|
-
static fromSuiObjectData(data: SuiObjectData): MarketConfig;
|
|
1722
|
-
static fetch(client: SuiClient, id: string): Promise<MarketConfig>;
|
|
1723
|
-
}
|
|
1724
|
-
export declare function isMarketInfo(type: string): boolean;
|
|
1725
|
-
export interface MarketInfoFields {
|
|
1726
|
-
isActive: ToField<"bool">;
|
|
1727
|
-
sizeDecimal: ToField<"u64">;
|
|
1728
|
-
userLongPositionSize: ToField<"u64">;
|
|
1729
|
-
userShortPositionSize: ToField<"u64">;
|
|
1730
|
-
nextPositionId: ToField<"u64">;
|
|
1731
|
-
userLongOrderSize: ToField<"u64">;
|
|
1732
|
-
userShortOrderSize: ToField<"u64">;
|
|
1733
|
-
nextOrderId: ToField<"u64">;
|
|
1734
|
-
lastFundingTsMs: ToField<"u64">;
|
|
1735
|
-
cumulativeFundingRateIndexSign: ToField<"bool">;
|
|
1736
|
-
cumulativeFundingRateIndex: ToField<"u64">;
|
|
1737
|
-
previousLastFundingTsMs: ToField<"u64">;
|
|
1738
|
-
previousCumulativeFundingRateIndexSign: ToField<"bool">;
|
|
1739
|
-
previousCumulativeFundingRateIndex: ToField<"u64">;
|
|
1740
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
1741
|
-
}
|
|
1742
|
-
export type MarketInfoReified = Reified<MarketInfo, MarketInfoFields>;
|
|
1743
|
-
export declare class MarketInfo implements StructClass {
|
|
1744
|
-
__StructClass: true;
|
|
1745
|
-
static readonly $typeName: string;
|
|
1746
|
-
static readonly $numTypeParams = 0;
|
|
1747
|
-
static readonly $isPhantom: readonly [];
|
|
1748
|
-
readonly $typeName: string;
|
|
1749
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::MarketInfo`;
|
|
1750
|
-
readonly $typeArgs: [];
|
|
1751
|
-
readonly $isPhantom: readonly [];
|
|
1752
|
-
readonly isActive: ToField<"bool">;
|
|
1753
|
-
readonly sizeDecimal: ToField<"u64">;
|
|
1754
|
-
readonly userLongPositionSize: ToField<"u64">;
|
|
1755
|
-
readonly userShortPositionSize: ToField<"u64">;
|
|
1756
|
-
readonly nextPositionId: ToField<"u64">;
|
|
1757
|
-
readonly userLongOrderSize: ToField<"u64">;
|
|
1758
|
-
readonly userShortOrderSize: ToField<"u64">;
|
|
1759
|
-
readonly nextOrderId: ToField<"u64">;
|
|
1760
|
-
readonly lastFundingTsMs: ToField<"u64">;
|
|
1761
|
-
readonly cumulativeFundingRateIndexSign: ToField<"bool">;
|
|
1762
|
-
readonly cumulativeFundingRateIndex: ToField<"u64">;
|
|
1763
|
-
readonly previousLastFundingTsMs: ToField<"u64">;
|
|
1764
|
-
readonly previousCumulativeFundingRateIndexSign: ToField<"bool">;
|
|
1765
|
-
readonly previousCumulativeFundingRateIndex: ToField<"u64">;
|
|
1766
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1767
|
-
private constructor();
|
|
1768
|
-
static reified(): MarketInfoReified;
|
|
1769
|
-
static get r(): reified.StructClassReified<MarketInfo, MarketInfoFields>;
|
|
1770
|
-
static phantom(): PhantomReified<ToTypeStr<MarketInfo>>;
|
|
1771
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::MarketInfo" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::MarketInfo">;
|
|
1772
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1773
|
-
is_active: boolean;
|
|
1774
|
-
size_decimal: string;
|
|
1775
|
-
user_long_position_size: string;
|
|
1776
|
-
user_short_position_size: string;
|
|
1777
|
-
next_position_id: string;
|
|
1778
|
-
user_long_order_size: string;
|
|
1779
|
-
user_short_order_size: string;
|
|
1780
|
-
next_order_id: string;
|
|
1781
|
-
last_funding_ts_ms: string;
|
|
1782
|
-
cumulative_funding_rate_index_sign: boolean;
|
|
1783
|
-
cumulative_funding_rate_index: string;
|
|
1784
|
-
previous_last_funding_ts_ms: string;
|
|
1785
|
-
previous_cumulative_funding_rate_index_sign: boolean;
|
|
1786
|
-
previous_cumulative_funding_rate_index: string;
|
|
1787
|
-
u64_padding: string[];
|
|
1788
|
-
}, {
|
|
1789
|
-
is_active: boolean;
|
|
1790
|
-
size_decimal: string | number | bigint;
|
|
1791
|
-
user_long_position_size: string | number | bigint;
|
|
1792
|
-
user_short_position_size: string | number | bigint;
|
|
1793
|
-
next_position_id: string | number | bigint;
|
|
1794
|
-
user_long_order_size: string | number | bigint;
|
|
1795
|
-
user_short_order_size: string | number | bigint;
|
|
1796
|
-
next_order_id: string | number | bigint;
|
|
1797
|
-
last_funding_ts_ms: string | number | bigint;
|
|
1798
|
-
cumulative_funding_rate_index_sign: boolean;
|
|
1799
|
-
cumulative_funding_rate_index: string | number | bigint;
|
|
1800
|
-
previous_last_funding_ts_ms: string | number | bigint;
|
|
1801
|
-
previous_cumulative_funding_rate_index_sign: boolean;
|
|
1802
|
-
previous_cumulative_funding_rate_index: string | number | bigint;
|
|
1803
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
1804
|
-
length: number;
|
|
1805
|
-
};
|
|
1806
|
-
}>;
|
|
1807
|
-
static fromFields(fields: Record<string, any>): MarketInfo;
|
|
1808
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): MarketInfo;
|
|
1809
|
-
static fromBcs(data: Uint8Array): MarketInfo;
|
|
1810
|
-
toJSONField(): {
|
|
1811
|
-
isActive: boolean;
|
|
1812
|
-
sizeDecimal: string;
|
|
1813
|
-
userLongPositionSize: string;
|
|
1814
|
-
userShortPositionSize: string;
|
|
1815
|
-
nextPositionId: string;
|
|
1816
|
-
userLongOrderSize: string;
|
|
1817
|
-
userShortOrderSize: string;
|
|
1818
|
-
nextOrderId: string;
|
|
1819
|
-
lastFundingTsMs: string;
|
|
1820
|
-
cumulativeFundingRateIndexSign: boolean;
|
|
1821
|
-
cumulativeFundingRateIndex: string;
|
|
1822
|
-
previousLastFundingTsMs: string;
|
|
1823
|
-
previousCumulativeFundingRateIndexSign: boolean;
|
|
1824
|
-
previousCumulativeFundingRateIndex: string;
|
|
1825
|
-
u64Padding: string[];
|
|
1826
|
-
};
|
|
1827
|
-
toJSON(): {
|
|
1828
|
-
isActive: boolean;
|
|
1829
|
-
sizeDecimal: string;
|
|
1830
|
-
userLongPositionSize: string;
|
|
1831
|
-
userShortPositionSize: string;
|
|
1832
|
-
nextPositionId: string;
|
|
1833
|
-
userLongOrderSize: string;
|
|
1834
|
-
userShortOrderSize: string;
|
|
1835
|
-
nextOrderId: string;
|
|
1836
|
-
lastFundingTsMs: string;
|
|
1837
|
-
cumulativeFundingRateIndexSign: boolean;
|
|
1838
|
-
cumulativeFundingRateIndex: string;
|
|
1839
|
-
previousLastFundingTsMs: string;
|
|
1840
|
-
previousCumulativeFundingRateIndexSign: boolean;
|
|
1841
|
-
previousCumulativeFundingRateIndex: string;
|
|
1842
|
-
u64Padding: string[];
|
|
1843
|
-
$typeName: string;
|
|
1844
|
-
$typeArgs: [];
|
|
1845
|
-
};
|
|
1846
|
-
static fromJSONField(field: any): MarketInfo;
|
|
1847
|
-
static fromJSON(json: Record<string, any>): MarketInfo;
|
|
1848
|
-
static fromSuiParsedData(content: SuiParsedData): MarketInfo;
|
|
1849
|
-
static fromSuiObjectData(data: SuiObjectData): MarketInfo;
|
|
1850
|
-
static fetch(client: SuiClient, id: string): Promise<MarketInfo>;
|
|
1851
|
-
}
|
|
1852
|
-
export declare function isMarketRegistry(type: string): boolean;
|
|
1853
|
-
export interface MarketRegistryFields {
|
|
1854
|
-
id: ToField<UID>;
|
|
1855
|
-
referralRegistry: ToField<UID>;
|
|
1856
|
-
markets: ToField<LinkedObjectTable<"u64", ToPhantom<Markets>>>;
|
|
1857
|
-
numMarket: ToField<"u64">;
|
|
1858
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
1859
|
-
}
|
|
1860
|
-
export type MarketRegistryReified = Reified<MarketRegistry, MarketRegistryFields>;
|
|
1861
|
-
export declare class MarketRegistry implements StructClass {
|
|
1862
|
-
__StructClass: true;
|
|
1863
|
-
static readonly $typeName: string;
|
|
1864
|
-
static readonly $numTypeParams = 0;
|
|
1865
|
-
static readonly $isPhantom: readonly [];
|
|
1866
|
-
readonly $typeName: string;
|
|
1867
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::MarketRegistry`;
|
|
1868
|
-
readonly $typeArgs: [];
|
|
1869
|
-
readonly $isPhantom: readonly [];
|
|
1870
|
-
readonly id: ToField<UID>;
|
|
1871
|
-
readonly referralRegistry: ToField<UID>;
|
|
1872
|
-
readonly markets: ToField<LinkedObjectTable<"u64", ToPhantom<Markets>>>;
|
|
1873
|
-
readonly numMarket: ToField<"u64">;
|
|
1874
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1875
|
-
private constructor();
|
|
1876
|
-
static reified(): MarketRegistryReified;
|
|
1877
|
-
static get r(): reified.StructClassReified<MarketRegistry, MarketRegistryFields>;
|
|
1878
|
-
static phantom(): PhantomReified<ToTypeStr<MarketRegistry>>;
|
|
1879
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::MarketRegistry" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::MarketRegistry">;
|
|
1880
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1881
|
-
id: {
|
|
1882
|
-
id: {
|
|
1883
|
-
bytes: string;
|
|
1884
|
-
};
|
|
1885
|
-
};
|
|
1886
|
-
referral_registry: {
|
|
1887
|
-
id: {
|
|
1888
|
-
bytes: string;
|
|
1889
|
-
};
|
|
1890
|
-
};
|
|
1891
|
-
markets: {
|
|
1892
|
-
id: {
|
|
1893
|
-
id: {
|
|
1894
|
-
bytes: string;
|
|
1895
|
-
};
|
|
1896
|
-
};
|
|
1897
|
-
vid: {
|
|
1898
|
-
id: {
|
|
1899
|
-
bytes: string;
|
|
1900
|
-
};
|
|
1901
|
-
};
|
|
1902
|
-
size: string;
|
|
1903
|
-
head: {
|
|
1904
|
-
vec: any[];
|
|
1905
|
-
};
|
|
1906
|
-
tail: {
|
|
1907
|
-
vec: any[];
|
|
1908
|
-
};
|
|
1909
|
-
};
|
|
1910
|
-
num_market: string;
|
|
1911
|
-
u64_padding: string[];
|
|
1912
|
-
}, {
|
|
1913
|
-
id: {
|
|
1914
|
-
id: {
|
|
1915
|
-
bytes: string;
|
|
1916
|
-
};
|
|
1917
|
-
};
|
|
1918
|
-
referral_registry: {
|
|
1919
|
-
id: {
|
|
1920
|
-
bytes: string;
|
|
1921
|
-
};
|
|
1922
|
-
};
|
|
1923
|
-
markets: {
|
|
1924
|
-
id: {
|
|
1925
|
-
id: {
|
|
1926
|
-
bytes: string;
|
|
1927
|
-
};
|
|
1928
|
-
};
|
|
1929
|
-
vid: {
|
|
1930
|
-
id: {
|
|
1931
|
-
bytes: string;
|
|
1932
|
-
};
|
|
1933
|
-
};
|
|
1934
|
-
size: string | number | bigint;
|
|
1935
|
-
head: {
|
|
1936
|
-
vec: Iterable<any> & {
|
|
1937
|
-
length: number;
|
|
1938
|
-
};
|
|
1939
|
-
};
|
|
1940
|
-
tail: {
|
|
1941
|
-
vec: Iterable<any> & {
|
|
1942
|
-
length: number;
|
|
1943
|
-
};
|
|
1944
|
-
};
|
|
1945
|
-
};
|
|
1946
|
-
num_market: string | number | bigint;
|
|
1947
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
1948
|
-
length: number;
|
|
1949
|
-
};
|
|
1950
|
-
}>;
|
|
1951
|
-
static fromFields(fields: Record<string, any>): MarketRegistry;
|
|
1952
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): MarketRegistry;
|
|
1953
|
-
static fromBcs(data: Uint8Array): MarketRegistry;
|
|
1954
|
-
toJSONField(): {
|
|
1955
|
-
id: string;
|
|
1956
|
-
referralRegistry: string;
|
|
1957
|
-
markets: {
|
|
1958
|
-
id: string;
|
|
1959
|
-
vid: string;
|
|
1960
|
-
size: string;
|
|
1961
|
-
head: string | null;
|
|
1962
|
-
tail: string | null;
|
|
1963
|
-
};
|
|
1964
|
-
numMarket: string;
|
|
1965
|
-
u64Padding: string[];
|
|
1966
|
-
};
|
|
1967
|
-
toJSON(): {
|
|
1968
|
-
id: string;
|
|
1969
|
-
referralRegistry: string;
|
|
1970
|
-
markets: {
|
|
1971
|
-
id: string;
|
|
1972
|
-
vid: string;
|
|
1973
|
-
size: string;
|
|
1974
|
-
head: string | null;
|
|
1975
|
-
tail: string | null;
|
|
1976
|
-
};
|
|
1977
|
-
numMarket: string;
|
|
1978
|
-
u64Padding: string[];
|
|
1979
|
-
$typeName: string;
|
|
1980
|
-
$typeArgs: [];
|
|
1981
|
-
};
|
|
1982
|
-
static fromJSONField(field: any): MarketRegistry;
|
|
1983
|
-
static fromJSON(json: Record<string, any>): MarketRegistry;
|
|
1984
|
-
static fromSuiParsedData(content: SuiParsedData): MarketRegistry;
|
|
1985
|
-
static fromSuiObjectData(data: SuiObjectData): MarketRegistry;
|
|
1986
|
-
static fetch(client: SuiClient, id: string): Promise<MarketRegistry>;
|
|
1987
|
-
}
|
|
1988
|
-
export declare function isMarkets(type: string): boolean;
|
|
1989
|
-
export interface MarketsFields {
|
|
1990
|
-
id: ToField<UID>;
|
|
1991
|
-
index: ToField<"u64">;
|
|
1992
|
-
lpTokenType: ToField<TypeName>;
|
|
1993
|
-
quoteTokenType: ToField<TypeName>;
|
|
1994
|
-
isActive: ToField<"bool">;
|
|
1995
|
-
protocolFeeShareBp: ToField<"u64">;
|
|
1996
|
-
symbols: ToField<Vector<TypeName>>;
|
|
1997
|
-
symbolMarkets: ToField<ObjectTable<ToPhantom<TypeName>, ToPhantom<SymbolMarket>>>;
|
|
1998
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
1999
|
-
}
|
|
2000
|
-
export type MarketsReified = Reified<Markets, MarketsFields>;
|
|
2001
|
-
export declare class Markets implements StructClass {
|
|
2002
|
-
__StructClass: true;
|
|
2003
|
-
static readonly $typeName: string;
|
|
2004
|
-
static readonly $numTypeParams = 0;
|
|
2005
|
-
static readonly $isPhantom: readonly [];
|
|
2006
|
-
readonly $typeName: string;
|
|
2007
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::Markets`;
|
|
2008
|
-
readonly $typeArgs: [];
|
|
2009
|
-
readonly $isPhantom: readonly [];
|
|
2010
|
-
readonly id: ToField<UID>;
|
|
2011
|
-
readonly index: ToField<"u64">;
|
|
2012
|
-
readonly lpTokenType: ToField<TypeName>;
|
|
2013
|
-
readonly quoteTokenType: ToField<TypeName>;
|
|
2014
|
-
readonly isActive: ToField<"bool">;
|
|
2015
|
-
readonly protocolFeeShareBp: ToField<"u64">;
|
|
2016
|
-
readonly symbols: ToField<Vector<TypeName>>;
|
|
2017
|
-
readonly symbolMarkets: ToField<ObjectTable<ToPhantom<TypeName>, ToPhantom<SymbolMarket>>>;
|
|
2018
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
2019
|
-
private constructor();
|
|
2020
|
-
static reified(): MarketsReified;
|
|
2021
|
-
static get r(): reified.StructClassReified<Markets, MarketsFields>;
|
|
2022
|
-
static phantom(): PhantomReified<ToTypeStr<Markets>>;
|
|
2023
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::Markets" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::Markets">;
|
|
2024
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2025
|
-
id: {
|
|
2026
|
-
id: {
|
|
2027
|
-
bytes: string;
|
|
2028
|
-
};
|
|
2029
|
-
};
|
|
2030
|
-
index: string;
|
|
2031
|
-
lp_token_type: {
|
|
2032
|
-
name: {
|
|
2033
|
-
bytes: number[];
|
|
2034
|
-
};
|
|
2035
|
-
};
|
|
2036
|
-
quote_token_type: {
|
|
2037
|
-
name: {
|
|
2038
|
-
bytes: number[];
|
|
2039
|
-
};
|
|
2040
|
-
};
|
|
2041
|
-
is_active: boolean;
|
|
2042
|
-
protocol_fee_share_bp: string;
|
|
2043
|
-
symbols: {
|
|
2044
|
-
name: {
|
|
2045
|
-
bytes: number[];
|
|
2046
|
-
};
|
|
2047
|
-
}[];
|
|
2048
|
-
symbol_markets: {
|
|
2049
|
-
id: {
|
|
2050
|
-
id: {
|
|
2051
|
-
bytes: string;
|
|
2052
|
-
};
|
|
2053
|
-
};
|
|
2054
|
-
size: string;
|
|
2055
|
-
};
|
|
2056
|
-
u64_padding: string[];
|
|
2057
|
-
}, {
|
|
2058
|
-
id: {
|
|
2059
|
-
id: {
|
|
2060
|
-
bytes: string;
|
|
2061
|
-
};
|
|
2062
|
-
};
|
|
2063
|
-
index: string | number | bigint;
|
|
2064
|
-
lp_token_type: {
|
|
2065
|
-
name: {
|
|
2066
|
-
bytes: Iterable<number> & {
|
|
2067
|
-
length: number;
|
|
2068
|
-
};
|
|
2069
|
-
};
|
|
2070
|
-
};
|
|
2071
|
-
quote_token_type: {
|
|
2072
|
-
name: {
|
|
2073
|
-
bytes: Iterable<number> & {
|
|
2074
|
-
length: number;
|
|
2075
|
-
};
|
|
2076
|
-
};
|
|
2077
|
-
};
|
|
2078
|
-
is_active: boolean;
|
|
2079
|
-
protocol_fee_share_bp: string | number | bigint;
|
|
2080
|
-
symbols: Iterable<{
|
|
2081
|
-
name: {
|
|
2082
|
-
bytes: Iterable<number> & {
|
|
2083
|
-
length: number;
|
|
2084
|
-
};
|
|
2085
|
-
};
|
|
2086
|
-
}> & {
|
|
2087
|
-
length: number;
|
|
2088
|
-
};
|
|
2089
|
-
symbol_markets: {
|
|
2090
|
-
id: {
|
|
2091
|
-
id: {
|
|
2092
|
-
bytes: string;
|
|
2093
|
-
};
|
|
2094
|
-
};
|
|
2095
|
-
size: string | number | bigint;
|
|
2096
|
-
};
|
|
2097
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
2098
|
-
length: number;
|
|
2099
|
-
};
|
|
2100
|
-
}>;
|
|
2101
|
-
static fromFields(fields: Record<string, any>): Markets;
|
|
2102
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): Markets;
|
|
2103
|
-
static fromBcs(data: Uint8Array): Markets;
|
|
2104
|
-
toJSONField(): {
|
|
2105
|
-
id: string;
|
|
2106
|
-
index: string;
|
|
2107
|
-
lpTokenType: {
|
|
2108
|
-
name: string;
|
|
2109
|
-
};
|
|
2110
|
-
quoteTokenType: {
|
|
2111
|
-
name: string;
|
|
2112
|
-
};
|
|
2113
|
-
isActive: boolean;
|
|
2114
|
-
protocolFeeShareBp: string;
|
|
2115
|
-
symbols: {
|
|
2116
|
-
name: string;
|
|
2117
|
-
}[];
|
|
2118
|
-
symbolMarkets: {
|
|
2119
|
-
id: string;
|
|
2120
|
-
size: string;
|
|
2121
|
-
};
|
|
2122
|
-
u64Padding: string[];
|
|
2123
|
-
};
|
|
2124
|
-
toJSON(): {
|
|
2125
|
-
id: string;
|
|
2126
|
-
index: string;
|
|
2127
|
-
lpTokenType: {
|
|
2128
|
-
name: string;
|
|
2129
|
-
};
|
|
2130
|
-
quoteTokenType: {
|
|
2131
|
-
name: string;
|
|
2132
|
-
};
|
|
2133
|
-
isActive: boolean;
|
|
2134
|
-
protocolFeeShareBp: string;
|
|
2135
|
-
symbols: {
|
|
2136
|
-
name: string;
|
|
2137
|
-
}[];
|
|
2138
|
-
symbolMarkets: {
|
|
2139
|
-
id: string;
|
|
2140
|
-
size: string;
|
|
2141
|
-
};
|
|
2142
|
-
u64Padding: string[];
|
|
2143
|
-
$typeName: string;
|
|
2144
|
-
$typeArgs: [];
|
|
2145
|
-
};
|
|
2146
|
-
static fromJSONField(field: any): Markets;
|
|
2147
|
-
static fromJSON(json: Record<string, any>): Markets;
|
|
2148
|
-
static fromSuiParsedData(content: SuiParsedData): Markets;
|
|
2149
|
-
static fromSuiObjectData(data: SuiObjectData): Markets;
|
|
2150
|
-
static fetch(client: SuiClient, id: string): Promise<Markets>;
|
|
2151
|
-
}
|
|
2152
|
-
export declare function isMatchTradingOrderEvent(type: string): boolean;
|
|
2153
|
-
export interface MatchTradingOrderEventFields {
|
|
2154
|
-
collateralToken: ToField<TypeName>;
|
|
2155
|
-
baseToken: ToField<TypeName>;
|
|
2156
|
-
matchedOrderIds: ToField<Vector<"u64">>;
|
|
2157
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
2158
|
-
}
|
|
2159
|
-
export type MatchTradingOrderEventReified = Reified<MatchTradingOrderEvent, MatchTradingOrderEventFields>;
|
|
2160
|
-
export declare class MatchTradingOrderEvent implements StructClass {
|
|
2161
|
-
__StructClass: true;
|
|
2162
|
-
static readonly $typeName: string;
|
|
2163
|
-
static readonly $numTypeParams = 0;
|
|
2164
|
-
static readonly $isPhantom: readonly [];
|
|
2165
|
-
readonly $typeName: string;
|
|
2166
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::MatchTradingOrderEvent`;
|
|
2167
|
-
readonly $typeArgs: [];
|
|
2168
|
-
readonly $isPhantom: readonly [];
|
|
2169
|
-
readonly collateralToken: ToField<TypeName>;
|
|
2170
|
-
readonly baseToken: ToField<TypeName>;
|
|
2171
|
-
readonly matchedOrderIds: ToField<Vector<"u64">>;
|
|
2172
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
2173
|
-
private constructor();
|
|
2174
|
-
static reified(): MatchTradingOrderEventReified;
|
|
2175
|
-
static get r(): reified.StructClassReified<MatchTradingOrderEvent, MatchTradingOrderEventFields>;
|
|
2176
|
-
static phantom(): PhantomReified<ToTypeStr<MatchTradingOrderEvent>>;
|
|
2177
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::MatchTradingOrderEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::MatchTradingOrderEvent">;
|
|
2178
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2179
|
-
collateral_token: {
|
|
2180
|
-
name: {
|
|
2181
|
-
bytes: number[];
|
|
2182
|
-
};
|
|
2183
|
-
};
|
|
2184
|
-
base_token: {
|
|
2185
|
-
name: {
|
|
2186
|
-
bytes: number[];
|
|
2187
|
-
};
|
|
2188
|
-
};
|
|
2189
|
-
matched_order_ids: string[];
|
|
2190
|
-
u64_padding: string[];
|
|
2191
|
-
}, {
|
|
2192
|
-
collateral_token: {
|
|
2193
|
-
name: {
|
|
2194
|
-
bytes: Iterable<number> & {
|
|
2195
|
-
length: number;
|
|
2196
|
-
};
|
|
2197
|
-
};
|
|
2198
|
-
};
|
|
2199
|
-
base_token: {
|
|
2200
|
-
name: {
|
|
2201
|
-
bytes: Iterable<number> & {
|
|
2202
|
-
length: number;
|
|
2203
|
-
};
|
|
2204
|
-
};
|
|
2205
|
-
};
|
|
2206
|
-
matched_order_ids: Iterable<string | number | bigint> & {
|
|
2207
|
-
length: number;
|
|
2208
|
-
};
|
|
2209
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
2210
|
-
length: number;
|
|
2211
|
-
};
|
|
2212
|
-
}>;
|
|
2213
|
-
static fromFields(fields: Record<string, any>): MatchTradingOrderEvent;
|
|
2214
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): MatchTradingOrderEvent;
|
|
2215
|
-
static fromBcs(data: Uint8Array): MatchTradingOrderEvent;
|
|
2216
|
-
toJSONField(): {
|
|
2217
|
-
collateralToken: {
|
|
2218
|
-
name: string;
|
|
2219
|
-
};
|
|
2220
|
-
baseToken: {
|
|
2221
|
-
name: string;
|
|
2222
|
-
};
|
|
2223
|
-
matchedOrderIds: string[];
|
|
2224
|
-
u64Padding: string[];
|
|
2225
|
-
};
|
|
2226
|
-
toJSON(): {
|
|
2227
|
-
collateralToken: {
|
|
2228
|
-
name: string;
|
|
2229
|
-
};
|
|
2230
|
-
baseToken: {
|
|
2231
|
-
name: string;
|
|
2232
|
-
};
|
|
2233
|
-
matchedOrderIds: string[];
|
|
2234
|
-
u64Padding: string[];
|
|
2235
|
-
$typeName: string;
|
|
2236
|
-
$typeArgs: [];
|
|
2237
|
-
};
|
|
2238
|
-
static fromJSONField(field: any): MatchTradingOrderEvent;
|
|
2239
|
-
static fromJSON(json: Record<string, any>): MatchTradingOrderEvent;
|
|
2240
|
-
static fromSuiParsedData(content: SuiParsedData): MatchTradingOrderEvent;
|
|
2241
|
-
static fromSuiObjectData(data: SuiObjectData): MatchTradingOrderEvent;
|
|
2242
|
-
static fetch(client: SuiClient, id: string): Promise<MatchTradingOrderEvent>;
|
|
2243
|
-
}
|
|
2244
|
-
export declare function isNewMarketsEvent(type: string): boolean;
|
|
2245
|
-
export interface NewMarketsEventFields {
|
|
2246
|
-
index: ToField<"u64">;
|
|
2247
|
-
lpTokenType: ToField<TypeName>;
|
|
2248
|
-
quoteTokenType: ToField<TypeName>;
|
|
2249
|
-
protocolFeeShareBp: ToField<"u64">;
|
|
2250
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
2251
|
-
}
|
|
2252
|
-
export type NewMarketsEventReified = Reified<NewMarketsEvent, NewMarketsEventFields>;
|
|
2253
|
-
export declare class NewMarketsEvent implements StructClass {
|
|
2254
|
-
__StructClass: true;
|
|
2255
|
-
static readonly $typeName: string;
|
|
2256
|
-
static readonly $numTypeParams = 0;
|
|
2257
|
-
static readonly $isPhantom: readonly [];
|
|
2258
|
-
readonly $typeName: string;
|
|
2259
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::NewMarketsEvent`;
|
|
2260
|
-
readonly $typeArgs: [];
|
|
2261
|
-
readonly $isPhantom: readonly [];
|
|
2262
|
-
readonly index: ToField<"u64">;
|
|
2263
|
-
readonly lpTokenType: ToField<TypeName>;
|
|
2264
|
-
readonly quoteTokenType: ToField<TypeName>;
|
|
2265
|
-
readonly protocolFeeShareBp: ToField<"u64">;
|
|
2266
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
2267
|
-
private constructor();
|
|
2268
|
-
static reified(): NewMarketsEventReified;
|
|
2269
|
-
static get r(): reified.StructClassReified<NewMarketsEvent, NewMarketsEventFields>;
|
|
2270
|
-
static phantom(): PhantomReified<ToTypeStr<NewMarketsEvent>>;
|
|
2271
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::NewMarketsEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::NewMarketsEvent">;
|
|
2272
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2273
|
-
index: string;
|
|
2274
|
-
lp_token_type: {
|
|
2275
|
-
name: {
|
|
2276
|
-
bytes: number[];
|
|
2277
|
-
};
|
|
2278
|
-
};
|
|
2279
|
-
quote_token_type: {
|
|
2280
|
-
name: {
|
|
2281
|
-
bytes: number[];
|
|
2282
|
-
};
|
|
2283
|
-
};
|
|
2284
|
-
protocol_fee_share_bp: string;
|
|
2285
|
-
u64_padding: string[];
|
|
2286
|
-
}, {
|
|
2287
|
-
index: string | number | bigint;
|
|
2288
|
-
lp_token_type: {
|
|
2289
|
-
name: {
|
|
2290
|
-
bytes: Iterable<number> & {
|
|
2291
|
-
length: number;
|
|
2292
|
-
};
|
|
2293
|
-
};
|
|
2294
|
-
};
|
|
2295
|
-
quote_token_type: {
|
|
2296
|
-
name: {
|
|
2297
|
-
bytes: Iterable<number> & {
|
|
2298
|
-
length: number;
|
|
2299
|
-
};
|
|
2300
|
-
};
|
|
2301
|
-
};
|
|
2302
|
-
protocol_fee_share_bp: string | number | bigint;
|
|
2303
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
2304
|
-
length: number;
|
|
2305
|
-
};
|
|
2306
|
-
}>;
|
|
2307
|
-
static fromFields(fields: Record<string, any>): NewMarketsEvent;
|
|
2308
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): NewMarketsEvent;
|
|
2309
|
-
static fromBcs(data: Uint8Array): NewMarketsEvent;
|
|
2310
|
-
toJSONField(): {
|
|
2311
|
-
index: string;
|
|
2312
|
-
lpTokenType: {
|
|
2313
|
-
name: string;
|
|
2314
|
-
};
|
|
2315
|
-
quoteTokenType: {
|
|
2316
|
-
name: string;
|
|
2317
|
-
};
|
|
2318
|
-
protocolFeeShareBp: string;
|
|
2319
|
-
u64Padding: string[];
|
|
2320
|
-
};
|
|
2321
|
-
toJSON(): {
|
|
2322
|
-
index: string;
|
|
2323
|
-
lpTokenType: {
|
|
2324
|
-
name: string;
|
|
2325
|
-
};
|
|
2326
|
-
quoteTokenType: {
|
|
2327
|
-
name: string;
|
|
2328
|
-
};
|
|
2329
|
-
protocolFeeShareBp: string;
|
|
2330
|
-
u64Padding: string[];
|
|
2331
|
-
$typeName: string;
|
|
2332
|
-
$typeArgs: [];
|
|
2333
|
-
};
|
|
2334
|
-
static fromJSONField(field: any): NewMarketsEvent;
|
|
2335
|
-
static fromJSON(json: Record<string, any>): NewMarketsEvent;
|
|
2336
|
-
static fromSuiParsedData(content: SuiParsedData): NewMarketsEvent;
|
|
2337
|
-
static fromSuiObjectData(data: SuiObjectData): NewMarketsEvent;
|
|
2338
|
-
static fetch(client: SuiClient, id: string): Promise<NewMarketsEvent>;
|
|
2339
|
-
}
|
|
2340
|
-
export declare function isRealizeOptionPositionEvent(type: string): boolean;
|
|
2341
|
-
export interface RealizeOptionPositionEventFields {
|
|
2342
|
-
positionUser: ToField<"address">;
|
|
2343
|
-
positionId: ToField<"u64">;
|
|
2344
|
-
tradingSymbol: ToField<TypeName>;
|
|
2345
|
-
realizeBalanceTokenType: ToField<TypeName>;
|
|
2346
|
-
exerciseBalanceValue: ToField<"u64">;
|
|
2347
|
-
userRemainingValue: ToField<"u64">;
|
|
2348
|
-
userRemainingInUsd: ToField<"u64">;
|
|
2349
|
-
realizedLossValue: ToField<"u64">;
|
|
2350
|
-
feeValue: ToField<"u64">;
|
|
2351
|
-
realizedTradingFee: ToField<"u64">;
|
|
2352
|
-
realizedBorrowFee: ToField<"u64">;
|
|
2353
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
2354
|
-
}
|
|
2355
|
-
export type RealizeOptionPositionEventReified = Reified<RealizeOptionPositionEvent, RealizeOptionPositionEventFields>;
|
|
2356
|
-
export declare class RealizeOptionPositionEvent implements StructClass {
|
|
2357
|
-
__StructClass: true;
|
|
2358
|
-
static readonly $typeName: string;
|
|
2359
|
-
static readonly $numTypeParams = 0;
|
|
2360
|
-
static readonly $isPhantom: readonly [];
|
|
2361
|
-
readonly $typeName: string;
|
|
2362
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::RealizeOptionPositionEvent`;
|
|
2363
|
-
readonly $typeArgs: [];
|
|
2364
|
-
readonly $isPhantom: readonly [];
|
|
2365
|
-
readonly positionUser: ToField<"address">;
|
|
2366
|
-
readonly positionId: ToField<"u64">;
|
|
2367
|
-
readonly tradingSymbol: ToField<TypeName>;
|
|
2368
|
-
readonly realizeBalanceTokenType: ToField<TypeName>;
|
|
2369
|
-
readonly exerciseBalanceValue: ToField<"u64">;
|
|
2370
|
-
readonly userRemainingValue: ToField<"u64">;
|
|
2371
|
-
readonly userRemainingInUsd: ToField<"u64">;
|
|
2372
|
-
readonly realizedLossValue: ToField<"u64">;
|
|
2373
|
-
readonly feeValue: ToField<"u64">;
|
|
2374
|
-
readonly realizedTradingFee: ToField<"u64">;
|
|
2375
|
-
readonly realizedBorrowFee: ToField<"u64">;
|
|
2376
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
2377
|
-
private constructor();
|
|
2378
|
-
static reified(): RealizeOptionPositionEventReified;
|
|
2379
|
-
static get r(): reified.StructClassReified<RealizeOptionPositionEvent, RealizeOptionPositionEventFields>;
|
|
2380
|
-
static phantom(): PhantomReified<ToTypeStr<RealizeOptionPositionEvent>>;
|
|
2381
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::RealizeOptionPositionEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::RealizeOptionPositionEvent">;
|
|
2382
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2383
|
-
position_user: string;
|
|
2384
|
-
position_id: string;
|
|
2385
|
-
trading_symbol: {
|
|
2386
|
-
name: {
|
|
2387
|
-
bytes: number[];
|
|
2388
|
-
};
|
|
2389
|
-
};
|
|
2390
|
-
realize_balance_token_type: {
|
|
2391
|
-
name: {
|
|
2392
|
-
bytes: number[];
|
|
2393
|
-
};
|
|
2394
|
-
};
|
|
2395
|
-
exercise_balance_value: string;
|
|
2396
|
-
user_remaining_value: string;
|
|
2397
|
-
user_remaining_in_usd: string;
|
|
2398
|
-
realized_loss_value: string;
|
|
2399
|
-
fee_value: string;
|
|
2400
|
-
realized_trading_fee: string;
|
|
2401
|
-
realized_borrow_fee: string;
|
|
2402
|
-
u64_padding: string[];
|
|
2403
|
-
}, {
|
|
2404
|
-
position_user: string;
|
|
2405
|
-
position_id: string | number | bigint;
|
|
2406
|
-
trading_symbol: {
|
|
2407
|
-
name: {
|
|
2408
|
-
bytes: Iterable<number> & {
|
|
2409
|
-
length: number;
|
|
2410
|
-
};
|
|
2411
|
-
};
|
|
2412
|
-
};
|
|
2413
|
-
realize_balance_token_type: {
|
|
2414
|
-
name: {
|
|
2415
|
-
bytes: Iterable<number> & {
|
|
2416
|
-
length: number;
|
|
2417
|
-
};
|
|
2418
|
-
};
|
|
2419
|
-
};
|
|
2420
|
-
exercise_balance_value: string | number | bigint;
|
|
2421
|
-
user_remaining_value: string | number | bigint;
|
|
2422
|
-
user_remaining_in_usd: string | number | bigint;
|
|
2423
|
-
realized_loss_value: string | number | bigint;
|
|
2424
|
-
fee_value: string | number | bigint;
|
|
2425
|
-
realized_trading_fee: string | number | bigint;
|
|
2426
|
-
realized_borrow_fee: string | number | bigint;
|
|
2427
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
2428
|
-
length: number;
|
|
2429
|
-
};
|
|
2430
|
-
}>;
|
|
2431
|
-
static fromFields(fields: Record<string, any>): RealizeOptionPositionEvent;
|
|
2432
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): RealizeOptionPositionEvent;
|
|
2433
|
-
static fromBcs(data: Uint8Array): RealizeOptionPositionEvent;
|
|
2434
|
-
toJSONField(): {
|
|
2435
|
-
positionUser: string;
|
|
2436
|
-
positionId: string;
|
|
2437
|
-
tradingSymbol: {
|
|
2438
|
-
name: string;
|
|
2439
|
-
};
|
|
2440
|
-
realizeBalanceTokenType: {
|
|
2441
|
-
name: string;
|
|
2442
|
-
};
|
|
2443
|
-
exerciseBalanceValue: string;
|
|
2444
|
-
userRemainingValue: string;
|
|
2445
|
-
userRemainingInUsd: string;
|
|
2446
|
-
realizedLossValue: string;
|
|
2447
|
-
feeValue: string;
|
|
2448
|
-
realizedTradingFee: string;
|
|
2449
|
-
realizedBorrowFee: string;
|
|
2450
|
-
u64Padding: string[];
|
|
2451
|
-
};
|
|
2452
|
-
toJSON(): {
|
|
2453
|
-
positionUser: string;
|
|
2454
|
-
positionId: string;
|
|
2455
|
-
tradingSymbol: {
|
|
2456
|
-
name: string;
|
|
2457
|
-
};
|
|
2458
|
-
realizeBalanceTokenType: {
|
|
2459
|
-
name: string;
|
|
2460
|
-
};
|
|
2461
|
-
exerciseBalanceValue: string;
|
|
2462
|
-
userRemainingValue: string;
|
|
2463
|
-
userRemainingInUsd: string;
|
|
2464
|
-
realizedLossValue: string;
|
|
2465
|
-
feeValue: string;
|
|
2466
|
-
realizedTradingFee: string;
|
|
2467
|
-
realizedBorrowFee: string;
|
|
2468
|
-
u64Padding: string[];
|
|
2469
|
-
$typeName: string;
|
|
2470
|
-
$typeArgs: [];
|
|
2471
|
-
};
|
|
2472
|
-
static fromJSONField(field: any): RealizeOptionPositionEvent;
|
|
2473
|
-
static fromJSON(json: Record<string, any>): RealizeOptionPositionEvent;
|
|
2474
|
-
static fromSuiParsedData(content: SuiParsedData): RealizeOptionPositionEvent;
|
|
2475
|
-
static fromSuiObjectData(data: SuiObjectData): RealizeOptionPositionEvent;
|
|
2476
|
-
static fetch(client: SuiClient, id: string): Promise<RealizeOptionPositionEvent>;
|
|
2477
|
-
}
|
|
2478
|
-
export declare function isReleaseCollateralEvent(type: string): boolean;
|
|
2479
|
-
export interface ReleaseCollateralEventFields {
|
|
2480
|
-
user: ToField<"address">;
|
|
2481
|
-
marketIndex: ToField<"u64">;
|
|
2482
|
-
poolIndex: ToField<"u64">;
|
|
2483
|
-
positionId: ToField<"u64">;
|
|
2484
|
-
collateralToken: ToField<TypeName>;
|
|
2485
|
-
baseToken: ToField<TypeName>;
|
|
2486
|
-
releasedCollateralAmount: ToField<"u64">;
|
|
2487
|
-
remainingCollateralAmount: ToField<"u64">;
|
|
2488
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
2489
|
-
}
|
|
2490
|
-
export type ReleaseCollateralEventReified = Reified<ReleaseCollateralEvent, ReleaseCollateralEventFields>;
|
|
2491
|
-
export declare class ReleaseCollateralEvent implements StructClass {
|
|
2492
|
-
__StructClass: true;
|
|
2493
|
-
static readonly $typeName: string;
|
|
2494
|
-
static readonly $numTypeParams = 0;
|
|
2495
|
-
static readonly $isPhantom: readonly [];
|
|
2496
|
-
readonly $typeName: string;
|
|
2497
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::ReleaseCollateralEvent`;
|
|
2498
|
-
readonly $typeArgs: [];
|
|
2499
|
-
readonly $isPhantom: readonly [];
|
|
2500
|
-
readonly user: ToField<"address">;
|
|
2501
|
-
readonly marketIndex: ToField<"u64">;
|
|
2502
|
-
readonly poolIndex: ToField<"u64">;
|
|
2503
|
-
readonly positionId: ToField<"u64">;
|
|
2504
|
-
readonly collateralToken: ToField<TypeName>;
|
|
2505
|
-
readonly baseToken: ToField<TypeName>;
|
|
2506
|
-
readonly releasedCollateralAmount: ToField<"u64">;
|
|
2507
|
-
readonly remainingCollateralAmount: ToField<"u64">;
|
|
2508
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
2509
|
-
private constructor();
|
|
2510
|
-
static reified(): ReleaseCollateralEventReified;
|
|
2511
|
-
static get r(): reified.StructClassReified<ReleaseCollateralEvent, ReleaseCollateralEventFields>;
|
|
2512
|
-
static phantom(): PhantomReified<ToTypeStr<ReleaseCollateralEvent>>;
|
|
2513
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::ReleaseCollateralEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::ReleaseCollateralEvent">;
|
|
2514
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2515
|
-
user: string;
|
|
2516
|
-
market_index: string;
|
|
2517
|
-
pool_index: string;
|
|
2518
|
-
position_id: string;
|
|
2519
|
-
collateral_token: {
|
|
2520
|
-
name: {
|
|
2521
|
-
bytes: number[];
|
|
2522
|
-
};
|
|
2523
|
-
};
|
|
2524
|
-
base_token: {
|
|
2525
|
-
name: {
|
|
2526
|
-
bytes: number[];
|
|
2527
|
-
};
|
|
2528
|
-
};
|
|
2529
|
-
released_collateral_amount: string;
|
|
2530
|
-
remaining_collateral_amount: string;
|
|
2531
|
-
u64_padding: string[];
|
|
2532
|
-
}, {
|
|
2533
|
-
user: string;
|
|
2534
|
-
market_index: string | number | bigint;
|
|
2535
|
-
pool_index: string | number | bigint;
|
|
2536
|
-
position_id: string | number | bigint;
|
|
2537
|
-
collateral_token: {
|
|
2538
|
-
name: {
|
|
2539
|
-
bytes: Iterable<number> & {
|
|
2540
|
-
length: number;
|
|
2541
|
-
};
|
|
2542
|
-
};
|
|
2543
|
-
};
|
|
2544
|
-
base_token: {
|
|
2545
|
-
name: {
|
|
2546
|
-
bytes: Iterable<number> & {
|
|
2547
|
-
length: number;
|
|
2548
|
-
};
|
|
2549
|
-
};
|
|
2550
|
-
};
|
|
2551
|
-
released_collateral_amount: string | number | bigint;
|
|
2552
|
-
remaining_collateral_amount: string | number | bigint;
|
|
2553
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
2554
|
-
length: number;
|
|
2555
|
-
};
|
|
2556
|
-
}>;
|
|
2557
|
-
static fromFields(fields: Record<string, any>): ReleaseCollateralEvent;
|
|
2558
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): ReleaseCollateralEvent;
|
|
2559
|
-
static fromBcs(data: Uint8Array): ReleaseCollateralEvent;
|
|
2560
|
-
toJSONField(): {
|
|
2561
|
-
user: string;
|
|
2562
|
-
marketIndex: string;
|
|
2563
|
-
poolIndex: string;
|
|
2564
|
-
positionId: string;
|
|
2565
|
-
collateralToken: {
|
|
2566
|
-
name: string;
|
|
2567
|
-
};
|
|
2568
|
-
baseToken: {
|
|
2569
|
-
name: string;
|
|
2570
|
-
};
|
|
2571
|
-
releasedCollateralAmount: string;
|
|
2572
|
-
remainingCollateralAmount: string;
|
|
2573
|
-
u64Padding: string[];
|
|
2574
|
-
};
|
|
2575
|
-
toJSON(): {
|
|
2576
|
-
user: string;
|
|
2577
|
-
marketIndex: string;
|
|
2578
|
-
poolIndex: string;
|
|
2579
|
-
positionId: string;
|
|
2580
|
-
collateralToken: {
|
|
2581
|
-
name: string;
|
|
2582
|
-
};
|
|
2583
|
-
baseToken: {
|
|
2584
|
-
name: string;
|
|
2585
|
-
};
|
|
2586
|
-
releasedCollateralAmount: string;
|
|
2587
|
-
remainingCollateralAmount: string;
|
|
2588
|
-
u64Padding: string[];
|
|
2589
|
-
$typeName: string;
|
|
2590
|
-
$typeArgs: [];
|
|
2591
|
-
};
|
|
2592
|
-
static fromJSONField(field: any): ReleaseCollateralEvent;
|
|
2593
|
-
static fromJSON(json: Record<string, any>): ReleaseCollateralEvent;
|
|
2594
|
-
static fromSuiParsedData(content: SuiParsedData): ReleaseCollateralEvent;
|
|
2595
|
-
static fromSuiObjectData(data: SuiObjectData): ReleaseCollateralEvent;
|
|
2596
|
-
static fetch(client: SuiClient, id: string): Promise<ReleaseCollateralEvent>;
|
|
2597
|
-
}
|
|
2598
|
-
export declare function isResumeMarketEvent(type: string): boolean;
|
|
2599
|
-
export interface ResumeMarketEventFields {
|
|
2600
|
-
index: ToField<"u64">;
|
|
2601
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
2602
|
-
}
|
|
2603
|
-
export type ResumeMarketEventReified = Reified<ResumeMarketEvent, ResumeMarketEventFields>;
|
|
2604
|
-
export declare class ResumeMarketEvent implements StructClass {
|
|
2605
|
-
__StructClass: true;
|
|
2606
|
-
static readonly $typeName: string;
|
|
2607
|
-
static readonly $numTypeParams = 0;
|
|
2608
|
-
static readonly $isPhantom: readonly [];
|
|
2609
|
-
readonly $typeName: string;
|
|
2610
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::ResumeMarketEvent`;
|
|
2611
|
-
readonly $typeArgs: [];
|
|
2612
|
-
readonly $isPhantom: readonly [];
|
|
2613
|
-
readonly index: ToField<"u64">;
|
|
2614
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
2615
|
-
private constructor();
|
|
2616
|
-
static reified(): ResumeMarketEventReified;
|
|
2617
|
-
static get r(): reified.StructClassReified<ResumeMarketEvent, ResumeMarketEventFields>;
|
|
2618
|
-
static phantom(): PhantomReified<ToTypeStr<ResumeMarketEvent>>;
|
|
2619
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::ResumeMarketEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::ResumeMarketEvent">;
|
|
2620
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2621
|
-
index: string;
|
|
2622
|
-
u64_padding: string[];
|
|
2623
|
-
}, {
|
|
2624
|
-
index: string | number | bigint;
|
|
2625
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
2626
|
-
length: number;
|
|
2627
|
-
};
|
|
2628
|
-
}>;
|
|
2629
|
-
static fromFields(fields: Record<string, any>): ResumeMarketEvent;
|
|
2630
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): ResumeMarketEvent;
|
|
2631
|
-
static fromBcs(data: Uint8Array): ResumeMarketEvent;
|
|
2632
|
-
toJSONField(): {
|
|
2633
|
-
index: string;
|
|
2634
|
-
u64Padding: string[];
|
|
2635
|
-
};
|
|
2636
|
-
toJSON(): {
|
|
2637
|
-
index: string;
|
|
2638
|
-
u64Padding: string[];
|
|
2639
|
-
$typeName: string;
|
|
2640
|
-
$typeArgs: [];
|
|
2641
|
-
};
|
|
2642
|
-
static fromJSONField(field: any): ResumeMarketEvent;
|
|
2643
|
-
static fromJSON(json: Record<string, any>): ResumeMarketEvent;
|
|
2644
|
-
static fromSuiParsedData(content: SuiParsedData): ResumeMarketEvent;
|
|
2645
|
-
static fromSuiObjectData(data: SuiObjectData): ResumeMarketEvent;
|
|
2646
|
-
static fetch(client: SuiClient, id: string): Promise<ResumeMarketEvent>;
|
|
2647
|
-
}
|
|
2648
|
-
export declare function isResumeTradingSymbolEvent(type: string): boolean;
|
|
2649
|
-
export interface ResumeTradingSymbolEventFields {
|
|
2650
|
-
index: ToField<"u64">;
|
|
2651
|
-
resumedBaseToken: ToField<TypeName>;
|
|
2652
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
2653
|
-
}
|
|
2654
|
-
export type ResumeTradingSymbolEventReified = Reified<ResumeTradingSymbolEvent, ResumeTradingSymbolEventFields>;
|
|
2655
|
-
export declare class ResumeTradingSymbolEvent implements StructClass {
|
|
2656
|
-
__StructClass: true;
|
|
2657
|
-
static readonly $typeName: string;
|
|
2658
|
-
static readonly $numTypeParams = 0;
|
|
2659
|
-
static readonly $isPhantom: readonly [];
|
|
2660
|
-
readonly $typeName: string;
|
|
2661
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::ResumeTradingSymbolEvent`;
|
|
2662
|
-
readonly $typeArgs: [];
|
|
2663
|
-
readonly $isPhantom: readonly [];
|
|
2664
|
-
readonly index: ToField<"u64">;
|
|
2665
|
-
readonly resumedBaseToken: ToField<TypeName>;
|
|
2666
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
2667
|
-
private constructor();
|
|
2668
|
-
static reified(): ResumeTradingSymbolEventReified;
|
|
2669
|
-
static get r(): reified.StructClassReified<ResumeTradingSymbolEvent, ResumeTradingSymbolEventFields>;
|
|
2670
|
-
static phantom(): PhantomReified<ToTypeStr<ResumeTradingSymbolEvent>>;
|
|
2671
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::ResumeTradingSymbolEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::ResumeTradingSymbolEvent">;
|
|
2672
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2673
|
-
index: string;
|
|
2674
|
-
resumed_base_token: {
|
|
2675
|
-
name: {
|
|
2676
|
-
bytes: number[];
|
|
2677
|
-
};
|
|
2678
|
-
};
|
|
2679
|
-
u64_padding: string[];
|
|
2680
|
-
}, {
|
|
2681
|
-
index: string | number | bigint;
|
|
2682
|
-
resumed_base_token: {
|
|
2683
|
-
name: {
|
|
2684
|
-
bytes: Iterable<number> & {
|
|
2685
|
-
length: number;
|
|
2686
|
-
};
|
|
2687
|
-
};
|
|
2688
|
-
};
|
|
2689
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
2690
|
-
length: number;
|
|
2691
|
-
};
|
|
2692
|
-
}>;
|
|
2693
|
-
static fromFields(fields: Record<string, any>): ResumeTradingSymbolEvent;
|
|
2694
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): ResumeTradingSymbolEvent;
|
|
2695
|
-
static fromBcs(data: Uint8Array): ResumeTradingSymbolEvent;
|
|
2696
|
-
toJSONField(): {
|
|
2697
|
-
index: string;
|
|
2698
|
-
resumedBaseToken: {
|
|
2699
|
-
name: string;
|
|
2700
|
-
};
|
|
2701
|
-
u64Padding: string[];
|
|
2702
|
-
};
|
|
2703
|
-
toJSON(): {
|
|
2704
|
-
index: string;
|
|
2705
|
-
resumedBaseToken: {
|
|
2706
|
-
name: string;
|
|
2707
|
-
};
|
|
2708
|
-
u64Padding: string[];
|
|
2709
|
-
$typeName: string;
|
|
2710
|
-
$typeArgs: [];
|
|
2711
|
-
};
|
|
2712
|
-
static fromJSONField(field: any): ResumeTradingSymbolEvent;
|
|
2713
|
-
static fromJSON(json: Record<string, any>): ResumeTradingSymbolEvent;
|
|
2714
|
-
static fromSuiParsedData(content: SuiParsedData): ResumeTradingSymbolEvent;
|
|
2715
|
-
static fromSuiObjectData(data: SuiObjectData): ResumeTradingSymbolEvent;
|
|
2716
|
-
static fetch(client: SuiClient, id: string): Promise<ResumeTradingSymbolEvent>;
|
|
2717
|
-
}
|
|
2718
|
-
export declare function isSettleReceiptCollateralEvent(type: string): boolean;
|
|
2719
|
-
export interface SettleReceiptCollateralEventFields {
|
|
2720
|
-
user: ToField<"address">;
|
|
2721
|
-
collateralToken: ToField<TypeName>;
|
|
2722
|
-
bidToken: ToField<TypeName>;
|
|
2723
|
-
positionId: ToField<"u64">;
|
|
2724
|
-
realizedLiquidatorFee: ToField<"u64">;
|
|
2725
|
-
remainingUnrealizedSign: ToField<"bool">;
|
|
2726
|
-
remainingUnrealizedValue: ToField<"u64">;
|
|
2727
|
-
remainingValueForLpPool: ToField<"u64">;
|
|
2728
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
2729
|
-
}
|
|
2730
|
-
export type SettleReceiptCollateralEventReified = Reified<SettleReceiptCollateralEvent, SettleReceiptCollateralEventFields>;
|
|
2731
|
-
export declare class SettleReceiptCollateralEvent implements StructClass {
|
|
2732
|
-
__StructClass: true;
|
|
2733
|
-
static readonly $typeName: string;
|
|
2734
|
-
static readonly $numTypeParams = 0;
|
|
2735
|
-
static readonly $isPhantom: readonly [];
|
|
2736
|
-
readonly $typeName: string;
|
|
2737
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::SettleReceiptCollateralEvent`;
|
|
2738
|
-
readonly $typeArgs: [];
|
|
2739
|
-
readonly $isPhantom: readonly [];
|
|
2740
|
-
readonly user: ToField<"address">;
|
|
2741
|
-
readonly collateralToken: ToField<TypeName>;
|
|
2742
|
-
readonly bidToken: ToField<TypeName>;
|
|
2743
|
-
readonly positionId: ToField<"u64">;
|
|
2744
|
-
readonly realizedLiquidatorFee: ToField<"u64">;
|
|
2745
|
-
readonly remainingUnrealizedSign: ToField<"bool">;
|
|
2746
|
-
readonly remainingUnrealizedValue: ToField<"u64">;
|
|
2747
|
-
readonly remainingValueForLpPool: ToField<"u64">;
|
|
2748
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
2749
|
-
private constructor();
|
|
2750
|
-
static reified(): SettleReceiptCollateralEventReified;
|
|
2751
|
-
static get r(): reified.StructClassReified<SettleReceiptCollateralEvent, SettleReceiptCollateralEventFields>;
|
|
2752
|
-
static phantom(): PhantomReified<ToTypeStr<SettleReceiptCollateralEvent>>;
|
|
2753
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::SettleReceiptCollateralEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::SettleReceiptCollateralEvent">;
|
|
2754
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2755
|
-
user: string;
|
|
2756
|
-
collateral_token: {
|
|
2757
|
-
name: {
|
|
2758
|
-
bytes: number[];
|
|
2759
|
-
};
|
|
2760
|
-
};
|
|
2761
|
-
bid_token: {
|
|
2762
|
-
name: {
|
|
2763
|
-
bytes: number[];
|
|
2764
|
-
};
|
|
2765
|
-
};
|
|
2766
|
-
position_id: string;
|
|
2767
|
-
realized_liquidator_fee: string;
|
|
2768
|
-
remaining_unrealized_sign: boolean;
|
|
2769
|
-
remaining_unrealized_value: string;
|
|
2770
|
-
remaining_value_for_lp_pool: string;
|
|
2771
|
-
u64_padding: string[];
|
|
2772
|
-
}, {
|
|
2773
|
-
user: string;
|
|
2774
|
-
collateral_token: {
|
|
2775
|
-
name: {
|
|
2776
|
-
bytes: Iterable<number> & {
|
|
2777
|
-
length: number;
|
|
2778
|
-
};
|
|
2779
|
-
};
|
|
2780
|
-
};
|
|
2781
|
-
bid_token: {
|
|
2782
|
-
name: {
|
|
2783
|
-
bytes: Iterable<number> & {
|
|
2784
|
-
length: number;
|
|
2785
|
-
};
|
|
2786
|
-
};
|
|
2787
|
-
};
|
|
2788
|
-
position_id: string | number | bigint;
|
|
2789
|
-
realized_liquidator_fee: string | number | bigint;
|
|
2790
|
-
remaining_unrealized_sign: boolean;
|
|
2791
|
-
remaining_unrealized_value: string | number | bigint;
|
|
2792
|
-
remaining_value_for_lp_pool: string | number | bigint;
|
|
2793
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
2794
|
-
length: number;
|
|
2795
|
-
};
|
|
2796
|
-
}>;
|
|
2797
|
-
static fromFields(fields: Record<string, any>): SettleReceiptCollateralEvent;
|
|
2798
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): SettleReceiptCollateralEvent;
|
|
2799
|
-
static fromBcs(data: Uint8Array): SettleReceiptCollateralEvent;
|
|
2800
|
-
toJSONField(): {
|
|
2801
|
-
user: string;
|
|
2802
|
-
collateralToken: {
|
|
2803
|
-
name: string;
|
|
2804
|
-
};
|
|
2805
|
-
bidToken: {
|
|
2806
|
-
name: string;
|
|
2807
|
-
};
|
|
2808
|
-
positionId: string;
|
|
2809
|
-
realizedLiquidatorFee: string;
|
|
2810
|
-
remainingUnrealizedSign: boolean;
|
|
2811
|
-
remainingUnrealizedValue: string;
|
|
2812
|
-
remainingValueForLpPool: string;
|
|
2813
|
-
u64Padding: string[];
|
|
2814
|
-
};
|
|
2815
|
-
toJSON(): {
|
|
2816
|
-
user: string;
|
|
2817
|
-
collateralToken: {
|
|
2818
|
-
name: string;
|
|
2819
|
-
};
|
|
2820
|
-
bidToken: {
|
|
2821
|
-
name: string;
|
|
2822
|
-
};
|
|
2823
|
-
positionId: string;
|
|
2824
|
-
realizedLiquidatorFee: string;
|
|
2825
|
-
remainingUnrealizedSign: boolean;
|
|
2826
|
-
remainingUnrealizedValue: string;
|
|
2827
|
-
remainingValueForLpPool: string;
|
|
2828
|
-
u64Padding: string[];
|
|
2829
|
-
$typeName: string;
|
|
2830
|
-
$typeArgs: [];
|
|
2831
|
-
};
|
|
2832
|
-
static fromJSONField(field: any): SettleReceiptCollateralEvent;
|
|
2833
|
-
static fromJSON(json: Record<string, any>): SettleReceiptCollateralEvent;
|
|
2834
|
-
static fromSuiParsedData(content: SuiParsedData): SettleReceiptCollateralEvent;
|
|
2835
|
-
static fromSuiObjectData(data: SuiObjectData): SettleReceiptCollateralEvent;
|
|
2836
|
-
static fetch(client: SuiClient, id: string): Promise<SettleReceiptCollateralEvent>;
|
|
2837
|
-
}
|
|
2838
|
-
export declare function isSuspendMarketEvent(type: string): boolean;
|
|
2839
|
-
export interface SuspendMarketEventFields {
|
|
2840
|
-
index: ToField<"u64">;
|
|
2841
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
2842
|
-
}
|
|
2843
|
-
export type SuspendMarketEventReified = Reified<SuspendMarketEvent, SuspendMarketEventFields>;
|
|
2844
|
-
export declare class SuspendMarketEvent implements StructClass {
|
|
2845
|
-
__StructClass: true;
|
|
2846
|
-
static readonly $typeName: string;
|
|
2847
|
-
static readonly $numTypeParams = 0;
|
|
2848
|
-
static readonly $isPhantom: readonly [];
|
|
2849
|
-
readonly $typeName: string;
|
|
2850
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::SuspendMarketEvent`;
|
|
2851
|
-
readonly $typeArgs: [];
|
|
2852
|
-
readonly $isPhantom: readonly [];
|
|
2853
|
-
readonly index: ToField<"u64">;
|
|
2854
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
2855
|
-
private constructor();
|
|
2856
|
-
static reified(): SuspendMarketEventReified;
|
|
2857
|
-
static get r(): reified.StructClassReified<SuspendMarketEvent, SuspendMarketEventFields>;
|
|
2858
|
-
static phantom(): PhantomReified<ToTypeStr<SuspendMarketEvent>>;
|
|
2859
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::SuspendMarketEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::SuspendMarketEvent">;
|
|
2860
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2861
|
-
index: string;
|
|
2862
|
-
u64_padding: string[];
|
|
2863
|
-
}, {
|
|
2864
|
-
index: string | number | bigint;
|
|
2865
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
2866
|
-
length: number;
|
|
2867
|
-
};
|
|
2868
|
-
}>;
|
|
2869
|
-
static fromFields(fields: Record<string, any>): SuspendMarketEvent;
|
|
2870
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): SuspendMarketEvent;
|
|
2871
|
-
static fromBcs(data: Uint8Array): SuspendMarketEvent;
|
|
2872
|
-
toJSONField(): {
|
|
2873
|
-
index: string;
|
|
2874
|
-
u64Padding: string[];
|
|
2875
|
-
};
|
|
2876
|
-
toJSON(): {
|
|
2877
|
-
index: string;
|
|
2878
|
-
u64Padding: string[];
|
|
2879
|
-
$typeName: string;
|
|
2880
|
-
$typeArgs: [];
|
|
2881
|
-
};
|
|
2882
|
-
static fromJSONField(field: any): SuspendMarketEvent;
|
|
2883
|
-
static fromJSON(json: Record<string, any>): SuspendMarketEvent;
|
|
2884
|
-
static fromSuiParsedData(content: SuiParsedData): SuspendMarketEvent;
|
|
2885
|
-
static fromSuiObjectData(data: SuiObjectData): SuspendMarketEvent;
|
|
2886
|
-
static fetch(client: SuiClient, id: string): Promise<SuspendMarketEvent>;
|
|
2887
|
-
}
|
|
2888
|
-
export declare function isSuspendTradingSymbolEvent(type: string): boolean;
|
|
2889
|
-
export interface SuspendTradingSymbolEventFields {
|
|
2890
|
-
index: ToField<"u64">;
|
|
2891
|
-
suspendedBaseToken: ToField<TypeName>;
|
|
2892
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
2893
|
-
}
|
|
2894
|
-
export type SuspendTradingSymbolEventReified = Reified<SuspendTradingSymbolEvent, SuspendTradingSymbolEventFields>;
|
|
2895
|
-
export declare class SuspendTradingSymbolEvent implements StructClass {
|
|
2896
|
-
__StructClass: true;
|
|
2897
|
-
static readonly $typeName: string;
|
|
2898
|
-
static readonly $numTypeParams = 0;
|
|
2899
|
-
static readonly $isPhantom: readonly [];
|
|
2900
|
-
readonly $typeName: string;
|
|
2901
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::SuspendTradingSymbolEvent`;
|
|
2902
|
-
readonly $typeArgs: [];
|
|
2903
|
-
readonly $isPhantom: readonly [];
|
|
2904
|
-
readonly index: ToField<"u64">;
|
|
2905
|
-
readonly suspendedBaseToken: ToField<TypeName>;
|
|
2906
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
2907
|
-
private constructor();
|
|
2908
|
-
static reified(): SuspendTradingSymbolEventReified;
|
|
2909
|
-
static get r(): reified.StructClassReified<SuspendTradingSymbolEvent, SuspendTradingSymbolEventFields>;
|
|
2910
|
-
static phantom(): PhantomReified<ToTypeStr<SuspendTradingSymbolEvent>>;
|
|
2911
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::SuspendTradingSymbolEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::SuspendTradingSymbolEvent">;
|
|
2912
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2913
|
-
index: string;
|
|
2914
|
-
suspended_base_token: {
|
|
2915
|
-
name: {
|
|
2916
|
-
bytes: number[];
|
|
2917
|
-
};
|
|
2918
|
-
};
|
|
2919
|
-
u64_padding: string[];
|
|
2920
|
-
}, {
|
|
2921
|
-
index: string | number | bigint;
|
|
2922
|
-
suspended_base_token: {
|
|
2923
|
-
name: {
|
|
2924
|
-
bytes: Iterable<number> & {
|
|
2925
|
-
length: number;
|
|
2926
|
-
};
|
|
2927
|
-
};
|
|
2928
|
-
};
|
|
2929
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
2930
|
-
length: number;
|
|
2931
|
-
};
|
|
2932
|
-
}>;
|
|
2933
|
-
static fromFields(fields: Record<string, any>): SuspendTradingSymbolEvent;
|
|
2934
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): SuspendTradingSymbolEvent;
|
|
2935
|
-
static fromBcs(data: Uint8Array): SuspendTradingSymbolEvent;
|
|
2936
|
-
toJSONField(): {
|
|
2937
|
-
index: string;
|
|
2938
|
-
suspendedBaseToken: {
|
|
2939
|
-
name: string;
|
|
2940
|
-
};
|
|
2941
|
-
u64Padding: string[];
|
|
2942
|
-
};
|
|
2943
|
-
toJSON(): {
|
|
2944
|
-
index: string;
|
|
2945
|
-
suspendedBaseToken: {
|
|
2946
|
-
name: string;
|
|
2947
|
-
};
|
|
2948
|
-
u64Padding: string[];
|
|
2949
|
-
$typeName: string;
|
|
2950
|
-
$typeArgs: [];
|
|
2951
|
-
};
|
|
2952
|
-
static fromJSONField(field: any): SuspendTradingSymbolEvent;
|
|
2953
|
-
static fromJSON(json: Record<string, any>): SuspendTradingSymbolEvent;
|
|
2954
|
-
static fromSuiParsedData(content: SuiParsedData): SuspendTradingSymbolEvent;
|
|
2955
|
-
static fromSuiObjectData(data: SuiObjectData): SuspendTradingSymbolEvent;
|
|
2956
|
-
static fetch(client: SuiClient, id: string): Promise<SuspendTradingSymbolEvent>;
|
|
2957
|
-
}
|
|
2958
|
-
export declare function isSymbolMarket(type: string): boolean;
|
|
2959
|
-
export interface SymbolMarketFields {
|
|
2960
|
-
id: ToField<UID>;
|
|
2961
|
-
userPositions: ToField<KeyedBigVector>;
|
|
2962
|
-
tokenCollateralOrders: ToField<UID>;
|
|
2963
|
-
optionCollateralOrders: ToField<UID>;
|
|
2964
|
-
marketInfo: ToField<MarketInfo>;
|
|
2965
|
-
marketConfig: ToField<MarketConfig>;
|
|
2966
|
-
}
|
|
2967
|
-
export type SymbolMarketReified = Reified<SymbolMarket, SymbolMarketFields>;
|
|
2968
|
-
export declare class SymbolMarket implements StructClass {
|
|
2969
|
-
__StructClass: true;
|
|
2970
|
-
static readonly $typeName: string;
|
|
2971
|
-
static readonly $numTypeParams = 0;
|
|
2972
|
-
static readonly $isPhantom: readonly [];
|
|
2973
|
-
readonly $typeName: string;
|
|
2974
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::SymbolMarket`;
|
|
2975
|
-
readonly $typeArgs: [];
|
|
2976
|
-
readonly $isPhantom: readonly [];
|
|
2977
|
-
readonly id: ToField<UID>;
|
|
2978
|
-
readonly userPositions: ToField<KeyedBigVector>;
|
|
2979
|
-
readonly tokenCollateralOrders: ToField<UID>;
|
|
2980
|
-
readonly optionCollateralOrders: ToField<UID>;
|
|
2981
|
-
readonly marketInfo: ToField<MarketInfo>;
|
|
2982
|
-
readonly marketConfig: ToField<MarketConfig>;
|
|
2983
|
-
private constructor();
|
|
2984
|
-
static reified(): SymbolMarketReified;
|
|
2985
|
-
static get r(): reified.StructClassReified<SymbolMarket, SymbolMarketFields>;
|
|
2986
|
-
static phantom(): PhantomReified<ToTypeStr<SymbolMarket>>;
|
|
2987
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::SymbolMarket" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::SymbolMarket">;
|
|
2988
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2989
|
-
id: {
|
|
2990
|
-
id: {
|
|
2991
|
-
bytes: string;
|
|
2992
|
-
};
|
|
2993
|
-
};
|
|
2994
|
-
user_positions: {
|
|
2995
|
-
id: {
|
|
2996
|
-
id: {
|
|
2997
|
-
bytes: string;
|
|
2998
|
-
};
|
|
2999
|
-
};
|
|
3000
|
-
key_type: {
|
|
3001
|
-
name: {
|
|
3002
|
-
bytes: number[];
|
|
3003
|
-
};
|
|
3004
|
-
};
|
|
3005
|
-
value_type: {
|
|
3006
|
-
name: {
|
|
3007
|
-
bytes: number[];
|
|
3008
|
-
};
|
|
3009
|
-
};
|
|
3010
|
-
slice_idx: number;
|
|
3011
|
-
slice_size: number;
|
|
3012
|
-
length: string;
|
|
3013
|
-
};
|
|
3014
|
-
token_collateral_orders: {
|
|
3015
|
-
id: {
|
|
3016
|
-
bytes: string;
|
|
3017
|
-
};
|
|
3018
|
-
};
|
|
3019
|
-
option_collateral_orders: {
|
|
3020
|
-
id: {
|
|
3021
|
-
bytes: string;
|
|
3022
|
-
};
|
|
3023
|
-
};
|
|
3024
|
-
market_info: {
|
|
3025
|
-
is_active: boolean;
|
|
3026
|
-
size_decimal: string;
|
|
3027
|
-
user_long_position_size: string;
|
|
3028
|
-
user_short_position_size: string;
|
|
3029
|
-
next_position_id: string;
|
|
3030
|
-
user_long_order_size: string;
|
|
3031
|
-
user_short_order_size: string;
|
|
3032
|
-
next_order_id: string;
|
|
3033
|
-
last_funding_ts_ms: string;
|
|
3034
|
-
cumulative_funding_rate_index_sign: boolean;
|
|
3035
|
-
cumulative_funding_rate_index: string;
|
|
3036
|
-
previous_last_funding_ts_ms: string;
|
|
3037
|
-
previous_cumulative_funding_rate_index_sign: boolean;
|
|
3038
|
-
previous_cumulative_funding_rate_index: string;
|
|
3039
|
-
u64_padding: string[];
|
|
3040
|
-
};
|
|
3041
|
-
market_config: {
|
|
3042
|
-
oracle_id: string;
|
|
3043
|
-
max_leverage_mbp: string;
|
|
3044
|
-
option_collateral_max_leverage_mbp: string;
|
|
3045
|
-
min_size: string;
|
|
3046
|
-
lot_size: string;
|
|
3047
|
-
trading_fee_config: string[];
|
|
3048
|
-
basic_funding_rate: string;
|
|
3049
|
-
funding_interval_ts_ms: string;
|
|
3050
|
-
exp_multiplier: string;
|
|
3051
|
-
u64_padding: string[];
|
|
3052
|
-
};
|
|
3053
|
-
}, {
|
|
3054
|
-
id: {
|
|
3055
|
-
id: {
|
|
3056
|
-
bytes: string;
|
|
3057
|
-
};
|
|
3058
|
-
};
|
|
3059
|
-
user_positions: {
|
|
3060
|
-
id: {
|
|
3061
|
-
id: {
|
|
3062
|
-
bytes: string;
|
|
3063
|
-
};
|
|
3064
|
-
};
|
|
3065
|
-
key_type: {
|
|
3066
|
-
name: {
|
|
3067
|
-
bytes: Iterable<number> & {
|
|
3068
|
-
length: number;
|
|
3069
|
-
};
|
|
3070
|
-
};
|
|
3071
|
-
};
|
|
3072
|
-
value_type: {
|
|
3073
|
-
name: {
|
|
3074
|
-
bytes: Iterable<number> & {
|
|
3075
|
-
length: number;
|
|
3076
|
-
};
|
|
3077
|
-
};
|
|
3078
|
-
};
|
|
3079
|
-
slice_idx: number;
|
|
3080
|
-
slice_size: number;
|
|
3081
|
-
length: string | number | bigint;
|
|
3082
|
-
};
|
|
3083
|
-
token_collateral_orders: {
|
|
3084
|
-
id: {
|
|
3085
|
-
bytes: string;
|
|
3086
|
-
};
|
|
3087
|
-
};
|
|
3088
|
-
option_collateral_orders: {
|
|
3089
|
-
id: {
|
|
3090
|
-
bytes: string;
|
|
3091
|
-
};
|
|
3092
|
-
};
|
|
3093
|
-
market_info: {
|
|
3094
|
-
is_active: boolean;
|
|
3095
|
-
size_decimal: string | number | bigint;
|
|
3096
|
-
user_long_position_size: string | number | bigint;
|
|
3097
|
-
user_short_position_size: string | number | bigint;
|
|
3098
|
-
next_position_id: string | number | bigint;
|
|
3099
|
-
user_long_order_size: string | number | bigint;
|
|
3100
|
-
user_short_order_size: string | number | bigint;
|
|
3101
|
-
next_order_id: string | number | bigint;
|
|
3102
|
-
last_funding_ts_ms: string | number | bigint;
|
|
3103
|
-
cumulative_funding_rate_index_sign: boolean;
|
|
3104
|
-
cumulative_funding_rate_index: string | number | bigint;
|
|
3105
|
-
previous_last_funding_ts_ms: string | number | bigint;
|
|
3106
|
-
previous_cumulative_funding_rate_index_sign: boolean;
|
|
3107
|
-
previous_cumulative_funding_rate_index: string | number | bigint;
|
|
3108
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
3109
|
-
length: number;
|
|
3110
|
-
};
|
|
3111
|
-
};
|
|
3112
|
-
market_config: {
|
|
3113
|
-
oracle_id: string;
|
|
3114
|
-
max_leverage_mbp: string | number | bigint;
|
|
3115
|
-
option_collateral_max_leverage_mbp: string | number | bigint;
|
|
3116
|
-
min_size: string | number | bigint;
|
|
3117
|
-
lot_size: string | number | bigint;
|
|
3118
|
-
trading_fee_config: Iterable<string | number | bigint> & {
|
|
3119
|
-
length: number;
|
|
3120
|
-
};
|
|
3121
|
-
basic_funding_rate: string | number | bigint;
|
|
3122
|
-
funding_interval_ts_ms: string | number | bigint;
|
|
3123
|
-
exp_multiplier: string | number | bigint;
|
|
3124
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
3125
|
-
length: number;
|
|
3126
|
-
};
|
|
3127
|
-
};
|
|
3128
|
-
}>;
|
|
3129
|
-
static fromFields(fields: Record<string, any>): SymbolMarket;
|
|
3130
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): SymbolMarket;
|
|
3131
|
-
static fromBcs(data: Uint8Array): SymbolMarket;
|
|
3132
|
-
toJSONField(): {
|
|
3133
|
-
id: string;
|
|
3134
|
-
userPositions: {
|
|
3135
|
-
id: string;
|
|
3136
|
-
keyType: {
|
|
3137
|
-
name: string;
|
|
3138
|
-
};
|
|
3139
|
-
valueType: {
|
|
3140
|
-
name: string;
|
|
3141
|
-
};
|
|
3142
|
-
sliceIdx: number;
|
|
3143
|
-
sliceSize: number;
|
|
3144
|
-
length: string;
|
|
3145
|
-
};
|
|
3146
|
-
tokenCollateralOrders: string;
|
|
3147
|
-
optionCollateralOrders: string;
|
|
3148
|
-
marketInfo: {
|
|
3149
|
-
isActive: boolean;
|
|
3150
|
-
sizeDecimal: string;
|
|
3151
|
-
userLongPositionSize: string;
|
|
3152
|
-
userShortPositionSize: string;
|
|
3153
|
-
nextPositionId: string;
|
|
3154
|
-
userLongOrderSize: string;
|
|
3155
|
-
userShortOrderSize: string;
|
|
3156
|
-
nextOrderId: string;
|
|
3157
|
-
lastFundingTsMs: string;
|
|
3158
|
-
cumulativeFundingRateIndexSign: boolean;
|
|
3159
|
-
cumulativeFundingRateIndex: string;
|
|
3160
|
-
previousLastFundingTsMs: string;
|
|
3161
|
-
previousCumulativeFundingRateIndexSign: boolean;
|
|
3162
|
-
previousCumulativeFundingRateIndex: string;
|
|
3163
|
-
u64Padding: string[];
|
|
3164
|
-
};
|
|
3165
|
-
marketConfig: {
|
|
3166
|
-
oracleId: string;
|
|
3167
|
-
maxLeverageMbp: string;
|
|
3168
|
-
optionCollateralMaxLeverageMbp: string;
|
|
3169
|
-
minSize: string;
|
|
3170
|
-
lotSize: string;
|
|
3171
|
-
tradingFeeConfig: string[];
|
|
3172
|
-
basicFundingRate: string;
|
|
3173
|
-
fundingIntervalTsMs: string;
|
|
3174
|
-
expMultiplier: string;
|
|
3175
|
-
u64Padding: string[];
|
|
3176
|
-
};
|
|
3177
|
-
};
|
|
3178
|
-
toJSON(): {
|
|
3179
|
-
id: string;
|
|
3180
|
-
userPositions: {
|
|
3181
|
-
id: string;
|
|
3182
|
-
keyType: {
|
|
3183
|
-
name: string;
|
|
3184
|
-
};
|
|
3185
|
-
valueType: {
|
|
3186
|
-
name: string;
|
|
3187
|
-
};
|
|
3188
|
-
sliceIdx: number;
|
|
3189
|
-
sliceSize: number;
|
|
3190
|
-
length: string;
|
|
3191
|
-
};
|
|
3192
|
-
tokenCollateralOrders: string;
|
|
3193
|
-
optionCollateralOrders: string;
|
|
3194
|
-
marketInfo: {
|
|
3195
|
-
isActive: boolean;
|
|
3196
|
-
sizeDecimal: string;
|
|
3197
|
-
userLongPositionSize: string;
|
|
3198
|
-
userShortPositionSize: string;
|
|
3199
|
-
nextPositionId: string;
|
|
3200
|
-
userLongOrderSize: string;
|
|
3201
|
-
userShortOrderSize: string;
|
|
3202
|
-
nextOrderId: string;
|
|
3203
|
-
lastFundingTsMs: string;
|
|
3204
|
-
cumulativeFundingRateIndexSign: boolean;
|
|
3205
|
-
cumulativeFundingRateIndex: string;
|
|
3206
|
-
previousLastFundingTsMs: string;
|
|
3207
|
-
previousCumulativeFundingRateIndexSign: boolean;
|
|
3208
|
-
previousCumulativeFundingRateIndex: string;
|
|
3209
|
-
u64Padding: string[];
|
|
3210
|
-
};
|
|
3211
|
-
marketConfig: {
|
|
3212
|
-
oracleId: string;
|
|
3213
|
-
maxLeverageMbp: string;
|
|
3214
|
-
optionCollateralMaxLeverageMbp: string;
|
|
3215
|
-
minSize: string;
|
|
3216
|
-
lotSize: string;
|
|
3217
|
-
tradingFeeConfig: string[];
|
|
3218
|
-
basicFundingRate: string;
|
|
3219
|
-
fundingIntervalTsMs: string;
|
|
3220
|
-
expMultiplier: string;
|
|
3221
|
-
u64Padding: string[];
|
|
3222
|
-
};
|
|
3223
|
-
$typeName: string;
|
|
3224
|
-
$typeArgs: [];
|
|
3225
|
-
};
|
|
3226
|
-
static fromJSONField(field: any): SymbolMarket;
|
|
3227
|
-
static fromJSON(json: Record<string, any>): SymbolMarket;
|
|
3228
|
-
static fromSuiParsedData(content: SuiParsedData): SymbolMarket;
|
|
3229
|
-
static fromSuiObjectData(data: SuiObjectData): SymbolMarket;
|
|
3230
|
-
static fetch(client: SuiClient, id: string): Promise<SymbolMarket>;
|
|
3231
|
-
}
|
|
3232
|
-
export declare function isUSD(type: string): boolean;
|
|
3233
|
-
export interface USDFields {
|
|
3234
|
-
dummyField: ToField<"bool">;
|
|
3235
|
-
}
|
|
3236
|
-
export type USDReified = Reified<USD, USDFields>;
|
|
3237
|
-
export declare class USD implements StructClass {
|
|
3238
|
-
__StructClass: true;
|
|
3239
|
-
static readonly $typeName: string;
|
|
3240
|
-
static readonly $numTypeParams = 0;
|
|
3241
|
-
static readonly $isPhantom: readonly [];
|
|
3242
|
-
readonly $typeName: string;
|
|
3243
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::USD`;
|
|
3244
|
-
readonly $typeArgs: [];
|
|
3245
|
-
readonly $isPhantom: readonly [];
|
|
3246
|
-
readonly dummyField: ToField<"bool">;
|
|
3247
|
-
private constructor();
|
|
3248
|
-
static reified(): USDReified;
|
|
3249
|
-
static get r(): reified.StructClassReified<USD, USDFields>;
|
|
3250
|
-
static phantom(): PhantomReified<ToTypeStr<USD>>;
|
|
3251
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::USD" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::USD">;
|
|
3252
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
3253
|
-
dummy_field: boolean;
|
|
3254
|
-
}, {
|
|
3255
|
-
dummy_field: boolean;
|
|
3256
|
-
}>;
|
|
3257
|
-
static fromFields(fields: Record<string, any>): USD;
|
|
3258
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): USD;
|
|
3259
|
-
static fromBcs(data: Uint8Array): USD;
|
|
3260
|
-
toJSONField(): {
|
|
3261
|
-
dummyField: boolean;
|
|
3262
|
-
};
|
|
3263
|
-
toJSON(): {
|
|
3264
|
-
dummyField: boolean;
|
|
3265
|
-
$typeName: string;
|
|
3266
|
-
$typeArgs: [];
|
|
3267
|
-
};
|
|
3268
|
-
static fromJSONField(field: any): USD;
|
|
3269
|
-
static fromJSON(json: Record<string, any>): USD;
|
|
3270
|
-
static fromSuiParsedData(content: SuiParsedData): USD;
|
|
3271
|
-
static fromSuiObjectData(data: SuiObjectData): USD;
|
|
3272
|
-
static fetch(client: SuiClient, id: string): Promise<USD>;
|
|
3273
|
-
}
|
|
3274
|
-
export declare function isUpdateFundingRateEvent(type: string): boolean;
|
|
3275
|
-
export interface UpdateFundingRateEventFields {
|
|
3276
|
-
baseToken: ToField<TypeName>;
|
|
3277
|
-
newFundingTsMs: ToField<"u64">;
|
|
3278
|
-
intervalsCount: ToField<"u64">;
|
|
3279
|
-
previousCumulativeFundingRateIndexSign: ToField<"bool">;
|
|
3280
|
-
previousCumulativeFundingRateIndex: ToField<"u64">;
|
|
3281
|
-
cumulativeFundingRateIndexSign: ToField<"bool">;
|
|
3282
|
-
cumulativeFundingRateIndex: ToField<"u64">;
|
|
3283
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
3284
|
-
}
|
|
3285
|
-
export type UpdateFundingRateEventReified = Reified<UpdateFundingRateEvent, UpdateFundingRateEventFields>;
|
|
3286
|
-
export declare class UpdateFundingRateEvent implements StructClass {
|
|
3287
|
-
__StructClass: true;
|
|
3288
|
-
static readonly $typeName: string;
|
|
3289
|
-
static readonly $numTypeParams = 0;
|
|
3290
|
-
static readonly $isPhantom: readonly [];
|
|
3291
|
-
readonly $typeName: string;
|
|
3292
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::UpdateFundingRateEvent`;
|
|
3293
|
-
readonly $typeArgs: [];
|
|
3294
|
-
readonly $isPhantom: readonly [];
|
|
3295
|
-
readonly baseToken: ToField<TypeName>;
|
|
3296
|
-
readonly newFundingTsMs: ToField<"u64">;
|
|
3297
|
-
readonly intervalsCount: ToField<"u64">;
|
|
3298
|
-
readonly previousCumulativeFundingRateIndexSign: ToField<"bool">;
|
|
3299
|
-
readonly previousCumulativeFundingRateIndex: ToField<"u64">;
|
|
3300
|
-
readonly cumulativeFundingRateIndexSign: ToField<"bool">;
|
|
3301
|
-
readonly cumulativeFundingRateIndex: ToField<"u64">;
|
|
3302
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
3303
|
-
private constructor();
|
|
3304
|
-
static reified(): UpdateFundingRateEventReified;
|
|
3305
|
-
static get r(): reified.StructClassReified<UpdateFundingRateEvent, UpdateFundingRateEventFields>;
|
|
3306
|
-
static phantom(): PhantomReified<ToTypeStr<UpdateFundingRateEvent>>;
|
|
3307
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::UpdateFundingRateEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::UpdateFundingRateEvent">;
|
|
3308
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
3309
|
-
base_token: {
|
|
3310
|
-
name: {
|
|
3311
|
-
bytes: number[];
|
|
3312
|
-
};
|
|
3313
|
-
};
|
|
3314
|
-
new_funding_ts_ms: string;
|
|
3315
|
-
intervals_count: string;
|
|
3316
|
-
previous_cumulative_funding_rate_index_sign: boolean;
|
|
3317
|
-
previous_cumulative_funding_rate_index: string;
|
|
3318
|
-
cumulative_funding_rate_index_sign: boolean;
|
|
3319
|
-
cumulative_funding_rate_index: string;
|
|
3320
|
-
u64_padding: string[];
|
|
3321
|
-
}, {
|
|
3322
|
-
base_token: {
|
|
3323
|
-
name: {
|
|
3324
|
-
bytes: Iterable<number> & {
|
|
3325
|
-
length: number;
|
|
3326
|
-
};
|
|
3327
|
-
};
|
|
3328
|
-
};
|
|
3329
|
-
new_funding_ts_ms: string | number | bigint;
|
|
3330
|
-
intervals_count: string | number | bigint;
|
|
3331
|
-
previous_cumulative_funding_rate_index_sign: boolean;
|
|
3332
|
-
previous_cumulative_funding_rate_index: string | number | bigint;
|
|
3333
|
-
cumulative_funding_rate_index_sign: boolean;
|
|
3334
|
-
cumulative_funding_rate_index: string | number | bigint;
|
|
3335
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
3336
|
-
length: number;
|
|
3337
|
-
};
|
|
3338
|
-
}>;
|
|
3339
|
-
static fromFields(fields: Record<string, any>): UpdateFundingRateEvent;
|
|
3340
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): UpdateFundingRateEvent;
|
|
3341
|
-
static fromBcs(data: Uint8Array): UpdateFundingRateEvent;
|
|
3342
|
-
toJSONField(): {
|
|
3343
|
-
baseToken: {
|
|
3344
|
-
name: string;
|
|
3345
|
-
};
|
|
3346
|
-
newFundingTsMs: string;
|
|
3347
|
-
intervalsCount: string;
|
|
3348
|
-
previousCumulativeFundingRateIndexSign: boolean;
|
|
3349
|
-
previousCumulativeFundingRateIndex: string;
|
|
3350
|
-
cumulativeFundingRateIndexSign: boolean;
|
|
3351
|
-
cumulativeFundingRateIndex: string;
|
|
3352
|
-
u64Padding: string[];
|
|
3353
|
-
};
|
|
3354
|
-
toJSON(): {
|
|
3355
|
-
baseToken: {
|
|
3356
|
-
name: string;
|
|
3357
|
-
};
|
|
3358
|
-
newFundingTsMs: string;
|
|
3359
|
-
intervalsCount: string;
|
|
3360
|
-
previousCumulativeFundingRateIndexSign: boolean;
|
|
3361
|
-
previousCumulativeFundingRateIndex: string;
|
|
3362
|
-
cumulativeFundingRateIndexSign: boolean;
|
|
3363
|
-
cumulativeFundingRateIndex: string;
|
|
3364
|
-
u64Padding: string[];
|
|
3365
|
-
$typeName: string;
|
|
3366
|
-
$typeArgs: [];
|
|
3367
|
-
};
|
|
3368
|
-
static fromJSONField(field: any): UpdateFundingRateEvent;
|
|
3369
|
-
static fromJSON(json: Record<string, any>): UpdateFundingRateEvent;
|
|
3370
|
-
static fromSuiParsedData(content: SuiParsedData): UpdateFundingRateEvent;
|
|
3371
|
-
static fromSuiObjectData(data: SuiObjectData): UpdateFundingRateEvent;
|
|
3372
|
-
static fetch(client: SuiClient, id: string): Promise<UpdateFundingRateEvent>;
|
|
3373
|
-
}
|
|
3374
|
-
export declare function isUpdateMarketConfigEvent(type: string): boolean;
|
|
3375
|
-
export interface UpdateMarketConfigEventFields {
|
|
3376
|
-
index: ToField<"u64">;
|
|
3377
|
-
baseTokenType: ToField<TypeName>;
|
|
3378
|
-
previousMarketConfig: ToField<MarketConfig>;
|
|
3379
|
-
newMarketConfig: ToField<MarketConfig>;
|
|
3380
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
3381
|
-
}
|
|
3382
|
-
export type UpdateMarketConfigEventReified = Reified<UpdateMarketConfigEvent, UpdateMarketConfigEventFields>;
|
|
3383
|
-
export declare class UpdateMarketConfigEvent implements StructClass {
|
|
3384
|
-
__StructClass: true;
|
|
3385
|
-
static readonly $typeName: string;
|
|
3386
|
-
static readonly $numTypeParams = 0;
|
|
3387
|
-
static readonly $isPhantom: readonly [];
|
|
3388
|
-
readonly $typeName: string;
|
|
3389
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::UpdateMarketConfigEvent`;
|
|
3390
|
-
readonly $typeArgs: [];
|
|
3391
|
-
readonly $isPhantom: readonly [];
|
|
3392
|
-
readonly index: ToField<"u64">;
|
|
3393
|
-
readonly baseTokenType: ToField<TypeName>;
|
|
3394
|
-
readonly previousMarketConfig: ToField<MarketConfig>;
|
|
3395
|
-
readonly newMarketConfig: ToField<MarketConfig>;
|
|
3396
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
3397
|
-
private constructor();
|
|
3398
|
-
static reified(): UpdateMarketConfigEventReified;
|
|
3399
|
-
static get r(): reified.StructClassReified<UpdateMarketConfigEvent, UpdateMarketConfigEventFields>;
|
|
3400
|
-
static phantom(): PhantomReified<ToTypeStr<UpdateMarketConfigEvent>>;
|
|
3401
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::UpdateMarketConfigEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::UpdateMarketConfigEvent">;
|
|
3402
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
3403
|
-
index: string;
|
|
3404
|
-
base_token_type: {
|
|
3405
|
-
name: {
|
|
3406
|
-
bytes: number[];
|
|
3407
|
-
};
|
|
3408
|
-
};
|
|
3409
|
-
previous_market_config: {
|
|
3410
|
-
oracle_id: string;
|
|
3411
|
-
max_leverage_mbp: string;
|
|
3412
|
-
option_collateral_max_leverage_mbp: string;
|
|
3413
|
-
min_size: string;
|
|
3414
|
-
lot_size: string;
|
|
3415
|
-
trading_fee_config: string[];
|
|
3416
|
-
basic_funding_rate: string;
|
|
3417
|
-
funding_interval_ts_ms: string;
|
|
3418
|
-
exp_multiplier: string;
|
|
3419
|
-
u64_padding: string[];
|
|
3420
|
-
};
|
|
3421
|
-
new_market_config: {
|
|
3422
|
-
oracle_id: string;
|
|
3423
|
-
max_leverage_mbp: string;
|
|
3424
|
-
option_collateral_max_leverage_mbp: string;
|
|
3425
|
-
min_size: string;
|
|
3426
|
-
lot_size: string;
|
|
3427
|
-
trading_fee_config: string[];
|
|
3428
|
-
basic_funding_rate: string;
|
|
3429
|
-
funding_interval_ts_ms: string;
|
|
3430
|
-
exp_multiplier: string;
|
|
3431
|
-
u64_padding: string[];
|
|
3432
|
-
};
|
|
3433
|
-
u64_padding: string[];
|
|
3434
|
-
}, {
|
|
3435
|
-
index: string | number | bigint;
|
|
3436
|
-
base_token_type: {
|
|
3437
|
-
name: {
|
|
3438
|
-
bytes: Iterable<number> & {
|
|
3439
|
-
length: number;
|
|
3440
|
-
};
|
|
3441
|
-
};
|
|
3442
|
-
};
|
|
3443
|
-
previous_market_config: {
|
|
3444
|
-
oracle_id: string;
|
|
3445
|
-
max_leverage_mbp: string | number | bigint;
|
|
3446
|
-
option_collateral_max_leverage_mbp: string | number | bigint;
|
|
3447
|
-
min_size: string | number | bigint;
|
|
3448
|
-
lot_size: string | number | bigint;
|
|
3449
|
-
trading_fee_config: Iterable<string | number | bigint> & {
|
|
3450
|
-
length: number;
|
|
3451
|
-
};
|
|
3452
|
-
basic_funding_rate: string | number | bigint;
|
|
3453
|
-
funding_interval_ts_ms: string | number | bigint;
|
|
3454
|
-
exp_multiplier: string | number | bigint;
|
|
3455
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
3456
|
-
length: number;
|
|
3457
|
-
};
|
|
3458
|
-
};
|
|
3459
|
-
new_market_config: {
|
|
3460
|
-
oracle_id: string;
|
|
3461
|
-
max_leverage_mbp: string | number | bigint;
|
|
3462
|
-
option_collateral_max_leverage_mbp: string | number | bigint;
|
|
3463
|
-
min_size: string | number | bigint;
|
|
3464
|
-
lot_size: string | number | bigint;
|
|
3465
|
-
trading_fee_config: Iterable<string | number | bigint> & {
|
|
3466
|
-
length: number;
|
|
3467
|
-
};
|
|
3468
|
-
basic_funding_rate: string | number | bigint;
|
|
3469
|
-
funding_interval_ts_ms: string | number | bigint;
|
|
3470
|
-
exp_multiplier: string | number | bigint;
|
|
3471
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
3472
|
-
length: number;
|
|
3473
|
-
};
|
|
3474
|
-
};
|
|
3475
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
3476
|
-
length: number;
|
|
3477
|
-
};
|
|
3478
|
-
}>;
|
|
3479
|
-
static fromFields(fields: Record<string, any>): UpdateMarketConfigEvent;
|
|
3480
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): UpdateMarketConfigEvent;
|
|
3481
|
-
static fromBcs(data: Uint8Array): UpdateMarketConfigEvent;
|
|
3482
|
-
toJSONField(): {
|
|
3483
|
-
index: string;
|
|
3484
|
-
baseTokenType: {
|
|
3485
|
-
name: string;
|
|
3486
|
-
};
|
|
3487
|
-
previousMarketConfig: {
|
|
3488
|
-
oracleId: string;
|
|
3489
|
-
maxLeverageMbp: string;
|
|
3490
|
-
optionCollateralMaxLeverageMbp: string;
|
|
3491
|
-
minSize: string;
|
|
3492
|
-
lotSize: string;
|
|
3493
|
-
tradingFeeConfig: string[];
|
|
3494
|
-
basicFundingRate: string;
|
|
3495
|
-
fundingIntervalTsMs: string;
|
|
3496
|
-
expMultiplier: string;
|
|
3497
|
-
u64Padding: string[];
|
|
3498
|
-
};
|
|
3499
|
-
newMarketConfig: {
|
|
3500
|
-
oracleId: string;
|
|
3501
|
-
maxLeverageMbp: string;
|
|
3502
|
-
optionCollateralMaxLeverageMbp: string;
|
|
3503
|
-
minSize: string;
|
|
3504
|
-
lotSize: string;
|
|
3505
|
-
tradingFeeConfig: string[];
|
|
3506
|
-
basicFundingRate: string;
|
|
3507
|
-
fundingIntervalTsMs: string;
|
|
3508
|
-
expMultiplier: string;
|
|
3509
|
-
u64Padding: string[];
|
|
3510
|
-
};
|
|
3511
|
-
u64Padding: string[];
|
|
3512
|
-
};
|
|
3513
|
-
toJSON(): {
|
|
3514
|
-
index: string;
|
|
3515
|
-
baseTokenType: {
|
|
3516
|
-
name: string;
|
|
3517
|
-
};
|
|
3518
|
-
previousMarketConfig: {
|
|
3519
|
-
oracleId: string;
|
|
3520
|
-
maxLeverageMbp: string;
|
|
3521
|
-
optionCollateralMaxLeverageMbp: string;
|
|
3522
|
-
minSize: string;
|
|
3523
|
-
lotSize: string;
|
|
3524
|
-
tradingFeeConfig: string[];
|
|
3525
|
-
basicFundingRate: string;
|
|
3526
|
-
fundingIntervalTsMs: string;
|
|
3527
|
-
expMultiplier: string;
|
|
3528
|
-
u64Padding: string[];
|
|
3529
|
-
};
|
|
3530
|
-
newMarketConfig: {
|
|
3531
|
-
oracleId: string;
|
|
3532
|
-
maxLeverageMbp: string;
|
|
3533
|
-
optionCollateralMaxLeverageMbp: string;
|
|
3534
|
-
minSize: string;
|
|
3535
|
-
lotSize: string;
|
|
3536
|
-
tradingFeeConfig: string[];
|
|
3537
|
-
basicFundingRate: string;
|
|
3538
|
-
fundingIntervalTsMs: string;
|
|
3539
|
-
expMultiplier: string;
|
|
3540
|
-
u64Padding: string[];
|
|
3541
|
-
};
|
|
3542
|
-
u64Padding: string[];
|
|
3543
|
-
$typeName: string;
|
|
3544
|
-
$typeArgs: [];
|
|
3545
|
-
};
|
|
3546
|
-
static fromJSONField(field: any): UpdateMarketConfigEvent;
|
|
3547
|
-
static fromJSON(json: Record<string, any>): UpdateMarketConfigEvent;
|
|
3548
|
-
static fromSuiParsedData(content: SuiParsedData): UpdateMarketConfigEvent;
|
|
3549
|
-
static fromSuiObjectData(data: SuiObjectData): UpdateMarketConfigEvent;
|
|
3550
|
-
static fetch(client: SuiClient, id: string): Promise<UpdateMarketConfigEvent>;
|
|
3551
|
-
}
|
|
3552
|
-
export declare function isUpdateProtocolFeeShareBpEvent(type: string): boolean;
|
|
3553
|
-
export interface UpdateProtocolFeeShareBpEventFields {
|
|
3554
|
-
index: ToField<"u64">;
|
|
3555
|
-
previousProtocolFeeShareBp: ToField<"u64">;
|
|
3556
|
-
newProtocolFeeShareBp: ToField<"u64">;
|
|
3557
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
3558
|
-
}
|
|
3559
|
-
export type UpdateProtocolFeeShareBpEventReified = Reified<UpdateProtocolFeeShareBpEvent, UpdateProtocolFeeShareBpEventFields>;
|
|
3560
|
-
export declare class UpdateProtocolFeeShareBpEvent implements StructClass {
|
|
3561
|
-
__StructClass: true;
|
|
3562
|
-
static readonly $typeName: string;
|
|
3563
|
-
static readonly $numTypeParams = 0;
|
|
3564
|
-
static readonly $isPhantom: readonly [];
|
|
3565
|
-
readonly $typeName: string;
|
|
3566
|
-
readonly $fullTypeName: `${typeof PKG_V1}::trading::UpdateProtocolFeeShareBpEvent`;
|
|
3567
|
-
readonly $typeArgs: [];
|
|
3568
|
-
readonly $isPhantom: readonly [];
|
|
3569
|
-
readonly index: ToField<"u64">;
|
|
3570
|
-
readonly previousProtocolFeeShareBp: ToField<"u64">;
|
|
3571
|
-
readonly newProtocolFeeShareBp: ToField<"u64">;
|
|
3572
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
3573
|
-
private constructor();
|
|
3574
|
-
static reified(): UpdateProtocolFeeShareBpEventReified;
|
|
3575
|
-
static get r(): reified.StructClassReified<UpdateProtocolFeeShareBpEvent, UpdateProtocolFeeShareBpEventFields>;
|
|
3576
|
-
static phantom(): PhantomReified<ToTypeStr<UpdateProtocolFeeShareBpEvent>>;
|
|
3577
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::UpdateProtocolFeeShareBpEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::UpdateProtocolFeeShareBpEvent">;
|
|
3578
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
3579
|
-
index: string;
|
|
3580
|
-
previous_protocol_fee_share_bp: string;
|
|
3581
|
-
new_protocol_fee_share_bp: string;
|
|
3582
|
-
u64_padding: string[];
|
|
3583
|
-
}, {
|
|
3584
|
-
index: string | number | bigint;
|
|
3585
|
-
previous_protocol_fee_share_bp: string | number | bigint;
|
|
3586
|
-
new_protocol_fee_share_bp: string | number | bigint;
|
|
3587
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
3588
|
-
length: number;
|
|
3589
|
-
};
|
|
3590
|
-
}>;
|
|
3591
|
-
static fromFields(fields: Record<string, any>): UpdateProtocolFeeShareBpEvent;
|
|
3592
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): UpdateProtocolFeeShareBpEvent;
|
|
3593
|
-
static fromBcs(data: Uint8Array): UpdateProtocolFeeShareBpEvent;
|
|
3594
|
-
toJSONField(): {
|
|
3595
|
-
index: string;
|
|
3596
|
-
previousProtocolFeeShareBp: string;
|
|
3597
|
-
newProtocolFeeShareBp: string;
|
|
3598
|
-
u64Padding: string[];
|
|
3599
|
-
};
|
|
3600
|
-
toJSON(): {
|
|
3601
|
-
index: string;
|
|
3602
|
-
previousProtocolFeeShareBp: string;
|
|
3603
|
-
newProtocolFeeShareBp: string;
|
|
3604
|
-
u64Padding: string[];
|
|
3605
|
-
$typeName: string;
|
|
3606
|
-
$typeArgs: [];
|
|
3607
|
-
};
|
|
3608
|
-
static fromJSONField(field: any): UpdateProtocolFeeShareBpEvent;
|
|
3609
|
-
static fromJSON(json: Record<string, any>): UpdateProtocolFeeShareBpEvent;
|
|
3610
|
-
static fromSuiParsedData(content: SuiParsedData): UpdateProtocolFeeShareBpEvent;
|
|
3611
|
-
static fromSuiObjectData(data: SuiObjectData): UpdateProtocolFeeShareBpEvent;
|
|
3612
|
-
static fetch(client: SuiClient, id: string): Promise<UpdateProtocolFeeShareBpEvent>;
|
|
3613
|
-
}
|