@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,122 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addAuthorizedUser = addAuthorizedUser;
|
|
4
|
-
exports.addCompetitionLeaderboard = addCompetitionLeaderboard;
|
|
5
|
-
exports.addExpLeaderboard = addExpLeaderboard;
|
|
6
|
-
exports.addTailsExpAmount = addTailsExpAmount;
|
|
7
|
-
exports.chargeFee = chargeFee;
|
|
8
|
-
exports.chargeLiquidatorFee = chargeLiquidatorFee;
|
|
9
|
-
exports.init = init;
|
|
10
|
-
exports.installEcosystemManagerCapEntry = installEcosystemManagerCapEntry;
|
|
11
|
-
exports.removeAuthorizedUser = removeAuthorizedUser;
|
|
12
|
-
exports.sendFee = sendFee;
|
|
13
|
-
exports.sendLiquidatorFee = sendLiquidatorFee;
|
|
14
|
-
exports.upgrade = upgrade;
|
|
15
|
-
exports.verify = verify;
|
|
16
|
-
exports.versionCheck = versionCheck;
|
|
17
|
-
var __1 = require("..");
|
|
18
|
-
var structs_1 = require("../../_dependencies/source/0x1/ascii/structs");
|
|
19
|
-
var util_1 = require("../../_framework/util");
|
|
20
|
-
function addAuthorizedUser(tx, args, published_at) {
|
|
21
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
22
|
-
return tx.moveCall({
|
|
23
|
-
target: "".concat(published_at, "::admin::add_authorized_user"),
|
|
24
|
-
arguments: [(0, util_1.obj)(tx, args.version), (0, util_1.pure)(tx, args.userAddress, "address")],
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function addCompetitionLeaderboard(tx, args, published_at) {
|
|
28
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
29
|
-
return tx.moveCall({
|
|
30
|
-
target: "".concat(published_at, "::admin::add_competition_leaderboard"),
|
|
31
|
-
arguments: [
|
|
32
|
-
(0, util_1.obj)(tx, args.version),
|
|
33
|
-
(0, util_1.obj)(tx, args.typusEcosystemVersion),
|
|
34
|
-
(0, util_1.obj)(tx, args.typusLeaderboardRegistry),
|
|
35
|
-
(0, util_1.pure)(tx, args.leaderboardKey, "".concat(structs_1.String.$typeName)),
|
|
36
|
-
(0, util_1.pure)(tx, args.user, "address"),
|
|
37
|
-
(0, util_1.pure)(tx, args.score, "u64"),
|
|
38
|
-
(0, util_1.obj)(tx, args.clock),
|
|
39
|
-
],
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
function addExpLeaderboard(tx, args, published_at) {
|
|
43
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
44
|
-
return tx.moveCall({
|
|
45
|
-
target: "".concat(published_at, "::admin::add_exp_leaderboard"),
|
|
46
|
-
arguments: [
|
|
47
|
-
(0, util_1.obj)(tx, args.version),
|
|
48
|
-
(0, util_1.obj)(tx, args.typusEcosystemVersion),
|
|
49
|
-
(0, util_1.obj)(tx, args.typusLeaderboardRegistry),
|
|
50
|
-
(0, util_1.pure)(tx, args.user, "address"),
|
|
51
|
-
(0, util_1.pure)(tx, args.score, "u64"),
|
|
52
|
-
(0, util_1.obj)(tx, args.clock),
|
|
53
|
-
],
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
function addTailsExpAmount(tx, args, published_at) {
|
|
57
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
58
|
-
return tx.moveCall({
|
|
59
|
-
target: "".concat(published_at, "::admin::add_tails_exp_amount"),
|
|
60
|
-
arguments: [
|
|
61
|
-
(0, util_1.obj)(tx, args.version),
|
|
62
|
-
(0, util_1.obj)(tx, args.typusEcosystemVersion),
|
|
63
|
-
(0, util_1.obj)(tx, args.typusUserRegistry),
|
|
64
|
-
(0, util_1.pure)(tx, args.user, "address"),
|
|
65
|
-
(0, util_1.pure)(tx, args.amount, "u64"),
|
|
66
|
-
],
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
function chargeFee(tx, typeArg, args, published_at) {
|
|
70
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
71
|
-
return tx.moveCall({
|
|
72
|
-
target: "".concat(published_at, "::admin::charge_fee"),
|
|
73
|
-
typeArguments: [typeArg],
|
|
74
|
-
arguments: [(0, util_1.obj)(tx, args.version), (0, util_1.obj)(tx, args.balance)],
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
function chargeLiquidatorFee(tx, typeArg, args, published_at) {
|
|
78
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
79
|
-
return tx.moveCall({
|
|
80
|
-
target: "".concat(published_at, "::admin::charge_liquidator_fee"),
|
|
81
|
-
typeArguments: [typeArg],
|
|
82
|
-
arguments: [(0, util_1.obj)(tx, args.version), (0, util_1.obj)(tx, args.balance)],
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
function init(tx, published_at) {
|
|
86
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
87
|
-
return tx.moveCall({ target: "".concat(published_at, "::admin::init"), arguments: [] });
|
|
88
|
-
}
|
|
89
|
-
function installEcosystemManagerCapEntry(tx, args, published_at) {
|
|
90
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
91
|
-
return tx.moveCall({
|
|
92
|
-
target: "".concat(published_at, "::admin::install_ecosystem_manager_cap_entry"),
|
|
93
|
-
arguments: [(0, util_1.obj)(tx, args.version), (0, util_1.obj)(tx, args.typusEcosystemVersion)],
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
function removeAuthorizedUser(tx, args, published_at) {
|
|
97
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
98
|
-
return tx.moveCall({
|
|
99
|
-
target: "".concat(published_at, "::admin::remove_authorized_user"),
|
|
100
|
-
arguments: [(0, util_1.obj)(tx, args.version), (0, util_1.pure)(tx, args.userAddress, "address")],
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
function sendFee(tx, typeArg, version, published_at) {
|
|
104
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
105
|
-
return tx.moveCall({ target: "".concat(published_at, "::admin::send_fee"), typeArguments: [typeArg], arguments: [(0, util_1.obj)(tx, version)] });
|
|
106
|
-
}
|
|
107
|
-
function sendLiquidatorFee(tx, typeArg, version, published_at) {
|
|
108
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
109
|
-
return tx.moveCall({ target: "".concat(published_at, "::admin::send_liquidator_fee"), typeArguments: [typeArg], arguments: [(0, util_1.obj)(tx, version)] });
|
|
110
|
-
}
|
|
111
|
-
function upgrade(tx, version, published_at) {
|
|
112
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
113
|
-
return tx.moveCall({ target: "".concat(published_at, "::admin::upgrade"), arguments: [(0, util_1.obj)(tx, version)] });
|
|
114
|
-
}
|
|
115
|
-
function verify(tx, version, published_at) {
|
|
116
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
117
|
-
return tx.moveCall({ target: "".concat(published_at, "::admin::verify"), arguments: [(0, util_1.obj)(tx, version)] });
|
|
118
|
-
}
|
|
119
|
-
function versionCheck(tx, version, published_at) {
|
|
120
|
-
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
121
|
-
return tx.moveCall({ target: "".concat(published_at, "::admin::version_check"), arguments: [(0, util_1.obj)(tx, version)] });
|
|
122
|
-
}
|
|
@@ -1,467 +0,0 @@
|
|
|
1
|
-
import * as reified from "../../_framework/reified";
|
|
2
|
-
import { TypeName } from "../../_dependencies/source/0x1/type-name/structs";
|
|
3
|
-
import { UID } from "../../_dependencies/source/0x2/object/structs";
|
|
4
|
-
import { VecSet } from "../../_dependencies/source/0x2/vec-set/structs";
|
|
5
|
-
import { PhantomReified, Reified, StructClass, ToField, ToTypeStr } from "../../_framework/reified";
|
|
6
|
-
import { FieldsWithTypes } from "../../_framework/util";
|
|
7
|
-
import { Vector } from "../../_framework/vector";
|
|
8
|
-
import { PKG_V1 } from "../index";
|
|
9
|
-
import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
|
|
10
|
-
export declare function isFeeInfo(type: string): boolean;
|
|
11
|
-
export interface FeeInfoFields {
|
|
12
|
-
token: ToField<TypeName>;
|
|
13
|
-
value: ToField<"u64">;
|
|
14
|
-
}
|
|
15
|
-
export type FeeInfoReified = Reified<FeeInfo, FeeInfoFields>;
|
|
16
|
-
export declare class FeeInfo implements StructClass {
|
|
17
|
-
__StructClass: true;
|
|
18
|
-
static readonly $typeName: string;
|
|
19
|
-
static readonly $numTypeParams = 0;
|
|
20
|
-
static readonly $isPhantom: readonly [];
|
|
21
|
-
readonly $typeName: string;
|
|
22
|
-
readonly $fullTypeName: `${typeof PKG_V1}::admin::FeeInfo`;
|
|
23
|
-
readonly $typeArgs: [];
|
|
24
|
-
readonly $isPhantom: readonly [];
|
|
25
|
-
readonly token: ToField<TypeName>;
|
|
26
|
-
readonly value: ToField<"u64">;
|
|
27
|
-
private constructor();
|
|
28
|
-
static reified(): FeeInfoReified;
|
|
29
|
-
static get r(): reified.StructClassReified<FeeInfo, FeeInfoFields>;
|
|
30
|
-
static phantom(): PhantomReified<ToTypeStr<FeeInfo>>;
|
|
31
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::admin::FeeInfo" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::admin::FeeInfo">;
|
|
32
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
33
|
-
token: import("@mysten/sui/bcs").BcsStruct<{
|
|
34
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
35
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
36
|
-
length: number;
|
|
37
|
-
}, string>;
|
|
38
|
-
}, string>;
|
|
39
|
-
}, string>;
|
|
40
|
-
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
41
|
-
}, string>;
|
|
42
|
-
static fromFields(fields: Record<string, any>): FeeInfo;
|
|
43
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): FeeInfo;
|
|
44
|
-
static fromBcs(data: Uint8Array): FeeInfo;
|
|
45
|
-
toJSONField(): {
|
|
46
|
-
token: {
|
|
47
|
-
name: string;
|
|
48
|
-
};
|
|
49
|
-
value: string;
|
|
50
|
-
};
|
|
51
|
-
toJSON(): {
|
|
52
|
-
token: {
|
|
53
|
-
name: string;
|
|
54
|
-
};
|
|
55
|
-
value: string;
|
|
56
|
-
$typeName: string;
|
|
57
|
-
$typeArgs: [];
|
|
58
|
-
};
|
|
59
|
-
static fromJSONField(field: any): FeeInfo;
|
|
60
|
-
static fromJSON(json: Record<string, any>): FeeInfo;
|
|
61
|
-
static fromSuiParsedData(content: SuiParsedData): FeeInfo;
|
|
62
|
-
static fromSuiObjectData(data: SuiObjectData): FeeInfo;
|
|
63
|
-
static fetch(client: SuiClient, id: string): Promise<FeeInfo>;
|
|
64
|
-
}
|
|
65
|
-
export declare function isFeePool(type: string): boolean;
|
|
66
|
-
export interface FeePoolFields {
|
|
67
|
-
id: ToField<UID>;
|
|
68
|
-
feeInfos: ToField<Vector<FeeInfo>>;
|
|
69
|
-
}
|
|
70
|
-
export type FeePoolReified = Reified<FeePool, FeePoolFields>;
|
|
71
|
-
export declare class FeePool implements StructClass {
|
|
72
|
-
__StructClass: true;
|
|
73
|
-
static readonly $typeName: string;
|
|
74
|
-
static readonly $numTypeParams = 0;
|
|
75
|
-
static readonly $isPhantom: readonly [];
|
|
76
|
-
readonly $typeName: string;
|
|
77
|
-
readonly $fullTypeName: `${typeof PKG_V1}::admin::FeePool`;
|
|
78
|
-
readonly $typeArgs: [];
|
|
79
|
-
readonly $isPhantom: readonly [];
|
|
80
|
-
readonly id: ToField<UID>;
|
|
81
|
-
readonly feeInfos: ToField<Vector<FeeInfo>>;
|
|
82
|
-
private constructor();
|
|
83
|
-
static reified(): FeePoolReified;
|
|
84
|
-
static get r(): reified.StructClassReified<FeePool, FeePoolFields>;
|
|
85
|
-
static phantom(): PhantomReified<ToTypeStr<FeePool>>;
|
|
86
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::admin::FeePool" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::admin::FeePool">;
|
|
87
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
88
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
89
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
90
|
-
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
91
|
-
}, string>;
|
|
92
|
-
}, string>;
|
|
93
|
-
fee_infos: import("@mysten/sui/bcs").BcsType<{
|
|
94
|
-
token: {
|
|
95
|
-
name: {
|
|
96
|
-
bytes: number[];
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
value: string;
|
|
100
|
-
}[], Iterable<{
|
|
101
|
-
token: {
|
|
102
|
-
name: {
|
|
103
|
-
bytes: Iterable<number> & {
|
|
104
|
-
length: number;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
value: string | number | bigint;
|
|
109
|
-
}> & {
|
|
110
|
-
length: number;
|
|
111
|
-
}, string>;
|
|
112
|
-
}, string>;
|
|
113
|
-
static fromFields(fields: Record<string, any>): FeePool;
|
|
114
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): FeePool;
|
|
115
|
-
static fromBcs(data: Uint8Array): FeePool;
|
|
116
|
-
toJSONField(): {
|
|
117
|
-
id: string;
|
|
118
|
-
feeInfos: {
|
|
119
|
-
token: {
|
|
120
|
-
name: string;
|
|
121
|
-
};
|
|
122
|
-
value: string;
|
|
123
|
-
}[];
|
|
124
|
-
};
|
|
125
|
-
toJSON(): {
|
|
126
|
-
id: string;
|
|
127
|
-
feeInfos: {
|
|
128
|
-
token: {
|
|
129
|
-
name: string;
|
|
130
|
-
};
|
|
131
|
-
value: string;
|
|
132
|
-
}[];
|
|
133
|
-
$typeName: string;
|
|
134
|
-
$typeArgs: [];
|
|
135
|
-
};
|
|
136
|
-
static fromJSONField(field: any): FeePool;
|
|
137
|
-
static fromJSON(json: Record<string, any>): FeePool;
|
|
138
|
-
static fromSuiParsedData(content: SuiParsedData): FeePool;
|
|
139
|
-
static fromSuiObjectData(data: SuiObjectData): FeePool;
|
|
140
|
-
static fetch(client: SuiClient, id: string): Promise<FeePool>;
|
|
141
|
-
}
|
|
142
|
-
export declare function isProtocolFeeEvent(type: string): boolean;
|
|
143
|
-
export interface ProtocolFeeEventFields {
|
|
144
|
-
token: ToField<TypeName>;
|
|
145
|
-
amount: ToField<"u64">;
|
|
146
|
-
}
|
|
147
|
-
export type ProtocolFeeEventReified = Reified<ProtocolFeeEvent, ProtocolFeeEventFields>;
|
|
148
|
-
export declare class ProtocolFeeEvent implements StructClass {
|
|
149
|
-
__StructClass: true;
|
|
150
|
-
static readonly $typeName: string;
|
|
151
|
-
static readonly $numTypeParams = 0;
|
|
152
|
-
static readonly $isPhantom: readonly [];
|
|
153
|
-
readonly $typeName: string;
|
|
154
|
-
readonly $fullTypeName: `${typeof PKG_V1}::admin::ProtocolFeeEvent`;
|
|
155
|
-
readonly $typeArgs: [];
|
|
156
|
-
readonly $isPhantom: readonly [];
|
|
157
|
-
readonly token: ToField<TypeName>;
|
|
158
|
-
readonly amount: ToField<"u64">;
|
|
159
|
-
private constructor();
|
|
160
|
-
static reified(): ProtocolFeeEventReified;
|
|
161
|
-
static get r(): reified.StructClassReified<ProtocolFeeEvent, ProtocolFeeEventFields>;
|
|
162
|
-
static phantom(): PhantomReified<ToTypeStr<ProtocolFeeEvent>>;
|
|
163
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::admin::ProtocolFeeEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::admin::ProtocolFeeEvent">;
|
|
164
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
165
|
-
token: import("@mysten/sui/bcs").BcsStruct<{
|
|
166
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
167
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
168
|
-
length: number;
|
|
169
|
-
}, string>;
|
|
170
|
-
}, string>;
|
|
171
|
-
}, string>;
|
|
172
|
-
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
173
|
-
}, string>;
|
|
174
|
-
static fromFields(fields: Record<string, any>): ProtocolFeeEvent;
|
|
175
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): ProtocolFeeEvent;
|
|
176
|
-
static fromBcs(data: Uint8Array): ProtocolFeeEvent;
|
|
177
|
-
toJSONField(): {
|
|
178
|
-
token: {
|
|
179
|
-
name: string;
|
|
180
|
-
};
|
|
181
|
-
amount: string;
|
|
182
|
-
};
|
|
183
|
-
toJSON(): {
|
|
184
|
-
token: {
|
|
185
|
-
name: string;
|
|
186
|
-
};
|
|
187
|
-
amount: string;
|
|
188
|
-
$typeName: string;
|
|
189
|
-
$typeArgs: [];
|
|
190
|
-
};
|
|
191
|
-
static fromJSONField(field: any): ProtocolFeeEvent;
|
|
192
|
-
static fromJSON(json: Record<string, any>): ProtocolFeeEvent;
|
|
193
|
-
static fromSuiParsedData(content: SuiParsedData): ProtocolFeeEvent;
|
|
194
|
-
static fromSuiObjectData(data: SuiObjectData): ProtocolFeeEvent;
|
|
195
|
-
static fetch(client: SuiClient, id: string): Promise<ProtocolFeeEvent>;
|
|
196
|
-
}
|
|
197
|
-
export declare function isPutInsuranceFundEvent(type: string): boolean;
|
|
198
|
-
export interface PutInsuranceFundEventFields {
|
|
199
|
-
token: ToField<TypeName>;
|
|
200
|
-
amount: ToField<"u64">;
|
|
201
|
-
}
|
|
202
|
-
export type PutInsuranceFundEventReified = Reified<PutInsuranceFundEvent, PutInsuranceFundEventFields>;
|
|
203
|
-
export declare class PutInsuranceFundEvent implements StructClass {
|
|
204
|
-
__StructClass: true;
|
|
205
|
-
static readonly $typeName: string;
|
|
206
|
-
static readonly $numTypeParams = 0;
|
|
207
|
-
static readonly $isPhantom: readonly [];
|
|
208
|
-
readonly $typeName: string;
|
|
209
|
-
readonly $fullTypeName: `${typeof PKG_V1}::admin::PutInsuranceFundEvent`;
|
|
210
|
-
readonly $typeArgs: [];
|
|
211
|
-
readonly $isPhantom: readonly [];
|
|
212
|
-
readonly token: ToField<TypeName>;
|
|
213
|
-
readonly amount: ToField<"u64">;
|
|
214
|
-
private constructor();
|
|
215
|
-
static reified(): PutInsuranceFundEventReified;
|
|
216
|
-
static get r(): reified.StructClassReified<PutInsuranceFundEvent, PutInsuranceFundEventFields>;
|
|
217
|
-
static phantom(): PhantomReified<ToTypeStr<PutInsuranceFundEvent>>;
|
|
218
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::admin::PutInsuranceFundEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::admin::PutInsuranceFundEvent">;
|
|
219
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
220
|
-
token: import("@mysten/sui/bcs").BcsStruct<{
|
|
221
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
222
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
223
|
-
length: number;
|
|
224
|
-
}, string>;
|
|
225
|
-
}, string>;
|
|
226
|
-
}, string>;
|
|
227
|
-
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
228
|
-
}, string>;
|
|
229
|
-
static fromFields(fields: Record<string, any>): PutInsuranceFundEvent;
|
|
230
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): PutInsuranceFundEvent;
|
|
231
|
-
static fromBcs(data: Uint8Array): PutInsuranceFundEvent;
|
|
232
|
-
toJSONField(): {
|
|
233
|
-
token: {
|
|
234
|
-
name: string;
|
|
235
|
-
};
|
|
236
|
-
amount: string;
|
|
237
|
-
};
|
|
238
|
-
toJSON(): {
|
|
239
|
-
token: {
|
|
240
|
-
name: string;
|
|
241
|
-
};
|
|
242
|
-
amount: string;
|
|
243
|
-
$typeName: string;
|
|
244
|
-
$typeArgs: [];
|
|
245
|
-
};
|
|
246
|
-
static fromJSONField(field: any): PutInsuranceFundEvent;
|
|
247
|
-
static fromJSON(json: Record<string, any>): PutInsuranceFundEvent;
|
|
248
|
-
static fromSuiParsedData(content: SuiParsedData): PutInsuranceFundEvent;
|
|
249
|
-
static fromSuiObjectData(data: SuiObjectData): PutInsuranceFundEvent;
|
|
250
|
-
static fetch(client: SuiClient, id: string): Promise<PutInsuranceFundEvent>;
|
|
251
|
-
}
|
|
252
|
-
export declare function isSendFeeEvent(type: string): boolean;
|
|
253
|
-
export interface SendFeeEventFields {
|
|
254
|
-
token: ToField<TypeName>;
|
|
255
|
-
amount: ToField<"u64">;
|
|
256
|
-
}
|
|
257
|
-
export type SendFeeEventReified = Reified<SendFeeEvent, SendFeeEventFields>;
|
|
258
|
-
export declare class SendFeeEvent implements StructClass {
|
|
259
|
-
__StructClass: true;
|
|
260
|
-
static readonly $typeName: string;
|
|
261
|
-
static readonly $numTypeParams = 0;
|
|
262
|
-
static readonly $isPhantom: readonly [];
|
|
263
|
-
readonly $typeName: string;
|
|
264
|
-
readonly $fullTypeName: `${typeof PKG_V1}::admin::SendFeeEvent`;
|
|
265
|
-
readonly $typeArgs: [];
|
|
266
|
-
readonly $isPhantom: readonly [];
|
|
267
|
-
readonly token: ToField<TypeName>;
|
|
268
|
-
readonly amount: ToField<"u64">;
|
|
269
|
-
private constructor();
|
|
270
|
-
static reified(): SendFeeEventReified;
|
|
271
|
-
static get r(): reified.StructClassReified<SendFeeEvent, SendFeeEventFields>;
|
|
272
|
-
static phantom(): PhantomReified<ToTypeStr<SendFeeEvent>>;
|
|
273
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::admin::SendFeeEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::admin::SendFeeEvent">;
|
|
274
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
275
|
-
token: import("@mysten/sui/bcs").BcsStruct<{
|
|
276
|
-
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
277
|
-
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
278
|
-
length: number;
|
|
279
|
-
}, string>;
|
|
280
|
-
}, string>;
|
|
281
|
-
}, string>;
|
|
282
|
-
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
283
|
-
}, string>;
|
|
284
|
-
static fromFields(fields: Record<string, any>): SendFeeEvent;
|
|
285
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): SendFeeEvent;
|
|
286
|
-
static fromBcs(data: Uint8Array): SendFeeEvent;
|
|
287
|
-
toJSONField(): {
|
|
288
|
-
token: {
|
|
289
|
-
name: string;
|
|
290
|
-
};
|
|
291
|
-
amount: string;
|
|
292
|
-
};
|
|
293
|
-
toJSON(): {
|
|
294
|
-
token: {
|
|
295
|
-
name: string;
|
|
296
|
-
};
|
|
297
|
-
amount: string;
|
|
298
|
-
$typeName: string;
|
|
299
|
-
$typeArgs: [];
|
|
300
|
-
};
|
|
301
|
-
static fromJSONField(field: any): SendFeeEvent;
|
|
302
|
-
static fromJSON(json: Record<string, any>): SendFeeEvent;
|
|
303
|
-
static fromSuiParsedData(content: SuiParsedData): SendFeeEvent;
|
|
304
|
-
static fromSuiObjectData(data: SuiObjectData): SendFeeEvent;
|
|
305
|
-
static fetch(client: SuiClient, id: string): Promise<SendFeeEvent>;
|
|
306
|
-
}
|
|
307
|
-
export declare function isVersion(type: string): boolean;
|
|
308
|
-
export interface VersionFields {
|
|
309
|
-
id: ToField<UID>;
|
|
310
|
-
value: ToField<"u64">;
|
|
311
|
-
feePool: ToField<FeePool>;
|
|
312
|
-
liquidatorFeePool: ToField<FeePool>;
|
|
313
|
-
authority: ToField<VecSet<"address">>;
|
|
314
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
315
|
-
}
|
|
316
|
-
export type VersionReified = Reified<Version, VersionFields>;
|
|
317
|
-
export declare class Version implements StructClass {
|
|
318
|
-
__StructClass: true;
|
|
319
|
-
static readonly $typeName: string;
|
|
320
|
-
static readonly $numTypeParams = 0;
|
|
321
|
-
static readonly $isPhantom: readonly [];
|
|
322
|
-
readonly $typeName: string;
|
|
323
|
-
readonly $fullTypeName: `${typeof PKG_V1}::admin::Version`;
|
|
324
|
-
readonly $typeArgs: [];
|
|
325
|
-
readonly $isPhantom: readonly [];
|
|
326
|
-
readonly id: ToField<UID>;
|
|
327
|
-
readonly value: ToField<"u64">;
|
|
328
|
-
readonly feePool: ToField<FeePool>;
|
|
329
|
-
readonly liquidatorFeePool: ToField<FeePool>;
|
|
330
|
-
readonly authority: ToField<VecSet<"address">>;
|
|
331
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
332
|
-
private constructor();
|
|
333
|
-
static reified(): VersionReified;
|
|
334
|
-
static get r(): reified.StructClassReified<Version, VersionFields>;
|
|
335
|
-
static phantom(): PhantomReified<ToTypeStr<Version>>;
|
|
336
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::admin::Version" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::admin::Version">;
|
|
337
|
-
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
338
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
339
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
340
|
-
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
341
|
-
}, string>;
|
|
342
|
-
}, string>;
|
|
343
|
-
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
344
|
-
fee_pool: import("@mysten/sui/bcs").BcsStruct<{
|
|
345
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
346
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
347
|
-
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
348
|
-
}, string>;
|
|
349
|
-
}, string>;
|
|
350
|
-
fee_infos: import("@mysten/sui/bcs").BcsType<{
|
|
351
|
-
token: {
|
|
352
|
-
name: {
|
|
353
|
-
bytes: number[];
|
|
354
|
-
};
|
|
355
|
-
};
|
|
356
|
-
value: string;
|
|
357
|
-
}[], Iterable<{
|
|
358
|
-
token: {
|
|
359
|
-
name: {
|
|
360
|
-
bytes: Iterable<number> & {
|
|
361
|
-
length: number;
|
|
362
|
-
};
|
|
363
|
-
};
|
|
364
|
-
};
|
|
365
|
-
value: string | number | bigint;
|
|
366
|
-
}> & {
|
|
367
|
-
length: number;
|
|
368
|
-
}, string>;
|
|
369
|
-
}, string>;
|
|
370
|
-
liquidator_fee_pool: import("@mysten/sui/bcs").BcsStruct<{
|
|
371
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
372
|
-
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
373
|
-
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
374
|
-
}, string>;
|
|
375
|
-
}, string>;
|
|
376
|
-
fee_infos: import("@mysten/sui/bcs").BcsType<{
|
|
377
|
-
token: {
|
|
378
|
-
name: {
|
|
379
|
-
bytes: number[];
|
|
380
|
-
};
|
|
381
|
-
};
|
|
382
|
-
value: string;
|
|
383
|
-
}[], Iterable<{
|
|
384
|
-
token: {
|
|
385
|
-
name: {
|
|
386
|
-
bytes: Iterable<number> & {
|
|
387
|
-
length: number;
|
|
388
|
-
};
|
|
389
|
-
};
|
|
390
|
-
};
|
|
391
|
-
value: string | number | bigint;
|
|
392
|
-
}> & {
|
|
393
|
-
length: number;
|
|
394
|
-
}, string>;
|
|
395
|
-
}, string>;
|
|
396
|
-
authority: import("@mysten/sui/bcs").BcsStruct<{
|
|
397
|
-
contents: import("@mysten/sui/bcs").BcsType<string[], Iterable<string> & {
|
|
398
|
-
length: number;
|
|
399
|
-
}, string>;
|
|
400
|
-
}, string>;
|
|
401
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
402
|
-
length: number;
|
|
403
|
-
}, string>;
|
|
404
|
-
}, string>;
|
|
405
|
-
static fromFields(fields: Record<string, any>): Version;
|
|
406
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): Version;
|
|
407
|
-
static fromBcs(data: Uint8Array): Version;
|
|
408
|
-
toJSONField(): {
|
|
409
|
-
id: string;
|
|
410
|
-
value: string;
|
|
411
|
-
feePool: {
|
|
412
|
-
id: string;
|
|
413
|
-
feeInfos: {
|
|
414
|
-
token: {
|
|
415
|
-
name: string;
|
|
416
|
-
};
|
|
417
|
-
value: string;
|
|
418
|
-
}[];
|
|
419
|
-
};
|
|
420
|
-
liquidatorFeePool: {
|
|
421
|
-
id: string;
|
|
422
|
-
feeInfos: {
|
|
423
|
-
token: {
|
|
424
|
-
name: string;
|
|
425
|
-
};
|
|
426
|
-
value: string;
|
|
427
|
-
}[];
|
|
428
|
-
};
|
|
429
|
-
authority: {
|
|
430
|
-
contents: string[];
|
|
431
|
-
};
|
|
432
|
-
u64Padding: string[];
|
|
433
|
-
};
|
|
434
|
-
toJSON(): {
|
|
435
|
-
id: string;
|
|
436
|
-
value: string;
|
|
437
|
-
feePool: {
|
|
438
|
-
id: string;
|
|
439
|
-
feeInfos: {
|
|
440
|
-
token: {
|
|
441
|
-
name: string;
|
|
442
|
-
};
|
|
443
|
-
value: string;
|
|
444
|
-
}[];
|
|
445
|
-
};
|
|
446
|
-
liquidatorFeePool: {
|
|
447
|
-
id: string;
|
|
448
|
-
feeInfos: {
|
|
449
|
-
token: {
|
|
450
|
-
name: string;
|
|
451
|
-
};
|
|
452
|
-
value: string;
|
|
453
|
-
}[];
|
|
454
|
-
};
|
|
455
|
-
authority: {
|
|
456
|
-
contents: string[];
|
|
457
|
-
};
|
|
458
|
-
u64Padding: string[];
|
|
459
|
-
$typeName: string;
|
|
460
|
-
$typeArgs: [];
|
|
461
|
-
};
|
|
462
|
-
static fromJSONField(field: any): Version;
|
|
463
|
-
static fromJSON(json: Record<string, any>): Version;
|
|
464
|
-
static fromSuiParsedData(content: SuiParsedData): Version;
|
|
465
|
-
static fromSuiObjectData(data: SuiObjectData): Version;
|
|
466
|
-
static fetch(client: SuiClient, id: string): Promise<Version>;
|
|
467
|
-
}
|