@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,324 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
46
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
47
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
48
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
49
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
50
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
51
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
52
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
56
|
+
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);
|
|
57
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
58
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
59
|
+
function step(op) {
|
|
60
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
61
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
62
|
+
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;
|
|
63
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
64
|
+
switch (op[0]) {
|
|
65
|
+
case 0: case 1: t = op; break;
|
|
66
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
67
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
68
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
69
|
+
default:
|
|
70
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
71
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
72
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
73
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
74
|
+
if (t[2]) _.ops.pop();
|
|
75
|
+
_.trys.pop(); continue;
|
|
76
|
+
}
|
|
77
|
+
op = body.call(thisArg, _);
|
|
78
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
79
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
83
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
84
|
+
if (!m) return o;
|
|
85
|
+
var i = m.call(o), r, ar = [], e;
|
|
86
|
+
try {
|
|
87
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
88
|
+
}
|
|
89
|
+
catch (error) { e = { error: error }; }
|
|
90
|
+
finally {
|
|
91
|
+
try {
|
|
92
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
93
|
+
}
|
|
94
|
+
finally { if (e) throw e.error; }
|
|
95
|
+
}
|
|
96
|
+
return ar;
|
|
97
|
+
};
|
|
98
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
99
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
100
|
+
if (ar || !(i in from)) {
|
|
101
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
102
|
+
ar[i] = from[i];
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
106
|
+
};
|
|
107
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
108
|
+
exports.UnsettledBidReceipt = void 0;
|
|
109
|
+
exports.isUnsettledBidReceipt = isUnsettledBidReceipt;
|
|
110
|
+
var reified = __importStar(require("../../_framework/reified"));
|
|
111
|
+
var structs_1 = require("../../_dependencies/source/0x1/type-name/structs");
|
|
112
|
+
var structs_2 = require("../../_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs");
|
|
113
|
+
var reified_1 = require("../../_framework/reified");
|
|
114
|
+
var util_1 = require("../../_framework/util");
|
|
115
|
+
var index_1 = require("../index");
|
|
116
|
+
var bcs_1 = require("@mysten/sui/bcs");
|
|
117
|
+
var utils_1 = require("@mysten/sui/utils");
|
|
118
|
+
/* ============================== UnsettledBidReceipt =============================== */
|
|
119
|
+
function isUnsettledBidReceipt(type) {
|
|
120
|
+
type = (0, util_1.compressSuiType)(type);
|
|
121
|
+
return type === "".concat(index_1.PKG_V1, "::escrow::UnsettledBidReceipt");
|
|
122
|
+
}
|
|
123
|
+
var UnsettledBidReceipt = /** @class */ (function () {
|
|
124
|
+
function UnsettledBidReceipt(typeArgs, fields) {
|
|
125
|
+
this.__StructClass = true;
|
|
126
|
+
this.$typeName = UnsettledBidReceipt.$typeName;
|
|
127
|
+
this.$isPhantom = UnsettledBidReceipt.$isPhantom;
|
|
128
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UnsettledBidReceipt.$typeName], __read(typeArgs), false));
|
|
129
|
+
this.$typeArgs = typeArgs;
|
|
130
|
+
this.receipt = fields.receipt;
|
|
131
|
+
this.positionId = fields.positionId;
|
|
132
|
+
this.user = fields.user;
|
|
133
|
+
this.tokenTypes = fields.tokenTypes;
|
|
134
|
+
this.unrealizedPnlSign = fields.unrealizedPnlSign;
|
|
135
|
+
this.unrealizedPnl = fields.unrealizedPnl;
|
|
136
|
+
this.unrealizedTradingFee = fields.unrealizedTradingFee;
|
|
137
|
+
this.unrealizedBorrowFee = fields.unrealizedBorrowFee;
|
|
138
|
+
this.unrealizedFundingFeeSign = fields.unrealizedFundingFeeSign;
|
|
139
|
+
this.unrealizedFundingFee = fields.unrealizedFundingFee;
|
|
140
|
+
this.unrealizedLiquidatorFee = fields.unrealizedLiquidatorFee;
|
|
141
|
+
}
|
|
142
|
+
UnsettledBidReceipt.reified = function () {
|
|
143
|
+
var _this = this;
|
|
144
|
+
return {
|
|
145
|
+
typeName: UnsettledBidReceipt.$typeName,
|
|
146
|
+
fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UnsettledBidReceipt.$typeName], [], false)),
|
|
147
|
+
typeArgs: [],
|
|
148
|
+
isPhantom: UnsettledBidReceipt.$isPhantom,
|
|
149
|
+
reifiedTypeArgs: [],
|
|
150
|
+
fromFields: function (fields) { return UnsettledBidReceipt.fromFields(fields); },
|
|
151
|
+
fromFieldsWithTypes: function (item) { return UnsettledBidReceipt.fromFieldsWithTypes(item); },
|
|
152
|
+
fromBcs: function (data) { return UnsettledBidReceipt.fromBcs(data); },
|
|
153
|
+
bcs: UnsettledBidReceipt.bcs,
|
|
154
|
+
fromJSONField: function (field) { return UnsettledBidReceipt.fromJSONField(field); },
|
|
155
|
+
fromJSON: function (json) { return UnsettledBidReceipt.fromJSON(json); },
|
|
156
|
+
fromSuiParsedData: function (content) { return UnsettledBidReceipt.fromSuiParsedData(content); },
|
|
157
|
+
fromSuiObjectData: function (content) { return UnsettledBidReceipt.fromSuiObjectData(content); },
|
|
158
|
+
fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
159
|
+
return [2 /*return*/, UnsettledBidReceipt.fetch(client, id)];
|
|
160
|
+
}); }); },
|
|
161
|
+
new: function (fields) {
|
|
162
|
+
return new UnsettledBidReceipt([], fields);
|
|
163
|
+
},
|
|
164
|
+
kind: "StructClassReified",
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
Object.defineProperty(UnsettledBidReceipt, "r", {
|
|
168
|
+
get: function () {
|
|
169
|
+
return UnsettledBidReceipt.reified();
|
|
170
|
+
},
|
|
171
|
+
enumerable: false,
|
|
172
|
+
configurable: true
|
|
173
|
+
});
|
|
174
|
+
UnsettledBidReceipt.phantom = function () {
|
|
175
|
+
return (0, reified_1.phantom)(UnsettledBidReceipt.reified());
|
|
176
|
+
};
|
|
177
|
+
Object.defineProperty(UnsettledBidReceipt, "p", {
|
|
178
|
+
get: function () {
|
|
179
|
+
return UnsettledBidReceipt.phantom();
|
|
180
|
+
},
|
|
181
|
+
enumerable: false,
|
|
182
|
+
configurable: true
|
|
183
|
+
});
|
|
184
|
+
Object.defineProperty(UnsettledBidReceipt, "bcs", {
|
|
185
|
+
get: function () {
|
|
186
|
+
return bcs_1.bcs.struct("UnsettledBidReceipt", {
|
|
187
|
+
receipt: bcs_1.bcs.vector(structs_2.TypusBidReceipt.bcs),
|
|
188
|
+
position_id: bcs_1.bcs.u64(),
|
|
189
|
+
user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
|
|
190
|
+
token_types: bcs_1.bcs.vector(structs_1.TypeName.bcs),
|
|
191
|
+
unrealized_pnl_sign: bcs_1.bcs.bool(),
|
|
192
|
+
unrealized_pnl: bcs_1.bcs.u64(),
|
|
193
|
+
unrealized_trading_fee: bcs_1.bcs.u64(),
|
|
194
|
+
unrealized_borrow_fee: bcs_1.bcs.u64(),
|
|
195
|
+
unrealized_funding_fee_sign: bcs_1.bcs.bool(),
|
|
196
|
+
unrealized_funding_fee: bcs_1.bcs.u64(),
|
|
197
|
+
unrealized_liquidator_fee: bcs_1.bcs.u64(),
|
|
198
|
+
});
|
|
199
|
+
},
|
|
200
|
+
enumerable: false,
|
|
201
|
+
configurable: true
|
|
202
|
+
});
|
|
203
|
+
UnsettledBidReceipt.fromFields = function (fields) {
|
|
204
|
+
return UnsettledBidReceipt.reified().new({
|
|
205
|
+
receipt: (0, reified_1.decodeFromFields)(reified.vector(structs_2.TypusBidReceipt.reified()), fields.receipt),
|
|
206
|
+
positionId: (0, reified_1.decodeFromFields)("u64", fields.position_id),
|
|
207
|
+
user: (0, reified_1.decodeFromFields)("address", fields.user),
|
|
208
|
+
tokenTypes: (0, reified_1.decodeFromFields)(reified.vector(structs_1.TypeName.reified()), fields.token_types),
|
|
209
|
+
unrealizedPnlSign: (0, reified_1.decodeFromFields)("bool", fields.unrealized_pnl_sign),
|
|
210
|
+
unrealizedPnl: (0, reified_1.decodeFromFields)("u64", fields.unrealized_pnl),
|
|
211
|
+
unrealizedTradingFee: (0, reified_1.decodeFromFields)("u64", fields.unrealized_trading_fee),
|
|
212
|
+
unrealizedBorrowFee: (0, reified_1.decodeFromFields)("u64", fields.unrealized_borrow_fee),
|
|
213
|
+
unrealizedFundingFeeSign: (0, reified_1.decodeFromFields)("bool", fields.unrealized_funding_fee_sign),
|
|
214
|
+
unrealizedFundingFee: (0, reified_1.decodeFromFields)("u64", fields.unrealized_funding_fee),
|
|
215
|
+
unrealizedLiquidatorFee: (0, reified_1.decodeFromFields)("u64", fields.unrealized_liquidator_fee),
|
|
216
|
+
});
|
|
217
|
+
};
|
|
218
|
+
UnsettledBidReceipt.fromFieldsWithTypes = function (item) {
|
|
219
|
+
if (!isUnsettledBidReceipt(item.type)) {
|
|
220
|
+
throw new Error("not a UnsettledBidReceipt type");
|
|
221
|
+
}
|
|
222
|
+
return UnsettledBidReceipt.reified().new({
|
|
223
|
+
receipt: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(structs_2.TypusBidReceipt.reified()), item.fields.receipt),
|
|
224
|
+
positionId: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.position_id),
|
|
225
|
+
user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
|
|
226
|
+
tokenTypes: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(structs_1.TypeName.reified()), item.fields.token_types),
|
|
227
|
+
unrealizedPnlSign: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.unrealized_pnl_sign),
|
|
228
|
+
unrealizedPnl: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unrealized_pnl),
|
|
229
|
+
unrealizedTradingFee: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unrealized_trading_fee),
|
|
230
|
+
unrealizedBorrowFee: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unrealized_borrow_fee),
|
|
231
|
+
unrealizedFundingFeeSign: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.unrealized_funding_fee_sign),
|
|
232
|
+
unrealizedFundingFee: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unrealized_funding_fee),
|
|
233
|
+
unrealizedLiquidatorFee: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unrealized_liquidator_fee),
|
|
234
|
+
});
|
|
235
|
+
};
|
|
236
|
+
UnsettledBidReceipt.fromBcs = function (data) {
|
|
237
|
+
return UnsettledBidReceipt.fromFields(UnsettledBidReceipt.bcs.parse(data));
|
|
238
|
+
};
|
|
239
|
+
UnsettledBidReceipt.prototype.toJSONField = function () {
|
|
240
|
+
return {
|
|
241
|
+
receipt: (0, reified_1.fieldToJSON)("vector<".concat(structs_2.TypusBidReceipt.$typeName, ">"), this.receipt),
|
|
242
|
+
positionId: this.positionId.toString(),
|
|
243
|
+
user: this.user,
|
|
244
|
+
tokenTypes: (0, reified_1.fieldToJSON)("vector<".concat(structs_1.TypeName.$typeName, ">"), this.tokenTypes),
|
|
245
|
+
unrealizedPnlSign: this.unrealizedPnlSign,
|
|
246
|
+
unrealizedPnl: this.unrealizedPnl.toString(),
|
|
247
|
+
unrealizedTradingFee: this.unrealizedTradingFee.toString(),
|
|
248
|
+
unrealizedBorrowFee: this.unrealizedBorrowFee.toString(),
|
|
249
|
+
unrealizedFundingFeeSign: this.unrealizedFundingFeeSign,
|
|
250
|
+
unrealizedFundingFee: this.unrealizedFundingFee.toString(),
|
|
251
|
+
unrealizedLiquidatorFee: this.unrealizedLiquidatorFee.toString(),
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
UnsettledBidReceipt.prototype.toJSON = function () {
|
|
255
|
+
return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
|
|
256
|
+
};
|
|
257
|
+
UnsettledBidReceipt.fromJSONField = function (field) {
|
|
258
|
+
return UnsettledBidReceipt.reified().new({
|
|
259
|
+
receipt: (0, reified_1.decodeFromJSONField)(reified.vector(structs_2.TypusBidReceipt.reified()), field.receipt),
|
|
260
|
+
positionId: (0, reified_1.decodeFromJSONField)("u64", field.positionId),
|
|
261
|
+
user: (0, reified_1.decodeFromJSONField)("address", field.user),
|
|
262
|
+
tokenTypes: (0, reified_1.decodeFromJSONField)(reified.vector(structs_1.TypeName.reified()), field.tokenTypes),
|
|
263
|
+
unrealizedPnlSign: (0, reified_1.decodeFromJSONField)("bool", field.unrealizedPnlSign),
|
|
264
|
+
unrealizedPnl: (0, reified_1.decodeFromJSONField)("u64", field.unrealizedPnl),
|
|
265
|
+
unrealizedTradingFee: (0, reified_1.decodeFromJSONField)("u64", field.unrealizedTradingFee),
|
|
266
|
+
unrealizedBorrowFee: (0, reified_1.decodeFromJSONField)("u64", field.unrealizedBorrowFee),
|
|
267
|
+
unrealizedFundingFeeSign: (0, reified_1.decodeFromJSONField)("bool", field.unrealizedFundingFeeSign),
|
|
268
|
+
unrealizedFundingFee: (0, reified_1.decodeFromJSONField)("u64", field.unrealizedFundingFee),
|
|
269
|
+
unrealizedLiquidatorFee: (0, reified_1.decodeFromJSONField)("u64", field.unrealizedLiquidatorFee),
|
|
270
|
+
});
|
|
271
|
+
};
|
|
272
|
+
UnsettledBidReceipt.fromJSON = function (json) {
|
|
273
|
+
if (json.$typeName !== UnsettledBidReceipt.$typeName) {
|
|
274
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
275
|
+
}
|
|
276
|
+
return UnsettledBidReceipt.fromJSONField(json);
|
|
277
|
+
};
|
|
278
|
+
UnsettledBidReceipt.fromSuiParsedData = function (content) {
|
|
279
|
+
if (content.dataType !== "moveObject") {
|
|
280
|
+
throw new Error("not an object");
|
|
281
|
+
}
|
|
282
|
+
if (!isUnsettledBidReceipt(content.type)) {
|
|
283
|
+
throw new Error("object at ".concat(content.fields.id, " is not a UnsettledBidReceipt object"));
|
|
284
|
+
}
|
|
285
|
+
return UnsettledBidReceipt.fromFieldsWithTypes(content);
|
|
286
|
+
};
|
|
287
|
+
UnsettledBidReceipt.fromSuiObjectData = function (data) {
|
|
288
|
+
if (data.bcs) {
|
|
289
|
+
if (data.bcs.dataType !== "moveObject" || !isUnsettledBidReceipt(data.bcs.type)) {
|
|
290
|
+
throw new Error("object at is not a UnsettledBidReceipt object");
|
|
291
|
+
}
|
|
292
|
+
return UnsettledBidReceipt.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
|
|
293
|
+
}
|
|
294
|
+
if (data.content) {
|
|
295
|
+
return UnsettledBidReceipt.fromSuiParsedData(data.content);
|
|
296
|
+
}
|
|
297
|
+
throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
|
|
298
|
+
};
|
|
299
|
+
UnsettledBidReceipt.fetch = function (client, id) {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
301
|
+
var res;
|
|
302
|
+
var _a, _b;
|
|
303
|
+
return __generator(this, function (_c) {
|
|
304
|
+
switch (_c.label) {
|
|
305
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
|
|
306
|
+
case 1:
|
|
307
|
+
res = _c.sent();
|
|
308
|
+
if (res.error) {
|
|
309
|
+
throw new Error("error fetching UnsettledBidReceipt object at id ".concat(id, ": ").concat(res.error.code));
|
|
310
|
+
}
|
|
311
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUnsettledBidReceipt(res.data.bcs.type)) {
|
|
312
|
+
throw new Error("object at id ".concat(id, " is not a UnsettledBidReceipt object"));
|
|
313
|
+
}
|
|
314
|
+
return [2 /*return*/, UnsettledBidReceipt.fromSuiObjectData(res.data)];
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
});
|
|
318
|
+
};
|
|
319
|
+
UnsettledBidReceipt.$typeName = "".concat(index_1.PKG_V1, "::escrow::UnsettledBidReceipt");
|
|
320
|
+
UnsettledBidReceipt.$numTypeParams = 0;
|
|
321
|
+
UnsettledBidReceipt.$isPhantom = [];
|
|
322
|
+
return UnsettledBidReceipt;
|
|
323
|
+
}());
|
|
324
|
+
exports.UnsettledBidReceipt = UnsettledBidReceipt;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PERP_PACKAGE_ID as PACKAGE_ID, PERP_PUBLISHED_AT as PUBLISHED_AT, PERP_PKG_V1 as PKG_V1 } from "../index";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PKG_V1 = exports.PUBLISHED_AT = exports.PACKAGE_ID = void 0;
|
|
4
|
+
var index_1 = require("../index");
|
|
5
|
+
Object.defineProperty(exports, "PACKAGE_ID", { enumerable: true, get: function () { return index_1.PERP_PACKAGE_ID; } });
|
|
6
|
+
Object.defineProperty(exports, "PUBLISHED_AT", { enumerable: true, get: function () { return index_1.PERP_PUBLISHED_AT; } });
|
|
7
|
+
Object.defineProperty(exports, "PKG_V1", { enumerable: true, get: function () { return index_1.PERP_PKG_V1; } });
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.registerClasses = registerClasses;
|
|
37
|
+
var admin = __importStar(require("./admin/structs"));
|
|
38
|
+
var escrow = __importStar(require("./escrow/structs"));
|
|
39
|
+
var lpPool = __importStar(require("./lp-pool/structs"));
|
|
40
|
+
var position = __importStar(require("./position/structs"));
|
|
41
|
+
var symbol = __importStar(require("./symbol/structs"));
|
|
42
|
+
var tlp = __importStar(require("./tlp/structs"));
|
|
43
|
+
var trading = __importStar(require("./trading/structs"));
|
|
44
|
+
var treasuryCaps = __importStar(require("./treasury-caps/structs"));
|
|
45
|
+
function registerClasses(loader) {
|
|
46
|
+
loader.register(admin.Version);
|
|
47
|
+
loader.register(admin.FeeInfo);
|
|
48
|
+
loader.register(admin.FeePool);
|
|
49
|
+
loader.register(admin.SendFeeEvent);
|
|
50
|
+
loader.register(admin.ProtocolFeeEvent);
|
|
51
|
+
loader.register(escrow.UnsettledBidReceipt);
|
|
52
|
+
loader.register(treasuryCaps.TreasuryCaps);
|
|
53
|
+
loader.register(tlp.LpRegistry);
|
|
54
|
+
loader.register(tlp.TLP);
|
|
55
|
+
loader.register(lpPool.Config);
|
|
56
|
+
loader.register(lpPool.State);
|
|
57
|
+
loader.register(lpPool.Registry);
|
|
58
|
+
loader.register(lpPool.AddLiquidityTokenEvent);
|
|
59
|
+
loader.register(lpPool.BurnLpEvent);
|
|
60
|
+
loader.register(lpPool.CompleteRemoveLiquidityTokenProcessEvent);
|
|
61
|
+
loader.register(lpPool.LiquidityPool);
|
|
62
|
+
loader.register(lpPool.LiquidityPoolInfo);
|
|
63
|
+
loader.register(lpPool.ManagerFlashRemoveLiquidityEvent);
|
|
64
|
+
loader.register(lpPool.ManagerFlashRepayLiquidityEvent);
|
|
65
|
+
loader.register(lpPool.MarginConfig);
|
|
66
|
+
loader.register(lpPool.MintLpEvent);
|
|
67
|
+
loader.register(lpPool.NewLiquidityPoolEvent);
|
|
68
|
+
loader.register(lpPool.RemoveLiquidityTokenProcess);
|
|
69
|
+
loader.register(lpPool.ResumePoolEvent);
|
|
70
|
+
loader.register(lpPool.ResumeTokenPoolEvent);
|
|
71
|
+
loader.register(lpPool.SpotConfig);
|
|
72
|
+
loader.register(lpPool.StartRemoveLiquidityTokenProcessEvent);
|
|
73
|
+
loader.register(lpPool.SuspendPoolEvent);
|
|
74
|
+
loader.register(lpPool.SuspendTokenPoolEvent);
|
|
75
|
+
loader.register(lpPool.SwapEvent);
|
|
76
|
+
loader.register(lpPool.TokenPool);
|
|
77
|
+
loader.register(lpPool.UpdateBorrowInfoEvent);
|
|
78
|
+
loader.register(lpPool.UpdateLiquidityValueEvent);
|
|
79
|
+
loader.register(lpPool.UpdateMarginConfigEvent);
|
|
80
|
+
loader.register(lpPool.UpdateSpotConfigEvent);
|
|
81
|
+
loader.register(symbol.Symbol);
|
|
82
|
+
loader.register(position.OptionCollateralInfo);
|
|
83
|
+
loader.register(position.OrderFilledEvent);
|
|
84
|
+
loader.register(position.Position);
|
|
85
|
+
loader.register(position.RealizeFundingEvent);
|
|
86
|
+
loader.register(position.RemovePositionEvent);
|
|
87
|
+
loader.register(position.TradingOrder);
|
|
88
|
+
loader.register(trading.AddTradingSymbolEvent);
|
|
89
|
+
loader.register(trading.CancelTradingOrderEvent);
|
|
90
|
+
loader.register(trading.CreateTradingOrderEvent);
|
|
91
|
+
loader.register(trading.CreateTradingOrderWithBidReceiptsEvent);
|
|
92
|
+
loader.register(trading.ExpiredPositionInfo);
|
|
93
|
+
loader.register(trading.IncreaseCollateralEvent);
|
|
94
|
+
loader.register(trading.LiquidateEvent);
|
|
95
|
+
loader.register(trading.LiquidationInfo);
|
|
96
|
+
loader.register(trading.ManagerCloseOptionPositionEvent);
|
|
97
|
+
loader.register(trading.ManagerReducePositionEvent);
|
|
98
|
+
loader.register(trading.ManagerUpdateProcessStatusAfterOrderEvent);
|
|
99
|
+
loader.register(trading.ManagerUpdateProcessStatusAfterPositionEvent);
|
|
100
|
+
loader.register(trading.MarketConfig);
|
|
101
|
+
loader.register(trading.MarketInfo);
|
|
102
|
+
loader.register(trading.MarketRegistry);
|
|
103
|
+
loader.register(trading.Markets);
|
|
104
|
+
loader.register(trading.MatchTradingOrderEvent);
|
|
105
|
+
loader.register(trading.NewMarketsEvent);
|
|
106
|
+
loader.register(trading.RealizeOptionPositionEvent);
|
|
107
|
+
loader.register(trading.ReleaseCollateralEvent);
|
|
108
|
+
loader.register(trading.ResumeMarketEvent);
|
|
109
|
+
loader.register(trading.ResumeTradingSymbolEvent);
|
|
110
|
+
loader.register(trading.SettleReceiptCollateralEvent);
|
|
111
|
+
loader.register(trading.SuspendMarketEvent);
|
|
112
|
+
loader.register(trading.SuspendTradingSymbolEvent);
|
|
113
|
+
loader.register(trading.SymbolMarket);
|
|
114
|
+
loader.register(trading.USD);
|
|
115
|
+
loader.register(trading.UpdateFundingRateEvent);
|
|
116
|
+
loader.register(trading.UpdateMarketConfigEvent);
|
|
117
|
+
loader.register(trading.UpdateProtocolFeeShareBpEvent);
|
|
118
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Transaction, TransactionObjectInput } from "@mysten/sui/transactions";
|
|
2
|
+
export interface DepositScallopBasicArgs {
|
|
3
|
+
balance: TransactionObjectInput;
|
|
4
|
+
scallopVersion: TransactionObjectInput;
|
|
5
|
+
scallopMarket: TransactionObjectInput;
|
|
6
|
+
clock: TransactionObjectInput;
|
|
7
|
+
}
|
|
8
|
+
export declare function depositScallopBasic(tx: Transaction, typeArg: string, args: DepositScallopBasicArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
9
|
+
export interface WithdrawScallopBasicArgs {
|
|
10
|
+
marketCoin: TransactionObjectInput;
|
|
11
|
+
scallopVersion: TransactionObjectInput;
|
|
12
|
+
scallopMarket: TransactionObjectInput;
|
|
13
|
+
clock: TransactionObjectInput;
|
|
14
|
+
}
|
|
15
|
+
export declare function withdrawScallopBasic(tx: Transaction, typeArg: string, args: WithdrawScallopBasicArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.depositScallopBasic = depositScallopBasic;
|
|
4
|
+
exports.withdrawScallopBasic = withdrawScallopBasic;
|
|
5
|
+
var __1 = require("..");
|
|
6
|
+
var util_1 = require("../../_framework/util");
|
|
7
|
+
function depositScallopBasic(tx, typeArg, args, published_at) {
|
|
8
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
9
|
+
return tx.moveCall({
|
|
10
|
+
target: "".concat(published_at, "::lending::deposit_scallop_basic"),
|
|
11
|
+
typeArguments: [typeArg],
|
|
12
|
+
arguments: [(0, util_1.obj)(tx, args.balance), (0, util_1.obj)(tx, args.scallopVersion), (0, util_1.obj)(tx, args.scallopMarket), (0, util_1.obj)(tx, args.clock)],
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function withdrawScallopBasic(tx, typeArg, args, published_at) {
|
|
16
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
17
|
+
return tx.moveCall({
|
|
18
|
+
target: "".concat(published_at, "::lending::withdraw_scallop_basic"),
|
|
19
|
+
typeArguments: [typeArg],
|
|
20
|
+
arguments: [(0, util_1.obj)(tx, args.marketCoin), (0, util_1.obj)(tx, args.scallopVersion), (0, util_1.obj)(tx, args.scallopMarket), (0, util_1.obj)(tx, args.clock)],
|
|
21
|
+
});
|
|
22
|
+
}
|