@typus/typus-perp-sdk 1.1.30-testnet → 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 +45 -37
- 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
|
@@ -1,421 +0,0 @@
|
|
|
1
|
-
import { PhantomReified, PhantomToTypeStr, PhantomTypeArgument, Reified, StructClass, ToField, ToPhantomTypeArgument, ToTypeStr } from "../../../../_framework/reified";
|
|
2
|
-
import { FieldsWithTypes } from "../../../../_framework/util";
|
|
3
|
-
import { Option } from "../../0x1/option/structs";
|
|
4
|
-
import { String } from "../../0x1/string/structs";
|
|
5
|
-
import { TypeName } from "../../0x1/type-name/structs";
|
|
6
|
-
import { Balance } from "../balance/structs";
|
|
7
|
-
import { PKG_V26 } from "../index";
|
|
8
|
-
import { ID, UID } from "../object/structs";
|
|
9
|
-
import { VecMap } from "../vec-map/structs";
|
|
10
|
-
import { VecSet } from "../vec-set/structs";
|
|
11
|
-
import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
|
|
12
|
-
export declare function isActionRequest(type: string): boolean;
|
|
13
|
-
export interface ActionRequestFields<T extends PhantomTypeArgument> {
|
|
14
|
-
name: ToField<String>;
|
|
15
|
-
amount: ToField<"u64">;
|
|
16
|
-
sender: ToField<"address">;
|
|
17
|
-
recipient: ToField<Option<"address">>;
|
|
18
|
-
spentBalance: ToField<Option<Balance<T>>>;
|
|
19
|
-
approvals: ToField<VecSet<TypeName>>;
|
|
20
|
-
}
|
|
21
|
-
export type ActionRequestReified<T extends PhantomTypeArgument> = Reified<ActionRequest<T>, ActionRequestFields<T>>;
|
|
22
|
-
export declare class ActionRequest<T extends PhantomTypeArgument> implements StructClass {
|
|
23
|
-
__StructClass: true;
|
|
24
|
-
static readonly $typeName = "0x2::token::ActionRequest";
|
|
25
|
-
static readonly $numTypeParams = 1;
|
|
26
|
-
static readonly $isPhantom: readonly [true];
|
|
27
|
-
readonly $typeName = "0x2::token::ActionRequest";
|
|
28
|
-
readonly $fullTypeName: `${typeof PKG_V26}::token::ActionRequest<${PhantomToTypeStr<T>}>`;
|
|
29
|
-
readonly $typeArgs: [PhantomToTypeStr<T>];
|
|
30
|
-
readonly $isPhantom: readonly [true];
|
|
31
|
-
readonly name: ToField<String>;
|
|
32
|
-
readonly amount: ToField<"u64">;
|
|
33
|
-
readonly sender: ToField<"address">;
|
|
34
|
-
readonly recipient: ToField<Option<"address">>;
|
|
35
|
-
readonly spentBalance: ToField<Option<Balance<T>>>;
|
|
36
|
-
readonly approvals: ToField<VecSet<TypeName>>;
|
|
37
|
-
private constructor();
|
|
38
|
-
static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): ActionRequestReified<ToPhantomTypeArgument<T>>;
|
|
39
|
-
static get r(): typeof ActionRequest.reified;
|
|
40
|
-
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<ActionRequest<ToPhantomTypeArgument<T>>>>;
|
|
41
|
-
static get p(): typeof ActionRequest.phantom;
|
|
42
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
43
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
44
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
45
|
-
length: number;
|
|
46
|
-
}, string>;
|
|
47
|
-
}, string>;
|
|
48
|
-
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
49
|
-
sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
50
|
-
recipient: import("@mysten/sui/bcs").BcsStruct<{
|
|
51
|
-
vec: import("@mysten/sui/bcs").BcsType<string[], Iterable<string> & {
|
|
52
|
-
length: number;
|
|
53
|
-
}, string>;
|
|
54
|
-
}, string>;
|
|
55
|
-
spent_balance: import("@mysten/sui/bcs").BcsStruct<{
|
|
56
|
-
vec: import("@mysten/sui/bcs").BcsType<{
|
|
57
|
-
value: string;
|
|
58
|
-
}[], Iterable<{
|
|
59
|
-
value: string | number | bigint;
|
|
60
|
-
}> & {
|
|
61
|
-
length: number;
|
|
62
|
-
}, string>;
|
|
63
|
-
}, string>;
|
|
64
|
-
approvals: import("@mysten/sui/bcs").BcsStruct<{
|
|
65
|
-
contents: import("@mysten/sui/bcs").BcsType<{
|
|
66
|
-
name: {
|
|
67
|
-
bytes: number[];
|
|
68
|
-
};
|
|
69
|
-
}[], Iterable<{
|
|
70
|
-
name: {
|
|
71
|
-
bytes: Iterable<number> & {
|
|
72
|
-
length: number;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
}> & {
|
|
76
|
-
length: number;
|
|
77
|
-
}, string>;
|
|
78
|
-
}, string>;
|
|
79
|
-
}, string>;
|
|
80
|
-
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): ActionRequest<ToPhantomTypeArgument<T>>;
|
|
81
|
-
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): ActionRequest<ToPhantomTypeArgument<T>>;
|
|
82
|
-
static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): ActionRequest<ToPhantomTypeArgument<T>>;
|
|
83
|
-
toJSONField(): {
|
|
84
|
-
name: string;
|
|
85
|
-
amount: string;
|
|
86
|
-
sender: string;
|
|
87
|
-
recipient: string | null;
|
|
88
|
-
spentBalance: {
|
|
89
|
-
value: string;
|
|
90
|
-
} | null;
|
|
91
|
-
approvals: {
|
|
92
|
-
contents: {
|
|
93
|
-
name: string;
|
|
94
|
-
}[];
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
toJSON(): {
|
|
98
|
-
name: string;
|
|
99
|
-
amount: string;
|
|
100
|
-
sender: string;
|
|
101
|
-
recipient: string | null;
|
|
102
|
-
spentBalance: {
|
|
103
|
-
value: string;
|
|
104
|
-
} | null;
|
|
105
|
-
approvals: {
|
|
106
|
-
contents: {
|
|
107
|
-
name: string;
|
|
108
|
-
}[];
|
|
109
|
-
};
|
|
110
|
-
$typeName: string;
|
|
111
|
-
$typeArgs: [PhantomToTypeStr<T>];
|
|
112
|
-
};
|
|
113
|
-
static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): ActionRequest<ToPhantomTypeArgument<T>>;
|
|
114
|
-
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): ActionRequest<ToPhantomTypeArgument<T>>;
|
|
115
|
-
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): ActionRequest<ToPhantomTypeArgument<T>>;
|
|
116
|
-
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): ActionRequest<ToPhantomTypeArgument<T>>;
|
|
117
|
-
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<ActionRequest<ToPhantomTypeArgument<T>>>;
|
|
118
|
-
}
|
|
119
|
-
export declare function isRuleKey(type: string): boolean;
|
|
120
|
-
export interface RuleKeyFields<T extends PhantomTypeArgument> {
|
|
121
|
-
isProtected: ToField<"bool">;
|
|
122
|
-
}
|
|
123
|
-
export type RuleKeyReified<T extends PhantomTypeArgument> = Reified<RuleKey<T>, RuleKeyFields<T>>;
|
|
124
|
-
export declare class RuleKey<T extends PhantomTypeArgument> implements StructClass {
|
|
125
|
-
__StructClass: true;
|
|
126
|
-
static readonly $typeName = "0x2::token::RuleKey";
|
|
127
|
-
static readonly $numTypeParams = 1;
|
|
128
|
-
static readonly $isPhantom: readonly [true];
|
|
129
|
-
readonly $typeName = "0x2::token::RuleKey";
|
|
130
|
-
readonly $fullTypeName: `${typeof PKG_V26}::token::RuleKey<${PhantomToTypeStr<T>}>`;
|
|
131
|
-
readonly $typeArgs: [PhantomToTypeStr<T>];
|
|
132
|
-
readonly $isPhantom: readonly [true];
|
|
133
|
-
readonly isProtected: ToField<"bool">;
|
|
134
|
-
private constructor();
|
|
135
|
-
static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): RuleKeyReified<ToPhantomTypeArgument<T>>;
|
|
136
|
-
static get r(): typeof RuleKey.reified;
|
|
137
|
-
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<RuleKey<ToPhantomTypeArgument<T>>>>;
|
|
138
|
-
static get p(): typeof RuleKey.phantom;
|
|
139
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
140
|
-
is_protected: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
141
|
-
}, string>;
|
|
142
|
-
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): RuleKey<ToPhantomTypeArgument<T>>;
|
|
143
|
-
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): RuleKey<ToPhantomTypeArgument<T>>;
|
|
144
|
-
static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): RuleKey<ToPhantomTypeArgument<T>>;
|
|
145
|
-
toJSONField(): {
|
|
146
|
-
isProtected: boolean;
|
|
147
|
-
};
|
|
148
|
-
toJSON(): {
|
|
149
|
-
isProtected: boolean;
|
|
150
|
-
$typeName: string;
|
|
151
|
-
$typeArgs: [PhantomToTypeStr<T>];
|
|
152
|
-
};
|
|
153
|
-
static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): RuleKey<ToPhantomTypeArgument<T>>;
|
|
154
|
-
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): RuleKey<ToPhantomTypeArgument<T>>;
|
|
155
|
-
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): RuleKey<ToPhantomTypeArgument<T>>;
|
|
156
|
-
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): RuleKey<ToPhantomTypeArgument<T>>;
|
|
157
|
-
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<RuleKey<ToPhantomTypeArgument<T>>>;
|
|
158
|
-
}
|
|
159
|
-
export declare function isToken(type: string): boolean;
|
|
160
|
-
export interface TokenFields<T extends PhantomTypeArgument> {
|
|
161
|
-
id: ToField<UID>;
|
|
162
|
-
balance: ToField<Balance<T>>;
|
|
163
|
-
}
|
|
164
|
-
export type TokenReified<T extends PhantomTypeArgument> = Reified<Token<T>, TokenFields<T>>;
|
|
165
|
-
export declare class Token<T extends PhantomTypeArgument> implements StructClass {
|
|
166
|
-
__StructClass: true;
|
|
167
|
-
static readonly $typeName = "0x2::token::Token";
|
|
168
|
-
static readonly $numTypeParams = 1;
|
|
169
|
-
static readonly $isPhantom: readonly [true];
|
|
170
|
-
readonly $typeName = "0x2::token::Token";
|
|
171
|
-
readonly $fullTypeName: `${typeof PKG_V26}::token::Token<${PhantomToTypeStr<T>}>`;
|
|
172
|
-
readonly $typeArgs: [PhantomToTypeStr<T>];
|
|
173
|
-
readonly $isPhantom: readonly [true];
|
|
174
|
-
readonly id: ToField<UID>;
|
|
175
|
-
readonly balance: ToField<Balance<T>>;
|
|
176
|
-
private constructor();
|
|
177
|
-
static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): TokenReified<ToPhantomTypeArgument<T>>;
|
|
178
|
-
static get r(): typeof Token.reified;
|
|
179
|
-
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<Token<ToPhantomTypeArgument<T>>>>;
|
|
180
|
-
static get p(): typeof Token.phantom;
|
|
181
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
182
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
183
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
184
|
-
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
185
|
-
}, string>;
|
|
186
|
-
}, string>;
|
|
187
|
-
balance: import("@mysten/sui/bcs").BcsStruct<{
|
|
188
|
-
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
189
|
-
}, string>;
|
|
190
|
-
}, string>;
|
|
191
|
-
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): Token<ToPhantomTypeArgument<T>>;
|
|
192
|
-
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): Token<ToPhantomTypeArgument<T>>;
|
|
193
|
-
static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): Token<ToPhantomTypeArgument<T>>;
|
|
194
|
-
toJSONField(): {
|
|
195
|
-
id: string;
|
|
196
|
-
balance: {
|
|
197
|
-
value: string;
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
toJSON(): {
|
|
201
|
-
id: string;
|
|
202
|
-
balance: {
|
|
203
|
-
value: string;
|
|
204
|
-
};
|
|
205
|
-
$typeName: string;
|
|
206
|
-
$typeArgs: [PhantomToTypeStr<T>];
|
|
207
|
-
};
|
|
208
|
-
static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): Token<ToPhantomTypeArgument<T>>;
|
|
209
|
-
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): Token<ToPhantomTypeArgument<T>>;
|
|
210
|
-
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): Token<ToPhantomTypeArgument<T>>;
|
|
211
|
-
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): Token<ToPhantomTypeArgument<T>>;
|
|
212
|
-
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<Token<ToPhantomTypeArgument<T>>>;
|
|
213
|
-
}
|
|
214
|
-
export declare function isTokenPolicy(type: string): boolean;
|
|
215
|
-
export interface TokenPolicyFields<T extends PhantomTypeArgument> {
|
|
216
|
-
id: ToField<UID>;
|
|
217
|
-
spentBalance: ToField<Balance<T>>;
|
|
218
|
-
rules: ToField<VecMap<String, VecSet<TypeName>>>;
|
|
219
|
-
}
|
|
220
|
-
export type TokenPolicyReified<T extends PhantomTypeArgument> = Reified<TokenPolicy<T>, TokenPolicyFields<T>>;
|
|
221
|
-
export declare class TokenPolicy<T extends PhantomTypeArgument> implements StructClass {
|
|
222
|
-
__StructClass: true;
|
|
223
|
-
static readonly $typeName = "0x2::token::TokenPolicy";
|
|
224
|
-
static readonly $numTypeParams = 1;
|
|
225
|
-
static readonly $isPhantom: readonly [true];
|
|
226
|
-
readonly $typeName = "0x2::token::TokenPolicy";
|
|
227
|
-
readonly $fullTypeName: `${typeof PKG_V26}::token::TokenPolicy<${PhantomToTypeStr<T>}>`;
|
|
228
|
-
readonly $typeArgs: [PhantomToTypeStr<T>];
|
|
229
|
-
readonly $isPhantom: readonly [true];
|
|
230
|
-
readonly id: ToField<UID>;
|
|
231
|
-
readonly spentBalance: ToField<Balance<T>>;
|
|
232
|
-
readonly rules: ToField<VecMap<String, VecSet<TypeName>>>;
|
|
233
|
-
private constructor();
|
|
234
|
-
static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): TokenPolicyReified<ToPhantomTypeArgument<T>>;
|
|
235
|
-
static get r(): typeof TokenPolicy.reified;
|
|
236
|
-
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<TokenPolicy<ToPhantomTypeArgument<T>>>>;
|
|
237
|
-
static get p(): typeof TokenPolicy.phantom;
|
|
238
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
239
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
240
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
241
|
-
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
242
|
-
}, string>;
|
|
243
|
-
}, string>;
|
|
244
|
-
spent_balance: import("@mysten/sui/bcs").BcsStruct<{
|
|
245
|
-
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
246
|
-
}, string>;
|
|
247
|
-
rules: import("@mysten/sui/bcs").BcsStruct<{
|
|
248
|
-
contents: import("@mysten/sui/bcs").BcsType<{
|
|
249
|
-
key: {
|
|
250
|
-
bytes: number[];
|
|
251
|
-
};
|
|
252
|
-
value: {
|
|
253
|
-
contents: {
|
|
254
|
-
name: {
|
|
255
|
-
bytes: number[];
|
|
256
|
-
};
|
|
257
|
-
}[];
|
|
258
|
-
};
|
|
259
|
-
}[], Iterable<{
|
|
260
|
-
key: {
|
|
261
|
-
bytes: Iterable<number> & {
|
|
262
|
-
length: number;
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
value: {
|
|
266
|
-
contents: Iterable<{
|
|
267
|
-
name: {
|
|
268
|
-
bytes: Iterable<number> & {
|
|
269
|
-
length: number;
|
|
270
|
-
};
|
|
271
|
-
};
|
|
272
|
-
}> & {
|
|
273
|
-
length: number;
|
|
274
|
-
};
|
|
275
|
-
};
|
|
276
|
-
}> & {
|
|
277
|
-
length: number;
|
|
278
|
-
}, string>;
|
|
279
|
-
}, string>;
|
|
280
|
-
}, string>;
|
|
281
|
-
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): TokenPolicy<ToPhantomTypeArgument<T>>;
|
|
282
|
-
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): TokenPolicy<ToPhantomTypeArgument<T>>;
|
|
283
|
-
static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): TokenPolicy<ToPhantomTypeArgument<T>>;
|
|
284
|
-
toJSONField(): {
|
|
285
|
-
id: string;
|
|
286
|
-
spentBalance: {
|
|
287
|
-
value: string;
|
|
288
|
-
};
|
|
289
|
-
rules: {
|
|
290
|
-
contents: {
|
|
291
|
-
key: string;
|
|
292
|
-
value: {
|
|
293
|
-
contents: {
|
|
294
|
-
name: string;
|
|
295
|
-
}[];
|
|
296
|
-
};
|
|
297
|
-
}[];
|
|
298
|
-
};
|
|
299
|
-
};
|
|
300
|
-
toJSON(): {
|
|
301
|
-
id: string;
|
|
302
|
-
spentBalance: {
|
|
303
|
-
value: string;
|
|
304
|
-
};
|
|
305
|
-
rules: {
|
|
306
|
-
contents: {
|
|
307
|
-
key: string;
|
|
308
|
-
value: {
|
|
309
|
-
contents: {
|
|
310
|
-
name: string;
|
|
311
|
-
}[];
|
|
312
|
-
};
|
|
313
|
-
}[];
|
|
314
|
-
};
|
|
315
|
-
$typeName: string;
|
|
316
|
-
$typeArgs: [PhantomToTypeStr<T>];
|
|
317
|
-
};
|
|
318
|
-
static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): TokenPolicy<ToPhantomTypeArgument<T>>;
|
|
319
|
-
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): TokenPolicy<ToPhantomTypeArgument<T>>;
|
|
320
|
-
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): TokenPolicy<ToPhantomTypeArgument<T>>;
|
|
321
|
-
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): TokenPolicy<ToPhantomTypeArgument<T>>;
|
|
322
|
-
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<TokenPolicy<ToPhantomTypeArgument<T>>>;
|
|
323
|
-
}
|
|
324
|
-
export declare function isTokenPolicyCap(type: string): boolean;
|
|
325
|
-
export interface TokenPolicyCapFields<T extends PhantomTypeArgument> {
|
|
326
|
-
id: ToField<UID>;
|
|
327
|
-
for: ToField<ID>;
|
|
328
|
-
}
|
|
329
|
-
export type TokenPolicyCapReified<T extends PhantomTypeArgument> = Reified<TokenPolicyCap<T>, TokenPolicyCapFields<T>>;
|
|
330
|
-
export declare class TokenPolicyCap<T extends PhantomTypeArgument> implements StructClass {
|
|
331
|
-
__StructClass: true;
|
|
332
|
-
static readonly $typeName = "0x2::token::TokenPolicyCap";
|
|
333
|
-
static readonly $numTypeParams = 1;
|
|
334
|
-
static readonly $isPhantom: readonly [true];
|
|
335
|
-
readonly $typeName = "0x2::token::TokenPolicyCap";
|
|
336
|
-
readonly $fullTypeName: `${typeof PKG_V26}::token::TokenPolicyCap<${PhantomToTypeStr<T>}>`;
|
|
337
|
-
readonly $typeArgs: [PhantomToTypeStr<T>];
|
|
338
|
-
readonly $isPhantom: readonly [true];
|
|
339
|
-
readonly id: ToField<UID>;
|
|
340
|
-
readonly for: ToField<ID>;
|
|
341
|
-
private constructor();
|
|
342
|
-
static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): TokenPolicyCapReified<ToPhantomTypeArgument<T>>;
|
|
343
|
-
static get r(): typeof TokenPolicyCap.reified;
|
|
344
|
-
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<TokenPolicyCap<ToPhantomTypeArgument<T>>>>;
|
|
345
|
-
static get p(): typeof TokenPolicyCap.phantom;
|
|
346
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
347
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
348
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
349
|
-
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
350
|
-
}, string>;
|
|
351
|
-
}, string>;
|
|
352
|
-
for: import("@mysten/sui/bcs").BcsStruct<{
|
|
353
|
-
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
354
|
-
}, string>;
|
|
355
|
-
}, string>;
|
|
356
|
-
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): TokenPolicyCap<ToPhantomTypeArgument<T>>;
|
|
357
|
-
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): TokenPolicyCap<ToPhantomTypeArgument<T>>;
|
|
358
|
-
static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): TokenPolicyCap<ToPhantomTypeArgument<T>>;
|
|
359
|
-
toJSONField(): {
|
|
360
|
-
id: string;
|
|
361
|
-
for: string;
|
|
362
|
-
};
|
|
363
|
-
toJSON(): {
|
|
364
|
-
id: string;
|
|
365
|
-
for: string;
|
|
366
|
-
$typeName: string;
|
|
367
|
-
$typeArgs: [PhantomToTypeStr<T>];
|
|
368
|
-
};
|
|
369
|
-
static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): TokenPolicyCap<ToPhantomTypeArgument<T>>;
|
|
370
|
-
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): TokenPolicyCap<ToPhantomTypeArgument<T>>;
|
|
371
|
-
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): TokenPolicyCap<ToPhantomTypeArgument<T>>;
|
|
372
|
-
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): TokenPolicyCap<ToPhantomTypeArgument<T>>;
|
|
373
|
-
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<TokenPolicyCap<ToPhantomTypeArgument<T>>>;
|
|
374
|
-
}
|
|
375
|
-
export declare function isTokenPolicyCreated(type: string): boolean;
|
|
376
|
-
export interface TokenPolicyCreatedFields<T extends PhantomTypeArgument> {
|
|
377
|
-
id: ToField<ID>;
|
|
378
|
-
isMutable: ToField<"bool">;
|
|
379
|
-
}
|
|
380
|
-
export type TokenPolicyCreatedReified<T extends PhantomTypeArgument> = Reified<TokenPolicyCreated<T>, TokenPolicyCreatedFields<T>>;
|
|
381
|
-
export declare class TokenPolicyCreated<T extends PhantomTypeArgument> implements StructClass {
|
|
382
|
-
__StructClass: true;
|
|
383
|
-
static readonly $typeName = "0x2::token::TokenPolicyCreated";
|
|
384
|
-
static readonly $numTypeParams = 1;
|
|
385
|
-
static readonly $isPhantom: readonly [true];
|
|
386
|
-
readonly $typeName = "0x2::token::TokenPolicyCreated";
|
|
387
|
-
readonly $fullTypeName: `${typeof PKG_V26}::token::TokenPolicyCreated<${PhantomToTypeStr<T>}>`;
|
|
388
|
-
readonly $typeArgs: [PhantomToTypeStr<T>];
|
|
389
|
-
readonly $isPhantom: readonly [true];
|
|
390
|
-
readonly id: ToField<ID>;
|
|
391
|
-
readonly isMutable: ToField<"bool">;
|
|
392
|
-
private constructor();
|
|
393
|
-
static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): TokenPolicyCreatedReified<ToPhantomTypeArgument<T>>;
|
|
394
|
-
static get r(): typeof TokenPolicyCreated.reified;
|
|
395
|
-
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<TokenPolicyCreated<ToPhantomTypeArgument<T>>>>;
|
|
396
|
-
static get p(): typeof TokenPolicyCreated.phantom;
|
|
397
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
398
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
399
|
-
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
400
|
-
}, string>;
|
|
401
|
-
is_mutable: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
402
|
-
}, string>;
|
|
403
|
-
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): TokenPolicyCreated<ToPhantomTypeArgument<T>>;
|
|
404
|
-
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): TokenPolicyCreated<ToPhantomTypeArgument<T>>;
|
|
405
|
-
static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): TokenPolicyCreated<ToPhantomTypeArgument<T>>;
|
|
406
|
-
toJSONField(): {
|
|
407
|
-
id: string;
|
|
408
|
-
isMutable: boolean;
|
|
409
|
-
};
|
|
410
|
-
toJSON(): {
|
|
411
|
-
id: string;
|
|
412
|
-
isMutable: boolean;
|
|
413
|
-
$typeName: string;
|
|
414
|
-
$typeArgs: [PhantomToTypeStr<T>];
|
|
415
|
-
};
|
|
416
|
-
static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): TokenPolicyCreated<ToPhantomTypeArgument<T>>;
|
|
417
|
-
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): TokenPolicyCreated<ToPhantomTypeArgument<T>>;
|
|
418
|
-
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): TokenPolicyCreated<ToPhantomTypeArgument<T>>;
|
|
419
|
-
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): TokenPolicyCreated<ToPhantomTypeArgument<T>>;
|
|
420
|
-
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<TokenPolicyCreated<ToPhantomTypeArgument<T>>>;
|
|
421
|
-
}
|