@typus/typus-perp-sdk 1.1.29 → 1.1.30-codegen
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/api/sentio.js +604 -538
- package/dist/src/client.d.ts +27 -0
- package/dist/src/client.js +108 -0
- package/dist/src/fetch.d.ts +160 -34
- package/dist/src/fetch.js +365 -665
- package/dist/src/generated/typus_perp/admin.d.ts +117 -0
- package/dist/src/generated/typus_perp/admin.js +110 -0
- package/dist/src/generated/typus_perp/competition.d.ts +22 -0
- package/dist/src/generated/typus_perp/competition.js +58 -0
- package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/typus_perp/deps/std/type_name.js +25 -0
- package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +12 -0
- package/dist/src/generated/typus_perp/deps/sui/balance.js +20 -0
- package/dist/src/generated/typus_perp/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_perp/deps/sui/object.js +16 -0
- package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +19 -0
- package/dist/src/generated/typus_perp/deps/sui/object_table.js +59 -0
- package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +18 -0
- package/dist/src/generated/typus_perp/deps/sui/vec_set.js +25 -0
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +30 -0
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +67 -0
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +32 -0
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +71 -0
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +23 -0
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +61 -0
- package/dist/src/generated/typus_perp/escrow.d.ts +59 -0
- package/dist/src/generated/typus_perp/escrow.js +76 -0
- package/dist/src/generated/typus_perp/lending.d.ts +47 -0
- package/dist/src/generated/typus_perp/lending.js +50 -0
- package/dist/src/generated/typus_perp/lp_pool.d.ts +2327 -0
- package/dist/src/generated/typus_perp/lp_pool.js +1956 -0
- package/dist/src/generated/typus_perp/math.d.ts +95 -0
- package/dist/src/generated/typus_perp/math.js +97 -0
- package/dist/src/generated/typus_perp/position.d.ts +234 -0
- package/dist/src/generated/typus_perp/position.js +204 -0
- package/dist/src/generated/typus_perp/symbol.d.ts +18 -0
- package/dist/src/generated/typus_perp/symbol.js +55 -0
- package/dist/src/generated/typus_perp/tlp.d.ts +13 -0
- package/dist/src/generated/typus_perp/tlp.js +56 -0
- package/dist/src/generated/typus_perp/trading.d.ts +2486 -0
- package/dist/src/generated/typus_perp/trading.js +2476 -0
- package/dist/src/generated/typus_perp/treasury_caps.d.ts +13 -0
- package/dist/src/{_framework/init-loader.js → generated/typus_perp/treasury_caps.js} +17 -10
- package/dist/src/generated/typus_perp/user_account.d.ts +40 -0
- package/dist/src/generated/typus_perp/user_account.js +72 -0
- package/dist/src/generated/typus_stake_pool/admin.d.ts +100 -0
- package/dist/src/generated/typus_stake_pool/admin.js +91 -0
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +17 -0
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +25 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/object.js +16 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +30 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +37 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +18 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +25 -0
- package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +1023 -0
- package/dist/src/generated/typus_stake_pool/stake_pool.js +918 -0
- package/dist/src/generated/utils/index.d.ts +11 -0
- package/dist/src/generated/utils/index.js +135 -0
- package/dist/src/grpc/graphql.d.ts +26 -0
- package/dist/src/grpc/graphql.js +126 -0
- package/dist/src/grpc/grpc.d.ts +1 -0
- package/dist/src/grpc/grpc.js +38 -0
- package/dist/src/grpc/ledgerService.js +64 -0
- package/dist/src/grpc/liveDataService.d.ts +0 -0
- package/dist/src/grpc/liveDataService.js +49 -0
- package/dist/src/index.d.ts +1 -4
- package/dist/src/index.js +21 -39
- package/dist/src/user/history.js +611 -680
- package/dist/src/user/order.d.ts +11 -11
- package/dist/src/user/order.js +171 -302
- package/dist/src/user/orderWithBidReceipt.d.ts +8 -5
- package/dist/src/user/orderWithBidReceipt.js +127 -225
- package/dist/src/user/tlp.d.ts +32 -23
- package/dist/src/user/tlp.js +316 -468
- package/package.json +12 -3
- package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +0 -92
- package/dist/src/_dependencies/source/0x1/ascii/structs.js +0 -398
- package/dist/src/_dependencies/source/0x1/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0x1/index.js +0 -6
- package/dist/src/_dependencies/source/0x1/option/structs.d.ts +0 -52
- package/dist/src/_dependencies/source/0x1/option/structs.js +0 -271
- package/dist/src/_dependencies/source/0x1/string/structs.d.ts +0 -50
- package/dist/src/_dependencies/source/0x1/string/structs.js +0 -256
- package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +0 -53
- package/dist/src/_dependencies/source/0x1/type-name/structs.js +0 -223
- package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +0 -61
- package/dist/src/_dependencies/source/0x2/bag/structs.js +0 -229
- package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +0 -88
- package/dist/src/_dependencies/source/0x2/balance/structs.js +0 -386
- package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +0 -460
- package/dist/src/_dependencies/source/0x2/coin/structs.js +0 -1247
- package/dist/src/_dependencies/source/0x2/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0x2/index.js +0 -6
- package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +0 -153
- package/dist/src/_dependencies/source/0x2/linked-table/structs.js +0 -438
- package/dist/src/_dependencies/source/0x2/object/structs.d.ts +0 -92
- package/dist/src/_dependencies/source/0x2/object/structs.js +0 -364
- package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +0 -61
- package/dist/src/_dependencies/source/0x2/object-table/structs.js +0 -248
- package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0x2/sui/structs.js +0 -222
- package/dist/src/_dependencies/source/0x2/table/structs.d.ts +0 -61
- package/dist/src/_dependencies/source/0x2/table/structs.js +0 -248
- package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +0 -68
- package/dist/src/_dependencies/source/0x2/table-vec/structs.js +0 -274
- package/dist/src/_dependencies/source/0x2/token/structs.d.ts +0 -449
- package/dist/src/_dependencies/source/0x2/token/structs.js +0 -1095
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -370
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -1091
- package/dist/src/_dependencies/source/0x2/url/structs.d.ts +0 -53
- package/dist/src/_dependencies/source/0x2/url/structs.js +0 -223
- package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +0 -111
- package/dist/src/_dependencies/source/0x2/vec-map/structs.js +0 -446
- package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +0 -51
- package/dist/src/_dependencies/source/0x2/vec-set/structs.js +0 -270
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +0 -489
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.js +0 -1084
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +0 -147
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.js +0 -456
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +0 -239
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +0 -653
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +0 -405
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.js +0 -899
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.d.ts +0 -8
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.js +0 -11
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.js +0 -102
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.d.ts +0 -227
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.js +0 -632
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +0 -699
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.js +0 -1459
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.d.ts +0 -161
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.js +0 -438
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.d.ts +0 -147
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.js +0 -430
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +0 -1071
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.js +0 -2261
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +0 -279
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +0 -733
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +0 -328
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +0 -892
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +0 -88
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.js +0 -263
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +0 -347
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.js +0 -591
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +0 -73
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.js +0 -258
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +0 -876
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +0 -1721
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +0 -46
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.js +0 -222
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.js +0 -6
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.js +0 -89
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.d.ts +0 -155
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.js +0 -444
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.d.ts +0 -2386
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.js +0 -4952
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +0 -446
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.js +0 -844
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.d.ts +0 -6
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.js +0 -9
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.d.ts +0 -2
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.js +0 -69
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.d.ts +0 -94
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.js +0 -376
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +0 -454
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.js +0 -881
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +0 -68
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.js +0 -274
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +0 -1117
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.js +0 -2387
- package/dist/src/_framework/init-loader.d.ts +0 -2
- package/dist/src/_framework/loader.d.ts +0 -17
- package/dist/src/_framework/loader.js +0 -108
- package/dist/src/_framework/reified.d.ts +0 -108
- package/dist/src/_framework/reified.js +0 -237
- package/dist/src/_framework/util.d.ts +0 -35
- package/dist/src/_framework/util.js +0 -396
- package/dist/src/_framework/vector.d.ts +0 -35
- package/dist/src/_framework/vector.js +0 -112
- package/dist/src/pyth.js +0 -1
- package/dist/src/typus_perp/admin/functions.d.ts +0 -59
- package/dist/src/typus_perp/admin/functions.js +0 -122
- package/dist/src/typus_perp/admin/structs.d.ts +0 -529
- package/dist/src/typus_perp/admin/structs.js +0 -1065
- package/dist/src/typus_perp/competition/functions.d.ts +0 -24
- package/dist/src/typus_perp/competition/functions.js +0 -38
- package/dist/src/typus_perp/competition/structs.d.ts +0 -92
- package/dist/src/typus_perp/competition/structs.js +0 -288
- package/dist/src/typus_perp/error/functions.d.ts +0 -73
- package/dist/src/typus_perp/error/functions.js +0 -363
- package/dist/src/typus_perp/escrow/functions.d.ts +0 -17
- package/dist/src/typus_perp/escrow/functions.js +0 -36
- package/dist/src/typus_perp/escrow/structs.d.ts +0 -172
- package/dist/src/typus_perp/escrow/structs.js +0 -324
- package/dist/src/typus_perp/index.d.ts +0 -1
- package/dist/src/typus_perp/index.js +0 -7
- package/dist/src/typus_perp/init.d.ts +0 -2
- package/dist/src/typus_perp/init.js +0 -118
- package/dist/src/typus_perp/lending/functions.d.ts +0 -15
- package/dist/src/typus_perp/lending/functions.js +0 -22
- package/dist/src/typus_perp/lp-pool/functions.d.ts +0 -460
- package/dist/src/typus_perp/lp-pool/functions.js +0 -732
- package/dist/src/typus_perp/lp-pool/structs.d.ts +0 -4268
- package/dist/src/typus_perp/lp-pool/structs.js +0 -6789
- package/dist/src/typus_perp/math/functions.d.ts +0 -29
- package/dist/src/typus_perp/math/functions.js +0 -61
- package/dist/src/typus_perp/position/functions.d.ts +0 -379
- package/dist/src/typus_perp/position/functions.js +0 -713
- package/dist/src/typus_perp/position/structs.d.ts +0 -1064
- package/dist/src/typus_perp/position/structs.js +0 -1450
- package/dist/src/typus_perp/symbol/functions.d.ts +0 -9
- package/dist/src/typus_perp/symbol/functions.js +0 -24
- package/dist/src/typus_perp/symbol/structs.d.ts +0 -81
- package/dist/src/typus_perp/symbol/structs.js +0 -235
- package/dist/src/typus_perp/tlp/functions.d.ts +0 -19
- package/dist/src/typus_perp/tlp/functions.js +0 -40
- package/dist/src/typus_perp/tlp/structs.d.ts +0 -97
- package/dist/src/typus_perp/tlp/structs.js +0 -365
- package/dist/src/typus_perp/token-interface/functions.d.ts +0 -11
- package/dist/src/typus_perp/token-interface/functions.js +0 -22
- package/dist/src/typus_perp/trading/functions.d.ts +0 -812
- package/dist/src/typus_perp/trading/functions.js +0 -1218
- package/dist/src/typus_perp/trading/structs.d.ts +0 -3613
- package/dist/src/typus_perp/trading/structs.js +0 -5813
- package/dist/src/typus_perp/treasury-caps/functions.d.ts +0 -9
- package/dist/src/typus_perp/treasury-caps/functions.js +0 -36
- package/dist/src/typus_perp/treasury-caps/structs.d.ts +0 -55
- package/dist/src/typus_perp/treasury-caps/structs.js +0 -223
- package/dist/src/typus_perp/user-account/functions.d.ts +0 -36
- package/dist/src/typus_perp/user-account/functions.js +0 -70
- package/dist/src/typus_perp/user-account/structs.d.ts +0 -168
- package/dist/src/typus_perp/user-account/structs.js +0 -448
- package/dist/src/typus_stake_pool/admin/functions.d.ts +0 -49
- package/dist/src/typus_stake_pool/admin/functions.js +0 -105
- package/dist/src/typus_stake_pool/admin/structs.d.ts +0 -413
- package/dist/src/typus_stake_pool/admin/structs.js +0 -789
- package/dist/src/typus_stake_pool/index.d.ts +0 -1
- package/dist/src/typus_stake_pool/index.js +0 -7
- package/dist/src/typus_stake_pool/init.d.ts +0 -2
- package/dist/src/typus_stake_pool/init.js +0 -69
- package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +0 -229
- package/dist/src/typus_stake_pool/stake-pool/functions.js +0 -380
- package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +0 -2477
- package/dist/src/typus_stake_pool/stake-pool/structs.js +0 -4653
- /package/dist/src/{pyth.d.ts → grpc/ledgerService.d.ts} +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Transaction, TransactionObjectInput } from "@mysten/sui/transactions";
|
|
2
|
-
export declare function baseToken(tx: Transaction, self: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
3
|
-
export interface CreateArgs {
|
|
4
|
-
baseToken: TransactionObjectInput;
|
|
5
|
-
quoteToken: TransactionObjectInput;
|
|
6
|
-
}
|
|
7
|
-
export declare function create(tx: Transaction, args: CreateArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
8
|
-
export declare function new_(tx: Transaction, typeArgs: [string, string], published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
9
|
-
export declare function quoteToken(tx: Transaction, self: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.baseToken = baseToken;
|
|
4
|
-
exports.create = create;
|
|
5
|
-
exports.new_ = new_;
|
|
6
|
-
exports.quoteToken = quoteToken;
|
|
7
|
-
var __1 = require("..");
|
|
8
|
-
var util_1 = require("../../_framework/util");
|
|
9
|
-
function baseToken(tx, self, published_at) {
|
|
10
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
11
|
-
return tx.moveCall({ target: "".concat(published_at, "::symbol::base_token"), arguments: [(0, util_1.obj)(tx, self)] });
|
|
12
|
-
}
|
|
13
|
-
function create(tx, args, published_at) {
|
|
14
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
15
|
-
return tx.moveCall({ target: "".concat(published_at, "::symbol::create"), arguments: [(0, util_1.obj)(tx, args.baseToken), (0, util_1.obj)(tx, args.quoteToken)] });
|
|
16
|
-
}
|
|
17
|
-
function new_(tx, typeArgs, published_at) {
|
|
18
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
19
|
-
return tx.moveCall({ target: "".concat(published_at, "::symbol::new"), typeArguments: typeArgs, arguments: [] });
|
|
20
|
-
}
|
|
21
|
-
function quoteToken(tx, self, published_at) {
|
|
22
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
23
|
-
return tx.moveCall({ target: "".concat(published_at, "::symbol::quote_token"), arguments: [(0, util_1.obj)(tx, self)] });
|
|
24
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { TypeName } from "../../_dependencies/source/0x1/type-name/structs";
|
|
2
|
-
import { PhantomReified, Reified, StructClass, ToField, ToTypeStr } from "../../_framework/reified";
|
|
3
|
-
import { FieldsWithTypes } from "../../_framework/util";
|
|
4
|
-
import { PKG_V1 } from "../index";
|
|
5
|
-
import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
|
|
6
|
-
export declare function isSymbol(type: string): boolean;
|
|
7
|
-
export interface SymbolFields {
|
|
8
|
-
baseToken: ToField<TypeName>;
|
|
9
|
-
quoteToken: ToField<TypeName>;
|
|
10
|
-
}
|
|
11
|
-
export type SymbolReified = Reified<Symbol, SymbolFields>;
|
|
12
|
-
export declare class Symbol implements StructClass {
|
|
13
|
-
__StructClass: true;
|
|
14
|
-
static readonly $typeName: string;
|
|
15
|
-
static readonly $numTypeParams = 0;
|
|
16
|
-
static readonly $isPhantom: readonly [];
|
|
17
|
-
readonly $typeName: string;
|
|
18
|
-
readonly $fullTypeName: `${typeof PKG_V1}::symbol::Symbol`;
|
|
19
|
-
readonly $typeArgs: [];
|
|
20
|
-
readonly $isPhantom: readonly [];
|
|
21
|
-
readonly baseToken: ToField<TypeName>;
|
|
22
|
-
readonly quoteToken: ToField<TypeName>;
|
|
23
|
-
private constructor();
|
|
24
|
-
static reified(): SymbolReified;
|
|
25
|
-
static get r(): import("../../_framework/reified").StructClassReified<Symbol, SymbolFields>;
|
|
26
|
-
static phantom(): PhantomReified<ToTypeStr<Symbol>>;
|
|
27
|
-
static get p(): PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::symbol::Symbol" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::symbol::Symbol">;
|
|
28
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
29
|
-
base_token: {
|
|
30
|
-
name: {
|
|
31
|
-
bytes: number[];
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
quote_token: {
|
|
35
|
-
name: {
|
|
36
|
-
bytes: number[];
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
}, {
|
|
40
|
-
base_token: {
|
|
41
|
-
name: {
|
|
42
|
-
bytes: Iterable<number> & {
|
|
43
|
-
length: number;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
quote_token: {
|
|
48
|
-
name: {
|
|
49
|
-
bytes: Iterable<number> & {
|
|
50
|
-
length: number;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
}>;
|
|
55
|
-
static fromFields(fields: Record<string, any>): Symbol;
|
|
56
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): Symbol;
|
|
57
|
-
static fromBcs(data: Uint8Array): Symbol;
|
|
58
|
-
toJSONField(): {
|
|
59
|
-
baseToken: {
|
|
60
|
-
name: string;
|
|
61
|
-
};
|
|
62
|
-
quoteToken: {
|
|
63
|
-
name: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
toJSON(): {
|
|
67
|
-
baseToken: {
|
|
68
|
-
name: string;
|
|
69
|
-
};
|
|
70
|
-
quoteToken: {
|
|
71
|
-
name: string;
|
|
72
|
-
};
|
|
73
|
-
$typeName: string;
|
|
74
|
-
$typeArgs: [];
|
|
75
|
-
};
|
|
76
|
-
static fromJSONField(field: any): Symbol;
|
|
77
|
-
static fromJSON(json: Record<string, any>): Symbol;
|
|
78
|
-
static fromSuiParsedData(content: SuiParsedData): Symbol;
|
|
79
|
-
static fromSuiObjectData(data: SuiObjectData): Symbol;
|
|
80
|
-
static fetch(client: SuiClient, id: string): Promise<Symbol>;
|
|
81
|
-
}
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
24
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
50
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
51
|
-
if (!m) return o;
|
|
52
|
-
var i = m.call(o), r, ar = [], e;
|
|
53
|
-
try {
|
|
54
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
55
|
-
}
|
|
56
|
-
catch (error) { e = { error: error }; }
|
|
57
|
-
finally {
|
|
58
|
-
try {
|
|
59
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
60
|
-
}
|
|
61
|
-
finally { if (e) throw e.error; }
|
|
62
|
-
}
|
|
63
|
-
return ar;
|
|
64
|
-
};
|
|
65
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
66
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
67
|
-
if (ar || !(i in from)) {
|
|
68
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
69
|
-
ar[i] = from[i];
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
73
|
-
};
|
|
74
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75
|
-
exports.Symbol = void 0;
|
|
76
|
-
exports.isSymbol = isSymbol;
|
|
77
|
-
var structs_1 = require("../../_dependencies/source/0x1/type-name/structs");
|
|
78
|
-
var reified_1 = require("../../_framework/reified");
|
|
79
|
-
var util_1 = require("../../_framework/util");
|
|
80
|
-
var index_1 = require("../index");
|
|
81
|
-
var bcs_1 = require("@mysten/sui/bcs");
|
|
82
|
-
var utils_1 = require("@mysten/sui/utils");
|
|
83
|
-
/* ============================== Symbol =============================== */
|
|
84
|
-
function isSymbol(type) {
|
|
85
|
-
type = (0, util_1.compressSuiType)(type);
|
|
86
|
-
return type === "".concat(index_1.PKG_V1, "::symbol::Symbol");
|
|
87
|
-
}
|
|
88
|
-
var Symbol = /** @class */ (function () {
|
|
89
|
-
function Symbol(typeArgs, fields) {
|
|
90
|
-
this.__StructClass = true;
|
|
91
|
-
this.$typeName = Symbol.$typeName;
|
|
92
|
-
this.$isPhantom = Symbol.$isPhantom;
|
|
93
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Symbol.$typeName], __read(typeArgs), false));
|
|
94
|
-
this.$typeArgs = typeArgs;
|
|
95
|
-
this.baseToken = fields.baseToken;
|
|
96
|
-
this.quoteToken = fields.quoteToken;
|
|
97
|
-
}
|
|
98
|
-
Symbol.reified = function () {
|
|
99
|
-
var _this = this;
|
|
100
|
-
return {
|
|
101
|
-
typeName: Symbol.$typeName,
|
|
102
|
-
fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Symbol.$typeName], [], false)),
|
|
103
|
-
typeArgs: [],
|
|
104
|
-
isPhantom: Symbol.$isPhantom,
|
|
105
|
-
reifiedTypeArgs: [],
|
|
106
|
-
fromFields: function (fields) { return Symbol.fromFields(fields); },
|
|
107
|
-
fromFieldsWithTypes: function (item) { return Symbol.fromFieldsWithTypes(item); },
|
|
108
|
-
fromBcs: function (data) { return Symbol.fromBcs(data); },
|
|
109
|
-
bcs: Symbol.bcs,
|
|
110
|
-
fromJSONField: function (field) { return Symbol.fromJSONField(field); },
|
|
111
|
-
fromJSON: function (json) { return Symbol.fromJSON(json); },
|
|
112
|
-
fromSuiParsedData: function (content) { return Symbol.fromSuiParsedData(content); },
|
|
113
|
-
fromSuiObjectData: function (content) { return Symbol.fromSuiObjectData(content); },
|
|
114
|
-
fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
115
|
-
return [2 /*return*/, Symbol.fetch(client, id)];
|
|
116
|
-
}); }); },
|
|
117
|
-
new: function (fields) {
|
|
118
|
-
return new Symbol([], fields);
|
|
119
|
-
},
|
|
120
|
-
kind: "StructClassReified",
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
Object.defineProperty(Symbol, "r", {
|
|
124
|
-
get: function () {
|
|
125
|
-
return Symbol.reified();
|
|
126
|
-
},
|
|
127
|
-
enumerable: false,
|
|
128
|
-
configurable: true
|
|
129
|
-
});
|
|
130
|
-
Symbol.phantom = function () {
|
|
131
|
-
return (0, reified_1.phantom)(Symbol.reified());
|
|
132
|
-
};
|
|
133
|
-
Object.defineProperty(Symbol, "p", {
|
|
134
|
-
get: function () {
|
|
135
|
-
return Symbol.phantom();
|
|
136
|
-
},
|
|
137
|
-
enumerable: false,
|
|
138
|
-
configurable: true
|
|
139
|
-
});
|
|
140
|
-
Object.defineProperty(Symbol, "bcs", {
|
|
141
|
-
get: function () {
|
|
142
|
-
return bcs_1.bcs.struct("Symbol", {
|
|
143
|
-
base_token: structs_1.TypeName.bcs,
|
|
144
|
-
quote_token: structs_1.TypeName.bcs,
|
|
145
|
-
});
|
|
146
|
-
},
|
|
147
|
-
enumerable: false,
|
|
148
|
-
configurable: true
|
|
149
|
-
});
|
|
150
|
-
Symbol.fromFields = function (fields) {
|
|
151
|
-
return Symbol.reified().new({
|
|
152
|
-
baseToken: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.base_token),
|
|
153
|
-
quoteToken: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.quote_token),
|
|
154
|
-
});
|
|
155
|
-
};
|
|
156
|
-
Symbol.fromFieldsWithTypes = function (item) {
|
|
157
|
-
if (!isSymbol(item.type)) {
|
|
158
|
-
throw new Error("not a Symbol type");
|
|
159
|
-
}
|
|
160
|
-
return Symbol.reified().new({
|
|
161
|
-
baseToken: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.base_token),
|
|
162
|
-
quoteToken: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.quote_token),
|
|
163
|
-
});
|
|
164
|
-
};
|
|
165
|
-
Symbol.fromBcs = function (data) {
|
|
166
|
-
return Symbol.fromFields(Symbol.bcs.parse(data));
|
|
167
|
-
};
|
|
168
|
-
Symbol.prototype.toJSONField = function () {
|
|
169
|
-
return {
|
|
170
|
-
baseToken: this.baseToken.toJSONField(),
|
|
171
|
-
quoteToken: this.quoteToken.toJSONField(),
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
Symbol.prototype.toJSON = function () {
|
|
175
|
-
return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
|
|
176
|
-
};
|
|
177
|
-
Symbol.fromJSONField = function (field) {
|
|
178
|
-
return Symbol.reified().new({
|
|
179
|
-
baseToken: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.baseToken),
|
|
180
|
-
quoteToken: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.quoteToken),
|
|
181
|
-
});
|
|
182
|
-
};
|
|
183
|
-
Symbol.fromJSON = function (json) {
|
|
184
|
-
if (json.$typeName !== Symbol.$typeName) {
|
|
185
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
186
|
-
}
|
|
187
|
-
return Symbol.fromJSONField(json);
|
|
188
|
-
};
|
|
189
|
-
Symbol.fromSuiParsedData = function (content) {
|
|
190
|
-
if (content.dataType !== "moveObject") {
|
|
191
|
-
throw new Error("not an object");
|
|
192
|
-
}
|
|
193
|
-
if (!isSymbol(content.type)) {
|
|
194
|
-
throw new Error("object at ".concat(content.fields.id, " is not a Symbol object"));
|
|
195
|
-
}
|
|
196
|
-
return Symbol.fromFieldsWithTypes(content);
|
|
197
|
-
};
|
|
198
|
-
Symbol.fromSuiObjectData = function (data) {
|
|
199
|
-
if (data.bcs) {
|
|
200
|
-
if (data.bcs.dataType !== "moveObject" || !isSymbol(data.bcs.type)) {
|
|
201
|
-
throw new Error("object at is not a Symbol object");
|
|
202
|
-
}
|
|
203
|
-
return Symbol.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
|
|
204
|
-
}
|
|
205
|
-
if (data.content) {
|
|
206
|
-
return Symbol.fromSuiParsedData(data.content);
|
|
207
|
-
}
|
|
208
|
-
throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
|
|
209
|
-
};
|
|
210
|
-
Symbol.fetch = function (client, id) {
|
|
211
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
212
|
-
var res;
|
|
213
|
-
var _a, _b;
|
|
214
|
-
return __generator(this, function (_c) {
|
|
215
|
-
switch (_c.label) {
|
|
216
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
|
|
217
|
-
case 1:
|
|
218
|
-
res = _c.sent();
|
|
219
|
-
if (res.error) {
|
|
220
|
-
throw new Error("error fetching Symbol object at id ".concat(id, ": ").concat(res.error.code));
|
|
221
|
-
}
|
|
222
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isSymbol(res.data.bcs.type)) {
|
|
223
|
-
throw new Error("object at id ".concat(id, " is not a Symbol object"));
|
|
224
|
-
}
|
|
225
|
-
return [2 /*return*/, Symbol.fromSuiObjectData(res.data)];
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
};
|
|
230
|
-
Symbol.$typeName = "".concat(index_1.PKG_V1, "::symbol::Symbol");
|
|
231
|
-
Symbol.$numTypeParams = 0;
|
|
232
|
-
Symbol.$isPhantom = [];
|
|
233
|
-
return Symbol;
|
|
234
|
-
}());
|
|
235
|
-
exports.Symbol = Symbol;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Transaction, TransactionArgument, TransactionObjectInput } from "@mysten/sui/transactions";
|
|
2
|
-
export interface BurnArgs {
|
|
3
|
-
treasuryCap: TransactionObjectInput;
|
|
4
|
-
coin: TransactionObjectInput;
|
|
5
|
-
}
|
|
6
|
-
export declare function burn(tx: Transaction, typeArg: string, args: BurnArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
7
|
-
export declare function init(tx: Transaction, witness: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
8
|
-
export interface MintArgs {
|
|
9
|
-
treasuryCap: TransactionObjectInput;
|
|
10
|
-
value: bigint | TransactionArgument;
|
|
11
|
-
}
|
|
12
|
-
export declare function mint(tx: Transaction, typeArg: string, args: MintArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
13
|
-
export declare function totalSupply(tx: Transaction, treasuryCap: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
14
|
-
export interface TransferTreasuryCapArgs {
|
|
15
|
-
version: TransactionObjectInput;
|
|
16
|
-
lpRegistry: TransactionObjectInput;
|
|
17
|
-
treasuryCaps: TransactionObjectInput;
|
|
18
|
-
}
|
|
19
|
-
export declare function transferTreasuryCap(tx: Transaction, args: TransferTreasuryCapArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.burn = burn;
|
|
4
|
-
exports.init = init;
|
|
5
|
-
exports.mint = mint;
|
|
6
|
-
exports.totalSupply = totalSupply;
|
|
7
|
-
exports.transferTreasuryCap = transferTreasuryCap;
|
|
8
|
-
var __1 = require("..");
|
|
9
|
-
var util_1 = require("../../_framework/util");
|
|
10
|
-
function burn(tx, typeArg, args, published_at) {
|
|
11
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
12
|
-
return tx.moveCall({
|
|
13
|
-
target: "".concat(published_at, "::tlp::burn"),
|
|
14
|
-
typeArguments: [typeArg],
|
|
15
|
-
arguments: [(0, util_1.obj)(tx, args.treasuryCap), (0, util_1.obj)(tx, args.coin)],
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function init(tx, witness, published_at) {
|
|
19
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
20
|
-
return tx.moveCall({ target: "".concat(published_at, "::tlp::init"), arguments: [(0, util_1.obj)(tx, witness)] });
|
|
21
|
-
}
|
|
22
|
-
function mint(tx, typeArg, args, published_at) {
|
|
23
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
24
|
-
return tx.moveCall({
|
|
25
|
-
target: "".concat(published_at, "::tlp::mint"),
|
|
26
|
-
typeArguments: [typeArg],
|
|
27
|
-
arguments: [(0, util_1.obj)(tx, args.treasuryCap), (0, util_1.pure)(tx, args.value, "u64")],
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function totalSupply(tx, treasuryCap, published_at) {
|
|
31
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
32
|
-
return tx.moveCall({ target: "".concat(published_at, "::tlp::total_supply"), arguments: [(0, util_1.obj)(tx, treasuryCap)] });
|
|
33
|
-
}
|
|
34
|
-
function transferTreasuryCap(tx, args, published_at) {
|
|
35
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
36
|
-
return tx.moveCall({
|
|
37
|
-
target: "".concat(published_at, "::tlp::transfer_treasury_cap"),
|
|
38
|
-
arguments: [(0, util_1.obj)(tx, args.version), (0, util_1.obj)(tx, args.lpRegistry), (0, util_1.obj)(tx, args.treasuryCaps)],
|
|
39
|
-
});
|
|
40
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { UID } from "../../_dependencies/source/0x2/object/structs";
|
|
2
|
-
import { PhantomReified, Reified, StructClass, ToField, ToTypeStr } from "../../_framework/reified";
|
|
3
|
-
import { FieldsWithTypes } from "../../_framework/util";
|
|
4
|
-
import { PKG_V1 } from "../index";
|
|
5
|
-
import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
|
|
6
|
-
export declare function isLpRegistry(type: string): boolean;
|
|
7
|
-
export interface LpRegistryFields {
|
|
8
|
-
id: ToField<UID>;
|
|
9
|
-
}
|
|
10
|
-
export type LpRegistryReified = Reified<LpRegistry, LpRegistryFields>;
|
|
11
|
-
export declare class LpRegistry implements StructClass {
|
|
12
|
-
__StructClass: true;
|
|
13
|
-
static readonly $typeName: string;
|
|
14
|
-
static readonly $numTypeParams = 0;
|
|
15
|
-
static readonly $isPhantom: readonly [];
|
|
16
|
-
readonly $typeName: string;
|
|
17
|
-
readonly $fullTypeName: `${typeof PKG_V1}::tlp::LpRegistry`;
|
|
18
|
-
readonly $typeArgs: [];
|
|
19
|
-
readonly $isPhantom: readonly [];
|
|
20
|
-
readonly id: ToField<UID>;
|
|
21
|
-
private constructor();
|
|
22
|
-
static reified(): LpRegistryReified;
|
|
23
|
-
static get r(): import("../../_framework/reified").StructClassReified<LpRegistry, LpRegistryFields>;
|
|
24
|
-
static phantom(): PhantomReified<ToTypeStr<LpRegistry>>;
|
|
25
|
-
static get p(): PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::tlp::LpRegistry" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::tlp::LpRegistry">;
|
|
26
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
27
|
-
id: {
|
|
28
|
-
id: {
|
|
29
|
-
bytes: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
}, {
|
|
33
|
-
id: {
|
|
34
|
-
id: {
|
|
35
|
-
bytes: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
}>;
|
|
39
|
-
static fromFields(fields: Record<string, any>): LpRegistry;
|
|
40
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): LpRegistry;
|
|
41
|
-
static fromBcs(data: Uint8Array): LpRegistry;
|
|
42
|
-
toJSONField(): {
|
|
43
|
-
id: string;
|
|
44
|
-
};
|
|
45
|
-
toJSON(): {
|
|
46
|
-
id: string;
|
|
47
|
-
$typeName: string;
|
|
48
|
-
$typeArgs: [];
|
|
49
|
-
};
|
|
50
|
-
static fromJSONField(field: any): LpRegistry;
|
|
51
|
-
static fromJSON(json: Record<string, any>): LpRegistry;
|
|
52
|
-
static fromSuiParsedData(content: SuiParsedData): LpRegistry;
|
|
53
|
-
static fromSuiObjectData(data: SuiObjectData): LpRegistry;
|
|
54
|
-
static fetch(client: SuiClient, id: string): Promise<LpRegistry>;
|
|
55
|
-
}
|
|
56
|
-
export declare function isTLP(type: string): boolean;
|
|
57
|
-
export interface TLPFields {
|
|
58
|
-
dummyField: ToField<"bool">;
|
|
59
|
-
}
|
|
60
|
-
export type TLPReified = Reified<TLP, TLPFields>;
|
|
61
|
-
export declare class TLP implements StructClass {
|
|
62
|
-
__StructClass: true;
|
|
63
|
-
static readonly $typeName: string;
|
|
64
|
-
static readonly $numTypeParams = 0;
|
|
65
|
-
static readonly $isPhantom: readonly [];
|
|
66
|
-
readonly $typeName: string;
|
|
67
|
-
readonly $fullTypeName: `${typeof PKG_V1}::tlp::TLP`;
|
|
68
|
-
readonly $typeArgs: [];
|
|
69
|
-
readonly $isPhantom: readonly [];
|
|
70
|
-
readonly dummyField: ToField<"bool">;
|
|
71
|
-
private constructor();
|
|
72
|
-
static reified(): TLPReified;
|
|
73
|
-
static get r(): import("../../_framework/reified").StructClassReified<TLP, TLPFields>;
|
|
74
|
-
static phantom(): PhantomReified<ToTypeStr<TLP>>;
|
|
75
|
-
static get p(): PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::tlp::TLP" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::tlp::TLP">;
|
|
76
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
77
|
-
dummy_field: boolean;
|
|
78
|
-
}, {
|
|
79
|
-
dummy_field: boolean;
|
|
80
|
-
}>;
|
|
81
|
-
static fromFields(fields: Record<string, any>): TLP;
|
|
82
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): TLP;
|
|
83
|
-
static fromBcs(data: Uint8Array): TLP;
|
|
84
|
-
toJSONField(): {
|
|
85
|
-
dummyField: boolean;
|
|
86
|
-
};
|
|
87
|
-
toJSON(): {
|
|
88
|
-
dummyField: boolean;
|
|
89
|
-
$typeName: string;
|
|
90
|
-
$typeArgs: [];
|
|
91
|
-
};
|
|
92
|
-
static fromJSONField(field: any): TLP;
|
|
93
|
-
static fromJSON(json: Record<string, any>): TLP;
|
|
94
|
-
static fromSuiParsedData(content: SuiParsedData): TLP;
|
|
95
|
-
static fromSuiObjectData(data: SuiObjectData): TLP;
|
|
96
|
-
static fetch(client: SuiClient, id: string): Promise<TLP>;
|
|
97
|
-
}
|