@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,170 @@
|
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
+
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;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
50
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
51
|
+
if (!m) return o;
|
|
52
|
+
var i = m.call(o), r, ar = [], e;
|
|
53
|
+
try {
|
|
54
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
55
|
+
}
|
|
56
|
+
catch (error) { e = { error: error }; }
|
|
57
|
+
finally {
|
|
58
|
+
try {
|
|
59
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
60
|
+
}
|
|
61
|
+
finally { if (e) throw e.error; }
|
|
62
|
+
}
|
|
63
|
+
return ar;
|
|
64
|
+
};
|
|
65
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
66
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
67
|
+
if (ar || !(i in from)) {
|
|
68
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
69
|
+
ar[i] = from[i];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
73
|
+
};
|
|
74
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75
|
+
exports.Bag = void 0;
|
|
76
|
+
exports.isBag = isBag;
|
|
77
|
+
var reified_1 = require("../../../../_framework/reified");
|
|
78
|
+
var util_1 = require("../../../../_framework/util");
|
|
79
|
+
var structs_1 = require("../object/structs");
|
|
80
|
+
var bcs_1 = require("@mysten/bcs");
|
|
81
|
+
/* ============================== Bag =============================== */
|
|
82
|
+
function isBag(type) { type = (0, util_1.compressSuiType)(type); return type === "0x2::bag::Bag"; }
|
|
83
|
+
var Bag = /** @class */ (function () {
|
|
84
|
+
function Bag(typeArgs, fields) {
|
|
85
|
+
this.$typeName = Bag.$typeName;
|
|
86
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Bag.$typeName], __read(typeArgs), false));
|
|
87
|
+
this.$typeArgs = typeArgs;
|
|
88
|
+
this.id = fields.id;
|
|
89
|
+
;
|
|
90
|
+
this.size = fields.size;
|
|
91
|
+
}
|
|
92
|
+
Bag.reified = function () {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return { typeName: Bag.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Bag.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Bag.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Bag.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Bag.fromBcs(data); }, bcs: Bag.bcs, fromJSONField: function (field) { return Bag.fromJSONField(field); }, fromJSON: function (json) { return Bag.fromJSON(json); }, fromSuiParsedData: function (content) { return Bag.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
95
|
+
return [2 /*return*/, Bag.fetch(client, id)];
|
|
96
|
+
}); }); }, new: function (fields) { return new Bag([], fields); }, kind: "StructClassReified", };
|
|
97
|
+
};
|
|
98
|
+
Object.defineProperty(Bag, "r", {
|
|
99
|
+
get: function () { return Bag.reified(); },
|
|
100
|
+
enumerable: false,
|
|
101
|
+
configurable: true
|
|
102
|
+
});
|
|
103
|
+
Bag.phantom = function () { return (0, reified_1.phantom)(Bag.reified()); };
|
|
104
|
+
Object.defineProperty(Bag, "p", {
|
|
105
|
+
get: function () { return Bag.phantom(); },
|
|
106
|
+
enumerable: false,
|
|
107
|
+
configurable: true
|
|
108
|
+
});
|
|
109
|
+
Object.defineProperty(Bag, "bcs", {
|
|
110
|
+
get: function () {
|
|
111
|
+
return bcs_1.bcs.struct("Bag", {
|
|
112
|
+
id: structs_1.UID.bcs, size: bcs_1.bcs.u64()
|
|
113
|
+
});
|
|
114
|
+
},
|
|
115
|
+
enumerable: false,
|
|
116
|
+
configurable: true
|
|
117
|
+
});
|
|
118
|
+
;
|
|
119
|
+
Bag.fromFields = function (fields) { return Bag.reified().new({ id: (0, reified_1.decodeFromFields)(structs_1.UID.reified(), fields.id), size: (0, reified_1.decodeFromFields)("u64", fields.size) }); };
|
|
120
|
+
Bag.fromFieldsWithTypes = function (item) {
|
|
121
|
+
if (!isBag(item.type)) {
|
|
122
|
+
throw new Error("not a Bag type");
|
|
123
|
+
}
|
|
124
|
+
return Bag.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.UID.reified(), item.fields.id), size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size) });
|
|
125
|
+
};
|
|
126
|
+
Bag.fromBcs = function (data) { return Bag.fromFields(Bag.bcs.parse(data)); };
|
|
127
|
+
Bag.prototype.toJSONField = function () {
|
|
128
|
+
return {
|
|
129
|
+
id: this.id, size: this.size.toString(),
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
Bag.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
133
|
+
Bag.fromJSONField = function (field) { return Bag.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_1.UID.reified(), field.id), size: (0, reified_1.decodeFromJSONField)("u64", field.size) }); };
|
|
134
|
+
Bag.fromJSON = function (json) {
|
|
135
|
+
if (json.$typeName !== Bag.$typeName) {
|
|
136
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
137
|
+
}
|
|
138
|
+
;
|
|
139
|
+
return Bag.fromJSONField(json);
|
|
140
|
+
};
|
|
141
|
+
Bag.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
142
|
+
throw new Error("not an object");
|
|
143
|
+
} if (!isBag(content.type)) {
|
|
144
|
+
throw new Error("object at ".concat(content.fields.id, " is not a Bag object"));
|
|
145
|
+
} return Bag.fromFieldsWithTypes(content); };
|
|
146
|
+
Bag.fetch = function (client, id) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
148
|
+
var res;
|
|
149
|
+
var _a, _b;
|
|
150
|
+
return __generator(this, function (_c) {
|
|
151
|
+
switch (_c.label) {
|
|
152
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
153
|
+
case 1:
|
|
154
|
+
res = _c.sent();
|
|
155
|
+
if (res.error) {
|
|
156
|
+
throw new Error("error fetching Bag object at id ".concat(id, ": ").concat(res.error.code));
|
|
157
|
+
}
|
|
158
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isBag(res.data.bcs.type)) {
|
|
159
|
+
throw new Error("object at id ".concat(id, " is not a Bag object"));
|
|
160
|
+
}
|
|
161
|
+
return [2 /*return*/, Bag.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
};
|
|
166
|
+
Bag.$typeName = "0x2::bag::Bag";
|
|
167
|
+
Bag.$numTypeParams = 0;
|
|
168
|
+
return Bag;
|
|
169
|
+
}());
|
|
170
|
+
exports.Bag = Bag;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { PhantomReified, PhantomToTypeStr, PhantomTypeArgument, Reified, StructClass, ToField, ToPhantomTypeArgument, ToTypeStr } from "../../../../_framework/reified";
|
|
2
|
+
import { FieldsWithTypes } from "../../../../_framework/util";
|
|
3
|
+
import { SuiClient, SuiParsedData } from "@mysten/sui.js/client";
|
|
4
|
+
export declare function isBalance(type: string): boolean;
|
|
5
|
+
export interface BalanceFields<T extends PhantomTypeArgument> {
|
|
6
|
+
value: ToField<"u64">;
|
|
7
|
+
}
|
|
8
|
+
export type BalanceReified<T extends PhantomTypeArgument> = Reified<Balance<T>, BalanceFields<T>>;
|
|
9
|
+
export declare class Balance<T extends PhantomTypeArgument> implements StructClass {
|
|
10
|
+
static readonly $typeName = "0x2::balance::Balance";
|
|
11
|
+
static readonly $numTypeParams = 1;
|
|
12
|
+
readonly $typeName = "0x2::balance::Balance";
|
|
13
|
+
readonly $fullTypeName: `0x2::balance::Balance<${PhantomToTypeStr<T>}>`;
|
|
14
|
+
readonly $typeArgs: [PhantomToTypeStr<T>];
|
|
15
|
+
readonly value: ToField<"u64">;
|
|
16
|
+
private constructor();
|
|
17
|
+
static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): BalanceReified<ToPhantomTypeArgument<T>>;
|
|
18
|
+
static get r(): typeof Balance.reified;
|
|
19
|
+
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<Balance<ToPhantomTypeArgument<T>>>>;
|
|
20
|
+
static get p(): typeof Balance.phantom;
|
|
21
|
+
static get bcs(): import("@mysten/bcs").BcsType<{
|
|
22
|
+
value: string;
|
|
23
|
+
}, {
|
|
24
|
+
value: string | number | bigint;
|
|
25
|
+
}>;
|
|
26
|
+
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): Balance<ToPhantomTypeArgument<T>>;
|
|
27
|
+
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): Balance<ToPhantomTypeArgument<T>>;
|
|
28
|
+
static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): Balance<ToPhantomTypeArgument<T>>;
|
|
29
|
+
toJSONField(): {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
32
|
+
toJSON(): {
|
|
33
|
+
value: string;
|
|
34
|
+
$typeName: string;
|
|
35
|
+
$typeArgs: [PhantomToTypeStr<T>];
|
|
36
|
+
};
|
|
37
|
+
static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): Balance<ToPhantomTypeArgument<T>>;
|
|
38
|
+
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): Balance<ToPhantomTypeArgument<T>>;
|
|
39
|
+
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): Balance<ToPhantomTypeArgument<T>>;
|
|
40
|
+
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<Balance<ToPhantomTypeArgument<T>>>;
|
|
41
|
+
}
|
|
42
|
+
export declare function isSupply(type: string): boolean;
|
|
43
|
+
export interface SupplyFields<T extends PhantomTypeArgument> {
|
|
44
|
+
value: ToField<"u64">;
|
|
45
|
+
}
|
|
46
|
+
export type SupplyReified<T extends PhantomTypeArgument> = Reified<Supply<T>, SupplyFields<T>>;
|
|
47
|
+
export declare class Supply<T extends PhantomTypeArgument> implements StructClass {
|
|
48
|
+
static readonly $typeName = "0x2::balance::Supply";
|
|
49
|
+
static readonly $numTypeParams = 1;
|
|
50
|
+
readonly $typeName = "0x2::balance::Supply";
|
|
51
|
+
readonly $fullTypeName: `0x2::balance::Supply<${PhantomToTypeStr<T>}>`;
|
|
52
|
+
readonly $typeArgs: [PhantomToTypeStr<T>];
|
|
53
|
+
readonly value: ToField<"u64">;
|
|
54
|
+
private constructor();
|
|
55
|
+
static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): SupplyReified<ToPhantomTypeArgument<T>>;
|
|
56
|
+
static get r(): typeof Supply.reified;
|
|
57
|
+
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<Supply<ToPhantomTypeArgument<T>>>>;
|
|
58
|
+
static get p(): typeof Supply.phantom;
|
|
59
|
+
static get bcs(): import("@mysten/bcs").BcsType<{
|
|
60
|
+
value: string;
|
|
61
|
+
}, {
|
|
62
|
+
value: string | number | bigint;
|
|
63
|
+
}>;
|
|
64
|
+
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): Supply<ToPhantomTypeArgument<T>>;
|
|
65
|
+
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): Supply<ToPhantomTypeArgument<T>>;
|
|
66
|
+
static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): Supply<ToPhantomTypeArgument<T>>;
|
|
67
|
+
toJSONField(): {
|
|
68
|
+
value: string;
|
|
69
|
+
};
|
|
70
|
+
toJSON(): {
|
|
71
|
+
value: string;
|
|
72
|
+
$typeName: string;
|
|
73
|
+
$typeArgs: [PhantomToTypeStr<T>];
|
|
74
|
+
};
|
|
75
|
+
static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): Supply<ToPhantomTypeArgument<T>>;
|
|
76
|
+
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): Supply<ToPhantomTypeArgument<T>>;
|
|
77
|
+
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): Supply<ToPhantomTypeArgument<T>>;
|
|
78
|
+
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<Supply<ToPhantomTypeArgument<T>>>;
|
|
79
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
+
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;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
50
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
51
|
+
if (!m) return o;
|
|
52
|
+
var i = m.call(o), r, ar = [], e;
|
|
53
|
+
try {
|
|
54
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
55
|
+
}
|
|
56
|
+
catch (error) { e = { error: error }; }
|
|
57
|
+
finally {
|
|
58
|
+
try {
|
|
59
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
60
|
+
}
|
|
61
|
+
finally { if (e) throw e.error; }
|
|
62
|
+
}
|
|
63
|
+
return ar;
|
|
64
|
+
};
|
|
65
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
66
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
67
|
+
if (ar || !(i in from)) {
|
|
68
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
69
|
+
ar[i] = from[i];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
73
|
+
};
|
|
74
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75
|
+
exports.Supply = exports.Balance = void 0;
|
|
76
|
+
exports.isBalance = isBalance;
|
|
77
|
+
exports.isSupply = isSupply;
|
|
78
|
+
var reified_1 = require("../../../../_framework/reified");
|
|
79
|
+
var util_1 = require("../../../../_framework/util");
|
|
80
|
+
var bcs_1 = require("@mysten/bcs");
|
|
81
|
+
/* ============================== Balance =============================== */
|
|
82
|
+
function isBalance(type) { type = (0, util_1.compressSuiType)(type); return type.startsWith("0x2::balance::Balance<"); }
|
|
83
|
+
var Balance = /** @class */ (function () {
|
|
84
|
+
function Balance(typeArgs, fields) {
|
|
85
|
+
this.$typeName = Balance.$typeName;
|
|
86
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Balance.$typeName], __read(typeArgs), false));
|
|
87
|
+
this.$typeArgs = typeArgs;
|
|
88
|
+
this.value = fields.value;
|
|
89
|
+
}
|
|
90
|
+
Balance.reified = function (T) {
|
|
91
|
+
var _this = this;
|
|
92
|
+
return { typeName: Balance.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Balance.$typeName], [(0, reified_1.extractType)(T)], false)), typeArgs: [(0, reified_1.extractType)(T)], reifiedTypeArgs: [T], fromFields: function (fields) { return Balance.fromFields(T, fields); }, fromFieldsWithTypes: function (item) { return Balance.fromFieldsWithTypes(T, item); }, fromBcs: function (data) { return Balance.fromBcs(T, data); }, bcs: Balance.bcs, fromJSONField: function (field) { return Balance.fromJSONField(T, field); }, fromJSON: function (json) { return Balance.fromJSON(T, json); }, fromSuiParsedData: function (content) { return Balance.fromSuiParsedData(T, content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
93
|
+
return [2 /*return*/, Balance.fetch(client, T, id)];
|
|
94
|
+
}); }); }, new: function (fields) { return new Balance([(0, reified_1.extractType)(T)], fields); }, kind: "StructClassReified", };
|
|
95
|
+
};
|
|
96
|
+
Object.defineProperty(Balance, "r", {
|
|
97
|
+
get: function () { return Balance.reified; },
|
|
98
|
+
enumerable: false,
|
|
99
|
+
configurable: true
|
|
100
|
+
});
|
|
101
|
+
Balance.phantom = function (T) { return (0, reified_1.phantom)(Balance.reified(T)); };
|
|
102
|
+
Object.defineProperty(Balance, "p", {
|
|
103
|
+
get: function () { return Balance.phantom; },
|
|
104
|
+
enumerable: false,
|
|
105
|
+
configurable: true
|
|
106
|
+
});
|
|
107
|
+
Object.defineProperty(Balance, "bcs", {
|
|
108
|
+
get: function () {
|
|
109
|
+
return bcs_1.bcs.struct("Balance", {
|
|
110
|
+
value: bcs_1.bcs.u64()
|
|
111
|
+
});
|
|
112
|
+
},
|
|
113
|
+
enumerable: false,
|
|
114
|
+
configurable: true
|
|
115
|
+
});
|
|
116
|
+
;
|
|
117
|
+
Balance.fromFields = function (typeArg, fields) { return Balance.reified(typeArg).new({ value: (0, reified_1.decodeFromFields)("u64", fields.value) }); };
|
|
118
|
+
Balance.fromFieldsWithTypes = function (typeArg, item) {
|
|
119
|
+
if (!isBalance(item.type)) {
|
|
120
|
+
throw new Error("not a Balance type");
|
|
121
|
+
}
|
|
122
|
+
(0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
|
|
123
|
+
return Balance.reified(typeArg).new({ value: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.value) });
|
|
124
|
+
};
|
|
125
|
+
Balance.fromBcs = function (typeArg, data) { return Balance.fromFields(typeArg, Balance.bcs.parse(data)); };
|
|
126
|
+
Balance.prototype.toJSONField = function () {
|
|
127
|
+
return {
|
|
128
|
+
value: this.value.toString(),
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
Balance.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
132
|
+
Balance.fromJSONField = function (typeArg, field) { return Balance.reified(typeArg).new({ value: (0, reified_1.decodeFromJSONField)("u64", field.value) }); };
|
|
133
|
+
Balance.fromJSON = function (typeArg, json) {
|
|
134
|
+
if (json.$typeName !== Balance.$typeName) {
|
|
135
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
136
|
+
}
|
|
137
|
+
;
|
|
138
|
+
(0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(Balance.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
|
|
139
|
+
return Balance.fromJSONField(typeArg, json);
|
|
140
|
+
};
|
|
141
|
+
Balance.fromSuiParsedData = function (typeArg, content) { if (content.dataType !== "moveObject") {
|
|
142
|
+
throw new Error("not an object");
|
|
143
|
+
} if (!isBalance(content.type)) {
|
|
144
|
+
throw new Error("object at ".concat(content.fields.id, " is not a Balance object"));
|
|
145
|
+
} return Balance.fromFieldsWithTypes(typeArg, content); };
|
|
146
|
+
Balance.fetch = function (client, typeArg, id) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
148
|
+
var res;
|
|
149
|
+
var _a, _b;
|
|
150
|
+
return __generator(this, function (_c) {
|
|
151
|
+
switch (_c.label) {
|
|
152
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
153
|
+
case 1:
|
|
154
|
+
res = _c.sent();
|
|
155
|
+
if (res.error) {
|
|
156
|
+
throw new Error("error fetching Balance object at id ".concat(id, ": ").concat(res.error.code));
|
|
157
|
+
}
|
|
158
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isBalance(res.data.bcs.type)) {
|
|
159
|
+
throw new Error("object at id ".concat(id, " is not a Balance object"));
|
|
160
|
+
}
|
|
161
|
+
return [2 /*return*/, Balance.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
};
|
|
166
|
+
Balance.$typeName = "0x2::balance::Balance";
|
|
167
|
+
Balance.$numTypeParams = 1;
|
|
168
|
+
return Balance;
|
|
169
|
+
}());
|
|
170
|
+
exports.Balance = Balance;
|
|
171
|
+
/* ============================== Supply =============================== */
|
|
172
|
+
function isSupply(type) { type = (0, util_1.compressSuiType)(type); return type.startsWith("0x2::balance::Supply<"); }
|
|
173
|
+
var Supply = /** @class */ (function () {
|
|
174
|
+
function Supply(typeArgs, fields) {
|
|
175
|
+
this.$typeName = Supply.$typeName;
|
|
176
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Supply.$typeName], __read(typeArgs), false));
|
|
177
|
+
this.$typeArgs = typeArgs;
|
|
178
|
+
this.value = fields.value;
|
|
179
|
+
}
|
|
180
|
+
Supply.reified = function (T) {
|
|
181
|
+
var _this = this;
|
|
182
|
+
return { typeName: Supply.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Supply.$typeName], [(0, reified_1.extractType)(T)], false)), typeArgs: [(0, reified_1.extractType)(T)], reifiedTypeArgs: [T], fromFields: function (fields) { return Supply.fromFields(T, fields); }, fromFieldsWithTypes: function (item) { return Supply.fromFieldsWithTypes(T, item); }, fromBcs: function (data) { return Supply.fromBcs(T, data); }, bcs: Supply.bcs, fromJSONField: function (field) { return Supply.fromJSONField(T, field); }, fromJSON: function (json) { return Supply.fromJSON(T, json); }, fromSuiParsedData: function (content) { return Supply.fromSuiParsedData(T, content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
183
|
+
return [2 /*return*/, Supply.fetch(client, T, id)];
|
|
184
|
+
}); }); }, new: function (fields) { return new Supply([(0, reified_1.extractType)(T)], fields); }, kind: "StructClassReified", };
|
|
185
|
+
};
|
|
186
|
+
Object.defineProperty(Supply, "r", {
|
|
187
|
+
get: function () { return Supply.reified; },
|
|
188
|
+
enumerable: false,
|
|
189
|
+
configurable: true
|
|
190
|
+
});
|
|
191
|
+
Supply.phantom = function (T) { return (0, reified_1.phantom)(Supply.reified(T)); };
|
|
192
|
+
Object.defineProperty(Supply, "p", {
|
|
193
|
+
get: function () { return Supply.phantom; },
|
|
194
|
+
enumerable: false,
|
|
195
|
+
configurable: true
|
|
196
|
+
});
|
|
197
|
+
Object.defineProperty(Supply, "bcs", {
|
|
198
|
+
get: function () {
|
|
199
|
+
return bcs_1.bcs.struct("Supply", {
|
|
200
|
+
value: bcs_1.bcs.u64()
|
|
201
|
+
});
|
|
202
|
+
},
|
|
203
|
+
enumerable: false,
|
|
204
|
+
configurable: true
|
|
205
|
+
});
|
|
206
|
+
;
|
|
207
|
+
Supply.fromFields = function (typeArg, fields) { return Supply.reified(typeArg).new({ value: (0, reified_1.decodeFromFields)("u64", fields.value) }); };
|
|
208
|
+
Supply.fromFieldsWithTypes = function (typeArg, item) {
|
|
209
|
+
if (!isSupply(item.type)) {
|
|
210
|
+
throw new Error("not a Supply type");
|
|
211
|
+
}
|
|
212
|
+
(0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
|
|
213
|
+
return Supply.reified(typeArg).new({ value: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.value) });
|
|
214
|
+
};
|
|
215
|
+
Supply.fromBcs = function (typeArg, data) { return Supply.fromFields(typeArg, Supply.bcs.parse(data)); };
|
|
216
|
+
Supply.prototype.toJSONField = function () {
|
|
217
|
+
return {
|
|
218
|
+
value: this.value.toString(),
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
Supply.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
222
|
+
Supply.fromJSONField = function (typeArg, field) { return Supply.reified(typeArg).new({ value: (0, reified_1.decodeFromJSONField)("u64", field.value) }); };
|
|
223
|
+
Supply.fromJSON = function (typeArg, json) {
|
|
224
|
+
if (json.$typeName !== Supply.$typeName) {
|
|
225
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
226
|
+
}
|
|
227
|
+
;
|
|
228
|
+
(0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(Supply.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
|
|
229
|
+
return Supply.fromJSONField(typeArg, json);
|
|
230
|
+
};
|
|
231
|
+
Supply.fromSuiParsedData = function (typeArg, content) { if (content.dataType !== "moveObject") {
|
|
232
|
+
throw new Error("not an object");
|
|
233
|
+
} if (!isSupply(content.type)) {
|
|
234
|
+
throw new Error("object at ".concat(content.fields.id, " is not a Supply object"));
|
|
235
|
+
} return Supply.fromFieldsWithTypes(typeArg, content); };
|
|
236
|
+
Supply.fetch = function (client, typeArg, id) {
|
|
237
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
238
|
+
var res;
|
|
239
|
+
var _a, _b;
|
|
240
|
+
return __generator(this, function (_c) {
|
|
241
|
+
switch (_c.label) {
|
|
242
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
243
|
+
case 1:
|
|
244
|
+
res = _c.sent();
|
|
245
|
+
if (res.error) {
|
|
246
|
+
throw new Error("error fetching Supply object at id ".concat(id, ": ").concat(res.error.code));
|
|
247
|
+
}
|
|
248
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isSupply(res.data.bcs.type)) {
|
|
249
|
+
throw new Error("object at id ".concat(id, " is not a Supply object"));
|
|
250
|
+
}
|
|
251
|
+
return [2 /*return*/, Supply.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
};
|
|
256
|
+
Supply.$typeName = "0x2::balance::Supply";
|
|
257
|
+
Supply.$numTypeParams = 1;
|
|
258
|
+
return Supply;
|
|
259
|
+
}());
|
|
260
|
+
exports.Supply = Supply;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as reified from "../../../../_framework/reified";
|
|
2
|
+
import { PhantomReified, Reified, StructClass, ToField, ToTypeStr, Vector } from "../../../../_framework/reified";
|
|
3
|
+
import { FieldsWithTypes } from "../../../../_framework/util";
|
|
4
|
+
import { SuiClient, SuiParsedData } from "@mysten/sui.js/client";
|
|
5
|
+
export declare function isBCS(type: string): boolean;
|
|
6
|
+
export interface BCSFields {
|
|
7
|
+
bytes: ToField<Vector<"u8">>;
|
|
8
|
+
}
|
|
9
|
+
export type BCSReified = Reified<BCS, BCSFields>;
|
|
10
|
+
export declare class BCS implements StructClass {
|
|
11
|
+
static readonly $typeName = "0x2::bcs::BCS";
|
|
12
|
+
static readonly $numTypeParams = 0;
|
|
13
|
+
readonly $typeName = "0x2::bcs::BCS";
|
|
14
|
+
readonly $fullTypeName: "0x2::bcs::BCS";
|
|
15
|
+
readonly $typeArgs: [];
|
|
16
|
+
readonly bytes: ToField<Vector<"u8">>;
|
|
17
|
+
private constructor();
|
|
18
|
+
static reified(): BCSReified;
|
|
19
|
+
static get r(): reified.StructClassReified<BCS, BCSFields>;
|
|
20
|
+
static phantom(): PhantomReified<ToTypeStr<BCS>>;
|
|
21
|
+
static get p(): reified.PhantomReified<"0x2::bcs::BCS">;
|
|
22
|
+
static get bcs(): import("@mysten/bcs").BcsType<{
|
|
23
|
+
bytes: number[];
|
|
24
|
+
}, {
|
|
25
|
+
bytes: Iterable<number> & {
|
|
26
|
+
length: number;
|
|
27
|
+
};
|
|
28
|
+
}>;
|
|
29
|
+
static fromFields(fields: Record<string, any>): BCS;
|
|
30
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): BCS;
|
|
31
|
+
static fromBcs(data: Uint8Array): BCS;
|
|
32
|
+
toJSONField(): {
|
|
33
|
+
bytes: number[];
|
|
34
|
+
};
|
|
35
|
+
toJSON(): {
|
|
36
|
+
bytes: number[];
|
|
37
|
+
$typeName: string;
|
|
38
|
+
$typeArgs: [];
|
|
39
|
+
};
|
|
40
|
+
static fromJSONField(field: any): BCS;
|
|
41
|
+
static fromJSON(json: Record<string, any>): BCS;
|
|
42
|
+
static fromSuiParsedData(content: SuiParsedData): BCS;
|
|
43
|
+
static fetch(client: SuiClient, id: string): Promise<BCS>;
|
|
44
|
+
}
|