@typus/typus-sdk 1.4.5 → 1.4.7-a
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 +190 -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/dice/api.d.ts +1 -0
- package/dist/src/dice/api.js +81 -0
- package/dist/src/dice/fetch.d.ts +74 -0
- package/dist/src/dice/fetch.js +301 -0
- package/dist/src/dice/index.d.ts +4 -0
- package/dist/src/dice/index.js +20 -0
- package/dist/src/dice/user-entry.d.ts +70 -0
- package/dist/src/dice/user-entry.js +264 -0
- package/dist/src/dice/view-function.d.ts +8 -0
- package/dist/src/dice/view-function.js +130 -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-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,789 @@
|
|
|
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.MintRequestEvent = exports.MintRequest = exports.DiscountEventV3 = exports.DiscountEventV2 = exports.DiscountEvent = exports.Pool = exports.ManagerCap = void 0;
|
|
99
|
+
exports.isManagerCap = isManagerCap;
|
|
100
|
+
exports.isPool = isPool;
|
|
101
|
+
exports.isDiscountEvent = isDiscountEvent;
|
|
102
|
+
exports.isDiscountEventV2 = isDiscountEventV2;
|
|
103
|
+
exports.isDiscountEventV3 = isDiscountEventV3;
|
|
104
|
+
exports.isMintRequest = isMintRequest;
|
|
105
|
+
exports.isMintRequestEvent = isMintRequestEvent;
|
|
106
|
+
var reified = __importStar(require("../../../../_framework/reified"));
|
|
107
|
+
var reified_1 = require("../../../../_framework/reified");
|
|
108
|
+
var util_1 = require("../../../../_framework/util");
|
|
109
|
+
var structs_1 = require("../../0x2/balance/structs");
|
|
110
|
+
var structs_2 = require("../../0x2/coin/structs");
|
|
111
|
+
var structs_3 = require("../../0x2/object/structs");
|
|
112
|
+
var structs_4 = require("../../0x2/sui/structs");
|
|
113
|
+
var structs_5 = require("../../0x2/table-vec/structs");
|
|
114
|
+
var structs_6 = require("../typus-nft/structs");
|
|
115
|
+
var bcs_1 = require("@mysten/bcs");
|
|
116
|
+
/* ============================== ManagerCap =============================== */
|
|
117
|
+
function isManagerCap(type) { type = (0, util_1.compressSuiType)(type); return type === "0xd0d533322a2f8db5429f7942da900e513b4f4865b4dac584ab978be090f06d1c::discount_mint::ManagerCap"; }
|
|
118
|
+
var ManagerCap = /** @class */ (function () {
|
|
119
|
+
function ManagerCap(typeArgs, fields) {
|
|
120
|
+
this.$typeName = ManagerCap.$typeName;
|
|
121
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ManagerCap.$typeName], __read(typeArgs), false));
|
|
122
|
+
this.$typeArgs = typeArgs;
|
|
123
|
+
this.id = fields.id;
|
|
124
|
+
}
|
|
125
|
+
ManagerCap.reified = function () {
|
|
126
|
+
var _this = this;
|
|
127
|
+
return { typeName: ManagerCap.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ManagerCap.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return ManagerCap.fromFields(fields); }, fromFieldsWithTypes: function (item) { return ManagerCap.fromFieldsWithTypes(item); }, fromBcs: function (data) { return ManagerCap.fromBcs(data); }, bcs: ManagerCap.bcs, fromJSONField: function (field) { return ManagerCap.fromJSONField(field); }, fromJSON: function (json) { return ManagerCap.fromJSON(json); }, fromSuiParsedData: function (content) { return ManagerCap.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
128
|
+
return [2 /*return*/, ManagerCap.fetch(client, id)];
|
|
129
|
+
}); }); }, new: function (fields) { return new ManagerCap([], fields); }, kind: "StructClassReified", };
|
|
130
|
+
};
|
|
131
|
+
Object.defineProperty(ManagerCap, "r", {
|
|
132
|
+
get: function () { return ManagerCap.reified(); },
|
|
133
|
+
enumerable: false,
|
|
134
|
+
configurable: true
|
|
135
|
+
});
|
|
136
|
+
ManagerCap.phantom = function () { return (0, reified_1.phantom)(ManagerCap.reified()); };
|
|
137
|
+
Object.defineProperty(ManagerCap, "p", {
|
|
138
|
+
get: function () { return ManagerCap.phantom(); },
|
|
139
|
+
enumerable: false,
|
|
140
|
+
configurable: true
|
|
141
|
+
});
|
|
142
|
+
Object.defineProperty(ManagerCap, "bcs", {
|
|
143
|
+
get: function () {
|
|
144
|
+
return bcs_1.bcs.struct("ManagerCap", {
|
|
145
|
+
id: structs_3.UID.bcs
|
|
146
|
+
});
|
|
147
|
+
},
|
|
148
|
+
enumerable: false,
|
|
149
|
+
configurable: true
|
|
150
|
+
});
|
|
151
|
+
;
|
|
152
|
+
ManagerCap.fromFields = function (fields) { return ManagerCap.reified().new({ id: (0, reified_1.decodeFromFields)(structs_3.UID.reified(), fields.id) }); };
|
|
153
|
+
ManagerCap.fromFieldsWithTypes = function (item) {
|
|
154
|
+
if (!isManagerCap(item.type)) {
|
|
155
|
+
throw new Error("not a ManagerCap type");
|
|
156
|
+
}
|
|
157
|
+
return ManagerCap.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.UID.reified(), item.fields.id) });
|
|
158
|
+
};
|
|
159
|
+
ManagerCap.fromBcs = function (data) { return ManagerCap.fromFields(ManagerCap.bcs.parse(data)); };
|
|
160
|
+
ManagerCap.prototype.toJSONField = function () {
|
|
161
|
+
return {
|
|
162
|
+
id: this.id,
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
ManagerCap.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
166
|
+
ManagerCap.fromJSONField = function (field) { return ManagerCap.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_3.UID.reified(), field.id) }); };
|
|
167
|
+
ManagerCap.fromJSON = function (json) {
|
|
168
|
+
if (json.$typeName !== ManagerCap.$typeName) {
|
|
169
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
170
|
+
}
|
|
171
|
+
;
|
|
172
|
+
return ManagerCap.fromJSONField(json);
|
|
173
|
+
};
|
|
174
|
+
ManagerCap.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
175
|
+
throw new Error("not an object");
|
|
176
|
+
} if (!isManagerCap(content.type)) {
|
|
177
|
+
throw new Error("object at ".concat(content.fields.id, " is not a ManagerCap object"));
|
|
178
|
+
} return ManagerCap.fromFieldsWithTypes(content); };
|
|
179
|
+
ManagerCap.fetch = function (client, id) {
|
|
180
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
181
|
+
var res;
|
|
182
|
+
var _a, _b;
|
|
183
|
+
return __generator(this, function (_c) {
|
|
184
|
+
switch (_c.label) {
|
|
185
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
186
|
+
case 1:
|
|
187
|
+
res = _c.sent();
|
|
188
|
+
if (res.error) {
|
|
189
|
+
throw new Error("error fetching ManagerCap object at id ".concat(id, ": ").concat(res.error.code));
|
|
190
|
+
}
|
|
191
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isManagerCap(res.data.bcs.type)) {
|
|
192
|
+
throw new Error("object at id ".concat(id, " is not a ManagerCap object"));
|
|
193
|
+
}
|
|
194
|
+
return [2 /*return*/, ManagerCap.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
});
|
|
198
|
+
};
|
|
199
|
+
ManagerCap.$typeName = "0xd0d533322a2f8db5429f7942da900e513b4f4865b4dac584ab978be090f06d1c::discount_mint::ManagerCap";
|
|
200
|
+
ManagerCap.$numTypeParams = 0;
|
|
201
|
+
return ManagerCap;
|
|
202
|
+
}());
|
|
203
|
+
exports.ManagerCap = ManagerCap;
|
|
204
|
+
/* ============================== Pool =============================== */
|
|
205
|
+
function isPool(type) { type = (0, util_1.compressSuiType)(type); return type === "0xd0d533322a2f8db5429f7942da900e513b4f4865b4dac584ab978be090f06d1c::discount_mint::Pool"; }
|
|
206
|
+
var Pool = /** @class */ (function () {
|
|
207
|
+
function Pool(typeArgs, fields) {
|
|
208
|
+
this.$typeName = Pool.$typeName;
|
|
209
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Pool.$typeName], __read(typeArgs), false));
|
|
210
|
+
this.$typeArgs = typeArgs;
|
|
211
|
+
this.id = fields.id;
|
|
212
|
+
;
|
|
213
|
+
this.num = fields.num;
|
|
214
|
+
;
|
|
215
|
+
this.price = fields.price;
|
|
216
|
+
;
|
|
217
|
+
this.startMs = fields.startMs;
|
|
218
|
+
;
|
|
219
|
+
this.endMs = fields.endMs;
|
|
220
|
+
;
|
|
221
|
+
this.authority = fields.authority;
|
|
222
|
+
;
|
|
223
|
+
this.publicKey = fields.publicKey;
|
|
224
|
+
;
|
|
225
|
+
this.discountPcts = fields.discountPcts;
|
|
226
|
+
;
|
|
227
|
+
this.isLive = fields.isLive;
|
|
228
|
+
;
|
|
229
|
+
this.balance = fields.balance;
|
|
230
|
+
;
|
|
231
|
+
this.tails = fields.tails;
|
|
232
|
+
;
|
|
233
|
+
this.requests = fields.requests;
|
|
234
|
+
}
|
|
235
|
+
Pool.reified = function () {
|
|
236
|
+
var _this = this;
|
|
237
|
+
return { typeName: Pool.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Pool.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Pool.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Pool.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Pool.fromBcs(data); }, bcs: Pool.bcs, fromJSONField: function (field) { return Pool.fromJSONField(field); }, fromJSON: function (json) { return Pool.fromJSON(json); }, fromSuiParsedData: function (content) { return Pool.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
238
|
+
return [2 /*return*/, Pool.fetch(client, id)];
|
|
239
|
+
}); }); }, new: function (fields) { return new Pool([], fields); }, kind: "StructClassReified", };
|
|
240
|
+
};
|
|
241
|
+
Object.defineProperty(Pool, "r", {
|
|
242
|
+
get: function () { return Pool.reified(); },
|
|
243
|
+
enumerable: false,
|
|
244
|
+
configurable: true
|
|
245
|
+
});
|
|
246
|
+
Pool.phantom = function () { return (0, reified_1.phantom)(Pool.reified()); };
|
|
247
|
+
Object.defineProperty(Pool, "p", {
|
|
248
|
+
get: function () { return Pool.phantom(); },
|
|
249
|
+
enumerable: false,
|
|
250
|
+
configurable: true
|
|
251
|
+
});
|
|
252
|
+
Object.defineProperty(Pool, "bcs", {
|
|
253
|
+
get: function () {
|
|
254
|
+
return bcs_1.bcs.struct("Pool", {
|
|
255
|
+
id: structs_3.UID.bcs, num: bcs_1.bcs.u64(), price: bcs_1.bcs.u64(), start_ms: bcs_1.bcs.u64(), end_ms: bcs_1.bcs.u64(), authority: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), public_key: bcs_1.bcs.vector(bcs_1.bcs.u8()), discount_pcts: bcs_1.bcs.vector(bcs_1.bcs.u64()), is_live: bcs_1.bcs.bool(), balance: structs_1.Balance.bcs, tails: structs_5.TableVec.bcs, requests: bcs_1.bcs.vector(MintRequest.bcs)
|
|
256
|
+
});
|
|
257
|
+
},
|
|
258
|
+
enumerable: false,
|
|
259
|
+
configurable: true
|
|
260
|
+
});
|
|
261
|
+
;
|
|
262
|
+
Pool.fromFields = function (fields) { return Pool.reified().new({ id: (0, reified_1.decodeFromFields)(structs_3.UID.reified(), fields.id), num: (0, reified_1.decodeFromFields)("u64", fields.num), price: (0, reified_1.decodeFromFields)("u64", fields.price), startMs: (0, reified_1.decodeFromFields)("u64", fields.start_ms), endMs: (0, reified_1.decodeFromFields)("u64", fields.end_ms), authority: (0, reified_1.decodeFromFields)("address", fields.authority), publicKey: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.public_key), discountPcts: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.discount_pcts), isLive: (0, reified_1.decodeFromFields)("bool", fields.is_live), balance: (0, reified_1.decodeFromFields)(structs_1.Balance.reified(reified.phantom(structs_4.SUI.reified())), fields.balance), tails: (0, reified_1.decodeFromFields)(structs_5.TableVec.reified(reified.phantom(structs_6.Tails.reified())), fields.tails), requests: (0, reified_1.decodeFromFields)(reified.vector(MintRequest.reified()), fields.requests) }); };
|
|
263
|
+
Pool.fromFieldsWithTypes = function (item) {
|
|
264
|
+
if (!isPool(item.type)) {
|
|
265
|
+
throw new Error("not a Pool type");
|
|
266
|
+
}
|
|
267
|
+
return Pool.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.UID.reified(), item.fields.id), num: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.num), price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price), startMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.start_ms), endMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.end_ms), authority: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.authority), publicKey: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.public_key), discountPcts: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.discount_pcts), isLive: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.is_live), balance: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.Balance.reified(reified.phantom(structs_4.SUI.reified())), item.fields.balance), tails: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.TableVec.reified(reified.phantom(structs_6.Tails.reified())), item.fields.tails), requests: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(MintRequest.reified()), item.fields.requests) });
|
|
268
|
+
};
|
|
269
|
+
Pool.fromBcs = function (data) { return Pool.fromFields(Pool.bcs.parse(data)); };
|
|
270
|
+
Pool.prototype.toJSONField = function () {
|
|
271
|
+
return {
|
|
272
|
+
id: this.id, num: this.num.toString(), price: this.price.toString(), startMs: this.startMs.toString(), endMs: this.endMs.toString(), authority: this.authority, publicKey: (0, reified_1.fieldToJSON)("vector<u8>", this.publicKey), discountPcts: (0, reified_1.fieldToJSON)("vector<u64>", this.discountPcts), isLive: this.isLive, balance: this.balance.toJSONField(), tails: this.tails.toJSONField(), requests: (0, reified_1.fieldToJSON)("vector<0xd0d533322a2f8db5429f7942da900e513b4f4865b4dac584ab978be090f06d1c::discount_mint::MintRequest>", this.requests),
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
Pool.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
276
|
+
Pool.fromJSONField = function (field) { return Pool.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_3.UID.reified(), field.id), num: (0, reified_1.decodeFromJSONField)("u64", field.num), price: (0, reified_1.decodeFromJSONField)("u64", field.price), startMs: (0, reified_1.decodeFromJSONField)("u64", field.startMs), endMs: (0, reified_1.decodeFromJSONField)("u64", field.endMs), authority: (0, reified_1.decodeFromJSONField)("address", field.authority), publicKey: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.publicKey), discountPcts: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.discountPcts), isLive: (0, reified_1.decodeFromJSONField)("bool", field.isLive), balance: (0, reified_1.decodeFromJSONField)(structs_1.Balance.reified(reified.phantom(structs_4.SUI.reified())), field.balance), tails: (0, reified_1.decodeFromJSONField)(structs_5.TableVec.reified(reified.phantom(structs_6.Tails.reified())), field.tails), requests: (0, reified_1.decodeFromJSONField)(reified.vector(MintRequest.reified()), field.requests) }); };
|
|
277
|
+
Pool.fromJSON = function (json) {
|
|
278
|
+
if (json.$typeName !== Pool.$typeName) {
|
|
279
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
280
|
+
}
|
|
281
|
+
;
|
|
282
|
+
return Pool.fromJSONField(json);
|
|
283
|
+
};
|
|
284
|
+
Pool.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
285
|
+
throw new Error("not an object");
|
|
286
|
+
} if (!isPool(content.type)) {
|
|
287
|
+
throw new Error("object at ".concat(content.fields.id, " is not a Pool object"));
|
|
288
|
+
} return Pool.fromFieldsWithTypes(content); };
|
|
289
|
+
Pool.fetch = function (client, id) {
|
|
290
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
291
|
+
var res;
|
|
292
|
+
var _a, _b;
|
|
293
|
+
return __generator(this, function (_c) {
|
|
294
|
+
switch (_c.label) {
|
|
295
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
296
|
+
case 1:
|
|
297
|
+
res = _c.sent();
|
|
298
|
+
if (res.error) {
|
|
299
|
+
throw new Error("error fetching Pool object at id ".concat(id, ": ").concat(res.error.code));
|
|
300
|
+
}
|
|
301
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isPool(res.data.bcs.type)) {
|
|
302
|
+
throw new Error("object at id ".concat(id, " is not a Pool object"));
|
|
303
|
+
}
|
|
304
|
+
return [2 /*return*/, Pool.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
});
|
|
308
|
+
};
|
|
309
|
+
Pool.$typeName = "0xd0d533322a2f8db5429f7942da900e513b4f4865b4dac584ab978be090f06d1c::discount_mint::Pool";
|
|
310
|
+
Pool.$numTypeParams = 0;
|
|
311
|
+
return Pool;
|
|
312
|
+
}());
|
|
313
|
+
exports.Pool = Pool;
|
|
314
|
+
/* ============================== DiscountEvent =============================== */
|
|
315
|
+
function isDiscountEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0xd0d533322a2f8db5429f7942da900e513b4f4865b4dac584ab978be090f06d1c::discount_mint::DiscountEvent"; }
|
|
316
|
+
var DiscountEvent = /** @class */ (function () {
|
|
317
|
+
function DiscountEvent(typeArgs, fields) {
|
|
318
|
+
this.$typeName = DiscountEvent.$typeName;
|
|
319
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DiscountEvent.$typeName], __read(typeArgs), false));
|
|
320
|
+
this.$typeArgs = typeArgs;
|
|
321
|
+
this.price = fields.price;
|
|
322
|
+
;
|
|
323
|
+
this.discountPct = fields.discountPct;
|
|
324
|
+
;
|
|
325
|
+
this.discountPrice = fields.discountPrice;
|
|
326
|
+
}
|
|
327
|
+
DiscountEvent.reified = function () {
|
|
328
|
+
var _this = this;
|
|
329
|
+
return { typeName: DiscountEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DiscountEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return DiscountEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return DiscountEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return DiscountEvent.fromBcs(data); }, bcs: DiscountEvent.bcs, fromJSONField: function (field) { return DiscountEvent.fromJSONField(field); }, fromJSON: function (json) { return DiscountEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return DiscountEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
330
|
+
return [2 /*return*/, DiscountEvent.fetch(client, id)];
|
|
331
|
+
}); }); }, new: function (fields) { return new DiscountEvent([], fields); }, kind: "StructClassReified", };
|
|
332
|
+
};
|
|
333
|
+
Object.defineProperty(DiscountEvent, "r", {
|
|
334
|
+
get: function () { return DiscountEvent.reified(); },
|
|
335
|
+
enumerable: false,
|
|
336
|
+
configurable: true
|
|
337
|
+
});
|
|
338
|
+
DiscountEvent.phantom = function () { return (0, reified_1.phantom)(DiscountEvent.reified()); };
|
|
339
|
+
Object.defineProperty(DiscountEvent, "p", {
|
|
340
|
+
get: function () { return DiscountEvent.phantom(); },
|
|
341
|
+
enumerable: false,
|
|
342
|
+
configurable: true
|
|
343
|
+
});
|
|
344
|
+
Object.defineProperty(DiscountEvent, "bcs", {
|
|
345
|
+
get: function () {
|
|
346
|
+
return bcs_1.bcs.struct("DiscountEvent", {
|
|
347
|
+
price: bcs_1.bcs.u64(), discount_pct: bcs_1.bcs.u64(), discount_price: bcs_1.bcs.u64()
|
|
348
|
+
});
|
|
349
|
+
},
|
|
350
|
+
enumerable: false,
|
|
351
|
+
configurable: true
|
|
352
|
+
});
|
|
353
|
+
;
|
|
354
|
+
DiscountEvent.fromFields = function (fields) { return DiscountEvent.reified().new({ price: (0, reified_1.decodeFromFields)("u64", fields.price), discountPct: (0, reified_1.decodeFromFields)("u64", fields.discount_pct), discountPrice: (0, reified_1.decodeFromFields)("u64", fields.discount_price) }); };
|
|
355
|
+
DiscountEvent.fromFieldsWithTypes = function (item) {
|
|
356
|
+
if (!isDiscountEvent(item.type)) {
|
|
357
|
+
throw new Error("not a DiscountEvent type");
|
|
358
|
+
}
|
|
359
|
+
return DiscountEvent.reified().new({ price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price), discountPct: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.discount_pct), discountPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.discount_price) });
|
|
360
|
+
};
|
|
361
|
+
DiscountEvent.fromBcs = function (data) { return DiscountEvent.fromFields(DiscountEvent.bcs.parse(data)); };
|
|
362
|
+
DiscountEvent.prototype.toJSONField = function () {
|
|
363
|
+
return {
|
|
364
|
+
price: this.price.toString(), discountPct: this.discountPct.toString(), discountPrice: this.discountPrice.toString(),
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
DiscountEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
368
|
+
DiscountEvent.fromJSONField = function (field) { return DiscountEvent.reified().new({ price: (0, reified_1.decodeFromJSONField)("u64", field.price), discountPct: (0, reified_1.decodeFromJSONField)("u64", field.discountPct), discountPrice: (0, reified_1.decodeFromJSONField)("u64", field.discountPrice) }); };
|
|
369
|
+
DiscountEvent.fromJSON = function (json) {
|
|
370
|
+
if (json.$typeName !== DiscountEvent.$typeName) {
|
|
371
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
372
|
+
}
|
|
373
|
+
;
|
|
374
|
+
return DiscountEvent.fromJSONField(json);
|
|
375
|
+
};
|
|
376
|
+
DiscountEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
377
|
+
throw new Error("not an object");
|
|
378
|
+
} if (!isDiscountEvent(content.type)) {
|
|
379
|
+
throw new Error("object at ".concat(content.fields.id, " is not a DiscountEvent object"));
|
|
380
|
+
} return DiscountEvent.fromFieldsWithTypes(content); };
|
|
381
|
+
DiscountEvent.fetch = function (client, id) {
|
|
382
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
383
|
+
var res;
|
|
384
|
+
var _a, _b;
|
|
385
|
+
return __generator(this, function (_c) {
|
|
386
|
+
switch (_c.label) {
|
|
387
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
388
|
+
case 1:
|
|
389
|
+
res = _c.sent();
|
|
390
|
+
if (res.error) {
|
|
391
|
+
throw new Error("error fetching DiscountEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
392
|
+
}
|
|
393
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDiscountEvent(res.data.bcs.type)) {
|
|
394
|
+
throw new Error("object at id ".concat(id, " is not a DiscountEvent object"));
|
|
395
|
+
}
|
|
396
|
+
return [2 /*return*/, DiscountEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
});
|
|
400
|
+
};
|
|
401
|
+
DiscountEvent.$typeName = "0xd0d533322a2f8db5429f7942da900e513b4f4865b4dac584ab978be090f06d1c::discount_mint::DiscountEvent";
|
|
402
|
+
DiscountEvent.$numTypeParams = 0;
|
|
403
|
+
return DiscountEvent;
|
|
404
|
+
}());
|
|
405
|
+
exports.DiscountEvent = DiscountEvent;
|
|
406
|
+
/* ============================== DiscountEventV2 =============================== */
|
|
407
|
+
function isDiscountEventV2(type) { type = (0, util_1.compressSuiType)(type); return type === "0x8a08d583d4cf41a80de2cdb752a4ec22811fc388907c0a07d039fa34d2489257::discount_mint::DiscountEventV2"; }
|
|
408
|
+
var DiscountEventV2 = /** @class */ (function () {
|
|
409
|
+
function DiscountEventV2(typeArgs, fields) {
|
|
410
|
+
this.$typeName = DiscountEventV2.$typeName;
|
|
411
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DiscountEventV2.$typeName], __read(typeArgs), false));
|
|
412
|
+
this.$typeArgs = typeArgs;
|
|
413
|
+
this.pool = fields.pool;
|
|
414
|
+
;
|
|
415
|
+
this.price = fields.price;
|
|
416
|
+
;
|
|
417
|
+
this.discountPct = fields.discountPct;
|
|
418
|
+
;
|
|
419
|
+
this.discountPrice = fields.discountPrice;
|
|
420
|
+
;
|
|
421
|
+
this.user = fields.user;
|
|
422
|
+
;
|
|
423
|
+
this.vrfInput = fields.vrfInput;
|
|
424
|
+
}
|
|
425
|
+
DiscountEventV2.reified = function () {
|
|
426
|
+
var _this = this;
|
|
427
|
+
return { typeName: DiscountEventV2.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DiscountEventV2.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return DiscountEventV2.fromFields(fields); }, fromFieldsWithTypes: function (item) { return DiscountEventV2.fromFieldsWithTypes(item); }, fromBcs: function (data) { return DiscountEventV2.fromBcs(data); }, bcs: DiscountEventV2.bcs, fromJSONField: function (field) { return DiscountEventV2.fromJSONField(field); }, fromJSON: function (json) { return DiscountEventV2.fromJSON(json); }, fromSuiParsedData: function (content) { return DiscountEventV2.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
428
|
+
return [2 /*return*/, DiscountEventV2.fetch(client, id)];
|
|
429
|
+
}); }); }, new: function (fields) { return new DiscountEventV2([], fields); }, kind: "StructClassReified", };
|
|
430
|
+
};
|
|
431
|
+
Object.defineProperty(DiscountEventV2, "r", {
|
|
432
|
+
get: function () { return DiscountEventV2.reified(); },
|
|
433
|
+
enumerable: false,
|
|
434
|
+
configurable: true
|
|
435
|
+
});
|
|
436
|
+
DiscountEventV2.phantom = function () { return (0, reified_1.phantom)(DiscountEventV2.reified()); };
|
|
437
|
+
Object.defineProperty(DiscountEventV2, "p", {
|
|
438
|
+
get: function () { return DiscountEventV2.phantom(); },
|
|
439
|
+
enumerable: false,
|
|
440
|
+
configurable: true
|
|
441
|
+
});
|
|
442
|
+
Object.defineProperty(DiscountEventV2, "bcs", {
|
|
443
|
+
get: function () {
|
|
444
|
+
return bcs_1.bcs.struct("DiscountEventV2", {
|
|
445
|
+
pool: structs_3.ID.bcs, price: bcs_1.bcs.u64(), discount_pct: bcs_1.bcs.u64(), discount_price: bcs_1.bcs.u64(), user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), vrf_input: bcs_1.bcs.vector(bcs_1.bcs.u8())
|
|
446
|
+
});
|
|
447
|
+
},
|
|
448
|
+
enumerable: false,
|
|
449
|
+
configurable: true
|
|
450
|
+
});
|
|
451
|
+
;
|
|
452
|
+
DiscountEventV2.fromFields = function (fields) { return DiscountEventV2.reified().new({ pool: (0, reified_1.decodeFromFields)(structs_3.ID.reified(), fields.pool), price: (0, reified_1.decodeFromFields)("u64", fields.price), discountPct: (0, reified_1.decodeFromFields)("u64", fields.discount_pct), discountPrice: (0, reified_1.decodeFromFields)("u64", fields.discount_price), user: (0, reified_1.decodeFromFields)("address", fields.user), vrfInput: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.vrf_input) }); };
|
|
453
|
+
DiscountEventV2.fromFieldsWithTypes = function (item) {
|
|
454
|
+
if (!isDiscountEventV2(item.type)) {
|
|
455
|
+
throw new Error("not a DiscountEventV2 type");
|
|
456
|
+
}
|
|
457
|
+
return DiscountEventV2.reified().new({ pool: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.ID.reified(), item.fields.pool), price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price), discountPct: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.discount_pct), discountPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.discount_price), user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user), vrfInput: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.vrf_input) });
|
|
458
|
+
};
|
|
459
|
+
DiscountEventV2.fromBcs = function (data) { return DiscountEventV2.fromFields(DiscountEventV2.bcs.parse(data)); };
|
|
460
|
+
DiscountEventV2.prototype.toJSONField = function () {
|
|
461
|
+
return {
|
|
462
|
+
pool: this.pool, price: this.price.toString(), discountPct: this.discountPct.toString(), discountPrice: this.discountPrice.toString(), user: this.user, vrfInput: (0, reified_1.fieldToJSON)("vector<u8>", this.vrfInput),
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
DiscountEventV2.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
466
|
+
DiscountEventV2.fromJSONField = function (field) { return DiscountEventV2.reified().new({ pool: (0, reified_1.decodeFromJSONField)(structs_3.ID.reified(), field.pool), price: (0, reified_1.decodeFromJSONField)("u64", field.price), discountPct: (0, reified_1.decodeFromJSONField)("u64", field.discountPct), discountPrice: (0, reified_1.decodeFromJSONField)("u64", field.discountPrice), user: (0, reified_1.decodeFromJSONField)("address", field.user), vrfInput: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.vrfInput) }); };
|
|
467
|
+
DiscountEventV2.fromJSON = function (json) {
|
|
468
|
+
if (json.$typeName !== DiscountEventV2.$typeName) {
|
|
469
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
470
|
+
}
|
|
471
|
+
;
|
|
472
|
+
return DiscountEventV2.fromJSONField(json);
|
|
473
|
+
};
|
|
474
|
+
DiscountEventV2.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
475
|
+
throw new Error("not an object");
|
|
476
|
+
} if (!isDiscountEventV2(content.type)) {
|
|
477
|
+
throw new Error("object at ".concat(content.fields.id, " is not a DiscountEventV2 object"));
|
|
478
|
+
} return DiscountEventV2.fromFieldsWithTypes(content); };
|
|
479
|
+
DiscountEventV2.fetch = function (client, id) {
|
|
480
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
481
|
+
var res;
|
|
482
|
+
var _a, _b;
|
|
483
|
+
return __generator(this, function (_c) {
|
|
484
|
+
switch (_c.label) {
|
|
485
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
486
|
+
case 1:
|
|
487
|
+
res = _c.sent();
|
|
488
|
+
if (res.error) {
|
|
489
|
+
throw new Error("error fetching DiscountEventV2 object at id ".concat(id, ": ").concat(res.error.code));
|
|
490
|
+
}
|
|
491
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDiscountEventV2(res.data.bcs.type)) {
|
|
492
|
+
throw new Error("object at id ".concat(id, " is not a DiscountEventV2 object"));
|
|
493
|
+
}
|
|
494
|
+
return [2 /*return*/, DiscountEventV2.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
});
|
|
498
|
+
};
|
|
499
|
+
DiscountEventV2.$typeName = "0x8a08d583d4cf41a80de2cdb752a4ec22811fc388907c0a07d039fa34d2489257::discount_mint::DiscountEventV2";
|
|
500
|
+
DiscountEventV2.$numTypeParams = 0;
|
|
501
|
+
return DiscountEventV2;
|
|
502
|
+
}());
|
|
503
|
+
exports.DiscountEventV2 = DiscountEventV2;
|
|
504
|
+
/* ============================== DiscountEventV3 =============================== */
|
|
505
|
+
function isDiscountEventV3(type) { type = (0, util_1.compressSuiType)(type); return type === "0xcfba36e150e43bc3362f9987c94d20131d463de8b554d64d1155f41417f36870::discount_mint::DiscountEventV3"; }
|
|
506
|
+
var DiscountEventV3 = /** @class */ (function () {
|
|
507
|
+
function DiscountEventV3(typeArgs, fields) {
|
|
508
|
+
this.$typeName = DiscountEventV3.$typeName;
|
|
509
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DiscountEventV3.$typeName], __read(typeArgs), false));
|
|
510
|
+
this.$typeArgs = typeArgs;
|
|
511
|
+
this.pool = fields.pool;
|
|
512
|
+
;
|
|
513
|
+
this.price = fields.price;
|
|
514
|
+
;
|
|
515
|
+
this.discountPct = fields.discountPct;
|
|
516
|
+
;
|
|
517
|
+
this.discountPrice = fields.discountPrice;
|
|
518
|
+
;
|
|
519
|
+
this.user = fields.user;
|
|
520
|
+
;
|
|
521
|
+
this.vrfInput = fields.vrfInput;
|
|
522
|
+
;
|
|
523
|
+
this.level = fields.level;
|
|
524
|
+
}
|
|
525
|
+
DiscountEventV3.reified = function () {
|
|
526
|
+
var _this = this;
|
|
527
|
+
return { typeName: DiscountEventV3.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DiscountEventV3.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return DiscountEventV3.fromFields(fields); }, fromFieldsWithTypes: function (item) { return DiscountEventV3.fromFieldsWithTypes(item); }, fromBcs: function (data) { return DiscountEventV3.fromBcs(data); }, bcs: DiscountEventV3.bcs, fromJSONField: function (field) { return DiscountEventV3.fromJSONField(field); }, fromJSON: function (json) { return DiscountEventV3.fromJSON(json); }, fromSuiParsedData: function (content) { return DiscountEventV3.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
528
|
+
return [2 /*return*/, DiscountEventV3.fetch(client, id)];
|
|
529
|
+
}); }); }, new: function (fields) { return new DiscountEventV3([], fields); }, kind: "StructClassReified", };
|
|
530
|
+
};
|
|
531
|
+
Object.defineProperty(DiscountEventV3, "r", {
|
|
532
|
+
get: function () { return DiscountEventV3.reified(); },
|
|
533
|
+
enumerable: false,
|
|
534
|
+
configurable: true
|
|
535
|
+
});
|
|
536
|
+
DiscountEventV3.phantom = function () { return (0, reified_1.phantom)(DiscountEventV3.reified()); };
|
|
537
|
+
Object.defineProperty(DiscountEventV3, "p", {
|
|
538
|
+
get: function () { return DiscountEventV3.phantom(); },
|
|
539
|
+
enumerable: false,
|
|
540
|
+
configurable: true
|
|
541
|
+
});
|
|
542
|
+
Object.defineProperty(DiscountEventV3, "bcs", {
|
|
543
|
+
get: function () {
|
|
544
|
+
return bcs_1.bcs.struct("DiscountEventV3", {
|
|
545
|
+
pool: structs_3.ID.bcs, price: bcs_1.bcs.u64(), discount_pct: bcs_1.bcs.u64(), discount_price: bcs_1.bcs.u64(), user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), vrf_input: bcs_1.bcs.vector(bcs_1.bcs.u8()), level: bcs_1.bcs.u64()
|
|
546
|
+
});
|
|
547
|
+
},
|
|
548
|
+
enumerable: false,
|
|
549
|
+
configurable: true
|
|
550
|
+
});
|
|
551
|
+
;
|
|
552
|
+
DiscountEventV3.fromFields = function (fields) { return DiscountEventV3.reified().new({ pool: (0, reified_1.decodeFromFields)(structs_3.ID.reified(), fields.pool), price: (0, reified_1.decodeFromFields)("u64", fields.price), discountPct: (0, reified_1.decodeFromFields)("u64", fields.discount_pct), discountPrice: (0, reified_1.decodeFromFields)("u64", fields.discount_price), user: (0, reified_1.decodeFromFields)("address", fields.user), vrfInput: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.vrf_input), level: (0, reified_1.decodeFromFields)("u64", fields.level) }); };
|
|
553
|
+
DiscountEventV3.fromFieldsWithTypes = function (item) {
|
|
554
|
+
if (!isDiscountEventV3(item.type)) {
|
|
555
|
+
throw new Error("not a DiscountEventV3 type");
|
|
556
|
+
}
|
|
557
|
+
return DiscountEventV3.reified().new({ pool: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.ID.reified(), item.fields.pool), price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price), discountPct: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.discount_pct), discountPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.discount_price), user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user), vrfInput: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.vrf_input), level: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.level) });
|
|
558
|
+
};
|
|
559
|
+
DiscountEventV3.fromBcs = function (data) { return DiscountEventV3.fromFields(DiscountEventV3.bcs.parse(data)); };
|
|
560
|
+
DiscountEventV3.prototype.toJSONField = function () {
|
|
561
|
+
return {
|
|
562
|
+
pool: this.pool, price: this.price.toString(), discountPct: this.discountPct.toString(), discountPrice: this.discountPrice.toString(), user: this.user, vrfInput: (0, reified_1.fieldToJSON)("vector<u8>", this.vrfInput), level: this.level.toString(),
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
DiscountEventV3.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
566
|
+
DiscountEventV3.fromJSONField = function (field) { return DiscountEventV3.reified().new({ pool: (0, reified_1.decodeFromJSONField)(structs_3.ID.reified(), field.pool), price: (0, reified_1.decodeFromJSONField)("u64", field.price), discountPct: (0, reified_1.decodeFromJSONField)("u64", field.discountPct), discountPrice: (0, reified_1.decodeFromJSONField)("u64", field.discountPrice), user: (0, reified_1.decodeFromJSONField)("address", field.user), vrfInput: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.vrfInput), level: (0, reified_1.decodeFromJSONField)("u64", field.level) }); };
|
|
567
|
+
DiscountEventV3.fromJSON = function (json) {
|
|
568
|
+
if (json.$typeName !== DiscountEventV3.$typeName) {
|
|
569
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
570
|
+
}
|
|
571
|
+
;
|
|
572
|
+
return DiscountEventV3.fromJSONField(json);
|
|
573
|
+
};
|
|
574
|
+
DiscountEventV3.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
575
|
+
throw new Error("not an object");
|
|
576
|
+
} if (!isDiscountEventV3(content.type)) {
|
|
577
|
+
throw new Error("object at ".concat(content.fields.id, " is not a DiscountEventV3 object"));
|
|
578
|
+
} return DiscountEventV3.fromFieldsWithTypes(content); };
|
|
579
|
+
DiscountEventV3.fetch = function (client, id) {
|
|
580
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
581
|
+
var res;
|
|
582
|
+
var _a, _b;
|
|
583
|
+
return __generator(this, function (_c) {
|
|
584
|
+
switch (_c.label) {
|
|
585
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
586
|
+
case 1:
|
|
587
|
+
res = _c.sent();
|
|
588
|
+
if (res.error) {
|
|
589
|
+
throw new Error("error fetching DiscountEventV3 object at id ".concat(id, ": ").concat(res.error.code));
|
|
590
|
+
}
|
|
591
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDiscountEventV3(res.data.bcs.type)) {
|
|
592
|
+
throw new Error("object at id ".concat(id, " is not a DiscountEventV3 object"));
|
|
593
|
+
}
|
|
594
|
+
return [2 /*return*/, DiscountEventV3.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
595
|
+
}
|
|
596
|
+
});
|
|
597
|
+
});
|
|
598
|
+
};
|
|
599
|
+
DiscountEventV3.$typeName = "0xcfba36e150e43bc3362f9987c94d20131d463de8b554d64d1155f41417f36870::discount_mint::DiscountEventV3";
|
|
600
|
+
DiscountEventV3.$numTypeParams = 0;
|
|
601
|
+
return DiscountEventV3;
|
|
602
|
+
}());
|
|
603
|
+
exports.DiscountEventV3 = DiscountEventV3;
|
|
604
|
+
/* ============================== MintRequest =============================== */
|
|
605
|
+
function isMintRequest(type) { type = (0, util_1.compressSuiType)(type); return type === "0xd0d533322a2f8db5429f7942da900e513b4f4865b4dac584ab978be090f06d1c::discount_mint::MintRequest"; }
|
|
606
|
+
var MintRequest = /** @class */ (function () {
|
|
607
|
+
function MintRequest(typeArgs, fields) {
|
|
608
|
+
this.$typeName = MintRequest.$typeName;
|
|
609
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([MintRequest.$typeName], __read(typeArgs), false));
|
|
610
|
+
this.$typeArgs = typeArgs;
|
|
611
|
+
this.user = fields.user;
|
|
612
|
+
;
|
|
613
|
+
this.coin = fields.coin;
|
|
614
|
+
;
|
|
615
|
+
this.vrfInput = fields.vrfInput;
|
|
616
|
+
}
|
|
617
|
+
MintRequest.reified = function () {
|
|
618
|
+
var _this = this;
|
|
619
|
+
return { typeName: MintRequest.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([MintRequest.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return MintRequest.fromFields(fields); }, fromFieldsWithTypes: function (item) { return MintRequest.fromFieldsWithTypes(item); }, fromBcs: function (data) { return MintRequest.fromBcs(data); }, bcs: MintRequest.bcs, fromJSONField: function (field) { return MintRequest.fromJSONField(field); }, fromJSON: function (json) { return MintRequest.fromJSON(json); }, fromSuiParsedData: function (content) { return MintRequest.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
620
|
+
return [2 /*return*/, MintRequest.fetch(client, id)];
|
|
621
|
+
}); }); }, new: function (fields) { return new MintRequest([], fields); }, kind: "StructClassReified", };
|
|
622
|
+
};
|
|
623
|
+
Object.defineProperty(MintRequest, "r", {
|
|
624
|
+
get: function () { return MintRequest.reified(); },
|
|
625
|
+
enumerable: false,
|
|
626
|
+
configurable: true
|
|
627
|
+
});
|
|
628
|
+
MintRequest.phantom = function () { return (0, reified_1.phantom)(MintRequest.reified()); };
|
|
629
|
+
Object.defineProperty(MintRequest, "p", {
|
|
630
|
+
get: function () { return MintRequest.phantom(); },
|
|
631
|
+
enumerable: false,
|
|
632
|
+
configurable: true
|
|
633
|
+
});
|
|
634
|
+
Object.defineProperty(MintRequest, "bcs", {
|
|
635
|
+
get: function () {
|
|
636
|
+
return bcs_1.bcs.struct("MintRequest", {
|
|
637
|
+
user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), coin: structs_2.Coin.bcs, vrf_input: bcs_1.bcs.vector(bcs_1.bcs.u8())
|
|
638
|
+
});
|
|
639
|
+
},
|
|
640
|
+
enumerable: false,
|
|
641
|
+
configurable: true
|
|
642
|
+
});
|
|
643
|
+
;
|
|
644
|
+
MintRequest.fromFields = function (fields) { return MintRequest.reified().new({ user: (0, reified_1.decodeFromFields)("address", fields.user), coin: (0, reified_1.decodeFromFields)(structs_2.Coin.reified(reified.phantom(structs_4.SUI.reified())), fields.coin), vrfInput: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.vrf_input) }); };
|
|
645
|
+
MintRequest.fromFieldsWithTypes = function (item) {
|
|
646
|
+
if (!isMintRequest(item.type)) {
|
|
647
|
+
throw new Error("not a MintRequest type");
|
|
648
|
+
}
|
|
649
|
+
return MintRequest.reified().new({ user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user), coin: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.Coin.reified(reified.phantom(structs_4.SUI.reified())), item.fields.coin), vrfInput: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.vrf_input) });
|
|
650
|
+
};
|
|
651
|
+
MintRequest.fromBcs = function (data) { return MintRequest.fromFields(MintRequest.bcs.parse(data)); };
|
|
652
|
+
MintRequest.prototype.toJSONField = function () {
|
|
653
|
+
return {
|
|
654
|
+
user: this.user, coin: this.coin.toJSONField(), vrfInput: (0, reified_1.fieldToJSON)("vector<u8>", this.vrfInput),
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
MintRequest.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
658
|
+
MintRequest.fromJSONField = function (field) { return MintRequest.reified().new({ user: (0, reified_1.decodeFromJSONField)("address", field.user), coin: (0, reified_1.decodeFromJSONField)(structs_2.Coin.reified(reified.phantom(structs_4.SUI.reified())), field.coin), vrfInput: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.vrfInput) }); };
|
|
659
|
+
MintRequest.fromJSON = function (json) {
|
|
660
|
+
if (json.$typeName !== MintRequest.$typeName) {
|
|
661
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
662
|
+
}
|
|
663
|
+
;
|
|
664
|
+
return MintRequest.fromJSONField(json);
|
|
665
|
+
};
|
|
666
|
+
MintRequest.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
667
|
+
throw new Error("not an object");
|
|
668
|
+
} if (!isMintRequest(content.type)) {
|
|
669
|
+
throw new Error("object at ".concat(content.fields.id, " is not a MintRequest object"));
|
|
670
|
+
} return MintRequest.fromFieldsWithTypes(content); };
|
|
671
|
+
MintRequest.fetch = function (client, id) {
|
|
672
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
673
|
+
var res;
|
|
674
|
+
var _a, _b;
|
|
675
|
+
return __generator(this, function (_c) {
|
|
676
|
+
switch (_c.label) {
|
|
677
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
678
|
+
case 1:
|
|
679
|
+
res = _c.sent();
|
|
680
|
+
if (res.error) {
|
|
681
|
+
throw new Error("error fetching MintRequest object at id ".concat(id, ": ").concat(res.error.code));
|
|
682
|
+
}
|
|
683
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isMintRequest(res.data.bcs.type)) {
|
|
684
|
+
throw new Error("object at id ".concat(id, " is not a MintRequest object"));
|
|
685
|
+
}
|
|
686
|
+
return [2 /*return*/, MintRequest.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
687
|
+
}
|
|
688
|
+
});
|
|
689
|
+
});
|
|
690
|
+
};
|
|
691
|
+
MintRequest.$typeName = "0xd0d533322a2f8db5429f7942da900e513b4f4865b4dac584ab978be090f06d1c::discount_mint::MintRequest";
|
|
692
|
+
MintRequest.$numTypeParams = 0;
|
|
693
|
+
return MintRequest;
|
|
694
|
+
}());
|
|
695
|
+
exports.MintRequest = MintRequest;
|
|
696
|
+
/* ============================== MintRequestEvent =============================== */
|
|
697
|
+
function isMintRequestEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x19f482f191bfc19afeb797391546571cd409ad0105a7b8181877387cbe1c8c07::discount_mint::MintRequestEvent"; }
|
|
698
|
+
var MintRequestEvent = /** @class */ (function () {
|
|
699
|
+
function MintRequestEvent(typeArgs, fields) {
|
|
700
|
+
this.$typeName = MintRequestEvent.$typeName;
|
|
701
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([MintRequestEvent.$typeName], __read(typeArgs), false));
|
|
702
|
+
this.$typeArgs = typeArgs;
|
|
703
|
+
this.user = fields.user;
|
|
704
|
+
;
|
|
705
|
+
this.vrfInput = fields.vrfInput;
|
|
706
|
+
;
|
|
707
|
+
this.remaining = fields.remaining;
|
|
708
|
+
;
|
|
709
|
+
this.seed = fields.seed;
|
|
710
|
+
}
|
|
711
|
+
MintRequestEvent.reified = function () {
|
|
712
|
+
var _this = this;
|
|
713
|
+
return { typeName: MintRequestEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([MintRequestEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return MintRequestEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return MintRequestEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return MintRequestEvent.fromBcs(data); }, bcs: MintRequestEvent.bcs, fromJSONField: function (field) { return MintRequestEvent.fromJSONField(field); }, fromJSON: function (json) { return MintRequestEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return MintRequestEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
714
|
+
return [2 /*return*/, MintRequestEvent.fetch(client, id)];
|
|
715
|
+
}); }); }, new: function (fields) { return new MintRequestEvent([], fields); }, kind: "StructClassReified", };
|
|
716
|
+
};
|
|
717
|
+
Object.defineProperty(MintRequestEvent, "r", {
|
|
718
|
+
get: function () { return MintRequestEvent.reified(); },
|
|
719
|
+
enumerable: false,
|
|
720
|
+
configurable: true
|
|
721
|
+
});
|
|
722
|
+
MintRequestEvent.phantom = function () { return (0, reified_1.phantom)(MintRequestEvent.reified()); };
|
|
723
|
+
Object.defineProperty(MintRequestEvent, "p", {
|
|
724
|
+
get: function () { return MintRequestEvent.phantom(); },
|
|
725
|
+
enumerable: false,
|
|
726
|
+
configurable: true
|
|
727
|
+
});
|
|
728
|
+
Object.defineProperty(MintRequestEvent, "bcs", {
|
|
729
|
+
get: function () {
|
|
730
|
+
return bcs_1.bcs.struct("MintRequestEvent", {
|
|
731
|
+
user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), vrf_input: bcs_1.bcs.vector(bcs_1.bcs.u8()), remaining: bcs_1.bcs.u64(), seed: bcs_1.bcs.u64()
|
|
732
|
+
});
|
|
733
|
+
},
|
|
734
|
+
enumerable: false,
|
|
735
|
+
configurable: true
|
|
736
|
+
});
|
|
737
|
+
;
|
|
738
|
+
MintRequestEvent.fromFields = function (fields) { return MintRequestEvent.reified().new({ user: (0, reified_1.decodeFromFields)("address", fields.user), vrfInput: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.vrf_input), remaining: (0, reified_1.decodeFromFields)("u64", fields.remaining), seed: (0, reified_1.decodeFromFields)("u64", fields.seed) }); };
|
|
739
|
+
MintRequestEvent.fromFieldsWithTypes = function (item) {
|
|
740
|
+
if (!isMintRequestEvent(item.type)) {
|
|
741
|
+
throw new Error("not a MintRequestEvent type");
|
|
742
|
+
}
|
|
743
|
+
return MintRequestEvent.reified().new({ user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user), vrfInput: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.vrf_input), remaining: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.remaining), seed: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.seed) });
|
|
744
|
+
};
|
|
745
|
+
MintRequestEvent.fromBcs = function (data) { return MintRequestEvent.fromFields(MintRequestEvent.bcs.parse(data)); };
|
|
746
|
+
MintRequestEvent.prototype.toJSONField = function () {
|
|
747
|
+
return {
|
|
748
|
+
user: this.user, vrfInput: (0, reified_1.fieldToJSON)("vector<u8>", this.vrfInput), remaining: this.remaining.toString(), seed: this.seed.toString(),
|
|
749
|
+
};
|
|
750
|
+
};
|
|
751
|
+
MintRequestEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
752
|
+
MintRequestEvent.fromJSONField = function (field) { return MintRequestEvent.reified().new({ user: (0, reified_1.decodeFromJSONField)("address", field.user), vrfInput: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.vrfInput), remaining: (0, reified_1.decodeFromJSONField)("u64", field.remaining), seed: (0, reified_1.decodeFromJSONField)("u64", field.seed) }); };
|
|
753
|
+
MintRequestEvent.fromJSON = function (json) {
|
|
754
|
+
if (json.$typeName !== MintRequestEvent.$typeName) {
|
|
755
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
756
|
+
}
|
|
757
|
+
;
|
|
758
|
+
return MintRequestEvent.fromJSONField(json);
|
|
759
|
+
};
|
|
760
|
+
MintRequestEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
761
|
+
throw new Error("not an object");
|
|
762
|
+
} if (!isMintRequestEvent(content.type)) {
|
|
763
|
+
throw new Error("object at ".concat(content.fields.id, " is not a MintRequestEvent object"));
|
|
764
|
+
} return MintRequestEvent.fromFieldsWithTypes(content); };
|
|
765
|
+
MintRequestEvent.fetch = function (client, id) {
|
|
766
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
767
|
+
var res;
|
|
768
|
+
var _a, _b;
|
|
769
|
+
return __generator(this, function (_c) {
|
|
770
|
+
switch (_c.label) {
|
|
771
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
772
|
+
case 1:
|
|
773
|
+
res = _c.sent();
|
|
774
|
+
if (res.error) {
|
|
775
|
+
throw new Error("error fetching MintRequestEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
776
|
+
}
|
|
777
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isMintRequestEvent(res.data.bcs.type)) {
|
|
778
|
+
throw new Error("object at id ".concat(id, " is not a MintRequestEvent object"));
|
|
779
|
+
}
|
|
780
|
+
return [2 /*return*/, MintRequestEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
781
|
+
}
|
|
782
|
+
});
|
|
783
|
+
});
|
|
784
|
+
};
|
|
785
|
+
MintRequestEvent.$typeName = "0x19f482f191bfc19afeb797391546571cd409ad0105a7b8181877387cbe1c8c07::discount_mint::MintRequestEvent";
|
|
786
|
+
MintRequestEvent.$numTypeParams = 0;
|
|
787
|
+
return MintRequestEvent;
|
|
788
|
+
}());
|
|
789
|
+
exports.MintRequestEvent = MintRequestEvent;
|