@typus/typus-perp-sdk 1.1.32-codegen-exp3 → 1.1.32-testnet-exp1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +88 -0
- package/dist/src/_dependencies/source/0x1/ascii/structs.js +398 -0
- package/dist/src/_dependencies/source/0x1/index.d.ts +3 -0
- package/dist/src/_dependencies/source/0x1/index.js +6 -0
- package/dist/src/_dependencies/source/0x1/option/structs.d.ts +50 -0
- package/dist/src/_dependencies/source/0x1/option/structs.js +271 -0
- package/dist/src/_dependencies/source/0x1/string/structs.d.ts +48 -0
- package/dist/src/_dependencies/source/0x1/string/structs.js +256 -0
- package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +49 -0
- package/dist/src/_dependencies/source/0x1/type-name/structs.js +223 -0
- package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +54 -0
- package/dist/src/_dependencies/source/0x2/bag/structs.js +229 -0
- package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +84 -0
- package/dist/src/_dependencies/source/0x2/balance/structs.js +386 -0
- package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +406 -0
- package/dist/src/_dependencies/source/0x2/coin/structs.js +1247 -0
- package/dist/src/_dependencies/source/0x2/index.d.ts +3 -0
- package/dist/src/_dependencies/source/0x2/index.js +6 -0
- package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +132 -0
- package/dist/src/_dependencies/source/0x2/linked-table/structs.js +438 -0
- package/dist/src/_dependencies/source/0x2/object/structs.d.ts +86 -0
- package/dist/src/_dependencies/source/0x2/object/structs.js +364 -0
- package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +54 -0
- package/dist/src/_dependencies/source/0x2/object-table/structs.js +248 -0
- package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0x2/sui/structs.js +222 -0
- package/dist/src/_dependencies/source/0x2/table/structs.d.ts +54 -0
- package/dist/src/_dependencies/source/0x2/table/structs.js +248 -0
- package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +59 -0
- package/dist/src/_dependencies/source/0x2/table-vec/structs.js +274 -0
- package/dist/src/_dependencies/source/0x2/token/structs.d.ts +421 -0
- package/dist/src/_dependencies/source/0x2/token/structs.js +1095 -0
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +348 -0
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +1091 -0
- package/dist/src/_dependencies/source/0x2/url/structs.d.ts +49 -0
- package/dist/src/_dependencies/source/0x2/url/structs.js +223 -0
- package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +106 -0
- package/dist/src/_dependencies/source/0x2/vec-map/structs.js +446 -0
- package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +49 -0
- package/dist/src/_dependencies/source/0x2/vec-set/structs.js +270 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +422 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.js +1084 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +130 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.js +456 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +208 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +653 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +362 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.js +899 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.d.ts +8 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.js +11 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.js +102 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.d.ts +202 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.js +632 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +600 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.js +1459 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.d.ts +136 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.js +438 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.d.ts +127 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.js +430 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +957 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.js +2261 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +244 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +733 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +294 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +892 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +73 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.js +263 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +294 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.js +591 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +64 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.js +258 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +756 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +1721 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.js +222 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.d.ts +3 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.js +6 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.js +89 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.d.ts +135 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.js +444 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.d.ts +2106 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.js +4952 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +390 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.js +844 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.d.ts +6 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.js +9 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.js +69 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.d.ts +89 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.js +376 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +386 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.js +881 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +59 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.js +274 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +974 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.js +2387 -0
- package/dist/src/_framework/init-loader.d.ts +2 -0
- package/dist/src/{generated/typus_perp/treasury_caps.js → _framework/init-loader.js} +10 -17
- package/dist/src/_framework/loader.d.ts +17 -0
- package/dist/src/_framework/loader.js +108 -0
- package/dist/src/_framework/reified.d.ts +108 -0
- package/dist/src/_framework/reified.js +237 -0
- package/dist/src/_framework/util.d.ts +35 -0
- package/dist/src/_framework/util.js +396 -0
- package/dist/src/_framework/vector.d.ts +42 -0
- package/dist/src/_framework/vector.js +112 -0
- package/dist/src/api/sentio.js +538 -604
- package/dist/src/fetch.d.ts +36 -577
- package/dist/src/fetch.js +665 -367
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +39 -20
- package/dist/src/pyth.js +1 -0
- package/dist/src/typus_perp/admin/functions.d.ts +59 -0
- package/dist/src/typus_perp/admin/functions.js +122 -0
- package/dist/src/typus_perp/admin/structs.d.ts +467 -0
- package/dist/src/typus_perp/admin/structs.js +1065 -0
- package/dist/src/typus_perp/competition/functions.d.ts +24 -0
- package/dist/src/typus_perp/competition/functions.js +38 -0
- package/dist/src/typus_perp/competition/structs.d.ts +80 -0
- package/dist/src/typus_perp/competition/structs.js +288 -0
- package/dist/src/typus_perp/error/functions.d.ts +73 -0
- package/dist/src/typus_perp/error/functions.js +363 -0
- package/dist/src/typus_perp/escrow/functions.d.ts +17 -0
- package/dist/src/typus_perp/escrow/functions.js +36 -0
- package/dist/src/typus_perp/escrow/structs.d.ts +160 -0
- package/dist/src/typus_perp/escrow/structs.js +324 -0
- package/dist/src/typus_perp/index.d.ts +1 -0
- package/dist/src/typus_perp/index.js +7 -0
- package/dist/src/typus_perp/init.d.ts +2 -0
- package/dist/src/typus_perp/init.js +118 -0
- package/dist/src/typus_perp/lending/functions.d.ts +15 -0
- package/dist/src/typus_perp/lending/functions.js +22 -0
- package/dist/src/typus_perp/lp-pool/functions.d.ts +460 -0
- package/dist/src/typus_perp/lp-pool/functions.js +732 -0
- package/dist/src/typus_perp/lp-pool/structs.d.ts +3705 -0
- package/dist/src/typus_perp/lp-pool/structs.js +6789 -0
- package/dist/src/typus_perp/math/functions.d.ts +29 -0
- package/dist/src/typus_perp/math/functions.js +61 -0
- package/dist/src/typus_perp/position/functions.d.ts +379 -0
- package/dist/src/typus_perp/position/functions.js +713 -0
- package/dist/src/typus_perp/position/structs.d.ts +905 -0
- package/dist/src/typus_perp/position/structs.js +1450 -0
- package/dist/src/typus_perp/symbol/functions.d.ts +9 -0
- package/dist/src/typus_perp/symbol/functions.js +24 -0
- package/dist/src/typus_perp/symbol/structs.d.ts +70 -0
- package/dist/src/typus_perp/symbol/structs.js +235 -0
- package/dist/src/typus_perp/tlp/functions.d.ts +19 -0
- package/dist/src/typus_perp/tlp/functions.js +40 -0
- package/dist/src/typus_perp/tlp/structs.d.ts +89 -0
- package/dist/src/typus_perp/tlp/structs.js +365 -0
- package/dist/src/typus_perp/token-interface/functions.d.ts +11 -0
- package/dist/src/typus_perp/token-interface/functions.js +22 -0
- package/dist/src/typus_perp/trading/functions.d.ts +812 -0
- package/dist/src/typus_perp/trading/functions.js +1218 -0
- package/dist/src/typus_perp/trading/structs.d.ts +3060 -0
- package/dist/src/typus_perp/trading/structs.js +5813 -0
- package/dist/src/typus_perp/treasury-caps/functions.d.ts +9 -0
- package/dist/src/typus_perp/treasury-caps/functions.js +36 -0
- package/dist/src/typus_perp/treasury-caps/structs.d.ts +49 -0
- package/dist/src/typus_perp/treasury-caps/structs.js +223 -0
- package/dist/src/typus_perp/user-account/functions.d.ts +36 -0
- package/dist/src/typus_perp/user-account/functions.js +70 -0
- package/dist/src/typus_perp/user-account/structs.d.ts +148 -0
- package/dist/src/typus_perp/user-account/structs.js +448 -0
- package/dist/src/typus_stake_pool/admin/functions.d.ts +49 -0
- package/dist/src/typus_stake_pool/admin/functions.js +105 -0
- package/dist/src/typus_stake_pool/admin/structs.d.ts +365 -0
- package/dist/src/typus_stake_pool/admin/structs.js +789 -0
- package/dist/src/typus_stake_pool/index.d.ts +1 -0
- package/dist/src/typus_stake_pool/index.js +7 -0
- package/dist/src/typus_stake_pool/init.d.ts +2 -0
- package/dist/src/typus_stake_pool/init.js +69 -0
- package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +229 -0
- package/dist/src/typus_stake_pool/stake-pool/functions.js +380 -0
- package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +2199 -0
- package/dist/src/typus_stake_pool/stake-pool/structs.js +4653 -0
- package/dist/src/user/history.js +685 -614
- package/dist/src/user/order.d.ts +11 -16
- package/dist/src/user/order.js +302 -171
- package/dist/src/user/orderWithBidReceipt.d.ts +6 -8
- package/dist/src/user/orderWithBidReceipt.js +225 -127
- package/dist/src/user/tlp.d.ts +24 -25
- package/dist/src/user/tlp.js +468 -317
- package/package.json +3 -11
- package/dist/src/client.d.ts +0 -27
- package/dist/src/client.js +0 -108
- package/dist/src/generated/typus_perp/admin.d.ts +0 -117
- package/dist/src/generated/typus_perp/admin.js +0 -110
- package/dist/src/generated/typus_perp/competition.d.ts +0 -22
- package/dist/src/generated/typus_perp/competition.js +0 -58
- package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +0 -17
- package/dist/src/generated/typus_perp/deps/std/type_name.js +0 -25
- package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +0 -12
- package/dist/src/generated/typus_perp/deps/sui/balance.js +0 -20
- package/dist/src/generated/typus_perp/deps/sui/object.d.ts +0 -8
- package/dist/src/generated/typus_perp/deps/sui/object.js +0 -16
- package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +0 -19
- package/dist/src/generated/typus_perp/deps/sui/object_table.js +0 -59
- package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +0 -18
- package/dist/src/generated/typus_perp/deps/sui/vec_set.js +0 -25
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +0 -30
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +0 -67
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +0 -32
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +0 -71
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +0 -23
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +0 -61
- package/dist/src/generated/typus_perp/escrow.d.ts +0 -59
- package/dist/src/generated/typus_perp/escrow.js +0 -76
- package/dist/src/generated/typus_perp/lending.d.ts +0 -47
- package/dist/src/generated/typus_perp/lending.js +0 -50
- package/dist/src/generated/typus_perp/lp_pool.d.ts +0 -2327
- package/dist/src/generated/typus_perp/lp_pool.js +0 -1956
- package/dist/src/generated/typus_perp/math.d.ts +0 -95
- package/dist/src/generated/typus_perp/math.js +0 -97
- package/dist/src/generated/typus_perp/position.d.ts +0 -234
- package/dist/src/generated/typus_perp/position.js +0 -204
- package/dist/src/generated/typus_perp/symbol.d.ts +0 -18
- package/dist/src/generated/typus_perp/symbol.js +0 -55
- package/dist/src/generated/typus_perp/tlp.d.ts +0 -13
- package/dist/src/generated/typus_perp/tlp.js +0 -56
- package/dist/src/generated/typus_perp/trading.d.ts +0 -2486
- package/dist/src/generated/typus_perp/trading.js +0 -2476
- package/dist/src/generated/typus_perp/treasury_caps.d.ts +0 -13
- package/dist/src/generated/typus_perp/user_account.d.ts +0 -40
- package/dist/src/generated/typus_perp/user_account.js +0 -72
- package/dist/src/generated/typus_stake_pool/admin.d.ts +0 -234
- package/dist/src/generated/typus_stake_pool/admin.js +0 -272
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +0 -17
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +0 -25
- package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +0 -8
- package/dist/src/generated/typus_stake_pool/deps/sui/object.js +0 -16
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +0 -30
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +0 -37
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +0 -18
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +0 -25
- package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +0 -986
- package/dist/src/generated/typus_stake_pool/stake_pool.js +0 -874
- package/dist/src/generated/utils/index.d.ts +0 -11
- package/dist/src/generated/utils/index.js +0 -135
- package/dist/src/grpc/graphql.d.ts +0 -26
- package/dist/src/grpc/graphql.js +0 -126
- package/dist/src/grpc/grpc.d.ts +0 -1
- package/dist/src/grpc/grpc.js +0 -38
- package/dist/src/grpc/ledgerService.js +0 -64
- package/dist/src/grpc/liveDataService.d.ts +0 -0
- package/dist/src/grpc/liveDataService.js +0 -49
- /package/dist/src/{grpc/ledgerService.d.ts → pyth.d.ts} +0 -0
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
import { PhantomReified, PhantomToTypeStr, PhantomTypeArgument, Reified, StructClass, ToField, ToPhantomTypeArgument, ToTypeStr } from "../../../../_framework/reified";
|
|
2
|
+
import { FieldsWithTypes } from "../../../../_framework/util";
|
|
3
|
+
import { String as String1 } from "../../0x1/ascii/structs";
|
|
4
|
+
import { Option } from "../../0x1/option/structs";
|
|
5
|
+
import { String } from "../../0x1/string/structs";
|
|
6
|
+
import { Balance, Supply } from "../balance/structs";
|
|
7
|
+
import { PKG_V26 } from "../index";
|
|
8
|
+
import { ID, UID } from "../object/structs";
|
|
9
|
+
import { Url } from "../url/structs";
|
|
10
|
+
import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
|
|
11
|
+
export declare function isCoin(type: string): boolean;
|
|
12
|
+
export interface CoinFields<T extends PhantomTypeArgument> {
|
|
13
|
+
id: ToField<UID>;
|
|
14
|
+
balance: ToField<Balance<T>>;
|
|
15
|
+
}
|
|
16
|
+
export type CoinReified<T extends PhantomTypeArgument> = Reified<Coin<T>, CoinFields<T>>;
|
|
17
|
+
export declare class Coin<T extends PhantomTypeArgument> implements StructClass {
|
|
18
|
+
__StructClass: true;
|
|
19
|
+
static readonly $typeName = "0x2::coin::Coin";
|
|
20
|
+
static readonly $numTypeParams = 1;
|
|
21
|
+
static readonly $isPhantom: readonly [true];
|
|
22
|
+
readonly $typeName = "0x2::coin::Coin";
|
|
23
|
+
readonly $fullTypeName: `${typeof PKG_V26}::coin::Coin<${PhantomToTypeStr<T>}>`;
|
|
24
|
+
readonly $typeArgs: [PhantomToTypeStr<T>];
|
|
25
|
+
readonly $isPhantom: readonly [true];
|
|
26
|
+
readonly id: ToField<UID>;
|
|
27
|
+
readonly balance: ToField<Balance<T>>;
|
|
28
|
+
private constructor();
|
|
29
|
+
static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): CoinReified<ToPhantomTypeArgument<T>>;
|
|
30
|
+
static get r(): typeof Coin.reified;
|
|
31
|
+
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<Coin<ToPhantomTypeArgument<T>>>>;
|
|
32
|
+
static get p(): typeof Coin.phantom;
|
|
33
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
34
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
35
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
36
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
37
|
+
}, string>;
|
|
38
|
+
}, string>;
|
|
39
|
+
balance: import("@mysten/sui/bcs").BcsStruct<{
|
|
40
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
41
|
+
}, string>;
|
|
42
|
+
}, string>;
|
|
43
|
+
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): Coin<ToPhantomTypeArgument<T>>;
|
|
44
|
+
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): Coin<ToPhantomTypeArgument<T>>;
|
|
45
|
+
static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): Coin<ToPhantomTypeArgument<T>>;
|
|
46
|
+
toJSONField(): {
|
|
47
|
+
id: string;
|
|
48
|
+
balance: {
|
|
49
|
+
value: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
toJSON(): {
|
|
53
|
+
id: string;
|
|
54
|
+
balance: {
|
|
55
|
+
value: string;
|
|
56
|
+
};
|
|
57
|
+
$typeName: string;
|
|
58
|
+
$typeArgs: [PhantomToTypeStr<T>];
|
|
59
|
+
};
|
|
60
|
+
static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): Coin<ToPhantomTypeArgument<T>>;
|
|
61
|
+
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): Coin<ToPhantomTypeArgument<T>>;
|
|
62
|
+
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): Coin<ToPhantomTypeArgument<T>>;
|
|
63
|
+
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): Coin<ToPhantomTypeArgument<T>>;
|
|
64
|
+
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<Coin<ToPhantomTypeArgument<T>>>;
|
|
65
|
+
}
|
|
66
|
+
export declare function isCoinMetadata(type: string): boolean;
|
|
67
|
+
export interface CoinMetadataFields<T extends PhantomTypeArgument> {
|
|
68
|
+
id: ToField<UID>;
|
|
69
|
+
decimals: ToField<"u8">;
|
|
70
|
+
name: ToField<String>;
|
|
71
|
+
symbol: ToField<String1>;
|
|
72
|
+
description: ToField<String>;
|
|
73
|
+
iconUrl: ToField<Option<Url>>;
|
|
74
|
+
}
|
|
75
|
+
export type CoinMetadataReified<T extends PhantomTypeArgument> = Reified<CoinMetadata<T>, CoinMetadataFields<T>>;
|
|
76
|
+
export declare class CoinMetadata<T extends PhantomTypeArgument> implements StructClass {
|
|
77
|
+
__StructClass: true;
|
|
78
|
+
static readonly $typeName = "0x2::coin::CoinMetadata";
|
|
79
|
+
static readonly $numTypeParams = 1;
|
|
80
|
+
static readonly $isPhantom: readonly [true];
|
|
81
|
+
readonly $typeName = "0x2::coin::CoinMetadata";
|
|
82
|
+
readonly $fullTypeName: `${typeof PKG_V26}::coin::CoinMetadata<${PhantomToTypeStr<T>}>`;
|
|
83
|
+
readonly $typeArgs: [PhantomToTypeStr<T>];
|
|
84
|
+
readonly $isPhantom: readonly [true];
|
|
85
|
+
readonly id: ToField<UID>;
|
|
86
|
+
readonly decimals: ToField<"u8">;
|
|
87
|
+
readonly name: ToField<String>;
|
|
88
|
+
readonly symbol: ToField<String1>;
|
|
89
|
+
readonly description: ToField<String>;
|
|
90
|
+
readonly iconUrl: ToField<Option<Url>>;
|
|
91
|
+
private constructor();
|
|
92
|
+
static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): CoinMetadataReified<ToPhantomTypeArgument<T>>;
|
|
93
|
+
static get r(): typeof CoinMetadata.reified;
|
|
94
|
+
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<CoinMetadata<ToPhantomTypeArgument<T>>>>;
|
|
95
|
+
static get p(): typeof CoinMetadata.phantom;
|
|
96
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
97
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
98
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
99
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
100
|
+
}, string>;
|
|
101
|
+
}, string>;
|
|
102
|
+
decimals: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
|
|
103
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
104
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
105
|
+
length: number;
|
|
106
|
+
}, string>;
|
|
107
|
+
}, string>;
|
|
108
|
+
symbol: import("@mysten/sui/bcs").BcsStruct<{
|
|
109
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
110
|
+
length: number;
|
|
111
|
+
}, string>;
|
|
112
|
+
}, string>;
|
|
113
|
+
description: import("@mysten/sui/bcs").BcsStruct<{
|
|
114
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
115
|
+
length: number;
|
|
116
|
+
}, string>;
|
|
117
|
+
}, string>;
|
|
118
|
+
icon_url: import("@mysten/sui/bcs").BcsStruct<{
|
|
119
|
+
vec: import("@mysten/sui/bcs").BcsType<{
|
|
120
|
+
url: {
|
|
121
|
+
bytes: number[];
|
|
122
|
+
};
|
|
123
|
+
}[], Iterable<{
|
|
124
|
+
url: {
|
|
125
|
+
bytes: Iterable<number> & {
|
|
126
|
+
length: number;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
}> & {
|
|
130
|
+
length: number;
|
|
131
|
+
}, string>;
|
|
132
|
+
}, string>;
|
|
133
|
+
}, string>;
|
|
134
|
+
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): CoinMetadata<ToPhantomTypeArgument<T>>;
|
|
135
|
+
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): CoinMetadata<ToPhantomTypeArgument<T>>;
|
|
136
|
+
static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): CoinMetadata<ToPhantomTypeArgument<T>>;
|
|
137
|
+
toJSONField(): {
|
|
138
|
+
id: string;
|
|
139
|
+
decimals: number;
|
|
140
|
+
name: string;
|
|
141
|
+
symbol: string;
|
|
142
|
+
description: string;
|
|
143
|
+
iconUrl: string | null;
|
|
144
|
+
};
|
|
145
|
+
toJSON(): {
|
|
146
|
+
id: string;
|
|
147
|
+
decimals: number;
|
|
148
|
+
name: string;
|
|
149
|
+
symbol: string;
|
|
150
|
+
description: string;
|
|
151
|
+
iconUrl: string | null;
|
|
152
|
+
$typeName: string;
|
|
153
|
+
$typeArgs: [PhantomToTypeStr<T>];
|
|
154
|
+
};
|
|
155
|
+
static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): CoinMetadata<ToPhantomTypeArgument<T>>;
|
|
156
|
+
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): CoinMetadata<ToPhantomTypeArgument<T>>;
|
|
157
|
+
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): CoinMetadata<ToPhantomTypeArgument<T>>;
|
|
158
|
+
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): CoinMetadata<ToPhantomTypeArgument<T>>;
|
|
159
|
+
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<CoinMetadata<ToPhantomTypeArgument<T>>>;
|
|
160
|
+
}
|
|
161
|
+
export declare function isCurrencyCreated(type: string): boolean;
|
|
162
|
+
export interface CurrencyCreatedFields<T extends PhantomTypeArgument> {
|
|
163
|
+
decimals: ToField<"u8">;
|
|
164
|
+
}
|
|
165
|
+
export type CurrencyCreatedReified<T extends PhantomTypeArgument> = Reified<CurrencyCreated<T>, CurrencyCreatedFields<T>>;
|
|
166
|
+
export declare class CurrencyCreated<T extends PhantomTypeArgument> implements StructClass {
|
|
167
|
+
__StructClass: true;
|
|
168
|
+
static readonly $typeName = "0x2::coin::CurrencyCreated";
|
|
169
|
+
static readonly $numTypeParams = 1;
|
|
170
|
+
static readonly $isPhantom: readonly [true];
|
|
171
|
+
readonly $typeName = "0x2::coin::CurrencyCreated";
|
|
172
|
+
readonly $fullTypeName: `${typeof PKG_V26}::coin::CurrencyCreated<${PhantomToTypeStr<T>}>`;
|
|
173
|
+
readonly $typeArgs: [PhantomToTypeStr<T>];
|
|
174
|
+
readonly $isPhantom: readonly [true];
|
|
175
|
+
readonly decimals: ToField<"u8">;
|
|
176
|
+
private constructor();
|
|
177
|
+
static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): CurrencyCreatedReified<ToPhantomTypeArgument<T>>;
|
|
178
|
+
static get r(): typeof CurrencyCreated.reified;
|
|
179
|
+
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<CurrencyCreated<ToPhantomTypeArgument<T>>>>;
|
|
180
|
+
static get p(): typeof CurrencyCreated.phantom;
|
|
181
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
182
|
+
decimals: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
|
|
183
|
+
}, string>;
|
|
184
|
+
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): CurrencyCreated<ToPhantomTypeArgument<T>>;
|
|
185
|
+
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): CurrencyCreated<ToPhantomTypeArgument<T>>;
|
|
186
|
+
static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): CurrencyCreated<ToPhantomTypeArgument<T>>;
|
|
187
|
+
toJSONField(): {
|
|
188
|
+
decimals: number;
|
|
189
|
+
};
|
|
190
|
+
toJSON(): {
|
|
191
|
+
decimals: number;
|
|
192
|
+
$typeName: string;
|
|
193
|
+
$typeArgs: [PhantomToTypeStr<T>];
|
|
194
|
+
};
|
|
195
|
+
static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): CurrencyCreated<ToPhantomTypeArgument<T>>;
|
|
196
|
+
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): CurrencyCreated<ToPhantomTypeArgument<T>>;
|
|
197
|
+
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): CurrencyCreated<ToPhantomTypeArgument<T>>;
|
|
198
|
+
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): CurrencyCreated<ToPhantomTypeArgument<T>>;
|
|
199
|
+
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<CurrencyCreated<ToPhantomTypeArgument<T>>>;
|
|
200
|
+
}
|
|
201
|
+
export declare function isDenyCap(type: string): boolean;
|
|
202
|
+
export interface DenyCapFields<T extends PhantomTypeArgument> {
|
|
203
|
+
id: ToField<UID>;
|
|
204
|
+
}
|
|
205
|
+
export type DenyCapReified<T extends PhantomTypeArgument> = Reified<DenyCap<T>, DenyCapFields<T>>;
|
|
206
|
+
export declare class DenyCap<T extends PhantomTypeArgument> implements StructClass {
|
|
207
|
+
__StructClass: true;
|
|
208
|
+
static readonly $typeName = "0x2::coin::DenyCap";
|
|
209
|
+
static readonly $numTypeParams = 1;
|
|
210
|
+
static readonly $isPhantom: readonly [true];
|
|
211
|
+
readonly $typeName = "0x2::coin::DenyCap";
|
|
212
|
+
readonly $fullTypeName: `${typeof PKG_V26}::coin::DenyCap<${PhantomToTypeStr<T>}>`;
|
|
213
|
+
readonly $typeArgs: [PhantomToTypeStr<T>];
|
|
214
|
+
readonly $isPhantom: readonly [true];
|
|
215
|
+
readonly id: ToField<UID>;
|
|
216
|
+
private constructor();
|
|
217
|
+
static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): DenyCapReified<ToPhantomTypeArgument<T>>;
|
|
218
|
+
static get r(): typeof DenyCap.reified;
|
|
219
|
+
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<DenyCap<ToPhantomTypeArgument<T>>>>;
|
|
220
|
+
static get p(): typeof DenyCap.phantom;
|
|
221
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
222
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
223
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
224
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
225
|
+
}, string>;
|
|
226
|
+
}, string>;
|
|
227
|
+
}, string>;
|
|
228
|
+
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): DenyCap<ToPhantomTypeArgument<T>>;
|
|
229
|
+
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): DenyCap<ToPhantomTypeArgument<T>>;
|
|
230
|
+
static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): DenyCap<ToPhantomTypeArgument<T>>;
|
|
231
|
+
toJSONField(): {
|
|
232
|
+
id: string;
|
|
233
|
+
};
|
|
234
|
+
toJSON(): {
|
|
235
|
+
id: string;
|
|
236
|
+
$typeName: string;
|
|
237
|
+
$typeArgs: [PhantomToTypeStr<T>];
|
|
238
|
+
};
|
|
239
|
+
static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): DenyCap<ToPhantomTypeArgument<T>>;
|
|
240
|
+
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): DenyCap<ToPhantomTypeArgument<T>>;
|
|
241
|
+
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): DenyCap<ToPhantomTypeArgument<T>>;
|
|
242
|
+
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): DenyCap<ToPhantomTypeArgument<T>>;
|
|
243
|
+
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<DenyCap<ToPhantomTypeArgument<T>>>;
|
|
244
|
+
}
|
|
245
|
+
export declare function isDenyCapV2(type: string): boolean;
|
|
246
|
+
export interface DenyCapV2Fields<T extends PhantomTypeArgument> {
|
|
247
|
+
id: ToField<UID>;
|
|
248
|
+
allowGlobalPause: ToField<"bool">;
|
|
249
|
+
}
|
|
250
|
+
export type DenyCapV2Reified<T extends PhantomTypeArgument> = Reified<DenyCapV2<T>, DenyCapV2Fields<T>>;
|
|
251
|
+
export declare class DenyCapV2<T extends PhantomTypeArgument> implements StructClass {
|
|
252
|
+
__StructClass: true;
|
|
253
|
+
static readonly $typeName = "0x2::coin::DenyCapV2";
|
|
254
|
+
static readonly $numTypeParams = 1;
|
|
255
|
+
static readonly $isPhantom: readonly [true];
|
|
256
|
+
readonly $typeName = "0x2::coin::DenyCapV2";
|
|
257
|
+
readonly $fullTypeName: `${typeof PKG_V26}::coin::DenyCapV2<${PhantomToTypeStr<T>}>`;
|
|
258
|
+
readonly $typeArgs: [PhantomToTypeStr<T>];
|
|
259
|
+
readonly $isPhantom: readonly [true];
|
|
260
|
+
readonly id: ToField<UID>;
|
|
261
|
+
readonly allowGlobalPause: ToField<"bool">;
|
|
262
|
+
private constructor();
|
|
263
|
+
static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): DenyCapV2Reified<ToPhantomTypeArgument<T>>;
|
|
264
|
+
static get r(): typeof DenyCapV2.reified;
|
|
265
|
+
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<DenyCapV2<ToPhantomTypeArgument<T>>>>;
|
|
266
|
+
static get p(): typeof DenyCapV2.phantom;
|
|
267
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
268
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
269
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
270
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
271
|
+
}, string>;
|
|
272
|
+
}, string>;
|
|
273
|
+
allow_global_pause: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
274
|
+
}, string>;
|
|
275
|
+
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): DenyCapV2<ToPhantomTypeArgument<T>>;
|
|
276
|
+
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): DenyCapV2<ToPhantomTypeArgument<T>>;
|
|
277
|
+
static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): DenyCapV2<ToPhantomTypeArgument<T>>;
|
|
278
|
+
toJSONField(): {
|
|
279
|
+
id: string;
|
|
280
|
+
allowGlobalPause: boolean;
|
|
281
|
+
};
|
|
282
|
+
toJSON(): {
|
|
283
|
+
id: string;
|
|
284
|
+
allowGlobalPause: boolean;
|
|
285
|
+
$typeName: string;
|
|
286
|
+
$typeArgs: [PhantomToTypeStr<T>];
|
|
287
|
+
};
|
|
288
|
+
static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): DenyCapV2<ToPhantomTypeArgument<T>>;
|
|
289
|
+
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): DenyCapV2<ToPhantomTypeArgument<T>>;
|
|
290
|
+
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): DenyCapV2<ToPhantomTypeArgument<T>>;
|
|
291
|
+
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): DenyCapV2<ToPhantomTypeArgument<T>>;
|
|
292
|
+
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<DenyCapV2<ToPhantomTypeArgument<T>>>;
|
|
293
|
+
}
|
|
294
|
+
export declare function isRegulatedCoinMetadata(type: string): boolean;
|
|
295
|
+
export interface RegulatedCoinMetadataFields<T extends PhantomTypeArgument> {
|
|
296
|
+
id: ToField<UID>;
|
|
297
|
+
coinMetadataObject: ToField<ID>;
|
|
298
|
+
denyCapObject: ToField<ID>;
|
|
299
|
+
}
|
|
300
|
+
export type RegulatedCoinMetadataReified<T extends PhantomTypeArgument> = Reified<RegulatedCoinMetadata<T>, RegulatedCoinMetadataFields<T>>;
|
|
301
|
+
export declare class RegulatedCoinMetadata<T extends PhantomTypeArgument> implements StructClass {
|
|
302
|
+
__StructClass: true;
|
|
303
|
+
static readonly $typeName = "0x2::coin::RegulatedCoinMetadata";
|
|
304
|
+
static readonly $numTypeParams = 1;
|
|
305
|
+
static readonly $isPhantom: readonly [true];
|
|
306
|
+
readonly $typeName = "0x2::coin::RegulatedCoinMetadata";
|
|
307
|
+
readonly $fullTypeName: `${typeof PKG_V26}::coin::RegulatedCoinMetadata<${PhantomToTypeStr<T>}>`;
|
|
308
|
+
readonly $typeArgs: [PhantomToTypeStr<T>];
|
|
309
|
+
readonly $isPhantom: readonly [true];
|
|
310
|
+
readonly id: ToField<UID>;
|
|
311
|
+
readonly coinMetadataObject: ToField<ID>;
|
|
312
|
+
readonly denyCapObject: ToField<ID>;
|
|
313
|
+
private constructor();
|
|
314
|
+
static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): RegulatedCoinMetadataReified<ToPhantomTypeArgument<T>>;
|
|
315
|
+
static get r(): typeof RegulatedCoinMetadata.reified;
|
|
316
|
+
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<RegulatedCoinMetadata<ToPhantomTypeArgument<T>>>>;
|
|
317
|
+
static get p(): typeof RegulatedCoinMetadata.phantom;
|
|
318
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
319
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
320
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
321
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
322
|
+
}, string>;
|
|
323
|
+
}, string>;
|
|
324
|
+
coin_metadata_object: import("@mysten/sui/bcs").BcsStruct<{
|
|
325
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
326
|
+
}, string>;
|
|
327
|
+
deny_cap_object: import("@mysten/sui/bcs").BcsStruct<{
|
|
328
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
329
|
+
}, string>;
|
|
330
|
+
}, string>;
|
|
331
|
+
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): RegulatedCoinMetadata<ToPhantomTypeArgument<T>>;
|
|
332
|
+
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): RegulatedCoinMetadata<ToPhantomTypeArgument<T>>;
|
|
333
|
+
static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): RegulatedCoinMetadata<ToPhantomTypeArgument<T>>;
|
|
334
|
+
toJSONField(): {
|
|
335
|
+
id: string;
|
|
336
|
+
coinMetadataObject: string;
|
|
337
|
+
denyCapObject: string;
|
|
338
|
+
};
|
|
339
|
+
toJSON(): {
|
|
340
|
+
id: string;
|
|
341
|
+
coinMetadataObject: string;
|
|
342
|
+
denyCapObject: string;
|
|
343
|
+
$typeName: string;
|
|
344
|
+
$typeArgs: [PhantomToTypeStr<T>];
|
|
345
|
+
};
|
|
346
|
+
static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): RegulatedCoinMetadata<ToPhantomTypeArgument<T>>;
|
|
347
|
+
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): RegulatedCoinMetadata<ToPhantomTypeArgument<T>>;
|
|
348
|
+
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): RegulatedCoinMetadata<ToPhantomTypeArgument<T>>;
|
|
349
|
+
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): RegulatedCoinMetadata<ToPhantomTypeArgument<T>>;
|
|
350
|
+
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<RegulatedCoinMetadata<ToPhantomTypeArgument<T>>>;
|
|
351
|
+
}
|
|
352
|
+
export declare function isTreasuryCap(type: string): boolean;
|
|
353
|
+
export interface TreasuryCapFields<T extends PhantomTypeArgument> {
|
|
354
|
+
id: ToField<UID>;
|
|
355
|
+
totalSupply: ToField<Supply<T>>;
|
|
356
|
+
}
|
|
357
|
+
export type TreasuryCapReified<T extends PhantomTypeArgument> = Reified<TreasuryCap<T>, TreasuryCapFields<T>>;
|
|
358
|
+
export declare class TreasuryCap<T extends PhantomTypeArgument> implements StructClass {
|
|
359
|
+
__StructClass: true;
|
|
360
|
+
static readonly $typeName = "0x2::coin::TreasuryCap";
|
|
361
|
+
static readonly $numTypeParams = 1;
|
|
362
|
+
static readonly $isPhantom: readonly [true];
|
|
363
|
+
readonly $typeName = "0x2::coin::TreasuryCap";
|
|
364
|
+
readonly $fullTypeName: `${typeof PKG_V26}::coin::TreasuryCap<${PhantomToTypeStr<T>}>`;
|
|
365
|
+
readonly $typeArgs: [PhantomToTypeStr<T>];
|
|
366
|
+
readonly $isPhantom: readonly [true];
|
|
367
|
+
readonly id: ToField<UID>;
|
|
368
|
+
readonly totalSupply: ToField<Supply<T>>;
|
|
369
|
+
private constructor();
|
|
370
|
+
static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): TreasuryCapReified<ToPhantomTypeArgument<T>>;
|
|
371
|
+
static get r(): typeof TreasuryCap.reified;
|
|
372
|
+
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<TreasuryCap<ToPhantomTypeArgument<T>>>>;
|
|
373
|
+
static get p(): typeof TreasuryCap.phantom;
|
|
374
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
375
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
376
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
377
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
378
|
+
}, string>;
|
|
379
|
+
}, string>;
|
|
380
|
+
total_supply: import("@mysten/sui/bcs").BcsStruct<{
|
|
381
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
382
|
+
}, string>;
|
|
383
|
+
}, string>;
|
|
384
|
+
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): TreasuryCap<ToPhantomTypeArgument<T>>;
|
|
385
|
+
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): TreasuryCap<ToPhantomTypeArgument<T>>;
|
|
386
|
+
static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): TreasuryCap<ToPhantomTypeArgument<T>>;
|
|
387
|
+
toJSONField(): {
|
|
388
|
+
id: string;
|
|
389
|
+
totalSupply: {
|
|
390
|
+
value: string;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
toJSON(): {
|
|
394
|
+
id: string;
|
|
395
|
+
totalSupply: {
|
|
396
|
+
value: string;
|
|
397
|
+
};
|
|
398
|
+
$typeName: string;
|
|
399
|
+
$typeArgs: [PhantomToTypeStr<T>];
|
|
400
|
+
};
|
|
401
|
+
static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): TreasuryCap<ToPhantomTypeArgument<T>>;
|
|
402
|
+
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): TreasuryCap<ToPhantomTypeArgument<T>>;
|
|
403
|
+
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): TreasuryCap<ToPhantomTypeArgument<T>>;
|
|
404
|
+
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): TreasuryCap<ToPhantomTypeArgument<T>>;
|
|
405
|
+
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<TreasuryCap<ToPhantomTypeArgument<T>>>;
|
|
406
|
+
}
|