@typus/typus-sdk 1.4.84 → 1.5.0
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/auto-bid/token-user-entry.d.ts +9 -9
- package/dist/src/auto-bid/token-user-entry.js +24 -24
- package/dist/src/auto-bid/user-entry.d.ts +9 -9
- package/dist/src/auto-bid/user-entry.js +46 -46
- package/dist/src/auto-bid/view-function.js +14 -14
- package/dist/src/constants/constant.d.ts +1 -1
- package/dist/src/constants/constant.js +1 -1
- package/dist/src/constants/token.d.ts +4 -1
- package/dist/src/constants/token.js +4 -1
- package/dist/src/dice/fetch.js +1 -1
- package/dist/src/dice/user-entry.d.ts +11 -11
- package/dist/src/dice/user-entry.js +34 -34
- package/dist/src/typus/airdrop/authority-entry.d.ts +5 -5
- package/dist/src/typus/airdrop/authority-entry.js +10 -10
- package/dist/src/typus/airdrop/user-entry.d.ts +3 -3
- package/dist/src/typus/airdrop/user-entry.js +2 -2
- package/dist/src/typus/airdrop/view-function.js +10 -10
- package/dist/src/typus/leaderboard/authority-entry.d.ts +5 -5
- package/dist/src/typus/leaderboard/authority-entry.js +9 -4
- package/dist/src/typus/leaderboard/view-function.js +13 -13
- package/dist/src/typus/tails-staking/authority-entry.d.ts +29 -27
- package/dist/src/typus/tails-staking/authority-entry.js +22 -20
- package/dist/src/typus/tails-staking/user-entry.d.ts +23 -23
- package/dist/src/typus/tails-staking/user-entry.js +30 -30
- package/dist/src/typus/tails-staking/view-function.js +14 -14
- package/dist/src/typus/user/view-function.js +9 -9
- package/dist/src/typus-dov-single-v2/authority-entry.d.ts +4 -4
- package/dist/src/typus-dov-single-v2/authority-entry.js +21 -21
- package/dist/src/typus-dov-single-v2/function/bidding.d.ts +1 -83
- package/dist/src/typus-dov-single-v2/function/bidding.js +9 -182
- package/dist/src/typus-dov-single-v2/function/index.d.ts +0 -1
- package/dist/src/typus-dov-single-v2/function/index.js +1 -1
- package/dist/src/typus-dov-single-v2/function/token.js +3 -1
- package/dist/src/typus-dov-single-v2/history/user-history.d.ts +1 -1
- package/dist/src/typus-dov-single-v2/history/vault-history.d.ts +1 -2
- package/dist/src/typus-dov-single-v2/history/vault-history.js +1 -99
- package/dist/src/typus-dov-single-v2/token-user-entry.d.ts +13 -13
- package/dist/src/typus-dov-single-v2/token-user-entry.js +29 -29
- package/dist/src/typus-dov-single-v2/user-entry.d.ts +20 -20
- package/dist/src/typus-dov-single-v2/user-entry.js +61 -59
- package/dist/src/typus-dov-single-v2/view-function.js +55 -55
- package/dist/src/typus-launch/airdrop/authority-entry.d.ts +3 -3
- package/dist/src/typus-launch/airdrop/authority-entry.js +7 -7
- package/dist/src/typus-launch/airdrop/user-entry.d.ts +2 -2
- package/dist/src/typus-launch/airdrop/user-entry.js +2 -2
- package/dist/src/typus-launch/airdrop/view-function.d.ts +1 -0
- package/dist/src/typus-launch/airdrop/view-function.js +10 -9
- package/dist/src/typus-launch/auction/entry.d.ts +5 -5
- package/dist/src/typus-launch/auction/entry.js +4 -4
- package/dist/src/typus-launch/auction/view-function.js +17 -17
- package/dist/src/typus-launch/funding-vault/authority-entry.d.ts +11 -11
- package/dist/src/typus-launch/funding-vault/authority-entry.js +32 -24
- package/dist/src/typus-launch/funding-vault/user-entry.d.ts +3 -3
- package/dist/src/typus-launch/funding-vault/user-entry.js +6 -6
- package/dist/src/typus-launch/funding-vault/view-function.js +29 -29
- package/dist/src/typus-launch/improvement-proposal/authority-entry.d.ts +11 -9
- package/dist/src/typus-launch/improvement-proposal/authority-entry.js +23 -21
- package/dist/src/typus-launch/improvement-proposal/user-entry.d.ts +3 -3
- package/dist/src/typus-launch/improvement-proposal/user-entry.js +2 -2
- package/dist/src/typus-launch/improvement-proposal/view-function.d.ts +6 -1
- package/dist/src/typus-launch/improvement-proposal/view-function.js +43 -35
- package/dist/src/typus-launch/option-airdrop/authority-entry.d.ts +5 -5
- package/dist/src/typus-launch/option-airdrop/authority-entry.js +6 -6
- package/dist/src/typus-launch/ve-typus/authority-entry.d.ts +5 -5
- package/dist/src/typus-launch/ve-typus/authority-entry.js +10 -10
- package/dist/src/typus-launch/ve-typus/user-entry.d.ts +4 -4
- package/dist/src/typus-launch/ve-typus/user-entry.js +9 -6
- package/dist/src/typus-launch/ve-typus/view-function.js +18 -18
- package/dist/src/typus-nft/fetch.d.ts +2 -2
- package/dist/src/typus-nft/user-entry.d.ts +11 -11
- package/dist/src/typus-nft/user-entry.js +3 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/ascii/structs.d.ts +16 -6
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/ascii/structs.js +161 -45
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/bit-vector/structs.d.ts +10 -4
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/bit-vector/structs.js +90 -25
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/fixed-point32/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/fixed-point32/structs.js +84 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/index.d.ts +1 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/index.js +2 -1
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/init.js +4 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/option/structs.d.ts +10 -4
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/option/structs.js +94 -25
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/string/structs.d.ts +10 -4
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/string/structs.js +84 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/type-name/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/type-name/structs.js +84 -23
- package/dist/src/typus-perp/_dependencies/source/0x1/uq32-32/structs.d.ts +46 -0
- package/dist/src/typus-perp/_dependencies/source/0x1/uq32-32/structs.js +228 -0
- package/dist/src/typus-perp/_dependencies/source/0x1/uq64-64/structs.d.ts +46 -0
- package/dist/src/typus-perp/_dependencies/source/0x1/uq64-64/structs.js +228 -0
- package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +5 -0
- package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +8 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +1 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +86 -13
- package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +793 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +14 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +52 -10
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +105 -28
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +108 -28
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/authenticator-state/structs.d.ts +34 -12
- package/dist/src/typus-perp/_dependencies/source/0x2/authenticator-state/structs.js +894 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bag/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bag/structs.js +90 -25
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/balance/structs.d.ts +14 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/balance/structs.js +183 -45
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bcs/structs.d.ts +10 -4
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bcs/structs.js +84 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bls12381/structs.d.ts +68 -9
- package/dist/src/typus-perp/_dependencies/source/0x2/bls12381/structs.js +820 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/borrow/structs.d.ts +13 -4
- package/dist/src/typus-perp/_dependencies/source/0x2/borrow/structs.js +410 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/clock/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/clock/structs.js +90 -25
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/coin/structs.d.ts +94 -13
- package/dist/src/typus-perp/_dependencies/source/0x2/coin/structs.js +1259 -0
- package/dist/src/typus-perp/_dependencies/source/0x2/config/structs.d.ts +179 -0
- package/dist/src/typus-perp/_dependencies/source/0x2/config/structs.js +577 -0
- package/dist/src/typus-perp/_dependencies/source/0x2/deny-list/structs.d.ts +430 -0
- package/dist/src/typus-perp/_dependencies/source/0x2/deny-list/structs.js +1177 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/display/structs.d.ts +20 -7
- package/dist/src/typus-perp/_dependencies/source/0x2/display/structs.js +584 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/dynamic-field/structs.d.ts +12 -7
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/dynamic-field/structs.js +110 -28
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/dynamic-object-field/structs.d.ts +10 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/dynamic-object-field/structs.js +94 -24
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/groth16/structs.d.ts +28 -10
- package/dist/src/typus-perp/_dependencies/source/0x2/groth16/structs.js +710 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/group-ops/structs.d.ts +10 -4
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/group-ops/structs.js +93 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/index.d.ts +1 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/index.js +2 -1
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/init.js +16 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/kiosk/structs.d.ts +62 -21
- package/dist/src/typus-perp/_dependencies/source/0x2/kiosk/structs.js +1724 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/kiosk-extension/structs.d.ts +14 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/kiosk-extension/structs.js +185 -48
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/linked-table/structs.d.ts +15 -6
- package/dist/src/typus-perp/_dependencies/source/0x2/linked-table/structs.js +438 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object/structs.d.ts +14 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object/structs.js +166 -45
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object-bag/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object-bag/structs.js +90 -25
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object-table/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object-table/structs.js +101 -25
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/package/structs.d.ts +28 -10
- package/dist/src/typus-perp/_dependencies/source/0x2/package/structs.js +752 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/priority-queue/structs.d.ts +19 -9
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/priority-queue/structs.js +192 -50
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/random/structs.d.ts +22 -8
- package/dist/src/typus-perp/_dependencies/source/0x2/random/structs.js +586 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/sui/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/sui/structs.js +84 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/table/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/table/structs.js +101 -25
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/table-vec/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/table-vec/structs.js +93 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/token/structs.d.ts +38 -13
- package/dist/src/typus-perp/_dependencies/source/0x2/token/structs.js +1107 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/transfer/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/transfer/structs.js +99 -25
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/transfer-policy/structs.d.ts +38 -13
- package/dist/src/typus-perp/_dependencies/source/0x2/transfer-policy/structs.js +1099 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/tx-context/structs.d.ts +10 -4
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/tx-context/structs.js +108 -28
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/url/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/url/structs.js +84 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/vec-map/structs.d.ts +23 -13
- package/dist/src/typus-perp/_dependencies/source/0x2/vec-map/structs.js +436 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/vec-set/structs.d.ts +10 -4
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/vec-set/structs.js +94 -24
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/versioned/structs.d.ts +14 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/versioned/structs.js +177 -49
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/zklogin-verified-id/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/zklogin-verified-id/structs.js +113 -29
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/zklogin-verified-issuer/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/zklogin-verified-issuer/structs.js +98 -26
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +1 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +2 -1
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +84 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +2 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +3 -1
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +84 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +14 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +186 -50
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +40 -14
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +1092 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +15 -5
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +52 -7
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +20 -7
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +643 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +34 -12
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +898 -0
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +8 -0
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +11 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +20 -1
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/keyed-big-vector/structs.d.ts +227 -0
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/keyed-big-vector/structs.js +622 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +124 -16
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +1476 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.d.ts +13 -4
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +438 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +13 -4
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +430 -0
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.d.ts +1071 -0
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.js +2275 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +68 -50
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +732 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +34 -12
- package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +900 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +46 -16
- package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +1335 -0
- package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +9 -0
- package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +12 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +4 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +50 -41
- package/dist/src/{_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585 → typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828}/royalty-rule/structs.js +227 -103
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +76 -55
- package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +886 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +93 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +247 -136
- package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +2407 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +100 -34
- package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +3052 -0
- package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +10 -0
- package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +13 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +23 -17
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +213 -147
- package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +2846 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +58 -20
- package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +1669 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +46 -16
- package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +1249 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +244 -82
- package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +1869 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +115 -30
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +534 -74
- package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +7680 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +1 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +2 -1
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +87 -23
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +22 -8
- package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +581 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +109 -27
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +50 -17
- package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +1735 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +80 -23
- package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +3 -0
- package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +6 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +15 -6
- package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +444 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.d.ts +172 -58
- package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +5014 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +40 -14
- package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +1229 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +1 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +2 -1
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +10 -4
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +105 -28
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +95 -26
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +10 -4
- package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +322 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/batch-price-attestation/structs.d.ts +22 -12
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/batch-price-attestation/structs.js +202 -54
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/contract-upgrade/structs.d.ts +21 -12
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/contract-upgrade/structs.js +172 -48
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/data-source/structs.d.ts +12 -7
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/data-source/structs.js +91 -26
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/event/structs.d.ts +20 -11
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/event/structs.js +171 -47
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance/structs.d.ts +14 -8
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance/structs.js +96 -27
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance-action/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance-action/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance-instruction/structs.d.ts +13 -7
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance-instruction/structs.js +100 -27
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/hot-potato-vector/structs.d.ts +12 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/hot-potato-vector/structs.js +94 -24
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/i64/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/i64/structs.js +90 -25
- package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.d.ts +3 -0
- package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.js +6 -0
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/init.js +1 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/migrate/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/migrate/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price/structs.js +100 -27
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-feed/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-feed/structs.js +95 -26
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-identifier/structs.d.ts +13 -7
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-identifier/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-info/structs.d.ts +20 -11
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-info/structs.js +182 -50
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-status/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-status/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set/structs.d.ts +20 -10
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set/structs.js +181 -48
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-data-sources/structs.d.ts +13 -7
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-data-sources/structs.js +85 -24
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-fee-recipient/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-fee-recipient/structs.js +87 -23
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-governance-data-source/structs.d.ts +12 -7
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-governance-data-source/structs.js +96 -27
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-stale-price-threshold/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-stale-price-threshold/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-update-fee/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-update-fee/structs.js +90 -25
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/setup/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/setup/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/state/structs.d.ts +30 -17
- package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.js +573 -0
- package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.d.ts +130 -0
- package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.js +524 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +1 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +2 -1
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +48 -39
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +217 -97
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +50 -41
- package/dist/src/{_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828 → typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585}/royalty-rule/structs.js +227 -103
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +8 -3
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +93 -23
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/bytes20/structs.d.ts +13 -7
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/bytes20/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/bytes32/structs.d.ts +13 -7
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/bytes32/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/consumed-vaas/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/consumed-vaas/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/cursor/structs.d.ts +12 -6
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/cursor/structs.js +94 -24
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/emitter/structs.d.ts +29 -16
- package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.js +531 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/external-address/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/external-address/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/fee-collector/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/fee-collector/structs.js +90 -25
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/governance-message/structs.d.ts +20 -10
- package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.js +460 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian-set/structs.d.ts +13 -7
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian-set/structs.js +95 -26
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian-signature/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian-signature/structs.js +100 -27
- package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.d.ts +3 -0
- package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.js +6 -0
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/migrate/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/migrate/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/package-utils/structs.d.ts +38 -21
- package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.js +680 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/publish-message/structs.d.ts +22 -12
- package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.js +449 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/set/structs.d.ts +52 -43
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/set/structs.js +232 -103
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/set-fee/structs.d.ts +20 -11
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/set-fee/structs.js +165 -45
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/setup/structs.d.ts +11 -6
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/setup/structs.js +84 -23
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/state/structs.d.ts +20 -11
- package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.js +455 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/transfer-fee/structs.d.ts +20 -11
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/transfer-fee/structs.js +174 -47
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/update-guardian-set/structs.d.ts +31 -17
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/update-guardian-set/structs.js +252 -69
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/upgrade-contract/structs.d.ts +62 -49
- package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.js +532 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/vaa/structs.d.ts +13 -7
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/vaa/structs.js +125 -32
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/version-control/structs.d.ts +20 -11
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/version-control/structs.js +165 -45
- package/dist/src/typus-perp/_framework/init-loader.d.ts +2 -0
- package/dist/src/typus-perp/_framework/init-loader.js +63 -0
- package/dist/src/{_framework → typus-perp/_framework}/loader.d.ts +3 -3
- package/dist/src/{_framework → typus-perp/_framework}/loader.js +14 -5
- package/dist/src/{_framework → typus-perp/_framework}/reified.d.ts +28 -20
- package/dist/src/{_framework → typus-perp/_framework}/reified.js +11 -37
- package/dist/src/typus-perp/_framework/util.d.ts +35 -0
- package/dist/src/typus-perp/_framework/util.js +396 -0
- package/dist/src/typus-perp/_framework/vector.d.ts +35 -0
- package/dist/src/typus-perp/_framework/vector.js +112 -0
- package/dist/src/typus-perp/fetch.d.ts +5 -5
- package/dist/src/typus-perp/fetch.js +16 -16
- package/dist/src/typus-perp/index.d.ts +2 -4
- package/dist/src/typus-perp/index.js +5 -64
- package/dist/src/typus-perp/readVec.js +9 -9
- package/dist/src/typus-perp/typus_perp/admin/functions.d.ts +50 -0
- package/dist/src/typus-perp/typus_perp/admin/functions.js +116 -0
- package/dist/src/typus-perp/{admin → typus_perp/admin}/structs.d.ts +49 -27
- package/dist/src/typus-perp/{admin → typus_perp/admin}/structs.js +117 -21
- package/dist/src/typus-perp/typus_perp/index.d.ts +3 -0
- package/dist/src/typus-perp/typus_perp/index.js +6 -0
- package/dist/src/typus-perp/{init.js → typus_perp/init.js} +13 -26
- package/dist/src/typus-perp/typus_perp/lp-pool/functions.d.ts +342 -0
- package/dist/src/typus-perp/typus_perp/lp-pool/functions.js +517 -0
- package/dist/src/typus-perp/{lp-pool → typus_perp/lp-pool}/structs.d.ts +698 -148
- package/dist/src/typus-perp/{lp-pool → typus_perp/lp-pool}/structs.js +1457 -172
- package/dist/src/typus-perp/typus_perp/math/functions.d.ts +18 -0
- package/dist/src/typus-perp/typus_perp/math/functions.js +49 -0
- package/dist/src/typus-perp/typus_perp/oracle/functions.d.ts +13 -0
- package/dist/src/typus-perp/typus_perp/oracle/functions.js +25 -0
- package/dist/src/typus-perp/{oracle → typus_perp/oracle}/structs.d.ts +20 -11
- package/dist/src/typus-perp/{oracle → typus_perp/oracle}/structs.js +52 -10
- package/dist/src/typus-perp/typus_perp/position/functions.d.ts +343 -0
- package/dist/src/typus-perp/typus_perp/position/functions.js +659 -0
- package/dist/src/typus-perp/{position → typus_perp/position}/structs.d.ts +73 -43
- package/dist/src/typus-perp/{position → typus_perp/position}/structs.js +177 -38
- package/dist/src/typus-perp/typus_perp/symbol/functions.d.ts +9 -0
- package/dist/src/typus-perp/typus_perp/symbol/functions.js +33 -0
- package/dist/src/typus-perp/{symbol → typus_perp/symbol}/structs.d.ts +11 -6
- package/dist/src/typus-perp/{symbol → typus_perp/symbol}/structs.js +23 -4
- package/dist/src/typus-perp/typus_perp/tlp/functions.d.ts +19 -0
- package/dist/src/typus-perp/typus_perp/tlp/functions.js +41 -0
- package/dist/src/typus-perp/{tlp → typus_perp/tlp}/structs.d.ts +20 -11
- package/dist/src/typus-perp/{tlp → typus_perp/tlp}/structs.js +61 -13
- package/dist/src/typus-perp/typus_perp/token-interface/functions.d.ts +11 -0
- package/dist/src/typus-perp/{token-interface → typus_perp/token-interface}/functions.js +6 -6
- package/dist/src/typus-perp/typus_perp/trading/functions.d.ts +493 -0
- package/dist/src/typus-perp/typus_perp/trading/functions.js +711 -0
- package/dist/src/typus-perp/{trading → typus_perp/trading}/structs.d.ts +523 -161
- package/dist/src/typus-perp/{trading → typus_perp/trading}/structs.js +1042 -107
- package/dist/src/typus-perp/typus_perp/treasury-caps/functions.d.ts +9 -0
- package/dist/src/typus-perp/{treasury-caps → typus_perp/treasury-caps}/functions.js +14 -11
- package/dist/src/typus-perp/{treasury-caps → typus_perp/treasury-caps}/structs.d.ts +11 -6
- package/dist/src/typus-perp/{treasury-caps → typus_perp/treasury-caps}/structs.js +32 -7
- package/dist/src/typus-perp/typus_stake_pool/admin/functions.d.ts +50 -0
- package/dist/src/typus-perp/typus_stake_pool/admin/functions.js +116 -0
- package/dist/src/typus-perp/typus_stake_pool/admin/structs.d.ts +447 -0
- package/dist/src/typus-perp/typus_stake_pool/admin/structs.js +898 -0
- package/dist/src/typus-perp/typus_stake_pool/index.d.ts +3 -0
- package/dist/src/typus-perp/typus_stake_pool/index.js +6 -0
- package/dist/src/typus-perp/typus_stake_pool/init.d.ts +2 -0
- package/dist/src/typus-perp/typus_stake_pool/init.js +57 -0
- package/dist/src/typus-perp/typus_stake_pool/stake-pool/functions.d.ts +175 -0
- package/dist/src/typus-perp/typus_stake_pool/stake-pool/functions.js +275 -0
- package/dist/src/typus-perp/{stake-pool → typus_stake_pool/stake-pool}/structs.d.ts +293 -185
- package/dist/src/typus-perp/{stake-pool → typus_stake_pool/stake-pool}/structs.js +659 -235
- package/dist/src/typus-perp/user/order.d.ts +10 -10
- package/dist/src/typus-perp/user/order.js +6 -5
- package/dist/src/typus-perp/user/orderWithBidReceipt.d.ts +5 -5
- package/dist/src/typus-perp/user/orderWithBidReceipt.js +3 -3
- package/dist/src/typus-perp/user/tlp.d.ts +12 -12
- package/dist/src/typus-perp/user/tlp.js +13 -11
- package/dist/src/typus-safu/user-entry.d.ts +9 -9
- package/dist/src/typus-safu/user-entry.js +18 -18
- package/dist/src/typus-safu/user-history.d.ts +1 -1
- package/dist/src/typus-safu/user-history.js +1 -1
- package/dist/src/typus-safu/view-function.js +17 -17
- package/dist/src/utils/api/price.js +18 -2
- package/dist/src/utils/api/sentio/reward-generated.d.ts +1 -1
- package/dist/src/utils/mint.d.ts +2 -2
- package/dist/src/utils/mint.js +3 -3
- package/dist/src/utils/pyth/constant.d.ts +2 -0
- package/dist/src/utils/pyth/constant.js +2 -0
- package/dist/src/utils/pyth/pythClient.d.ts +3 -3
- package/dist/src/utils/typusConfig.d.ts +8 -2
- package/package.json +4 -5
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +0 -2
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +0 -5
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +0 -377
- package/dist/src/_dependencies/source/0x2/authenticator-state/structs.js +0 -565
- package/dist/src/_dependencies/source/0x2/bls12381/structs.js +0 -434
- package/dist/src/_dependencies/source/0x2/borrow/structs.js +0 -267
- package/dist/src/_dependencies/source/0x2/coin/structs.js +0 -648
- package/dist/src/_dependencies/source/0x2/deny-list/structs.d.ts +0 -178
- package/dist/src/_dependencies/source/0x2/deny-list/structs.js +0 -290
- package/dist/src/_dependencies/source/0x2/display/structs.js +0 -362
- package/dist/src/_dependencies/source/0x2/groth16/structs.js +0 -464
- package/dist/src/_dependencies/source/0x2/kiosk/structs.js +0 -1033
- package/dist/src/_dependencies/source/0x2/linked-table/structs.js +0 -272
- package/dist/src/_dependencies/source/0x2/package/structs.js +0 -478
- package/dist/src/_dependencies/source/0x2/random/structs.js +0 -383
- package/dist/src/_dependencies/source/0x2/token/structs.js +0 -651
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -665
- package/dist/src/_dependencies/source/0x2/vec-map/structs.js +0 -286
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +0 -669
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +0 -402
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +0 -566
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +0 -2
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +0 -5
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +0 -774
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +0 -272
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +0 -276
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +0 -471
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +0 -563
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +0 -789
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +0 -2
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +0 -5
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +0 -562
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +0 -1331
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +0 -1706
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +0 -2
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +0 -5
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +0 -1643
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +0 -971
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +0 -750
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +0 -933
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +0 -3796
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +0 -382
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +0 -959
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +0 -2
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +0 -5
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +0 -274
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +0 -2830
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +0 -711
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +0 -212
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.js +0 -348
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.js +0 -298
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.d.ts +0 -2
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.js +0 -5
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.js +0 -438
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.js +0 -297
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.js +0 -303
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.js +0 -349
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.d.ts +0 -2
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.js +0 -5
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.js +0 -363
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.d.ts +0 -79
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.js +0 -256
- package/dist/src/_framework/init-source.d.ts +0 -1
- package/dist/src/_framework/init-source.js +0 -64
- package/dist/src/_framework/util.d.ts +0 -53
- package/dist/src/_framework/util.js +0 -251
- package/dist/src/typus-perp/admin/functions.d.ts +0 -51
- package/dist/src/typus-perp/admin/functions.js +0 -100
- package/dist/src/typus-perp/lp-pool/functions.d.ts +0 -283
- package/dist/src/typus-perp/lp-pool/functions.js +0 -418
- package/dist/src/typus-perp/math/functions.d.ts +0 -18
- package/dist/src/typus-perp/math/functions.js +0 -40
- package/dist/src/typus-perp/oracle/functions.d.ts +0 -14
- package/dist/src/typus-perp/oracle/functions.js +0 -22
- package/dist/src/typus-perp/position/functions.d.ts +0 -339
- package/dist/src/typus-perp/position/functions.js +0 -564
- package/dist/src/typus-perp/stake-pool/functions.d.ts +0 -169
- package/dist/src/typus-perp/stake-pool/functions.js +0 -258
- package/dist/src/typus-perp/symbol/functions.d.ts +0 -10
- package/dist/src/typus-perp/symbol/functions.js +0 -20
- package/dist/src/typus-perp/tlp/functions.d.ts +0 -20
- package/dist/src/typus-perp/tlp/functions.js +0 -35
- package/dist/src/typus-perp/token-interface/functions.d.ts +0 -12
- package/dist/src/typus-perp/trading/functions.d.ts +0 -427
- package/dist/src/typus-perp/trading/functions.js +0 -612
- package/dist/src/typus-perp/treasury-caps/functions.d.ts +0 -10
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +0 -0
- package/dist/src/{_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/init.d.ts +0 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585}/init.d.ts +0 -0
- package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +2 -2
- package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/init.d.ts +0 -0
- package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/init.js +4 -4
- /package/dist/src/typus-perp/{init.d.ts → typus_perp/init.d.ts} +0 -0
|
@@ -1,1331 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
46
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
47
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
48
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
|
-
function step(op) {
|
|
50
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
51
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
52
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
53
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
54
|
-
switch (op[0]) {
|
|
55
|
-
case 0: case 1: t = op; break;
|
|
56
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
57
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
58
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
59
|
-
default:
|
|
60
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
61
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
62
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
63
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
64
|
-
if (t[2]) _.ops.pop();
|
|
65
|
-
_.trys.pop(); continue;
|
|
66
|
-
}
|
|
67
|
-
op = body.call(thisArg, _);
|
|
68
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
69
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
73
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
74
|
-
if (!m) return o;
|
|
75
|
-
var i = m.call(o), r, ar = [], e;
|
|
76
|
-
try {
|
|
77
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
78
|
-
}
|
|
79
|
-
catch (error) { e = { error: error }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
83
|
-
}
|
|
84
|
-
finally { if (e) throw e.error; }
|
|
85
|
-
}
|
|
86
|
-
return ar;
|
|
87
|
-
};
|
|
88
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
89
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
90
|
-
if (ar || !(i in from)) {
|
|
91
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
92
|
-
ar[i] = from[i];
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
96
|
-
};
|
|
97
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
98
|
-
exports.Whitelist = exports.Tails = exports.TYPUS_NFT = exports.RoyaltyUpdateEvent = exports.Royalty = exports.Pool = exports.NewManagerCapEvent = exports.LevelUpEvent = exports.FirstDepositEvent = exports.FirstBidEvent = exports.ExpUpEvent = exports.MintEvent = exports.ManagerCap = void 0;
|
|
99
|
-
exports.isManagerCap = isManagerCap;
|
|
100
|
-
exports.isMintEvent = isMintEvent;
|
|
101
|
-
exports.isExpUpEvent = isExpUpEvent;
|
|
102
|
-
exports.isFirstBidEvent = isFirstBidEvent;
|
|
103
|
-
exports.isFirstDepositEvent = isFirstDepositEvent;
|
|
104
|
-
exports.isLevelUpEvent = isLevelUpEvent;
|
|
105
|
-
exports.isNewManagerCapEvent = isNewManagerCapEvent;
|
|
106
|
-
exports.isPool = isPool;
|
|
107
|
-
exports.isRoyalty = isRoyalty;
|
|
108
|
-
exports.isRoyaltyUpdateEvent = isRoyaltyUpdateEvent;
|
|
109
|
-
exports.isTYPUS_NFT = isTYPUS_NFT;
|
|
110
|
-
exports.isTails = isTails;
|
|
111
|
-
exports.isWhitelist = isWhitelist;
|
|
112
|
-
var reified = __importStar(require("../../../../_framework/reified"));
|
|
113
|
-
var reified_1 = require("../../../../_framework/reified");
|
|
114
|
-
var util_1 = require("../../../../_framework/util");
|
|
115
|
-
var structs_1 = require("../../0x1/string/structs");
|
|
116
|
-
var structs_2 = require("../../0x2/object/structs");
|
|
117
|
-
var structs_3 = require("../../0x2/transfer-policy/structs");
|
|
118
|
-
var structs_4 = require("../../0x2/url/structs");
|
|
119
|
-
var structs_5 = require("../../0x2/vec-map/structs");
|
|
120
|
-
var structs_6 = require("../table-vec/structs");
|
|
121
|
-
var bcs_1 = require("@mysten/bcs");
|
|
122
|
-
/* ============================== ManagerCap =============================== */
|
|
123
|
-
function isManagerCap(type) { type = (0, util_1.compressSuiType)(type); return type === "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::ManagerCap"; }
|
|
124
|
-
var ManagerCap = /** @class */ (function () {
|
|
125
|
-
function ManagerCap(typeArgs, fields) {
|
|
126
|
-
this.$typeName = ManagerCap.$typeName;
|
|
127
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ManagerCap.$typeName], __read(typeArgs), false));
|
|
128
|
-
this.$typeArgs = typeArgs;
|
|
129
|
-
this.id = fields.id;
|
|
130
|
-
}
|
|
131
|
-
ManagerCap.reified = function () {
|
|
132
|
-
var _this = this;
|
|
133
|
-
return { typeName: ManagerCap.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ManagerCap.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return ManagerCap.fromFields(fields); }, fromFieldsWithTypes: function (item) { return ManagerCap.fromFieldsWithTypes(item); }, fromBcs: function (data) { return ManagerCap.fromBcs(data); }, bcs: ManagerCap.bcs, fromJSONField: function (field) { return ManagerCap.fromJSONField(field); }, fromJSON: function (json) { return ManagerCap.fromJSON(json); }, fromSuiParsedData: function (content) { return ManagerCap.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
134
|
-
return [2 /*return*/, ManagerCap.fetch(client, id)];
|
|
135
|
-
}); }); }, new: function (fields) { return new ManagerCap([], fields); }, kind: "StructClassReified", };
|
|
136
|
-
};
|
|
137
|
-
Object.defineProperty(ManagerCap, "r", {
|
|
138
|
-
get: function () { return ManagerCap.reified(); },
|
|
139
|
-
enumerable: false,
|
|
140
|
-
configurable: true
|
|
141
|
-
});
|
|
142
|
-
ManagerCap.phantom = function () { return (0, reified_1.phantom)(ManagerCap.reified()); };
|
|
143
|
-
Object.defineProperty(ManagerCap, "p", {
|
|
144
|
-
get: function () { return ManagerCap.phantom(); },
|
|
145
|
-
enumerable: false,
|
|
146
|
-
configurable: true
|
|
147
|
-
});
|
|
148
|
-
Object.defineProperty(ManagerCap, "bcs", {
|
|
149
|
-
get: function () {
|
|
150
|
-
return bcs_1.bcs.struct("ManagerCap", {
|
|
151
|
-
id: structs_2.UID.bcs
|
|
152
|
-
});
|
|
153
|
-
},
|
|
154
|
-
enumerable: false,
|
|
155
|
-
configurable: true
|
|
156
|
-
});
|
|
157
|
-
;
|
|
158
|
-
ManagerCap.fromFields = function (fields) { return ManagerCap.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id) }); };
|
|
159
|
-
ManagerCap.fromFieldsWithTypes = function (item) {
|
|
160
|
-
if (!isManagerCap(item.type)) {
|
|
161
|
-
throw new Error("not a ManagerCap type");
|
|
162
|
-
}
|
|
163
|
-
return ManagerCap.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id) });
|
|
164
|
-
};
|
|
165
|
-
ManagerCap.fromBcs = function (data) { return ManagerCap.fromFields(ManagerCap.bcs.parse(data)); };
|
|
166
|
-
ManagerCap.prototype.toJSONField = function () {
|
|
167
|
-
return {
|
|
168
|
-
id: this.id,
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
ManagerCap.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
172
|
-
ManagerCap.fromJSONField = function (field) { return ManagerCap.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id) }); };
|
|
173
|
-
ManagerCap.fromJSON = function (json) {
|
|
174
|
-
if (json.$typeName !== ManagerCap.$typeName) {
|
|
175
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
176
|
-
}
|
|
177
|
-
;
|
|
178
|
-
return ManagerCap.fromJSONField(json);
|
|
179
|
-
};
|
|
180
|
-
ManagerCap.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
181
|
-
throw new Error("not an object");
|
|
182
|
-
} if (!isManagerCap(content.type)) {
|
|
183
|
-
throw new Error("object at ".concat(content.fields.id, " is not a ManagerCap object"));
|
|
184
|
-
} return ManagerCap.fromFieldsWithTypes(content); };
|
|
185
|
-
ManagerCap.fetch = function (client, id) {
|
|
186
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
187
|
-
var res;
|
|
188
|
-
var _a, _b;
|
|
189
|
-
return __generator(this, function (_c) {
|
|
190
|
-
switch (_c.label) {
|
|
191
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
192
|
-
case 1:
|
|
193
|
-
res = _c.sent();
|
|
194
|
-
if (res.error) {
|
|
195
|
-
throw new Error("error fetching ManagerCap object at id ".concat(id, ": ").concat(res.error.code));
|
|
196
|
-
}
|
|
197
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isManagerCap(res.data.bcs.type)) {
|
|
198
|
-
throw new Error("object at id ".concat(id, " is not a ManagerCap object"));
|
|
199
|
-
}
|
|
200
|
-
return [2 /*return*/, ManagerCap.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
});
|
|
204
|
-
};
|
|
205
|
-
ManagerCap.$typeName = "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::ManagerCap";
|
|
206
|
-
ManagerCap.$numTypeParams = 0;
|
|
207
|
-
return ManagerCap;
|
|
208
|
-
}());
|
|
209
|
-
exports.ManagerCap = ManagerCap;
|
|
210
|
-
/* ============================== MintEvent =============================== */
|
|
211
|
-
function isMintEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::MintEvent"; }
|
|
212
|
-
var MintEvent = /** @class */ (function () {
|
|
213
|
-
function MintEvent(typeArgs, fields) {
|
|
214
|
-
this.$typeName = MintEvent.$typeName;
|
|
215
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([MintEvent.$typeName], __read(typeArgs), false));
|
|
216
|
-
this.$typeArgs = typeArgs;
|
|
217
|
-
this.id = fields.id;
|
|
218
|
-
;
|
|
219
|
-
this.name = fields.name;
|
|
220
|
-
;
|
|
221
|
-
this.description = fields.description;
|
|
222
|
-
;
|
|
223
|
-
this.number = fields.number;
|
|
224
|
-
;
|
|
225
|
-
this.url = fields.url;
|
|
226
|
-
;
|
|
227
|
-
this.attributes = fields.attributes;
|
|
228
|
-
;
|
|
229
|
-
this.sender = fields.sender;
|
|
230
|
-
}
|
|
231
|
-
MintEvent.reified = function () {
|
|
232
|
-
var _this = this;
|
|
233
|
-
return { typeName: MintEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([MintEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return MintEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return MintEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return MintEvent.fromBcs(data); }, bcs: MintEvent.bcs, fromJSONField: function (field) { return MintEvent.fromJSONField(field); }, fromJSON: function (json) { return MintEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return MintEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
234
|
-
return [2 /*return*/, MintEvent.fetch(client, id)];
|
|
235
|
-
}); }); }, new: function (fields) { return new MintEvent([], fields); }, kind: "StructClassReified", };
|
|
236
|
-
};
|
|
237
|
-
Object.defineProperty(MintEvent, "r", {
|
|
238
|
-
get: function () { return MintEvent.reified(); },
|
|
239
|
-
enumerable: false,
|
|
240
|
-
configurable: true
|
|
241
|
-
});
|
|
242
|
-
MintEvent.phantom = function () { return (0, reified_1.phantom)(MintEvent.reified()); };
|
|
243
|
-
Object.defineProperty(MintEvent, "p", {
|
|
244
|
-
get: function () { return MintEvent.phantom(); },
|
|
245
|
-
enumerable: false,
|
|
246
|
-
configurable: true
|
|
247
|
-
});
|
|
248
|
-
Object.defineProperty(MintEvent, "bcs", {
|
|
249
|
-
get: function () {
|
|
250
|
-
return bcs_1.bcs.struct("MintEvent", {
|
|
251
|
-
id: structs_2.ID.bcs, name: structs_1.String.bcs, description: structs_1.String.bcs, number: bcs_1.bcs.u64(), url: structs_4.Url.bcs, attributes: structs_5.VecMap.bcs(structs_1.String.bcs, structs_1.String.bcs), sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, })
|
|
252
|
-
});
|
|
253
|
-
},
|
|
254
|
-
enumerable: false,
|
|
255
|
-
configurable: true
|
|
256
|
-
});
|
|
257
|
-
;
|
|
258
|
-
MintEvent.fromFields = function (fields) { return MintEvent.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id), name: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.name), description: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.description), number: (0, reified_1.decodeFromFields)("u64", fields.number), url: (0, reified_1.decodeFromFields)(structs_4.Url.reified(), fields.url), attributes: (0, reified_1.decodeFromFields)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), fields.attributes), sender: (0, reified_1.decodeFromFields)("address", fields.sender) }); };
|
|
259
|
-
MintEvent.fromFieldsWithTypes = function (item) {
|
|
260
|
-
if (!isMintEvent(item.type)) {
|
|
261
|
-
throw new Error("not a MintEvent type");
|
|
262
|
-
}
|
|
263
|
-
return MintEvent.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id), name: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.name), description: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.description), number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number), url: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.Url.reified(), item.fields.url), attributes: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), item.fields.attributes), sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender) });
|
|
264
|
-
};
|
|
265
|
-
MintEvent.fromBcs = function (data) { return MintEvent.fromFields(MintEvent.bcs.parse(data)); };
|
|
266
|
-
MintEvent.prototype.toJSONField = function () {
|
|
267
|
-
return {
|
|
268
|
-
id: this.id, name: this.name, description: this.description, number: this.number.toString(), url: this.url, attributes: this.attributes.toJSONField(), sender: this.sender,
|
|
269
|
-
};
|
|
270
|
-
};
|
|
271
|
-
MintEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
272
|
-
MintEvent.fromJSONField = function (field) { return MintEvent.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id), name: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.name), description: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.description), number: (0, reified_1.decodeFromJSONField)("u64", field.number), url: (0, reified_1.decodeFromJSONField)(structs_4.Url.reified(), field.url), attributes: (0, reified_1.decodeFromJSONField)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), field.attributes), sender: (0, reified_1.decodeFromJSONField)("address", field.sender) }); };
|
|
273
|
-
MintEvent.fromJSON = function (json) {
|
|
274
|
-
if (json.$typeName !== MintEvent.$typeName) {
|
|
275
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
276
|
-
}
|
|
277
|
-
;
|
|
278
|
-
return MintEvent.fromJSONField(json);
|
|
279
|
-
};
|
|
280
|
-
MintEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
281
|
-
throw new Error("not an object");
|
|
282
|
-
} if (!isMintEvent(content.type)) {
|
|
283
|
-
throw new Error("object at ".concat(content.fields.id, " is not a MintEvent object"));
|
|
284
|
-
} return MintEvent.fromFieldsWithTypes(content); };
|
|
285
|
-
MintEvent.fetch = function (client, id) {
|
|
286
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
287
|
-
var res;
|
|
288
|
-
var _a, _b;
|
|
289
|
-
return __generator(this, function (_c) {
|
|
290
|
-
switch (_c.label) {
|
|
291
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
292
|
-
case 1:
|
|
293
|
-
res = _c.sent();
|
|
294
|
-
if (res.error) {
|
|
295
|
-
throw new Error("error fetching MintEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
296
|
-
}
|
|
297
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isMintEvent(res.data.bcs.type)) {
|
|
298
|
-
throw new Error("object at id ".concat(id, " is not a MintEvent object"));
|
|
299
|
-
}
|
|
300
|
-
return [2 /*return*/, MintEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
301
|
-
}
|
|
302
|
-
});
|
|
303
|
-
});
|
|
304
|
-
};
|
|
305
|
-
MintEvent.$typeName = "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::MintEvent";
|
|
306
|
-
MintEvent.$numTypeParams = 0;
|
|
307
|
-
return MintEvent;
|
|
308
|
-
}());
|
|
309
|
-
exports.MintEvent = MintEvent;
|
|
310
|
-
/* ============================== ExpUpEvent =============================== */
|
|
311
|
-
function isExpUpEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x45d61e41640f8dc1c2e333789b5842adf508ceb9c98d7c1808092f9e2e45b615::typus_nft::ExpUpEvent"; }
|
|
312
|
-
var ExpUpEvent = /** @class */ (function () {
|
|
313
|
-
function ExpUpEvent(typeArgs, fields) {
|
|
314
|
-
this.$typeName = ExpUpEvent.$typeName;
|
|
315
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ExpUpEvent.$typeName], __read(typeArgs), false));
|
|
316
|
-
this.$typeArgs = typeArgs;
|
|
317
|
-
this.nftId = fields.nftId;
|
|
318
|
-
;
|
|
319
|
-
this.number = fields.number;
|
|
320
|
-
;
|
|
321
|
-
this.expEarn = fields.expEarn;
|
|
322
|
-
}
|
|
323
|
-
ExpUpEvent.reified = function () {
|
|
324
|
-
var _this = this;
|
|
325
|
-
return { typeName: ExpUpEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ExpUpEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return ExpUpEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return ExpUpEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return ExpUpEvent.fromBcs(data); }, bcs: ExpUpEvent.bcs, fromJSONField: function (field) { return ExpUpEvent.fromJSONField(field); }, fromJSON: function (json) { return ExpUpEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return ExpUpEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
326
|
-
return [2 /*return*/, ExpUpEvent.fetch(client, id)];
|
|
327
|
-
}); }); }, new: function (fields) { return new ExpUpEvent([], fields); }, kind: "StructClassReified", };
|
|
328
|
-
};
|
|
329
|
-
Object.defineProperty(ExpUpEvent, "r", {
|
|
330
|
-
get: function () { return ExpUpEvent.reified(); },
|
|
331
|
-
enumerable: false,
|
|
332
|
-
configurable: true
|
|
333
|
-
});
|
|
334
|
-
ExpUpEvent.phantom = function () { return (0, reified_1.phantom)(ExpUpEvent.reified()); };
|
|
335
|
-
Object.defineProperty(ExpUpEvent, "p", {
|
|
336
|
-
get: function () { return ExpUpEvent.phantom(); },
|
|
337
|
-
enumerable: false,
|
|
338
|
-
configurable: true
|
|
339
|
-
});
|
|
340
|
-
Object.defineProperty(ExpUpEvent, "bcs", {
|
|
341
|
-
get: function () {
|
|
342
|
-
return bcs_1.bcs.struct("ExpUpEvent", {
|
|
343
|
-
nft_id: structs_2.ID.bcs, number: bcs_1.bcs.u64(), exp_earn: bcs_1.bcs.u64()
|
|
344
|
-
});
|
|
345
|
-
},
|
|
346
|
-
enumerable: false,
|
|
347
|
-
configurable: true
|
|
348
|
-
});
|
|
349
|
-
;
|
|
350
|
-
ExpUpEvent.fromFields = function (fields) { return ExpUpEvent.reified().new({ nftId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.nft_id), number: (0, reified_1.decodeFromFields)("u64", fields.number), expEarn: (0, reified_1.decodeFromFields)("u64", fields.exp_earn) }); };
|
|
351
|
-
ExpUpEvent.fromFieldsWithTypes = function (item) {
|
|
352
|
-
if (!isExpUpEvent(item.type)) {
|
|
353
|
-
throw new Error("not a ExpUpEvent type");
|
|
354
|
-
}
|
|
355
|
-
return ExpUpEvent.reified().new({ nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.nft_id), number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number), expEarn: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exp_earn) });
|
|
356
|
-
};
|
|
357
|
-
ExpUpEvent.fromBcs = function (data) { return ExpUpEvent.fromFields(ExpUpEvent.bcs.parse(data)); };
|
|
358
|
-
ExpUpEvent.prototype.toJSONField = function () {
|
|
359
|
-
return {
|
|
360
|
-
nftId: this.nftId, number: this.number.toString(), expEarn: this.expEarn.toString(),
|
|
361
|
-
};
|
|
362
|
-
};
|
|
363
|
-
ExpUpEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
364
|
-
ExpUpEvent.fromJSONField = function (field) { return ExpUpEvent.reified().new({ nftId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.nftId), number: (0, reified_1.decodeFromJSONField)("u64", field.number), expEarn: (0, reified_1.decodeFromJSONField)("u64", field.expEarn) }); };
|
|
365
|
-
ExpUpEvent.fromJSON = function (json) {
|
|
366
|
-
if (json.$typeName !== ExpUpEvent.$typeName) {
|
|
367
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
368
|
-
}
|
|
369
|
-
;
|
|
370
|
-
return ExpUpEvent.fromJSONField(json);
|
|
371
|
-
};
|
|
372
|
-
ExpUpEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
373
|
-
throw new Error("not an object");
|
|
374
|
-
} if (!isExpUpEvent(content.type)) {
|
|
375
|
-
throw new Error("object at ".concat(content.fields.id, " is not a ExpUpEvent object"));
|
|
376
|
-
} return ExpUpEvent.fromFieldsWithTypes(content); };
|
|
377
|
-
ExpUpEvent.fetch = function (client, id) {
|
|
378
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
379
|
-
var res;
|
|
380
|
-
var _a, _b;
|
|
381
|
-
return __generator(this, function (_c) {
|
|
382
|
-
switch (_c.label) {
|
|
383
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
384
|
-
case 1:
|
|
385
|
-
res = _c.sent();
|
|
386
|
-
if (res.error) {
|
|
387
|
-
throw new Error("error fetching ExpUpEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
388
|
-
}
|
|
389
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isExpUpEvent(res.data.bcs.type)) {
|
|
390
|
-
throw new Error("object at id ".concat(id, " is not a ExpUpEvent object"));
|
|
391
|
-
}
|
|
392
|
-
return [2 /*return*/, ExpUpEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
});
|
|
396
|
-
};
|
|
397
|
-
ExpUpEvent.$typeName = "0x45d61e41640f8dc1c2e333789b5842adf508ceb9c98d7c1808092f9e2e45b615::typus_nft::ExpUpEvent";
|
|
398
|
-
ExpUpEvent.$numTypeParams = 0;
|
|
399
|
-
return ExpUpEvent;
|
|
400
|
-
}());
|
|
401
|
-
exports.ExpUpEvent = ExpUpEvent;
|
|
402
|
-
/* ============================== FirstBidEvent =============================== */
|
|
403
|
-
function isFirstBidEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::FirstBidEvent"; }
|
|
404
|
-
var FirstBidEvent = /** @class */ (function () {
|
|
405
|
-
function FirstBidEvent(typeArgs, fields) {
|
|
406
|
-
this.$typeName = FirstBidEvent.$typeName;
|
|
407
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([FirstBidEvent.$typeName], __read(typeArgs), false));
|
|
408
|
-
this.$typeArgs = typeArgs;
|
|
409
|
-
this.nftId = fields.nftId;
|
|
410
|
-
;
|
|
411
|
-
this.number = fields.number;
|
|
412
|
-
;
|
|
413
|
-
this.expEarn = fields.expEarn;
|
|
414
|
-
}
|
|
415
|
-
FirstBidEvent.reified = function () {
|
|
416
|
-
var _this = this;
|
|
417
|
-
return { typeName: FirstBidEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([FirstBidEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return FirstBidEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return FirstBidEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return FirstBidEvent.fromBcs(data); }, bcs: FirstBidEvent.bcs, fromJSONField: function (field) { return FirstBidEvent.fromJSONField(field); }, fromJSON: function (json) { return FirstBidEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return FirstBidEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
418
|
-
return [2 /*return*/, FirstBidEvent.fetch(client, id)];
|
|
419
|
-
}); }); }, new: function (fields) { return new FirstBidEvent([], fields); }, kind: "StructClassReified", };
|
|
420
|
-
};
|
|
421
|
-
Object.defineProperty(FirstBidEvent, "r", {
|
|
422
|
-
get: function () { return FirstBidEvent.reified(); },
|
|
423
|
-
enumerable: false,
|
|
424
|
-
configurable: true
|
|
425
|
-
});
|
|
426
|
-
FirstBidEvent.phantom = function () { return (0, reified_1.phantom)(FirstBidEvent.reified()); };
|
|
427
|
-
Object.defineProperty(FirstBidEvent, "p", {
|
|
428
|
-
get: function () { return FirstBidEvent.phantom(); },
|
|
429
|
-
enumerable: false,
|
|
430
|
-
configurable: true
|
|
431
|
-
});
|
|
432
|
-
Object.defineProperty(FirstBidEvent, "bcs", {
|
|
433
|
-
get: function () {
|
|
434
|
-
return bcs_1.bcs.struct("FirstBidEvent", {
|
|
435
|
-
nft_id: structs_2.ID.bcs, number: bcs_1.bcs.u64(), exp_earn: bcs_1.bcs.u64()
|
|
436
|
-
});
|
|
437
|
-
},
|
|
438
|
-
enumerable: false,
|
|
439
|
-
configurable: true
|
|
440
|
-
});
|
|
441
|
-
;
|
|
442
|
-
FirstBidEvent.fromFields = function (fields) { return FirstBidEvent.reified().new({ nftId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.nft_id), number: (0, reified_1.decodeFromFields)("u64", fields.number), expEarn: (0, reified_1.decodeFromFields)("u64", fields.exp_earn) }); };
|
|
443
|
-
FirstBidEvent.fromFieldsWithTypes = function (item) {
|
|
444
|
-
if (!isFirstBidEvent(item.type)) {
|
|
445
|
-
throw new Error("not a FirstBidEvent type");
|
|
446
|
-
}
|
|
447
|
-
return FirstBidEvent.reified().new({ nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.nft_id), number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number), expEarn: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exp_earn) });
|
|
448
|
-
};
|
|
449
|
-
FirstBidEvent.fromBcs = function (data) { return FirstBidEvent.fromFields(FirstBidEvent.bcs.parse(data)); };
|
|
450
|
-
FirstBidEvent.prototype.toJSONField = function () {
|
|
451
|
-
return {
|
|
452
|
-
nftId: this.nftId, number: this.number.toString(), expEarn: this.expEarn.toString(),
|
|
453
|
-
};
|
|
454
|
-
};
|
|
455
|
-
FirstBidEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
456
|
-
FirstBidEvent.fromJSONField = function (field) { return FirstBidEvent.reified().new({ nftId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.nftId), number: (0, reified_1.decodeFromJSONField)("u64", field.number), expEarn: (0, reified_1.decodeFromJSONField)("u64", field.expEarn) }); };
|
|
457
|
-
FirstBidEvent.fromJSON = function (json) {
|
|
458
|
-
if (json.$typeName !== FirstBidEvent.$typeName) {
|
|
459
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
460
|
-
}
|
|
461
|
-
;
|
|
462
|
-
return FirstBidEvent.fromJSONField(json);
|
|
463
|
-
};
|
|
464
|
-
FirstBidEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
465
|
-
throw new Error("not an object");
|
|
466
|
-
} if (!isFirstBidEvent(content.type)) {
|
|
467
|
-
throw new Error("object at ".concat(content.fields.id, " is not a FirstBidEvent object"));
|
|
468
|
-
} return FirstBidEvent.fromFieldsWithTypes(content); };
|
|
469
|
-
FirstBidEvent.fetch = function (client, id) {
|
|
470
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
471
|
-
var res;
|
|
472
|
-
var _a, _b;
|
|
473
|
-
return __generator(this, function (_c) {
|
|
474
|
-
switch (_c.label) {
|
|
475
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
476
|
-
case 1:
|
|
477
|
-
res = _c.sent();
|
|
478
|
-
if (res.error) {
|
|
479
|
-
throw new Error("error fetching FirstBidEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
480
|
-
}
|
|
481
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isFirstBidEvent(res.data.bcs.type)) {
|
|
482
|
-
throw new Error("object at id ".concat(id, " is not a FirstBidEvent object"));
|
|
483
|
-
}
|
|
484
|
-
return [2 /*return*/, FirstBidEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
485
|
-
}
|
|
486
|
-
});
|
|
487
|
-
});
|
|
488
|
-
};
|
|
489
|
-
FirstBidEvent.$typeName = "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::FirstBidEvent";
|
|
490
|
-
FirstBidEvent.$numTypeParams = 0;
|
|
491
|
-
return FirstBidEvent;
|
|
492
|
-
}());
|
|
493
|
-
exports.FirstBidEvent = FirstBidEvent;
|
|
494
|
-
/* ============================== FirstDepositEvent =============================== */
|
|
495
|
-
function isFirstDepositEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::FirstDepositEvent"; }
|
|
496
|
-
var FirstDepositEvent = /** @class */ (function () {
|
|
497
|
-
function FirstDepositEvent(typeArgs, fields) {
|
|
498
|
-
this.$typeName = FirstDepositEvent.$typeName;
|
|
499
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([FirstDepositEvent.$typeName], __read(typeArgs), false));
|
|
500
|
-
this.$typeArgs = typeArgs;
|
|
501
|
-
this.nftId = fields.nftId;
|
|
502
|
-
;
|
|
503
|
-
this.number = fields.number;
|
|
504
|
-
;
|
|
505
|
-
this.expEarn = fields.expEarn;
|
|
506
|
-
}
|
|
507
|
-
FirstDepositEvent.reified = function () {
|
|
508
|
-
var _this = this;
|
|
509
|
-
return { typeName: FirstDepositEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([FirstDepositEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return FirstDepositEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return FirstDepositEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return FirstDepositEvent.fromBcs(data); }, bcs: FirstDepositEvent.bcs, fromJSONField: function (field) { return FirstDepositEvent.fromJSONField(field); }, fromJSON: function (json) { return FirstDepositEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return FirstDepositEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
510
|
-
return [2 /*return*/, FirstDepositEvent.fetch(client, id)];
|
|
511
|
-
}); }); }, new: function (fields) { return new FirstDepositEvent([], fields); }, kind: "StructClassReified", };
|
|
512
|
-
};
|
|
513
|
-
Object.defineProperty(FirstDepositEvent, "r", {
|
|
514
|
-
get: function () { return FirstDepositEvent.reified(); },
|
|
515
|
-
enumerable: false,
|
|
516
|
-
configurable: true
|
|
517
|
-
});
|
|
518
|
-
FirstDepositEvent.phantom = function () { return (0, reified_1.phantom)(FirstDepositEvent.reified()); };
|
|
519
|
-
Object.defineProperty(FirstDepositEvent, "p", {
|
|
520
|
-
get: function () { return FirstDepositEvent.phantom(); },
|
|
521
|
-
enumerable: false,
|
|
522
|
-
configurable: true
|
|
523
|
-
});
|
|
524
|
-
Object.defineProperty(FirstDepositEvent, "bcs", {
|
|
525
|
-
get: function () {
|
|
526
|
-
return bcs_1.bcs.struct("FirstDepositEvent", {
|
|
527
|
-
nft_id: structs_2.ID.bcs, number: bcs_1.bcs.u64(), exp_earn: bcs_1.bcs.u64()
|
|
528
|
-
});
|
|
529
|
-
},
|
|
530
|
-
enumerable: false,
|
|
531
|
-
configurable: true
|
|
532
|
-
});
|
|
533
|
-
;
|
|
534
|
-
FirstDepositEvent.fromFields = function (fields) { return FirstDepositEvent.reified().new({ nftId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.nft_id), number: (0, reified_1.decodeFromFields)("u64", fields.number), expEarn: (0, reified_1.decodeFromFields)("u64", fields.exp_earn) }); };
|
|
535
|
-
FirstDepositEvent.fromFieldsWithTypes = function (item) {
|
|
536
|
-
if (!isFirstDepositEvent(item.type)) {
|
|
537
|
-
throw new Error("not a FirstDepositEvent type");
|
|
538
|
-
}
|
|
539
|
-
return FirstDepositEvent.reified().new({ nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.nft_id), number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number), expEarn: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exp_earn) });
|
|
540
|
-
};
|
|
541
|
-
FirstDepositEvent.fromBcs = function (data) { return FirstDepositEvent.fromFields(FirstDepositEvent.bcs.parse(data)); };
|
|
542
|
-
FirstDepositEvent.prototype.toJSONField = function () {
|
|
543
|
-
return {
|
|
544
|
-
nftId: this.nftId, number: this.number.toString(), expEarn: this.expEarn.toString(),
|
|
545
|
-
};
|
|
546
|
-
};
|
|
547
|
-
FirstDepositEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
548
|
-
FirstDepositEvent.fromJSONField = function (field) { return FirstDepositEvent.reified().new({ nftId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.nftId), number: (0, reified_1.decodeFromJSONField)("u64", field.number), expEarn: (0, reified_1.decodeFromJSONField)("u64", field.expEarn) }); };
|
|
549
|
-
FirstDepositEvent.fromJSON = function (json) {
|
|
550
|
-
if (json.$typeName !== FirstDepositEvent.$typeName) {
|
|
551
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
552
|
-
}
|
|
553
|
-
;
|
|
554
|
-
return FirstDepositEvent.fromJSONField(json);
|
|
555
|
-
};
|
|
556
|
-
FirstDepositEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
557
|
-
throw new Error("not an object");
|
|
558
|
-
} if (!isFirstDepositEvent(content.type)) {
|
|
559
|
-
throw new Error("object at ".concat(content.fields.id, " is not a FirstDepositEvent object"));
|
|
560
|
-
} return FirstDepositEvent.fromFieldsWithTypes(content); };
|
|
561
|
-
FirstDepositEvent.fetch = function (client, id) {
|
|
562
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
563
|
-
var res;
|
|
564
|
-
var _a, _b;
|
|
565
|
-
return __generator(this, function (_c) {
|
|
566
|
-
switch (_c.label) {
|
|
567
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
568
|
-
case 1:
|
|
569
|
-
res = _c.sent();
|
|
570
|
-
if (res.error) {
|
|
571
|
-
throw new Error("error fetching FirstDepositEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
572
|
-
}
|
|
573
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isFirstDepositEvent(res.data.bcs.type)) {
|
|
574
|
-
throw new Error("object at id ".concat(id, " is not a FirstDepositEvent object"));
|
|
575
|
-
}
|
|
576
|
-
return [2 /*return*/, FirstDepositEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
577
|
-
}
|
|
578
|
-
});
|
|
579
|
-
});
|
|
580
|
-
};
|
|
581
|
-
FirstDepositEvent.$typeName = "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::FirstDepositEvent";
|
|
582
|
-
FirstDepositEvent.$numTypeParams = 0;
|
|
583
|
-
return FirstDepositEvent;
|
|
584
|
-
}());
|
|
585
|
-
exports.FirstDepositEvent = FirstDepositEvent;
|
|
586
|
-
/* ============================== LevelUpEvent =============================== */
|
|
587
|
-
function isLevelUpEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::LevelUpEvent"; }
|
|
588
|
-
var LevelUpEvent = /** @class */ (function () {
|
|
589
|
-
function LevelUpEvent(typeArgs, fields) {
|
|
590
|
-
this.$typeName = LevelUpEvent.$typeName;
|
|
591
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([LevelUpEvent.$typeName], __read(typeArgs), false));
|
|
592
|
-
this.$typeArgs = typeArgs;
|
|
593
|
-
this.nftId = fields.nftId;
|
|
594
|
-
;
|
|
595
|
-
this.level = fields.level;
|
|
596
|
-
}
|
|
597
|
-
LevelUpEvent.reified = function () {
|
|
598
|
-
var _this = this;
|
|
599
|
-
return { typeName: LevelUpEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([LevelUpEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return LevelUpEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return LevelUpEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return LevelUpEvent.fromBcs(data); }, bcs: LevelUpEvent.bcs, fromJSONField: function (field) { return LevelUpEvent.fromJSONField(field); }, fromJSON: function (json) { return LevelUpEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return LevelUpEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
600
|
-
return [2 /*return*/, LevelUpEvent.fetch(client, id)];
|
|
601
|
-
}); }); }, new: function (fields) { return new LevelUpEvent([], fields); }, kind: "StructClassReified", };
|
|
602
|
-
};
|
|
603
|
-
Object.defineProperty(LevelUpEvent, "r", {
|
|
604
|
-
get: function () { return LevelUpEvent.reified(); },
|
|
605
|
-
enumerable: false,
|
|
606
|
-
configurable: true
|
|
607
|
-
});
|
|
608
|
-
LevelUpEvent.phantom = function () { return (0, reified_1.phantom)(LevelUpEvent.reified()); };
|
|
609
|
-
Object.defineProperty(LevelUpEvent, "p", {
|
|
610
|
-
get: function () { return LevelUpEvent.phantom(); },
|
|
611
|
-
enumerable: false,
|
|
612
|
-
configurable: true
|
|
613
|
-
});
|
|
614
|
-
Object.defineProperty(LevelUpEvent, "bcs", {
|
|
615
|
-
get: function () {
|
|
616
|
-
return bcs_1.bcs.struct("LevelUpEvent", {
|
|
617
|
-
nft_id: structs_2.ID.bcs, level: bcs_1.bcs.u64()
|
|
618
|
-
});
|
|
619
|
-
},
|
|
620
|
-
enumerable: false,
|
|
621
|
-
configurable: true
|
|
622
|
-
});
|
|
623
|
-
;
|
|
624
|
-
LevelUpEvent.fromFields = function (fields) { return LevelUpEvent.reified().new({ nftId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.nft_id), level: (0, reified_1.decodeFromFields)("u64", fields.level) }); };
|
|
625
|
-
LevelUpEvent.fromFieldsWithTypes = function (item) {
|
|
626
|
-
if (!isLevelUpEvent(item.type)) {
|
|
627
|
-
throw new Error("not a LevelUpEvent type");
|
|
628
|
-
}
|
|
629
|
-
return LevelUpEvent.reified().new({ nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.nft_id), level: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.level) });
|
|
630
|
-
};
|
|
631
|
-
LevelUpEvent.fromBcs = function (data) { return LevelUpEvent.fromFields(LevelUpEvent.bcs.parse(data)); };
|
|
632
|
-
LevelUpEvent.prototype.toJSONField = function () {
|
|
633
|
-
return {
|
|
634
|
-
nftId: this.nftId, level: this.level.toString(),
|
|
635
|
-
};
|
|
636
|
-
};
|
|
637
|
-
LevelUpEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
638
|
-
LevelUpEvent.fromJSONField = function (field) { return LevelUpEvent.reified().new({ nftId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.nftId), level: (0, reified_1.decodeFromJSONField)("u64", field.level) }); };
|
|
639
|
-
LevelUpEvent.fromJSON = function (json) {
|
|
640
|
-
if (json.$typeName !== LevelUpEvent.$typeName) {
|
|
641
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
642
|
-
}
|
|
643
|
-
;
|
|
644
|
-
return LevelUpEvent.fromJSONField(json);
|
|
645
|
-
};
|
|
646
|
-
LevelUpEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
647
|
-
throw new Error("not an object");
|
|
648
|
-
} if (!isLevelUpEvent(content.type)) {
|
|
649
|
-
throw new Error("object at ".concat(content.fields.id, " is not a LevelUpEvent object"));
|
|
650
|
-
} return LevelUpEvent.fromFieldsWithTypes(content); };
|
|
651
|
-
LevelUpEvent.fetch = function (client, id) {
|
|
652
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
653
|
-
var res;
|
|
654
|
-
var _a, _b;
|
|
655
|
-
return __generator(this, function (_c) {
|
|
656
|
-
switch (_c.label) {
|
|
657
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
658
|
-
case 1:
|
|
659
|
-
res = _c.sent();
|
|
660
|
-
if (res.error) {
|
|
661
|
-
throw new Error("error fetching LevelUpEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
662
|
-
}
|
|
663
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isLevelUpEvent(res.data.bcs.type)) {
|
|
664
|
-
throw new Error("object at id ".concat(id, " is not a LevelUpEvent object"));
|
|
665
|
-
}
|
|
666
|
-
return [2 /*return*/, LevelUpEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
667
|
-
}
|
|
668
|
-
});
|
|
669
|
-
});
|
|
670
|
-
};
|
|
671
|
-
LevelUpEvent.$typeName = "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::LevelUpEvent";
|
|
672
|
-
LevelUpEvent.$numTypeParams = 0;
|
|
673
|
-
return LevelUpEvent;
|
|
674
|
-
}());
|
|
675
|
-
exports.LevelUpEvent = LevelUpEvent;
|
|
676
|
-
/* ============================== NewManagerCapEvent =============================== */
|
|
677
|
-
function isNewManagerCapEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::NewManagerCapEvent"; }
|
|
678
|
-
var NewManagerCapEvent = /** @class */ (function () {
|
|
679
|
-
function NewManagerCapEvent(typeArgs, fields) {
|
|
680
|
-
this.$typeName = NewManagerCapEvent.$typeName;
|
|
681
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewManagerCapEvent.$typeName], __read(typeArgs), false));
|
|
682
|
-
this.$typeArgs = typeArgs;
|
|
683
|
-
this.id = fields.id;
|
|
684
|
-
;
|
|
685
|
-
this.sender = fields.sender;
|
|
686
|
-
}
|
|
687
|
-
NewManagerCapEvent.reified = function () {
|
|
688
|
-
var _this = this;
|
|
689
|
-
return { typeName: NewManagerCapEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewManagerCapEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return NewManagerCapEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return NewManagerCapEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return NewManagerCapEvent.fromBcs(data); }, bcs: NewManagerCapEvent.bcs, fromJSONField: function (field) { return NewManagerCapEvent.fromJSONField(field); }, fromJSON: function (json) { return NewManagerCapEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return NewManagerCapEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
690
|
-
return [2 /*return*/, NewManagerCapEvent.fetch(client, id)];
|
|
691
|
-
}); }); }, new: function (fields) { return new NewManagerCapEvent([], fields); }, kind: "StructClassReified", };
|
|
692
|
-
};
|
|
693
|
-
Object.defineProperty(NewManagerCapEvent, "r", {
|
|
694
|
-
get: function () { return NewManagerCapEvent.reified(); },
|
|
695
|
-
enumerable: false,
|
|
696
|
-
configurable: true
|
|
697
|
-
});
|
|
698
|
-
NewManagerCapEvent.phantom = function () { return (0, reified_1.phantom)(NewManagerCapEvent.reified()); };
|
|
699
|
-
Object.defineProperty(NewManagerCapEvent, "p", {
|
|
700
|
-
get: function () { return NewManagerCapEvent.phantom(); },
|
|
701
|
-
enumerable: false,
|
|
702
|
-
configurable: true
|
|
703
|
-
});
|
|
704
|
-
Object.defineProperty(NewManagerCapEvent, "bcs", {
|
|
705
|
-
get: function () {
|
|
706
|
-
return bcs_1.bcs.struct("NewManagerCapEvent", {
|
|
707
|
-
id: structs_2.ID.bcs, sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, })
|
|
708
|
-
});
|
|
709
|
-
},
|
|
710
|
-
enumerable: false,
|
|
711
|
-
configurable: true
|
|
712
|
-
});
|
|
713
|
-
;
|
|
714
|
-
NewManagerCapEvent.fromFields = function (fields) { return NewManagerCapEvent.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id), sender: (0, reified_1.decodeFromFields)("address", fields.sender) }); };
|
|
715
|
-
NewManagerCapEvent.fromFieldsWithTypes = function (item) {
|
|
716
|
-
if (!isNewManagerCapEvent(item.type)) {
|
|
717
|
-
throw new Error("not a NewManagerCapEvent type");
|
|
718
|
-
}
|
|
719
|
-
return NewManagerCapEvent.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id), sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender) });
|
|
720
|
-
};
|
|
721
|
-
NewManagerCapEvent.fromBcs = function (data) { return NewManagerCapEvent.fromFields(NewManagerCapEvent.bcs.parse(data)); };
|
|
722
|
-
NewManagerCapEvent.prototype.toJSONField = function () {
|
|
723
|
-
return {
|
|
724
|
-
id: this.id, sender: this.sender,
|
|
725
|
-
};
|
|
726
|
-
};
|
|
727
|
-
NewManagerCapEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
728
|
-
NewManagerCapEvent.fromJSONField = function (field) { return NewManagerCapEvent.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id), sender: (0, reified_1.decodeFromJSONField)("address", field.sender) }); };
|
|
729
|
-
NewManagerCapEvent.fromJSON = function (json) {
|
|
730
|
-
if (json.$typeName !== NewManagerCapEvent.$typeName) {
|
|
731
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
732
|
-
}
|
|
733
|
-
;
|
|
734
|
-
return NewManagerCapEvent.fromJSONField(json);
|
|
735
|
-
};
|
|
736
|
-
NewManagerCapEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
737
|
-
throw new Error("not an object");
|
|
738
|
-
} if (!isNewManagerCapEvent(content.type)) {
|
|
739
|
-
throw new Error("object at ".concat(content.fields.id, " is not a NewManagerCapEvent object"));
|
|
740
|
-
} return NewManagerCapEvent.fromFieldsWithTypes(content); };
|
|
741
|
-
NewManagerCapEvent.fetch = function (client, id) {
|
|
742
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
743
|
-
var res;
|
|
744
|
-
var _a, _b;
|
|
745
|
-
return __generator(this, function (_c) {
|
|
746
|
-
switch (_c.label) {
|
|
747
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
748
|
-
case 1:
|
|
749
|
-
res = _c.sent();
|
|
750
|
-
if (res.error) {
|
|
751
|
-
throw new Error("error fetching NewManagerCapEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
752
|
-
}
|
|
753
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isNewManagerCapEvent(res.data.bcs.type)) {
|
|
754
|
-
throw new Error("object at id ".concat(id, " is not a NewManagerCapEvent object"));
|
|
755
|
-
}
|
|
756
|
-
return [2 /*return*/, NewManagerCapEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
757
|
-
}
|
|
758
|
-
});
|
|
759
|
-
});
|
|
760
|
-
};
|
|
761
|
-
NewManagerCapEvent.$typeName = "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::NewManagerCapEvent";
|
|
762
|
-
NewManagerCapEvent.$numTypeParams = 0;
|
|
763
|
-
return NewManagerCapEvent;
|
|
764
|
-
}());
|
|
765
|
-
exports.NewManagerCapEvent = NewManagerCapEvent;
|
|
766
|
-
/* ============================== Pool =============================== */
|
|
767
|
-
function isPool(type) { type = (0, util_1.compressSuiType)(type); return type === "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::Pool"; }
|
|
768
|
-
var Pool = /** @class */ (function () {
|
|
769
|
-
function Pool(typeArgs, fields) {
|
|
770
|
-
this.$typeName = Pool.$typeName;
|
|
771
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Pool.$typeName], __read(typeArgs), false));
|
|
772
|
-
this.$typeArgs = typeArgs;
|
|
773
|
-
this.id = fields.id;
|
|
774
|
-
;
|
|
775
|
-
this.tails = fields.tails;
|
|
776
|
-
;
|
|
777
|
-
this.num = fields.num;
|
|
778
|
-
;
|
|
779
|
-
this.isLive = fields.isLive;
|
|
780
|
-
;
|
|
781
|
-
this.startMs = fields.startMs;
|
|
782
|
-
}
|
|
783
|
-
Pool.reified = function () {
|
|
784
|
-
var _this = this;
|
|
785
|
-
return { typeName: Pool.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Pool.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Pool.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Pool.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Pool.fromBcs(data); }, bcs: Pool.bcs, fromJSONField: function (field) { return Pool.fromJSONField(field); }, fromJSON: function (json) { return Pool.fromJSON(json); }, fromSuiParsedData: function (content) { return Pool.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
786
|
-
return [2 /*return*/, Pool.fetch(client, id)];
|
|
787
|
-
}); }); }, new: function (fields) { return new Pool([], fields); }, kind: "StructClassReified", };
|
|
788
|
-
};
|
|
789
|
-
Object.defineProperty(Pool, "r", {
|
|
790
|
-
get: function () { return Pool.reified(); },
|
|
791
|
-
enumerable: false,
|
|
792
|
-
configurable: true
|
|
793
|
-
});
|
|
794
|
-
Pool.phantom = function () { return (0, reified_1.phantom)(Pool.reified()); };
|
|
795
|
-
Object.defineProperty(Pool, "p", {
|
|
796
|
-
get: function () { return Pool.phantom(); },
|
|
797
|
-
enumerable: false,
|
|
798
|
-
configurable: true
|
|
799
|
-
});
|
|
800
|
-
Object.defineProperty(Pool, "bcs", {
|
|
801
|
-
get: function () {
|
|
802
|
-
return bcs_1.bcs.struct("Pool", {
|
|
803
|
-
id: structs_2.UID.bcs, tails: structs_6.TableVec.bcs, num: bcs_1.bcs.u64(), is_live: bcs_1.bcs.bool(), start_ms: bcs_1.bcs.u64()
|
|
804
|
-
});
|
|
805
|
-
},
|
|
806
|
-
enumerable: false,
|
|
807
|
-
configurable: true
|
|
808
|
-
});
|
|
809
|
-
;
|
|
810
|
-
Pool.fromFields = function (fields) { return Pool.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id), tails: (0, reified_1.decodeFromFields)(structs_6.TableVec.reified(reified.phantom(Tails.reified())), fields.tails), num: (0, reified_1.decodeFromFields)("u64", fields.num), isLive: (0, reified_1.decodeFromFields)("bool", fields.is_live), startMs: (0, reified_1.decodeFromFields)("u64", fields.start_ms) }); };
|
|
811
|
-
Pool.fromFieldsWithTypes = function (item) {
|
|
812
|
-
if (!isPool(item.type)) {
|
|
813
|
-
throw new Error("not a Pool type");
|
|
814
|
-
}
|
|
815
|
-
return Pool.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id), tails: (0, reified_1.decodeFromFieldsWithTypes)(structs_6.TableVec.reified(reified.phantom(Tails.reified())), item.fields.tails), num: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.num), isLive: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.is_live), startMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.start_ms) });
|
|
816
|
-
};
|
|
817
|
-
Pool.fromBcs = function (data) { return Pool.fromFields(Pool.bcs.parse(data)); };
|
|
818
|
-
Pool.prototype.toJSONField = function () {
|
|
819
|
-
return {
|
|
820
|
-
id: this.id, tails: this.tails.toJSONField(), num: this.num.toString(), isLive: this.isLive, startMs: this.startMs.toString(),
|
|
821
|
-
};
|
|
822
|
-
};
|
|
823
|
-
Pool.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
824
|
-
Pool.fromJSONField = function (field) { return Pool.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id), tails: (0, reified_1.decodeFromJSONField)(structs_6.TableVec.reified(reified.phantom(Tails.reified())), field.tails), num: (0, reified_1.decodeFromJSONField)("u64", field.num), isLive: (0, reified_1.decodeFromJSONField)("bool", field.isLive), startMs: (0, reified_1.decodeFromJSONField)("u64", field.startMs) }); };
|
|
825
|
-
Pool.fromJSON = function (json) {
|
|
826
|
-
if (json.$typeName !== Pool.$typeName) {
|
|
827
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
828
|
-
}
|
|
829
|
-
;
|
|
830
|
-
return Pool.fromJSONField(json);
|
|
831
|
-
};
|
|
832
|
-
Pool.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
833
|
-
throw new Error("not an object");
|
|
834
|
-
} if (!isPool(content.type)) {
|
|
835
|
-
throw new Error("object at ".concat(content.fields.id, " is not a Pool object"));
|
|
836
|
-
} return Pool.fromFieldsWithTypes(content); };
|
|
837
|
-
Pool.fetch = function (client, id) {
|
|
838
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
839
|
-
var res;
|
|
840
|
-
var _a, _b;
|
|
841
|
-
return __generator(this, function (_c) {
|
|
842
|
-
switch (_c.label) {
|
|
843
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
844
|
-
case 1:
|
|
845
|
-
res = _c.sent();
|
|
846
|
-
if (res.error) {
|
|
847
|
-
throw new Error("error fetching Pool object at id ".concat(id, ": ").concat(res.error.code));
|
|
848
|
-
}
|
|
849
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isPool(res.data.bcs.type)) {
|
|
850
|
-
throw new Error("object at id ".concat(id, " is not a Pool object"));
|
|
851
|
-
}
|
|
852
|
-
return [2 /*return*/, Pool.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
853
|
-
}
|
|
854
|
-
});
|
|
855
|
-
});
|
|
856
|
-
};
|
|
857
|
-
Pool.$typeName = "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::Pool";
|
|
858
|
-
Pool.$numTypeParams = 0;
|
|
859
|
-
return Pool;
|
|
860
|
-
}());
|
|
861
|
-
exports.Pool = Pool;
|
|
862
|
-
/* ============================== Royalty =============================== */
|
|
863
|
-
function isRoyalty(type) { type = (0, util_1.compressSuiType)(type); return type === "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::Royalty"; }
|
|
864
|
-
var Royalty = /** @class */ (function () {
|
|
865
|
-
function Royalty(typeArgs, fields) {
|
|
866
|
-
this.$typeName = Royalty.$typeName;
|
|
867
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Royalty.$typeName], __read(typeArgs), false));
|
|
868
|
-
this.$typeArgs = typeArgs;
|
|
869
|
-
this.id = fields.id;
|
|
870
|
-
;
|
|
871
|
-
this.recipients = fields.recipients;
|
|
872
|
-
;
|
|
873
|
-
this.policyCap = fields.policyCap;
|
|
874
|
-
}
|
|
875
|
-
Royalty.reified = function () {
|
|
876
|
-
var _this = this;
|
|
877
|
-
return { typeName: Royalty.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Royalty.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Royalty.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Royalty.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Royalty.fromBcs(data); }, bcs: Royalty.bcs, fromJSONField: function (field) { return Royalty.fromJSONField(field); }, fromJSON: function (json) { return Royalty.fromJSON(json); }, fromSuiParsedData: function (content) { return Royalty.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
878
|
-
return [2 /*return*/, Royalty.fetch(client, id)];
|
|
879
|
-
}); }); }, new: function (fields) { return new Royalty([], fields); }, kind: "StructClassReified", };
|
|
880
|
-
};
|
|
881
|
-
Object.defineProperty(Royalty, "r", {
|
|
882
|
-
get: function () { return Royalty.reified(); },
|
|
883
|
-
enumerable: false,
|
|
884
|
-
configurable: true
|
|
885
|
-
});
|
|
886
|
-
Royalty.phantom = function () { return (0, reified_1.phantom)(Royalty.reified()); };
|
|
887
|
-
Object.defineProperty(Royalty, "p", {
|
|
888
|
-
get: function () { return Royalty.phantom(); },
|
|
889
|
-
enumerable: false,
|
|
890
|
-
configurable: true
|
|
891
|
-
});
|
|
892
|
-
Object.defineProperty(Royalty, "bcs", {
|
|
893
|
-
get: function () {
|
|
894
|
-
return bcs_1.bcs.struct("Royalty", {
|
|
895
|
-
id: structs_2.UID.bcs, recipients: structs_5.VecMap.bcs(bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), bcs_1.bcs.u64()), policy_cap: structs_3.TransferPolicyCap.bcs
|
|
896
|
-
});
|
|
897
|
-
},
|
|
898
|
-
enumerable: false,
|
|
899
|
-
configurable: true
|
|
900
|
-
});
|
|
901
|
-
;
|
|
902
|
-
Royalty.fromFields = function (fields) { return Royalty.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id), recipients: (0, reified_1.decodeFromFields)(structs_5.VecMap.reified("address", "u64"), fields.recipients), policyCap: (0, reified_1.decodeFromFields)(structs_3.TransferPolicyCap.reified(reified.phantom(Tails.reified())), fields.policy_cap) }); };
|
|
903
|
-
Royalty.fromFieldsWithTypes = function (item) {
|
|
904
|
-
if (!isRoyalty(item.type)) {
|
|
905
|
-
throw new Error("not a Royalty type");
|
|
906
|
-
}
|
|
907
|
-
return Royalty.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id), recipients: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecMap.reified("address", "u64"), item.fields.recipients), policyCap: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.TransferPolicyCap.reified(reified.phantom(Tails.reified())), item.fields.policy_cap) });
|
|
908
|
-
};
|
|
909
|
-
Royalty.fromBcs = function (data) { return Royalty.fromFields(Royalty.bcs.parse(data)); };
|
|
910
|
-
Royalty.prototype.toJSONField = function () {
|
|
911
|
-
return {
|
|
912
|
-
id: this.id, recipients: this.recipients.toJSONField(), policyCap: this.policyCap.toJSONField(),
|
|
913
|
-
};
|
|
914
|
-
};
|
|
915
|
-
Royalty.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
916
|
-
Royalty.fromJSONField = function (field) { return Royalty.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id), recipients: (0, reified_1.decodeFromJSONField)(structs_5.VecMap.reified("address", "u64"), field.recipients), policyCap: (0, reified_1.decodeFromJSONField)(structs_3.TransferPolicyCap.reified(reified.phantom(Tails.reified())), field.policyCap) }); };
|
|
917
|
-
Royalty.fromJSON = function (json) {
|
|
918
|
-
if (json.$typeName !== Royalty.$typeName) {
|
|
919
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
920
|
-
}
|
|
921
|
-
;
|
|
922
|
-
return Royalty.fromJSONField(json);
|
|
923
|
-
};
|
|
924
|
-
Royalty.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
925
|
-
throw new Error("not an object");
|
|
926
|
-
} if (!isRoyalty(content.type)) {
|
|
927
|
-
throw new Error("object at ".concat(content.fields.id, " is not a Royalty object"));
|
|
928
|
-
} return Royalty.fromFieldsWithTypes(content); };
|
|
929
|
-
Royalty.fetch = function (client, id) {
|
|
930
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
931
|
-
var res;
|
|
932
|
-
var _a, _b;
|
|
933
|
-
return __generator(this, function (_c) {
|
|
934
|
-
switch (_c.label) {
|
|
935
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
936
|
-
case 1:
|
|
937
|
-
res = _c.sent();
|
|
938
|
-
if (res.error) {
|
|
939
|
-
throw new Error("error fetching Royalty object at id ".concat(id, ": ").concat(res.error.code));
|
|
940
|
-
}
|
|
941
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRoyalty(res.data.bcs.type)) {
|
|
942
|
-
throw new Error("object at id ".concat(id, " is not a Royalty object"));
|
|
943
|
-
}
|
|
944
|
-
return [2 /*return*/, Royalty.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
945
|
-
}
|
|
946
|
-
});
|
|
947
|
-
});
|
|
948
|
-
};
|
|
949
|
-
Royalty.$typeName = "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::Royalty";
|
|
950
|
-
Royalty.$numTypeParams = 0;
|
|
951
|
-
return Royalty;
|
|
952
|
-
}());
|
|
953
|
-
exports.Royalty = Royalty;
|
|
954
|
-
/* ============================== RoyaltyUpdateEvent =============================== */
|
|
955
|
-
function isRoyaltyUpdateEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::RoyaltyUpdateEvent"; }
|
|
956
|
-
var RoyaltyUpdateEvent = /** @class */ (function () {
|
|
957
|
-
function RoyaltyUpdateEvent(typeArgs, fields) {
|
|
958
|
-
this.$typeName = RoyaltyUpdateEvent.$typeName;
|
|
959
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RoyaltyUpdateEvent.$typeName], __read(typeArgs), false));
|
|
960
|
-
this.$typeArgs = typeArgs;
|
|
961
|
-
this.sender = fields.sender;
|
|
962
|
-
;
|
|
963
|
-
this.recipients = fields.recipients;
|
|
964
|
-
}
|
|
965
|
-
RoyaltyUpdateEvent.reified = function () {
|
|
966
|
-
var _this = this;
|
|
967
|
-
return { typeName: RoyaltyUpdateEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RoyaltyUpdateEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return RoyaltyUpdateEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return RoyaltyUpdateEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return RoyaltyUpdateEvent.fromBcs(data); }, bcs: RoyaltyUpdateEvent.bcs, fromJSONField: function (field) { return RoyaltyUpdateEvent.fromJSONField(field); }, fromJSON: function (json) { return RoyaltyUpdateEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return RoyaltyUpdateEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
968
|
-
return [2 /*return*/, RoyaltyUpdateEvent.fetch(client, id)];
|
|
969
|
-
}); }); }, new: function (fields) { return new RoyaltyUpdateEvent([], fields); }, kind: "StructClassReified", };
|
|
970
|
-
};
|
|
971
|
-
Object.defineProperty(RoyaltyUpdateEvent, "r", {
|
|
972
|
-
get: function () { return RoyaltyUpdateEvent.reified(); },
|
|
973
|
-
enumerable: false,
|
|
974
|
-
configurable: true
|
|
975
|
-
});
|
|
976
|
-
RoyaltyUpdateEvent.phantom = function () { return (0, reified_1.phantom)(RoyaltyUpdateEvent.reified()); };
|
|
977
|
-
Object.defineProperty(RoyaltyUpdateEvent, "p", {
|
|
978
|
-
get: function () { return RoyaltyUpdateEvent.phantom(); },
|
|
979
|
-
enumerable: false,
|
|
980
|
-
configurable: true
|
|
981
|
-
});
|
|
982
|
-
Object.defineProperty(RoyaltyUpdateEvent, "bcs", {
|
|
983
|
-
get: function () {
|
|
984
|
-
return bcs_1.bcs.struct("RoyaltyUpdateEvent", {
|
|
985
|
-
sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), recipients: structs_5.VecMap.bcs(bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), bcs_1.bcs.u64())
|
|
986
|
-
});
|
|
987
|
-
},
|
|
988
|
-
enumerable: false,
|
|
989
|
-
configurable: true
|
|
990
|
-
});
|
|
991
|
-
;
|
|
992
|
-
RoyaltyUpdateEvent.fromFields = function (fields) { return RoyaltyUpdateEvent.reified().new({ sender: (0, reified_1.decodeFromFields)("address", fields.sender), recipients: (0, reified_1.decodeFromFields)(structs_5.VecMap.reified("address", "u64"), fields.recipients) }); };
|
|
993
|
-
RoyaltyUpdateEvent.fromFieldsWithTypes = function (item) {
|
|
994
|
-
if (!isRoyaltyUpdateEvent(item.type)) {
|
|
995
|
-
throw new Error("not a RoyaltyUpdateEvent type");
|
|
996
|
-
}
|
|
997
|
-
return RoyaltyUpdateEvent.reified().new({ sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender), recipients: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecMap.reified("address", "u64"), item.fields.recipients) });
|
|
998
|
-
};
|
|
999
|
-
RoyaltyUpdateEvent.fromBcs = function (data) { return RoyaltyUpdateEvent.fromFields(RoyaltyUpdateEvent.bcs.parse(data)); };
|
|
1000
|
-
RoyaltyUpdateEvent.prototype.toJSONField = function () {
|
|
1001
|
-
return {
|
|
1002
|
-
sender: this.sender, recipients: this.recipients.toJSONField(),
|
|
1003
|
-
};
|
|
1004
|
-
};
|
|
1005
|
-
RoyaltyUpdateEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1006
|
-
RoyaltyUpdateEvent.fromJSONField = function (field) { return RoyaltyUpdateEvent.reified().new({ sender: (0, reified_1.decodeFromJSONField)("address", field.sender), recipients: (0, reified_1.decodeFromJSONField)(structs_5.VecMap.reified("address", "u64"), field.recipients) }); };
|
|
1007
|
-
RoyaltyUpdateEvent.fromJSON = function (json) {
|
|
1008
|
-
if (json.$typeName !== RoyaltyUpdateEvent.$typeName) {
|
|
1009
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
1010
|
-
}
|
|
1011
|
-
;
|
|
1012
|
-
return RoyaltyUpdateEvent.fromJSONField(json);
|
|
1013
|
-
};
|
|
1014
|
-
RoyaltyUpdateEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1015
|
-
throw new Error("not an object");
|
|
1016
|
-
} if (!isRoyaltyUpdateEvent(content.type)) {
|
|
1017
|
-
throw new Error("object at ".concat(content.fields.id, " is not a RoyaltyUpdateEvent object"));
|
|
1018
|
-
} return RoyaltyUpdateEvent.fromFieldsWithTypes(content); };
|
|
1019
|
-
RoyaltyUpdateEvent.fetch = function (client, id) {
|
|
1020
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1021
|
-
var res;
|
|
1022
|
-
var _a, _b;
|
|
1023
|
-
return __generator(this, function (_c) {
|
|
1024
|
-
switch (_c.label) {
|
|
1025
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1026
|
-
case 1:
|
|
1027
|
-
res = _c.sent();
|
|
1028
|
-
if (res.error) {
|
|
1029
|
-
throw new Error("error fetching RoyaltyUpdateEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
1030
|
-
}
|
|
1031
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRoyaltyUpdateEvent(res.data.bcs.type)) {
|
|
1032
|
-
throw new Error("object at id ".concat(id, " is not a RoyaltyUpdateEvent object"));
|
|
1033
|
-
}
|
|
1034
|
-
return [2 /*return*/, RoyaltyUpdateEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1035
|
-
}
|
|
1036
|
-
});
|
|
1037
|
-
});
|
|
1038
|
-
};
|
|
1039
|
-
RoyaltyUpdateEvent.$typeName = "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::RoyaltyUpdateEvent";
|
|
1040
|
-
RoyaltyUpdateEvent.$numTypeParams = 0;
|
|
1041
|
-
return RoyaltyUpdateEvent;
|
|
1042
|
-
}());
|
|
1043
|
-
exports.RoyaltyUpdateEvent = RoyaltyUpdateEvent;
|
|
1044
|
-
/* ============================== TYPUS_NFT =============================== */
|
|
1045
|
-
function isTYPUS_NFT(type) { type = (0, util_1.compressSuiType)(type); return type === "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::TYPUS_NFT"; }
|
|
1046
|
-
var TYPUS_NFT = /** @class */ (function () {
|
|
1047
|
-
function TYPUS_NFT(typeArgs, fields) {
|
|
1048
|
-
this.$typeName = TYPUS_NFT.$typeName;
|
|
1049
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TYPUS_NFT.$typeName], __read(typeArgs), false));
|
|
1050
|
-
this.$typeArgs = typeArgs;
|
|
1051
|
-
this.dummyField = fields.dummyField;
|
|
1052
|
-
}
|
|
1053
|
-
TYPUS_NFT.reified = function () {
|
|
1054
|
-
var _this = this;
|
|
1055
|
-
return { typeName: TYPUS_NFT.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TYPUS_NFT.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return TYPUS_NFT.fromFields(fields); }, fromFieldsWithTypes: function (item) { return TYPUS_NFT.fromFieldsWithTypes(item); }, fromBcs: function (data) { return TYPUS_NFT.fromBcs(data); }, bcs: TYPUS_NFT.bcs, fromJSONField: function (field) { return TYPUS_NFT.fromJSONField(field); }, fromJSON: function (json) { return TYPUS_NFT.fromJSON(json); }, fromSuiParsedData: function (content) { return TYPUS_NFT.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1056
|
-
return [2 /*return*/, TYPUS_NFT.fetch(client, id)];
|
|
1057
|
-
}); }); }, new: function (fields) { return new TYPUS_NFT([], fields); }, kind: "StructClassReified", };
|
|
1058
|
-
};
|
|
1059
|
-
Object.defineProperty(TYPUS_NFT, "r", {
|
|
1060
|
-
get: function () { return TYPUS_NFT.reified(); },
|
|
1061
|
-
enumerable: false,
|
|
1062
|
-
configurable: true
|
|
1063
|
-
});
|
|
1064
|
-
TYPUS_NFT.phantom = function () { return (0, reified_1.phantom)(TYPUS_NFT.reified()); };
|
|
1065
|
-
Object.defineProperty(TYPUS_NFT, "p", {
|
|
1066
|
-
get: function () { return TYPUS_NFT.phantom(); },
|
|
1067
|
-
enumerable: false,
|
|
1068
|
-
configurable: true
|
|
1069
|
-
});
|
|
1070
|
-
Object.defineProperty(TYPUS_NFT, "bcs", {
|
|
1071
|
-
get: function () {
|
|
1072
|
-
return bcs_1.bcs.struct("TYPUS_NFT", {
|
|
1073
|
-
dummy_field: bcs_1.bcs.bool()
|
|
1074
|
-
});
|
|
1075
|
-
},
|
|
1076
|
-
enumerable: false,
|
|
1077
|
-
configurable: true
|
|
1078
|
-
});
|
|
1079
|
-
;
|
|
1080
|
-
TYPUS_NFT.fromFields = function (fields) { return TYPUS_NFT.reified().new({ dummyField: (0, reified_1.decodeFromFields)("bool", fields.dummy_field) }); };
|
|
1081
|
-
TYPUS_NFT.fromFieldsWithTypes = function (item) {
|
|
1082
|
-
if (!isTYPUS_NFT(item.type)) {
|
|
1083
|
-
throw new Error("not a TYPUS_NFT type");
|
|
1084
|
-
}
|
|
1085
|
-
return TYPUS_NFT.reified().new({ dummyField: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.dummy_field) });
|
|
1086
|
-
};
|
|
1087
|
-
TYPUS_NFT.fromBcs = function (data) { return TYPUS_NFT.fromFields(TYPUS_NFT.bcs.parse(data)); };
|
|
1088
|
-
TYPUS_NFT.prototype.toJSONField = function () {
|
|
1089
|
-
return {
|
|
1090
|
-
dummyField: this.dummyField,
|
|
1091
|
-
};
|
|
1092
|
-
};
|
|
1093
|
-
TYPUS_NFT.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1094
|
-
TYPUS_NFT.fromJSONField = function (field) { return TYPUS_NFT.reified().new({ dummyField: (0, reified_1.decodeFromJSONField)("bool", field.dummyField) }); };
|
|
1095
|
-
TYPUS_NFT.fromJSON = function (json) {
|
|
1096
|
-
if (json.$typeName !== TYPUS_NFT.$typeName) {
|
|
1097
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
1098
|
-
}
|
|
1099
|
-
;
|
|
1100
|
-
return TYPUS_NFT.fromJSONField(json);
|
|
1101
|
-
};
|
|
1102
|
-
TYPUS_NFT.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1103
|
-
throw new Error("not an object");
|
|
1104
|
-
} if (!isTYPUS_NFT(content.type)) {
|
|
1105
|
-
throw new Error("object at ".concat(content.fields.id, " is not a TYPUS_NFT object"));
|
|
1106
|
-
} return TYPUS_NFT.fromFieldsWithTypes(content); };
|
|
1107
|
-
TYPUS_NFT.fetch = function (client, id) {
|
|
1108
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1109
|
-
var res;
|
|
1110
|
-
var _a, _b;
|
|
1111
|
-
return __generator(this, function (_c) {
|
|
1112
|
-
switch (_c.label) {
|
|
1113
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1114
|
-
case 1:
|
|
1115
|
-
res = _c.sent();
|
|
1116
|
-
if (res.error) {
|
|
1117
|
-
throw new Error("error fetching TYPUS_NFT object at id ".concat(id, ": ").concat(res.error.code));
|
|
1118
|
-
}
|
|
1119
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTYPUS_NFT(res.data.bcs.type)) {
|
|
1120
|
-
throw new Error("object at id ".concat(id, " is not a TYPUS_NFT object"));
|
|
1121
|
-
}
|
|
1122
|
-
return [2 /*return*/, TYPUS_NFT.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1123
|
-
}
|
|
1124
|
-
});
|
|
1125
|
-
});
|
|
1126
|
-
};
|
|
1127
|
-
TYPUS_NFT.$typeName = "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::TYPUS_NFT";
|
|
1128
|
-
TYPUS_NFT.$numTypeParams = 0;
|
|
1129
|
-
return TYPUS_NFT;
|
|
1130
|
-
}());
|
|
1131
|
-
exports.TYPUS_NFT = TYPUS_NFT;
|
|
1132
|
-
/* ============================== Tails =============================== */
|
|
1133
|
-
function isTails(type) { type = (0, util_1.compressSuiType)(type); return type === "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::Tails"; }
|
|
1134
|
-
var Tails = /** @class */ (function () {
|
|
1135
|
-
function Tails(typeArgs, fields) {
|
|
1136
|
-
this.$typeName = Tails.$typeName;
|
|
1137
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Tails.$typeName], __read(typeArgs), false));
|
|
1138
|
-
this.$typeArgs = typeArgs;
|
|
1139
|
-
this.id = fields.id;
|
|
1140
|
-
;
|
|
1141
|
-
this.name = fields.name;
|
|
1142
|
-
;
|
|
1143
|
-
this.description = fields.description;
|
|
1144
|
-
;
|
|
1145
|
-
this.number = fields.number;
|
|
1146
|
-
;
|
|
1147
|
-
this.url = fields.url;
|
|
1148
|
-
;
|
|
1149
|
-
this.attributes = fields.attributes;
|
|
1150
|
-
;
|
|
1151
|
-
this.level = fields.level;
|
|
1152
|
-
;
|
|
1153
|
-
this.exp = fields.exp;
|
|
1154
|
-
;
|
|
1155
|
-
this.firstBid = fields.firstBid;
|
|
1156
|
-
;
|
|
1157
|
-
this.firstDeposit = fields.firstDeposit;
|
|
1158
|
-
;
|
|
1159
|
-
this.firstDepositNft = fields.firstDepositNft;
|
|
1160
|
-
;
|
|
1161
|
-
this.u64Padding = fields.u64Padding;
|
|
1162
|
-
}
|
|
1163
|
-
Tails.reified = function () {
|
|
1164
|
-
var _this = this;
|
|
1165
|
-
return { typeName: Tails.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Tails.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Tails.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Tails.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Tails.fromBcs(data); }, bcs: Tails.bcs, fromJSONField: function (field) { return Tails.fromJSONField(field); }, fromJSON: function (json) { return Tails.fromJSON(json); }, fromSuiParsedData: function (content) { return Tails.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1166
|
-
return [2 /*return*/, Tails.fetch(client, id)];
|
|
1167
|
-
}); }); }, new: function (fields) { return new Tails([], fields); }, kind: "StructClassReified", };
|
|
1168
|
-
};
|
|
1169
|
-
Object.defineProperty(Tails, "r", {
|
|
1170
|
-
get: function () { return Tails.reified(); },
|
|
1171
|
-
enumerable: false,
|
|
1172
|
-
configurable: true
|
|
1173
|
-
});
|
|
1174
|
-
Tails.phantom = function () { return (0, reified_1.phantom)(Tails.reified()); };
|
|
1175
|
-
Object.defineProperty(Tails, "p", {
|
|
1176
|
-
get: function () { return Tails.phantom(); },
|
|
1177
|
-
enumerable: false,
|
|
1178
|
-
configurable: true
|
|
1179
|
-
});
|
|
1180
|
-
Object.defineProperty(Tails, "bcs", {
|
|
1181
|
-
get: function () {
|
|
1182
|
-
return bcs_1.bcs.struct("Tails", {
|
|
1183
|
-
id: structs_2.UID.bcs, name: structs_1.String.bcs, description: structs_1.String.bcs, number: bcs_1.bcs.u64(), url: structs_4.Url.bcs, attributes: structs_5.VecMap.bcs(structs_1.String.bcs, structs_1.String.bcs), level: bcs_1.bcs.u64(), exp: bcs_1.bcs.u64(), first_bid: bcs_1.bcs.bool(), first_deposit: bcs_1.bcs.bool(), first_deposit_nft: bcs_1.bcs.bool(), u64_padding: structs_5.VecMap.bcs(structs_1.String.bcs, bcs_1.bcs.u64())
|
|
1184
|
-
});
|
|
1185
|
-
},
|
|
1186
|
-
enumerable: false,
|
|
1187
|
-
configurable: true
|
|
1188
|
-
});
|
|
1189
|
-
;
|
|
1190
|
-
Tails.fromFields = function (fields) { return Tails.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id), name: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.name), description: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.description), number: (0, reified_1.decodeFromFields)("u64", fields.number), url: (0, reified_1.decodeFromFields)(structs_4.Url.reified(), fields.url), attributes: (0, reified_1.decodeFromFields)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), fields.attributes), level: (0, reified_1.decodeFromFields)("u64", fields.level), exp: (0, reified_1.decodeFromFields)("u64", fields.exp), firstBid: (0, reified_1.decodeFromFields)("bool", fields.first_bid), firstDeposit: (0, reified_1.decodeFromFields)("bool", fields.first_deposit), firstDepositNft: (0, reified_1.decodeFromFields)("bool", fields.first_deposit_nft), u64Padding: (0, reified_1.decodeFromFields)(structs_5.VecMap.reified(structs_1.String.reified(), "u64"), fields.u64_padding) }); };
|
|
1191
|
-
Tails.fromFieldsWithTypes = function (item) {
|
|
1192
|
-
if (!isTails(item.type)) {
|
|
1193
|
-
throw new Error("not a Tails type");
|
|
1194
|
-
}
|
|
1195
|
-
return Tails.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id), name: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.name), description: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.description), number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number), url: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.Url.reified(), item.fields.url), attributes: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), item.fields.attributes), level: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.level), exp: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exp), firstBid: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.first_bid), firstDeposit: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.first_deposit), firstDepositNft: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.first_deposit_nft), u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecMap.reified(structs_1.String.reified(), "u64"), item.fields.u64_padding) });
|
|
1196
|
-
};
|
|
1197
|
-
Tails.fromBcs = function (data) { return Tails.fromFields(Tails.bcs.parse(data)); };
|
|
1198
|
-
Tails.prototype.toJSONField = function () {
|
|
1199
|
-
return {
|
|
1200
|
-
id: this.id, name: this.name, description: this.description, number: this.number.toString(), url: this.url, attributes: this.attributes.toJSONField(), level: this.level.toString(), exp: this.exp.toString(), firstBid: this.firstBid, firstDeposit: this.firstDeposit, firstDepositNft: this.firstDepositNft, u64Padding: this.u64Padding.toJSONField(),
|
|
1201
|
-
};
|
|
1202
|
-
};
|
|
1203
|
-
Tails.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1204
|
-
Tails.fromJSONField = function (field) { return Tails.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id), name: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.name), description: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.description), number: (0, reified_1.decodeFromJSONField)("u64", field.number), url: (0, reified_1.decodeFromJSONField)(structs_4.Url.reified(), field.url), attributes: (0, reified_1.decodeFromJSONField)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), field.attributes), level: (0, reified_1.decodeFromJSONField)("u64", field.level), exp: (0, reified_1.decodeFromJSONField)("u64", field.exp), firstBid: (0, reified_1.decodeFromJSONField)("bool", field.firstBid), firstDeposit: (0, reified_1.decodeFromJSONField)("bool", field.firstDeposit), firstDepositNft: (0, reified_1.decodeFromJSONField)("bool", field.firstDepositNft), u64Padding: (0, reified_1.decodeFromJSONField)(structs_5.VecMap.reified(structs_1.String.reified(), "u64"), field.u64Padding) }); };
|
|
1205
|
-
Tails.fromJSON = function (json) {
|
|
1206
|
-
if (json.$typeName !== Tails.$typeName) {
|
|
1207
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
1208
|
-
}
|
|
1209
|
-
;
|
|
1210
|
-
return Tails.fromJSONField(json);
|
|
1211
|
-
};
|
|
1212
|
-
Tails.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1213
|
-
throw new Error("not an object");
|
|
1214
|
-
} if (!isTails(content.type)) {
|
|
1215
|
-
throw new Error("object at ".concat(content.fields.id, " is not a Tails object"));
|
|
1216
|
-
} return Tails.fromFieldsWithTypes(content); };
|
|
1217
|
-
Tails.fetch = function (client, id) {
|
|
1218
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1219
|
-
var res;
|
|
1220
|
-
var _a, _b;
|
|
1221
|
-
return __generator(this, function (_c) {
|
|
1222
|
-
switch (_c.label) {
|
|
1223
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1224
|
-
case 1:
|
|
1225
|
-
res = _c.sent();
|
|
1226
|
-
if (res.error) {
|
|
1227
|
-
throw new Error("error fetching Tails object at id ".concat(id, ": ").concat(res.error.code));
|
|
1228
|
-
}
|
|
1229
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTails(res.data.bcs.type)) {
|
|
1230
|
-
throw new Error("object at id ".concat(id, " is not a Tails object"));
|
|
1231
|
-
}
|
|
1232
|
-
return [2 /*return*/, Tails.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1233
|
-
}
|
|
1234
|
-
});
|
|
1235
|
-
});
|
|
1236
|
-
};
|
|
1237
|
-
Tails.$typeName = "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::Tails";
|
|
1238
|
-
Tails.$numTypeParams = 0;
|
|
1239
|
-
return Tails;
|
|
1240
|
-
}());
|
|
1241
|
-
exports.Tails = Tails;
|
|
1242
|
-
/* ============================== Whitelist =============================== */
|
|
1243
|
-
function isWhitelist(type) { type = (0, util_1.compressSuiType)(type); return type === "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::Whitelist"; }
|
|
1244
|
-
var Whitelist = /** @class */ (function () {
|
|
1245
|
-
function Whitelist(typeArgs, fields) {
|
|
1246
|
-
this.$typeName = Whitelist.$typeName;
|
|
1247
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Whitelist.$typeName], __read(typeArgs), false));
|
|
1248
|
-
this.$typeArgs = typeArgs;
|
|
1249
|
-
this.id = fields.id;
|
|
1250
|
-
;
|
|
1251
|
-
this.for = fields.for;
|
|
1252
|
-
}
|
|
1253
|
-
Whitelist.reified = function () {
|
|
1254
|
-
var _this = this;
|
|
1255
|
-
return { typeName: Whitelist.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Whitelist.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Whitelist.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Whitelist.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Whitelist.fromBcs(data); }, bcs: Whitelist.bcs, fromJSONField: function (field) { return Whitelist.fromJSONField(field); }, fromJSON: function (json) { return Whitelist.fromJSON(json); }, fromSuiParsedData: function (content) { return Whitelist.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1256
|
-
return [2 /*return*/, Whitelist.fetch(client, id)];
|
|
1257
|
-
}); }); }, new: function (fields) { return new Whitelist([], fields); }, kind: "StructClassReified", };
|
|
1258
|
-
};
|
|
1259
|
-
Object.defineProperty(Whitelist, "r", {
|
|
1260
|
-
get: function () { return Whitelist.reified(); },
|
|
1261
|
-
enumerable: false,
|
|
1262
|
-
configurable: true
|
|
1263
|
-
});
|
|
1264
|
-
Whitelist.phantom = function () { return (0, reified_1.phantom)(Whitelist.reified()); };
|
|
1265
|
-
Object.defineProperty(Whitelist, "p", {
|
|
1266
|
-
get: function () { return Whitelist.phantom(); },
|
|
1267
|
-
enumerable: false,
|
|
1268
|
-
configurable: true
|
|
1269
|
-
});
|
|
1270
|
-
Object.defineProperty(Whitelist, "bcs", {
|
|
1271
|
-
get: function () {
|
|
1272
|
-
return bcs_1.bcs.struct("Whitelist", {
|
|
1273
|
-
id: structs_2.UID.bcs, for: structs_2.ID.bcs
|
|
1274
|
-
});
|
|
1275
|
-
},
|
|
1276
|
-
enumerable: false,
|
|
1277
|
-
configurable: true
|
|
1278
|
-
});
|
|
1279
|
-
;
|
|
1280
|
-
Whitelist.fromFields = function (fields) { return Whitelist.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id), for: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.for) }); };
|
|
1281
|
-
Whitelist.fromFieldsWithTypes = function (item) {
|
|
1282
|
-
if (!isWhitelist(item.type)) {
|
|
1283
|
-
throw new Error("not a Whitelist type");
|
|
1284
|
-
}
|
|
1285
|
-
return Whitelist.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id), for: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.for) });
|
|
1286
|
-
};
|
|
1287
|
-
Whitelist.fromBcs = function (data) { return Whitelist.fromFields(Whitelist.bcs.parse(data)); };
|
|
1288
|
-
Whitelist.prototype.toJSONField = function () {
|
|
1289
|
-
return {
|
|
1290
|
-
id: this.id, for: this.for,
|
|
1291
|
-
};
|
|
1292
|
-
};
|
|
1293
|
-
Whitelist.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1294
|
-
Whitelist.fromJSONField = function (field) { return Whitelist.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id), for: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.for) }); };
|
|
1295
|
-
Whitelist.fromJSON = function (json) {
|
|
1296
|
-
if (json.$typeName !== Whitelist.$typeName) {
|
|
1297
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
1298
|
-
}
|
|
1299
|
-
;
|
|
1300
|
-
return Whitelist.fromJSONField(json);
|
|
1301
|
-
};
|
|
1302
|
-
Whitelist.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1303
|
-
throw new Error("not an object");
|
|
1304
|
-
} if (!isWhitelist(content.type)) {
|
|
1305
|
-
throw new Error("object at ".concat(content.fields.id, " is not a Whitelist object"));
|
|
1306
|
-
} return Whitelist.fromFieldsWithTypes(content); };
|
|
1307
|
-
Whitelist.fetch = function (client, id) {
|
|
1308
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1309
|
-
var res;
|
|
1310
|
-
var _a, _b;
|
|
1311
|
-
return __generator(this, function (_c) {
|
|
1312
|
-
switch (_c.label) {
|
|
1313
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1314
|
-
case 1:
|
|
1315
|
-
res = _c.sent();
|
|
1316
|
-
if (res.error) {
|
|
1317
|
-
throw new Error("error fetching Whitelist object at id ".concat(id, ": ").concat(res.error.code));
|
|
1318
|
-
}
|
|
1319
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isWhitelist(res.data.bcs.type)) {
|
|
1320
|
-
throw new Error("object at id ".concat(id, " is not a Whitelist object"));
|
|
1321
|
-
}
|
|
1322
|
-
return [2 /*return*/, Whitelist.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1323
|
-
}
|
|
1324
|
-
});
|
|
1325
|
-
});
|
|
1326
|
-
};
|
|
1327
|
-
Whitelist.$typeName = "0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828::typus_nft::Whitelist";
|
|
1328
|
-
Whitelist.$numTypeParams = 0;
|
|
1329
|
-
return Whitelist;
|
|
1330
|
-
}());
|
|
1331
|
-
exports.Whitelist = Whitelist;
|