@typus/typus-perp-sdk 1.1.32-codegen-exp3 → 1.1.32-testnet-exp1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +88 -0
- package/dist/src/_dependencies/source/0x1/ascii/structs.js +398 -0
- package/dist/src/_dependencies/source/0x1/index.d.ts +3 -0
- package/dist/src/_dependencies/source/0x1/index.js +6 -0
- package/dist/src/_dependencies/source/0x1/option/structs.d.ts +50 -0
- package/dist/src/_dependencies/source/0x1/option/structs.js +271 -0
- package/dist/src/_dependencies/source/0x1/string/structs.d.ts +48 -0
- package/dist/src/_dependencies/source/0x1/string/structs.js +256 -0
- package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +49 -0
- package/dist/src/_dependencies/source/0x1/type-name/structs.js +223 -0
- package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +54 -0
- package/dist/src/_dependencies/source/0x2/bag/structs.js +229 -0
- package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +84 -0
- package/dist/src/_dependencies/source/0x2/balance/structs.js +386 -0
- package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +406 -0
- package/dist/src/_dependencies/source/0x2/coin/structs.js +1247 -0
- package/dist/src/_dependencies/source/0x2/index.d.ts +3 -0
- package/dist/src/_dependencies/source/0x2/index.js +6 -0
- package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +132 -0
- package/dist/src/_dependencies/source/0x2/linked-table/structs.js +438 -0
- package/dist/src/_dependencies/source/0x2/object/structs.d.ts +86 -0
- package/dist/src/_dependencies/source/0x2/object/structs.js +364 -0
- package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +54 -0
- package/dist/src/_dependencies/source/0x2/object-table/structs.js +248 -0
- package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0x2/sui/structs.js +222 -0
- package/dist/src/_dependencies/source/0x2/table/structs.d.ts +54 -0
- package/dist/src/_dependencies/source/0x2/table/structs.js +248 -0
- package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +59 -0
- package/dist/src/_dependencies/source/0x2/table-vec/structs.js +274 -0
- package/dist/src/_dependencies/source/0x2/token/structs.d.ts +421 -0
- package/dist/src/_dependencies/source/0x2/token/structs.js +1095 -0
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +348 -0
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +1091 -0
- package/dist/src/_dependencies/source/0x2/url/structs.d.ts +49 -0
- package/dist/src/_dependencies/source/0x2/url/structs.js +223 -0
- package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +106 -0
- package/dist/src/_dependencies/source/0x2/vec-map/structs.js +446 -0
- package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +49 -0
- package/dist/src/_dependencies/source/0x2/vec-set/structs.js +270 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +422 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.js +1084 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +130 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.js +456 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +208 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +653 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +362 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.js +899 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.d.ts +8 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.js +11 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.js +102 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.d.ts +202 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.js +632 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +600 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.js +1459 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.d.ts +136 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.js +438 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.d.ts +127 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.js +430 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +957 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.js +2261 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +244 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +733 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +294 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +892 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +73 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.js +263 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +294 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.js +591 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +64 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.js +258 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +756 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +1721 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.js +222 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.d.ts +3 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.js +6 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.js +89 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.d.ts +135 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.js +444 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.d.ts +2106 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.js +4952 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +390 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.js +844 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.d.ts +6 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.js +9 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.js +69 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.d.ts +89 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.js +376 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +386 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.js +881 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +59 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.js +274 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +974 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.js +2387 -0
- package/dist/src/_framework/init-loader.d.ts +2 -0
- package/dist/src/{generated/typus_perp/treasury_caps.js → _framework/init-loader.js} +10 -17
- package/dist/src/_framework/loader.d.ts +17 -0
- package/dist/src/_framework/loader.js +108 -0
- package/dist/src/_framework/reified.d.ts +108 -0
- package/dist/src/_framework/reified.js +237 -0
- package/dist/src/_framework/util.d.ts +35 -0
- package/dist/src/_framework/util.js +396 -0
- package/dist/src/_framework/vector.d.ts +42 -0
- package/dist/src/_framework/vector.js +112 -0
- package/dist/src/api/sentio.js +538 -604
- package/dist/src/fetch.d.ts +36 -577
- package/dist/src/fetch.js +665 -367
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +39 -20
- package/dist/src/pyth.js +1 -0
- package/dist/src/typus_perp/admin/functions.d.ts +59 -0
- package/dist/src/typus_perp/admin/functions.js +122 -0
- package/dist/src/typus_perp/admin/structs.d.ts +467 -0
- package/dist/src/typus_perp/admin/structs.js +1065 -0
- package/dist/src/typus_perp/competition/functions.d.ts +24 -0
- package/dist/src/typus_perp/competition/functions.js +38 -0
- package/dist/src/typus_perp/competition/structs.d.ts +80 -0
- package/dist/src/typus_perp/competition/structs.js +288 -0
- package/dist/src/typus_perp/error/functions.d.ts +73 -0
- package/dist/src/typus_perp/error/functions.js +363 -0
- package/dist/src/typus_perp/escrow/functions.d.ts +17 -0
- package/dist/src/typus_perp/escrow/functions.js +36 -0
- package/dist/src/typus_perp/escrow/structs.d.ts +160 -0
- package/dist/src/typus_perp/escrow/structs.js +324 -0
- package/dist/src/typus_perp/index.d.ts +1 -0
- package/dist/src/typus_perp/index.js +7 -0
- package/dist/src/typus_perp/init.d.ts +2 -0
- package/dist/src/typus_perp/init.js +118 -0
- package/dist/src/typus_perp/lending/functions.d.ts +15 -0
- package/dist/src/typus_perp/lending/functions.js +22 -0
- package/dist/src/typus_perp/lp-pool/functions.d.ts +460 -0
- package/dist/src/typus_perp/lp-pool/functions.js +732 -0
- package/dist/src/typus_perp/lp-pool/structs.d.ts +3705 -0
- package/dist/src/typus_perp/lp-pool/structs.js +6789 -0
- package/dist/src/typus_perp/math/functions.d.ts +29 -0
- package/dist/src/typus_perp/math/functions.js +61 -0
- package/dist/src/typus_perp/position/functions.d.ts +379 -0
- package/dist/src/typus_perp/position/functions.js +713 -0
- package/dist/src/typus_perp/position/structs.d.ts +905 -0
- package/dist/src/typus_perp/position/structs.js +1450 -0
- package/dist/src/typus_perp/symbol/functions.d.ts +9 -0
- package/dist/src/typus_perp/symbol/functions.js +24 -0
- package/dist/src/typus_perp/symbol/structs.d.ts +70 -0
- package/dist/src/typus_perp/symbol/structs.js +235 -0
- package/dist/src/typus_perp/tlp/functions.d.ts +19 -0
- package/dist/src/typus_perp/tlp/functions.js +40 -0
- package/dist/src/typus_perp/tlp/structs.d.ts +89 -0
- package/dist/src/typus_perp/tlp/structs.js +365 -0
- package/dist/src/typus_perp/token-interface/functions.d.ts +11 -0
- package/dist/src/typus_perp/token-interface/functions.js +22 -0
- package/dist/src/typus_perp/trading/functions.d.ts +812 -0
- package/dist/src/typus_perp/trading/functions.js +1218 -0
- package/dist/src/typus_perp/trading/structs.d.ts +3060 -0
- package/dist/src/typus_perp/trading/structs.js +5813 -0
- package/dist/src/typus_perp/treasury-caps/functions.d.ts +9 -0
- package/dist/src/typus_perp/treasury-caps/functions.js +36 -0
- package/dist/src/typus_perp/treasury-caps/structs.d.ts +49 -0
- package/dist/src/typus_perp/treasury-caps/structs.js +223 -0
- package/dist/src/typus_perp/user-account/functions.d.ts +36 -0
- package/dist/src/typus_perp/user-account/functions.js +70 -0
- package/dist/src/typus_perp/user-account/structs.d.ts +148 -0
- package/dist/src/typus_perp/user-account/structs.js +448 -0
- package/dist/src/typus_stake_pool/admin/functions.d.ts +49 -0
- package/dist/src/typus_stake_pool/admin/functions.js +105 -0
- package/dist/src/typus_stake_pool/admin/structs.d.ts +365 -0
- package/dist/src/typus_stake_pool/admin/structs.js +789 -0
- package/dist/src/typus_stake_pool/index.d.ts +1 -0
- package/dist/src/typus_stake_pool/index.js +7 -0
- package/dist/src/typus_stake_pool/init.d.ts +2 -0
- package/dist/src/typus_stake_pool/init.js +69 -0
- package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +229 -0
- package/dist/src/typus_stake_pool/stake-pool/functions.js +380 -0
- package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +2199 -0
- package/dist/src/typus_stake_pool/stake-pool/structs.js +4653 -0
- package/dist/src/user/history.js +685 -614
- package/dist/src/user/order.d.ts +11 -16
- package/dist/src/user/order.js +302 -171
- package/dist/src/user/orderWithBidReceipt.d.ts +6 -8
- package/dist/src/user/orderWithBidReceipt.js +225 -127
- package/dist/src/user/tlp.d.ts +24 -25
- package/dist/src/user/tlp.js +468 -317
- package/package.json +3 -11
- package/dist/src/client.d.ts +0 -27
- package/dist/src/client.js +0 -108
- package/dist/src/generated/typus_perp/admin.d.ts +0 -117
- package/dist/src/generated/typus_perp/admin.js +0 -110
- package/dist/src/generated/typus_perp/competition.d.ts +0 -22
- package/dist/src/generated/typus_perp/competition.js +0 -58
- package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +0 -17
- package/dist/src/generated/typus_perp/deps/std/type_name.js +0 -25
- package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +0 -12
- package/dist/src/generated/typus_perp/deps/sui/balance.js +0 -20
- package/dist/src/generated/typus_perp/deps/sui/object.d.ts +0 -8
- package/dist/src/generated/typus_perp/deps/sui/object.js +0 -16
- package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +0 -19
- package/dist/src/generated/typus_perp/deps/sui/object_table.js +0 -59
- package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +0 -18
- package/dist/src/generated/typus_perp/deps/sui/vec_set.js +0 -25
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +0 -30
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +0 -67
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +0 -32
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +0 -71
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +0 -23
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +0 -61
- package/dist/src/generated/typus_perp/escrow.d.ts +0 -59
- package/dist/src/generated/typus_perp/escrow.js +0 -76
- package/dist/src/generated/typus_perp/lending.d.ts +0 -47
- package/dist/src/generated/typus_perp/lending.js +0 -50
- package/dist/src/generated/typus_perp/lp_pool.d.ts +0 -2327
- package/dist/src/generated/typus_perp/lp_pool.js +0 -1956
- package/dist/src/generated/typus_perp/math.d.ts +0 -95
- package/dist/src/generated/typus_perp/math.js +0 -97
- package/dist/src/generated/typus_perp/position.d.ts +0 -234
- package/dist/src/generated/typus_perp/position.js +0 -204
- package/dist/src/generated/typus_perp/symbol.d.ts +0 -18
- package/dist/src/generated/typus_perp/symbol.js +0 -55
- package/dist/src/generated/typus_perp/tlp.d.ts +0 -13
- package/dist/src/generated/typus_perp/tlp.js +0 -56
- package/dist/src/generated/typus_perp/trading.d.ts +0 -2486
- package/dist/src/generated/typus_perp/trading.js +0 -2476
- package/dist/src/generated/typus_perp/treasury_caps.d.ts +0 -13
- package/dist/src/generated/typus_perp/user_account.d.ts +0 -40
- package/dist/src/generated/typus_perp/user_account.js +0 -72
- package/dist/src/generated/typus_stake_pool/admin.d.ts +0 -234
- package/dist/src/generated/typus_stake_pool/admin.js +0 -272
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +0 -17
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +0 -25
- package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +0 -8
- package/dist/src/generated/typus_stake_pool/deps/sui/object.js +0 -16
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +0 -30
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +0 -37
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +0 -18
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +0 -25
- package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +0 -986
- package/dist/src/generated/typus_stake_pool/stake_pool.js +0 -874
- package/dist/src/generated/utils/index.d.ts +0 -11
- package/dist/src/generated/utils/index.js +0 -135
- package/dist/src/grpc/graphql.d.ts +0 -26
- package/dist/src/grpc/graphql.js +0 -126
- package/dist/src/grpc/grpc.d.ts +0 -1
- package/dist/src/grpc/grpc.js +0 -38
- package/dist/src/grpc/ledgerService.js +0 -64
- package/dist/src/grpc/liveDataService.d.ts +0 -0
- package/dist/src/grpc/liveDataService.js +0 -49
- /package/dist/src/{grpc/ledgerService.d.ts → pyth.d.ts} +0 -0
|
@@ -1,137 +1,235 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __values = (this && this.__values) || function(o) {
|
|
39
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
40
|
+
if (m) return m.call(o);
|
|
41
|
+
if (o && typeof o.length === "number") return {
|
|
42
|
+
next: function () {
|
|
43
|
+
if (o && i >= o.length) o = void 0;
|
|
44
|
+
return { value: o && o[i++], done: !o };
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
48
|
+
};
|
|
2
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
50
|
exports.createTradingOrderWithBidReceiptByAutoBid = createTradingOrderWithBidReceiptByAutoBid;
|
|
4
51
|
exports.createTradingOrderWithBidReceipt = createTradingOrderWithBidReceipt;
|
|
5
52
|
exports.reduceOptionCollateralPositionSize = reduceOptionCollateralPositionSize;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
53
|
+
var functions_1 = require("../typus_perp/trading/functions");
|
|
54
|
+
var utils_1 = require("@typus/typus-sdk/dist/src/utils");
|
|
55
|
+
var constants_1 = require("@typus/typus-sdk/dist/src/constants");
|
|
56
|
+
var typus_dov_single_v2_1 = require("@typus/typus-sdk/dist/src/typus-dov-single-v2");
|
|
57
|
+
var user_entry_1 = require("@typus/typus-sdk/dist/src/auto-bid/user-entry");
|
|
58
|
+
var __1 = require("..");
|
|
59
|
+
function createTradingOrderWithBidReceiptByAutoBid(config, tx, pythClient, input) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
61
|
+
var TOKEN, BASE_TOKEN, tokens, suiCoin, tokens_1, tokens_1_1, token, collateralBidReceipt, cToken, bToken, baseToken;
|
|
62
|
+
var e_1, _a;
|
|
63
|
+
return __generator(this, function (_b) {
|
|
64
|
+
switch (_b.label) {
|
|
65
|
+
case 0:
|
|
66
|
+
TOKEN = input.cToken;
|
|
67
|
+
BASE_TOKEN = input.tradingToken;
|
|
68
|
+
tokens = Array.from(new Set([TOKEN, BASE_TOKEN]));
|
|
69
|
+
if (config.sponsored) {
|
|
70
|
+
suiCoin = (0, utils_1.splitCoin)(tx, constants_1.tokenType.MAINNET.SUI, input.suiCoins, tokens.length.toString(), config.sponsored);
|
|
71
|
+
}
|
|
72
|
+
return [4 /*yield*/, (0, utils_1.updatePyth)(pythClient, tx, tokens, suiCoin)];
|
|
73
|
+
case 1:
|
|
74
|
+
_b.sent();
|
|
75
|
+
try {
|
|
76
|
+
for (tokens_1 = __values(tokens), tokens_1_1 = tokens_1.next(); !tokens_1_1.done; tokens_1_1 = tokens_1.next()) {
|
|
77
|
+
token = tokens_1_1.value;
|
|
78
|
+
(0, utils_1.updateOracleWithPythUsd)(pythClient, tx, config.package.oracle, token);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
+
finally {
|
|
83
|
+
try {
|
|
84
|
+
if (tokens_1_1 && !tokens_1_1.done && (_a = tokens_1.return)) _a.call(tokens_1);
|
|
85
|
+
}
|
|
86
|
+
finally { if (e_1) throw e_1.error; }
|
|
87
|
+
}
|
|
88
|
+
collateralBidReceipt = (0, user_entry_1.getWithdrawBidReceiptTx)(config, tx, {
|
|
89
|
+
vaultIndex: input.index,
|
|
90
|
+
signalIndex: input.signalIndex,
|
|
91
|
+
strategyIndex: input.strategyIndex,
|
|
92
|
+
user: input.user,
|
|
93
|
+
});
|
|
94
|
+
cToken = constants_1.tokenType[__1.NETWORK][TOKEN];
|
|
95
|
+
bToken = constants_1.tokenType[__1.NETWORK][input.bToken];
|
|
96
|
+
baseToken = constants_1.tokenType[__1.NETWORK][BASE_TOKEN];
|
|
97
|
+
(0, functions_1.createTradingOrderWithBidReceiptV3)(tx, [cToken, bToken, baseToken], {
|
|
98
|
+
version: __1.PERP_VERSION,
|
|
99
|
+
registry: __1.MARKET,
|
|
100
|
+
poolRegistry: __1.LP_POOL,
|
|
101
|
+
marketIndex: BigInt(0),
|
|
102
|
+
poolIndex: BigInt(0),
|
|
103
|
+
typusOracleCToken: constants_1.oracle[__1.NETWORK][TOKEN],
|
|
104
|
+
typusOracleTradingSymbol: constants_1.oracle[__1.NETWORK][BASE_TOKEN],
|
|
105
|
+
clock: constants_1.CLOCK,
|
|
106
|
+
typusEcosystemVersion: config.version.typus,
|
|
107
|
+
typusUserRegistry: config.registry.typus.user,
|
|
108
|
+
typusLeaderboardRegistry: config.registry.typus.leaderboard,
|
|
109
|
+
isLong: input.isLong,
|
|
110
|
+
dovRegistry: config.registry.dov.dovSingle,
|
|
111
|
+
collateralBidReceipt: collateralBidReceipt,
|
|
112
|
+
tailsStakingRegistry: config.registry.typus.tailsStaking,
|
|
113
|
+
competitionConfig: __1.COMPETITION_CONFIG,
|
|
114
|
+
});
|
|
115
|
+
return [2 /*return*/, tx];
|
|
116
|
+
}
|
|
117
|
+
});
|
|
30
118
|
});
|
|
31
|
-
let cToken = constants_1.tokenType[__1.NETWORK][TOKEN];
|
|
32
|
-
let bToken = constants_1.tokenType[__1.NETWORK][input.bToken];
|
|
33
|
-
let baseToken = constants_1.tokenType[__1.NETWORK][BASE_TOKEN];
|
|
34
|
-
tx.add((0, trading_1.createTradingOrderWithBidReceiptV3)({
|
|
35
|
-
arguments: {
|
|
36
|
-
version: __1.PERP_VERSION,
|
|
37
|
-
registry: __1.MARKET,
|
|
38
|
-
poolRegistry: __1.LP_POOL,
|
|
39
|
-
marketIndex: BigInt(input.perpIndex ?? 0),
|
|
40
|
-
poolIndex: BigInt(input.perpIndex ?? 0),
|
|
41
|
-
typusOracleCToken: constants_1.oracle[__1.NETWORK][TOKEN],
|
|
42
|
-
typusOracleTradingSymbol: constants_1.oracle[__1.NETWORK][BASE_TOKEN],
|
|
43
|
-
typusEcosystemVersion: client.config.version.typus,
|
|
44
|
-
typusUserRegistry: client.config.registry.typus.user,
|
|
45
|
-
typusLeaderboardRegistry: client.config.registry.typus.leaderboard,
|
|
46
|
-
isLong: input.isLong,
|
|
47
|
-
dovRegistry: client.config.registry.dov.dovSingle,
|
|
48
|
-
collateralBidReceipt,
|
|
49
|
-
tailsStakingRegistry: client.config.registry.typus.tailsStaking,
|
|
50
|
-
competitionConfig: __1.COMPETITION_CONFIG,
|
|
51
|
-
},
|
|
52
|
-
typeArguments: [cToken, bToken, baseToken],
|
|
53
|
-
}));
|
|
54
|
-
return tx;
|
|
55
119
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
120
|
+
function createTradingOrderWithBidReceipt(config, tx, pythClient, input) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
122
|
+
var TOKEN, BASE_TOKEN, tokens, suiCoin, tokens_2, tokens_2_1, token, collateralBidReceipt, cToken, bToken, baseToken;
|
|
123
|
+
var e_2, _a;
|
|
124
|
+
return __generator(this, function (_b) {
|
|
125
|
+
switch (_b.label) {
|
|
126
|
+
case 0:
|
|
127
|
+
TOKEN = input.cToken;
|
|
128
|
+
BASE_TOKEN = input.tradingToken;
|
|
129
|
+
tokens = Array.from(new Set([TOKEN, BASE_TOKEN]));
|
|
130
|
+
if (config.sponsored) {
|
|
131
|
+
suiCoin = (0, utils_1.splitCoin)(tx, constants_1.tokenType.MAINNET.SUI, input.suiCoins, tokens.length.toString(), config.sponsored);
|
|
132
|
+
}
|
|
133
|
+
return [4 /*yield*/, (0, utils_1.updatePyth)(pythClient, tx, tokens, suiCoin)];
|
|
134
|
+
case 1:
|
|
135
|
+
_b.sent();
|
|
136
|
+
try {
|
|
137
|
+
for (tokens_2 = __values(tokens), tokens_2_1 = tokens_2.next(); !tokens_2_1.done; tokens_2_1 = tokens_2.next()) {
|
|
138
|
+
token = tokens_2_1.value;
|
|
139
|
+
(0, utils_1.updateOracleWithPythUsd)(pythClient, tx, config.package.oracle, token);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
143
|
+
finally {
|
|
144
|
+
try {
|
|
145
|
+
if (tokens_2_1 && !tokens_2_1.done && (_a = tokens_2.return)) _a.call(tokens_2);
|
|
146
|
+
}
|
|
147
|
+
finally { if (e_2) throw e_2.error; }
|
|
148
|
+
}
|
|
149
|
+
collateralBidReceipt = (0, typus_dov_single_v2_1.getSplitBidReceiptTx)(config, tx, {
|
|
150
|
+
index: input.index,
|
|
151
|
+
receipts: input.bidReceipts,
|
|
152
|
+
share: input.share, // if undefined, merge all receipts
|
|
153
|
+
recipient: input.user,
|
|
154
|
+
});
|
|
155
|
+
cToken = constants_1.tokenType[__1.NETWORK][TOKEN];
|
|
156
|
+
bToken = constants_1.tokenType[__1.NETWORK][input.bToken];
|
|
157
|
+
baseToken = constants_1.tokenType[__1.NETWORK][BASE_TOKEN];
|
|
158
|
+
(0, functions_1.createTradingOrderWithBidReceiptV3)(tx, [cToken, bToken, baseToken], {
|
|
159
|
+
version: __1.PERP_VERSION,
|
|
160
|
+
registry: __1.MARKET,
|
|
161
|
+
poolRegistry: __1.LP_POOL,
|
|
162
|
+
marketIndex: BigInt(0),
|
|
163
|
+
poolIndex: BigInt(0),
|
|
164
|
+
typusOracleCToken: constants_1.oracle[__1.NETWORK][TOKEN],
|
|
165
|
+
typusOracleTradingSymbol: constants_1.oracle[__1.NETWORK][BASE_TOKEN],
|
|
166
|
+
clock: constants_1.CLOCK,
|
|
167
|
+
typusEcosystemVersion: config.version.typus,
|
|
168
|
+
typusUserRegistry: config.registry.typus.user,
|
|
169
|
+
typusLeaderboardRegistry: config.registry.typus.leaderboard,
|
|
170
|
+
isLong: input.isLong,
|
|
171
|
+
dovRegistry: config.registry.dov.dovSingle,
|
|
172
|
+
collateralBidReceipt: collateralBidReceipt,
|
|
173
|
+
tailsStakingRegistry: config.registry.typus.tailsStaking,
|
|
174
|
+
competitionConfig: __1.COMPETITION_CONFIG,
|
|
175
|
+
});
|
|
176
|
+
return [2 /*return*/, tx];
|
|
177
|
+
}
|
|
178
|
+
});
|
|
75
179
|
});
|
|
76
|
-
let cToken = constants_1.tokenType[__1.NETWORK][TOKEN];
|
|
77
|
-
let bToken = constants_1.tokenType[__1.NETWORK][input.bToken];
|
|
78
|
-
let baseToken = constants_1.tokenType[__1.NETWORK][BASE_TOKEN];
|
|
79
|
-
tx.add((0, trading_1.createTradingOrderWithBidReceiptV3)({
|
|
80
|
-
arguments: {
|
|
81
|
-
version: __1.PERP_VERSION,
|
|
82
|
-
registry: __1.MARKET,
|
|
83
|
-
poolRegistry: __1.LP_POOL,
|
|
84
|
-
marketIndex: BigInt(input.perpIndex ?? 0),
|
|
85
|
-
poolIndex: BigInt(input.perpIndex ?? 0),
|
|
86
|
-
typusOracleCToken: constants_1.oracle[__1.NETWORK][TOKEN],
|
|
87
|
-
typusOracleTradingSymbol: constants_1.oracle[__1.NETWORK][BASE_TOKEN],
|
|
88
|
-
typusEcosystemVersion: client.config.version.typus,
|
|
89
|
-
typusUserRegistry: client.config.registry.typus.user,
|
|
90
|
-
typusLeaderboardRegistry: client.config.registry.typus.leaderboard,
|
|
91
|
-
isLong: input.isLong,
|
|
92
|
-
dovRegistry: client.config.registry.dov.dovSingle,
|
|
93
|
-
collateralBidReceipt,
|
|
94
|
-
tailsStakingRegistry: client.config.registry.typus.tailsStaking,
|
|
95
|
-
competitionConfig: __1.COMPETITION_CONFIG,
|
|
96
|
-
},
|
|
97
|
-
typeArguments: [cToken, bToken, baseToken],
|
|
98
|
-
}));
|
|
99
|
-
return tx;
|
|
100
180
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
181
|
+
function reduceOptionCollateralPositionSize(config, tx, pythClient, input) {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
183
|
+
var TOKEN, BASE_TOKEN, tokens, suiCoin, tokens_3, tokens_3_1, token, cToken, bToken, baseToken;
|
|
184
|
+
var e_3, _a;
|
|
185
|
+
return __generator(this, function (_b) {
|
|
186
|
+
switch (_b.label) {
|
|
187
|
+
case 0:
|
|
188
|
+
TOKEN = input.cToken;
|
|
189
|
+
BASE_TOKEN = input.tradingToken;
|
|
190
|
+
tokens = Array.from(new Set([TOKEN, BASE_TOKEN]));
|
|
191
|
+
if (config.sponsored) {
|
|
192
|
+
suiCoin = (0, utils_1.splitCoin)(tx, constants_1.tokenType.MAINNET.SUI, input.suiCoins, tokens.length.toString(), config.sponsored);
|
|
193
|
+
}
|
|
194
|
+
return [4 /*yield*/, (0, utils_1.updatePyth)(pythClient, tx, tokens, suiCoin)];
|
|
195
|
+
case 1:
|
|
196
|
+
_b.sent();
|
|
197
|
+
try {
|
|
198
|
+
for (tokens_3 = __values(tokens), tokens_3_1 = tokens_3.next(); !tokens_3_1.done; tokens_3_1 = tokens_3.next()) {
|
|
199
|
+
token = tokens_3_1.value;
|
|
200
|
+
(0, utils_1.updateOracleWithPythUsd)(pythClient, tx, config.package.oracle, token);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
204
|
+
finally {
|
|
205
|
+
try {
|
|
206
|
+
if (tokens_3_1 && !tokens_3_1.done && (_a = tokens_3.return)) _a.call(tokens_3);
|
|
207
|
+
}
|
|
208
|
+
finally { if (e_3) throw e_3.error; }
|
|
209
|
+
}
|
|
210
|
+
cToken = constants_1.tokenType[__1.NETWORK][TOKEN];
|
|
211
|
+
bToken = constants_1.tokenType[__1.NETWORK][input.bToken];
|
|
212
|
+
baseToken = constants_1.tokenType[__1.NETWORK][BASE_TOKEN];
|
|
213
|
+
(0, functions_1.reduceOptionCollateralPositionSizeV2)(tx, [cToken, bToken, baseToken], {
|
|
214
|
+
version: __1.PERP_VERSION,
|
|
215
|
+
registry: __1.MARKET,
|
|
216
|
+
poolRegistry: __1.LP_POOL,
|
|
217
|
+
marketIndex: BigInt(0),
|
|
218
|
+
poolIndex: BigInt(0),
|
|
219
|
+
typusOracleCToken: constants_1.oracle[__1.NETWORK][TOKEN],
|
|
220
|
+
typusOracleTradingSymbol: constants_1.oracle[__1.NETWORK][BASE_TOKEN],
|
|
221
|
+
clock: constants_1.CLOCK,
|
|
222
|
+
typusEcosystemVersion: config.version.typus,
|
|
223
|
+
typusUserRegistry: config.registry.typus.user,
|
|
224
|
+
typusLeaderboardRegistry: config.registry.typus.leaderboard,
|
|
225
|
+
dovRegistry: config.registry.dov.dovSingle,
|
|
226
|
+
positionId: BigInt(input.positionId),
|
|
227
|
+
orderSize: input.orderSize ? BigInt(input.orderSize) : null,
|
|
228
|
+
tailsStakingRegistry: config.registry.typus.tailsStaking,
|
|
229
|
+
competitionConfig: __1.COMPETITION_CONFIG,
|
|
230
|
+
});
|
|
231
|
+
return [2 /*return*/, tx];
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
});
|
|
137
235
|
}
|
package/dist/src/user/tlp.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Transaction } from "@mysten/sui/transactions";
|
|
2
|
+
import { LiquidityPool } from "../typus_perp/lp-pool/structs";
|
|
3
|
+
import { PythClient, TypusConfig } from "@typus/typus-sdk/dist/src/utils";
|
|
2
4
|
import { TOKEN } from "@typus/typus-sdk/dist/src/constants";
|
|
3
|
-
import { StakePool } from "../../src/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function snapshot(client: TypusClient, tx: Transaction, input: {
|
|
7
|
-
perpIndex: string;
|
|
5
|
+
import { StakePool } from "../../src/typus_stake_pool/stake-pool/structs";
|
|
6
|
+
export declare function snapshot(config: TypusConfig, tx: Transaction, input: {
|
|
7
|
+
userShareId: string;
|
|
8
8
|
}): Promise<Transaction>;
|
|
9
|
-
export declare function mintStakeLp(
|
|
10
|
-
lpPool:
|
|
11
|
-
stakePool:
|
|
9
|
+
export declare function mintStakeLp(config: TypusConfig, tx: Transaction, pythClient: PythClient, input: {
|
|
10
|
+
lpPool: LiquidityPool;
|
|
11
|
+
stakePool: StakePool;
|
|
12
12
|
coins: string[];
|
|
13
13
|
cTOKEN: TOKEN;
|
|
14
14
|
amount: string;
|
|
@@ -18,53 +18,52 @@ export declare function mintStakeLp(client: TypusClient, tx: Transaction, input:
|
|
|
18
18
|
stake: boolean;
|
|
19
19
|
suiCoins?: string[];
|
|
20
20
|
}): Promise<Transaction>;
|
|
21
|
-
export declare function stakeLp(
|
|
22
|
-
stakePool:
|
|
21
|
+
export declare function stakeLp(config: TypusConfig, tx: Transaction, input: {
|
|
22
|
+
stakePool: StakePool;
|
|
23
23
|
lpCoins: string[];
|
|
24
24
|
amount: string;
|
|
25
25
|
userShareId: string | null;
|
|
26
26
|
user: string;
|
|
27
27
|
}): Promise<Transaction>;
|
|
28
|
-
export declare function unstake(
|
|
29
|
-
lpPool:
|
|
30
|
-
stakePool:
|
|
28
|
+
export declare function unstake(config: TypusConfig, tx: Transaction, input: {
|
|
29
|
+
lpPool: LiquidityPool;
|
|
30
|
+
stakePool: StakePool;
|
|
31
31
|
userShareId: string;
|
|
32
32
|
share: string | null;
|
|
33
33
|
user: string;
|
|
34
34
|
}): Promise<Transaction>;
|
|
35
|
-
export declare function unstakeRedeem(
|
|
36
|
-
lpPool:
|
|
37
|
-
stakePool:
|
|
35
|
+
export declare function unstakeRedeem(config: TypusConfig, tx: Transaction, pythClient: PythClient, input: {
|
|
36
|
+
lpPool: LiquidityPool;
|
|
37
|
+
stakePool: StakePool;
|
|
38
38
|
userShareId: string;
|
|
39
39
|
share: string | null;
|
|
40
40
|
user: string;
|
|
41
41
|
suiCoins?: string[];
|
|
42
42
|
}): Promise<Transaction>;
|
|
43
|
-
export declare function redeemTlp(
|
|
44
|
-
lpPool:
|
|
43
|
+
export declare function redeemTlp(config: TypusConfig, tx: Transaction, pythClient: PythClient, input: {
|
|
44
|
+
lpPool: LiquidityPool;
|
|
45
45
|
lpCoins: string[];
|
|
46
46
|
share: string | null;
|
|
47
47
|
user: string;
|
|
48
48
|
suiCoins?: string[];
|
|
49
49
|
}): Promise<Transaction>;
|
|
50
|
-
export declare function claim(
|
|
51
|
-
lpPool:
|
|
52
|
-
stakePool:
|
|
50
|
+
export declare function claim(config: TypusConfig, tx: Transaction, pythClient: PythClient, input: {
|
|
51
|
+
lpPool: LiquidityPool;
|
|
52
|
+
stakePool: StakePool;
|
|
53
53
|
cTOKEN: TOKEN;
|
|
54
54
|
user: string;
|
|
55
55
|
suiCoins?: string[];
|
|
56
56
|
}): Promise<Transaction>;
|
|
57
|
-
export declare function swap(
|
|
57
|
+
export declare function swap(config: TypusConfig, tx: Transaction, pythClient: PythClient, input: {
|
|
58
58
|
coins: string[];
|
|
59
59
|
FROM_TOKEN: TOKEN;
|
|
60
60
|
TO_TOKEN: TOKEN;
|
|
61
61
|
amount: string;
|
|
62
62
|
user: string;
|
|
63
|
-
perpIndex: number;
|
|
64
63
|
suiCoins?: string[];
|
|
65
64
|
}): Promise<Transaction>;
|
|
66
|
-
export declare function harvestStakeReward(
|
|
67
|
-
stakePool:
|
|
65
|
+
export declare function harvestStakeReward(config: TypusConfig, tx: Transaction, input: {
|
|
66
|
+
stakePool: StakePool;
|
|
68
67
|
userShareId: string;
|
|
69
68
|
user: string;
|
|
70
69
|
}): Promise<Transaction>;
|