@typus/typus-perp-sdk 1.1.30-testnet → 1.1.31-codegen
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/api/sentio.js +604 -538
- package/dist/src/client.d.ts +27 -0
- package/dist/src/client.js +108 -0
- package/dist/src/fetch.d.ts +160 -34
- package/dist/src/fetch.js +365 -665
- package/dist/src/generated/typus_perp/admin.d.ts +117 -0
- package/dist/src/generated/typus_perp/admin.js +110 -0
- package/dist/src/generated/typus_perp/competition.d.ts +22 -0
- package/dist/src/generated/typus_perp/competition.js +58 -0
- package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/typus_perp/deps/std/type_name.js +25 -0
- package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +12 -0
- package/dist/src/generated/typus_perp/deps/sui/balance.js +20 -0
- package/dist/src/generated/typus_perp/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_perp/deps/sui/object.js +16 -0
- package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +19 -0
- package/dist/src/generated/typus_perp/deps/sui/object_table.js +59 -0
- package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +18 -0
- package/dist/src/generated/typus_perp/deps/sui/vec_set.js +25 -0
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +30 -0
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +67 -0
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +32 -0
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +71 -0
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +23 -0
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +61 -0
- package/dist/src/generated/typus_perp/escrow.d.ts +59 -0
- package/dist/src/generated/typus_perp/escrow.js +76 -0
- package/dist/src/generated/typus_perp/lending.d.ts +47 -0
- package/dist/src/generated/typus_perp/lending.js +50 -0
- package/dist/src/generated/typus_perp/lp_pool.d.ts +2327 -0
- package/dist/src/generated/typus_perp/lp_pool.js +1956 -0
- package/dist/src/generated/typus_perp/math.d.ts +95 -0
- package/dist/src/generated/typus_perp/math.js +97 -0
- package/dist/src/generated/typus_perp/position.d.ts +234 -0
- package/dist/src/generated/typus_perp/position.js +204 -0
- package/dist/src/generated/typus_perp/symbol.d.ts +18 -0
- package/dist/src/generated/typus_perp/symbol.js +55 -0
- package/dist/src/generated/typus_perp/tlp.d.ts +13 -0
- package/dist/src/generated/typus_perp/tlp.js +56 -0
- package/dist/src/generated/typus_perp/trading.d.ts +2486 -0
- package/dist/src/generated/typus_perp/trading.js +2476 -0
- package/dist/src/generated/typus_perp/treasury_caps.d.ts +13 -0
- package/dist/src/{_framework/init-loader.js → generated/typus_perp/treasury_caps.js} +17 -10
- package/dist/src/generated/typus_perp/user_account.d.ts +40 -0
- package/dist/src/generated/typus_perp/user_account.js +72 -0
- package/dist/src/generated/typus_stake_pool/admin.d.ts +100 -0
- package/dist/src/generated/typus_stake_pool/admin.js +91 -0
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +25 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/object.js +16 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +30 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +37 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +18 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +25 -0
- package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +1023 -0
- package/dist/src/generated/typus_stake_pool/stake_pool.js +918 -0
- package/dist/src/generated/utils/index.d.ts +11 -0
- package/dist/src/generated/utils/index.js +135 -0
- package/dist/src/grpc/graphql.d.ts +26 -0
- package/dist/src/grpc/graphql.js +126 -0
- package/dist/src/grpc/grpc.d.ts +1 -0
- package/dist/src/grpc/grpc.js +38 -0
- package/dist/src/grpc/ledgerService.js +64 -0
- package/dist/src/grpc/liveDataService.d.ts +0 -0
- package/dist/src/grpc/liveDataService.js +49 -0
- package/dist/src/index.d.ts +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 -6
- package/dist/src/user/orderWithBidReceipt.js +127 -226
- package/dist/src/user/tlp.d.ts +32 -23
- package/dist/src/user/tlp.js +316 -468
- package/package.json +45 -37
- package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +0 -88
- 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 -50
- package/dist/src/_dependencies/source/0x1/option/structs.js +0 -271
- package/dist/src/_dependencies/source/0x1/string/structs.d.ts +0 -48
- package/dist/src/_dependencies/source/0x1/string/structs.js +0 -256
- package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +0 -49
- package/dist/src/_dependencies/source/0x1/type-name/structs.js +0 -223
- package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +0 -54
- package/dist/src/_dependencies/source/0x2/bag/structs.js +0 -229
- package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +0 -84
- package/dist/src/_dependencies/source/0x2/balance/structs.js +0 -386
- package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +0 -406
- 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 -132
- package/dist/src/_dependencies/source/0x2/linked-table/structs.js +0 -438
- package/dist/src/_dependencies/source/0x2/object/structs.d.ts +0 -86
- package/dist/src/_dependencies/source/0x2/object/structs.js +0 -364
- package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +0 -54
- package/dist/src/_dependencies/source/0x2/object-table/structs.js +0 -248
- package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +0 -44
- package/dist/src/_dependencies/source/0x2/sui/structs.js +0 -222
- package/dist/src/_dependencies/source/0x2/table/structs.d.ts +0 -54
- package/dist/src/_dependencies/source/0x2/table/structs.js +0 -248
- package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +0 -59
- package/dist/src/_dependencies/source/0x2/table-vec/structs.js +0 -274
- package/dist/src/_dependencies/source/0x2/token/structs.d.ts +0 -421
- package/dist/src/_dependencies/source/0x2/token/structs.js +0 -1095
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -348
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -1091
- package/dist/src/_dependencies/source/0x2/url/structs.d.ts +0 -49
- package/dist/src/_dependencies/source/0x2/url/structs.js +0 -223
- package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +0 -106
- package/dist/src/_dependencies/source/0x2/vec-map/structs.js +0 -446
- package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +0 -49
- package/dist/src/_dependencies/source/0x2/vec-set/structs.js +0 -270
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +0 -422
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.js +0 -1084
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +0 -130
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.js +0 -456
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +0 -208
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +0 -653
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +0 -362
- 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 -202
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.js +0 -632
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +0 -600
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.js +0 -1459
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.d.ts +0 -136
- 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 -127
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.js +0 -430
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +0 -957
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.js +0 -2261
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +0 -244
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +0 -733
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +0 -294
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +0 -892
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +0 -73
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.js +0 -263
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +0 -294
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.js +0 -591
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +0 -64
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.js +0 -258
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +0 -756
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +0 -1721
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +0 -44
- 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 -135
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.js +0 -444
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.d.ts +0 -2106
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.js +0 -4952
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +0 -390
- 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 -89
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.js +0 -376
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +0 -386
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.js +0 -881
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +0 -59
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.js +0 -274
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +0 -974
- 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 -42
- 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 -467
- 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 -80
- 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 -160
- 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 -3705
- 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 -905
- 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 -70
- 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 -89
- 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 -3060
- 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 -49
- 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 -148
- 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 -365
- 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 -2199
- 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,905 +0,0 @@
|
|
|
1
|
-
import * as reified from "../../_framework/reified";
|
|
2
|
-
import { Option } from "../../_dependencies/source/0x1/option/structs";
|
|
3
|
-
import { TypeName } from "../../_dependencies/source/0x1/type-name/structs";
|
|
4
|
-
import { UID } from "../../_dependencies/source/0x2/object/structs";
|
|
5
|
-
import { PhantomReified, Reified, StructClass, ToField, ToTypeStr } from "../../_framework/reified";
|
|
6
|
-
import { FieldsWithTypes } from "../../_framework/util";
|
|
7
|
-
import { Vector } from "../../_framework/vector";
|
|
8
|
-
import { PKG_V1 } from "../index";
|
|
9
|
-
import { Symbol } from "../symbol/structs";
|
|
10
|
-
import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
|
|
11
|
-
export declare function isOptionCollateralInfo(type: string): boolean;
|
|
12
|
-
export interface OptionCollateralInfoFields {
|
|
13
|
-
index: ToField<"u64">;
|
|
14
|
-
bidToken: ToField<TypeName>;
|
|
15
|
-
bidReceiptsBcs: ToField<Vector<Vector<"u8">>>;
|
|
16
|
-
}
|
|
17
|
-
export type OptionCollateralInfoReified = Reified<OptionCollateralInfo, OptionCollateralInfoFields>;
|
|
18
|
-
export declare class OptionCollateralInfo implements StructClass {
|
|
19
|
-
__StructClass: true;
|
|
20
|
-
static readonly $typeName: string;
|
|
21
|
-
static readonly $numTypeParams = 0;
|
|
22
|
-
static readonly $isPhantom: readonly [];
|
|
23
|
-
readonly $typeName: string;
|
|
24
|
-
readonly $fullTypeName: `${typeof PKG_V1}::position::OptionCollateralInfo`;
|
|
25
|
-
readonly $typeArgs: [];
|
|
26
|
-
readonly $isPhantom: readonly [];
|
|
27
|
-
readonly index: ToField<"u64">;
|
|
28
|
-
readonly bidToken: ToField<TypeName>;
|
|
29
|
-
readonly bidReceiptsBcs: ToField<Vector<Vector<"u8">>>;
|
|
30
|
-
private constructor();
|
|
31
|
-
static reified(): OptionCollateralInfoReified;
|
|
32
|
-
static get r(): reified.StructClassReified<OptionCollateralInfo, OptionCollateralInfoFields>;
|
|
33
|
-
static phantom(): PhantomReified<ToTypeStr<OptionCollateralInfo>>;
|
|
34
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::position::OptionCollateralInfo" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::position::OptionCollateralInfo">;
|
|
35
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
36
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
37
|
-
bid_token: import("@mysten/sui/bcs").BcsStruct<{
|
|
38
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
39
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
40
|
-
length: number;
|
|
41
|
-
}, string>;
|
|
42
|
-
}, string>;
|
|
43
|
-
}, string>;
|
|
44
|
-
bid_receipts_bcs: import("@mysten/sui/bcs").BcsType<number[][], Iterable<Iterable<number> & {
|
|
45
|
-
length: number;
|
|
46
|
-
}> & {
|
|
47
|
-
length: number;
|
|
48
|
-
}, string>;
|
|
49
|
-
}, string>;
|
|
50
|
-
static fromFields(fields: Record<string, any>): OptionCollateralInfo;
|
|
51
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): OptionCollateralInfo;
|
|
52
|
-
static fromBcs(data: Uint8Array): OptionCollateralInfo;
|
|
53
|
-
toJSONField(): {
|
|
54
|
-
index: string;
|
|
55
|
-
bidToken: {
|
|
56
|
-
name: string;
|
|
57
|
-
};
|
|
58
|
-
bidReceiptsBcs: number[][];
|
|
59
|
-
};
|
|
60
|
-
toJSON(): {
|
|
61
|
-
index: string;
|
|
62
|
-
bidToken: {
|
|
63
|
-
name: string;
|
|
64
|
-
};
|
|
65
|
-
bidReceiptsBcs: number[][];
|
|
66
|
-
$typeName: string;
|
|
67
|
-
$typeArgs: [];
|
|
68
|
-
};
|
|
69
|
-
static fromJSONField(field: any): OptionCollateralInfo;
|
|
70
|
-
static fromJSON(json: Record<string, any>): OptionCollateralInfo;
|
|
71
|
-
static fromSuiParsedData(content: SuiParsedData): OptionCollateralInfo;
|
|
72
|
-
static fromSuiObjectData(data: SuiObjectData): OptionCollateralInfo;
|
|
73
|
-
static fetch(client: SuiClient, id: string): Promise<OptionCollateralInfo>;
|
|
74
|
-
}
|
|
75
|
-
export declare function isOrderFilledEvent(type: string): boolean;
|
|
76
|
-
export interface OrderFilledEventFields {
|
|
77
|
-
user: ToField<"address">;
|
|
78
|
-
collateralToken: ToField<TypeName>;
|
|
79
|
-
symbol: ToField<Symbol>;
|
|
80
|
-
orderId: ToField<"u64">;
|
|
81
|
-
linkedPositionId: ToField<Option<"u64">>;
|
|
82
|
-
newPositionId: ToField<Option<"u64">>;
|
|
83
|
-
filledSize: ToField<"u64">;
|
|
84
|
-
filledPrice: ToField<"u64">;
|
|
85
|
-
positionSide: ToField<"bool">;
|
|
86
|
-
positionSize: ToField<"u64">;
|
|
87
|
-
positionAveragePrice: ToField<"u64">;
|
|
88
|
-
realizedTradingFee: ToField<"u64">;
|
|
89
|
-
realizedBorrowFee: ToField<"u64">;
|
|
90
|
-
realizedFeeInUsd: ToField<"u64">;
|
|
91
|
-
realizedAmount: ToField<"u64">;
|
|
92
|
-
realizedAmountSign: ToField<"bool">;
|
|
93
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
94
|
-
}
|
|
95
|
-
export type OrderFilledEventReified = Reified<OrderFilledEvent, OrderFilledEventFields>;
|
|
96
|
-
export declare class OrderFilledEvent implements StructClass {
|
|
97
|
-
__StructClass: true;
|
|
98
|
-
static readonly $typeName: string;
|
|
99
|
-
static readonly $numTypeParams = 0;
|
|
100
|
-
static readonly $isPhantom: readonly [];
|
|
101
|
-
readonly $typeName: string;
|
|
102
|
-
readonly $fullTypeName: `${typeof PKG_V1}::position::OrderFilledEvent`;
|
|
103
|
-
readonly $typeArgs: [];
|
|
104
|
-
readonly $isPhantom: readonly [];
|
|
105
|
-
readonly user: ToField<"address">;
|
|
106
|
-
readonly collateralToken: ToField<TypeName>;
|
|
107
|
-
readonly symbol: ToField<Symbol>;
|
|
108
|
-
readonly orderId: ToField<"u64">;
|
|
109
|
-
readonly linkedPositionId: ToField<Option<"u64">>;
|
|
110
|
-
readonly newPositionId: ToField<Option<"u64">>;
|
|
111
|
-
readonly filledSize: ToField<"u64">;
|
|
112
|
-
readonly filledPrice: ToField<"u64">;
|
|
113
|
-
readonly positionSide: ToField<"bool">;
|
|
114
|
-
readonly positionSize: ToField<"u64">;
|
|
115
|
-
readonly positionAveragePrice: ToField<"u64">;
|
|
116
|
-
readonly realizedTradingFee: ToField<"u64">;
|
|
117
|
-
readonly realizedBorrowFee: ToField<"u64">;
|
|
118
|
-
readonly realizedFeeInUsd: ToField<"u64">;
|
|
119
|
-
readonly realizedAmount: ToField<"u64">;
|
|
120
|
-
readonly realizedAmountSign: ToField<"bool">;
|
|
121
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
122
|
-
private constructor();
|
|
123
|
-
static reified(): OrderFilledEventReified;
|
|
124
|
-
static get r(): reified.StructClassReified<OrderFilledEvent, OrderFilledEventFields>;
|
|
125
|
-
static phantom(): PhantomReified<ToTypeStr<OrderFilledEvent>>;
|
|
126
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::position::OrderFilledEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::position::OrderFilledEvent">;
|
|
127
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
128
|
-
user: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
129
|
-
collateral_token: import("@mysten/sui/bcs").BcsStruct<{
|
|
130
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
131
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
132
|
-
length: number;
|
|
133
|
-
}, string>;
|
|
134
|
-
}, string>;
|
|
135
|
-
}, string>;
|
|
136
|
-
symbol: import("@mysten/sui/bcs").BcsStruct<{
|
|
137
|
-
base_token: import("@mysten/sui/bcs").BcsStruct<{
|
|
138
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
139
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
140
|
-
length: number;
|
|
141
|
-
}, string>;
|
|
142
|
-
}, string>;
|
|
143
|
-
}, string>;
|
|
144
|
-
quote_token: import("@mysten/sui/bcs").BcsStruct<{
|
|
145
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
146
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
147
|
-
length: number;
|
|
148
|
-
}, string>;
|
|
149
|
-
}, string>;
|
|
150
|
-
}, string>;
|
|
151
|
-
}, string>;
|
|
152
|
-
order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
153
|
-
linked_position_id: import("@mysten/sui/bcs").BcsStruct<{
|
|
154
|
-
vec: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
155
|
-
length: number;
|
|
156
|
-
}, string>;
|
|
157
|
-
}, string>;
|
|
158
|
-
new_position_id: import("@mysten/sui/bcs").BcsStruct<{
|
|
159
|
-
vec: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
160
|
-
length: number;
|
|
161
|
-
}, string>;
|
|
162
|
-
}, string>;
|
|
163
|
-
filled_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
164
|
-
filled_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
165
|
-
position_side: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
166
|
-
position_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
167
|
-
position_average_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
168
|
-
realized_trading_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
169
|
-
realized_borrow_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
170
|
-
realized_fee_in_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
171
|
-
realized_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
172
|
-
realized_amount_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
173
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
174
|
-
length: number;
|
|
175
|
-
}, string>;
|
|
176
|
-
}, string>;
|
|
177
|
-
static fromFields(fields: Record<string, any>): OrderFilledEvent;
|
|
178
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): OrderFilledEvent;
|
|
179
|
-
static fromBcs(data: Uint8Array): OrderFilledEvent;
|
|
180
|
-
toJSONField(): {
|
|
181
|
-
user: string;
|
|
182
|
-
collateralToken: {
|
|
183
|
-
name: string;
|
|
184
|
-
};
|
|
185
|
-
symbol: {
|
|
186
|
-
baseToken: {
|
|
187
|
-
name: string;
|
|
188
|
-
};
|
|
189
|
-
quoteToken: {
|
|
190
|
-
name: string;
|
|
191
|
-
};
|
|
192
|
-
};
|
|
193
|
-
orderId: string;
|
|
194
|
-
linkedPositionId: string | null;
|
|
195
|
-
newPositionId: string | null;
|
|
196
|
-
filledSize: string;
|
|
197
|
-
filledPrice: string;
|
|
198
|
-
positionSide: boolean;
|
|
199
|
-
positionSize: string;
|
|
200
|
-
positionAveragePrice: string;
|
|
201
|
-
realizedTradingFee: string;
|
|
202
|
-
realizedBorrowFee: string;
|
|
203
|
-
realizedFeeInUsd: string;
|
|
204
|
-
realizedAmount: string;
|
|
205
|
-
realizedAmountSign: boolean;
|
|
206
|
-
u64Padding: string[];
|
|
207
|
-
};
|
|
208
|
-
toJSON(): {
|
|
209
|
-
user: string;
|
|
210
|
-
collateralToken: {
|
|
211
|
-
name: string;
|
|
212
|
-
};
|
|
213
|
-
symbol: {
|
|
214
|
-
baseToken: {
|
|
215
|
-
name: string;
|
|
216
|
-
};
|
|
217
|
-
quoteToken: {
|
|
218
|
-
name: string;
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
orderId: string;
|
|
222
|
-
linkedPositionId: string | null;
|
|
223
|
-
newPositionId: string | null;
|
|
224
|
-
filledSize: string;
|
|
225
|
-
filledPrice: string;
|
|
226
|
-
positionSide: boolean;
|
|
227
|
-
positionSize: string;
|
|
228
|
-
positionAveragePrice: string;
|
|
229
|
-
realizedTradingFee: string;
|
|
230
|
-
realizedBorrowFee: string;
|
|
231
|
-
realizedFeeInUsd: string;
|
|
232
|
-
realizedAmount: string;
|
|
233
|
-
realizedAmountSign: boolean;
|
|
234
|
-
u64Padding: string[];
|
|
235
|
-
$typeName: string;
|
|
236
|
-
$typeArgs: [];
|
|
237
|
-
};
|
|
238
|
-
static fromJSONField(field: any): OrderFilledEvent;
|
|
239
|
-
static fromJSON(json: Record<string, any>): OrderFilledEvent;
|
|
240
|
-
static fromSuiParsedData(content: SuiParsedData): OrderFilledEvent;
|
|
241
|
-
static fromSuiObjectData(data: SuiObjectData): OrderFilledEvent;
|
|
242
|
-
static fetch(client: SuiClient, id: string): Promise<OrderFilledEvent>;
|
|
243
|
-
}
|
|
244
|
-
export declare function isPosition(type: string): boolean;
|
|
245
|
-
export interface PositionFields {
|
|
246
|
-
id: ToField<UID>;
|
|
247
|
-
createTsMs: ToField<"u64">;
|
|
248
|
-
positionId: ToField<"u64">;
|
|
249
|
-
linkedOrderIds: ToField<Vector<"u64">>;
|
|
250
|
-
linkedOrderPrices: ToField<Vector<"u64">>;
|
|
251
|
-
user: ToField<"address">;
|
|
252
|
-
isLong: ToField<"bool">;
|
|
253
|
-
size: ToField<"u64">;
|
|
254
|
-
sizeDecimal: ToField<"u64">;
|
|
255
|
-
collateralToken: ToField<TypeName>;
|
|
256
|
-
collateralTokenDecimal: ToField<"u64">;
|
|
257
|
-
symbol: ToField<Symbol>;
|
|
258
|
-
collateralAmount: ToField<"u64">;
|
|
259
|
-
reserveAmount: ToField<"u64">;
|
|
260
|
-
averagePrice: ToField<"u64">;
|
|
261
|
-
entryBorrowIndex: ToField<"u64">;
|
|
262
|
-
entryFundingRateIndexSign: ToField<"bool">;
|
|
263
|
-
entryFundingRateIndex: ToField<"u64">;
|
|
264
|
-
unrealizedLoss: ToField<"u64">;
|
|
265
|
-
unrealizedFundingSign: ToField<"bool">;
|
|
266
|
-
unrealizedFundingFee: ToField<"u64">;
|
|
267
|
-
unrealizedTradingFee: ToField<"u64">;
|
|
268
|
-
unrealizedBorrowFee: ToField<"u64">;
|
|
269
|
-
unrealizedRebate: ToField<"u64">;
|
|
270
|
-
optionCollateralInfo: ToField<Option<OptionCollateralInfo>>;
|
|
271
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
272
|
-
}
|
|
273
|
-
export type PositionReified = Reified<Position, PositionFields>;
|
|
274
|
-
export declare class Position implements StructClass {
|
|
275
|
-
__StructClass: true;
|
|
276
|
-
static readonly $typeName: string;
|
|
277
|
-
static readonly $numTypeParams = 0;
|
|
278
|
-
static readonly $isPhantom: readonly [];
|
|
279
|
-
readonly $typeName: string;
|
|
280
|
-
readonly $fullTypeName: `${typeof PKG_V1}::position::Position`;
|
|
281
|
-
readonly $typeArgs: [];
|
|
282
|
-
readonly $isPhantom: readonly [];
|
|
283
|
-
readonly id: ToField<UID>;
|
|
284
|
-
readonly createTsMs: ToField<"u64">;
|
|
285
|
-
readonly positionId: ToField<"u64">;
|
|
286
|
-
readonly linkedOrderIds: ToField<Vector<"u64">>;
|
|
287
|
-
readonly linkedOrderPrices: ToField<Vector<"u64">>;
|
|
288
|
-
readonly user: ToField<"address">;
|
|
289
|
-
readonly isLong: ToField<"bool">;
|
|
290
|
-
readonly size: ToField<"u64">;
|
|
291
|
-
readonly sizeDecimal: ToField<"u64">;
|
|
292
|
-
readonly collateralToken: ToField<TypeName>;
|
|
293
|
-
readonly collateralTokenDecimal: ToField<"u64">;
|
|
294
|
-
readonly symbol: ToField<Symbol>;
|
|
295
|
-
readonly collateralAmount: ToField<"u64">;
|
|
296
|
-
readonly reserveAmount: ToField<"u64">;
|
|
297
|
-
readonly averagePrice: ToField<"u64">;
|
|
298
|
-
readonly entryBorrowIndex: ToField<"u64">;
|
|
299
|
-
readonly entryFundingRateIndexSign: ToField<"bool">;
|
|
300
|
-
readonly entryFundingRateIndex: ToField<"u64">;
|
|
301
|
-
readonly unrealizedLoss: ToField<"u64">;
|
|
302
|
-
readonly unrealizedFundingSign: ToField<"bool">;
|
|
303
|
-
readonly unrealizedFundingFee: ToField<"u64">;
|
|
304
|
-
readonly unrealizedTradingFee: ToField<"u64">;
|
|
305
|
-
readonly unrealizedBorrowFee: ToField<"u64">;
|
|
306
|
-
readonly unrealizedRebate: ToField<"u64">;
|
|
307
|
-
readonly optionCollateralInfo: ToField<Option<OptionCollateralInfo>>;
|
|
308
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
309
|
-
private constructor();
|
|
310
|
-
static reified(): PositionReified;
|
|
311
|
-
static get r(): reified.StructClassReified<Position, PositionFields>;
|
|
312
|
-
static phantom(): PhantomReified<ToTypeStr<Position>>;
|
|
313
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::position::Position" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::position::Position">;
|
|
314
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
315
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
316
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
317
|
-
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
318
|
-
}, string>;
|
|
319
|
-
}, string>;
|
|
320
|
-
create_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
321
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
322
|
-
linked_order_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
323
|
-
length: number;
|
|
324
|
-
}, string>;
|
|
325
|
-
linked_order_prices: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
326
|
-
length: number;
|
|
327
|
-
}, string>;
|
|
328
|
-
user: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
329
|
-
is_long: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
330
|
-
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
331
|
-
size_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
332
|
-
collateral_token: import("@mysten/sui/bcs").BcsStruct<{
|
|
333
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
334
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
335
|
-
length: number;
|
|
336
|
-
}, string>;
|
|
337
|
-
}, string>;
|
|
338
|
-
}, string>;
|
|
339
|
-
collateral_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
340
|
-
symbol: import("@mysten/sui/bcs").BcsStruct<{
|
|
341
|
-
base_token: import("@mysten/sui/bcs").BcsStruct<{
|
|
342
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
343
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
344
|
-
length: number;
|
|
345
|
-
}, string>;
|
|
346
|
-
}, string>;
|
|
347
|
-
}, string>;
|
|
348
|
-
quote_token: import("@mysten/sui/bcs").BcsStruct<{
|
|
349
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
350
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
351
|
-
length: number;
|
|
352
|
-
}, string>;
|
|
353
|
-
}, string>;
|
|
354
|
-
}, string>;
|
|
355
|
-
}, string>;
|
|
356
|
-
collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
357
|
-
reserve_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
358
|
-
average_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
359
|
-
entry_borrow_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
360
|
-
entry_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
361
|
-
entry_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
362
|
-
unrealized_loss: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
363
|
-
unrealized_funding_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
364
|
-
unrealized_funding_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
365
|
-
unrealized_trading_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
366
|
-
unrealized_borrow_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
367
|
-
unrealized_rebate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
368
|
-
option_collateral_info: import("@mysten/sui/bcs").BcsStruct<{
|
|
369
|
-
vec: import("@mysten/sui/bcs").BcsType<{
|
|
370
|
-
index: string;
|
|
371
|
-
bid_token: {
|
|
372
|
-
name: {
|
|
373
|
-
bytes: number[];
|
|
374
|
-
};
|
|
375
|
-
};
|
|
376
|
-
bid_receipts_bcs: number[][];
|
|
377
|
-
}[], Iterable<{
|
|
378
|
-
index: string | number | bigint;
|
|
379
|
-
bid_token: {
|
|
380
|
-
name: {
|
|
381
|
-
bytes: Iterable<number> & {
|
|
382
|
-
length: number;
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
};
|
|
386
|
-
bid_receipts_bcs: Iterable<Iterable<number> & {
|
|
387
|
-
length: number;
|
|
388
|
-
}> & {
|
|
389
|
-
length: number;
|
|
390
|
-
};
|
|
391
|
-
}> & {
|
|
392
|
-
length: number;
|
|
393
|
-
}, string>;
|
|
394
|
-
}, string>;
|
|
395
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
396
|
-
length: number;
|
|
397
|
-
}, string>;
|
|
398
|
-
}, string>;
|
|
399
|
-
static fromFields(fields: Record<string, any>): Position;
|
|
400
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): Position;
|
|
401
|
-
static fromBcs(data: Uint8Array): Position;
|
|
402
|
-
toJSONField(): {
|
|
403
|
-
id: string;
|
|
404
|
-
createTsMs: string;
|
|
405
|
-
positionId: string;
|
|
406
|
-
linkedOrderIds: string[];
|
|
407
|
-
linkedOrderPrices: string[];
|
|
408
|
-
user: string;
|
|
409
|
-
isLong: boolean;
|
|
410
|
-
size: string;
|
|
411
|
-
sizeDecimal: string;
|
|
412
|
-
collateralToken: {
|
|
413
|
-
name: string;
|
|
414
|
-
};
|
|
415
|
-
collateralTokenDecimal: string;
|
|
416
|
-
symbol: {
|
|
417
|
-
baseToken: {
|
|
418
|
-
name: string;
|
|
419
|
-
};
|
|
420
|
-
quoteToken: {
|
|
421
|
-
name: string;
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
collateralAmount: string;
|
|
425
|
-
reserveAmount: string;
|
|
426
|
-
averagePrice: string;
|
|
427
|
-
entryBorrowIndex: string;
|
|
428
|
-
entryFundingRateIndexSign: boolean;
|
|
429
|
-
entryFundingRateIndex: string;
|
|
430
|
-
unrealizedLoss: string;
|
|
431
|
-
unrealizedFundingSign: boolean;
|
|
432
|
-
unrealizedFundingFee: string;
|
|
433
|
-
unrealizedTradingFee: string;
|
|
434
|
-
unrealizedBorrowFee: string;
|
|
435
|
-
unrealizedRebate: string;
|
|
436
|
-
optionCollateralInfo: {
|
|
437
|
-
index: string;
|
|
438
|
-
bidToken: {
|
|
439
|
-
name: string;
|
|
440
|
-
};
|
|
441
|
-
bidReceiptsBcs: number[][];
|
|
442
|
-
} | null;
|
|
443
|
-
u64Padding: string[];
|
|
444
|
-
};
|
|
445
|
-
toJSON(): {
|
|
446
|
-
id: string;
|
|
447
|
-
createTsMs: string;
|
|
448
|
-
positionId: string;
|
|
449
|
-
linkedOrderIds: string[];
|
|
450
|
-
linkedOrderPrices: string[];
|
|
451
|
-
user: string;
|
|
452
|
-
isLong: boolean;
|
|
453
|
-
size: string;
|
|
454
|
-
sizeDecimal: string;
|
|
455
|
-
collateralToken: {
|
|
456
|
-
name: string;
|
|
457
|
-
};
|
|
458
|
-
collateralTokenDecimal: string;
|
|
459
|
-
symbol: {
|
|
460
|
-
baseToken: {
|
|
461
|
-
name: string;
|
|
462
|
-
};
|
|
463
|
-
quoteToken: {
|
|
464
|
-
name: string;
|
|
465
|
-
};
|
|
466
|
-
};
|
|
467
|
-
collateralAmount: string;
|
|
468
|
-
reserveAmount: string;
|
|
469
|
-
averagePrice: string;
|
|
470
|
-
entryBorrowIndex: string;
|
|
471
|
-
entryFundingRateIndexSign: boolean;
|
|
472
|
-
entryFundingRateIndex: string;
|
|
473
|
-
unrealizedLoss: string;
|
|
474
|
-
unrealizedFundingSign: boolean;
|
|
475
|
-
unrealizedFundingFee: string;
|
|
476
|
-
unrealizedTradingFee: string;
|
|
477
|
-
unrealizedBorrowFee: string;
|
|
478
|
-
unrealizedRebate: string;
|
|
479
|
-
optionCollateralInfo: {
|
|
480
|
-
index: string;
|
|
481
|
-
bidToken: {
|
|
482
|
-
name: string;
|
|
483
|
-
};
|
|
484
|
-
bidReceiptsBcs: number[][];
|
|
485
|
-
} | null;
|
|
486
|
-
u64Padding: string[];
|
|
487
|
-
$typeName: string;
|
|
488
|
-
$typeArgs: [];
|
|
489
|
-
};
|
|
490
|
-
static fromJSONField(field: any): Position;
|
|
491
|
-
static fromJSON(json: Record<string, any>): Position;
|
|
492
|
-
static fromSuiParsedData(content: SuiParsedData): Position;
|
|
493
|
-
static fromSuiObjectData(data: SuiObjectData): Position;
|
|
494
|
-
static fetch(client: SuiClient, id: string): Promise<Position>;
|
|
495
|
-
}
|
|
496
|
-
export declare function isRealizeFundingEvent(type: string): boolean;
|
|
497
|
-
export interface RealizeFundingEventFields {
|
|
498
|
-
user: ToField<"address">;
|
|
499
|
-
collateralToken: ToField<TypeName>;
|
|
500
|
-
symbol: ToField<Symbol>;
|
|
501
|
-
positionId: ToField<"u64">;
|
|
502
|
-
realizedFundingSign: ToField<"bool">;
|
|
503
|
-
realizedFundingFee: ToField<"u64">;
|
|
504
|
-
realizedFundingFeeUsd: ToField<"u64">;
|
|
505
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
506
|
-
}
|
|
507
|
-
export type RealizeFundingEventReified = Reified<RealizeFundingEvent, RealizeFundingEventFields>;
|
|
508
|
-
export declare class RealizeFundingEvent implements StructClass {
|
|
509
|
-
__StructClass: true;
|
|
510
|
-
static readonly $typeName: string;
|
|
511
|
-
static readonly $numTypeParams = 0;
|
|
512
|
-
static readonly $isPhantom: readonly [];
|
|
513
|
-
readonly $typeName: string;
|
|
514
|
-
readonly $fullTypeName: `${typeof PKG_V1}::position::RealizeFundingEvent`;
|
|
515
|
-
readonly $typeArgs: [];
|
|
516
|
-
readonly $isPhantom: readonly [];
|
|
517
|
-
readonly user: ToField<"address">;
|
|
518
|
-
readonly collateralToken: ToField<TypeName>;
|
|
519
|
-
readonly symbol: ToField<Symbol>;
|
|
520
|
-
readonly positionId: ToField<"u64">;
|
|
521
|
-
readonly realizedFundingSign: ToField<"bool">;
|
|
522
|
-
readonly realizedFundingFee: ToField<"u64">;
|
|
523
|
-
readonly realizedFundingFeeUsd: ToField<"u64">;
|
|
524
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
525
|
-
private constructor();
|
|
526
|
-
static reified(): RealizeFundingEventReified;
|
|
527
|
-
static get r(): reified.StructClassReified<RealizeFundingEvent, RealizeFundingEventFields>;
|
|
528
|
-
static phantom(): PhantomReified<ToTypeStr<RealizeFundingEvent>>;
|
|
529
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::position::RealizeFundingEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::position::RealizeFundingEvent">;
|
|
530
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
531
|
-
user: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
532
|
-
collateral_token: import("@mysten/sui/bcs").BcsStruct<{
|
|
533
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
534
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
535
|
-
length: number;
|
|
536
|
-
}, string>;
|
|
537
|
-
}, string>;
|
|
538
|
-
}, string>;
|
|
539
|
-
symbol: import("@mysten/sui/bcs").BcsStruct<{
|
|
540
|
-
base_token: import("@mysten/sui/bcs").BcsStruct<{
|
|
541
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
542
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
543
|
-
length: number;
|
|
544
|
-
}, string>;
|
|
545
|
-
}, string>;
|
|
546
|
-
}, string>;
|
|
547
|
-
quote_token: import("@mysten/sui/bcs").BcsStruct<{
|
|
548
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
549
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
550
|
-
length: number;
|
|
551
|
-
}, string>;
|
|
552
|
-
}, string>;
|
|
553
|
-
}, string>;
|
|
554
|
-
}, string>;
|
|
555
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
556
|
-
realized_funding_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
557
|
-
realized_funding_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
558
|
-
realized_funding_fee_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
559
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
560
|
-
length: number;
|
|
561
|
-
}, string>;
|
|
562
|
-
}, string>;
|
|
563
|
-
static fromFields(fields: Record<string, any>): RealizeFundingEvent;
|
|
564
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): RealizeFundingEvent;
|
|
565
|
-
static fromBcs(data: Uint8Array): RealizeFundingEvent;
|
|
566
|
-
toJSONField(): {
|
|
567
|
-
user: string;
|
|
568
|
-
collateralToken: {
|
|
569
|
-
name: string;
|
|
570
|
-
};
|
|
571
|
-
symbol: {
|
|
572
|
-
baseToken: {
|
|
573
|
-
name: string;
|
|
574
|
-
};
|
|
575
|
-
quoteToken: {
|
|
576
|
-
name: string;
|
|
577
|
-
};
|
|
578
|
-
};
|
|
579
|
-
positionId: string;
|
|
580
|
-
realizedFundingSign: boolean;
|
|
581
|
-
realizedFundingFee: string;
|
|
582
|
-
realizedFundingFeeUsd: string;
|
|
583
|
-
u64Padding: string[];
|
|
584
|
-
};
|
|
585
|
-
toJSON(): {
|
|
586
|
-
user: string;
|
|
587
|
-
collateralToken: {
|
|
588
|
-
name: string;
|
|
589
|
-
};
|
|
590
|
-
symbol: {
|
|
591
|
-
baseToken: {
|
|
592
|
-
name: string;
|
|
593
|
-
};
|
|
594
|
-
quoteToken: {
|
|
595
|
-
name: string;
|
|
596
|
-
};
|
|
597
|
-
};
|
|
598
|
-
positionId: string;
|
|
599
|
-
realizedFundingSign: boolean;
|
|
600
|
-
realizedFundingFee: string;
|
|
601
|
-
realizedFundingFeeUsd: string;
|
|
602
|
-
u64Padding: string[];
|
|
603
|
-
$typeName: string;
|
|
604
|
-
$typeArgs: [];
|
|
605
|
-
};
|
|
606
|
-
static fromJSONField(field: any): RealizeFundingEvent;
|
|
607
|
-
static fromJSON(json: Record<string, any>): RealizeFundingEvent;
|
|
608
|
-
static fromSuiParsedData(content: SuiParsedData): RealizeFundingEvent;
|
|
609
|
-
static fromSuiObjectData(data: SuiObjectData): RealizeFundingEvent;
|
|
610
|
-
static fetch(client: SuiClient, id: string): Promise<RealizeFundingEvent>;
|
|
611
|
-
}
|
|
612
|
-
export declare function isRemovePositionEvent(type: string): boolean;
|
|
613
|
-
export interface RemovePositionEventFields {
|
|
614
|
-
user: ToField<"address">;
|
|
615
|
-
collateralToken: ToField<TypeName>;
|
|
616
|
-
symbol: ToField<Symbol>;
|
|
617
|
-
linkedOrderIds: ToField<Vector<"u64">>;
|
|
618
|
-
linkedOrderPrices: ToField<Vector<"u64">>;
|
|
619
|
-
remainingCollateralAmount: ToField<"u64">;
|
|
620
|
-
realizedTradingFeeAmount: ToField<"u64">;
|
|
621
|
-
realizedBorrowFeeAmount: ToField<"u64">;
|
|
622
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
623
|
-
}
|
|
624
|
-
export type RemovePositionEventReified = Reified<RemovePositionEvent, RemovePositionEventFields>;
|
|
625
|
-
export declare class RemovePositionEvent implements StructClass {
|
|
626
|
-
__StructClass: true;
|
|
627
|
-
static readonly $typeName: string;
|
|
628
|
-
static readonly $numTypeParams = 0;
|
|
629
|
-
static readonly $isPhantom: readonly [];
|
|
630
|
-
readonly $typeName: string;
|
|
631
|
-
readonly $fullTypeName: `${typeof PKG_V1}::position::RemovePositionEvent`;
|
|
632
|
-
readonly $typeArgs: [];
|
|
633
|
-
readonly $isPhantom: readonly [];
|
|
634
|
-
readonly user: ToField<"address">;
|
|
635
|
-
readonly collateralToken: ToField<TypeName>;
|
|
636
|
-
readonly symbol: ToField<Symbol>;
|
|
637
|
-
readonly linkedOrderIds: ToField<Vector<"u64">>;
|
|
638
|
-
readonly linkedOrderPrices: ToField<Vector<"u64">>;
|
|
639
|
-
readonly remainingCollateralAmount: ToField<"u64">;
|
|
640
|
-
readonly realizedTradingFeeAmount: ToField<"u64">;
|
|
641
|
-
readonly realizedBorrowFeeAmount: ToField<"u64">;
|
|
642
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
643
|
-
private constructor();
|
|
644
|
-
static reified(): RemovePositionEventReified;
|
|
645
|
-
static get r(): reified.StructClassReified<RemovePositionEvent, RemovePositionEventFields>;
|
|
646
|
-
static phantom(): PhantomReified<ToTypeStr<RemovePositionEvent>>;
|
|
647
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::position::RemovePositionEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::position::RemovePositionEvent">;
|
|
648
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
649
|
-
user: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
650
|
-
collateral_token: import("@mysten/sui/bcs").BcsStruct<{
|
|
651
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
652
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
653
|
-
length: number;
|
|
654
|
-
}, string>;
|
|
655
|
-
}, string>;
|
|
656
|
-
}, string>;
|
|
657
|
-
symbol: import("@mysten/sui/bcs").BcsStruct<{
|
|
658
|
-
base_token: import("@mysten/sui/bcs").BcsStruct<{
|
|
659
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
660
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
661
|
-
length: number;
|
|
662
|
-
}, string>;
|
|
663
|
-
}, string>;
|
|
664
|
-
}, string>;
|
|
665
|
-
quote_token: import("@mysten/sui/bcs").BcsStruct<{
|
|
666
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
667
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
668
|
-
length: number;
|
|
669
|
-
}, string>;
|
|
670
|
-
}, string>;
|
|
671
|
-
}, string>;
|
|
672
|
-
}, string>;
|
|
673
|
-
linked_order_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
674
|
-
length: number;
|
|
675
|
-
}, string>;
|
|
676
|
-
linked_order_prices: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
677
|
-
length: number;
|
|
678
|
-
}, string>;
|
|
679
|
-
remaining_collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
680
|
-
realized_trading_fee_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
681
|
-
realized_borrow_fee_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
682
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
683
|
-
length: number;
|
|
684
|
-
}, string>;
|
|
685
|
-
}, string>;
|
|
686
|
-
static fromFields(fields: Record<string, any>): RemovePositionEvent;
|
|
687
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): RemovePositionEvent;
|
|
688
|
-
static fromBcs(data: Uint8Array): RemovePositionEvent;
|
|
689
|
-
toJSONField(): {
|
|
690
|
-
user: string;
|
|
691
|
-
collateralToken: {
|
|
692
|
-
name: string;
|
|
693
|
-
};
|
|
694
|
-
symbol: {
|
|
695
|
-
baseToken: {
|
|
696
|
-
name: string;
|
|
697
|
-
};
|
|
698
|
-
quoteToken: {
|
|
699
|
-
name: string;
|
|
700
|
-
};
|
|
701
|
-
};
|
|
702
|
-
linkedOrderIds: string[];
|
|
703
|
-
linkedOrderPrices: string[];
|
|
704
|
-
remainingCollateralAmount: string;
|
|
705
|
-
realizedTradingFeeAmount: string;
|
|
706
|
-
realizedBorrowFeeAmount: string;
|
|
707
|
-
u64Padding: string[];
|
|
708
|
-
};
|
|
709
|
-
toJSON(): {
|
|
710
|
-
user: string;
|
|
711
|
-
collateralToken: {
|
|
712
|
-
name: string;
|
|
713
|
-
};
|
|
714
|
-
symbol: {
|
|
715
|
-
baseToken: {
|
|
716
|
-
name: string;
|
|
717
|
-
};
|
|
718
|
-
quoteToken: {
|
|
719
|
-
name: string;
|
|
720
|
-
};
|
|
721
|
-
};
|
|
722
|
-
linkedOrderIds: string[];
|
|
723
|
-
linkedOrderPrices: string[];
|
|
724
|
-
remainingCollateralAmount: string;
|
|
725
|
-
realizedTradingFeeAmount: string;
|
|
726
|
-
realizedBorrowFeeAmount: string;
|
|
727
|
-
u64Padding: string[];
|
|
728
|
-
$typeName: string;
|
|
729
|
-
$typeArgs: [];
|
|
730
|
-
};
|
|
731
|
-
static fromJSONField(field: any): RemovePositionEvent;
|
|
732
|
-
static fromJSON(json: Record<string, any>): RemovePositionEvent;
|
|
733
|
-
static fromSuiParsedData(content: SuiParsedData): RemovePositionEvent;
|
|
734
|
-
static fromSuiObjectData(data: SuiObjectData): RemovePositionEvent;
|
|
735
|
-
static fetch(client: SuiClient, id: string): Promise<RemovePositionEvent>;
|
|
736
|
-
}
|
|
737
|
-
export declare function isTradingOrder(type: string): boolean;
|
|
738
|
-
export interface TradingOrderFields {
|
|
739
|
-
id: ToField<UID>;
|
|
740
|
-
createTsMs: ToField<"u64">;
|
|
741
|
-
orderId: ToField<"u64">;
|
|
742
|
-
linkedPositionId: ToField<Option<"u64">>;
|
|
743
|
-
user: ToField<"address">;
|
|
744
|
-
collateralToken: ToField<TypeName>;
|
|
745
|
-
collateralTokenDecimal: ToField<"u64">;
|
|
746
|
-
symbol: ToField<Symbol>;
|
|
747
|
-
leverageMbp: ToField<"u64">;
|
|
748
|
-
reduceOnly: ToField<"bool">;
|
|
749
|
-
isLong: ToField<"bool">;
|
|
750
|
-
isStopOrder: ToField<"bool">;
|
|
751
|
-
size: ToField<"u64">;
|
|
752
|
-
sizeDecimal: ToField<"u64">;
|
|
753
|
-
triggerPrice: ToField<"u64">;
|
|
754
|
-
oraclePriceWhenPlacing: ToField<"u64">;
|
|
755
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
756
|
-
}
|
|
757
|
-
export type TradingOrderReified = Reified<TradingOrder, TradingOrderFields>;
|
|
758
|
-
export declare class TradingOrder implements StructClass {
|
|
759
|
-
__StructClass: true;
|
|
760
|
-
static readonly $typeName: string;
|
|
761
|
-
static readonly $numTypeParams = 0;
|
|
762
|
-
static readonly $isPhantom: readonly [];
|
|
763
|
-
readonly $typeName: string;
|
|
764
|
-
readonly $fullTypeName: `${typeof PKG_V1}::position::TradingOrder`;
|
|
765
|
-
readonly $typeArgs: [];
|
|
766
|
-
readonly $isPhantom: readonly [];
|
|
767
|
-
readonly id: ToField<UID>;
|
|
768
|
-
readonly createTsMs: ToField<"u64">;
|
|
769
|
-
readonly orderId: ToField<"u64">;
|
|
770
|
-
readonly linkedPositionId: ToField<Option<"u64">>;
|
|
771
|
-
readonly user: ToField<"address">;
|
|
772
|
-
readonly collateralToken: ToField<TypeName>;
|
|
773
|
-
readonly collateralTokenDecimal: ToField<"u64">;
|
|
774
|
-
readonly symbol: ToField<Symbol>;
|
|
775
|
-
readonly leverageMbp: ToField<"u64">;
|
|
776
|
-
readonly reduceOnly: ToField<"bool">;
|
|
777
|
-
readonly isLong: ToField<"bool">;
|
|
778
|
-
readonly isStopOrder: ToField<"bool">;
|
|
779
|
-
readonly size: ToField<"u64">;
|
|
780
|
-
readonly sizeDecimal: ToField<"u64">;
|
|
781
|
-
readonly triggerPrice: ToField<"u64">;
|
|
782
|
-
readonly oraclePriceWhenPlacing: ToField<"u64">;
|
|
783
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
784
|
-
private constructor();
|
|
785
|
-
static reified(): TradingOrderReified;
|
|
786
|
-
static get r(): reified.StructClassReified<TradingOrder, TradingOrderFields>;
|
|
787
|
-
static phantom(): PhantomReified<ToTypeStr<TradingOrder>>;
|
|
788
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::position::TradingOrder" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::position::TradingOrder">;
|
|
789
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
790
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
791
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
792
|
-
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
793
|
-
}, string>;
|
|
794
|
-
}, string>;
|
|
795
|
-
create_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
796
|
-
order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
797
|
-
linked_position_id: import("@mysten/sui/bcs").BcsStruct<{
|
|
798
|
-
vec: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
799
|
-
length: number;
|
|
800
|
-
}, string>;
|
|
801
|
-
}, string>;
|
|
802
|
-
user: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
803
|
-
collateral_token: import("@mysten/sui/bcs").BcsStruct<{
|
|
804
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
805
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
806
|
-
length: number;
|
|
807
|
-
}, string>;
|
|
808
|
-
}, string>;
|
|
809
|
-
}, string>;
|
|
810
|
-
collateral_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
811
|
-
symbol: import("@mysten/sui/bcs").BcsStruct<{
|
|
812
|
-
base_token: import("@mysten/sui/bcs").BcsStruct<{
|
|
813
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
814
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
815
|
-
length: number;
|
|
816
|
-
}, string>;
|
|
817
|
-
}, string>;
|
|
818
|
-
}, string>;
|
|
819
|
-
quote_token: import("@mysten/sui/bcs").BcsStruct<{
|
|
820
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
821
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
822
|
-
length: number;
|
|
823
|
-
}, string>;
|
|
824
|
-
}, string>;
|
|
825
|
-
}, string>;
|
|
826
|
-
}, string>;
|
|
827
|
-
leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
828
|
-
reduce_only: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
829
|
-
is_long: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
830
|
-
is_stop_order: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
831
|
-
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
832
|
-
size_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
833
|
-
trigger_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
834
|
-
oracle_price_when_placing: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
835
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
836
|
-
length: number;
|
|
837
|
-
}, string>;
|
|
838
|
-
}, string>;
|
|
839
|
-
static fromFields(fields: Record<string, any>): TradingOrder;
|
|
840
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): TradingOrder;
|
|
841
|
-
static fromBcs(data: Uint8Array): TradingOrder;
|
|
842
|
-
toJSONField(): {
|
|
843
|
-
id: string;
|
|
844
|
-
createTsMs: string;
|
|
845
|
-
orderId: string;
|
|
846
|
-
linkedPositionId: string | null;
|
|
847
|
-
user: string;
|
|
848
|
-
collateralToken: {
|
|
849
|
-
name: string;
|
|
850
|
-
};
|
|
851
|
-
collateralTokenDecimal: string;
|
|
852
|
-
symbol: {
|
|
853
|
-
baseToken: {
|
|
854
|
-
name: string;
|
|
855
|
-
};
|
|
856
|
-
quoteToken: {
|
|
857
|
-
name: string;
|
|
858
|
-
};
|
|
859
|
-
};
|
|
860
|
-
leverageMbp: string;
|
|
861
|
-
reduceOnly: boolean;
|
|
862
|
-
isLong: boolean;
|
|
863
|
-
isStopOrder: boolean;
|
|
864
|
-
size: string;
|
|
865
|
-
sizeDecimal: string;
|
|
866
|
-
triggerPrice: string;
|
|
867
|
-
oraclePriceWhenPlacing: string;
|
|
868
|
-
u64Padding: string[];
|
|
869
|
-
};
|
|
870
|
-
toJSON(): {
|
|
871
|
-
id: string;
|
|
872
|
-
createTsMs: string;
|
|
873
|
-
orderId: string;
|
|
874
|
-
linkedPositionId: string | null;
|
|
875
|
-
user: string;
|
|
876
|
-
collateralToken: {
|
|
877
|
-
name: string;
|
|
878
|
-
};
|
|
879
|
-
collateralTokenDecimal: string;
|
|
880
|
-
symbol: {
|
|
881
|
-
baseToken: {
|
|
882
|
-
name: string;
|
|
883
|
-
};
|
|
884
|
-
quoteToken: {
|
|
885
|
-
name: string;
|
|
886
|
-
};
|
|
887
|
-
};
|
|
888
|
-
leverageMbp: string;
|
|
889
|
-
reduceOnly: boolean;
|
|
890
|
-
isLong: boolean;
|
|
891
|
-
isStopOrder: boolean;
|
|
892
|
-
size: string;
|
|
893
|
-
sizeDecimal: string;
|
|
894
|
-
triggerPrice: string;
|
|
895
|
-
oraclePriceWhenPlacing: string;
|
|
896
|
-
u64Padding: string[];
|
|
897
|
-
$typeName: string;
|
|
898
|
-
$typeArgs: [];
|
|
899
|
-
};
|
|
900
|
-
static fromJSONField(field: any): TradingOrder;
|
|
901
|
-
static fromJSON(json: Record<string, any>): TradingOrder;
|
|
902
|
-
static fromSuiParsedData(content: SuiParsedData): TradingOrder;
|
|
903
|
-
static fromSuiObjectData(data: SuiObjectData): TradingOrder;
|
|
904
|
-
static fetch(client: SuiClient, id: string): Promise<TradingOrder>;
|
|
905
|
-
}
|