@typus/typus-perp-sdk 1.1.27 → 1.1.28-codegen-test
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 +2328 -0
- package/dist/src/generated/typus_perp/lp_pool.js +1956 -0
- package/dist/src/generated/typus_perp/math.d.ts +95 -0
- package/dist/src/generated/typus_perp/math.js +97 -0
- package/dist/src/generated/typus_perp/position.d.ts +234 -0
- package/dist/src/generated/typus_perp/position.js +204 -0
- package/dist/src/generated/typus_perp/symbol.d.ts +18 -0
- package/dist/src/generated/typus_perp/symbol.js +55 -0
- package/dist/src/generated/typus_perp/tlp.d.ts +13 -0
- package/dist/src/generated/typus_perp/tlp.js +56 -0
- package/dist/src/generated/typus_perp/trading.d.ts +2486 -0
- package/dist/src/generated/typus_perp/trading.js +2476 -0
- package/dist/src/generated/typus_perp/treasury_caps.d.ts +13 -0
- package/dist/src/{_framework/init-loader.js → generated/typus_perp/treasury_caps.js} +17 -10
- package/dist/src/generated/typus_perp/user_account.d.ts +40 -0
- package/dist/src/generated/typus_perp/user_account.js +72 -0
- package/dist/src/generated/typus_stake_pool/admin.d.ts +100 -0
- package/dist/src/generated/typus_stake_pool/admin.js +91 -0
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +25 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/object.js +16 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +30 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +37 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +18 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +25 -0
- package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +1023 -0
- package/dist/src/generated/typus_stake_pool/stake_pool.js +918 -0
- package/dist/src/generated/utils/index.d.ts +11 -0
- package/dist/src/generated/utils/index.js +135 -0
- package/dist/src/grpc/graphql.d.ts +26 -0
- package/dist/src/grpc/graphql.js +126 -0
- package/dist/src/grpc/grpc.d.ts +1 -0
- package/dist/src/grpc/grpc.js +38 -0
- package/dist/src/grpc/ledgerService.js +64 -0
- package/dist/src/grpc/liveDataService.d.ts +0 -0
- package/dist/src/grpc/liveDataService.js +49 -0
- package/dist/src/index.d.ts +0 -4
- package/dist/src/index.js +20 -39
- package/dist/src/user/history.js +611 -680
- package/dist/src/user/order.d.ts +11 -11
- package/dist/src/user/order.js +171 -302
- package/dist/src/user/orderWithBidReceipt.d.ts +8 -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 +13 -4
- 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
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* The `admin` module provides administrative functionalities for the Typus
|
|
6
|
+
* Perpetual Protocol. It includes version management, authority control, and fee
|
|
7
|
+
* handling.
|
|
8
|
+
*/
|
|
9
|
+
import { MoveStruct } from "../utils/index";
|
|
10
|
+
export declare const FeeInfo: MoveStruct<{
|
|
11
|
+
/** The type name of the token. */
|
|
12
|
+
token: MoveStruct<{
|
|
13
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
14
|
+
}, "std::type_name::TypeName">;
|
|
15
|
+
/** The amount of fees collected. */
|
|
16
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
17
|
+
}, "@typus/perp::admin::FeeInfo">;
|
|
18
|
+
export declare const FeePool: MoveStruct<{
|
|
19
|
+
id: MoveStruct<{
|
|
20
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
21
|
+
}, "0x2::object::UID">;
|
|
22
|
+
/** A vector of `FeeInfo` structs. */
|
|
23
|
+
fee_infos: import("@mysten/sui/bcs").BcsType<{
|
|
24
|
+
token: {
|
|
25
|
+
name: string;
|
|
26
|
+
};
|
|
27
|
+
value: string;
|
|
28
|
+
}[], Iterable<{
|
|
29
|
+
token: {
|
|
30
|
+
name: string;
|
|
31
|
+
};
|
|
32
|
+
value: string | number | bigint;
|
|
33
|
+
}> & {
|
|
34
|
+
length: number;
|
|
35
|
+
}, string>;
|
|
36
|
+
}, "@typus/perp::admin::FeePool">;
|
|
37
|
+
export declare const Version: MoveStruct<{
|
|
38
|
+
id: MoveStruct<{
|
|
39
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
40
|
+
}, "0x2::object::UID">;
|
|
41
|
+
/** The version number. */
|
|
42
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
43
|
+
/** The fee pool for protocol fees. */
|
|
44
|
+
fee_pool: MoveStruct<{
|
|
45
|
+
id: MoveStruct<{
|
|
46
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
47
|
+
}, "0x2::object::UID">;
|
|
48
|
+
/** A vector of `FeeInfo` structs. */
|
|
49
|
+
fee_infos: import("@mysten/sui/bcs").BcsType<{
|
|
50
|
+
token: {
|
|
51
|
+
name: string;
|
|
52
|
+
};
|
|
53
|
+
value: string;
|
|
54
|
+
}[], Iterable<{
|
|
55
|
+
token: {
|
|
56
|
+
name: string;
|
|
57
|
+
};
|
|
58
|
+
value: string | number | bigint;
|
|
59
|
+
}> & {
|
|
60
|
+
length: number;
|
|
61
|
+
}, string>;
|
|
62
|
+
}, "@typus/perp::admin::FeePool">;
|
|
63
|
+
/** The fee pool for liquidator fees. */
|
|
64
|
+
liquidator_fee_pool: MoveStruct<{
|
|
65
|
+
id: MoveStruct<{
|
|
66
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
67
|
+
}, "0x2::object::UID">;
|
|
68
|
+
/** A vector of `FeeInfo` structs. */
|
|
69
|
+
fee_infos: import("@mysten/sui/bcs").BcsType<{
|
|
70
|
+
token: {
|
|
71
|
+
name: string;
|
|
72
|
+
};
|
|
73
|
+
value: string;
|
|
74
|
+
}[], Iterable<{
|
|
75
|
+
token: {
|
|
76
|
+
name: string;
|
|
77
|
+
};
|
|
78
|
+
value: string | number | bigint;
|
|
79
|
+
}> & {
|
|
80
|
+
length: number;
|
|
81
|
+
}, string>;
|
|
82
|
+
}, "@typus/perp::admin::FeePool">;
|
|
83
|
+
/** The list of authorized addresses. */
|
|
84
|
+
authority: MoveStruct<{
|
|
85
|
+
contents: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
86
|
+
length: number;
|
|
87
|
+
}, string>;
|
|
88
|
+
}, "0x2::vec_set::VecSet<bytes[32]>">;
|
|
89
|
+
/** Padding for future use. */
|
|
90
|
+
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
91
|
+
length: number;
|
|
92
|
+
}, string>;
|
|
93
|
+
}, "@typus/perp::admin::Version">;
|
|
94
|
+
export declare const SendFeeEvent: MoveStruct<{
|
|
95
|
+
/** The type name of the token. */
|
|
96
|
+
token: MoveStruct<{
|
|
97
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
98
|
+
}, "std::type_name::TypeName">;
|
|
99
|
+
/** The amount of fees sent. */
|
|
100
|
+
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
101
|
+
}, "@typus/perp::admin::SendFeeEvent">;
|
|
102
|
+
export declare const ProtocolFeeEvent: MoveStruct<{
|
|
103
|
+
/** The type name of the token. */
|
|
104
|
+
token: MoveStruct<{
|
|
105
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
106
|
+
}, "std::type_name::TypeName">;
|
|
107
|
+
/** The amount of fees charged. */
|
|
108
|
+
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
109
|
+
}, "@typus/perp::admin::ProtocolFeeEvent">;
|
|
110
|
+
export declare const PutInsuranceFundEvent: MoveStruct<{
|
|
111
|
+
/** The type name of the token. */
|
|
112
|
+
token: MoveStruct<{
|
|
113
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
114
|
+
}, "std::type_name::TypeName">;
|
|
115
|
+
/** The amount of funds put into the insurance fund. */
|
|
116
|
+
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
117
|
+
}, "@typus/perp::admin::PutInsuranceFundEvent">;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**************************************************************
|
|
3
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
4
|
+
**************************************************************/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.PutInsuranceFundEvent = exports.ProtocolFeeEvent = exports.SendFeeEvent = exports.Version = exports.FeePool = exports.FeeInfo = void 0;
|
|
40
|
+
/**
|
|
41
|
+
* The `admin` module provides administrative functionalities for the Typus
|
|
42
|
+
* Perpetual Protocol. It includes version management, authority control, and fee
|
|
43
|
+
* handling.
|
|
44
|
+
*/
|
|
45
|
+
const index_1 = require("../utils/index");
|
|
46
|
+
const bcs_1 = require("@mysten/sui/bcs");
|
|
47
|
+
const type_name = __importStar(require("./deps/std/type_name"));
|
|
48
|
+
const object = __importStar(require("./deps/sui/object"));
|
|
49
|
+
const vec_set = __importStar(require("./deps/sui/vec_set"));
|
|
50
|
+
const $moduleName = "@typus/perp::admin";
|
|
51
|
+
exports.FeeInfo = new index_1.MoveStruct({
|
|
52
|
+
name: `${$moduleName}::FeeInfo`,
|
|
53
|
+
fields: {
|
|
54
|
+
/** The type name of the token. */
|
|
55
|
+
token: type_name.TypeName,
|
|
56
|
+
/** The amount of fees collected. */
|
|
57
|
+
value: bcs_1.bcs.u64(),
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
exports.FeePool = new index_1.MoveStruct({
|
|
61
|
+
name: `${$moduleName}::FeePool`,
|
|
62
|
+
fields: {
|
|
63
|
+
id: object.UID,
|
|
64
|
+
/** A vector of `FeeInfo` structs. */
|
|
65
|
+
fee_infos: bcs_1.bcs.vector(exports.FeeInfo),
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
exports.Version = new index_1.MoveStruct({
|
|
69
|
+
name: `${$moduleName}::Version`,
|
|
70
|
+
fields: {
|
|
71
|
+
id: object.UID,
|
|
72
|
+
/** The version number. */
|
|
73
|
+
value: bcs_1.bcs.u64(),
|
|
74
|
+
/** The fee pool for protocol fees. */
|
|
75
|
+
fee_pool: exports.FeePool,
|
|
76
|
+
/** The fee pool for liquidator fees. */
|
|
77
|
+
liquidator_fee_pool: exports.FeePool,
|
|
78
|
+
/** The list of authorized addresses. */
|
|
79
|
+
authority: vec_set.VecSet(bcs_1.bcs.Address),
|
|
80
|
+
/** Padding for future use. */
|
|
81
|
+
u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
exports.SendFeeEvent = new index_1.MoveStruct({
|
|
85
|
+
name: `${$moduleName}::SendFeeEvent`,
|
|
86
|
+
fields: {
|
|
87
|
+
/** The type name of the token. */
|
|
88
|
+
token: type_name.TypeName,
|
|
89
|
+
/** The amount of fees sent. */
|
|
90
|
+
amount: bcs_1.bcs.u64(),
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
exports.ProtocolFeeEvent = new index_1.MoveStruct({
|
|
94
|
+
name: `${$moduleName}::ProtocolFeeEvent`,
|
|
95
|
+
fields: {
|
|
96
|
+
/** The type name of the token. */
|
|
97
|
+
token: type_name.TypeName,
|
|
98
|
+
/** The amount of fees charged. */
|
|
99
|
+
amount: bcs_1.bcs.u64(),
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
exports.PutInsuranceFundEvent = new index_1.MoveStruct({
|
|
103
|
+
name: `${$moduleName}::PutInsuranceFundEvent`,
|
|
104
|
+
fields: {
|
|
105
|
+
/** The type name of the token. */
|
|
106
|
+
token: type_name.TypeName,
|
|
107
|
+
/** The amount of funds put into the insurance fund. */
|
|
108
|
+
amount: bcs_1.bcs.u64(),
|
|
109
|
+
},
|
|
110
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** The `competition` module defines the logic for trading competitions. */
|
|
5
|
+
import { MoveStruct } from "../utils/index";
|
|
6
|
+
export declare const CompetitionConfig: MoveStruct<{
|
|
7
|
+
id: MoveStruct<{
|
|
8
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
9
|
+
}, "0x2::object::UID">;
|
|
10
|
+
/** The boost in basis points for each staking level. */
|
|
11
|
+
boost_bp: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
12
|
+
length: number;
|
|
13
|
+
}, string>;
|
|
14
|
+
/** Whether the competition is active. */
|
|
15
|
+
is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
16
|
+
/** The name of the program. */
|
|
17
|
+
program_name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
18
|
+
/** Padding for future use. */
|
|
19
|
+
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
20
|
+
length: number;
|
|
21
|
+
}, string>;
|
|
22
|
+
}, "@typus/perp::competition::CompetitionConfig">;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**************************************************************
|
|
3
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
4
|
+
**************************************************************/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CompetitionConfig = void 0;
|
|
40
|
+
/** The `competition` module defines the logic for trading competitions. */
|
|
41
|
+
const index_1 = require("../utils/index");
|
|
42
|
+
const bcs_1 = require("@mysten/sui/bcs");
|
|
43
|
+
const object = __importStar(require("./deps/sui/object"));
|
|
44
|
+
const $moduleName = "@typus/perp::competition";
|
|
45
|
+
exports.CompetitionConfig = new index_1.MoveStruct({
|
|
46
|
+
name: `${$moduleName}::CompetitionConfig`,
|
|
47
|
+
fields: {
|
|
48
|
+
id: object.UID,
|
|
49
|
+
/** The boost in basis points for each staking level. */
|
|
50
|
+
boost_bp: bcs_1.bcs.vector(bcs_1.bcs.u64()),
|
|
51
|
+
/** Whether the competition is active. */
|
|
52
|
+
is_active: bcs_1.bcs.bool(),
|
|
53
|
+
/** The name of the program. */
|
|
54
|
+
program_name: bcs_1.bcs.string(),
|
|
55
|
+
/** Padding for future use. */
|
|
56
|
+
u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
|
|
57
|
+
},
|
|
58
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Functionality for converting Move types into values. Use with care! */
|
|
5
|
+
import { MoveStruct } from "../../../utils/index";
|
|
6
|
+
export declare const TypeName: MoveStruct<{
|
|
7
|
+
/**
|
|
8
|
+
* String representation of the type. All types are represented using their source
|
|
9
|
+
* syntax: "u8", "u64", "bool", "address", "vector", and so on for primitive types.
|
|
10
|
+
* Struct types are represented as fully qualified type names; e.g.
|
|
11
|
+
* `00000000000000000000000000000001::string::String` or
|
|
12
|
+
* `0000000000000000000000000000000a::module_name1::type_name1<0000000000000000000000000000000a::module_name2::type_name2<u64>>`
|
|
13
|
+
* Addresses are hex-encoded lowercase values of length ADDRESS_LENGTH (16, 20, or
|
|
14
|
+
* 32 depending on the Move platform)
|
|
15
|
+
*/
|
|
16
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
17
|
+
}, "std::type_name::TypeName">;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**************************************************************
|
|
3
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
4
|
+
**************************************************************/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TypeName = void 0;
|
|
7
|
+
/** Functionality for converting Move types into values. Use with care! */
|
|
8
|
+
const index_1 = require("../../../utils/index");
|
|
9
|
+
const bcs_1 = require("@mysten/sui/bcs");
|
|
10
|
+
const $moduleName = "std::type_name";
|
|
11
|
+
exports.TypeName = new index_1.MoveStruct({
|
|
12
|
+
name: `${$moduleName}::TypeName`,
|
|
13
|
+
fields: {
|
|
14
|
+
/**
|
|
15
|
+
* String representation of the type. All types are represented using their source
|
|
16
|
+
* syntax: "u8", "u64", "bool", "address", "vector", and so on for primitive types.
|
|
17
|
+
* Struct types are represented as fully qualified type names; e.g.
|
|
18
|
+
* `00000000000000000000000000000001::string::String` or
|
|
19
|
+
* `0000000000000000000000000000000a::module_name1::type_name1<0000000000000000000000000000000a::module_name2::type_name2<u64>>`
|
|
20
|
+
* Addresses are hex-encoded lowercase values of length ADDRESS_LENGTH (16, 20, or
|
|
21
|
+
* 32 depending on the Move platform)
|
|
22
|
+
*/
|
|
23
|
+
name: bcs_1.bcs.string(),
|
|
24
|
+
},
|
|
25
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* A storable handler for Balances in general. Is used in the `Coin` module to
|
|
6
|
+
* allow balance operations and can be used to implement custom coins with `Supply`
|
|
7
|
+
* and `Balance`s.
|
|
8
|
+
*/
|
|
9
|
+
import { MoveStruct } from "../../../utils/index";
|
|
10
|
+
export declare const Balance: MoveStruct<{
|
|
11
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
12
|
+
}, "0x2::balance::Balance">;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**************************************************************
|
|
3
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
4
|
+
**************************************************************/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Balance = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* A storable handler for Balances in general. Is used in the `Coin` module to
|
|
9
|
+
* allow balance operations and can be used to implement custom coins with `Supply`
|
|
10
|
+
* and `Balance`s.
|
|
11
|
+
*/
|
|
12
|
+
const index_1 = require("../../../utils/index");
|
|
13
|
+
const bcs_1 = require("@mysten/sui/bcs");
|
|
14
|
+
const $moduleName = "0x2::balance";
|
|
15
|
+
exports.Balance = new index_1.MoveStruct({
|
|
16
|
+
name: `${$moduleName}::Balance`,
|
|
17
|
+
fields: {
|
|
18
|
+
value: bcs_1.bcs.u64(),
|
|
19
|
+
},
|
|
20
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Sui object identifiers */
|
|
5
|
+
import { MoveStruct } from "../../../utils/index";
|
|
6
|
+
export declare const UID: MoveStruct<{
|
|
7
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
8
|
+
}, "0x2::object::UID">;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**************************************************************
|
|
3
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
4
|
+
**************************************************************/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UID = void 0;
|
|
7
|
+
/** Sui object identifiers */
|
|
8
|
+
const index_1 = require("../../../utils/index");
|
|
9
|
+
const bcs_1 = require("@mysten/sui/bcs");
|
|
10
|
+
const $moduleName = "0x2::object";
|
|
11
|
+
exports.UID = new index_1.MoveStruct({
|
|
12
|
+
name: `${$moduleName}::UID`,
|
|
13
|
+
fields: {
|
|
14
|
+
id: bcs_1.bcs.Address,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* Similar to `sui::table`, an `ObjectTable<K, V>` is a map-like collection. But
|
|
6
|
+
* unlike `sui::table`, the values bound to these dynamic fields _must_ be objects
|
|
7
|
+
* themselves. This allows for the objects to still exist within in storage, which
|
|
8
|
+
* may be important for external tools. The difference is otherwise not observable
|
|
9
|
+
* from within Move.
|
|
10
|
+
*/
|
|
11
|
+
import { MoveStruct } from "../../../utils/index";
|
|
12
|
+
export declare const ObjectTable: MoveStruct<{
|
|
13
|
+
/** the ID of this table */
|
|
14
|
+
id: MoveStruct<{
|
|
15
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
16
|
+
}, "0x2::object::UID">;
|
|
17
|
+
/** the number of key-value pairs in the table */
|
|
18
|
+
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
19
|
+
}, "0x2::object_table::ObjectTable">;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**************************************************************
|
|
3
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
4
|
+
**************************************************************/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ObjectTable = void 0;
|
|
40
|
+
/**
|
|
41
|
+
* Similar to `sui::table`, an `ObjectTable<K, V>` is a map-like collection. But
|
|
42
|
+
* unlike `sui::table`, the values bound to these dynamic fields _must_ be objects
|
|
43
|
+
* themselves. This allows for the objects to still exist within in storage, which
|
|
44
|
+
* may be important for external tools. The difference is otherwise not observable
|
|
45
|
+
* from within Move.
|
|
46
|
+
*/
|
|
47
|
+
const index_1 = require("../../../utils/index");
|
|
48
|
+
const bcs_1 = require("@mysten/sui/bcs");
|
|
49
|
+
const object = __importStar(require("./object"));
|
|
50
|
+
const $moduleName = "0x2::object_table";
|
|
51
|
+
exports.ObjectTable = new index_1.MoveStruct({
|
|
52
|
+
name: `${$moduleName}::ObjectTable`,
|
|
53
|
+
fields: {
|
|
54
|
+
/** the ID of this table */
|
|
55
|
+
id: object.UID,
|
|
56
|
+
/** the number of key-value pairs in the table */
|
|
57
|
+
size: bcs_1.bcs.u64(),
|
|
58
|
+
},
|
|
59
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { type BcsType } from "@mysten/sui/bcs";
|
|
5
|
+
import { MoveStruct } from "../../../utils/index";
|
|
6
|
+
/**
|
|
7
|
+
* A set data structure backed by a vector. The set is guaranteed not to contain
|
|
8
|
+
* duplicate keys. All operations are O(N) in the size of the set
|
|
9
|
+
*
|
|
10
|
+
* - the intention of this data structure is only to provide the convenience of
|
|
11
|
+
* programming against a set API. Sets that need sorted iteration rather than
|
|
12
|
+
* insertion order iteration should be handwritten.
|
|
13
|
+
*/
|
|
14
|
+
export declare function VecSet<K extends BcsType<any>>(...typeParameters: [K]): MoveStruct<{
|
|
15
|
+
contents: BcsType<import("@mysten/bcs").InferBcsType<K>[], Iterable<import("@mysten/bcs").InferBcsInput<K>> & {
|
|
16
|
+
length: number;
|
|
17
|
+
}, string>;
|
|
18
|
+
}, `0x2::vec_set::VecSet<${K["name"]}>`>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VecSet = VecSet;
|
|
4
|
+
/**************************************************************
|
|
5
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
6
|
+
**************************************************************/
|
|
7
|
+
const bcs_1 = require("@mysten/sui/bcs");
|
|
8
|
+
const index_1 = require("../../../utils/index");
|
|
9
|
+
const $moduleName = "0x2::vec_set";
|
|
10
|
+
/**
|
|
11
|
+
* A set data structure backed by a vector. The set is guaranteed not to contain
|
|
12
|
+
* duplicate keys. All operations are O(N) in the size of the set
|
|
13
|
+
*
|
|
14
|
+
* - the intention of this data structure is only to provide the convenience of
|
|
15
|
+
* programming against a set API. Sets that need sorted iteration rather than
|
|
16
|
+
* insertion order iteration should be handwritten.
|
|
17
|
+
*/
|
|
18
|
+
function VecSet(...typeParameters) {
|
|
19
|
+
return new index_1.MoveStruct({
|
|
20
|
+
name: `${$moduleName}::VecSet<${typeParameters[0].name}>`,
|
|
21
|
+
fields: {
|
|
22
|
+
contents: bcs_1.bcs.vector(typeParameters[0]),
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* This module implements a `KeyedBigVector`, a data structure that combines the
|
|
6
|
+
* features of a `BigVector` and a `Table`. It allows for both indexed and keyed
|
|
7
|
+
* access to a large number of elements by storing them in slices, while
|
|
8
|
+
* maintaining a mapping from keys to indices in a `Table`.
|
|
9
|
+
*/
|
|
10
|
+
import { MoveStruct } from "../../../utils/index";
|
|
11
|
+
export declare const KeyedBigVector: MoveStruct<{
|
|
12
|
+
/** The unique identifier of the KeyedBigVector object. */
|
|
13
|
+
id: MoveStruct<{
|
|
14
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
15
|
+
}, "0x2::object::UID">;
|
|
16
|
+
/** The type name of the keys. */
|
|
17
|
+
key_type: MoveStruct<{
|
|
18
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
19
|
+
}, "std::type_name::TypeName">;
|
|
20
|
+
/** The type name of the values. */
|
|
21
|
+
value_type: MoveStruct<{
|
|
22
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
23
|
+
}, "std::type_name::TypeName">;
|
|
24
|
+
/** The index of the latest slice. */
|
|
25
|
+
slice_idx: import("@mysten/sui/bcs").BcsType<number, number, "u16">;
|
|
26
|
+
/** The maximum size of each slice. */
|
|
27
|
+
slice_size: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
|
|
28
|
+
/** The total number of elements in the KeyedBigVector. */
|
|
29
|
+
length: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
30
|
+
}, "typus::keyed_big_vector::KeyedBigVector">;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**************************************************************
|
|
3
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
4
|
+
**************************************************************/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.KeyedBigVector = void 0;
|
|
40
|
+
/**
|
|
41
|
+
* This module implements a `KeyedBigVector`, a data structure that combines the
|
|
42
|
+
* features of a `BigVector` and a `Table`. It allows for both indexed and keyed
|
|
43
|
+
* access to a large number of elements by storing them in slices, while
|
|
44
|
+
* maintaining a mapping from keys to indices in a `Table`.
|
|
45
|
+
*/
|
|
46
|
+
const index_1 = require("../../../utils/index");
|
|
47
|
+
const bcs_1 = require("@mysten/sui/bcs");
|
|
48
|
+
const object = __importStar(require("../sui/object"));
|
|
49
|
+
const type_name = __importStar(require("../std/type_name"));
|
|
50
|
+
const $moduleName = "typus::keyed_big_vector";
|
|
51
|
+
exports.KeyedBigVector = new index_1.MoveStruct({
|
|
52
|
+
name: `${$moduleName}::KeyedBigVector`,
|
|
53
|
+
fields: {
|
|
54
|
+
/** The unique identifier of the KeyedBigVector object. */
|
|
55
|
+
id: object.UID,
|
|
56
|
+
/** The type name of the keys. */
|
|
57
|
+
key_type: type_name.TypeName,
|
|
58
|
+
/** The type name of the values. */
|
|
59
|
+
value_type: type_name.TypeName,
|
|
60
|
+
/** The index of the latest slice. */
|
|
61
|
+
slice_idx: bcs_1.bcs.u16(),
|
|
62
|
+
/** The maximum size of each slice. */
|
|
63
|
+
slice_size: bcs_1.bcs.u32(),
|
|
64
|
+
/** The total number of elements in the KeyedBigVector. */
|
|
65
|
+
length: bcs_1.bcs.u64(),
|
|
66
|
+
},
|
|
67
|
+
});
|