@typus/typus-perp-sdk 1.1.30 → 1.1.31-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 +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 -6
- package/dist/src/user/orderWithBidReceipt.js +127 -226
- package/dist/src/user/tlp.d.ts +32 -23
- package/dist/src/user/tlp.js +316 -468
- package/package.json +44 -36
- package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +0 -88
- 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 -50
- package/dist/src/_dependencies/source/0x1/option/structs.js +0 -271
- package/dist/src/_dependencies/source/0x1/string/structs.d.ts +0 -48
- package/dist/src/_dependencies/source/0x1/string/structs.js +0 -256
- package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +0 -49
- package/dist/src/_dependencies/source/0x1/type-name/structs.js +0 -223
- package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +0 -54
- package/dist/src/_dependencies/source/0x2/bag/structs.js +0 -229
- package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +0 -84
- package/dist/src/_dependencies/source/0x2/balance/structs.js +0 -386
- package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +0 -406
- 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 -132
- package/dist/src/_dependencies/source/0x2/linked-table/structs.js +0 -438
- package/dist/src/_dependencies/source/0x2/object/structs.d.ts +0 -86
- package/dist/src/_dependencies/source/0x2/object/structs.js +0 -364
- package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +0 -54
- package/dist/src/_dependencies/source/0x2/object-table/structs.js +0 -248
- package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +0 -44
- package/dist/src/_dependencies/source/0x2/sui/structs.js +0 -222
- package/dist/src/_dependencies/source/0x2/table/structs.d.ts +0 -54
- package/dist/src/_dependencies/source/0x2/table/structs.js +0 -248
- package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +0 -59
- package/dist/src/_dependencies/source/0x2/table-vec/structs.js +0 -274
- package/dist/src/_dependencies/source/0x2/token/structs.d.ts +0 -421
- package/dist/src/_dependencies/source/0x2/token/structs.js +0 -1095
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -348
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -1091
- package/dist/src/_dependencies/source/0x2/url/structs.d.ts +0 -49
- package/dist/src/_dependencies/source/0x2/url/structs.js +0 -223
- package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +0 -106
- package/dist/src/_dependencies/source/0x2/vec-map/structs.js +0 -446
- package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +0 -49
- package/dist/src/_dependencies/source/0x2/vec-set/structs.js +0 -270
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +0 -422
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.js +0 -1084
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +0 -130
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.js +0 -456
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +0 -208
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +0 -653
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +0 -362
- 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 -202
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.js +0 -632
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +0 -600
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.js +0 -1459
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.d.ts +0 -136
- 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 -127
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.js +0 -430
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +0 -957
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.js +0 -2261
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +0 -244
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +0 -733
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +0 -294
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +0 -892
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +0 -73
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.js +0 -263
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +0 -294
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.js +0 -591
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +0 -64
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.js +0 -258
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +0 -756
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +0 -1721
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +0 -44
- 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 -135
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.js +0 -444
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.d.ts +0 -2106
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.js +0 -4952
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +0 -390
- 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 -89
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.js +0 -376
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +0 -386
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.js +0 -881
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +0 -59
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.js +0 -274
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +0 -974
- 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 -42
- 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 -467
- 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 -80
- 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 -160
- 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 -3705
- 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 -905
- 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 -70
- 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 -89
- 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 -3060
- 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 -49
- 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 -148
- 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 -365
- 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 -2199
- 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,13 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* The `treasury_caps` module defines the `TreasuryCaps` struct, which is a shared
|
|
6
|
+
* object that stores the treasury caps for the TLP tokens.
|
|
7
|
+
*/
|
|
8
|
+
import { MoveStruct } from "../utils/index";
|
|
9
|
+
export declare const TreasuryCaps: MoveStruct<{
|
|
10
|
+
id: MoveStruct<{
|
|
11
|
+
id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
|
+
}, "0x2::object::UID">;
|
|
13
|
+
}, "@typus/perp::treasury_caps::TreasuryCaps">;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**************************************************************
|
|
3
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
4
|
+
**************************************************************/
|
|
2
5
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
6
|
if (k2 === undefined) k2 = k;
|
|
4
7
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -33,13 +36,17 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
36
|
};
|
|
34
37
|
})();
|
|
35
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
39
|
+
exports.TreasuryCaps = void 0;
|
|
40
|
+
/**
|
|
41
|
+
* The `treasury_caps` module defines the `TreasuryCaps` struct, which is a shared
|
|
42
|
+
* object that stores the treasury caps for the TLP tokens.
|
|
43
|
+
*/
|
|
44
|
+
const index_1 = require("../utils/index");
|
|
45
|
+
const object = __importStar(require("./deps/sui/object"));
|
|
46
|
+
const $moduleName = "@typus/perp::treasury_caps";
|
|
47
|
+
exports.TreasuryCaps = new index_1.MoveStruct({
|
|
48
|
+
name: `${$moduleName}::TreasuryCaps`,
|
|
49
|
+
fields: {
|
|
50
|
+
id: object.UID,
|
|
51
|
+
},
|
|
52
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* The `user_account` module defines the `UserAccount` and `UserAccountCap`
|
|
6
|
+
* structs, and the logic for creating, updating, and using them.
|
|
7
|
+
*/
|
|
8
|
+
import { MoveStruct } from "../utils/index";
|
|
9
|
+
export declare const UserAccount: MoveStruct<{
|
|
10
|
+
id: MoveStruct<{
|
|
11
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
|
+
}, "0x2::object::UID">;
|
|
13
|
+
/** The address of the owner of the user account. */
|
|
14
|
+
owner: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
15
|
+
/** A vector of the delegate users. */
|
|
16
|
+
delegate_user: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
17
|
+
length: number;
|
|
18
|
+
}, string>;
|
|
19
|
+
/** A vector of the symbols of the tokens in the user account. */
|
|
20
|
+
symbols: import("@mysten/sui/bcs").BcsType<{
|
|
21
|
+
name: string;
|
|
22
|
+
}[], Iterable<{
|
|
23
|
+
name: string;
|
|
24
|
+
}> & {
|
|
25
|
+
length: number;
|
|
26
|
+
}, string>;
|
|
27
|
+
/** Padding for future use. */
|
|
28
|
+
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
29
|
+
length: number;
|
|
30
|
+
}, string>;
|
|
31
|
+
}, "@typus/perp::user_account::UserAccount">;
|
|
32
|
+
export declare const UserAccountCap: MoveStruct<{
|
|
33
|
+
id: MoveStruct<{
|
|
34
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
35
|
+
}, "0x2::object::UID">;
|
|
36
|
+
/** The address of the owner of the user account. */
|
|
37
|
+
owner: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
38
|
+
/** The ID of the user account. */
|
|
39
|
+
user_account_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
40
|
+
}, "@typus/perp::user_account::UserAccountCap">;
|
|
@@ -0,0 +1,72 @@
|
|
|
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.UserAccountCap = exports.UserAccount = void 0;
|
|
40
|
+
/**
|
|
41
|
+
* The `user_account` module defines the `UserAccount` and `UserAccountCap`
|
|
42
|
+
* structs, and the logic for creating, updating, and using them.
|
|
43
|
+
*/
|
|
44
|
+
const index_1 = require("../utils/index");
|
|
45
|
+
const bcs_1 = require("@mysten/sui/bcs");
|
|
46
|
+
const object = __importStar(require("./deps/sui/object"));
|
|
47
|
+
const type_name = __importStar(require("./deps/std/type_name"));
|
|
48
|
+
const $moduleName = "@typus/perp::user_account";
|
|
49
|
+
exports.UserAccount = new index_1.MoveStruct({
|
|
50
|
+
name: `${$moduleName}::UserAccount`,
|
|
51
|
+
fields: {
|
|
52
|
+
id: object.UID,
|
|
53
|
+
/** The address of the owner of the user account. */
|
|
54
|
+
owner: bcs_1.bcs.Address,
|
|
55
|
+
/** A vector of the delegate users. */
|
|
56
|
+
delegate_user: bcs_1.bcs.vector(bcs_1.bcs.Address),
|
|
57
|
+
/** A vector of the symbols of the tokens in the user account. */
|
|
58
|
+
symbols: bcs_1.bcs.vector(type_name.TypeName),
|
|
59
|
+
/** Padding for future use. */
|
|
60
|
+
u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
exports.UserAccountCap = new index_1.MoveStruct({
|
|
64
|
+
name: `${$moduleName}::UserAccountCap`,
|
|
65
|
+
fields: {
|
|
66
|
+
id: object.UID,
|
|
67
|
+
/** The address of the owner of the user account. */
|
|
68
|
+
owner: bcs_1.bcs.Address,
|
|
69
|
+
/** The ID of the user account. */
|
|
70
|
+
user_account_id: bcs_1.bcs.Address,
|
|
71
|
+
},
|
|
72
|
+
});
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* The `admin` module provides administrative functionalities for the Typus Stake
|
|
6
|
+
* Pool. It includes version management, authority control, and fee handling.
|
|
7
|
+
*/
|
|
8
|
+
import { MoveStruct } from "../utils/index";
|
|
9
|
+
export declare const FeeInfo: MoveStruct<{
|
|
10
|
+
/** The type name of the token. */
|
|
11
|
+
token: MoveStruct<{
|
|
12
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
13
|
+
}, "std::type_name::TypeName">;
|
|
14
|
+
/** The amount of fees collected. */
|
|
15
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
16
|
+
}, "@typus/stake-pool::admin::FeeInfo">;
|
|
17
|
+
export declare const FeePool: MoveStruct<{
|
|
18
|
+
id: MoveStruct<{
|
|
19
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
20
|
+
}, "0x2::object::UID">;
|
|
21
|
+
/** A vector of `FeeInfo` structs. */
|
|
22
|
+
fee_infos: import("@mysten/sui/bcs").BcsType<{
|
|
23
|
+
token: {
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
26
|
+
value: string;
|
|
27
|
+
}[], Iterable<{
|
|
28
|
+
token: {
|
|
29
|
+
name: string;
|
|
30
|
+
};
|
|
31
|
+
value: string | number | bigint;
|
|
32
|
+
}> & {
|
|
33
|
+
length: number;
|
|
34
|
+
}, string>;
|
|
35
|
+
}, "@typus/stake-pool::admin::FeePool">;
|
|
36
|
+
export declare const Version: MoveStruct<{
|
|
37
|
+
id: MoveStruct<{
|
|
38
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
39
|
+
}, "0x2::object::UID">;
|
|
40
|
+
/** The version number. */
|
|
41
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
42
|
+
/** The fee pool for protocol fees. */
|
|
43
|
+
fee_pool: MoveStruct<{
|
|
44
|
+
id: MoveStruct<{
|
|
45
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
46
|
+
}, "0x2::object::UID">;
|
|
47
|
+
/** A vector of `FeeInfo` structs. */
|
|
48
|
+
fee_infos: import("@mysten/sui/bcs").BcsType<{
|
|
49
|
+
token: {
|
|
50
|
+
name: string;
|
|
51
|
+
};
|
|
52
|
+
value: string;
|
|
53
|
+
}[], Iterable<{
|
|
54
|
+
token: {
|
|
55
|
+
name: string;
|
|
56
|
+
};
|
|
57
|
+
value: string | number | bigint;
|
|
58
|
+
}> & {
|
|
59
|
+
length: number;
|
|
60
|
+
}, string>;
|
|
61
|
+
}, "@typus/stake-pool::admin::FeePool">;
|
|
62
|
+
/** The fee pool for liquidator fees. */
|
|
63
|
+
liquidator_fee_pool: MoveStruct<{
|
|
64
|
+
id: MoveStruct<{
|
|
65
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
66
|
+
}, "0x2::object::UID">;
|
|
67
|
+
/** A vector of `FeeInfo` structs. */
|
|
68
|
+
fee_infos: import("@mysten/sui/bcs").BcsType<{
|
|
69
|
+
token: {
|
|
70
|
+
name: string;
|
|
71
|
+
};
|
|
72
|
+
value: string;
|
|
73
|
+
}[], Iterable<{
|
|
74
|
+
token: {
|
|
75
|
+
name: string;
|
|
76
|
+
};
|
|
77
|
+
value: string | number | bigint;
|
|
78
|
+
}> & {
|
|
79
|
+
length: number;
|
|
80
|
+
}, string>;
|
|
81
|
+
}, "@typus/stake-pool::admin::FeePool">;
|
|
82
|
+
/** The list of authorized addresses. */
|
|
83
|
+
authority: MoveStruct<{
|
|
84
|
+
contents: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
85
|
+
length: number;
|
|
86
|
+
}, string>;
|
|
87
|
+
}, "0x2::vec_set::VecSet<bytes[32]>">;
|
|
88
|
+
/** Padding for future use. */
|
|
89
|
+
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
90
|
+
length: number;
|
|
91
|
+
}, string>;
|
|
92
|
+
}, "@typus/stake-pool::admin::Version">;
|
|
93
|
+
export declare const SendFeeEvent: MoveStruct<{
|
|
94
|
+
/** The type name of the token. */
|
|
95
|
+
token: MoveStruct<{
|
|
96
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
97
|
+
}, "std::type_name::TypeName">;
|
|
98
|
+
/** The amount of fees sent. */
|
|
99
|
+
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
100
|
+
}, "@typus/stake-pool::admin::SendFeeEvent">;
|
|
@@ -0,0 +1,91 @@
|
|
|
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.SendFeeEvent = exports.Version = exports.FeePool = exports.FeeInfo = void 0;
|
|
40
|
+
/**
|
|
41
|
+
* The `admin` module provides administrative functionalities for the Typus Stake
|
|
42
|
+
* Pool. It includes version management, authority control, and fee handling.
|
|
43
|
+
*/
|
|
44
|
+
const index_1 = require("../utils/index");
|
|
45
|
+
const bcs_1 = require("@mysten/sui/bcs");
|
|
46
|
+
const type_name = __importStar(require("./deps/std/type_name"));
|
|
47
|
+
const object = __importStar(require("./deps/sui/object"));
|
|
48
|
+
const vec_set = __importStar(require("./deps/sui/vec_set"));
|
|
49
|
+
const $moduleName = "@typus/stake-pool::admin";
|
|
50
|
+
exports.FeeInfo = new index_1.MoveStruct({
|
|
51
|
+
name: `${$moduleName}::FeeInfo`,
|
|
52
|
+
fields: {
|
|
53
|
+
/** The type name of the token. */
|
|
54
|
+
token: type_name.TypeName,
|
|
55
|
+
/** The amount of fees collected. */
|
|
56
|
+
value: bcs_1.bcs.u64(),
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
exports.FeePool = new index_1.MoveStruct({
|
|
60
|
+
name: `${$moduleName}::FeePool`,
|
|
61
|
+
fields: {
|
|
62
|
+
id: object.UID,
|
|
63
|
+
/** A vector of `FeeInfo` structs. */
|
|
64
|
+
fee_infos: bcs_1.bcs.vector(exports.FeeInfo),
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
exports.Version = new index_1.MoveStruct({
|
|
68
|
+
name: `${$moduleName}::Version`,
|
|
69
|
+
fields: {
|
|
70
|
+
id: object.UID,
|
|
71
|
+
/** The version number. */
|
|
72
|
+
value: bcs_1.bcs.u64(),
|
|
73
|
+
/** The fee pool for protocol fees. */
|
|
74
|
+
fee_pool: exports.FeePool,
|
|
75
|
+
/** The fee pool for liquidator fees. */
|
|
76
|
+
liquidator_fee_pool: exports.FeePool,
|
|
77
|
+
/** The list of authorized addresses. */
|
|
78
|
+
authority: vec_set.VecSet(bcs_1.bcs.Address),
|
|
79
|
+
/** Padding for future use. */
|
|
80
|
+
u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
exports.SendFeeEvent = new index_1.MoveStruct({
|
|
84
|
+
name: `${$moduleName}::SendFeeEvent`,
|
|
85
|
+
fields: {
|
|
86
|
+
/** The type name of the token. */
|
|
87
|
+
token: type_name.TypeName,
|
|
88
|
+
/** The amount of fees sent. */
|
|
89
|
+
amount: bcs_1.bcs.u64(),
|
|
90
|
+
},
|
|
91
|
+
});
|
|
@@ -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,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,30 @@
|
|
|
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
|
+
/** An entry in the map */
|
|
7
|
+
export declare function Entry<K extends BcsType<any>, V extends BcsType<any>>(...typeParameters: [K, V]): MoveStruct<{
|
|
8
|
+
key: K;
|
|
9
|
+
value: V;
|
|
10
|
+
}, `0x2::vec_map::Entry<${K["name"]}, ${V["name"]}>`>;
|
|
11
|
+
/**
|
|
12
|
+
* A map data structure backed by a vector. The map is guaranteed not to contain
|
|
13
|
+
* duplicate keys, but entries are _not_ sorted by key--entries are included in
|
|
14
|
+
* insertion order. All operations are O(N) in the size of the map--the intention
|
|
15
|
+
* of this data structure is only to provide the convenience of programming against
|
|
16
|
+
* a map API. Large maps should use handwritten parent/child relationships instead.
|
|
17
|
+
* Maps that need sorted iteration rather than insertion order iteration should
|
|
18
|
+
* also be handwritten.
|
|
19
|
+
*/
|
|
20
|
+
export declare function VecMap<K extends BcsType<any>, V extends BcsType<any>>(...typeParameters: [K, V]): MoveStruct<{
|
|
21
|
+
contents: BcsType<{
|
|
22
|
+
key: K extends BcsType<infer U, any, string> ? U : never;
|
|
23
|
+
value: V extends BcsType<infer U, any, string> ? U : never;
|
|
24
|
+
}[], Iterable<{
|
|
25
|
+
key: K extends BcsType<any, infer U_1, string> ? U_1 : never;
|
|
26
|
+
value: V extends BcsType<any, infer U_1, string> ? U_1 : never;
|
|
27
|
+
}> & {
|
|
28
|
+
length: number;
|
|
29
|
+
}, string>;
|
|
30
|
+
}, `0x2::vec_map::VecMap<${K["name"]}, ${V["name"]}>`>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Entry = Entry;
|
|
4
|
+
exports.VecMap = VecMap;
|
|
5
|
+
/**************************************************************
|
|
6
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
7
|
+
**************************************************************/
|
|
8
|
+
const bcs_1 = require("@mysten/sui/bcs");
|
|
9
|
+
const index_1 = require("../../../utils/index");
|
|
10
|
+
const $moduleName = "0x2::vec_map";
|
|
11
|
+
/** An entry in the map */
|
|
12
|
+
function Entry(...typeParameters) {
|
|
13
|
+
return new index_1.MoveStruct({
|
|
14
|
+
name: `${$moduleName}::Entry<${typeParameters[0].name}, ${typeParameters[1].name}>`,
|
|
15
|
+
fields: {
|
|
16
|
+
key: typeParameters[0],
|
|
17
|
+
value: typeParameters[1],
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A map data structure backed by a vector. The map is guaranteed not to contain
|
|
23
|
+
* duplicate keys, but entries are _not_ sorted by key--entries are included in
|
|
24
|
+
* insertion order. All operations are O(N) in the size of the map--the intention
|
|
25
|
+
* of this data structure is only to provide the convenience of programming against
|
|
26
|
+
* a map API. Large maps should use handwritten parent/child relationships instead.
|
|
27
|
+
* Maps that need sorted iteration rather than insertion order iteration should
|
|
28
|
+
* also be handwritten.
|
|
29
|
+
*/
|
|
30
|
+
function VecMap(...typeParameters) {
|
|
31
|
+
return new index_1.MoveStruct({
|
|
32
|
+
name: `${$moduleName}::VecMap<${typeParameters[0].name}, ${typeParameters[1].name}>`,
|
|
33
|
+
fields: {
|
|
34
|
+
contents: bcs_1.bcs.vector(Entry(typeParameters[0], typeParameters[1])),
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -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
|
+
}
|