@typus/typus-perp-sdk 1.1.32-codegen-exp3 → 1.1.32-testnet-exp1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +88 -0
- package/dist/src/_dependencies/source/0x1/ascii/structs.js +398 -0
- package/dist/src/_dependencies/source/0x1/index.d.ts +3 -0
- package/dist/src/_dependencies/source/0x1/index.js +6 -0
- package/dist/src/_dependencies/source/0x1/option/structs.d.ts +50 -0
- package/dist/src/_dependencies/source/0x1/option/structs.js +271 -0
- package/dist/src/_dependencies/source/0x1/string/structs.d.ts +48 -0
- package/dist/src/_dependencies/source/0x1/string/structs.js +256 -0
- package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +49 -0
- package/dist/src/_dependencies/source/0x1/type-name/structs.js +223 -0
- package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +54 -0
- package/dist/src/_dependencies/source/0x2/bag/structs.js +229 -0
- package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +84 -0
- package/dist/src/_dependencies/source/0x2/balance/structs.js +386 -0
- package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +406 -0
- package/dist/src/_dependencies/source/0x2/coin/structs.js +1247 -0
- package/dist/src/_dependencies/source/0x2/index.d.ts +3 -0
- package/dist/src/_dependencies/source/0x2/index.js +6 -0
- package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +132 -0
- package/dist/src/_dependencies/source/0x2/linked-table/structs.js +438 -0
- package/dist/src/_dependencies/source/0x2/object/structs.d.ts +86 -0
- package/dist/src/_dependencies/source/0x2/object/structs.js +364 -0
- package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +54 -0
- package/dist/src/_dependencies/source/0x2/object-table/structs.js +248 -0
- package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0x2/sui/structs.js +222 -0
- package/dist/src/_dependencies/source/0x2/table/structs.d.ts +54 -0
- package/dist/src/_dependencies/source/0x2/table/structs.js +248 -0
- package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +59 -0
- package/dist/src/_dependencies/source/0x2/table-vec/structs.js +274 -0
- package/dist/src/_dependencies/source/0x2/token/structs.d.ts +421 -0
- package/dist/src/_dependencies/source/0x2/token/structs.js +1095 -0
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +348 -0
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +1091 -0
- package/dist/src/_dependencies/source/0x2/url/structs.d.ts +49 -0
- package/dist/src/_dependencies/source/0x2/url/structs.js +223 -0
- package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +106 -0
- package/dist/src/_dependencies/source/0x2/vec-map/structs.js +446 -0
- package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +49 -0
- package/dist/src/_dependencies/source/0x2/vec-set/structs.js +270 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +422 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.js +1084 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +130 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.js +456 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +208 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +653 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +362 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.js +899 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.d.ts +8 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.js +11 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.js +102 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.d.ts +202 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.js +632 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +600 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.js +1459 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.d.ts +136 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.js +438 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.d.ts +127 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.js +430 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +957 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.js +2261 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +244 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +733 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +294 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +892 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +73 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.js +263 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +294 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.js +591 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +64 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.js +258 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +756 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +1721 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.js +222 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.d.ts +3 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.js +6 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.js +89 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.d.ts +135 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.js +444 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.d.ts +2106 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.js +4952 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +390 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.js +844 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.d.ts +6 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.js +9 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.js +69 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.d.ts +89 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.js +376 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +386 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.js +881 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +59 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.js +274 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +974 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.js +2387 -0
- package/dist/src/_framework/init-loader.d.ts +2 -0
- package/dist/src/{generated/typus_perp/treasury_caps.js → _framework/init-loader.js} +10 -17
- package/dist/src/_framework/loader.d.ts +17 -0
- package/dist/src/_framework/loader.js +108 -0
- package/dist/src/_framework/reified.d.ts +108 -0
- package/dist/src/_framework/reified.js +237 -0
- package/dist/src/_framework/util.d.ts +35 -0
- package/dist/src/_framework/util.js +396 -0
- package/dist/src/_framework/vector.d.ts +42 -0
- package/dist/src/_framework/vector.js +112 -0
- package/dist/src/api/sentio.js +538 -604
- package/dist/src/fetch.d.ts +36 -577
- package/dist/src/fetch.js +665 -367
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +39 -20
- package/dist/src/pyth.js +1 -0
- package/dist/src/typus_perp/admin/functions.d.ts +59 -0
- package/dist/src/typus_perp/admin/functions.js +122 -0
- package/dist/src/typus_perp/admin/structs.d.ts +467 -0
- package/dist/src/typus_perp/admin/structs.js +1065 -0
- package/dist/src/typus_perp/competition/functions.d.ts +24 -0
- package/dist/src/typus_perp/competition/functions.js +38 -0
- package/dist/src/typus_perp/competition/structs.d.ts +80 -0
- package/dist/src/typus_perp/competition/structs.js +288 -0
- package/dist/src/typus_perp/error/functions.d.ts +73 -0
- package/dist/src/typus_perp/error/functions.js +363 -0
- package/dist/src/typus_perp/escrow/functions.d.ts +17 -0
- package/dist/src/typus_perp/escrow/functions.js +36 -0
- package/dist/src/typus_perp/escrow/structs.d.ts +160 -0
- package/dist/src/typus_perp/escrow/structs.js +324 -0
- package/dist/src/typus_perp/index.d.ts +1 -0
- package/dist/src/typus_perp/index.js +7 -0
- package/dist/src/typus_perp/init.d.ts +2 -0
- package/dist/src/typus_perp/init.js +118 -0
- package/dist/src/typus_perp/lending/functions.d.ts +15 -0
- package/dist/src/typus_perp/lending/functions.js +22 -0
- package/dist/src/typus_perp/lp-pool/functions.d.ts +460 -0
- package/dist/src/typus_perp/lp-pool/functions.js +732 -0
- package/dist/src/typus_perp/lp-pool/structs.d.ts +3705 -0
- package/dist/src/typus_perp/lp-pool/structs.js +6789 -0
- package/dist/src/typus_perp/math/functions.d.ts +29 -0
- package/dist/src/typus_perp/math/functions.js +61 -0
- package/dist/src/typus_perp/position/functions.d.ts +379 -0
- package/dist/src/typus_perp/position/functions.js +713 -0
- package/dist/src/typus_perp/position/structs.d.ts +905 -0
- package/dist/src/typus_perp/position/structs.js +1450 -0
- package/dist/src/typus_perp/symbol/functions.d.ts +9 -0
- package/dist/src/typus_perp/symbol/functions.js +24 -0
- package/dist/src/typus_perp/symbol/structs.d.ts +70 -0
- package/dist/src/typus_perp/symbol/structs.js +235 -0
- package/dist/src/typus_perp/tlp/functions.d.ts +19 -0
- package/dist/src/typus_perp/tlp/functions.js +40 -0
- package/dist/src/typus_perp/tlp/structs.d.ts +89 -0
- package/dist/src/typus_perp/tlp/structs.js +365 -0
- package/dist/src/typus_perp/token-interface/functions.d.ts +11 -0
- package/dist/src/typus_perp/token-interface/functions.js +22 -0
- package/dist/src/typus_perp/trading/functions.d.ts +812 -0
- package/dist/src/typus_perp/trading/functions.js +1218 -0
- package/dist/src/typus_perp/trading/structs.d.ts +3060 -0
- package/dist/src/typus_perp/trading/structs.js +5813 -0
- package/dist/src/typus_perp/treasury-caps/functions.d.ts +9 -0
- package/dist/src/typus_perp/treasury-caps/functions.js +36 -0
- package/dist/src/typus_perp/treasury-caps/structs.d.ts +49 -0
- package/dist/src/typus_perp/treasury-caps/structs.js +223 -0
- package/dist/src/typus_perp/user-account/functions.d.ts +36 -0
- package/dist/src/typus_perp/user-account/functions.js +70 -0
- package/dist/src/typus_perp/user-account/structs.d.ts +148 -0
- package/dist/src/typus_perp/user-account/structs.js +448 -0
- package/dist/src/typus_stake_pool/admin/functions.d.ts +49 -0
- package/dist/src/typus_stake_pool/admin/functions.js +105 -0
- package/dist/src/typus_stake_pool/admin/structs.d.ts +365 -0
- package/dist/src/typus_stake_pool/admin/structs.js +789 -0
- package/dist/src/typus_stake_pool/index.d.ts +1 -0
- package/dist/src/typus_stake_pool/index.js +7 -0
- package/dist/src/typus_stake_pool/init.d.ts +2 -0
- package/dist/src/typus_stake_pool/init.js +69 -0
- package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +229 -0
- package/dist/src/typus_stake_pool/stake-pool/functions.js +380 -0
- package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +2199 -0
- package/dist/src/typus_stake_pool/stake-pool/structs.js +4653 -0
- package/dist/src/user/history.js +685 -614
- package/dist/src/user/order.d.ts +11 -16
- package/dist/src/user/order.js +302 -171
- package/dist/src/user/orderWithBidReceipt.d.ts +6 -8
- package/dist/src/user/orderWithBidReceipt.js +225 -127
- package/dist/src/user/tlp.d.ts +24 -25
- package/dist/src/user/tlp.js +468 -317
- package/package.json +3 -11
- package/dist/src/client.d.ts +0 -27
- package/dist/src/client.js +0 -108
- package/dist/src/generated/typus_perp/admin.d.ts +0 -117
- package/dist/src/generated/typus_perp/admin.js +0 -110
- package/dist/src/generated/typus_perp/competition.d.ts +0 -22
- package/dist/src/generated/typus_perp/competition.js +0 -58
- package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +0 -17
- package/dist/src/generated/typus_perp/deps/std/type_name.js +0 -25
- package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +0 -12
- package/dist/src/generated/typus_perp/deps/sui/balance.js +0 -20
- package/dist/src/generated/typus_perp/deps/sui/object.d.ts +0 -8
- package/dist/src/generated/typus_perp/deps/sui/object.js +0 -16
- package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +0 -19
- package/dist/src/generated/typus_perp/deps/sui/object_table.js +0 -59
- package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +0 -18
- package/dist/src/generated/typus_perp/deps/sui/vec_set.js +0 -25
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +0 -30
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +0 -67
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +0 -32
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +0 -71
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +0 -23
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +0 -61
- package/dist/src/generated/typus_perp/escrow.d.ts +0 -59
- package/dist/src/generated/typus_perp/escrow.js +0 -76
- package/dist/src/generated/typus_perp/lending.d.ts +0 -47
- package/dist/src/generated/typus_perp/lending.js +0 -50
- package/dist/src/generated/typus_perp/lp_pool.d.ts +0 -2327
- package/dist/src/generated/typus_perp/lp_pool.js +0 -1956
- package/dist/src/generated/typus_perp/math.d.ts +0 -95
- package/dist/src/generated/typus_perp/math.js +0 -97
- package/dist/src/generated/typus_perp/position.d.ts +0 -234
- package/dist/src/generated/typus_perp/position.js +0 -204
- package/dist/src/generated/typus_perp/symbol.d.ts +0 -18
- package/dist/src/generated/typus_perp/symbol.js +0 -55
- package/dist/src/generated/typus_perp/tlp.d.ts +0 -13
- package/dist/src/generated/typus_perp/tlp.js +0 -56
- package/dist/src/generated/typus_perp/trading.d.ts +0 -2486
- package/dist/src/generated/typus_perp/trading.js +0 -2476
- package/dist/src/generated/typus_perp/treasury_caps.d.ts +0 -13
- package/dist/src/generated/typus_perp/user_account.d.ts +0 -40
- package/dist/src/generated/typus_perp/user_account.js +0 -72
- package/dist/src/generated/typus_stake_pool/admin.d.ts +0 -234
- package/dist/src/generated/typus_stake_pool/admin.js +0 -272
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +0 -17
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +0 -25
- package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +0 -8
- package/dist/src/generated/typus_stake_pool/deps/sui/object.js +0 -16
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +0 -30
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +0 -37
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +0 -18
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +0 -25
- package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +0 -986
- package/dist/src/generated/typus_stake_pool/stake_pool.js +0 -874
- package/dist/src/generated/utils/index.d.ts +0 -11
- package/dist/src/generated/utils/index.js +0 -135
- package/dist/src/grpc/graphql.d.ts +0 -26
- package/dist/src/grpc/graphql.js +0 -126
- package/dist/src/grpc/grpc.d.ts +0 -1
- package/dist/src/grpc/grpc.js +0 -38
- package/dist/src/grpc/ledgerService.js +0 -64
- package/dist/src/grpc/liveDataService.d.ts +0 -0
- package/dist/src/grpc/liveDataService.js +0 -49
- /package/dist/src/{grpc/ledgerService.d.ts → pyth.d.ts} +0 -0
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.activeTradingSymbol = activeTradingSymbol;
|
|
4
|
+
exports.addSizeNotAllowed = addSizeNotAllowed;
|
|
5
|
+
exports.auctionNotYetEnded = auctionNotYetEnded;
|
|
6
|
+
exports.authorityAlreadyExisted = authorityAlreadyExisted;
|
|
7
|
+
exports.authorityDoestNotExist = authorityDoestNotExist;
|
|
8
|
+
exports.authorityEmpty = authorityEmpty;
|
|
9
|
+
exports.balanceNotEnoughForPayingFee = balanceNotEnoughForPayingFee;
|
|
10
|
+
exports.baseTokenMismatched = baseTokenMismatched;
|
|
11
|
+
exports.bidReceiptHasBeenExpired = bidReceiptHasBeenExpired;
|
|
12
|
+
exports.bidReceiptNotExpired = bidReceiptNotExpired;
|
|
13
|
+
exports.bidReceiptNotItm = bidReceiptNotItm;
|
|
14
|
+
exports.bidTokenMismatched = bidTokenMismatched;
|
|
15
|
+
exports.collateralTokenTypeMismatched = collateralTokenTypeMismatched;
|
|
16
|
+
exports.deactivatingSharesAlreadyExisted = deactivatingSharesAlreadyExisted;
|
|
17
|
+
exports.depositAmountInsufficient = depositAmountInsufficient;
|
|
18
|
+
exports.depositTokenMismatched = depositTokenMismatched;
|
|
19
|
+
exports.exceedMaxLeverage = exceedMaxLeverage;
|
|
20
|
+
exports.exceedMaxOpenInterest = exceedMaxOpenInterest;
|
|
21
|
+
exports.frictionTooLarge = frictionTooLarge;
|
|
22
|
+
exports.insufficientAmountForMintFee = insufficientAmountForMintFee;
|
|
23
|
+
exports.invalidBidReceiptsInput = invalidBidReceiptsInput;
|
|
24
|
+
exports.invalidBoostBpArrayLength = invalidBoostBpArrayLength;
|
|
25
|
+
exports.invalidOrderSide = invalidOrderSide;
|
|
26
|
+
exports.invalidOrderSize = invalidOrderSize;
|
|
27
|
+
exports.invalidTokenType = invalidTokenType;
|
|
28
|
+
exports.invalidTradingFeeConfig = invalidTradingFeeConfig;
|
|
29
|
+
exports.invalidVersion = invalidVersion;
|
|
30
|
+
exports.linkedOrderIdNotExisted = linkedOrderIdNotExisted;
|
|
31
|
+
exports.liquidityNotEnough = liquidityNotEnough;
|
|
32
|
+
exports.liquidityTokenNotExisted = liquidityTokenNotExisted;
|
|
33
|
+
exports.lpPoolReserveNotEnough = lpPoolReserveNotEnough;
|
|
34
|
+
exports.lpTokenTypeMismatched = lpTokenTypeMismatched;
|
|
35
|
+
exports.marketsInactive = marketsInactive;
|
|
36
|
+
exports.notOptionCollateralOrder = notOptionCollateralOrder;
|
|
37
|
+
exports.notOptionCollateralPosition = notOptionCollateralPosition;
|
|
38
|
+
exports.notReduceOnlyExecution = notReduceOnlyExecution;
|
|
39
|
+
exports.notTokenCollateralPosition = notTokenCollateralPosition;
|
|
40
|
+
exports.optionCollateralNotEnough = optionCollateralNotEnough;
|
|
41
|
+
exports.optionCollateralOrderNotFilled = optionCollateralOrderNotFilled;
|
|
42
|
+
exports.oracleMismatched = oracleMismatched;
|
|
43
|
+
exports.orderNotFilledImmediately = orderNotFilledImmediately;
|
|
44
|
+
exports.orderNotFound = orderNotFound;
|
|
45
|
+
exports.orderOrPositionSizeNotZero = orderOrPositionSizeNotZero;
|
|
46
|
+
exports.perpPositionLosses = perpPositionLosses;
|
|
47
|
+
exports.poolAlreadyActive = poolAlreadyActive;
|
|
48
|
+
exports.poolInactive = poolInactive;
|
|
49
|
+
exports.portfolioIndexMismatched = portfolioIndexMismatched;
|
|
50
|
+
exports.positionIdNeededWithReduceOnlyOrder = positionIdNeededWithReduceOnlyOrder;
|
|
51
|
+
exports.processShouldRemoveOrder = processShouldRemoveOrder;
|
|
52
|
+
exports.processShouldRemovePosition = processShouldRemovePosition;
|
|
53
|
+
exports.processShouldRepayLiquidity = processShouldRepayLiquidity;
|
|
54
|
+
exports.processShouldSwap = processShouldSwap;
|
|
55
|
+
exports.reachMaxCapacity = reachMaxCapacity;
|
|
56
|
+
exports.reachMaxSingleOrderReserveUsage = reachMaxSingleOrderReserveUsage;
|
|
57
|
+
exports.reachSlippageThreshold = reachSlippageThreshold;
|
|
58
|
+
exports.remainingCollateralNotEnough = remainingCollateralNotEnough;
|
|
59
|
+
exports.tokenCollateralNotEnough = tokenCollateralNotEnough;
|
|
60
|
+
exports.tokenPoolAlreadyActive = tokenPoolAlreadyActive;
|
|
61
|
+
exports.tokenPoolInactive = tokenPoolInactive;
|
|
62
|
+
exports.tooManyLinkedOrders = tooManyLinkedOrders;
|
|
63
|
+
exports.tradingSymbolExisted = tradingSymbolExisted;
|
|
64
|
+
exports.tradingSymbolInactive = tradingSymbolInactive;
|
|
65
|
+
exports.tradingSymbolNotExisted = tradingSymbolNotExisted;
|
|
66
|
+
exports.tvlNotYetUpdated = tvlNotYetUpdated;
|
|
67
|
+
exports.unauthorized = unauthorized;
|
|
68
|
+
exports.unsupportedOrderTypeTag = unsupportedOrderTypeTag;
|
|
69
|
+
exports.unsupportedProcessStatusCode = unsupportedProcessStatusCode;
|
|
70
|
+
exports.userDeactivatingSharesNotExisted = userDeactivatingSharesNotExisted;
|
|
71
|
+
exports.userMismatched = userMismatched;
|
|
72
|
+
exports.wrongCollateralType = wrongCollateralType;
|
|
73
|
+
exports.zeroPrice = zeroPrice;
|
|
74
|
+
exports.zeroTotalSupply = zeroTotalSupply;
|
|
75
|
+
var __1 = require("..");
|
|
76
|
+
function activeTradingSymbol(tx, published_at) {
|
|
77
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
78
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::active_trading_symbol"), arguments: [] });
|
|
79
|
+
}
|
|
80
|
+
function addSizeNotAllowed(tx, published_at) {
|
|
81
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
82
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::add_size_not_allowed"), arguments: [] });
|
|
83
|
+
}
|
|
84
|
+
function auctionNotYetEnded(tx, published_at) {
|
|
85
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
86
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::auction_not_yet_ended"), arguments: [] });
|
|
87
|
+
}
|
|
88
|
+
function authorityAlreadyExisted(tx, published_at) {
|
|
89
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
90
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::authority_already_existed"), arguments: [] });
|
|
91
|
+
}
|
|
92
|
+
function authorityDoestNotExist(tx, published_at) {
|
|
93
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
94
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::authority_doest_not_exist"), arguments: [] });
|
|
95
|
+
}
|
|
96
|
+
function authorityEmpty(tx, published_at) {
|
|
97
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
98
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::authority_empty"), arguments: [] });
|
|
99
|
+
}
|
|
100
|
+
function balanceNotEnoughForPayingFee(tx, published_at) {
|
|
101
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
102
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::balance_not_enough_for_paying_fee"), arguments: [] });
|
|
103
|
+
}
|
|
104
|
+
function baseTokenMismatched(tx, published_at) {
|
|
105
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
106
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::base_token_mismatched"), arguments: [] });
|
|
107
|
+
}
|
|
108
|
+
function bidReceiptHasBeenExpired(tx, published_at) {
|
|
109
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
110
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::bid_receipt_has_been_expired"), arguments: [] });
|
|
111
|
+
}
|
|
112
|
+
function bidReceiptNotExpired(tx, published_at) {
|
|
113
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
114
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::bid_receipt_not_expired"), arguments: [] });
|
|
115
|
+
}
|
|
116
|
+
function bidReceiptNotItm(tx, published_at) {
|
|
117
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
118
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::bid_receipt_not_itm"), arguments: [] });
|
|
119
|
+
}
|
|
120
|
+
function bidTokenMismatched(tx, published_at) {
|
|
121
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
122
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::bid_token_mismatched"), arguments: [] });
|
|
123
|
+
}
|
|
124
|
+
function collateralTokenTypeMismatched(tx, published_at) {
|
|
125
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
126
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::collateral_token_type_mismatched"), arguments: [] });
|
|
127
|
+
}
|
|
128
|
+
function deactivatingSharesAlreadyExisted(tx, published_at) {
|
|
129
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
130
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::deactivating_shares_already_existed"), arguments: [] });
|
|
131
|
+
}
|
|
132
|
+
function depositAmountInsufficient(tx, published_at) {
|
|
133
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
134
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::deposit_amount_insufficient"), arguments: [] });
|
|
135
|
+
}
|
|
136
|
+
function depositTokenMismatched(tx, published_at) {
|
|
137
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
138
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::deposit_token_mismatched"), arguments: [] });
|
|
139
|
+
}
|
|
140
|
+
function exceedMaxLeverage(tx, published_at) {
|
|
141
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
142
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::exceed_max_leverage"), arguments: [] });
|
|
143
|
+
}
|
|
144
|
+
function exceedMaxOpenInterest(tx, published_at) {
|
|
145
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
146
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::exceed_max_open_interest"), arguments: [] });
|
|
147
|
+
}
|
|
148
|
+
function frictionTooLarge(tx, published_at) {
|
|
149
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
150
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::friction_too_large"), arguments: [] });
|
|
151
|
+
}
|
|
152
|
+
function insufficientAmountForMintFee(tx, published_at) {
|
|
153
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
154
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::insufficient_amount_for_mint_fee"), arguments: [] });
|
|
155
|
+
}
|
|
156
|
+
function invalidBidReceiptsInput(tx, published_at) {
|
|
157
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
158
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_bid_receipts_input"), arguments: [] });
|
|
159
|
+
}
|
|
160
|
+
function invalidBoostBpArrayLength(tx, published_at) {
|
|
161
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
162
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_boost_bp_array_length"), arguments: [] });
|
|
163
|
+
}
|
|
164
|
+
function invalidOrderSide(tx, published_at) {
|
|
165
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
166
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_order_side"), arguments: [] });
|
|
167
|
+
}
|
|
168
|
+
function invalidOrderSize(tx, published_at) {
|
|
169
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
170
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_order_size"), arguments: [] });
|
|
171
|
+
}
|
|
172
|
+
function invalidTokenType(tx, published_at) {
|
|
173
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
174
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_token_type"), arguments: [] });
|
|
175
|
+
}
|
|
176
|
+
function invalidTradingFeeConfig(tx, published_at) {
|
|
177
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
178
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_trading_fee_config"), arguments: [] });
|
|
179
|
+
}
|
|
180
|
+
function invalidVersion(tx, published_at) {
|
|
181
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
182
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_version"), arguments: [] });
|
|
183
|
+
}
|
|
184
|
+
function linkedOrderIdNotExisted(tx, published_at) {
|
|
185
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
186
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::linked_order_id_not_existed"), arguments: [] });
|
|
187
|
+
}
|
|
188
|
+
function liquidityNotEnough(tx, published_at) {
|
|
189
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
190
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::liquidity_not_enough"), arguments: [] });
|
|
191
|
+
}
|
|
192
|
+
function liquidityTokenNotExisted(tx, published_at) {
|
|
193
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
194
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::liquidity_token_not_existed"), arguments: [] });
|
|
195
|
+
}
|
|
196
|
+
function lpPoolReserveNotEnough(tx, published_at) {
|
|
197
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
198
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::lp_pool_reserve_not_enough"), arguments: [] });
|
|
199
|
+
}
|
|
200
|
+
function lpTokenTypeMismatched(tx, published_at) {
|
|
201
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
202
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::lp_token_type_mismatched"), arguments: [] });
|
|
203
|
+
}
|
|
204
|
+
function marketsInactive(tx, published_at) {
|
|
205
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
206
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::markets_inactive"), arguments: [] });
|
|
207
|
+
}
|
|
208
|
+
function notOptionCollateralOrder(tx, published_at) {
|
|
209
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
210
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::not_option_collateral_order"), arguments: [] });
|
|
211
|
+
}
|
|
212
|
+
function notOptionCollateralPosition(tx, published_at) {
|
|
213
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
214
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::not_option_collateral_position"), arguments: [] });
|
|
215
|
+
}
|
|
216
|
+
function notReduceOnlyExecution(tx, published_at) {
|
|
217
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
218
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::not_reduce_only_execution"), arguments: [] });
|
|
219
|
+
}
|
|
220
|
+
function notTokenCollateralPosition(tx, published_at) {
|
|
221
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
222
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::not_token_collateral_position"), arguments: [] });
|
|
223
|
+
}
|
|
224
|
+
function optionCollateralNotEnough(tx, published_at) {
|
|
225
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
226
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::option_collateral_not_enough"), arguments: [] });
|
|
227
|
+
}
|
|
228
|
+
function optionCollateralOrderNotFilled(tx, published_at) {
|
|
229
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
230
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::option_collateral_order_not_filled"), arguments: [] });
|
|
231
|
+
}
|
|
232
|
+
function oracleMismatched(tx, published_at) {
|
|
233
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
234
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::oracle_mismatched"), arguments: [] });
|
|
235
|
+
}
|
|
236
|
+
function orderNotFilledImmediately(tx, published_at) {
|
|
237
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
238
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::order_not_filled_immediately"), arguments: [] });
|
|
239
|
+
}
|
|
240
|
+
function orderNotFound(tx, published_at) {
|
|
241
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
242
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::order_not_found"), arguments: [] });
|
|
243
|
+
}
|
|
244
|
+
function orderOrPositionSizeNotZero(tx, published_at) {
|
|
245
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
246
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::order_or_position_size_not_zero"), arguments: [] });
|
|
247
|
+
}
|
|
248
|
+
function perpPositionLosses(tx, published_at) {
|
|
249
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
250
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::perp_position_losses"), arguments: [] });
|
|
251
|
+
}
|
|
252
|
+
function poolAlreadyActive(tx, published_at) {
|
|
253
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
254
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::pool_already_active"), arguments: [] });
|
|
255
|
+
}
|
|
256
|
+
function poolInactive(tx, published_at) {
|
|
257
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
258
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::pool_inactive"), arguments: [] });
|
|
259
|
+
}
|
|
260
|
+
function portfolioIndexMismatched(tx, published_at) {
|
|
261
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
262
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::portfolio_index_mismatched"), arguments: [] });
|
|
263
|
+
}
|
|
264
|
+
function positionIdNeededWithReduceOnlyOrder(tx, published_at) {
|
|
265
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
266
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::position_id_needed_with_reduce_only_order"), arguments: [] });
|
|
267
|
+
}
|
|
268
|
+
function processShouldRemoveOrder(tx, published_at) {
|
|
269
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
270
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::process_should_remove_order"), arguments: [] });
|
|
271
|
+
}
|
|
272
|
+
function processShouldRemovePosition(tx, published_at) {
|
|
273
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
274
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::process_should_remove_position"), arguments: [] });
|
|
275
|
+
}
|
|
276
|
+
function processShouldRepayLiquidity(tx, published_at) {
|
|
277
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
278
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::process_should_repay_liquidity"), arguments: [] });
|
|
279
|
+
}
|
|
280
|
+
function processShouldSwap(tx, published_at) {
|
|
281
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
282
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::process_should_swap"), arguments: [] });
|
|
283
|
+
}
|
|
284
|
+
function reachMaxCapacity(tx, published_at) {
|
|
285
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
286
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::reach_max_capacity"), arguments: [] });
|
|
287
|
+
}
|
|
288
|
+
function reachMaxSingleOrderReserveUsage(tx, published_at) {
|
|
289
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
290
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::reach_max_single_order_reserve_usage"), arguments: [] });
|
|
291
|
+
}
|
|
292
|
+
function reachSlippageThreshold(tx, published_at) {
|
|
293
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
294
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::reach_slippage_threshold"), arguments: [] });
|
|
295
|
+
}
|
|
296
|
+
function remainingCollateralNotEnough(tx, published_at) {
|
|
297
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
298
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::remaining_collateral_not_enough"), arguments: [] });
|
|
299
|
+
}
|
|
300
|
+
function tokenCollateralNotEnough(tx, published_at) {
|
|
301
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
302
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::token_collateral_not_enough"), arguments: [] });
|
|
303
|
+
}
|
|
304
|
+
function tokenPoolAlreadyActive(tx, published_at) {
|
|
305
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
306
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::token_pool_already_active"), arguments: [] });
|
|
307
|
+
}
|
|
308
|
+
function tokenPoolInactive(tx, published_at) {
|
|
309
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
310
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::token_pool_inactive"), arguments: [] });
|
|
311
|
+
}
|
|
312
|
+
function tooManyLinkedOrders(tx, published_at) {
|
|
313
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
314
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::too_many_linked_orders"), arguments: [] });
|
|
315
|
+
}
|
|
316
|
+
function tradingSymbolExisted(tx, published_at) {
|
|
317
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
318
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::trading_symbol_existed"), arguments: [] });
|
|
319
|
+
}
|
|
320
|
+
function tradingSymbolInactive(tx, published_at) {
|
|
321
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
322
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::trading_symbol_inactive"), arguments: [] });
|
|
323
|
+
}
|
|
324
|
+
function tradingSymbolNotExisted(tx, published_at) {
|
|
325
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
326
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::trading_symbol_not_existed"), arguments: [] });
|
|
327
|
+
}
|
|
328
|
+
function tvlNotYetUpdated(tx, published_at) {
|
|
329
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
330
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::tvl_not_yet_updated"), arguments: [] });
|
|
331
|
+
}
|
|
332
|
+
function unauthorized(tx, published_at) {
|
|
333
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
334
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::unauthorized"), arguments: [] });
|
|
335
|
+
}
|
|
336
|
+
function unsupportedOrderTypeTag(tx, published_at) {
|
|
337
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
338
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::unsupported_order_type_tag"), arguments: [] });
|
|
339
|
+
}
|
|
340
|
+
function unsupportedProcessStatusCode(tx, published_at) {
|
|
341
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
342
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::unsupported_process_status_code"), arguments: [] });
|
|
343
|
+
}
|
|
344
|
+
function userDeactivatingSharesNotExisted(tx, published_at) {
|
|
345
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
346
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::user_deactivating_shares_not_existed"), arguments: [] });
|
|
347
|
+
}
|
|
348
|
+
function userMismatched(tx, published_at) {
|
|
349
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
350
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::user_mismatched"), arguments: [] });
|
|
351
|
+
}
|
|
352
|
+
function wrongCollateralType(tx, published_at) {
|
|
353
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
354
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::wrong_collateral_type"), arguments: [] });
|
|
355
|
+
}
|
|
356
|
+
function zeroPrice(tx, published_at) {
|
|
357
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
358
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::zero_price"), arguments: [] });
|
|
359
|
+
}
|
|
360
|
+
function zeroTotalSupply(tx, published_at) {
|
|
361
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
362
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::zero_total_supply"), arguments: [] });
|
|
363
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Transaction, TransactionArgument, TransactionObjectInput } from "@mysten/sui/transactions";
|
|
2
|
+
export interface CreateUnsettledBidReceiptArgs {
|
|
3
|
+
receipt: Array<TransactionObjectInput> | TransactionArgument;
|
|
4
|
+
positionId: bigint | TransactionArgument;
|
|
5
|
+
user: string | TransactionArgument;
|
|
6
|
+
tokenTypes: Array<TransactionObjectInput> | TransactionArgument;
|
|
7
|
+
unrealizedPnlSign: boolean | TransactionArgument;
|
|
8
|
+
unrealizedPnl: bigint | TransactionArgument;
|
|
9
|
+
unrealizedTradingFee: bigint | TransactionArgument;
|
|
10
|
+
unrealizedBorrowFee: bigint | TransactionArgument;
|
|
11
|
+
unrealizedFundingFeeSign: boolean | TransactionArgument;
|
|
12
|
+
unrealizedFundingFee: bigint | TransactionArgument;
|
|
13
|
+
unrealizedLiquidatorFee: bigint | TransactionArgument;
|
|
14
|
+
}
|
|
15
|
+
export declare function createUnsettledBidReceipt(tx: Transaction, args: CreateUnsettledBidReceiptArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
16
|
+
export declare function destructUnsettledBidReceipt(tx: Transaction, unsettledBidReceipt: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
17
|
+
export declare function getBidReceipts(tx: Transaction, unsettledBidReceipt: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createUnsettledBidReceipt = createUnsettledBidReceipt;
|
|
4
|
+
exports.destructUnsettledBidReceipt = destructUnsettledBidReceipt;
|
|
5
|
+
exports.getBidReceipts = getBidReceipts;
|
|
6
|
+
var __1 = require("..");
|
|
7
|
+
var structs_1 = require("../../_dependencies/source/0x1/type-name/structs");
|
|
8
|
+
var structs_2 = require("../../_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs");
|
|
9
|
+
var util_1 = require("../../_framework/util");
|
|
10
|
+
function createUnsettledBidReceipt(tx, args, published_at) {
|
|
11
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
12
|
+
return tx.moveCall({
|
|
13
|
+
target: "".concat(published_at, "::escrow::create_unsettled_bid_receipt"),
|
|
14
|
+
arguments: [
|
|
15
|
+
(0, util_1.vector)(tx, "".concat(structs_2.TypusBidReceipt.$typeName), args.receipt),
|
|
16
|
+
(0, util_1.pure)(tx, args.positionId, "u64"),
|
|
17
|
+
(0, util_1.pure)(tx, args.user, "address"),
|
|
18
|
+
(0, util_1.vector)(tx, "".concat(structs_1.TypeName.$typeName), args.tokenTypes),
|
|
19
|
+
(0, util_1.pure)(tx, args.unrealizedPnlSign, "bool"),
|
|
20
|
+
(0, util_1.pure)(tx, args.unrealizedPnl, "u64"),
|
|
21
|
+
(0, util_1.pure)(tx, args.unrealizedTradingFee, "u64"),
|
|
22
|
+
(0, util_1.pure)(tx, args.unrealizedBorrowFee, "u64"),
|
|
23
|
+
(0, util_1.pure)(tx, args.unrealizedFundingFeeSign, "bool"),
|
|
24
|
+
(0, util_1.pure)(tx, args.unrealizedFundingFee, "u64"),
|
|
25
|
+
(0, util_1.pure)(tx, args.unrealizedLiquidatorFee, "u64"),
|
|
26
|
+
],
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function destructUnsettledBidReceipt(tx, unsettledBidReceipt, published_at) {
|
|
30
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
31
|
+
return tx.moveCall({ target: "".concat(published_at, "::escrow::destruct_unsettled_bid_receipt"), arguments: [(0, util_1.obj)(tx, unsettledBidReceipt)] });
|
|
32
|
+
}
|
|
33
|
+
function getBidReceipts(tx, unsettledBidReceipt, published_at) {
|
|
34
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
35
|
+
return tx.moveCall({ target: "".concat(published_at, "::escrow::get_bid_receipts"), arguments: [(0, util_1.obj)(tx, unsettledBidReceipt)] });
|
|
36
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import * as reified from "../../_framework/reified";
|
|
2
|
+
import { TypeName } from "../../_dependencies/source/0x1/type-name/structs";
|
|
3
|
+
import { TypusBidReceipt } from "../../_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs";
|
|
4
|
+
import { PhantomReified, Reified, StructClass, ToField, ToTypeStr } from "../../_framework/reified";
|
|
5
|
+
import { FieldsWithTypes } from "../../_framework/util";
|
|
6
|
+
import { Vector } from "../../_framework/vector";
|
|
7
|
+
import { PKG_V1 } from "../index";
|
|
8
|
+
import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
|
|
9
|
+
export declare function isUnsettledBidReceipt(type: string): boolean;
|
|
10
|
+
export interface UnsettledBidReceiptFields {
|
|
11
|
+
receipt: ToField<Vector<TypusBidReceipt>>;
|
|
12
|
+
positionId: ToField<"u64">;
|
|
13
|
+
user: ToField<"address">;
|
|
14
|
+
tokenTypes: ToField<Vector<TypeName>>;
|
|
15
|
+
unrealizedPnlSign: ToField<"bool">;
|
|
16
|
+
unrealizedPnl: ToField<"u64">;
|
|
17
|
+
unrealizedTradingFee: ToField<"u64">;
|
|
18
|
+
unrealizedBorrowFee: ToField<"u64">;
|
|
19
|
+
unrealizedFundingFeeSign: ToField<"bool">;
|
|
20
|
+
unrealizedFundingFee: ToField<"u64">;
|
|
21
|
+
unrealizedLiquidatorFee: ToField<"u64">;
|
|
22
|
+
}
|
|
23
|
+
export type UnsettledBidReceiptReified = Reified<UnsettledBidReceipt, UnsettledBidReceiptFields>;
|
|
24
|
+
export declare class UnsettledBidReceipt implements StructClass {
|
|
25
|
+
__StructClass: true;
|
|
26
|
+
static readonly $typeName: string;
|
|
27
|
+
static readonly $numTypeParams = 0;
|
|
28
|
+
static readonly $isPhantom: readonly [];
|
|
29
|
+
readonly $typeName: string;
|
|
30
|
+
readonly $fullTypeName: `${typeof PKG_V1}::escrow::UnsettledBidReceipt`;
|
|
31
|
+
readonly $typeArgs: [];
|
|
32
|
+
readonly $isPhantom: readonly [];
|
|
33
|
+
readonly receipt: ToField<Vector<TypusBidReceipt>>;
|
|
34
|
+
readonly positionId: ToField<"u64">;
|
|
35
|
+
readonly user: ToField<"address">;
|
|
36
|
+
readonly tokenTypes: ToField<Vector<TypeName>>;
|
|
37
|
+
readonly unrealizedPnlSign: ToField<"bool">;
|
|
38
|
+
readonly unrealizedPnl: ToField<"u64">;
|
|
39
|
+
readonly unrealizedTradingFee: ToField<"u64">;
|
|
40
|
+
readonly unrealizedBorrowFee: ToField<"u64">;
|
|
41
|
+
readonly unrealizedFundingFeeSign: ToField<"bool">;
|
|
42
|
+
readonly unrealizedFundingFee: ToField<"u64">;
|
|
43
|
+
readonly unrealizedLiquidatorFee: ToField<"u64">;
|
|
44
|
+
private constructor();
|
|
45
|
+
static reified(): UnsettledBidReceiptReified;
|
|
46
|
+
static get r(): reified.StructClassReified<UnsettledBidReceipt, UnsettledBidReceiptFields>;
|
|
47
|
+
static phantom(): PhantomReified<ToTypeStr<UnsettledBidReceipt>>;
|
|
48
|
+
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::escrow::UnsettledBidReceipt" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::escrow::UnsettledBidReceipt">;
|
|
49
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
50
|
+
receipt: import("@mysten/sui/bcs").BcsType<{
|
|
51
|
+
id: {
|
|
52
|
+
id: {
|
|
53
|
+
bytes: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
vid: {
|
|
57
|
+
bytes: string;
|
|
58
|
+
};
|
|
59
|
+
index: string;
|
|
60
|
+
metadata: {
|
|
61
|
+
bytes: number[];
|
|
62
|
+
};
|
|
63
|
+
u64_padding: string[];
|
|
64
|
+
}[], Iterable<{
|
|
65
|
+
id: {
|
|
66
|
+
id: {
|
|
67
|
+
bytes: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
vid: {
|
|
71
|
+
bytes: string;
|
|
72
|
+
};
|
|
73
|
+
index: string | number | bigint;
|
|
74
|
+
metadata: {
|
|
75
|
+
bytes: Iterable<number> & {
|
|
76
|
+
length: number;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
80
|
+
length: number;
|
|
81
|
+
};
|
|
82
|
+
}> & {
|
|
83
|
+
length: number;
|
|
84
|
+
}, string>;
|
|
85
|
+
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
86
|
+
user: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
87
|
+
token_types: import("@mysten/sui/bcs").BcsType<{
|
|
88
|
+
name: {
|
|
89
|
+
bytes: number[];
|
|
90
|
+
};
|
|
91
|
+
}[], Iterable<{
|
|
92
|
+
name: {
|
|
93
|
+
bytes: Iterable<number> & {
|
|
94
|
+
length: number;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}> & {
|
|
98
|
+
length: number;
|
|
99
|
+
}, string>;
|
|
100
|
+
unrealized_pnl_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
101
|
+
unrealized_pnl: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
102
|
+
unrealized_trading_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
103
|
+
unrealized_borrow_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
104
|
+
unrealized_funding_fee_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
105
|
+
unrealized_funding_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
106
|
+
unrealized_liquidator_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
107
|
+
}, string>;
|
|
108
|
+
static fromFields(fields: Record<string, any>): UnsettledBidReceipt;
|
|
109
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): UnsettledBidReceipt;
|
|
110
|
+
static fromBcs(data: Uint8Array): UnsettledBidReceipt;
|
|
111
|
+
toJSONField(): {
|
|
112
|
+
receipt: {
|
|
113
|
+
id: string;
|
|
114
|
+
vid: string;
|
|
115
|
+
index: string;
|
|
116
|
+
metadata: string;
|
|
117
|
+
u64Padding: string[];
|
|
118
|
+
}[];
|
|
119
|
+
positionId: string;
|
|
120
|
+
user: string;
|
|
121
|
+
tokenTypes: {
|
|
122
|
+
name: string;
|
|
123
|
+
}[];
|
|
124
|
+
unrealizedPnlSign: boolean;
|
|
125
|
+
unrealizedPnl: string;
|
|
126
|
+
unrealizedTradingFee: string;
|
|
127
|
+
unrealizedBorrowFee: string;
|
|
128
|
+
unrealizedFundingFeeSign: boolean;
|
|
129
|
+
unrealizedFundingFee: string;
|
|
130
|
+
unrealizedLiquidatorFee: string;
|
|
131
|
+
};
|
|
132
|
+
toJSON(): {
|
|
133
|
+
receipt: {
|
|
134
|
+
id: string;
|
|
135
|
+
vid: string;
|
|
136
|
+
index: string;
|
|
137
|
+
metadata: string;
|
|
138
|
+
u64Padding: string[];
|
|
139
|
+
}[];
|
|
140
|
+
positionId: string;
|
|
141
|
+
user: string;
|
|
142
|
+
tokenTypes: {
|
|
143
|
+
name: string;
|
|
144
|
+
}[];
|
|
145
|
+
unrealizedPnlSign: boolean;
|
|
146
|
+
unrealizedPnl: string;
|
|
147
|
+
unrealizedTradingFee: string;
|
|
148
|
+
unrealizedBorrowFee: string;
|
|
149
|
+
unrealizedFundingFeeSign: boolean;
|
|
150
|
+
unrealizedFundingFee: string;
|
|
151
|
+
unrealizedLiquidatorFee: string;
|
|
152
|
+
$typeName: string;
|
|
153
|
+
$typeArgs: [];
|
|
154
|
+
};
|
|
155
|
+
static fromJSONField(field: any): UnsettledBidReceipt;
|
|
156
|
+
static fromJSON(json: Record<string, any>): UnsettledBidReceipt;
|
|
157
|
+
static fromSuiParsedData(content: SuiParsedData): UnsettledBidReceipt;
|
|
158
|
+
static fromSuiObjectData(data: SuiObjectData): UnsettledBidReceipt;
|
|
159
|
+
static fetch(client: SuiClient, id: string): Promise<UnsettledBidReceipt>;
|
|
160
|
+
}
|