@typus/typus-perp-sdk 1.1.29 → 1.1.30-codegen
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/api/sentio.js +604 -538
- package/dist/src/client.d.ts +27 -0
- package/dist/src/client.js +108 -0
- package/dist/src/fetch.d.ts +160 -34
- package/dist/src/fetch.js +365 -665
- package/dist/src/generated/typus_perp/admin.d.ts +117 -0
- package/dist/src/generated/typus_perp/admin.js +110 -0
- package/dist/src/generated/typus_perp/competition.d.ts +22 -0
- package/dist/src/generated/typus_perp/competition.js +58 -0
- package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/typus_perp/deps/std/type_name.js +25 -0
- package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +12 -0
- package/dist/src/generated/typus_perp/deps/sui/balance.js +20 -0
- package/dist/src/generated/typus_perp/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_perp/deps/sui/object.js +16 -0
- package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +19 -0
- package/dist/src/generated/typus_perp/deps/sui/object_table.js +59 -0
- package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +18 -0
- package/dist/src/generated/typus_perp/deps/sui/vec_set.js +25 -0
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +30 -0
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +67 -0
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +32 -0
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +71 -0
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +23 -0
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +61 -0
- package/dist/src/generated/typus_perp/escrow.d.ts +59 -0
- package/dist/src/generated/typus_perp/escrow.js +76 -0
- package/dist/src/generated/typus_perp/lending.d.ts +47 -0
- package/dist/src/generated/typus_perp/lending.js +50 -0
- package/dist/src/generated/typus_perp/lp_pool.d.ts +2327 -0
- package/dist/src/generated/typus_perp/lp_pool.js +1956 -0
- package/dist/src/generated/typus_perp/math.d.ts +95 -0
- package/dist/src/generated/typus_perp/math.js +97 -0
- package/dist/src/generated/typus_perp/position.d.ts +234 -0
- package/dist/src/generated/typus_perp/position.js +204 -0
- package/dist/src/generated/typus_perp/symbol.d.ts +18 -0
- package/dist/src/generated/typus_perp/symbol.js +55 -0
- package/dist/src/generated/typus_perp/tlp.d.ts +13 -0
- package/dist/src/generated/typus_perp/tlp.js +56 -0
- package/dist/src/generated/typus_perp/trading.d.ts +2486 -0
- package/dist/src/generated/typus_perp/trading.js +2476 -0
- package/dist/src/generated/typus_perp/treasury_caps.d.ts +13 -0
- package/dist/src/{_framework/init-loader.js → generated/typus_perp/treasury_caps.js} +17 -10
- package/dist/src/generated/typus_perp/user_account.d.ts +40 -0
- package/dist/src/generated/typus_perp/user_account.js +72 -0
- package/dist/src/generated/typus_stake_pool/admin.d.ts +100 -0
- package/dist/src/generated/typus_stake_pool/admin.js +91 -0
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +25 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/object.js +16 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +30 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +37 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +18 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +25 -0
- package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +1023 -0
- package/dist/src/generated/typus_stake_pool/stake_pool.js +918 -0
- package/dist/src/generated/utils/index.d.ts +11 -0
- package/dist/src/generated/utils/index.js +135 -0
- package/dist/src/grpc/graphql.d.ts +26 -0
- package/dist/src/grpc/graphql.js +126 -0
- package/dist/src/grpc/grpc.d.ts +1 -0
- package/dist/src/grpc/grpc.js +38 -0
- package/dist/src/grpc/ledgerService.js +64 -0
- package/dist/src/grpc/liveDataService.d.ts +0 -0
- package/dist/src/grpc/liveDataService.js +49 -0
- package/dist/src/index.d.ts +1 -4
- package/dist/src/index.js +21 -39
- package/dist/src/user/history.js +611 -680
- package/dist/src/user/order.d.ts +11 -11
- package/dist/src/user/order.js +171 -302
- package/dist/src/user/orderWithBidReceipt.d.ts +8 -5
- package/dist/src/user/orderWithBidReceipt.js +127 -225
- package/dist/src/user/tlp.d.ts +32 -23
- package/dist/src/user/tlp.js +316 -468
- package/package.json +12 -3
- package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +0 -92
- package/dist/src/_dependencies/source/0x1/ascii/structs.js +0 -398
- package/dist/src/_dependencies/source/0x1/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0x1/index.js +0 -6
- package/dist/src/_dependencies/source/0x1/option/structs.d.ts +0 -52
- package/dist/src/_dependencies/source/0x1/option/structs.js +0 -271
- package/dist/src/_dependencies/source/0x1/string/structs.d.ts +0 -50
- package/dist/src/_dependencies/source/0x1/string/structs.js +0 -256
- package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +0 -53
- package/dist/src/_dependencies/source/0x1/type-name/structs.js +0 -223
- package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +0 -61
- package/dist/src/_dependencies/source/0x2/bag/structs.js +0 -229
- package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +0 -88
- package/dist/src/_dependencies/source/0x2/balance/structs.js +0 -386
- package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +0 -460
- package/dist/src/_dependencies/source/0x2/coin/structs.js +0 -1247
- package/dist/src/_dependencies/source/0x2/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0x2/index.js +0 -6
- package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +0 -153
- package/dist/src/_dependencies/source/0x2/linked-table/structs.js +0 -438
- package/dist/src/_dependencies/source/0x2/object/structs.d.ts +0 -92
- package/dist/src/_dependencies/source/0x2/object/structs.js +0 -364
- package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +0 -61
- package/dist/src/_dependencies/source/0x2/object-table/structs.js +0 -248
- package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0x2/sui/structs.js +0 -222
- package/dist/src/_dependencies/source/0x2/table/structs.d.ts +0 -61
- package/dist/src/_dependencies/source/0x2/table/structs.js +0 -248
- package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +0 -68
- package/dist/src/_dependencies/source/0x2/table-vec/structs.js +0 -274
- package/dist/src/_dependencies/source/0x2/token/structs.d.ts +0 -449
- package/dist/src/_dependencies/source/0x2/token/structs.js +0 -1095
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -370
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -1091
- package/dist/src/_dependencies/source/0x2/url/structs.d.ts +0 -53
- package/dist/src/_dependencies/source/0x2/url/structs.js +0 -223
- package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +0 -111
- package/dist/src/_dependencies/source/0x2/vec-map/structs.js +0 -446
- package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +0 -51
- package/dist/src/_dependencies/source/0x2/vec-set/structs.js +0 -270
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +0 -489
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.js +0 -1084
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +0 -147
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.js +0 -456
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +0 -239
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +0 -653
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +0 -405
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.js +0 -899
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.d.ts +0 -8
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.js +0 -11
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.js +0 -102
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.d.ts +0 -227
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.js +0 -632
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +0 -699
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.js +0 -1459
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.d.ts +0 -161
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.js +0 -438
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.d.ts +0 -147
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.js +0 -430
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +0 -1071
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.js +0 -2261
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +0 -279
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +0 -733
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +0 -328
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +0 -892
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +0 -88
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.js +0 -263
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +0 -347
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.js +0 -591
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +0 -73
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.js +0 -258
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +0 -876
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +0 -1721
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.js +0 -222
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.js +0 -6
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.js +0 -89
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.d.ts +0 -155
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.js +0 -444
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.d.ts +0 -2386
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.js +0 -4952
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +0 -446
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.js +0 -844
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.d.ts +0 -6
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.js +0 -9
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.js +0 -69
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.d.ts +0 -94
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.js +0 -376
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +0 -454
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.js +0 -881
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +0 -68
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.js +0 -274
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +0 -1117
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.js +0 -2387
- package/dist/src/_framework/init-loader.d.ts +0 -2
- package/dist/src/_framework/loader.d.ts +0 -17
- package/dist/src/_framework/loader.js +0 -108
- package/dist/src/_framework/reified.d.ts +0 -108
- package/dist/src/_framework/reified.js +0 -237
- package/dist/src/_framework/util.d.ts +0 -35
- package/dist/src/_framework/util.js +0 -396
- package/dist/src/_framework/vector.d.ts +0 -35
- package/dist/src/_framework/vector.js +0 -112
- package/dist/src/pyth.js +0 -1
- package/dist/src/typus_perp/admin/functions.d.ts +0 -59
- package/dist/src/typus_perp/admin/functions.js +0 -122
- package/dist/src/typus_perp/admin/structs.d.ts +0 -529
- package/dist/src/typus_perp/admin/structs.js +0 -1065
- package/dist/src/typus_perp/competition/functions.d.ts +0 -24
- package/dist/src/typus_perp/competition/functions.js +0 -38
- package/dist/src/typus_perp/competition/structs.d.ts +0 -92
- package/dist/src/typus_perp/competition/structs.js +0 -288
- package/dist/src/typus_perp/error/functions.d.ts +0 -73
- package/dist/src/typus_perp/error/functions.js +0 -363
- package/dist/src/typus_perp/escrow/functions.d.ts +0 -17
- package/dist/src/typus_perp/escrow/functions.js +0 -36
- package/dist/src/typus_perp/escrow/structs.d.ts +0 -172
- package/dist/src/typus_perp/escrow/structs.js +0 -324
- package/dist/src/typus_perp/index.d.ts +0 -1
- package/dist/src/typus_perp/index.js +0 -7
- package/dist/src/typus_perp/init.d.ts +0 -2
- package/dist/src/typus_perp/init.js +0 -118
- package/dist/src/typus_perp/lending/functions.d.ts +0 -15
- package/dist/src/typus_perp/lending/functions.js +0 -22
- package/dist/src/typus_perp/lp-pool/functions.d.ts +0 -460
- package/dist/src/typus_perp/lp-pool/functions.js +0 -732
- package/dist/src/typus_perp/lp-pool/structs.d.ts +0 -4268
- package/dist/src/typus_perp/lp-pool/structs.js +0 -6789
- package/dist/src/typus_perp/math/functions.d.ts +0 -29
- package/dist/src/typus_perp/math/functions.js +0 -61
- package/dist/src/typus_perp/position/functions.d.ts +0 -379
- package/dist/src/typus_perp/position/functions.js +0 -713
- package/dist/src/typus_perp/position/structs.d.ts +0 -1064
- package/dist/src/typus_perp/position/structs.js +0 -1450
- package/dist/src/typus_perp/symbol/functions.d.ts +0 -9
- package/dist/src/typus_perp/symbol/functions.js +0 -24
- package/dist/src/typus_perp/symbol/structs.d.ts +0 -81
- package/dist/src/typus_perp/symbol/structs.js +0 -235
- package/dist/src/typus_perp/tlp/functions.d.ts +0 -19
- package/dist/src/typus_perp/tlp/functions.js +0 -40
- package/dist/src/typus_perp/tlp/structs.d.ts +0 -97
- package/dist/src/typus_perp/tlp/structs.js +0 -365
- package/dist/src/typus_perp/token-interface/functions.d.ts +0 -11
- package/dist/src/typus_perp/token-interface/functions.js +0 -22
- package/dist/src/typus_perp/trading/functions.d.ts +0 -812
- package/dist/src/typus_perp/trading/functions.js +0 -1218
- package/dist/src/typus_perp/trading/structs.d.ts +0 -3613
- package/dist/src/typus_perp/trading/structs.js +0 -5813
- package/dist/src/typus_perp/treasury-caps/functions.d.ts +0 -9
- package/dist/src/typus_perp/treasury-caps/functions.js +0 -36
- package/dist/src/typus_perp/treasury-caps/structs.d.ts +0 -55
- package/dist/src/typus_perp/treasury-caps/structs.js +0 -223
- package/dist/src/typus_perp/user-account/functions.d.ts +0 -36
- package/dist/src/typus_perp/user-account/functions.js +0 -70
- package/dist/src/typus_perp/user-account/structs.d.ts +0 -168
- package/dist/src/typus_perp/user-account/structs.js +0 -448
- package/dist/src/typus_stake_pool/admin/functions.d.ts +0 -49
- package/dist/src/typus_stake_pool/admin/functions.js +0 -105
- package/dist/src/typus_stake_pool/admin/structs.d.ts +0 -413
- package/dist/src/typus_stake_pool/admin/structs.js +0 -789
- package/dist/src/typus_stake_pool/index.d.ts +0 -1
- package/dist/src/typus_stake_pool/index.js +0 -7
- package/dist/src/typus_stake_pool/init.d.ts +0 -2
- package/dist/src/typus_stake_pool/init.js +0 -69
- package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +0 -229
- package/dist/src/typus_stake_pool/stake-pool/functions.js +0 -380
- package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +0 -2477
- package/dist/src/typus_stake_pool/stake-pool/structs.js +0 -4653
- /package/dist/src/{pyth.d.ts → grpc/ledgerService.d.ts} +0 -0
|
@@ -1,363 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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;
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,172 +0,0 @@
|
|
|
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").BcsType<{
|
|
50
|
-
receipt: {
|
|
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
|
-
}[];
|
|
65
|
-
position_id: string;
|
|
66
|
-
user: string;
|
|
67
|
-
token_types: {
|
|
68
|
-
name: {
|
|
69
|
-
bytes: number[];
|
|
70
|
-
};
|
|
71
|
-
}[];
|
|
72
|
-
unrealized_pnl_sign: boolean;
|
|
73
|
-
unrealized_pnl: string;
|
|
74
|
-
unrealized_trading_fee: string;
|
|
75
|
-
unrealized_borrow_fee: string;
|
|
76
|
-
unrealized_funding_fee_sign: boolean;
|
|
77
|
-
unrealized_funding_fee: string;
|
|
78
|
-
unrealized_liquidator_fee: string;
|
|
79
|
-
}, {
|
|
80
|
-
receipt: Iterable<{
|
|
81
|
-
id: {
|
|
82
|
-
id: {
|
|
83
|
-
bytes: string;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
vid: {
|
|
87
|
-
bytes: string;
|
|
88
|
-
};
|
|
89
|
-
index: string | number | bigint;
|
|
90
|
-
metadata: {
|
|
91
|
-
bytes: Iterable<number> & {
|
|
92
|
-
length: number;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
96
|
-
length: number;
|
|
97
|
-
};
|
|
98
|
-
}> & {
|
|
99
|
-
length: number;
|
|
100
|
-
};
|
|
101
|
-
position_id: string | number | bigint;
|
|
102
|
-
user: string;
|
|
103
|
-
token_types: Iterable<{
|
|
104
|
-
name: {
|
|
105
|
-
bytes: Iterable<number> & {
|
|
106
|
-
length: number;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
}> & {
|
|
110
|
-
length: number;
|
|
111
|
-
};
|
|
112
|
-
unrealized_pnl_sign: boolean;
|
|
113
|
-
unrealized_pnl: string | number | bigint;
|
|
114
|
-
unrealized_trading_fee: string | number | bigint;
|
|
115
|
-
unrealized_borrow_fee: string | number | bigint;
|
|
116
|
-
unrealized_funding_fee_sign: boolean;
|
|
117
|
-
unrealized_funding_fee: string | number | bigint;
|
|
118
|
-
unrealized_liquidator_fee: string | number | bigint;
|
|
119
|
-
}>;
|
|
120
|
-
static fromFields(fields: Record<string, any>): UnsettledBidReceipt;
|
|
121
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): UnsettledBidReceipt;
|
|
122
|
-
static fromBcs(data: Uint8Array): UnsettledBidReceipt;
|
|
123
|
-
toJSONField(): {
|
|
124
|
-
receipt: {
|
|
125
|
-
id: string;
|
|
126
|
-
vid: string;
|
|
127
|
-
index: string;
|
|
128
|
-
metadata: string;
|
|
129
|
-
u64Padding: string[];
|
|
130
|
-
}[];
|
|
131
|
-
positionId: string;
|
|
132
|
-
user: string;
|
|
133
|
-
tokenTypes: {
|
|
134
|
-
name: string;
|
|
135
|
-
}[];
|
|
136
|
-
unrealizedPnlSign: boolean;
|
|
137
|
-
unrealizedPnl: string;
|
|
138
|
-
unrealizedTradingFee: string;
|
|
139
|
-
unrealizedBorrowFee: string;
|
|
140
|
-
unrealizedFundingFeeSign: boolean;
|
|
141
|
-
unrealizedFundingFee: string;
|
|
142
|
-
unrealizedLiquidatorFee: string;
|
|
143
|
-
};
|
|
144
|
-
toJSON(): {
|
|
145
|
-
receipt: {
|
|
146
|
-
id: string;
|
|
147
|
-
vid: string;
|
|
148
|
-
index: string;
|
|
149
|
-
metadata: string;
|
|
150
|
-
u64Padding: string[];
|
|
151
|
-
}[];
|
|
152
|
-
positionId: string;
|
|
153
|
-
user: string;
|
|
154
|
-
tokenTypes: {
|
|
155
|
-
name: string;
|
|
156
|
-
}[];
|
|
157
|
-
unrealizedPnlSign: boolean;
|
|
158
|
-
unrealizedPnl: string;
|
|
159
|
-
unrealizedTradingFee: string;
|
|
160
|
-
unrealizedBorrowFee: string;
|
|
161
|
-
unrealizedFundingFeeSign: boolean;
|
|
162
|
-
unrealizedFundingFee: string;
|
|
163
|
-
unrealizedLiquidatorFee: string;
|
|
164
|
-
$typeName: string;
|
|
165
|
-
$typeArgs: [];
|
|
166
|
-
};
|
|
167
|
-
static fromJSONField(field: any): UnsettledBidReceipt;
|
|
168
|
-
static fromJSON(json: Record<string, any>): UnsettledBidReceipt;
|
|
169
|
-
static fromSuiParsedData(content: SuiParsedData): UnsettledBidReceipt;
|
|
170
|
-
static fromSuiObjectData(data: SuiObjectData): UnsettledBidReceipt;
|
|
171
|
-
static fetch(client: SuiClient, id: string): Promise<UnsettledBidReceipt>;
|
|
172
|
-
}
|