@typus/typus-sdk 1.4.5 → 1.4.7
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/config.json +189 -0
- package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +82 -0
- package/dist/src/_dependencies/source/0x1/ascii/structs.js +280 -0
- package/dist/src/_dependencies/source/0x1/bit-vector/structs.d.ts +50 -0
- package/dist/src/_dependencies/source/0x1/bit-vector/structs.js +193 -0
- package/dist/src/_dependencies/source/0x1/fixed-point32/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0x1/fixed-point32/structs.js +167 -0
- package/dist/src/_dependencies/source/0x1/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x1/index.js +5 -0
- package/dist/src/_dependencies/source/0x1/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x1/init.js +41 -0
- package/dist/src/_dependencies/source/0x1/option/structs.d.ts +46 -0
- package/dist/src/_dependencies/source/0x1/option/structs.js +198 -0
- package/dist/src/_dependencies/source/0x1/string/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0x1/string/structs.js +191 -0
- package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +48 -0
- package/dist/src/_dependencies/source/0x1/type-name/structs.js +168 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +5 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +39 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +277 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +377 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +102 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +353 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +65 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +175 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +65 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +175 -0
- package/dist/src/_dependencies/source/0x2/authenticator-state/structs.d.ts +442 -0
- package/dist/src/_dependencies/source/0x2/authenticator-state/structs.js +565 -0
- package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +56 -0
- package/dist/src/_dependencies/source/0x2/bag/structs.js +170 -0
- package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +79 -0
- package/dist/src/_dependencies/source/0x2/balance/structs.js +260 -0
- package/dist/src/_dependencies/source/0x2/bcs/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0x2/bcs/structs.js +191 -0
- package/dist/src/_dependencies/source/0x2/bls12381/structs.d.ts +155 -0
- package/dist/src/_dependencies/source/0x2/bls12381/structs.js +434 -0
- package/dist/src/_dependencies/source/0x2/borrow/structs.d.ts +104 -0
- package/dist/src/_dependencies/source/0x2/borrow/structs.js +267 -0
- package/dist/src/_dependencies/source/0x2/clock/structs.d.ts +56 -0
- package/dist/src/_dependencies/source/0x2/clock/structs.js +170 -0
- package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +379 -0
- package/dist/src/_dependencies/source/0x2/coin/structs.js +648 -0
- package/dist/src/_dependencies/source/0x2/deny-list/structs.d.ts +178 -0
- package/dist/src/_dependencies/source/0x2/deny-list/structs.js +290 -0
- package/dist/src/_dependencies/source/0x2/display/structs.d.ts +228 -0
- package/dist/src/_dependencies/source/0x2/display/structs.js +362 -0
- package/dist/src/_dependencies/source/0x2/dynamic-field/structs.d.ts +63 -0
- package/dist/src/_dependencies/source/0x2/dynamic-field/structs.js +174 -0
- package/dist/src/_dependencies/source/0x2/dynamic-object-field/structs.d.ts +42 -0
- package/dist/src/_dependencies/source/0x2/dynamic-object-field/structs.js +172 -0
- package/dist/src/_dependencies/source/0x2/groth16/structs.d.ts +186 -0
- package/dist/src/_dependencies/source/0x2/groth16/structs.js +464 -0
- package/dist/src/_dependencies/source/0x2/group-ops/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0x2/group-ops/structs.js +193 -0
- package/dist/src/_dependencies/source/0x2/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x2/index.js +5 -0
- package/dist/src/_dependencies/source/0x2/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x2/init.js +150 -0
- package/dist/src/_dependencies/source/0x2/kiosk/structs.d.ts +565 -0
- package/dist/src/_dependencies/source/0x2/kiosk/structs.js +1033 -0
- package/dist/src/_dependencies/source/0x2/kiosk-extension/structs.d.ts +112 -0
- package/dist/src/_dependencies/source/0x2/kiosk-extension/structs.js +263 -0
- package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +144 -0
- package/dist/src/_dependencies/source/0x2/linked-table/structs.js +272 -0
- package/dist/src/_dependencies/source/0x2/object/structs.d.ts +83 -0
- package/dist/src/_dependencies/source/0x2/object/structs.js +256 -0
- package/dist/src/_dependencies/source/0x2/object-bag/structs.d.ts +56 -0
- package/dist/src/_dependencies/source/0x2/object-bag/structs.js +170 -0
- package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +56 -0
- package/dist/src/_dependencies/source/0x2/object-table/structs.js +172 -0
- package/dist/src/_dependencies/source/0x2/package/structs.d.ts +262 -0
- package/dist/src/_dependencies/source/0x2/package/structs.js +478 -0
- package/dist/src/_dependencies/source/0x2/priority-queue/structs.d.ts +101 -0
- package/dist/src/_dependencies/source/0x2/priority-queue/structs.js +292 -0
- package/dist/src/_dependencies/source/0x2/random/structs.d.ts +190 -0
- package/dist/src/_dependencies/source/0x2/random/structs.js +383 -0
- package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0x2/sui/structs.js +167 -0
- package/dist/src/_dependencies/source/0x2/table/structs.d.ts +56 -0
- package/dist/src/_dependencies/source/0x2/table/structs.js +172 -0
- package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +63 -0
- package/dist/src/_dependencies/source/0x2/table-vec/structs.js +194 -0
- package/dist/src/_dependencies/source/0x2/token/structs.d.ts +424 -0
- package/dist/src/_dependencies/source/0x2/token/structs.js +651 -0
- package/dist/src/_dependencies/source/0x2/transfer/structs.d.ts +52 -0
- package/dist/src/_dependencies/source/0x2/transfer/structs.js +172 -0
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +345 -0
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +665 -0
- package/dist/src/_dependencies/source/0x2/tx-context/structs.d.ts +68 -0
- package/dist/src/_dependencies/source/0x2/tx-context/structs.js +199 -0
- package/dist/src/_dependencies/source/0x2/url/structs.d.ts +48 -0
- package/dist/src/_dependencies/source/0x2/url/structs.js +168 -0
- package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +101 -0
- package/dist/src/_dependencies/source/0x2/vec-map/structs.js +286 -0
- package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +45 -0
- package/dist/src/_dependencies/source/0x2/vec-set/structs.js +196 -0
- package/dist/src/_dependencies/source/0x2/versioned/structs.d.ts +104 -0
- package/dist/src/_dependencies/source/0x2/versioned/structs.js +261 -0
- package/dist/src/_dependencies/source/0x2/zklogin-verified-id/structs.d.ts +105 -0
- package/dist/src/_dependencies/source/0x2/zklogin-verified-id/structs.js +179 -0
- package/dist/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.d.ts +69 -0
- package/dist/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.js +173 -0
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +5 -0
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +30 -0
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +50 -0
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +168 -0
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +5 -0
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +33 -0
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +167 -0
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +112 -0
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +265 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +463 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +669 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +137 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +401 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +226 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +402 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +383 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +566 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +5 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +73 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +591 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +774 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.d.ts +152 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +272 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +138 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +276 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +261 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +471 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +306 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +563 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +598 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +789 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +5 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +61 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +85 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.js +258 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +433 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +562 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +63 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +194 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +1006 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +1331 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +1458 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +1706 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +5 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +129 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +1201 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +1643 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +1374 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +971 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +395 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +750 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +994 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +933 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +77 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +179 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +4562 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +3796 -0
- package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +5 -0
- package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +4 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +83 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +192 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +333 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +382 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +68 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +176 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +843 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +959 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +167 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +5 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +79 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +146 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +274 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.d.ts +2272 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +2830 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +719 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +711 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +5 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +43 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +81 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +200 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +53 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +171 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +115 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +212 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +50 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +168 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +5 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +36 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +79 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +256 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +85 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.js +258 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +169 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.js +191 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.js +191 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.d.ts +72 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.js +193 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.d.ts +45 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.js +196 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.d.ts +140 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.js +348 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.d.ts +52 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.js +168 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.d.ts +58 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.js +195 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.d.ts +158 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.js +298 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.d.ts +52 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.js +168 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.d.ts +75 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.js +196 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.d.ts +80 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.js +174 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.js +5 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.js +90 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.d.ts +46 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.js +168 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.d.ts +177 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.js +438 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.d.ts +141 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.js +297 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.d.ts +101 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.js +283 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.d.ts +79 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.js +256 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.d.ts +50 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.js +168 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.d.ts +269 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.js +303 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.d.ts +85 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.js +258 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.d.ts +145 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.js +372 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.d.ts +143 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.js +349 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.d.ts +122 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.js +209 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.d.ts +79 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.js +256 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.d.ts +279 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.js +295 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.d.ts +105 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.js +260 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.d.ts +66 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.js +170 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.d.ts +200 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.js +259 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.d.ts +67 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.js +196 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.js +167 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.d.ts +71 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.js +198 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.d.ts +45 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.js +196 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.d.ts +47 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.js +169 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.js +5 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.js +84 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.d.ts +46 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.js +168 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.d.ts +84 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.js +174 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.d.ts +153 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.js +173 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.js +191 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.d.ts +351 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.js +264 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.js +167 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.d.ts +110 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.js +288 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.d.ts +75 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.js +192 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.js +167 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.d.ts +72 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.js +172 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.js +167 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.d.ts +47 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.js +169 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.d.ts +50 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.js +168 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.d.ts +269 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.js +363 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.d.ts +79 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.js +256 -0
- package/dist/src/_framework/init-source.d.ts +1 -0
- package/dist/src/_framework/init-source.js +64 -0
- package/dist/src/_framework/loader.d.ts +17 -0
- package/dist/src/_framework/loader.js +99 -0
- package/dist/src/_framework/reified.d.ts +100 -0
- package/dist/src/_framework/reified.js +263 -0
- package/dist/src/_framework/util.d.ts +53 -0
- package/dist/src/_framework/util.js +251 -0
- package/dist/src/airdrop/authority-entry.d.ts +22 -0
- package/dist/src/airdrop/authority-entry.js +137 -0
- package/dist/src/airdrop/index.d.ts +3 -0
- package/dist/src/airdrop/index.js +19 -0
- package/dist/src/airdrop/user-entry.d.ts +10 -0
- package/dist/src/airdrop/user-entry.js +16 -0
- package/dist/src/airdrop/view-function.d.ts +9 -0
- package/dist/src/airdrop/view-function.js +73 -0
- package/dist/src/auto-bid/index.d.ts +2 -0
- package/dist/src/auto-bid/index.js +18 -0
- package/dist/src/auto-bid/user-entry.d.ts +45 -0
- package/dist/src/auto-bid/user-entry.js +203 -0
- package/dist/src/auto-bid/view-function.d.ts +43 -0
- package/dist/src/auto-bid/view-function.js +347 -0
- package/dist/src/constants/constant.d.ts +22 -0
- package/dist/src/constants/constant.js +29 -0
- package/dist/src/constants/index.d.ts +2 -0
- package/dist/src/constants/index.js +18 -0
- package/dist/src/constants/token.d.ts +51 -0
- package/dist/src/constants/token.js +178 -0
- package/dist/src/index.d.ts +11 -0
- package/dist/src/index.js +27 -0
- package/dist/src/leaderboard/authority-entry.d.ts +22 -0
- package/dist/src/leaderboard/authority-entry.js +90 -0
- package/dist/src/leaderboard/index.d.ts +2 -0
- package/dist/src/leaderboard/index.js +18 -0
- package/dist/src/leaderboard/view-function.d.ts +20 -0
- package/dist/src/leaderboard/view-function.js +93 -0
- package/dist/src/tails-exp-dice/api.d.ts +1 -0
- package/dist/src/tails-exp-dice/api.js +76 -0
- package/dist/src/tails-exp-dice/fetch.d.ts +81 -0
- package/dist/src/tails-exp-dice/fetch.js +346 -0
- package/dist/src/tails-exp-dice/index.d.ts +4 -0
- package/dist/src/tails-exp-dice/index.js +20 -0
- package/dist/src/tails-exp-dice/user-entry.d.ts +70 -0
- package/dist/src/tails-exp-dice/user-entry.js +249 -0
- package/dist/src/tails-exp-dice/view-function.d.ts +8 -0
- package/dist/src/tails-exp-dice/view-function.js +130 -0
- package/dist/src/tails-staking/authority-entry.d.ts +182 -0
- package/dist/src/tails-staking/authority-entry.js +247 -0
- package/dist/src/tails-staking/index.d.ts +3 -0
- package/dist/src/tails-staking/index.js +19 -0
- package/dist/src/tails-staking/user-entry.d.ts +157 -0
- package/dist/src/tails-staking/user-entry.js +416 -0
- package/dist/src/tails-staking/view-function.d.ts +20 -0
- package/dist/src/tails-staking/view-function.js +122 -0
- package/dist/src/typus-dov-single-v2/entry/authority-entry.d.ts +70 -0
- package/dist/src/typus-dov-single-v2/entry/authority-entry.js +167 -0
- package/dist/src/typus-dov-single-v2/entry/index.d.ts +3 -0
- package/dist/src/typus-dov-single-v2/entry/index.js +19 -0
- package/dist/src/typus-dov-single-v2/entry/mfud-user-entry.d.ts +126 -0
- package/dist/src/typus-dov-single-v2/entry/mfud-user-entry.js +425 -0
- package/dist/src/typus-dov-single-v2/entry/user-entry.d.ts +212 -0
- package/dist/src/typus-dov-single-v2/entry/user-entry.js +448 -0
- package/dist/src/typus-dov-single-v2/function/bidding.d.ts +151 -0
- package/dist/src/typus-dov-single-v2/function/bidding.js +833 -0
- package/dist/src/typus-dov-single-v2/function/index.d.ts +3 -0
- package/dist/src/typus-dov-single-v2/function/index.js +19 -0
- package/dist/src/typus-dov-single-v2/function/token.d.ts +21 -0
- package/dist/src/typus-dov-single-v2/function/token.js +38 -0
- package/dist/src/typus-dov-single-v2/function/vault.d.ts +8 -0
- package/dist/src/typus-dov-single-v2/function/vault.js +23 -0
- package/dist/src/typus-dov-single-v2/history/index.d.ts +2 -0
- package/dist/src/typus-dov-single-v2/history/index.js +18 -0
- package/dist/src/typus-dov-single-v2/history/user-history.d.ts +36 -0
- package/dist/src/typus-dov-single-v2/history/user-history.js +999 -0
- package/dist/src/typus-dov-single-v2/history/vault-history.d.ts +123 -0
- package/dist/src/typus-dov-single-v2/history/vault-history.js +403 -0
- package/dist/src/typus-dov-single-v2/index.d.ts +4 -0
- package/dist/src/typus-dov-single-v2/index.js +20 -0
- package/dist/src/typus-dov-single-v2/view-function.d.ts +212 -0
- package/dist/src/typus-dov-single-v2/view-function.js +578 -0
- package/dist/src/typus-nft/fetch.d.ts +69 -0
- package/dist/src/typus-nft/fetch.js +565 -0
- package/dist/src/typus-nft/index.d.ts +2 -0
- package/dist/src/typus-nft/index.js +18 -0
- package/dist/src/typus-nft/user-entry.d.ts +38 -0
- package/dist/src/typus-nft/user-entry.js +173 -0
- package/dist/src/typus-perp/admin/functions.d.ts +51 -0
- package/dist/src/typus-perp/admin/functions.js +100 -0
- package/dist/src/typus-perp/admin/structs.d.ts +425 -0
- package/dist/src/typus-perp/admin/structs.js +802 -0
- package/dist/src/typus-perp/fetch.d.ts +57 -0
- package/dist/src/typus-perp/fetch.js +400 -0
- package/dist/src/typus-perp/index.d.ts +7 -0
- package/dist/src/typus-perp/index.js +33 -0
- package/dist/src/typus-perp/init.d.ts +2 -0
- package/dist/src/typus-perp/init.js +120 -0
- package/dist/src/typus-perp/lp-pool/functions.d.ts +283 -0
- package/dist/src/typus-perp/lp-pool/functions.js +418 -0
- package/dist/src/typus-perp/lp-pool/structs.d.ts +2538 -0
- package/dist/src/typus-perp/lp-pool/structs.js +3515 -0
- package/dist/src/typus-perp/math/functions.d.ts +18 -0
- package/dist/src/typus-perp/math/functions.js +40 -0
- package/dist/src/typus-perp/oracle/functions.d.ts +14 -0
- package/dist/src/typus-perp/oracle/functions.js +22 -0
- package/dist/src/typus-perp/oracle/structs.d.ts +102 -0
- package/dist/src/typus-perp/oracle/structs.js +353 -0
- package/dist/src/typus-perp/position/functions.d.ts +339 -0
- package/dist/src/typus-perp/position/functions.js +564 -0
- package/dist/src/typus-perp/position/structs.d.ts +1144 -0
- package/dist/src/typus-perp/position/structs.js +1485 -0
- package/dist/src/typus-perp/readVec.d.ts +3 -0
- package/dist/src/typus-perp/readVec.js +117 -0
- package/dist/src/typus-perp/stake-pool/functions.d.ts +169 -0
- package/dist/src/typus-perp/stake-pool/functions.js +258 -0
- package/dist/src/typus-perp/stake-pool/structs.d.ts +2071 -0
- package/dist/src/typus-perp/stake-pool/structs.js +3515 -0
- package/dist/src/typus-perp/symbol/functions.d.ts +10 -0
- package/dist/src/typus-perp/symbol/functions.js +20 -0
- package/dist/src/typus-perp/symbol/structs.d.ts +76 -0
- package/dist/src/typus-perp/symbol/structs.js +216 -0
- package/dist/src/typus-perp/tlp/functions.d.ts +20 -0
- package/dist/src/typus-perp/tlp/functions.js +35 -0
- package/dist/src/typus-perp/tlp/structs.d.ts +88 -0
- package/dist/src/typus-perp/tlp/structs.js +329 -0
- package/dist/src/typus-perp/token-interface/functions.d.ts +12 -0
- package/dist/src/typus-perp/token-interface/functions.js +20 -0
- package/dist/src/typus-perp/trading/functions.d.ts +427 -0
- package/dist/src/typus-perp/trading/functions.js +612 -0
- package/dist/src/typus-perp/trading/structs.d.ts +2631 -0
- package/dist/src/typus-perp/trading/structs.js +4067 -0
- package/dist/src/typus-perp/treasury-caps/functions.d.ts +10 -0
- package/dist/src/typus-perp/treasury-caps/functions.js +32 -0
- package/dist/src/typus-perp/treasury-caps/structs.d.ts +50 -0
- package/dist/src/typus-perp/treasury-caps/structs.js +204 -0
- package/dist/src/typus-perp/user/index.d.ts +3 -0
- package/dist/src/typus-perp/user/index.js +19 -0
- package/dist/src/typus-perp/user/order.d.ts +70 -0
- package/dist/src/typus-perp/user/order.js +206 -0
- package/dist/src/typus-perp/user/orderWithBidReceipt.d.ts +62 -0
- package/dist/src/typus-perp/user/orderWithBidReceipt.js +149 -0
- package/dist/src/typus-perp/user/tlp.d.ts +93 -0
- package/dist/src/typus-perp/user/tlp.js +268 -0
- package/dist/src/user/index.d.ts +1 -0
- package/dist/src/user/index.js +17 -0
- package/dist/src/user/view-function.d.ts +8 -0
- package/dist/src/user/view-function.js +71 -0
- package/dist/src/utils/api/defillama/index.d.ts +1 -0
- package/dist/src/utils/api/defillama/index.js +17 -0
- package/dist/src/utils/api/defillama/tvl.d.ts +1 -0
- package/dist/src/utils/api/defillama/tvl.js +58 -0
- package/dist/src/utils/api/index.d.ts +3 -0
- package/dist/src/utils/api/index.js +19 -0
- package/dist/src/utils/api/price.d.ts +4 -0
- package/dist/src/utils/api/price.js +208 -0
- package/dist/src/utils/api/sentio/index.d.ts +2 -0
- package/dist/src/utils/api/sentio/index.js +18 -0
- package/dist/src/utils/api/sentio/leader-board.d.ts +7 -0
- package/dist/src/utils/api/sentio/leader-board.js +103 -0
- package/dist/src/utils/api/sentio/reward-generated.d.ts +16 -0
- package/dist/src/utils/api/sentio/reward-generated.js +506 -0
- package/dist/src/utils/index.d.ts +5 -0
- package/dist/src/utils/index.js +21 -0
- package/dist/src/utils/load_env.d.ts +1 -0
- package/dist/src/utils/load_env.js +9 -0
- package/dist/src/utils/mint.d.ts +2 -0
- package/dist/src/utils/mint.js +57 -0
- package/dist/src/utils/pyth/constant.d.ts +49 -0
- package/dist/src/utils/pyth/constant.js +70 -0
- package/dist/src/utils/pyth/index.d.ts +2 -0
- package/dist/src/utils/pyth/index.js +18 -0
- package/dist/src/utils/pyth/pythClient.d.ts +12 -0
- package/dist/src/utils/pyth/pythClient.js +80 -0
- package/dist/src/utils/tools.d.ts +6 -0
- package/dist/src/utils/tools.js +45 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1033 @@
|
|
|
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.PurchaseCap = exports.Lock = exports.Listing = exports.KioskOwnerCap = exports.Kiosk = exports.ItemPurchased = exports.ItemListed = exports.ItemDelisted = exports.Item = exports.Borrow = void 0;
|
|
99
|
+
exports.isBorrow = isBorrow;
|
|
100
|
+
exports.isItem = isItem;
|
|
101
|
+
exports.isItemDelisted = isItemDelisted;
|
|
102
|
+
exports.isItemListed = isItemListed;
|
|
103
|
+
exports.isItemPurchased = isItemPurchased;
|
|
104
|
+
exports.isKiosk = isKiosk;
|
|
105
|
+
exports.isKioskOwnerCap = isKioskOwnerCap;
|
|
106
|
+
exports.isListing = isListing;
|
|
107
|
+
exports.isLock = isLock;
|
|
108
|
+
exports.isPurchaseCap = isPurchaseCap;
|
|
109
|
+
var reified = __importStar(require("../../../../_framework/reified"));
|
|
110
|
+
var reified_1 = require("../../../../_framework/reified");
|
|
111
|
+
var util_1 = require("../../../../_framework/util");
|
|
112
|
+
var structs_1 = require("../balance/structs");
|
|
113
|
+
var structs_2 = require("../object/structs");
|
|
114
|
+
var structs_3 = require("../sui/structs");
|
|
115
|
+
var bcs_1 = require("@mysten/bcs");
|
|
116
|
+
/* ============================== Borrow =============================== */
|
|
117
|
+
function isBorrow(type) { type = (0, util_1.compressSuiType)(type); return type === "0x2::kiosk::Borrow"; }
|
|
118
|
+
var Borrow = /** @class */ (function () {
|
|
119
|
+
function Borrow(typeArgs, fields) {
|
|
120
|
+
this.$typeName = Borrow.$typeName;
|
|
121
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Borrow.$typeName], __read(typeArgs), false));
|
|
122
|
+
this.$typeArgs = typeArgs;
|
|
123
|
+
this.kioskId = fields.kioskId;
|
|
124
|
+
;
|
|
125
|
+
this.itemId = fields.itemId;
|
|
126
|
+
}
|
|
127
|
+
Borrow.reified = function () {
|
|
128
|
+
var _this = this;
|
|
129
|
+
return { typeName: Borrow.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Borrow.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Borrow.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Borrow.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Borrow.fromBcs(data); }, bcs: Borrow.bcs, fromJSONField: function (field) { return Borrow.fromJSONField(field); }, fromJSON: function (json) { return Borrow.fromJSON(json); }, fromSuiParsedData: function (content) { return Borrow.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
130
|
+
return [2 /*return*/, Borrow.fetch(client, id)];
|
|
131
|
+
}); }); }, new: function (fields) { return new Borrow([], fields); }, kind: "StructClassReified", };
|
|
132
|
+
};
|
|
133
|
+
Object.defineProperty(Borrow, "r", {
|
|
134
|
+
get: function () { return Borrow.reified(); },
|
|
135
|
+
enumerable: false,
|
|
136
|
+
configurable: true
|
|
137
|
+
});
|
|
138
|
+
Borrow.phantom = function () { return (0, reified_1.phantom)(Borrow.reified()); };
|
|
139
|
+
Object.defineProperty(Borrow, "p", {
|
|
140
|
+
get: function () { return Borrow.phantom(); },
|
|
141
|
+
enumerable: false,
|
|
142
|
+
configurable: true
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(Borrow, "bcs", {
|
|
145
|
+
get: function () {
|
|
146
|
+
return bcs_1.bcs.struct("Borrow", {
|
|
147
|
+
kiosk_id: structs_2.ID.bcs, item_id: structs_2.ID.bcs
|
|
148
|
+
});
|
|
149
|
+
},
|
|
150
|
+
enumerable: false,
|
|
151
|
+
configurable: true
|
|
152
|
+
});
|
|
153
|
+
;
|
|
154
|
+
Borrow.fromFields = function (fields) { return Borrow.reified().new({ kioskId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.kiosk_id), itemId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.item_id) }); };
|
|
155
|
+
Borrow.fromFieldsWithTypes = function (item) {
|
|
156
|
+
if (!isBorrow(item.type)) {
|
|
157
|
+
throw new Error("not a Borrow type");
|
|
158
|
+
}
|
|
159
|
+
return Borrow.reified().new({ kioskId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.kiosk_id), itemId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.item_id) });
|
|
160
|
+
};
|
|
161
|
+
Borrow.fromBcs = function (data) { return Borrow.fromFields(Borrow.bcs.parse(data)); };
|
|
162
|
+
Borrow.prototype.toJSONField = function () {
|
|
163
|
+
return {
|
|
164
|
+
kioskId: this.kioskId, itemId: this.itemId,
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
Borrow.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
168
|
+
Borrow.fromJSONField = function (field) { return Borrow.reified().new({ kioskId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.kioskId), itemId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.itemId) }); };
|
|
169
|
+
Borrow.fromJSON = function (json) {
|
|
170
|
+
if (json.$typeName !== Borrow.$typeName) {
|
|
171
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
172
|
+
}
|
|
173
|
+
;
|
|
174
|
+
return Borrow.fromJSONField(json);
|
|
175
|
+
};
|
|
176
|
+
Borrow.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
177
|
+
throw new Error("not an object");
|
|
178
|
+
} if (!isBorrow(content.type)) {
|
|
179
|
+
throw new Error("object at ".concat(content.fields.id, " is not a Borrow object"));
|
|
180
|
+
} return Borrow.fromFieldsWithTypes(content); };
|
|
181
|
+
Borrow.fetch = function (client, id) {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
183
|
+
var res;
|
|
184
|
+
var _a, _b;
|
|
185
|
+
return __generator(this, function (_c) {
|
|
186
|
+
switch (_c.label) {
|
|
187
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
188
|
+
case 1:
|
|
189
|
+
res = _c.sent();
|
|
190
|
+
if (res.error) {
|
|
191
|
+
throw new Error("error fetching Borrow object at id ".concat(id, ": ").concat(res.error.code));
|
|
192
|
+
}
|
|
193
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isBorrow(res.data.bcs.type)) {
|
|
194
|
+
throw new Error("object at id ".concat(id, " is not a Borrow object"));
|
|
195
|
+
}
|
|
196
|
+
return [2 /*return*/, Borrow.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
Borrow.$typeName = "0x2::kiosk::Borrow";
|
|
202
|
+
Borrow.$numTypeParams = 0;
|
|
203
|
+
return Borrow;
|
|
204
|
+
}());
|
|
205
|
+
exports.Borrow = Borrow;
|
|
206
|
+
/* ============================== Item =============================== */
|
|
207
|
+
function isItem(type) { type = (0, util_1.compressSuiType)(type); return type === "0x2::kiosk::Item"; }
|
|
208
|
+
var Item = /** @class */ (function () {
|
|
209
|
+
function Item(typeArgs, fields) {
|
|
210
|
+
this.$typeName = Item.$typeName;
|
|
211
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Item.$typeName], __read(typeArgs), false));
|
|
212
|
+
this.$typeArgs = typeArgs;
|
|
213
|
+
this.id = fields.id;
|
|
214
|
+
}
|
|
215
|
+
Item.reified = function () {
|
|
216
|
+
var _this = this;
|
|
217
|
+
return { typeName: Item.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Item.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Item.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Item.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Item.fromBcs(data); }, bcs: Item.bcs, fromJSONField: function (field) { return Item.fromJSONField(field); }, fromJSON: function (json) { return Item.fromJSON(json); }, fromSuiParsedData: function (content) { return Item.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
218
|
+
return [2 /*return*/, Item.fetch(client, id)];
|
|
219
|
+
}); }); }, new: function (fields) { return new Item([], fields); }, kind: "StructClassReified", };
|
|
220
|
+
};
|
|
221
|
+
Object.defineProperty(Item, "r", {
|
|
222
|
+
get: function () { return Item.reified(); },
|
|
223
|
+
enumerable: false,
|
|
224
|
+
configurable: true
|
|
225
|
+
});
|
|
226
|
+
Item.phantom = function () { return (0, reified_1.phantom)(Item.reified()); };
|
|
227
|
+
Object.defineProperty(Item, "p", {
|
|
228
|
+
get: function () { return Item.phantom(); },
|
|
229
|
+
enumerable: false,
|
|
230
|
+
configurable: true
|
|
231
|
+
});
|
|
232
|
+
Object.defineProperty(Item, "bcs", {
|
|
233
|
+
get: function () {
|
|
234
|
+
return bcs_1.bcs.struct("Item", {
|
|
235
|
+
id: structs_2.ID.bcs
|
|
236
|
+
});
|
|
237
|
+
},
|
|
238
|
+
enumerable: false,
|
|
239
|
+
configurable: true
|
|
240
|
+
});
|
|
241
|
+
;
|
|
242
|
+
Item.fromFields = function (fields) { return Item.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id) }); };
|
|
243
|
+
Item.fromFieldsWithTypes = function (item) {
|
|
244
|
+
if (!isItem(item.type)) {
|
|
245
|
+
throw new Error("not a Item type");
|
|
246
|
+
}
|
|
247
|
+
return Item.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id) });
|
|
248
|
+
};
|
|
249
|
+
Item.fromBcs = function (data) { return Item.fromFields(Item.bcs.parse(data)); };
|
|
250
|
+
Item.prototype.toJSONField = function () {
|
|
251
|
+
return {
|
|
252
|
+
id: this.id,
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
Item.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
256
|
+
Item.fromJSONField = function (field) { return Item.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id) }); };
|
|
257
|
+
Item.fromJSON = function (json) {
|
|
258
|
+
if (json.$typeName !== Item.$typeName) {
|
|
259
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
260
|
+
}
|
|
261
|
+
;
|
|
262
|
+
return Item.fromJSONField(json);
|
|
263
|
+
};
|
|
264
|
+
Item.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
265
|
+
throw new Error("not an object");
|
|
266
|
+
} if (!isItem(content.type)) {
|
|
267
|
+
throw new Error("object at ".concat(content.fields.id, " is not a Item object"));
|
|
268
|
+
} return Item.fromFieldsWithTypes(content); };
|
|
269
|
+
Item.fetch = function (client, id) {
|
|
270
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
271
|
+
var res;
|
|
272
|
+
var _a, _b;
|
|
273
|
+
return __generator(this, function (_c) {
|
|
274
|
+
switch (_c.label) {
|
|
275
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
276
|
+
case 1:
|
|
277
|
+
res = _c.sent();
|
|
278
|
+
if (res.error) {
|
|
279
|
+
throw new Error("error fetching Item object at id ".concat(id, ": ").concat(res.error.code));
|
|
280
|
+
}
|
|
281
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isItem(res.data.bcs.type)) {
|
|
282
|
+
throw new Error("object at id ".concat(id, " is not a Item object"));
|
|
283
|
+
}
|
|
284
|
+
return [2 /*return*/, Item.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
};
|
|
289
|
+
Item.$typeName = "0x2::kiosk::Item";
|
|
290
|
+
Item.$numTypeParams = 0;
|
|
291
|
+
return Item;
|
|
292
|
+
}());
|
|
293
|
+
exports.Item = Item;
|
|
294
|
+
/* ============================== ItemDelisted =============================== */
|
|
295
|
+
function isItemDelisted(type) { type = (0, util_1.compressSuiType)(type); return type.startsWith("0x2::kiosk::ItemDelisted<"); }
|
|
296
|
+
var ItemDelisted = /** @class */ (function () {
|
|
297
|
+
function ItemDelisted(typeArgs, fields) {
|
|
298
|
+
this.$typeName = ItemDelisted.$typeName;
|
|
299
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ItemDelisted.$typeName], __read(typeArgs), false));
|
|
300
|
+
this.$typeArgs = typeArgs;
|
|
301
|
+
this.kiosk = fields.kiosk;
|
|
302
|
+
;
|
|
303
|
+
this.id = fields.id;
|
|
304
|
+
}
|
|
305
|
+
ItemDelisted.reified = function (T) {
|
|
306
|
+
var _this = this;
|
|
307
|
+
return { typeName: ItemDelisted.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ItemDelisted.$typeName], [(0, reified_1.extractType)(T)], false)), typeArgs: [(0, reified_1.extractType)(T)], reifiedTypeArgs: [T], fromFields: function (fields) { return ItemDelisted.fromFields(T, fields); }, fromFieldsWithTypes: function (item) { return ItemDelisted.fromFieldsWithTypes(T, item); }, fromBcs: function (data) { return ItemDelisted.fromBcs(T, data); }, bcs: ItemDelisted.bcs, fromJSONField: function (field) { return ItemDelisted.fromJSONField(T, field); }, fromJSON: function (json) { return ItemDelisted.fromJSON(T, json); }, fromSuiParsedData: function (content) { return ItemDelisted.fromSuiParsedData(T, content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
308
|
+
return [2 /*return*/, ItemDelisted.fetch(client, T, id)];
|
|
309
|
+
}); }); }, new: function (fields) { return new ItemDelisted([(0, reified_1.extractType)(T)], fields); }, kind: "StructClassReified", };
|
|
310
|
+
};
|
|
311
|
+
Object.defineProperty(ItemDelisted, "r", {
|
|
312
|
+
get: function () { return ItemDelisted.reified; },
|
|
313
|
+
enumerable: false,
|
|
314
|
+
configurable: true
|
|
315
|
+
});
|
|
316
|
+
ItemDelisted.phantom = function (T) { return (0, reified_1.phantom)(ItemDelisted.reified(T)); };
|
|
317
|
+
Object.defineProperty(ItemDelisted, "p", {
|
|
318
|
+
get: function () { return ItemDelisted.phantom; },
|
|
319
|
+
enumerable: false,
|
|
320
|
+
configurable: true
|
|
321
|
+
});
|
|
322
|
+
Object.defineProperty(ItemDelisted, "bcs", {
|
|
323
|
+
get: function () {
|
|
324
|
+
return bcs_1.bcs.struct("ItemDelisted", {
|
|
325
|
+
kiosk: structs_2.ID.bcs, id: structs_2.ID.bcs
|
|
326
|
+
});
|
|
327
|
+
},
|
|
328
|
+
enumerable: false,
|
|
329
|
+
configurable: true
|
|
330
|
+
});
|
|
331
|
+
;
|
|
332
|
+
ItemDelisted.fromFields = function (typeArg, fields) { return ItemDelisted.reified(typeArg).new({ kiosk: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.kiosk), id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id) }); };
|
|
333
|
+
ItemDelisted.fromFieldsWithTypes = function (typeArg, item) {
|
|
334
|
+
if (!isItemDelisted(item.type)) {
|
|
335
|
+
throw new Error("not a ItemDelisted type");
|
|
336
|
+
}
|
|
337
|
+
(0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
|
|
338
|
+
return ItemDelisted.reified(typeArg).new({ kiosk: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.kiosk), id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id) });
|
|
339
|
+
};
|
|
340
|
+
ItemDelisted.fromBcs = function (typeArg, data) { return ItemDelisted.fromFields(typeArg, ItemDelisted.bcs.parse(data)); };
|
|
341
|
+
ItemDelisted.prototype.toJSONField = function () {
|
|
342
|
+
return {
|
|
343
|
+
kiosk: this.kiosk, id: this.id,
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
ItemDelisted.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
347
|
+
ItemDelisted.fromJSONField = function (typeArg, field) { return ItemDelisted.reified(typeArg).new({ kiosk: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.kiosk), id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id) }); };
|
|
348
|
+
ItemDelisted.fromJSON = function (typeArg, json) {
|
|
349
|
+
if (json.$typeName !== ItemDelisted.$typeName) {
|
|
350
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
351
|
+
}
|
|
352
|
+
;
|
|
353
|
+
(0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(ItemDelisted.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
|
|
354
|
+
return ItemDelisted.fromJSONField(typeArg, json);
|
|
355
|
+
};
|
|
356
|
+
ItemDelisted.fromSuiParsedData = function (typeArg, content) { if (content.dataType !== "moveObject") {
|
|
357
|
+
throw new Error("not an object");
|
|
358
|
+
} if (!isItemDelisted(content.type)) {
|
|
359
|
+
throw new Error("object at ".concat(content.fields.id, " is not a ItemDelisted object"));
|
|
360
|
+
} return ItemDelisted.fromFieldsWithTypes(typeArg, content); };
|
|
361
|
+
ItemDelisted.fetch = function (client, typeArg, id) {
|
|
362
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
363
|
+
var res;
|
|
364
|
+
var _a, _b;
|
|
365
|
+
return __generator(this, function (_c) {
|
|
366
|
+
switch (_c.label) {
|
|
367
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
368
|
+
case 1:
|
|
369
|
+
res = _c.sent();
|
|
370
|
+
if (res.error) {
|
|
371
|
+
throw new Error("error fetching ItemDelisted object at id ".concat(id, ": ").concat(res.error.code));
|
|
372
|
+
}
|
|
373
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isItemDelisted(res.data.bcs.type)) {
|
|
374
|
+
throw new Error("object at id ".concat(id, " is not a ItemDelisted object"));
|
|
375
|
+
}
|
|
376
|
+
return [2 /*return*/, ItemDelisted.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
});
|
|
380
|
+
};
|
|
381
|
+
ItemDelisted.$typeName = "0x2::kiosk::ItemDelisted";
|
|
382
|
+
ItemDelisted.$numTypeParams = 1;
|
|
383
|
+
return ItemDelisted;
|
|
384
|
+
}());
|
|
385
|
+
exports.ItemDelisted = ItemDelisted;
|
|
386
|
+
/* ============================== ItemListed =============================== */
|
|
387
|
+
function isItemListed(type) { type = (0, util_1.compressSuiType)(type); return type.startsWith("0x2::kiosk::ItemListed<"); }
|
|
388
|
+
var ItemListed = /** @class */ (function () {
|
|
389
|
+
function ItemListed(typeArgs, fields) {
|
|
390
|
+
this.$typeName = ItemListed.$typeName;
|
|
391
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ItemListed.$typeName], __read(typeArgs), false));
|
|
392
|
+
this.$typeArgs = typeArgs;
|
|
393
|
+
this.kiosk = fields.kiosk;
|
|
394
|
+
;
|
|
395
|
+
this.id = fields.id;
|
|
396
|
+
;
|
|
397
|
+
this.price = fields.price;
|
|
398
|
+
}
|
|
399
|
+
ItemListed.reified = function (T) {
|
|
400
|
+
var _this = this;
|
|
401
|
+
return { typeName: ItemListed.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ItemListed.$typeName], [(0, reified_1.extractType)(T)], false)), typeArgs: [(0, reified_1.extractType)(T)], reifiedTypeArgs: [T], fromFields: function (fields) { return ItemListed.fromFields(T, fields); }, fromFieldsWithTypes: function (item) { return ItemListed.fromFieldsWithTypes(T, item); }, fromBcs: function (data) { return ItemListed.fromBcs(T, data); }, bcs: ItemListed.bcs, fromJSONField: function (field) { return ItemListed.fromJSONField(T, field); }, fromJSON: function (json) { return ItemListed.fromJSON(T, json); }, fromSuiParsedData: function (content) { return ItemListed.fromSuiParsedData(T, content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
402
|
+
return [2 /*return*/, ItemListed.fetch(client, T, id)];
|
|
403
|
+
}); }); }, new: function (fields) { return new ItemListed([(0, reified_1.extractType)(T)], fields); }, kind: "StructClassReified", };
|
|
404
|
+
};
|
|
405
|
+
Object.defineProperty(ItemListed, "r", {
|
|
406
|
+
get: function () { return ItemListed.reified; },
|
|
407
|
+
enumerable: false,
|
|
408
|
+
configurable: true
|
|
409
|
+
});
|
|
410
|
+
ItemListed.phantom = function (T) { return (0, reified_1.phantom)(ItemListed.reified(T)); };
|
|
411
|
+
Object.defineProperty(ItemListed, "p", {
|
|
412
|
+
get: function () { return ItemListed.phantom; },
|
|
413
|
+
enumerable: false,
|
|
414
|
+
configurable: true
|
|
415
|
+
});
|
|
416
|
+
Object.defineProperty(ItemListed, "bcs", {
|
|
417
|
+
get: function () {
|
|
418
|
+
return bcs_1.bcs.struct("ItemListed", {
|
|
419
|
+
kiosk: structs_2.ID.bcs, id: structs_2.ID.bcs, price: bcs_1.bcs.u64()
|
|
420
|
+
});
|
|
421
|
+
},
|
|
422
|
+
enumerable: false,
|
|
423
|
+
configurable: true
|
|
424
|
+
});
|
|
425
|
+
;
|
|
426
|
+
ItemListed.fromFields = function (typeArg, fields) { return ItemListed.reified(typeArg).new({ kiosk: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.kiosk), id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id), price: (0, reified_1.decodeFromFields)("u64", fields.price) }); };
|
|
427
|
+
ItemListed.fromFieldsWithTypes = function (typeArg, item) {
|
|
428
|
+
if (!isItemListed(item.type)) {
|
|
429
|
+
throw new Error("not a ItemListed type");
|
|
430
|
+
}
|
|
431
|
+
(0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
|
|
432
|
+
return ItemListed.reified(typeArg).new({ kiosk: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.kiosk), id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id), price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price) });
|
|
433
|
+
};
|
|
434
|
+
ItemListed.fromBcs = function (typeArg, data) { return ItemListed.fromFields(typeArg, ItemListed.bcs.parse(data)); };
|
|
435
|
+
ItemListed.prototype.toJSONField = function () {
|
|
436
|
+
return {
|
|
437
|
+
kiosk: this.kiosk, id: this.id, price: this.price.toString(),
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
ItemListed.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
441
|
+
ItemListed.fromJSONField = function (typeArg, field) { return ItemListed.reified(typeArg).new({ kiosk: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.kiosk), id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id), price: (0, reified_1.decodeFromJSONField)("u64", field.price) }); };
|
|
442
|
+
ItemListed.fromJSON = function (typeArg, json) {
|
|
443
|
+
if (json.$typeName !== ItemListed.$typeName) {
|
|
444
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
445
|
+
}
|
|
446
|
+
;
|
|
447
|
+
(0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(ItemListed.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
|
|
448
|
+
return ItemListed.fromJSONField(typeArg, json);
|
|
449
|
+
};
|
|
450
|
+
ItemListed.fromSuiParsedData = function (typeArg, content) { if (content.dataType !== "moveObject") {
|
|
451
|
+
throw new Error("not an object");
|
|
452
|
+
} if (!isItemListed(content.type)) {
|
|
453
|
+
throw new Error("object at ".concat(content.fields.id, " is not a ItemListed object"));
|
|
454
|
+
} return ItemListed.fromFieldsWithTypes(typeArg, content); };
|
|
455
|
+
ItemListed.fetch = function (client, typeArg, id) {
|
|
456
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
457
|
+
var res;
|
|
458
|
+
var _a, _b;
|
|
459
|
+
return __generator(this, function (_c) {
|
|
460
|
+
switch (_c.label) {
|
|
461
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
462
|
+
case 1:
|
|
463
|
+
res = _c.sent();
|
|
464
|
+
if (res.error) {
|
|
465
|
+
throw new Error("error fetching ItemListed object at id ".concat(id, ": ").concat(res.error.code));
|
|
466
|
+
}
|
|
467
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isItemListed(res.data.bcs.type)) {
|
|
468
|
+
throw new Error("object at id ".concat(id, " is not a ItemListed object"));
|
|
469
|
+
}
|
|
470
|
+
return [2 /*return*/, ItemListed.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
});
|
|
474
|
+
};
|
|
475
|
+
ItemListed.$typeName = "0x2::kiosk::ItemListed";
|
|
476
|
+
ItemListed.$numTypeParams = 1;
|
|
477
|
+
return ItemListed;
|
|
478
|
+
}());
|
|
479
|
+
exports.ItemListed = ItemListed;
|
|
480
|
+
/* ============================== ItemPurchased =============================== */
|
|
481
|
+
function isItemPurchased(type) { type = (0, util_1.compressSuiType)(type); return type.startsWith("0x2::kiosk::ItemPurchased<"); }
|
|
482
|
+
var ItemPurchased = /** @class */ (function () {
|
|
483
|
+
function ItemPurchased(typeArgs, fields) {
|
|
484
|
+
this.$typeName = ItemPurchased.$typeName;
|
|
485
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ItemPurchased.$typeName], __read(typeArgs), false));
|
|
486
|
+
this.$typeArgs = typeArgs;
|
|
487
|
+
this.kiosk = fields.kiosk;
|
|
488
|
+
;
|
|
489
|
+
this.id = fields.id;
|
|
490
|
+
;
|
|
491
|
+
this.price = fields.price;
|
|
492
|
+
}
|
|
493
|
+
ItemPurchased.reified = function (T) {
|
|
494
|
+
var _this = this;
|
|
495
|
+
return { typeName: ItemPurchased.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ItemPurchased.$typeName], [(0, reified_1.extractType)(T)], false)), typeArgs: [(0, reified_1.extractType)(T)], reifiedTypeArgs: [T], fromFields: function (fields) { return ItemPurchased.fromFields(T, fields); }, fromFieldsWithTypes: function (item) { return ItemPurchased.fromFieldsWithTypes(T, item); }, fromBcs: function (data) { return ItemPurchased.fromBcs(T, data); }, bcs: ItemPurchased.bcs, fromJSONField: function (field) { return ItemPurchased.fromJSONField(T, field); }, fromJSON: function (json) { return ItemPurchased.fromJSON(T, json); }, fromSuiParsedData: function (content) { return ItemPurchased.fromSuiParsedData(T, content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
496
|
+
return [2 /*return*/, ItemPurchased.fetch(client, T, id)];
|
|
497
|
+
}); }); }, new: function (fields) { return new ItemPurchased([(0, reified_1.extractType)(T)], fields); }, kind: "StructClassReified", };
|
|
498
|
+
};
|
|
499
|
+
Object.defineProperty(ItemPurchased, "r", {
|
|
500
|
+
get: function () { return ItemPurchased.reified; },
|
|
501
|
+
enumerable: false,
|
|
502
|
+
configurable: true
|
|
503
|
+
});
|
|
504
|
+
ItemPurchased.phantom = function (T) { return (0, reified_1.phantom)(ItemPurchased.reified(T)); };
|
|
505
|
+
Object.defineProperty(ItemPurchased, "p", {
|
|
506
|
+
get: function () { return ItemPurchased.phantom; },
|
|
507
|
+
enumerable: false,
|
|
508
|
+
configurable: true
|
|
509
|
+
});
|
|
510
|
+
Object.defineProperty(ItemPurchased, "bcs", {
|
|
511
|
+
get: function () {
|
|
512
|
+
return bcs_1.bcs.struct("ItemPurchased", {
|
|
513
|
+
kiosk: structs_2.ID.bcs, id: structs_2.ID.bcs, price: bcs_1.bcs.u64()
|
|
514
|
+
});
|
|
515
|
+
},
|
|
516
|
+
enumerable: false,
|
|
517
|
+
configurable: true
|
|
518
|
+
});
|
|
519
|
+
;
|
|
520
|
+
ItemPurchased.fromFields = function (typeArg, fields) { return ItemPurchased.reified(typeArg).new({ kiosk: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.kiosk), id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id), price: (0, reified_1.decodeFromFields)("u64", fields.price) }); };
|
|
521
|
+
ItemPurchased.fromFieldsWithTypes = function (typeArg, item) {
|
|
522
|
+
if (!isItemPurchased(item.type)) {
|
|
523
|
+
throw new Error("not a ItemPurchased type");
|
|
524
|
+
}
|
|
525
|
+
(0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
|
|
526
|
+
return ItemPurchased.reified(typeArg).new({ kiosk: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.kiosk), id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id), price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price) });
|
|
527
|
+
};
|
|
528
|
+
ItemPurchased.fromBcs = function (typeArg, data) { return ItemPurchased.fromFields(typeArg, ItemPurchased.bcs.parse(data)); };
|
|
529
|
+
ItemPurchased.prototype.toJSONField = function () {
|
|
530
|
+
return {
|
|
531
|
+
kiosk: this.kiosk, id: this.id, price: this.price.toString(),
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
ItemPurchased.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
535
|
+
ItemPurchased.fromJSONField = function (typeArg, field) { return ItemPurchased.reified(typeArg).new({ kiosk: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.kiosk), id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id), price: (0, reified_1.decodeFromJSONField)("u64", field.price) }); };
|
|
536
|
+
ItemPurchased.fromJSON = function (typeArg, json) {
|
|
537
|
+
if (json.$typeName !== ItemPurchased.$typeName) {
|
|
538
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
539
|
+
}
|
|
540
|
+
;
|
|
541
|
+
(0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(ItemPurchased.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
|
|
542
|
+
return ItemPurchased.fromJSONField(typeArg, json);
|
|
543
|
+
};
|
|
544
|
+
ItemPurchased.fromSuiParsedData = function (typeArg, content) { if (content.dataType !== "moveObject") {
|
|
545
|
+
throw new Error("not an object");
|
|
546
|
+
} if (!isItemPurchased(content.type)) {
|
|
547
|
+
throw new Error("object at ".concat(content.fields.id, " is not a ItemPurchased object"));
|
|
548
|
+
} return ItemPurchased.fromFieldsWithTypes(typeArg, content); };
|
|
549
|
+
ItemPurchased.fetch = function (client, typeArg, id) {
|
|
550
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
551
|
+
var res;
|
|
552
|
+
var _a, _b;
|
|
553
|
+
return __generator(this, function (_c) {
|
|
554
|
+
switch (_c.label) {
|
|
555
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
556
|
+
case 1:
|
|
557
|
+
res = _c.sent();
|
|
558
|
+
if (res.error) {
|
|
559
|
+
throw new Error("error fetching ItemPurchased object at id ".concat(id, ": ").concat(res.error.code));
|
|
560
|
+
}
|
|
561
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isItemPurchased(res.data.bcs.type)) {
|
|
562
|
+
throw new Error("object at id ".concat(id, " is not a ItemPurchased object"));
|
|
563
|
+
}
|
|
564
|
+
return [2 /*return*/, ItemPurchased.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
565
|
+
}
|
|
566
|
+
});
|
|
567
|
+
});
|
|
568
|
+
};
|
|
569
|
+
ItemPurchased.$typeName = "0x2::kiosk::ItemPurchased";
|
|
570
|
+
ItemPurchased.$numTypeParams = 1;
|
|
571
|
+
return ItemPurchased;
|
|
572
|
+
}());
|
|
573
|
+
exports.ItemPurchased = ItemPurchased;
|
|
574
|
+
/* ============================== Kiosk =============================== */
|
|
575
|
+
function isKiosk(type) { type = (0, util_1.compressSuiType)(type); return type === "0x2::kiosk::Kiosk"; }
|
|
576
|
+
var Kiosk = /** @class */ (function () {
|
|
577
|
+
function Kiosk(typeArgs, fields) {
|
|
578
|
+
this.$typeName = Kiosk.$typeName;
|
|
579
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Kiosk.$typeName], __read(typeArgs), false));
|
|
580
|
+
this.$typeArgs = typeArgs;
|
|
581
|
+
this.id = fields.id;
|
|
582
|
+
;
|
|
583
|
+
this.profits = fields.profits;
|
|
584
|
+
;
|
|
585
|
+
this.owner = fields.owner;
|
|
586
|
+
;
|
|
587
|
+
this.itemCount = fields.itemCount;
|
|
588
|
+
;
|
|
589
|
+
this.allowExtensions = fields.allowExtensions;
|
|
590
|
+
}
|
|
591
|
+
Kiosk.reified = function () {
|
|
592
|
+
var _this = this;
|
|
593
|
+
return { typeName: Kiosk.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Kiosk.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Kiosk.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Kiosk.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Kiosk.fromBcs(data); }, bcs: Kiosk.bcs, fromJSONField: function (field) { return Kiosk.fromJSONField(field); }, fromJSON: function (json) { return Kiosk.fromJSON(json); }, fromSuiParsedData: function (content) { return Kiosk.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
594
|
+
return [2 /*return*/, Kiosk.fetch(client, id)];
|
|
595
|
+
}); }); }, new: function (fields) { return new Kiosk([], fields); }, kind: "StructClassReified", };
|
|
596
|
+
};
|
|
597
|
+
Object.defineProperty(Kiosk, "r", {
|
|
598
|
+
get: function () { return Kiosk.reified(); },
|
|
599
|
+
enumerable: false,
|
|
600
|
+
configurable: true
|
|
601
|
+
});
|
|
602
|
+
Kiosk.phantom = function () { return (0, reified_1.phantom)(Kiosk.reified()); };
|
|
603
|
+
Object.defineProperty(Kiosk, "p", {
|
|
604
|
+
get: function () { return Kiosk.phantom(); },
|
|
605
|
+
enumerable: false,
|
|
606
|
+
configurable: true
|
|
607
|
+
});
|
|
608
|
+
Object.defineProperty(Kiosk, "bcs", {
|
|
609
|
+
get: function () {
|
|
610
|
+
return bcs_1.bcs.struct("Kiosk", {
|
|
611
|
+
id: structs_2.UID.bcs, profits: structs_1.Balance.bcs, owner: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), item_count: bcs_1.bcs.u32(), allow_extensions: bcs_1.bcs.bool()
|
|
612
|
+
});
|
|
613
|
+
},
|
|
614
|
+
enumerable: false,
|
|
615
|
+
configurable: true
|
|
616
|
+
});
|
|
617
|
+
;
|
|
618
|
+
Kiosk.fromFields = function (fields) { return Kiosk.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id), profits: (0, reified_1.decodeFromFields)(structs_1.Balance.reified(reified.phantom(structs_3.SUI.reified())), fields.profits), owner: (0, reified_1.decodeFromFields)("address", fields.owner), itemCount: (0, reified_1.decodeFromFields)("u32", fields.item_count), allowExtensions: (0, reified_1.decodeFromFields)("bool", fields.allow_extensions) }); };
|
|
619
|
+
Kiosk.fromFieldsWithTypes = function (item) {
|
|
620
|
+
if (!isKiosk(item.type)) {
|
|
621
|
+
throw new Error("not a Kiosk type");
|
|
622
|
+
}
|
|
623
|
+
return Kiosk.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id), profits: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.Balance.reified(reified.phantom(structs_3.SUI.reified())), item.fields.profits), owner: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.owner), itemCount: (0, reified_1.decodeFromFieldsWithTypes)("u32", item.fields.item_count), allowExtensions: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.allow_extensions) });
|
|
624
|
+
};
|
|
625
|
+
Kiosk.fromBcs = function (data) { return Kiosk.fromFields(Kiosk.bcs.parse(data)); };
|
|
626
|
+
Kiosk.prototype.toJSONField = function () {
|
|
627
|
+
return {
|
|
628
|
+
id: this.id, profits: this.profits.toJSONField(), owner: this.owner, itemCount: this.itemCount, allowExtensions: this.allowExtensions,
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
Kiosk.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
632
|
+
Kiosk.fromJSONField = function (field) { return Kiosk.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id), profits: (0, reified_1.decodeFromJSONField)(structs_1.Balance.reified(reified.phantom(structs_3.SUI.reified())), field.profits), owner: (0, reified_1.decodeFromJSONField)("address", field.owner), itemCount: (0, reified_1.decodeFromJSONField)("u32", field.itemCount), allowExtensions: (0, reified_1.decodeFromJSONField)("bool", field.allowExtensions) }); };
|
|
633
|
+
Kiosk.fromJSON = function (json) {
|
|
634
|
+
if (json.$typeName !== Kiosk.$typeName) {
|
|
635
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
636
|
+
}
|
|
637
|
+
;
|
|
638
|
+
return Kiosk.fromJSONField(json);
|
|
639
|
+
};
|
|
640
|
+
Kiosk.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
641
|
+
throw new Error("not an object");
|
|
642
|
+
} if (!isKiosk(content.type)) {
|
|
643
|
+
throw new Error("object at ".concat(content.fields.id, " is not a Kiosk object"));
|
|
644
|
+
} return Kiosk.fromFieldsWithTypes(content); };
|
|
645
|
+
Kiosk.fetch = function (client, id) {
|
|
646
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
647
|
+
var res;
|
|
648
|
+
var _a, _b;
|
|
649
|
+
return __generator(this, function (_c) {
|
|
650
|
+
switch (_c.label) {
|
|
651
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
652
|
+
case 1:
|
|
653
|
+
res = _c.sent();
|
|
654
|
+
if (res.error) {
|
|
655
|
+
throw new Error("error fetching Kiosk object at id ".concat(id, ": ").concat(res.error.code));
|
|
656
|
+
}
|
|
657
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isKiosk(res.data.bcs.type)) {
|
|
658
|
+
throw new Error("object at id ".concat(id, " is not a Kiosk object"));
|
|
659
|
+
}
|
|
660
|
+
return [2 /*return*/, Kiosk.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
661
|
+
}
|
|
662
|
+
});
|
|
663
|
+
});
|
|
664
|
+
};
|
|
665
|
+
Kiosk.$typeName = "0x2::kiosk::Kiosk";
|
|
666
|
+
Kiosk.$numTypeParams = 0;
|
|
667
|
+
return Kiosk;
|
|
668
|
+
}());
|
|
669
|
+
exports.Kiosk = Kiosk;
|
|
670
|
+
/* ============================== KioskOwnerCap =============================== */
|
|
671
|
+
function isKioskOwnerCap(type) { type = (0, util_1.compressSuiType)(type); return type === "0x2::kiosk::KioskOwnerCap"; }
|
|
672
|
+
var KioskOwnerCap = /** @class */ (function () {
|
|
673
|
+
function KioskOwnerCap(typeArgs, fields) {
|
|
674
|
+
this.$typeName = KioskOwnerCap.$typeName;
|
|
675
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([KioskOwnerCap.$typeName], __read(typeArgs), false));
|
|
676
|
+
this.$typeArgs = typeArgs;
|
|
677
|
+
this.id = fields.id;
|
|
678
|
+
;
|
|
679
|
+
this.for = fields.for;
|
|
680
|
+
}
|
|
681
|
+
KioskOwnerCap.reified = function () {
|
|
682
|
+
var _this = this;
|
|
683
|
+
return { typeName: KioskOwnerCap.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([KioskOwnerCap.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return KioskOwnerCap.fromFields(fields); }, fromFieldsWithTypes: function (item) { return KioskOwnerCap.fromFieldsWithTypes(item); }, fromBcs: function (data) { return KioskOwnerCap.fromBcs(data); }, bcs: KioskOwnerCap.bcs, fromJSONField: function (field) { return KioskOwnerCap.fromJSONField(field); }, fromJSON: function (json) { return KioskOwnerCap.fromJSON(json); }, fromSuiParsedData: function (content) { return KioskOwnerCap.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
684
|
+
return [2 /*return*/, KioskOwnerCap.fetch(client, id)];
|
|
685
|
+
}); }); }, new: function (fields) { return new KioskOwnerCap([], fields); }, kind: "StructClassReified", };
|
|
686
|
+
};
|
|
687
|
+
Object.defineProperty(KioskOwnerCap, "r", {
|
|
688
|
+
get: function () { return KioskOwnerCap.reified(); },
|
|
689
|
+
enumerable: false,
|
|
690
|
+
configurable: true
|
|
691
|
+
});
|
|
692
|
+
KioskOwnerCap.phantom = function () { return (0, reified_1.phantom)(KioskOwnerCap.reified()); };
|
|
693
|
+
Object.defineProperty(KioskOwnerCap, "p", {
|
|
694
|
+
get: function () { return KioskOwnerCap.phantom(); },
|
|
695
|
+
enumerable: false,
|
|
696
|
+
configurable: true
|
|
697
|
+
});
|
|
698
|
+
Object.defineProperty(KioskOwnerCap, "bcs", {
|
|
699
|
+
get: function () {
|
|
700
|
+
return bcs_1.bcs.struct("KioskOwnerCap", {
|
|
701
|
+
id: structs_2.UID.bcs, for: structs_2.ID.bcs
|
|
702
|
+
});
|
|
703
|
+
},
|
|
704
|
+
enumerable: false,
|
|
705
|
+
configurable: true
|
|
706
|
+
});
|
|
707
|
+
;
|
|
708
|
+
KioskOwnerCap.fromFields = function (fields) { return KioskOwnerCap.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id), for: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.for) }); };
|
|
709
|
+
KioskOwnerCap.fromFieldsWithTypes = function (item) {
|
|
710
|
+
if (!isKioskOwnerCap(item.type)) {
|
|
711
|
+
throw new Error("not a KioskOwnerCap type");
|
|
712
|
+
}
|
|
713
|
+
return KioskOwnerCap.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) });
|
|
714
|
+
};
|
|
715
|
+
KioskOwnerCap.fromBcs = function (data) { return KioskOwnerCap.fromFields(KioskOwnerCap.bcs.parse(data)); };
|
|
716
|
+
KioskOwnerCap.prototype.toJSONField = function () {
|
|
717
|
+
return {
|
|
718
|
+
id: this.id, for: this.for,
|
|
719
|
+
};
|
|
720
|
+
};
|
|
721
|
+
KioskOwnerCap.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
722
|
+
KioskOwnerCap.fromJSONField = function (field) { return KioskOwnerCap.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id), for: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.for) }); };
|
|
723
|
+
KioskOwnerCap.fromJSON = function (json) {
|
|
724
|
+
if (json.$typeName !== KioskOwnerCap.$typeName) {
|
|
725
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
726
|
+
}
|
|
727
|
+
;
|
|
728
|
+
return KioskOwnerCap.fromJSONField(json);
|
|
729
|
+
};
|
|
730
|
+
KioskOwnerCap.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
731
|
+
throw new Error("not an object");
|
|
732
|
+
} if (!isKioskOwnerCap(content.type)) {
|
|
733
|
+
throw new Error("object at ".concat(content.fields.id, " is not a KioskOwnerCap object"));
|
|
734
|
+
} return KioskOwnerCap.fromFieldsWithTypes(content); };
|
|
735
|
+
KioskOwnerCap.fetch = function (client, id) {
|
|
736
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
737
|
+
var res;
|
|
738
|
+
var _a, _b;
|
|
739
|
+
return __generator(this, function (_c) {
|
|
740
|
+
switch (_c.label) {
|
|
741
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
742
|
+
case 1:
|
|
743
|
+
res = _c.sent();
|
|
744
|
+
if (res.error) {
|
|
745
|
+
throw new Error("error fetching KioskOwnerCap object at id ".concat(id, ": ").concat(res.error.code));
|
|
746
|
+
}
|
|
747
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isKioskOwnerCap(res.data.bcs.type)) {
|
|
748
|
+
throw new Error("object at id ".concat(id, " is not a KioskOwnerCap object"));
|
|
749
|
+
}
|
|
750
|
+
return [2 /*return*/, KioskOwnerCap.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
751
|
+
}
|
|
752
|
+
});
|
|
753
|
+
});
|
|
754
|
+
};
|
|
755
|
+
KioskOwnerCap.$typeName = "0x2::kiosk::KioskOwnerCap";
|
|
756
|
+
KioskOwnerCap.$numTypeParams = 0;
|
|
757
|
+
return KioskOwnerCap;
|
|
758
|
+
}());
|
|
759
|
+
exports.KioskOwnerCap = KioskOwnerCap;
|
|
760
|
+
/* ============================== Listing =============================== */
|
|
761
|
+
function isListing(type) { type = (0, util_1.compressSuiType)(type); return type === "0x2::kiosk::Listing"; }
|
|
762
|
+
var Listing = /** @class */ (function () {
|
|
763
|
+
function Listing(typeArgs, fields) {
|
|
764
|
+
this.$typeName = Listing.$typeName;
|
|
765
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Listing.$typeName], __read(typeArgs), false));
|
|
766
|
+
this.$typeArgs = typeArgs;
|
|
767
|
+
this.id = fields.id;
|
|
768
|
+
;
|
|
769
|
+
this.isExclusive = fields.isExclusive;
|
|
770
|
+
}
|
|
771
|
+
Listing.reified = function () {
|
|
772
|
+
var _this = this;
|
|
773
|
+
return { typeName: Listing.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Listing.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Listing.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Listing.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Listing.fromBcs(data); }, bcs: Listing.bcs, fromJSONField: function (field) { return Listing.fromJSONField(field); }, fromJSON: function (json) { return Listing.fromJSON(json); }, fromSuiParsedData: function (content) { return Listing.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
774
|
+
return [2 /*return*/, Listing.fetch(client, id)];
|
|
775
|
+
}); }); }, new: function (fields) { return new Listing([], fields); }, kind: "StructClassReified", };
|
|
776
|
+
};
|
|
777
|
+
Object.defineProperty(Listing, "r", {
|
|
778
|
+
get: function () { return Listing.reified(); },
|
|
779
|
+
enumerable: false,
|
|
780
|
+
configurable: true
|
|
781
|
+
});
|
|
782
|
+
Listing.phantom = function () { return (0, reified_1.phantom)(Listing.reified()); };
|
|
783
|
+
Object.defineProperty(Listing, "p", {
|
|
784
|
+
get: function () { return Listing.phantom(); },
|
|
785
|
+
enumerable: false,
|
|
786
|
+
configurable: true
|
|
787
|
+
});
|
|
788
|
+
Object.defineProperty(Listing, "bcs", {
|
|
789
|
+
get: function () {
|
|
790
|
+
return bcs_1.bcs.struct("Listing", {
|
|
791
|
+
id: structs_2.ID.bcs, is_exclusive: bcs_1.bcs.bool()
|
|
792
|
+
});
|
|
793
|
+
},
|
|
794
|
+
enumerable: false,
|
|
795
|
+
configurable: true
|
|
796
|
+
});
|
|
797
|
+
;
|
|
798
|
+
Listing.fromFields = function (fields) { return Listing.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id), isExclusive: (0, reified_1.decodeFromFields)("bool", fields.is_exclusive) }); };
|
|
799
|
+
Listing.fromFieldsWithTypes = function (item) {
|
|
800
|
+
if (!isListing(item.type)) {
|
|
801
|
+
throw new Error("not a Listing type");
|
|
802
|
+
}
|
|
803
|
+
return Listing.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id), isExclusive: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.is_exclusive) });
|
|
804
|
+
};
|
|
805
|
+
Listing.fromBcs = function (data) { return Listing.fromFields(Listing.bcs.parse(data)); };
|
|
806
|
+
Listing.prototype.toJSONField = function () {
|
|
807
|
+
return {
|
|
808
|
+
id: this.id, isExclusive: this.isExclusive,
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
Listing.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
812
|
+
Listing.fromJSONField = function (field) { return Listing.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id), isExclusive: (0, reified_1.decodeFromJSONField)("bool", field.isExclusive) }); };
|
|
813
|
+
Listing.fromJSON = function (json) {
|
|
814
|
+
if (json.$typeName !== Listing.$typeName) {
|
|
815
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
816
|
+
}
|
|
817
|
+
;
|
|
818
|
+
return Listing.fromJSONField(json);
|
|
819
|
+
};
|
|
820
|
+
Listing.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
821
|
+
throw new Error("not an object");
|
|
822
|
+
} if (!isListing(content.type)) {
|
|
823
|
+
throw new Error("object at ".concat(content.fields.id, " is not a Listing object"));
|
|
824
|
+
} return Listing.fromFieldsWithTypes(content); };
|
|
825
|
+
Listing.fetch = function (client, id) {
|
|
826
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
827
|
+
var res;
|
|
828
|
+
var _a, _b;
|
|
829
|
+
return __generator(this, function (_c) {
|
|
830
|
+
switch (_c.label) {
|
|
831
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
832
|
+
case 1:
|
|
833
|
+
res = _c.sent();
|
|
834
|
+
if (res.error) {
|
|
835
|
+
throw new Error("error fetching Listing object at id ".concat(id, ": ").concat(res.error.code));
|
|
836
|
+
}
|
|
837
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isListing(res.data.bcs.type)) {
|
|
838
|
+
throw new Error("object at id ".concat(id, " is not a Listing object"));
|
|
839
|
+
}
|
|
840
|
+
return [2 /*return*/, Listing.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
841
|
+
}
|
|
842
|
+
});
|
|
843
|
+
});
|
|
844
|
+
};
|
|
845
|
+
Listing.$typeName = "0x2::kiosk::Listing";
|
|
846
|
+
Listing.$numTypeParams = 0;
|
|
847
|
+
return Listing;
|
|
848
|
+
}());
|
|
849
|
+
exports.Listing = Listing;
|
|
850
|
+
/* ============================== Lock =============================== */
|
|
851
|
+
function isLock(type) { type = (0, util_1.compressSuiType)(type); return type === "0x2::kiosk::Lock"; }
|
|
852
|
+
var Lock = /** @class */ (function () {
|
|
853
|
+
function Lock(typeArgs, fields) {
|
|
854
|
+
this.$typeName = Lock.$typeName;
|
|
855
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Lock.$typeName], __read(typeArgs), false));
|
|
856
|
+
this.$typeArgs = typeArgs;
|
|
857
|
+
this.id = fields.id;
|
|
858
|
+
}
|
|
859
|
+
Lock.reified = function () {
|
|
860
|
+
var _this = this;
|
|
861
|
+
return { typeName: Lock.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Lock.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Lock.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Lock.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Lock.fromBcs(data); }, bcs: Lock.bcs, fromJSONField: function (field) { return Lock.fromJSONField(field); }, fromJSON: function (json) { return Lock.fromJSON(json); }, fromSuiParsedData: function (content) { return Lock.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
862
|
+
return [2 /*return*/, Lock.fetch(client, id)];
|
|
863
|
+
}); }); }, new: function (fields) { return new Lock([], fields); }, kind: "StructClassReified", };
|
|
864
|
+
};
|
|
865
|
+
Object.defineProperty(Lock, "r", {
|
|
866
|
+
get: function () { return Lock.reified(); },
|
|
867
|
+
enumerable: false,
|
|
868
|
+
configurable: true
|
|
869
|
+
});
|
|
870
|
+
Lock.phantom = function () { return (0, reified_1.phantom)(Lock.reified()); };
|
|
871
|
+
Object.defineProperty(Lock, "p", {
|
|
872
|
+
get: function () { return Lock.phantom(); },
|
|
873
|
+
enumerable: false,
|
|
874
|
+
configurable: true
|
|
875
|
+
});
|
|
876
|
+
Object.defineProperty(Lock, "bcs", {
|
|
877
|
+
get: function () {
|
|
878
|
+
return bcs_1.bcs.struct("Lock", {
|
|
879
|
+
id: structs_2.ID.bcs
|
|
880
|
+
});
|
|
881
|
+
},
|
|
882
|
+
enumerable: false,
|
|
883
|
+
configurable: true
|
|
884
|
+
});
|
|
885
|
+
;
|
|
886
|
+
Lock.fromFields = function (fields) { return Lock.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id) }); };
|
|
887
|
+
Lock.fromFieldsWithTypes = function (item) {
|
|
888
|
+
if (!isLock(item.type)) {
|
|
889
|
+
throw new Error("not a Lock type");
|
|
890
|
+
}
|
|
891
|
+
return Lock.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id) });
|
|
892
|
+
};
|
|
893
|
+
Lock.fromBcs = function (data) { return Lock.fromFields(Lock.bcs.parse(data)); };
|
|
894
|
+
Lock.prototype.toJSONField = function () {
|
|
895
|
+
return {
|
|
896
|
+
id: this.id,
|
|
897
|
+
};
|
|
898
|
+
};
|
|
899
|
+
Lock.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
900
|
+
Lock.fromJSONField = function (field) { return Lock.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id) }); };
|
|
901
|
+
Lock.fromJSON = function (json) {
|
|
902
|
+
if (json.$typeName !== Lock.$typeName) {
|
|
903
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
904
|
+
}
|
|
905
|
+
;
|
|
906
|
+
return Lock.fromJSONField(json);
|
|
907
|
+
};
|
|
908
|
+
Lock.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
909
|
+
throw new Error("not an object");
|
|
910
|
+
} if (!isLock(content.type)) {
|
|
911
|
+
throw new Error("object at ".concat(content.fields.id, " is not a Lock object"));
|
|
912
|
+
} return Lock.fromFieldsWithTypes(content); };
|
|
913
|
+
Lock.fetch = function (client, id) {
|
|
914
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
915
|
+
var res;
|
|
916
|
+
var _a, _b;
|
|
917
|
+
return __generator(this, function (_c) {
|
|
918
|
+
switch (_c.label) {
|
|
919
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
920
|
+
case 1:
|
|
921
|
+
res = _c.sent();
|
|
922
|
+
if (res.error) {
|
|
923
|
+
throw new Error("error fetching Lock object at id ".concat(id, ": ").concat(res.error.code));
|
|
924
|
+
}
|
|
925
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isLock(res.data.bcs.type)) {
|
|
926
|
+
throw new Error("object at id ".concat(id, " is not a Lock object"));
|
|
927
|
+
}
|
|
928
|
+
return [2 /*return*/, Lock.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
929
|
+
}
|
|
930
|
+
});
|
|
931
|
+
});
|
|
932
|
+
};
|
|
933
|
+
Lock.$typeName = "0x2::kiosk::Lock";
|
|
934
|
+
Lock.$numTypeParams = 0;
|
|
935
|
+
return Lock;
|
|
936
|
+
}());
|
|
937
|
+
exports.Lock = Lock;
|
|
938
|
+
/* ============================== PurchaseCap =============================== */
|
|
939
|
+
function isPurchaseCap(type) { type = (0, util_1.compressSuiType)(type); return type.startsWith("0x2::kiosk::PurchaseCap<"); }
|
|
940
|
+
var PurchaseCap = /** @class */ (function () {
|
|
941
|
+
function PurchaseCap(typeArgs, fields) {
|
|
942
|
+
this.$typeName = PurchaseCap.$typeName;
|
|
943
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([PurchaseCap.$typeName], __read(typeArgs), false));
|
|
944
|
+
this.$typeArgs = typeArgs;
|
|
945
|
+
this.id = fields.id;
|
|
946
|
+
;
|
|
947
|
+
this.kioskId = fields.kioskId;
|
|
948
|
+
;
|
|
949
|
+
this.itemId = fields.itemId;
|
|
950
|
+
;
|
|
951
|
+
this.minPrice = fields.minPrice;
|
|
952
|
+
}
|
|
953
|
+
PurchaseCap.reified = function (T) {
|
|
954
|
+
var _this = this;
|
|
955
|
+
return { typeName: PurchaseCap.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([PurchaseCap.$typeName], [(0, reified_1.extractType)(T)], false)), typeArgs: [(0, reified_1.extractType)(T)], reifiedTypeArgs: [T], fromFields: function (fields) { return PurchaseCap.fromFields(T, fields); }, fromFieldsWithTypes: function (item) { return PurchaseCap.fromFieldsWithTypes(T, item); }, fromBcs: function (data) { return PurchaseCap.fromBcs(T, data); }, bcs: PurchaseCap.bcs, fromJSONField: function (field) { return PurchaseCap.fromJSONField(T, field); }, fromJSON: function (json) { return PurchaseCap.fromJSON(T, json); }, fromSuiParsedData: function (content) { return PurchaseCap.fromSuiParsedData(T, content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
956
|
+
return [2 /*return*/, PurchaseCap.fetch(client, T, id)];
|
|
957
|
+
}); }); }, new: function (fields) { return new PurchaseCap([(0, reified_1.extractType)(T)], fields); }, kind: "StructClassReified", };
|
|
958
|
+
};
|
|
959
|
+
Object.defineProperty(PurchaseCap, "r", {
|
|
960
|
+
get: function () { return PurchaseCap.reified; },
|
|
961
|
+
enumerable: false,
|
|
962
|
+
configurable: true
|
|
963
|
+
});
|
|
964
|
+
PurchaseCap.phantom = function (T) { return (0, reified_1.phantom)(PurchaseCap.reified(T)); };
|
|
965
|
+
Object.defineProperty(PurchaseCap, "p", {
|
|
966
|
+
get: function () { return PurchaseCap.phantom; },
|
|
967
|
+
enumerable: false,
|
|
968
|
+
configurable: true
|
|
969
|
+
});
|
|
970
|
+
Object.defineProperty(PurchaseCap, "bcs", {
|
|
971
|
+
get: function () {
|
|
972
|
+
return bcs_1.bcs.struct("PurchaseCap", {
|
|
973
|
+
id: structs_2.UID.bcs, kiosk_id: structs_2.ID.bcs, item_id: structs_2.ID.bcs, min_price: bcs_1.bcs.u64()
|
|
974
|
+
});
|
|
975
|
+
},
|
|
976
|
+
enumerable: false,
|
|
977
|
+
configurable: true
|
|
978
|
+
});
|
|
979
|
+
;
|
|
980
|
+
PurchaseCap.fromFields = function (typeArg, fields) { return PurchaseCap.reified(typeArg).new({ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id), kioskId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.kiosk_id), itemId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.item_id), minPrice: (0, reified_1.decodeFromFields)("u64", fields.min_price) }); };
|
|
981
|
+
PurchaseCap.fromFieldsWithTypes = function (typeArg, item) {
|
|
982
|
+
if (!isPurchaseCap(item.type)) {
|
|
983
|
+
throw new Error("not a PurchaseCap type");
|
|
984
|
+
}
|
|
985
|
+
(0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
|
|
986
|
+
return PurchaseCap.reified(typeArg).new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id), kioskId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.kiosk_id), itemId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.item_id), minPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.min_price) });
|
|
987
|
+
};
|
|
988
|
+
PurchaseCap.fromBcs = function (typeArg, data) { return PurchaseCap.fromFields(typeArg, PurchaseCap.bcs.parse(data)); };
|
|
989
|
+
PurchaseCap.prototype.toJSONField = function () {
|
|
990
|
+
return {
|
|
991
|
+
id: this.id, kioskId: this.kioskId, itemId: this.itemId, minPrice: this.minPrice.toString(),
|
|
992
|
+
};
|
|
993
|
+
};
|
|
994
|
+
PurchaseCap.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
995
|
+
PurchaseCap.fromJSONField = function (typeArg, field) { return PurchaseCap.reified(typeArg).new({ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id), kioskId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.kioskId), itemId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.itemId), minPrice: (0, reified_1.decodeFromJSONField)("u64", field.minPrice) }); };
|
|
996
|
+
PurchaseCap.fromJSON = function (typeArg, json) {
|
|
997
|
+
if (json.$typeName !== PurchaseCap.$typeName) {
|
|
998
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
999
|
+
}
|
|
1000
|
+
;
|
|
1001
|
+
(0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(PurchaseCap.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
|
|
1002
|
+
return PurchaseCap.fromJSONField(typeArg, json);
|
|
1003
|
+
};
|
|
1004
|
+
PurchaseCap.fromSuiParsedData = function (typeArg, content) { if (content.dataType !== "moveObject") {
|
|
1005
|
+
throw new Error("not an object");
|
|
1006
|
+
} if (!isPurchaseCap(content.type)) {
|
|
1007
|
+
throw new Error("object at ".concat(content.fields.id, " is not a PurchaseCap object"));
|
|
1008
|
+
} return PurchaseCap.fromFieldsWithTypes(typeArg, content); };
|
|
1009
|
+
PurchaseCap.fetch = function (client, typeArg, id) {
|
|
1010
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1011
|
+
var res;
|
|
1012
|
+
var _a, _b;
|
|
1013
|
+
return __generator(this, function (_c) {
|
|
1014
|
+
switch (_c.label) {
|
|
1015
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1016
|
+
case 1:
|
|
1017
|
+
res = _c.sent();
|
|
1018
|
+
if (res.error) {
|
|
1019
|
+
throw new Error("error fetching PurchaseCap object at id ".concat(id, ": ").concat(res.error.code));
|
|
1020
|
+
}
|
|
1021
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isPurchaseCap(res.data.bcs.type)) {
|
|
1022
|
+
throw new Error("object at id ".concat(id, " is not a PurchaseCap object"));
|
|
1023
|
+
}
|
|
1024
|
+
return [2 /*return*/, PurchaseCap.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1025
|
+
}
|
|
1026
|
+
});
|
|
1027
|
+
});
|
|
1028
|
+
};
|
|
1029
|
+
PurchaseCap.$typeName = "0x2::kiosk::PurchaseCap";
|
|
1030
|
+
PurchaseCap.$numTypeParams = 1;
|
|
1031
|
+
return PurchaseCap;
|
|
1032
|
+
}());
|
|
1033
|
+
exports.PurchaseCap = PurchaseCap;
|