@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,1643 @@
|
|
|
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.UpdateUrlEvent = exports.UpdateDepositEvent = exports.UnstakeNftEvent = exports.TransferNftEvent = exports.StakeNftEvent = exports.SnapshotNftEvent = exports.ProfitSharingEvent = exports.ProfitSharing = exports.PartnerKey = exports.Partner = exports.DailyAttendEvent = exports.ClaimProfitSharingEventV2 = exports.ClaimProfitSharingEvent = exports.NftExtension = exports.LevelUpEvent = exports.WithdrawEvent = void 0;
|
|
99
|
+
exports.isWithdrawEvent = isWithdrawEvent;
|
|
100
|
+
exports.isLevelUpEvent = isLevelUpEvent;
|
|
101
|
+
exports.isNftExtension = isNftExtension;
|
|
102
|
+
exports.isClaimProfitSharingEvent = isClaimProfitSharingEvent;
|
|
103
|
+
exports.isClaimProfitSharingEventV2 = isClaimProfitSharingEventV2;
|
|
104
|
+
exports.isDailyAttendEvent = isDailyAttendEvent;
|
|
105
|
+
exports.isPartner = isPartner;
|
|
106
|
+
exports.isPartnerKey = isPartnerKey;
|
|
107
|
+
exports.isProfitSharing = isProfitSharing;
|
|
108
|
+
exports.isProfitSharingEvent = isProfitSharingEvent;
|
|
109
|
+
exports.isSnapshotNftEvent = isSnapshotNftEvent;
|
|
110
|
+
exports.isStakeNftEvent = isStakeNftEvent;
|
|
111
|
+
exports.isTransferNftEvent = isTransferNftEvent;
|
|
112
|
+
exports.isUnstakeNftEvent = isUnstakeNftEvent;
|
|
113
|
+
exports.isUpdateDepositEvent = isUpdateDepositEvent;
|
|
114
|
+
exports.isUpdateUrlEvent = isUpdateUrlEvent;
|
|
115
|
+
var reified = __importStar(require("../../../../_framework/reified"));
|
|
116
|
+
var reified_1 = require("../../../../_framework/reified");
|
|
117
|
+
var util_1 = require("../../../../_framework/util");
|
|
118
|
+
var structs_1 = require("../../0x1/string/structs");
|
|
119
|
+
var structs_2 = require("../../0x1/type-name/structs");
|
|
120
|
+
var structs_3 = require("../../0x2/balance/structs");
|
|
121
|
+
var structs_4 = require("../../0x2/object-table/structs");
|
|
122
|
+
var structs_5 = require("../../0x2/object/structs");
|
|
123
|
+
var structs_6 = require("../../0x2/sui/structs");
|
|
124
|
+
var structs_7 = require("../../0x2/transfer-policy/structs");
|
|
125
|
+
var structs_8 = require("../../0x2/vec-map/structs");
|
|
126
|
+
var structs_9 = require("../../0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs");
|
|
127
|
+
var bcs_1 = require("@mysten/bcs");
|
|
128
|
+
/* ============================== WithdrawEvent =============================== */
|
|
129
|
+
function isWithdrawEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::WithdrawEvent"; }
|
|
130
|
+
var WithdrawEvent = /** @class */ (function () {
|
|
131
|
+
function WithdrawEvent(typeArgs, fields) {
|
|
132
|
+
this.$typeName = WithdrawEvent.$typeName;
|
|
133
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawEvent.$typeName], __read(typeArgs), false));
|
|
134
|
+
this.$typeArgs = typeArgs;
|
|
135
|
+
this.sender = fields.sender;
|
|
136
|
+
;
|
|
137
|
+
this.receiver = fields.receiver;
|
|
138
|
+
;
|
|
139
|
+
this.amount = fields.amount;
|
|
140
|
+
}
|
|
141
|
+
WithdrawEvent.reified = function () {
|
|
142
|
+
var _this = this;
|
|
143
|
+
return { typeName: WithdrawEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return WithdrawEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return WithdrawEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return WithdrawEvent.fromBcs(data); }, bcs: WithdrawEvent.bcs, fromJSONField: function (field) { return WithdrawEvent.fromJSONField(field); }, fromJSON: function (json) { return WithdrawEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return WithdrawEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
144
|
+
return [2 /*return*/, WithdrawEvent.fetch(client, id)];
|
|
145
|
+
}); }); }, new: function (fields) { return new WithdrawEvent([], fields); }, kind: "StructClassReified", };
|
|
146
|
+
};
|
|
147
|
+
Object.defineProperty(WithdrawEvent, "r", {
|
|
148
|
+
get: function () { return WithdrawEvent.reified(); },
|
|
149
|
+
enumerable: false,
|
|
150
|
+
configurable: true
|
|
151
|
+
});
|
|
152
|
+
WithdrawEvent.phantom = function () { return (0, reified_1.phantom)(WithdrawEvent.reified()); };
|
|
153
|
+
Object.defineProperty(WithdrawEvent, "p", {
|
|
154
|
+
get: function () { return WithdrawEvent.phantom(); },
|
|
155
|
+
enumerable: false,
|
|
156
|
+
configurable: true
|
|
157
|
+
});
|
|
158
|
+
Object.defineProperty(WithdrawEvent, "bcs", {
|
|
159
|
+
get: function () {
|
|
160
|
+
return bcs_1.bcs.struct("WithdrawEvent", {
|
|
161
|
+
sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), receiver: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), amount: bcs_1.bcs.u64()
|
|
162
|
+
});
|
|
163
|
+
},
|
|
164
|
+
enumerable: false,
|
|
165
|
+
configurable: true
|
|
166
|
+
});
|
|
167
|
+
;
|
|
168
|
+
WithdrawEvent.fromFields = function (fields) { return WithdrawEvent.reified().new({ sender: (0, reified_1.decodeFromFields)("address", fields.sender), receiver: (0, reified_1.decodeFromFields)("address", fields.receiver), amount: (0, reified_1.decodeFromFields)("u64", fields.amount) }); };
|
|
169
|
+
WithdrawEvent.fromFieldsWithTypes = function (item) {
|
|
170
|
+
if (!isWithdrawEvent(item.type)) {
|
|
171
|
+
throw new Error("not a WithdrawEvent type");
|
|
172
|
+
}
|
|
173
|
+
return WithdrawEvent.reified().new({ sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender), receiver: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.receiver), amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount) });
|
|
174
|
+
};
|
|
175
|
+
WithdrawEvent.fromBcs = function (data) { return WithdrawEvent.fromFields(WithdrawEvent.bcs.parse(data)); };
|
|
176
|
+
WithdrawEvent.prototype.toJSONField = function () {
|
|
177
|
+
return {
|
|
178
|
+
sender: this.sender, receiver: this.receiver, amount: this.amount.toString(),
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
WithdrawEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
182
|
+
WithdrawEvent.fromJSONField = function (field) { return WithdrawEvent.reified().new({ sender: (0, reified_1.decodeFromJSONField)("address", field.sender), receiver: (0, reified_1.decodeFromJSONField)("address", field.receiver), amount: (0, reified_1.decodeFromJSONField)("u64", field.amount) }); };
|
|
183
|
+
WithdrawEvent.fromJSON = function (json) {
|
|
184
|
+
if (json.$typeName !== WithdrawEvent.$typeName) {
|
|
185
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
186
|
+
}
|
|
187
|
+
;
|
|
188
|
+
return WithdrawEvent.fromJSONField(json);
|
|
189
|
+
};
|
|
190
|
+
WithdrawEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
191
|
+
throw new Error("not an object");
|
|
192
|
+
} if (!isWithdrawEvent(content.type)) {
|
|
193
|
+
throw new Error("object at ".concat(content.fields.id, " is not a WithdrawEvent object"));
|
|
194
|
+
} return WithdrawEvent.fromFieldsWithTypes(content); };
|
|
195
|
+
WithdrawEvent.fetch = function (client, id) {
|
|
196
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
197
|
+
var res;
|
|
198
|
+
var _a, _b;
|
|
199
|
+
return __generator(this, function (_c) {
|
|
200
|
+
switch (_c.label) {
|
|
201
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
202
|
+
case 1:
|
|
203
|
+
res = _c.sent();
|
|
204
|
+
if (res.error) {
|
|
205
|
+
throw new Error("error fetching WithdrawEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
206
|
+
}
|
|
207
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isWithdrawEvent(res.data.bcs.type)) {
|
|
208
|
+
throw new Error("object at id ".concat(id, " is not a WithdrawEvent object"));
|
|
209
|
+
}
|
|
210
|
+
return [2 /*return*/, WithdrawEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
WithdrawEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::WithdrawEvent";
|
|
216
|
+
WithdrawEvent.$numTypeParams = 0;
|
|
217
|
+
return WithdrawEvent;
|
|
218
|
+
}());
|
|
219
|
+
exports.WithdrawEvent = WithdrawEvent;
|
|
220
|
+
/* ============================== LevelUpEvent =============================== */
|
|
221
|
+
function isLevelUpEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::LevelUpEvent"; }
|
|
222
|
+
var LevelUpEvent = /** @class */ (function () {
|
|
223
|
+
function LevelUpEvent(typeArgs, fields) {
|
|
224
|
+
this.$typeName = LevelUpEvent.$typeName;
|
|
225
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([LevelUpEvent.$typeName], __read(typeArgs), false));
|
|
226
|
+
this.$typeArgs = typeArgs;
|
|
227
|
+
this.nftId = fields.nftId;
|
|
228
|
+
;
|
|
229
|
+
this.number = fields.number;
|
|
230
|
+
;
|
|
231
|
+
this.sender = fields.sender;
|
|
232
|
+
;
|
|
233
|
+
this.level = fields.level;
|
|
234
|
+
}
|
|
235
|
+
LevelUpEvent.reified = function () {
|
|
236
|
+
var _this = this;
|
|
237
|
+
return { typeName: LevelUpEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([LevelUpEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return LevelUpEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return LevelUpEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return LevelUpEvent.fromBcs(data); }, bcs: LevelUpEvent.bcs, fromJSONField: function (field) { return LevelUpEvent.fromJSONField(field); }, fromJSON: function (json) { return LevelUpEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return LevelUpEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
238
|
+
return [2 /*return*/, LevelUpEvent.fetch(client, id)];
|
|
239
|
+
}); }); }, new: function (fields) { return new LevelUpEvent([], fields); }, kind: "StructClassReified", };
|
|
240
|
+
};
|
|
241
|
+
Object.defineProperty(LevelUpEvent, "r", {
|
|
242
|
+
get: function () { return LevelUpEvent.reified(); },
|
|
243
|
+
enumerable: false,
|
|
244
|
+
configurable: true
|
|
245
|
+
});
|
|
246
|
+
LevelUpEvent.phantom = function () { return (0, reified_1.phantom)(LevelUpEvent.reified()); };
|
|
247
|
+
Object.defineProperty(LevelUpEvent, "p", {
|
|
248
|
+
get: function () { return LevelUpEvent.phantom(); },
|
|
249
|
+
enumerable: false,
|
|
250
|
+
configurable: true
|
|
251
|
+
});
|
|
252
|
+
Object.defineProperty(LevelUpEvent, "bcs", {
|
|
253
|
+
get: function () {
|
|
254
|
+
return bcs_1.bcs.struct("LevelUpEvent", {
|
|
255
|
+
nft_id: structs_5.ID.bcs, number: bcs_1.bcs.u64(), sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), level: bcs_1.bcs.u64()
|
|
256
|
+
});
|
|
257
|
+
},
|
|
258
|
+
enumerable: false,
|
|
259
|
+
configurable: true
|
|
260
|
+
});
|
|
261
|
+
;
|
|
262
|
+
LevelUpEvent.fromFields = function (fields) { return LevelUpEvent.reified().new({ nftId: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.nft_id), number: (0, reified_1.decodeFromFields)("u64", fields.number), sender: (0, reified_1.decodeFromFields)("address", fields.sender), level: (0, reified_1.decodeFromFields)("u64", fields.level) }); };
|
|
263
|
+
LevelUpEvent.fromFieldsWithTypes = function (item) {
|
|
264
|
+
if (!isLevelUpEvent(item.type)) {
|
|
265
|
+
throw new Error("not a LevelUpEvent type");
|
|
266
|
+
}
|
|
267
|
+
return LevelUpEvent.reified().new({ nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.nft_id), number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number), sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender), level: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.level) });
|
|
268
|
+
};
|
|
269
|
+
LevelUpEvent.fromBcs = function (data) { return LevelUpEvent.fromFields(LevelUpEvent.bcs.parse(data)); };
|
|
270
|
+
LevelUpEvent.prototype.toJSONField = function () {
|
|
271
|
+
return {
|
|
272
|
+
nftId: this.nftId, number: this.number.toString(), sender: this.sender, level: this.level.toString(),
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
LevelUpEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
276
|
+
LevelUpEvent.fromJSONField = function (field) { return LevelUpEvent.reified().new({ nftId: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.nftId), number: (0, reified_1.decodeFromJSONField)("u64", field.number), sender: (0, reified_1.decodeFromJSONField)("address", field.sender), level: (0, reified_1.decodeFromJSONField)("u64", field.level) }); };
|
|
277
|
+
LevelUpEvent.fromJSON = function (json) {
|
|
278
|
+
if (json.$typeName !== LevelUpEvent.$typeName) {
|
|
279
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
280
|
+
}
|
|
281
|
+
;
|
|
282
|
+
return LevelUpEvent.fromJSONField(json);
|
|
283
|
+
};
|
|
284
|
+
LevelUpEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
285
|
+
throw new Error("not an object");
|
|
286
|
+
} if (!isLevelUpEvent(content.type)) {
|
|
287
|
+
throw new Error("object at ".concat(content.fields.id, " is not a LevelUpEvent object"));
|
|
288
|
+
} return LevelUpEvent.fromFieldsWithTypes(content); };
|
|
289
|
+
LevelUpEvent.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 LevelUpEvent 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" || !isLevelUpEvent(res.data.bcs.type)) {
|
|
302
|
+
throw new Error("object at id ".concat(id, " is not a LevelUpEvent object"));
|
|
303
|
+
}
|
|
304
|
+
return [2 /*return*/, LevelUpEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
});
|
|
308
|
+
};
|
|
309
|
+
LevelUpEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::LevelUpEvent";
|
|
310
|
+
LevelUpEvent.$numTypeParams = 0;
|
|
311
|
+
return LevelUpEvent;
|
|
312
|
+
}());
|
|
313
|
+
exports.LevelUpEvent = LevelUpEvent;
|
|
314
|
+
/* ============================== NftExtension =============================== */
|
|
315
|
+
function isNftExtension(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::NftExtension"; }
|
|
316
|
+
var NftExtension = /** @class */ (function () {
|
|
317
|
+
function NftExtension(typeArgs, fields) {
|
|
318
|
+
this.$typeName = NftExtension.$typeName;
|
|
319
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NftExtension.$typeName], __read(typeArgs), false));
|
|
320
|
+
this.$typeArgs = typeArgs;
|
|
321
|
+
this.id = fields.id;
|
|
322
|
+
;
|
|
323
|
+
this.nftTable = fields.nftTable;
|
|
324
|
+
;
|
|
325
|
+
this.nftManagerCap = fields.nftManagerCap;
|
|
326
|
+
;
|
|
327
|
+
this.policy = fields.policy;
|
|
328
|
+
;
|
|
329
|
+
this.fee = fields.fee;
|
|
330
|
+
}
|
|
331
|
+
NftExtension.reified = function () {
|
|
332
|
+
var _this = this;
|
|
333
|
+
return { typeName: NftExtension.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NftExtension.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return NftExtension.fromFields(fields); }, fromFieldsWithTypes: function (item) { return NftExtension.fromFieldsWithTypes(item); }, fromBcs: function (data) { return NftExtension.fromBcs(data); }, bcs: NftExtension.bcs, fromJSONField: function (field) { return NftExtension.fromJSONField(field); }, fromJSON: function (json) { return NftExtension.fromJSON(json); }, fromSuiParsedData: function (content) { return NftExtension.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
334
|
+
return [2 /*return*/, NftExtension.fetch(client, id)];
|
|
335
|
+
}); }); }, new: function (fields) { return new NftExtension([], fields); }, kind: "StructClassReified", };
|
|
336
|
+
};
|
|
337
|
+
Object.defineProperty(NftExtension, "r", {
|
|
338
|
+
get: function () { return NftExtension.reified(); },
|
|
339
|
+
enumerable: false,
|
|
340
|
+
configurable: true
|
|
341
|
+
});
|
|
342
|
+
NftExtension.phantom = function () { return (0, reified_1.phantom)(NftExtension.reified()); };
|
|
343
|
+
Object.defineProperty(NftExtension, "p", {
|
|
344
|
+
get: function () { return NftExtension.phantom(); },
|
|
345
|
+
enumerable: false,
|
|
346
|
+
configurable: true
|
|
347
|
+
});
|
|
348
|
+
Object.defineProperty(NftExtension, "bcs", {
|
|
349
|
+
get: function () {
|
|
350
|
+
return bcs_1.bcs.struct("NftExtension", {
|
|
351
|
+
id: structs_5.UID.bcs, nft_table: structs_4.ObjectTable.bcs, nft_manager_cap: structs_9.ManagerCap.bcs, policy: structs_7.TransferPolicy.bcs, fee: structs_3.Balance.bcs
|
|
352
|
+
});
|
|
353
|
+
},
|
|
354
|
+
enumerable: false,
|
|
355
|
+
configurable: true
|
|
356
|
+
});
|
|
357
|
+
;
|
|
358
|
+
NftExtension.fromFields = function (fields) { return NftExtension.reified().new({ id: (0, reified_1.decodeFromFields)(structs_5.UID.reified(), fields.id), nftTable: (0, reified_1.decodeFromFields)(structs_4.ObjectTable.reified(reified.phantom("address"), reified.phantom(structs_9.Tails.reified())), fields.nft_table), nftManagerCap: (0, reified_1.decodeFromFields)(structs_9.ManagerCap.reified(), fields.nft_manager_cap), policy: (0, reified_1.decodeFromFields)(structs_7.TransferPolicy.reified(reified.phantom(structs_9.Tails.reified())), fields.policy), fee: (0, reified_1.decodeFromFields)(structs_3.Balance.reified(reified.phantom(structs_6.SUI.reified())), fields.fee) }); };
|
|
359
|
+
NftExtension.fromFieldsWithTypes = function (item) {
|
|
360
|
+
if (!isNftExtension(item.type)) {
|
|
361
|
+
throw new Error("not a NftExtension type");
|
|
362
|
+
}
|
|
363
|
+
return NftExtension.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.UID.reified(), item.fields.id), nftTable: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.ObjectTable.reified(reified.phantom("address"), reified.phantom(structs_9.Tails.reified())), item.fields.nft_table), nftManagerCap: (0, reified_1.decodeFromFieldsWithTypes)(structs_9.ManagerCap.reified(), item.fields.nft_manager_cap), policy: (0, reified_1.decodeFromFieldsWithTypes)(structs_7.TransferPolicy.reified(reified.phantom(structs_9.Tails.reified())), item.fields.policy), fee: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.Balance.reified(reified.phantom(structs_6.SUI.reified())), item.fields.fee) });
|
|
364
|
+
};
|
|
365
|
+
NftExtension.fromBcs = function (data) { return NftExtension.fromFields(NftExtension.bcs.parse(data)); };
|
|
366
|
+
NftExtension.prototype.toJSONField = function () {
|
|
367
|
+
return {
|
|
368
|
+
id: this.id, nftTable: this.nftTable.toJSONField(), nftManagerCap: this.nftManagerCap.toJSONField(), policy: this.policy.toJSONField(), fee: this.fee.toJSONField(),
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
NftExtension.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
372
|
+
NftExtension.fromJSONField = function (field) { return NftExtension.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_5.UID.reified(), field.id), nftTable: (0, reified_1.decodeFromJSONField)(structs_4.ObjectTable.reified(reified.phantom("address"), reified.phantom(structs_9.Tails.reified())), field.nftTable), nftManagerCap: (0, reified_1.decodeFromJSONField)(structs_9.ManagerCap.reified(), field.nftManagerCap), policy: (0, reified_1.decodeFromJSONField)(structs_7.TransferPolicy.reified(reified.phantom(structs_9.Tails.reified())), field.policy), fee: (0, reified_1.decodeFromJSONField)(structs_3.Balance.reified(reified.phantom(structs_6.SUI.reified())), field.fee) }); };
|
|
373
|
+
NftExtension.fromJSON = function (json) {
|
|
374
|
+
if (json.$typeName !== NftExtension.$typeName) {
|
|
375
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
376
|
+
}
|
|
377
|
+
;
|
|
378
|
+
return NftExtension.fromJSONField(json);
|
|
379
|
+
};
|
|
380
|
+
NftExtension.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
381
|
+
throw new Error("not an object");
|
|
382
|
+
} if (!isNftExtension(content.type)) {
|
|
383
|
+
throw new Error("object at ".concat(content.fields.id, " is not a NftExtension object"));
|
|
384
|
+
} return NftExtension.fromFieldsWithTypes(content); };
|
|
385
|
+
NftExtension.fetch = function (client, id) {
|
|
386
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
387
|
+
var res;
|
|
388
|
+
var _a, _b;
|
|
389
|
+
return __generator(this, function (_c) {
|
|
390
|
+
switch (_c.label) {
|
|
391
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
392
|
+
case 1:
|
|
393
|
+
res = _c.sent();
|
|
394
|
+
if (res.error) {
|
|
395
|
+
throw new Error("error fetching NftExtension object at id ".concat(id, ": ").concat(res.error.code));
|
|
396
|
+
}
|
|
397
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isNftExtension(res.data.bcs.type)) {
|
|
398
|
+
throw new Error("object at id ".concat(id, " is not a NftExtension object"));
|
|
399
|
+
}
|
|
400
|
+
return [2 /*return*/, NftExtension.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
});
|
|
404
|
+
};
|
|
405
|
+
NftExtension.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::NftExtension";
|
|
406
|
+
NftExtension.$numTypeParams = 0;
|
|
407
|
+
return NftExtension;
|
|
408
|
+
}());
|
|
409
|
+
exports.NftExtension = NftExtension;
|
|
410
|
+
/* ============================== ClaimProfitSharingEvent =============================== */
|
|
411
|
+
function isClaimProfitSharingEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::ClaimProfitSharingEvent"; }
|
|
412
|
+
var ClaimProfitSharingEvent = /** @class */ (function () {
|
|
413
|
+
function ClaimProfitSharingEvent(typeArgs, fields) {
|
|
414
|
+
this.$typeName = ClaimProfitSharingEvent.$typeName;
|
|
415
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ClaimProfitSharingEvent.$typeName], __read(typeArgs), false));
|
|
416
|
+
this.$typeArgs = typeArgs;
|
|
417
|
+
this.value = fields.value;
|
|
418
|
+
;
|
|
419
|
+
this.token = fields.token;
|
|
420
|
+
;
|
|
421
|
+
this.sender = fields.sender;
|
|
422
|
+
;
|
|
423
|
+
this.nftId = fields.nftId;
|
|
424
|
+
;
|
|
425
|
+
this.number = fields.number;
|
|
426
|
+
;
|
|
427
|
+
this.level = fields.level;
|
|
428
|
+
}
|
|
429
|
+
ClaimProfitSharingEvent.reified = function () {
|
|
430
|
+
var _this = this;
|
|
431
|
+
return { typeName: ClaimProfitSharingEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ClaimProfitSharingEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return ClaimProfitSharingEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return ClaimProfitSharingEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return ClaimProfitSharingEvent.fromBcs(data); }, bcs: ClaimProfitSharingEvent.bcs, fromJSONField: function (field) { return ClaimProfitSharingEvent.fromJSONField(field); }, fromJSON: function (json) { return ClaimProfitSharingEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return ClaimProfitSharingEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
432
|
+
return [2 /*return*/, ClaimProfitSharingEvent.fetch(client, id)];
|
|
433
|
+
}); }); }, new: function (fields) { return new ClaimProfitSharingEvent([], fields); }, kind: "StructClassReified", };
|
|
434
|
+
};
|
|
435
|
+
Object.defineProperty(ClaimProfitSharingEvent, "r", {
|
|
436
|
+
get: function () { return ClaimProfitSharingEvent.reified(); },
|
|
437
|
+
enumerable: false,
|
|
438
|
+
configurable: true
|
|
439
|
+
});
|
|
440
|
+
ClaimProfitSharingEvent.phantom = function () { return (0, reified_1.phantom)(ClaimProfitSharingEvent.reified()); };
|
|
441
|
+
Object.defineProperty(ClaimProfitSharingEvent, "p", {
|
|
442
|
+
get: function () { return ClaimProfitSharingEvent.phantom(); },
|
|
443
|
+
enumerable: false,
|
|
444
|
+
configurable: true
|
|
445
|
+
});
|
|
446
|
+
Object.defineProperty(ClaimProfitSharingEvent, "bcs", {
|
|
447
|
+
get: function () {
|
|
448
|
+
return bcs_1.bcs.struct("ClaimProfitSharingEvent", {
|
|
449
|
+
value: bcs_1.bcs.u64(), token: structs_2.TypeName.bcs, sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), nft_id: structs_5.ID.bcs, number: bcs_1.bcs.u64(), level: bcs_1.bcs.u64()
|
|
450
|
+
});
|
|
451
|
+
},
|
|
452
|
+
enumerable: false,
|
|
453
|
+
configurable: true
|
|
454
|
+
});
|
|
455
|
+
;
|
|
456
|
+
ClaimProfitSharingEvent.fromFields = function (fields) { return ClaimProfitSharingEvent.reified().new({ value: (0, reified_1.decodeFromFields)("u64", fields.value), token: (0, reified_1.decodeFromFields)(structs_2.TypeName.reified(), fields.token), sender: (0, reified_1.decodeFromFields)("address", fields.sender), nftId: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.nft_id), number: (0, reified_1.decodeFromFields)("u64", fields.number), level: (0, reified_1.decodeFromFields)("u64", fields.level) }); };
|
|
457
|
+
ClaimProfitSharingEvent.fromFieldsWithTypes = function (item) {
|
|
458
|
+
if (!isClaimProfitSharingEvent(item.type)) {
|
|
459
|
+
throw new Error("not a ClaimProfitSharingEvent type");
|
|
460
|
+
}
|
|
461
|
+
return ClaimProfitSharingEvent.reified().new({ value: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.value), token: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.TypeName.reified(), item.fields.token), sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender), nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.nft_id), number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number), level: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.level) });
|
|
462
|
+
};
|
|
463
|
+
ClaimProfitSharingEvent.fromBcs = function (data) { return ClaimProfitSharingEvent.fromFields(ClaimProfitSharingEvent.bcs.parse(data)); };
|
|
464
|
+
ClaimProfitSharingEvent.prototype.toJSONField = function () {
|
|
465
|
+
return {
|
|
466
|
+
value: this.value.toString(), token: this.token.toJSONField(), sender: this.sender, nftId: this.nftId, number: this.number.toString(), level: this.level.toString(),
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
ClaimProfitSharingEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
470
|
+
ClaimProfitSharingEvent.fromJSONField = function (field) { return ClaimProfitSharingEvent.reified().new({ value: (0, reified_1.decodeFromJSONField)("u64", field.value), token: (0, reified_1.decodeFromJSONField)(structs_2.TypeName.reified(), field.token), sender: (0, reified_1.decodeFromJSONField)("address", field.sender), nftId: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.nftId), number: (0, reified_1.decodeFromJSONField)("u64", field.number), level: (0, reified_1.decodeFromJSONField)("u64", field.level) }); };
|
|
471
|
+
ClaimProfitSharingEvent.fromJSON = function (json) {
|
|
472
|
+
if (json.$typeName !== ClaimProfitSharingEvent.$typeName) {
|
|
473
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
474
|
+
}
|
|
475
|
+
;
|
|
476
|
+
return ClaimProfitSharingEvent.fromJSONField(json);
|
|
477
|
+
};
|
|
478
|
+
ClaimProfitSharingEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
479
|
+
throw new Error("not an object");
|
|
480
|
+
} if (!isClaimProfitSharingEvent(content.type)) {
|
|
481
|
+
throw new Error("object at ".concat(content.fields.id, " is not a ClaimProfitSharingEvent object"));
|
|
482
|
+
} return ClaimProfitSharingEvent.fromFieldsWithTypes(content); };
|
|
483
|
+
ClaimProfitSharingEvent.fetch = function (client, id) {
|
|
484
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
485
|
+
var res;
|
|
486
|
+
var _a, _b;
|
|
487
|
+
return __generator(this, function (_c) {
|
|
488
|
+
switch (_c.label) {
|
|
489
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
490
|
+
case 1:
|
|
491
|
+
res = _c.sent();
|
|
492
|
+
if (res.error) {
|
|
493
|
+
throw new Error("error fetching ClaimProfitSharingEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
494
|
+
}
|
|
495
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isClaimProfitSharingEvent(res.data.bcs.type)) {
|
|
496
|
+
throw new Error("object at id ".concat(id, " is not a ClaimProfitSharingEvent object"));
|
|
497
|
+
}
|
|
498
|
+
return [2 /*return*/, ClaimProfitSharingEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
499
|
+
}
|
|
500
|
+
});
|
|
501
|
+
});
|
|
502
|
+
};
|
|
503
|
+
ClaimProfitSharingEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::ClaimProfitSharingEvent";
|
|
504
|
+
ClaimProfitSharingEvent.$numTypeParams = 0;
|
|
505
|
+
return ClaimProfitSharingEvent;
|
|
506
|
+
}());
|
|
507
|
+
exports.ClaimProfitSharingEvent = ClaimProfitSharingEvent;
|
|
508
|
+
/* ============================== ClaimProfitSharingEventV2 =============================== */
|
|
509
|
+
function isClaimProfitSharingEventV2(type) { type = (0, util_1.compressSuiType)(type); return type === "0x48b15aafeb26ade39d0c2a3b8c3635bfe8396084812b6fcaeb1104eac793b4a5::tails_staking::ClaimProfitSharingEventV2"; }
|
|
510
|
+
var ClaimProfitSharingEventV2 = /** @class */ (function () {
|
|
511
|
+
function ClaimProfitSharingEventV2(typeArgs, fields) {
|
|
512
|
+
this.$typeName = ClaimProfitSharingEventV2.$typeName;
|
|
513
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ClaimProfitSharingEventV2.$typeName], __read(typeArgs), false));
|
|
514
|
+
this.$typeArgs = typeArgs;
|
|
515
|
+
this.value = fields.value;
|
|
516
|
+
;
|
|
517
|
+
this.token = fields.token;
|
|
518
|
+
;
|
|
519
|
+
this.sender = fields.sender;
|
|
520
|
+
;
|
|
521
|
+
this.nftId = fields.nftId;
|
|
522
|
+
;
|
|
523
|
+
this.number = fields.number;
|
|
524
|
+
;
|
|
525
|
+
this.level = fields.level;
|
|
526
|
+
;
|
|
527
|
+
this.name = fields.name;
|
|
528
|
+
}
|
|
529
|
+
ClaimProfitSharingEventV2.reified = function () {
|
|
530
|
+
var _this = this;
|
|
531
|
+
return { typeName: ClaimProfitSharingEventV2.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ClaimProfitSharingEventV2.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return ClaimProfitSharingEventV2.fromFields(fields); }, fromFieldsWithTypes: function (item) { return ClaimProfitSharingEventV2.fromFieldsWithTypes(item); }, fromBcs: function (data) { return ClaimProfitSharingEventV2.fromBcs(data); }, bcs: ClaimProfitSharingEventV2.bcs, fromJSONField: function (field) { return ClaimProfitSharingEventV2.fromJSONField(field); }, fromJSON: function (json) { return ClaimProfitSharingEventV2.fromJSON(json); }, fromSuiParsedData: function (content) { return ClaimProfitSharingEventV2.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
532
|
+
return [2 /*return*/, ClaimProfitSharingEventV2.fetch(client, id)];
|
|
533
|
+
}); }); }, new: function (fields) { return new ClaimProfitSharingEventV2([], fields); }, kind: "StructClassReified", };
|
|
534
|
+
};
|
|
535
|
+
Object.defineProperty(ClaimProfitSharingEventV2, "r", {
|
|
536
|
+
get: function () { return ClaimProfitSharingEventV2.reified(); },
|
|
537
|
+
enumerable: false,
|
|
538
|
+
configurable: true
|
|
539
|
+
});
|
|
540
|
+
ClaimProfitSharingEventV2.phantom = function () { return (0, reified_1.phantom)(ClaimProfitSharingEventV2.reified()); };
|
|
541
|
+
Object.defineProperty(ClaimProfitSharingEventV2, "p", {
|
|
542
|
+
get: function () { return ClaimProfitSharingEventV2.phantom(); },
|
|
543
|
+
enumerable: false,
|
|
544
|
+
configurable: true
|
|
545
|
+
});
|
|
546
|
+
Object.defineProperty(ClaimProfitSharingEventV2, "bcs", {
|
|
547
|
+
get: function () {
|
|
548
|
+
return bcs_1.bcs.struct("ClaimProfitSharingEventV2", {
|
|
549
|
+
value: bcs_1.bcs.u64(), token: structs_2.TypeName.bcs, sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), nft_id: structs_5.ID.bcs, number: bcs_1.bcs.u64(), level: bcs_1.bcs.u64(), name: structs_1.String.bcs
|
|
550
|
+
});
|
|
551
|
+
},
|
|
552
|
+
enumerable: false,
|
|
553
|
+
configurable: true
|
|
554
|
+
});
|
|
555
|
+
;
|
|
556
|
+
ClaimProfitSharingEventV2.fromFields = function (fields) { return ClaimProfitSharingEventV2.reified().new({ value: (0, reified_1.decodeFromFields)("u64", fields.value), token: (0, reified_1.decodeFromFields)(structs_2.TypeName.reified(), fields.token), sender: (0, reified_1.decodeFromFields)("address", fields.sender), nftId: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.nft_id), number: (0, reified_1.decodeFromFields)("u64", fields.number), level: (0, reified_1.decodeFromFields)("u64", fields.level), name: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.name) }); };
|
|
557
|
+
ClaimProfitSharingEventV2.fromFieldsWithTypes = function (item) {
|
|
558
|
+
if (!isClaimProfitSharingEventV2(item.type)) {
|
|
559
|
+
throw new Error("not a ClaimProfitSharingEventV2 type");
|
|
560
|
+
}
|
|
561
|
+
return ClaimProfitSharingEventV2.reified().new({ value: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.value), token: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.TypeName.reified(), item.fields.token), sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender), nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.nft_id), number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number), level: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.level), name: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.name) });
|
|
562
|
+
};
|
|
563
|
+
ClaimProfitSharingEventV2.fromBcs = function (data) { return ClaimProfitSharingEventV2.fromFields(ClaimProfitSharingEventV2.bcs.parse(data)); };
|
|
564
|
+
ClaimProfitSharingEventV2.prototype.toJSONField = function () {
|
|
565
|
+
return {
|
|
566
|
+
value: this.value.toString(), token: this.token.toJSONField(), sender: this.sender, nftId: this.nftId, number: this.number.toString(), level: this.level.toString(), name: this.name,
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
ClaimProfitSharingEventV2.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
570
|
+
ClaimProfitSharingEventV2.fromJSONField = function (field) { return ClaimProfitSharingEventV2.reified().new({ value: (0, reified_1.decodeFromJSONField)("u64", field.value), token: (0, reified_1.decodeFromJSONField)(structs_2.TypeName.reified(), field.token), sender: (0, reified_1.decodeFromJSONField)("address", field.sender), nftId: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.nftId), number: (0, reified_1.decodeFromJSONField)("u64", field.number), level: (0, reified_1.decodeFromJSONField)("u64", field.level), name: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.name) }); };
|
|
571
|
+
ClaimProfitSharingEventV2.fromJSON = function (json) {
|
|
572
|
+
if (json.$typeName !== ClaimProfitSharingEventV2.$typeName) {
|
|
573
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
574
|
+
}
|
|
575
|
+
;
|
|
576
|
+
return ClaimProfitSharingEventV2.fromJSONField(json);
|
|
577
|
+
};
|
|
578
|
+
ClaimProfitSharingEventV2.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
579
|
+
throw new Error("not an object");
|
|
580
|
+
} if (!isClaimProfitSharingEventV2(content.type)) {
|
|
581
|
+
throw new Error("object at ".concat(content.fields.id, " is not a ClaimProfitSharingEventV2 object"));
|
|
582
|
+
} return ClaimProfitSharingEventV2.fromFieldsWithTypes(content); };
|
|
583
|
+
ClaimProfitSharingEventV2.fetch = function (client, id) {
|
|
584
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
585
|
+
var res;
|
|
586
|
+
var _a, _b;
|
|
587
|
+
return __generator(this, function (_c) {
|
|
588
|
+
switch (_c.label) {
|
|
589
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
590
|
+
case 1:
|
|
591
|
+
res = _c.sent();
|
|
592
|
+
if (res.error) {
|
|
593
|
+
throw new Error("error fetching ClaimProfitSharingEventV2 object at id ".concat(id, ": ").concat(res.error.code));
|
|
594
|
+
}
|
|
595
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isClaimProfitSharingEventV2(res.data.bcs.type)) {
|
|
596
|
+
throw new Error("object at id ".concat(id, " is not a ClaimProfitSharingEventV2 object"));
|
|
597
|
+
}
|
|
598
|
+
return [2 /*return*/, ClaimProfitSharingEventV2.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
});
|
|
602
|
+
};
|
|
603
|
+
ClaimProfitSharingEventV2.$typeName = "0x48b15aafeb26ade39d0c2a3b8c3635bfe8396084812b6fcaeb1104eac793b4a5::tails_staking::ClaimProfitSharingEventV2";
|
|
604
|
+
ClaimProfitSharingEventV2.$numTypeParams = 0;
|
|
605
|
+
return ClaimProfitSharingEventV2;
|
|
606
|
+
}());
|
|
607
|
+
exports.ClaimProfitSharingEventV2 = ClaimProfitSharingEventV2;
|
|
608
|
+
/* ============================== DailyAttendEvent =============================== */
|
|
609
|
+
function isDailyAttendEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::DailyAttendEvent"; }
|
|
610
|
+
var DailyAttendEvent = /** @class */ (function () {
|
|
611
|
+
function DailyAttendEvent(typeArgs, fields) {
|
|
612
|
+
this.$typeName = DailyAttendEvent.$typeName;
|
|
613
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DailyAttendEvent.$typeName], __read(typeArgs), false));
|
|
614
|
+
this.$typeArgs = typeArgs;
|
|
615
|
+
this.sender = fields.sender;
|
|
616
|
+
;
|
|
617
|
+
this.nftId = fields.nftId;
|
|
618
|
+
;
|
|
619
|
+
this.number = fields.number;
|
|
620
|
+
;
|
|
621
|
+
this.tsMs = fields.tsMs;
|
|
622
|
+
;
|
|
623
|
+
this.expEarn = fields.expEarn;
|
|
624
|
+
}
|
|
625
|
+
DailyAttendEvent.reified = function () {
|
|
626
|
+
var _this = this;
|
|
627
|
+
return { typeName: DailyAttendEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DailyAttendEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return DailyAttendEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return DailyAttendEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return DailyAttendEvent.fromBcs(data); }, bcs: DailyAttendEvent.bcs, fromJSONField: function (field) { return DailyAttendEvent.fromJSONField(field); }, fromJSON: function (json) { return DailyAttendEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return DailyAttendEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
628
|
+
return [2 /*return*/, DailyAttendEvent.fetch(client, id)];
|
|
629
|
+
}); }); }, new: function (fields) { return new DailyAttendEvent([], fields); }, kind: "StructClassReified", };
|
|
630
|
+
};
|
|
631
|
+
Object.defineProperty(DailyAttendEvent, "r", {
|
|
632
|
+
get: function () { return DailyAttendEvent.reified(); },
|
|
633
|
+
enumerable: false,
|
|
634
|
+
configurable: true
|
|
635
|
+
});
|
|
636
|
+
DailyAttendEvent.phantom = function () { return (0, reified_1.phantom)(DailyAttendEvent.reified()); };
|
|
637
|
+
Object.defineProperty(DailyAttendEvent, "p", {
|
|
638
|
+
get: function () { return DailyAttendEvent.phantom(); },
|
|
639
|
+
enumerable: false,
|
|
640
|
+
configurable: true
|
|
641
|
+
});
|
|
642
|
+
Object.defineProperty(DailyAttendEvent, "bcs", {
|
|
643
|
+
get: function () {
|
|
644
|
+
return bcs_1.bcs.struct("DailyAttendEvent", {
|
|
645
|
+
sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), nft_id: structs_5.ID.bcs, number: bcs_1.bcs.u64(), ts_ms: bcs_1.bcs.u64(), exp_earn: bcs_1.bcs.u64()
|
|
646
|
+
});
|
|
647
|
+
},
|
|
648
|
+
enumerable: false,
|
|
649
|
+
configurable: true
|
|
650
|
+
});
|
|
651
|
+
;
|
|
652
|
+
DailyAttendEvent.fromFields = function (fields) { return DailyAttendEvent.reified().new({ sender: (0, reified_1.decodeFromFields)("address", fields.sender), nftId: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.nft_id), number: (0, reified_1.decodeFromFields)("u64", fields.number), tsMs: (0, reified_1.decodeFromFields)("u64", fields.ts_ms), expEarn: (0, reified_1.decodeFromFields)("u64", fields.exp_earn) }); };
|
|
653
|
+
DailyAttendEvent.fromFieldsWithTypes = function (item) {
|
|
654
|
+
if (!isDailyAttendEvent(item.type)) {
|
|
655
|
+
throw new Error("not a DailyAttendEvent type");
|
|
656
|
+
}
|
|
657
|
+
return DailyAttendEvent.reified().new({ sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender), nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.nft_id), number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number), tsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.ts_ms), expEarn: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exp_earn) });
|
|
658
|
+
};
|
|
659
|
+
DailyAttendEvent.fromBcs = function (data) { return DailyAttendEvent.fromFields(DailyAttendEvent.bcs.parse(data)); };
|
|
660
|
+
DailyAttendEvent.prototype.toJSONField = function () {
|
|
661
|
+
return {
|
|
662
|
+
sender: this.sender, nftId: this.nftId, number: this.number.toString(), tsMs: this.tsMs.toString(), expEarn: this.expEarn.toString(),
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
DailyAttendEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
666
|
+
DailyAttendEvent.fromJSONField = function (field) { return DailyAttendEvent.reified().new({ sender: (0, reified_1.decodeFromJSONField)("address", field.sender), nftId: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.nftId), number: (0, reified_1.decodeFromJSONField)("u64", field.number), tsMs: (0, reified_1.decodeFromJSONField)("u64", field.tsMs), expEarn: (0, reified_1.decodeFromJSONField)("u64", field.expEarn) }); };
|
|
667
|
+
DailyAttendEvent.fromJSON = function (json) {
|
|
668
|
+
if (json.$typeName !== DailyAttendEvent.$typeName) {
|
|
669
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
670
|
+
}
|
|
671
|
+
;
|
|
672
|
+
return DailyAttendEvent.fromJSONField(json);
|
|
673
|
+
};
|
|
674
|
+
DailyAttendEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
675
|
+
throw new Error("not an object");
|
|
676
|
+
} if (!isDailyAttendEvent(content.type)) {
|
|
677
|
+
throw new Error("object at ".concat(content.fields.id, " is not a DailyAttendEvent object"));
|
|
678
|
+
} return DailyAttendEvent.fromFieldsWithTypes(content); };
|
|
679
|
+
DailyAttendEvent.fetch = function (client, id) {
|
|
680
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
681
|
+
var res;
|
|
682
|
+
var _a, _b;
|
|
683
|
+
return __generator(this, function (_c) {
|
|
684
|
+
switch (_c.label) {
|
|
685
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
686
|
+
case 1:
|
|
687
|
+
res = _c.sent();
|
|
688
|
+
if (res.error) {
|
|
689
|
+
throw new Error("error fetching DailyAttendEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
690
|
+
}
|
|
691
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDailyAttendEvent(res.data.bcs.type)) {
|
|
692
|
+
throw new Error("object at id ".concat(id, " is not a DailyAttendEvent object"));
|
|
693
|
+
}
|
|
694
|
+
return [2 /*return*/, DailyAttendEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
695
|
+
}
|
|
696
|
+
});
|
|
697
|
+
});
|
|
698
|
+
};
|
|
699
|
+
DailyAttendEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::DailyAttendEvent";
|
|
700
|
+
DailyAttendEvent.$numTypeParams = 0;
|
|
701
|
+
return DailyAttendEvent;
|
|
702
|
+
}());
|
|
703
|
+
exports.DailyAttendEvent = DailyAttendEvent;
|
|
704
|
+
/* ============================== Partner =============================== */
|
|
705
|
+
function isPartner(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::Partner"; }
|
|
706
|
+
var Partner = /** @class */ (function () {
|
|
707
|
+
function Partner(typeArgs, fields) {
|
|
708
|
+
this.$typeName = Partner.$typeName;
|
|
709
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Partner.$typeName], __read(typeArgs), false));
|
|
710
|
+
this.$typeArgs = typeArgs;
|
|
711
|
+
this.id = fields.id;
|
|
712
|
+
;
|
|
713
|
+
this.expAllocation = fields.expAllocation;
|
|
714
|
+
;
|
|
715
|
+
this.partnerTraits = fields.partnerTraits;
|
|
716
|
+
}
|
|
717
|
+
Partner.reified = function () {
|
|
718
|
+
var _this = this;
|
|
719
|
+
return { typeName: Partner.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Partner.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Partner.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Partner.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Partner.fromBcs(data); }, bcs: Partner.bcs, fromJSONField: function (field) { return Partner.fromJSONField(field); }, fromJSON: function (json) { return Partner.fromJSON(json); }, fromSuiParsedData: function (content) { return Partner.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
720
|
+
return [2 /*return*/, Partner.fetch(client, id)];
|
|
721
|
+
}); }); }, new: function (fields) { return new Partner([], fields); }, kind: "StructClassReified", };
|
|
722
|
+
};
|
|
723
|
+
Object.defineProperty(Partner, "r", {
|
|
724
|
+
get: function () { return Partner.reified(); },
|
|
725
|
+
enumerable: false,
|
|
726
|
+
configurable: true
|
|
727
|
+
});
|
|
728
|
+
Partner.phantom = function () { return (0, reified_1.phantom)(Partner.reified()); };
|
|
729
|
+
Object.defineProperty(Partner, "p", {
|
|
730
|
+
get: function () { return Partner.phantom(); },
|
|
731
|
+
enumerable: false,
|
|
732
|
+
configurable: true
|
|
733
|
+
});
|
|
734
|
+
Object.defineProperty(Partner, "bcs", {
|
|
735
|
+
get: function () {
|
|
736
|
+
return bcs_1.bcs.struct("Partner", {
|
|
737
|
+
id: structs_5.UID.bcs, exp_allocation: bcs_1.bcs.u64(), partner_traits: structs_8.VecMap.bcs(structs_1.String.bcs, structs_1.String.bcs)
|
|
738
|
+
});
|
|
739
|
+
},
|
|
740
|
+
enumerable: false,
|
|
741
|
+
configurable: true
|
|
742
|
+
});
|
|
743
|
+
;
|
|
744
|
+
Partner.fromFields = function (fields) { return Partner.reified().new({ id: (0, reified_1.decodeFromFields)(structs_5.UID.reified(), fields.id), expAllocation: (0, reified_1.decodeFromFields)("u64", fields.exp_allocation), partnerTraits: (0, reified_1.decodeFromFields)(structs_8.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), fields.partner_traits) }); };
|
|
745
|
+
Partner.fromFieldsWithTypes = function (item) {
|
|
746
|
+
if (!isPartner(item.type)) {
|
|
747
|
+
throw new Error("not a Partner type");
|
|
748
|
+
}
|
|
749
|
+
return Partner.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.UID.reified(), item.fields.id), expAllocation: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exp_allocation), partnerTraits: (0, reified_1.decodeFromFieldsWithTypes)(structs_8.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), item.fields.partner_traits) });
|
|
750
|
+
};
|
|
751
|
+
Partner.fromBcs = function (data) { return Partner.fromFields(Partner.bcs.parse(data)); };
|
|
752
|
+
Partner.prototype.toJSONField = function () {
|
|
753
|
+
return {
|
|
754
|
+
id: this.id, expAllocation: this.expAllocation.toString(), partnerTraits: this.partnerTraits.toJSONField(),
|
|
755
|
+
};
|
|
756
|
+
};
|
|
757
|
+
Partner.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
758
|
+
Partner.fromJSONField = function (field) { return Partner.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_5.UID.reified(), field.id), expAllocation: (0, reified_1.decodeFromJSONField)("u64", field.expAllocation), partnerTraits: (0, reified_1.decodeFromJSONField)(structs_8.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), field.partnerTraits) }); };
|
|
759
|
+
Partner.fromJSON = function (json) {
|
|
760
|
+
if (json.$typeName !== Partner.$typeName) {
|
|
761
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
762
|
+
}
|
|
763
|
+
;
|
|
764
|
+
return Partner.fromJSONField(json);
|
|
765
|
+
};
|
|
766
|
+
Partner.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
767
|
+
throw new Error("not an object");
|
|
768
|
+
} if (!isPartner(content.type)) {
|
|
769
|
+
throw new Error("object at ".concat(content.fields.id, " is not a Partner object"));
|
|
770
|
+
} return Partner.fromFieldsWithTypes(content); };
|
|
771
|
+
Partner.fetch = function (client, id) {
|
|
772
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
773
|
+
var res;
|
|
774
|
+
var _a, _b;
|
|
775
|
+
return __generator(this, function (_c) {
|
|
776
|
+
switch (_c.label) {
|
|
777
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
778
|
+
case 1:
|
|
779
|
+
res = _c.sent();
|
|
780
|
+
if (res.error) {
|
|
781
|
+
throw new Error("error fetching Partner object at id ".concat(id, ": ").concat(res.error.code));
|
|
782
|
+
}
|
|
783
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isPartner(res.data.bcs.type)) {
|
|
784
|
+
throw new Error("object at id ".concat(id, " is not a Partner object"));
|
|
785
|
+
}
|
|
786
|
+
return [2 /*return*/, Partner.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
787
|
+
}
|
|
788
|
+
});
|
|
789
|
+
});
|
|
790
|
+
};
|
|
791
|
+
Partner.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::Partner";
|
|
792
|
+
Partner.$numTypeParams = 0;
|
|
793
|
+
return Partner;
|
|
794
|
+
}());
|
|
795
|
+
exports.Partner = Partner;
|
|
796
|
+
/* ============================== PartnerKey =============================== */
|
|
797
|
+
function isPartnerKey(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::PartnerKey"; }
|
|
798
|
+
var PartnerKey = /** @class */ (function () {
|
|
799
|
+
function PartnerKey(typeArgs, fields) {
|
|
800
|
+
this.$typeName = PartnerKey.$typeName;
|
|
801
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([PartnerKey.$typeName], __read(typeArgs), false));
|
|
802
|
+
this.$typeArgs = typeArgs;
|
|
803
|
+
this.id = fields.id;
|
|
804
|
+
;
|
|
805
|
+
this.for = fields.for;
|
|
806
|
+
;
|
|
807
|
+
this.partner = fields.partner;
|
|
808
|
+
}
|
|
809
|
+
PartnerKey.reified = function () {
|
|
810
|
+
var _this = this;
|
|
811
|
+
return { typeName: PartnerKey.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([PartnerKey.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return PartnerKey.fromFields(fields); }, fromFieldsWithTypes: function (item) { return PartnerKey.fromFieldsWithTypes(item); }, fromBcs: function (data) { return PartnerKey.fromBcs(data); }, bcs: PartnerKey.bcs, fromJSONField: function (field) { return PartnerKey.fromJSONField(field); }, fromJSON: function (json) { return PartnerKey.fromJSON(json); }, fromSuiParsedData: function (content) { return PartnerKey.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
812
|
+
return [2 /*return*/, PartnerKey.fetch(client, id)];
|
|
813
|
+
}); }); }, new: function (fields) { return new PartnerKey([], fields); }, kind: "StructClassReified", };
|
|
814
|
+
};
|
|
815
|
+
Object.defineProperty(PartnerKey, "r", {
|
|
816
|
+
get: function () { return PartnerKey.reified(); },
|
|
817
|
+
enumerable: false,
|
|
818
|
+
configurable: true
|
|
819
|
+
});
|
|
820
|
+
PartnerKey.phantom = function () { return (0, reified_1.phantom)(PartnerKey.reified()); };
|
|
821
|
+
Object.defineProperty(PartnerKey, "p", {
|
|
822
|
+
get: function () { return PartnerKey.phantom(); },
|
|
823
|
+
enumerable: false,
|
|
824
|
+
configurable: true
|
|
825
|
+
});
|
|
826
|
+
Object.defineProperty(PartnerKey, "bcs", {
|
|
827
|
+
get: function () {
|
|
828
|
+
return bcs_1.bcs.struct("PartnerKey", {
|
|
829
|
+
id: structs_5.UID.bcs, for: structs_5.ID.bcs, partner: structs_1.String.bcs
|
|
830
|
+
});
|
|
831
|
+
},
|
|
832
|
+
enumerable: false,
|
|
833
|
+
configurable: true
|
|
834
|
+
});
|
|
835
|
+
;
|
|
836
|
+
PartnerKey.fromFields = function (fields) { return PartnerKey.reified().new({ id: (0, reified_1.decodeFromFields)(structs_5.UID.reified(), fields.id), for: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.for), partner: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.partner) }); };
|
|
837
|
+
PartnerKey.fromFieldsWithTypes = function (item) {
|
|
838
|
+
if (!isPartnerKey(item.type)) {
|
|
839
|
+
throw new Error("not a PartnerKey type");
|
|
840
|
+
}
|
|
841
|
+
return PartnerKey.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.UID.reified(), item.fields.id), for: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.for), partner: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.partner) });
|
|
842
|
+
};
|
|
843
|
+
PartnerKey.fromBcs = function (data) { return PartnerKey.fromFields(PartnerKey.bcs.parse(data)); };
|
|
844
|
+
PartnerKey.prototype.toJSONField = function () {
|
|
845
|
+
return {
|
|
846
|
+
id: this.id, for: this.for, partner: this.partner,
|
|
847
|
+
};
|
|
848
|
+
};
|
|
849
|
+
PartnerKey.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
850
|
+
PartnerKey.fromJSONField = function (field) { return PartnerKey.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_5.UID.reified(), field.id), for: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.for), partner: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.partner) }); };
|
|
851
|
+
PartnerKey.fromJSON = function (json) {
|
|
852
|
+
if (json.$typeName !== PartnerKey.$typeName) {
|
|
853
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
854
|
+
}
|
|
855
|
+
;
|
|
856
|
+
return PartnerKey.fromJSONField(json);
|
|
857
|
+
};
|
|
858
|
+
PartnerKey.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
859
|
+
throw new Error("not an object");
|
|
860
|
+
} if (!isPartnerKey(content.type)) {
|
|
861
|
+
throw new Error("object at ".concat(content.fields.id, " is not a PartnerKey object"));
|
|
862
|
+
} return PartnerKey.fromFieldsWithTypes(content); };
|
|
863
|
+
PartnerKey.fetch = function (client, id) {
|
|
864
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
865
|
+
var res;
|
|
866
|
+
var _a, _b;
|
|
867
|
+
return __generator(this, function (_c) {
|
|
868
|
+
switch (_c.label) {
|
|
869
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
870
|
+
case 1:
|
|
871
|
+
res = _c.sent();
|
|
872
|
+
if (res.error) {
|
|
873
|
+
throw new Error("error fetching PartnerKey object at id ".concat(id, ": ").concat(res.error.code));
|
|
874
|
+
}
|
|
875
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isPartnerKey(res.data.bcs.type)) {
|
|
876
|
+
throw new Error("object at id ".concat(id, " is not a PartnerKey object"));
|
|
877
|
+
}
|
|
878
|
+
return [2 /*return*/, PartnerKey.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
879
|
+
}
|
|
880
|
+
});
|
|
881
|
+
});
|
|
882
|
+
};
|
|
883
|
+
PartnerKey.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::PartnerKey";
|
|
884
|
+
PartnerKey.$numTypeParams = 0;
|
|
885
|
+
return PartnerKey;
|
|
886
|
+
}());
|
|
887
|
+
exports.PartnerKey = PartnerKey;
|
|
888
|
+
/* ============================== ProfitSharing =============================== */
|
|
889
|
+
function isProfitSharing(type) { type = (0, util_1.compressSuiType)(type); return type.startsWith("0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::ProfitSharing<"); }
|
|
890
|
+
var ProfitSharing = /** @class */ (function () {
|
|
891
|
+
function ProfitSharing(typeArgs, fields) {
|
|
892
|
+
this.$typeName = ProfitSharing.$typeName;
|
|
893
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ProfitSharing.$typeName], __read(typeArgs), false));
|
|
894
|
+
this.$typeArgs = typeArgs;
|
|
895
|
+
this.levelProfits = fields.levelProfits;
|
|
896
|
+
;
|
|
897
|
+
this.levelUsers = fields.levelUsers;
|
|
898
|
+
;
|
|
899
|
+
this.total = fields.total;
|
|
900
|
+
;
|
|
901
|
+
this.remaining = fields.remaining;
|
|
902
|
+
;
|
|
903
|
+
this.pool = fields.pool;
|
|
904
|
+
}
|
|
905
|
+
ProfitSharing.reified = function (TOKEN) {
|
|
906
|
+
var _this = this;
|
|
907
|
+
return { typeName: ProfitSharing.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ProfitSharing.$typeName], [(0, reified_1.extractType)(TOKEN)], false)), typeArgs: [(0, reified_1.extractType)(TOKEN)], reifiedTypeArgs: [TOKEN], fromFields: function (fields) { return ProfitSharing.fromFields(TOKEN, fields); }, fromFieldsWithTypes: function (item) { return ProfitSharing.fromFieldsWithTypes(TOKEN, item); }, fromBcs: function (data) { return ProfitSharing.fromBcs(TOKEN, data); }, bcs: ProfitSharing.bcs, fromJSONField: function (field) { return ProfitSharing.fromJSONField(TOKEN, field); }, fromJSON: function (json) { return ProfitSharing.fromJSON(TOKEN, json); }, fromSuiParsedData: function (content) { return ProfitSharing.fromSuiParsedData(TOKEN, content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
908
|
+
return [2 /*return*/, ProfitSharing.fetch(client, TOKEN, id)];
|
|
909
|
+
}); }); }, new: function (fields) { return new ProfitSharing([(0, reified_1.extractType)(TOKEN)], fields); }, kind: "StructClassReified", };
|
|
910
|
+
};
|
|
911
|
+
Object.defineProperty(ProfitSharing, "r", {
|
|
912
|
+
get: function () { return ProfitSharing.reified; },
|
|
913
|
+
enumerable: false,
|
|
914
|
+
configurable: true
|
|
915
|
+
});
|
|
916
|
+
ProfitSharing.phantom = function (TOKEN) { return (0, reified_1.phantom)(ProfitSharing.reified(TOKEN)); };
|
|
917
|
+
Object.defineProperty(ProfitSharing, "p", {
|
|
918
|
+
get: function () { return ProfitSharing.phantom; },
|
|
919
|
+
enumerable: false,
|
|
920
|
+
configurable: true
|
|
921
|
+
});
|
|
922
|
+
Object.defineProperty(ProfitSharing, "bcs", {
|
|
923
|
+
get: function () {
|
|
924
|
+
return bcs_1.bcs.struct("ProfitSharing", {
|
|
925
|
+
level_profits: bcs_1.bcs.vector(bcs_1.bcs.u64()), level_users: bcs_1.bcs.vector(bcs_1.bcs.u64()), total: bcs_1.bcs.u64(), remaining: bcs_1.bcs.u64(), pool: structs_3.Balance.bcs
|
|
926
|
+
});
|
|
927
|
+
},
|
|
928
|
+
enumerable: false,
|
|
929
|
+
configurable: true
|
|
930
|
+
});
|
|
931
|
+
;
|
|
932
|
+
ProfitSharing.fromFields = function (typeArg, fields) { return ProfitSharing.reified(typeArg).new({ levelProfits: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.level_profits), levelUsers: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.level_users), total: (0, reified_1.decodeFromFields)("u64", fields.total), remaining: (0, reified_1.decodeFromFields)("u64", fields.remaining), pool: (0, reified_1.decodeFromFields)(structs_3.Balance.reified(typeArg), fields.pool) }); };
|
|
933
|
+
ProfitSharing.fromFieldsWithTypes = function (typeArg, item) {
|
|
934
|
+
if (!isProfitSharing(item.type)) {
|
|
935
|
+
throw new Error("not a ProfitSharing type");
|
|
936
|
+
}
|
|
937
|
+
(0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
|
|
938
|
+
return ProfitSharing.reified(typeArg).new({ levelProfits: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.level_profits), levelUsers: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.level_users), total: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.total), remaining: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.remaining), pool: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.Balance.reified(typeArg), item.fields.pool) });
|
|
939
|
+
};
|
|
940
|
+
ProfitSharing.fromBcs = function (typeArg, data) { return ProfitSharing.fromFields(typeArg, ProfitSharing.bcs.parse(data)); };
|
|
941
|
+
ProfitSharing.prototype.toJSONField = function () {
|
|
942
|
+
return {
|
|
943
|
+
levelProfits: (0, reified_1.fieldToJSON)("vector<u64>", this.levelProfits), levelUsers: (0, reified_1.fieldToJSON)("vector<u64>", this.levelUsers), total: this.total.toString(), remaining: this.remaining.toString(), pool: this.pool.toJSONField(),
|
|
944
|
+
};
|
|
945
|
+
};
|
|
946
|
+
ProfitSharing.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
947
|
+
ProfitSharing.fromJSONField = function (typeArg, field) { return ProfitSharing.reified(typeArg).new({ levelProfits: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.levelProfits), levelUsers: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.levelUsers), total: (0, reified_1.decodeFromJSONField)("u64", field.total), remaining: (0, reified_1.decodeFromJSONField)("u64", field.remaining), pool: (0, reified_1.decodeFromJSONField)(structs_3.Balance.reified(typeArg), field.pool) }); };
|
|
948
|
+
ProfitSharing.fromJSON = function (typeArg, json) {
|
|
949
|
+
if (json.$typeName !== ProfitSharing.$typeName) {
|
|
950
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
951
|
+
}
|
|
952
|
+
;
|
|
953
|
+
(0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(ProfitSharing.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
|
|
954
|
+
return ProfitSharing.fromJSONField(typeArg, json);
|
|
955
|
+
};
|
|
956
|
+
ProfitSharing.fromSuiParsedData = function (typeArg, content) { if (content.dataType !== "moveObject") {
|
|
957
|
+
throw new Error("not an object");
|
|
958
|
+
} if (!isProfitSharing(content.type)) {
|
|
959
|
+
throw new Error("object at ".concat(content.fields.id, " is not a ProfitSharing object"));
|
|
960
|
+
} return ProfitSharing.fromFieldsWithTypes(typeArg, content); };
|
|
961
|
+
ProfitSharing.fetch = function (client, typeArg, id) {
|
|
962
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
963
|
+
var res;
|
|
964
|
+
var _a, _b;
|
|
965
|
+
return __generator(this, function (_c) {
|
|
966
|
+
switch (_c.label) {
|
|
967
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
968
|
+
case 1:
|
|
969
|
+
res = _c.sent();
|
|
970
|
+
if (res.error) {
|
|
971
|
+
throw new Error("error fetching ProfitSharing object at id ".concat(id, ": ").concat(res.error.code));
|
|
972
|
+
}
|
|
973
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isProfitSharing(res.data.bcs.type)) {
|
|
974
|
+
throw new Error("object at id ".concat(id, " is not a ProfitSharing object"));
|
|
975
|
+
}
|
|
976
|
+
return [2 /*return*/, ProfitSharing.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
977
|
+
}
|
|
978
|
+
});
|
|
979
|
+
});
|
|
980
|
+
};
|
|
981
|
+
ProfitSharing.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::ProfitSharing";
|
|
982
|
+
ProfitSharing.$numTypeParams = 1;
|
|
983
|
+
return ProfitSharing;
|
|
984
|
+
}());
|
|
985
|
+
exports.ProfitSharing = ProfitSharing;
|
|
986
|
+
/* ============================== ProfitSharingEvent =============================== */
|
|
987
|
+
function isProfitSharingEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::ProfitSharingEvent"; }
|
|
988
|
+
var ProfitSharingEvent = /** @class */ (function () {
|
|
989
|
+
function ProfitSharingEvent(typeArgs, fields) {
|
|
990
|
+
this.$typeName = ProfitSharingEvent.$typeName;
|
|
991
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ProfitSharingEvent.$typeName], __read(typeArgs), false));
|
|
992
|
+
this.$typeArgs = typeArgs;
|
|
993
|
+
this.levelProfits = fields.levelProfits;
|
|
994
|
+
;
|
|
995
|
+
this.value = fields.value;
|
|
996
|
+
;
|
|
997
|
+
this.token = fields.token;
|
|
998
|
+
}
|
|
999
|
+
ProfitSharingEvent.reified = function () {
|
|
1000
|
+
var _this = this;
|
|
1001
|
+
return { typeName: ProfitSharingEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ProfitSharingEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return ProfitSharingEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return ProfitSharingEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return ProfitSharingEvent.fromBcs(data); }, bcs: ProfitSharingEvent.bcs, fromJSONField: function (field) { return ProfitSharingEvent.fromJSONField(field); }, fromJSON: function (json) { return ProfitSharingEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return ProfitSharingEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1002
|
+
return [2 /*return*/, ProfitSharingEvent.fetch(client, id)];
|
|
1003
|
+
}); }); }, new: function (fields) { return new ProfitSharingEvent([], fields); }, kind: "StructClassReified", };
|
|
1004
|
+
};
|
|
1005
|
+
Object.defineProperty(ProfitSharingEvent, "r", {
|
|
1006
|
+
get: function () { return ProfitSharingEvent.reified(); },
|
|
1007
|
+
enumerable: false,
|
|
1008
|
+
configurable: true
|
|
1009
|
+
});
|
|
1010
|
+
ProfitSharingEvent.phantom = function () { return (0, reified_1.phantom)(ProfitSharingEvent.reified()); };
|
|
1011
|
+
Object.defineProperty(ProfitSharingEvent, "p", {
|
|
1012
|
+
get: function () { return ProfitSharingEvent.phantom(); },
|
|
1013
|
+
enumerable: false,
|
|
1014
|
+
configurable: true
|
|
1015
|
+
});
|
|
1016
|
+
Object.defineProperty(ProfitSharingEvent, "bcs", {
|
|
1017
|
+
get: function () {
|
|
1018
|
+
return bcs_1.bcs.struct("ProfitSharingEvent", {
|
|
1019
|
+
level_profits: bcs_1.bcs.vector(bcs_1.bcs.u64()), value: bcs_1.bcs.u64(), token: structs_2.TypeName.bcs
|
|
1020
|
+
});
|
|
1021
|
+
},
|
|
1022
|
+
enumerable: false,
|
|
1023
|
+
configurable: true
|
|
1024
|
+
});
|
|
1025
|
+
;
|
|
1026
|
+
ProfitSharingEvent.fromFields = function (fields) { return ProfitSharingEvent.reified().new({ levelProfits: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.level_profits), value: (0, reified_1.decodeFromFields)("u64", fields.value), token: (0, reified_1.decodeFromFields)(structs_2.TypeName.reified(), fields.token) }); };
|
|
1027
|
+
ProfitSharingEvent.fromFieldsWithTypes = function (item) {
|
|
1028
|
+
if (!isProfitSharingEvent(item.type)) {
|
|
1029
|
+
throw new Error("not a ProfitSharingEvent type");
|
|
1030
|
+
}
|
|
1031
|
+
return ProfitSharingEvent.reified().new({ levelProfits: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.level_profits), value: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.value), token: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.TypeName.reified(), item.fields.token) });
|
|
1032
|
+
};
|
|
1033
|
+
ProfitSharingEvent.fromBcs = function (data) { return ProfitSharingEvent.fromFields(ProfitSharingEvent.bcs.parse(data)); };
|
|
1034
|
+
ProfitSharingEvent.prototype.toJSONField = function () {
|
|
1035
|
+
return {
|
|
1036
|
+
levelProfits: (0, reified_1.fieldToJSON)("vector<u64>", this.levelProfits), value: this.value.toString(), token: this.token.toJSONField(),
|
|
1037
|
+
};
|
|
1038
|
+
};
|
|
1039
|
+
ProfitSharingEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1040
|
+
ProfitSharingEvent.fromJSONField = function (field) { return ProfitSharingEvent.reified().new({ levelProfits: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.levelProfits), value: (0, reified_1.decodeFromJSONField)("u64", field.value), token: (0, reified_1.decodeFromJSONField)(structs_2.TypeName.reified(), field.token) }); };
|
|
1041
|
+
ProfitSharingEvent.fromJSON = function (json) {
|
|
1042
|
+
if (json.$typeName !== ProfitSharingEvent.$typeName) {
|
|
1043
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
1044
|
+
}
|
|
1045
|
+
;
|
|
1046
|
+
return ProfitSharingEvent.fromJSONField(json);
|
|
1047
|
+
};
|
|
1048
|
+
ProfitSharingEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1049
|
+
throw new Error("not an object");
|
|
1050
|
+
} if (!isProfitSharingEvent(content.type)) {
|
|
1051
|
+
throw new Error("object at ".concat(content.fields.id, " is not a ProfitSharingEvent object"));
|
|
1052
|
+
} return ProfitSharingEvent.fromFieldsWithTypes(content); };
|
|
1053
|
+
ProfitSharingEvent.fetch = function (client, id) {
|
|
1054
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1055
|
+
var res;
|
|
1056
|
+
var _a, _b;
|
|
1057
|
+
return __generator(this, function (_c) {
|
|
1058
|
+
switch (_c.label) {
|
|
1059
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1060
|
+
case 1:
|
|
1061
|
+
res = _c.sent();
|
|
1062
|
+
if (res.error) {
|
|
1063
|
+
throw new Error("error fetching ProfitSharingEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
1064
|
+
}
|
|
1065
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isProfitSharingEvent(res.data.bcs.type)) {
|
|
1066
|
+
throw new Error("object at id ".concat(id, " is not a ProfitSharingEvent object"));
|
|
1067
|
+
}
|
|
1068
|
+
return [2 /*return*/, ProfitSharingEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1069
|
+
}
|
|
1070
|
+
});
|
|
1071
|
+
});
|
|
1072
|
+
};
|
|
1073
|
+
ProfitSharingEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::ProfitSharingEvent";
|
|
1074
|
+
ProfitSharingEvent.$numTypeParams = 0;
|
|
1075
|
+
return ProfitSharingEvent;
|
|
1076
|
+
}());
|
|
1077
|
+
exports.ProfitSharingEvent = ProfitSharingEvent;
|
|
1078
|
+
/* ============================== SnapshotNftEvent =============================== */
|
|
1079
|
+
function isSnapshotNftEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::SnapshotNftEvent"; }
|
|
1080
|
+
var SnapshotNftEvent = /** @class */ (function () {
|
|
1081
|
+
function SnapshotNftEvent(typeArgs, fields) {
|
|
1082
|
+
this.$typeName = SnapshotNftEvent.$typeName;
|
|
1083
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([SnapshotNftEvent.$typeName], __read(typeArgs), false));
|
|
1084
|
+
this.$typeArgs = typeArgs;
|
|
1085
|
+
this.sender = fields.sender;
|
|
1086
|
+
;
|
|
1087
|
+
this.nftId = fields.nftId;
|
|
1088
|
+
;
|
|
1089
|
+
this.number = fields.number;
|
|
1090
|
+
;
|
|
1091
|
+
this.tsMs = fields.tsMs;
|
|
1092
|
+
;
|
|
1093
|
+
this.expEarn = fields.expEarn;
|
|
1094
|
+
}
|
|
1095
|
+
SnapshotNftEvent.reified = function () {
|
|
1096
|
+
var _this = this;
|
|
1097
|
+
return { typeName: SnapshotNftEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([SnapshotNftEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return SnapshotNftEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return SnapshotNftEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return SnapshotNftEvent.fromBcs(data); }, bcs: SnapshotNftEvent.bcs, fromJSONField: function (field) { return SnapshotNftEvent.fromJSONField(field); }, fromJSON: function (json) { return SnapshotNftEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return SnapshotNftEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1098
|
+
return [2 /*return*/, SnapshotNftEvent.fetch(client, id)];
|
|
1099
|
+
}); }); }, new: function (fields) { return new SnapshotNftEvent([], fields); }, kind: "StructClassReified", };
|
|
1100
|
+
};
|
|
1101
|
+
Object.defineProperty(SnapshotNftEvent, "r", {
|
|
1102
|
+
get: function () { return SnapshotNftEvent.reified(); },
|
|
1103
|
+
enumerable: false,
|
|
1104
|
+
configurable: true
|
|
1105
|
+
});
|
|
1106
|
+
SnapshotNftEvent.phantom = function () { return (0, reified_1.phantom)(SnapshotNftEvent.reified()); };
|
|
1107
|
+
Object.defineProperty(SnapshotNftEvent, "p", {
|
|
1108
|
+
get: function () { return SnapshotNftEvent.phantom(); },
|
|
1109
|
+
enumerable: false,
|
|
1110
|
+
configurable: true
|
|
1111
|
+
});
|
|
1112
|
+
Object.defineProperty(SnapshotNftEvent, "bcs", {
|
|
1113
|
+
get: function () {
|
|
1114
|
+
return bcs_1.bcs.struct("SnapshotNftEvent", {
|
|
1115
|
+
sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), nft_id: structs_5.ID.bcs, number: bcs_1.bcs.u64(), ts_ms: bcs_1.bcs.u64(), exp_earn: bcs_1.bcs.u64()
|
|
1116
|
+
});
|
|
1117
|
+
},
|
|
1118
|
+
enumerable: false,
|
|
1119
|
+
configurable: true
|
|
1120
|
+
});
|
|
1121
|
+
;
|
|
1122
|
+
SnapshotNftEvent.fromFields = function (fields) { return SnapshotNftEvent.reified().new({ sender: (0, reified_1.decodeFromFields)("address", fields.sender), nftId: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.nft_id), number: (0, reified_1.decodeFromFields)("u64", fields.number), tsMs: (0, reified_1.decodeFromFields)("u64", fields.ts_ms), expEarn: (0, reified_1.decodeFromFields)("u64", fields.exp_earn) }); };
|
|
1123
|
+
SnapshotNftEvent.fromFieldsWithTypes = function (item) {
|
|
1124
|
+
if (!isSnapshotNftEvent(item.type)) {
|
|
1125
|
+
throw new Error("not a SnapshotNftEvent type");
|
|
1126
|
+
}
|
|
1127
|
+
return SnapshotNftEvent.reified().new({ sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender), nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.nft_id), number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number), tsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.ts_ms), expEarn: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exp_earn) });
|
|
1128
|
+
};
|
|
1129
|
+
SnapshotNftEvent.fromBcs = function (data) { return SnapshotNftEvent.fromFields(SnapshotNftEvent.bcs.parse(data)); };
|
|
1130
|
+
SnapshotNftEvent.prototype.toJSONField = function () {
|
|
1131
|
+
return {
|
|
1132
|
+
sender: this.sender, nftId: this.nftId, number: this.number.toString(), tsMs: this.tsMs.toString(), expEarn: this.expEarn.toString(),
|
|
1133
|
+
};
|
|
1134
|
+
};
|
|
1135
|
+
SnapshotNftEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1136
|
+
SnapshotNftEvent.fromJSONField = function (field) { return SnapshotNftEvent.reified().new({ sender: (0, reified_1.decodeFromJSONField)("address", field.sender), nftId: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.nftId), number: (0, reified_1.decodeFromJSONField)("u64", field.number), tsMs: (0, reified_1.decodeFromJSONField)("u64", field.tsMs), expEarn: (0, reified_1.decodeFromJSONField)("u64", field.expEarn) }); };
|
|
1137
|
+
SnapshotNftEvent.fromJSON = function (json) {
|
|
1138
|
+
if (json.$typeName !== SnapshotNftEvent.$typeName) {
|
|
1139
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
1140
|
+
}
|
|
1141
|
+
;
|
|
1142
|
+
return SnapshotNftEvent.fromJSONField(json);
|
|
1143
|
+
};
|
|
1144
|
+
SnapshotNftEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1145
|
+
throw new Error("not an object");
|
|
1146
|
+
} if (!isSnapshotNftEvent(content.type)) {
|
|
1147
|
+
throw new Error("object at ".concat(content.fields.id, " is not a SnapshotNftEvent object"));
|
|
1148
|
+
} return SnapshotNftEvent.fromFieldsWithTypes(content); };
|
|
1149
|
+
SnapshotNftEvent.fetch = function (client, id) {
|
|
1150
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1151
|
+
var res;
|
|
1152
|
+
var _a, _b;
|
|
1153
|
+
return __generator(this, function (_c) {
|
|
1154
|
+
switch (_c.label) {
|
|
1155
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1156
|
+
case 1:
|
|
1157
|
+
res = _c.sent();
|
|
1158
|
+
if (res.error) {
|
|
1159
|
+
throw new Error("error fetching SnapshotNftEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
1160
|
+
}
|
|
1161
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isSnapshotNftEvent(res.data.bcs.type)) {
|
|
1162
|
+
throw new Error("object at id ".concat(id, " is not a SnapshotNftEvent object"));
|
|
1163
|
+
}
|
|
1164
|
+
return [2 /*return*/, SnapshotNftEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1165
|
+
}
|
|
1166
|
+
});
|
|
1167
|
+
});
|
|
1168
|
+
};
|
|
1169
|
+
SnapshotNftEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::SnapshotNftEvent";
|
|
1170
|
+
SnapshotNftEvent.$numTypeParams = 0;
|
|
1171
|
+
return SnapshotNftEvent;
|
|
1172
|
+
}());
|
|
1173
|
+
exports.SnapshotNftEvent = SnapshotNftEvent;
|
|
1174
|
+
/* ============================== StakeNftEvent =============================== */
|
|
1175
|
+
function isStakeNftEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::StakeNftEvent"; }
|
|
1176
|
+
var StakeNftEvent = /** @class */ (function () {
|
|
1177
|
+
function StakeNftEvent(typeArgs, fields) {
|
|
1178
|
+
this.$typeName = StakeNftEvent.$typeName;
|
|
1179
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StakeNftEvent.$typeName], __read(typeArgs), false));
|
|
1180
|
+
this.$typeArgs = typeArgs;
|
|
1181
|
+
this.sender = fields.sender;
|
|
1182
|
+
;
|
|
1183
|
+
this.nftId = fields.nftId;
|
|
1184
|
+
;
|
|
1185
|
+
this.number = fields.number;
|
|
1186
|
+
;
|
|
1187
|
+
this.tsMs = fields.tsMs;
|
|
1188
|
+
}
|
|
1189
|
+
StakeNftEvent.reified = function () {
|
|
1190
|
+
var _this = this;
|
|
1191
|
+
return { typeName: StakeNftEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StakeNftEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return StakeNftEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return StakeNftEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return StakeNftEvent.fromBcs(data); }, bcs: StakeNftEvent.bcs, fromJSONField: function (field) { return StakeNftEvent.fromJSONField(field); }, fromJSON: function (json) { return StakeNftEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return StakeNftEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1192
|
+
return [2 /*return*/, StakeNftEvent.fetch(client, id)];
|
|
1193
|
+
}); }); }, new: function (fields) { return new StakeNftEvent([], fields); }, kind: "StructClassReified", };
|
|
1194
|
+
};
|
|
1195
|
+
Object.defineProperty(StakeNftEvent, "r", {
|
|
1196
|
+
get: function () { return StakeNftEvent.reified(); },
|
|
1197
|
+
enumerable: false,
|
|
1198
|
+
configurable: true
|
|
1199
|
+
});
|
|
1200
|
+
StakeNftEvent.phantom = function () { return (0, reified_1.phantom)(StakeNftEvent.reified()); };
|
|
1201
|
+
Object.defineProperty(StakeNftEvent, "p", {
|
|
1202
|
+
get: function () { return StakeNftEvent.phantom(); },
|
|
1203
|
+
enumerable: false,
|
|
1204
|
+
configurable: true
|
|
1205
|
+
});
|
|
1206
|
+
Object.defineProperty(StakeNftEvent, "bcs", {
|
|
1207
|
+
get: function () {
|
|
1208
|
+
return bcs_1.bcs.struct("StakeNftEvent", {
|
|
1209
|
+
sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), nft_id: structs_5.ID.bcs, number: bcs_1.bcs.u64(), ts_ms: bcs_1.bcs.u64()
|
|
1210
|
+
});
|
|
1211
|
+
},
|
|
1212
|
+
enumerable: false,
|
|
1213
|
+
configurable: true
|
|
1214
|
+
});
|
|
1215
|
+
;
|
|
1216
|
+
StakeNftEvent.fromFields = function (fields) { return StakeNftEvent.reified().new({ sender: (0, reified_1.decodeFromFields)("address", fields.sender), nftId: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.nft_id), number: (0, reified_1.decodeFromFields)("u64", fields.number), tsMs: (0, reified_1.decodeFromFields)("u64", fields.ts_ms) }); };
|
|
1217
|
+
StakeNftEvent.fromFieldsWithTypes = function (item) {
|
|
1218
|
+
if (!isStakeNftEvent(item.type)) {
|
|
1219
|
+
throw new Error("not a StakeNftEvent type");
|
|
1220
|
+
}
|
|
1221
|
+
return StakeNftEvent.reified().new({ sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender), nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.nft_id), number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number), tsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.ts_ms) });
|
|
1222
|
+
};
|
|
1223
|
+
StakeNftEvent.fromBcs = function (data) { return StakeNftEvent.fromFields(StakeNftEvent.bcs.parse(data)); };
|
|
1224
|
+
StakeNftEvent.prototype.toJSONField = function () {
|
|
1225
|
+
return {
|
|
1226
|
+
sender: this.sender, nftId: this.nftId, number: this.number.toString(), tsMs: this.tsMs.toString(),
|
|
1227
|
+
};
|
|
1228
|
+
};
|
|
1229
|
+
StakeNftEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1230
|
+
StakeNftEvent.fromJSONField = function (field) { return StakeNftEvent.reified().new({ sender: (0, reified_1.decodeFromJSONField)("address", field.sender), nftId: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.nftId), number: (0, reified_1.decodeFromJSONField)("u64", field.number), tsMs: (0, reified_1.decodeFromJSONField)("u64", field.tsMs) }); };
|
|
1231
|
+
StakeNftEvent.fromJSON = function (json) {
|
|
1232
|
+
if (json.$typeName !== StakeNftEvent.$typeName) {
|
|
1233
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
1234
|
+
}
|
|
1235
|
+
;
|
|
1236
|
+
return StakeNftEvent.fromJSONField(json);
|
|
1237
|
+
};
|
|
1238
|
+
StakeNftEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1239
|
+
throw new Error("not an object");
|
|
1240
|
+
} if (!isStakeNftEvent(content.type)) {
|
|
1241
|
+
throw new Error("object at ".concat(content.fields.id, " is not a StakeNftEvent object"));
|
|
1242
|
+
} return StakeNftEvent.fromFieldsWithTypes(content); };
|
|
1243
|
+
StakeNftEvent.fetch = function (client, id) {
|
|
1244
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1245
|
+
var res;
|
|
1246
|
+
var _a, _b;
|
|
1247
|
+
return __generator(this, function (_c) {
|
|
1248
|
+
switch (_c.label) {
|
|
1249
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1250
|
+
case 1:
|
|
1251
|
+
res = _c.sent();
|
|
1252
|
+
if (res.error) {
|
|
1253
|
+
throw new Error("error fetching StakeNftEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
1254
|
+
}
|
|
1255
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStakeNftEvent(res.data.bcs.type)) {
|
|
1256
|
+
throw new Error("object at id ".concat(id, " is not a StakeNftEvent object"));
|
|
1257
|
+
}
|
|
1258
|
+
return [2 /*return*/, StakeNftEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1259
|
+
}
|
|
1260
|
+
});
|
|
1261
|
+
});
|
|
1262
|
+
};
|
|
1263
|
+
StakeNftEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::StakeNftEvent";
|
|
1264
|
+
StakeNftEvent.$numTypeParams = 0;
|
|
1265
|
+
return StakeNftEvent;
|
|
1266
|
+
}());
|
|
1267
|
+
exports.StakeNftEvent = StakeNftEvent;
|
|
1268
|
+
/* ============================== TransferNftEvent =============================== */
|
|
1269
|
+
function isTransferNftEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::TransferNftEvent"; }
|
|
1270
|
+
var TransferNftEvent = /** @class */ (function () {
|
|
1271
|
+
function TransferNftEvent(typeArgs, fields) {
|
|
1272
|
+
this.$typeName = TransferNftEvent.$typeName;
|
|
1273
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TransferNftEvent.$typeName], __read(typeArgs), false));
|
|
1274
|
+
this.$typeArgs = typeArgs;
|
|
1275
|
+
this.sender = fields.sender;
|
|
1276
|
+
;
|
|
1277
|
+
this.receiver = fields.receiver;
|
|
1278
|
+
;
|
|
1279
|
+
this.nftId = fields.nftId;
|
|
1280
|
+
;
|
|
1281
|
+
this.number = fields.number;
|
|
1282
|
+
}
|
|
1283
|
+
TransferNftEvent.reified = function () {
|
|
1284
|
+
var _this = this;
|
|
1285
|
+
return { typeName: TransferNftEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TransferNftEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return TransferNftEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return TransferNftEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return TransferNftEvent.fromBcs(data); }, bcs: TransferNftEvent.bcs, fromJSONField: function (field) { return TransferNftEvent.fromJSONField(field); }, fromJSON: function (json) { return TransferNftEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return TransferNftEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1286
|
+
return [2 /*return*/, TransferNftEvent.fetch(client, id)];
|
|
1287
|
+
}); }); }, new: function (fields) { return new TransferNftEvent([], fields); }, kind: "StructClassReified", };
|
|
1288
|
+
};
|
|
1289
|
+
Object.defineProperty(TransferNftEvent, "r", {
|
|
1290
|
+
get: function () { return TransferNftEvent.reified(); },
|
|
1291
|
+
enumerable: false,
|
|
1292
|
+
configurable: true
|
|
1293
|
+
});
|
|
1294
|
+
TransferNftEvent.phantom = function () { return (0, reified_1.phantom)(TransferNftEvent.reified()); };
|
|
1295
|
+
Object.defineProperty(TransferNftEvent, "p", {
|
|
1296
|
+
get: function () { return TransferNftEvent.phantom(); },
|
|
1297
|
+
enumerable: false,
|
|
1298
|
+
configurable: true
|
|
1299
|
+
});
|
|
1300
|
+
Object.defineProperty(TransferNftEvent, "bcs", {
|
|
1301
|
+
get: function () {
|
|
1302
|
+
return bcs_1.bcs.struct("TransferNftEvent", {
|
|
1303
|
+
sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), receiver: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), nft_id: structs_5.ID.bcs, number: bcs_1.bcs.u64()
|
|
1304
|
+
});
|
|
1305
|
+
},
|
|
1306
|
+
enumerable: false,
|
|
1307
|
+
configurable: true
|
|
1308
|
+
});
|
|
1309
|
+
;
|
|
1310
|
+
TransferNftEvent.fromFields = function (fields) { return TransferNftEvent.reified().new({ sender: (0, reified_1.decodeFromFields)("address", fields.sender), receiver: (0, reified_1.decodeFromFields)("address", fields.receiver), nftId: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.nft_id), number: (0, reified_1.decodeFromFields)("u64", fields.number) }); };
|
|
1311
|
+
TransferNftEvent.fromFieldsWithTypes = function (item) {
|
|
1312
|
+
if (!isTransferNftEvent(item.type)) {
|
|
1313
|
+
throw new Error("not a TransferNftEvent type");
|
|
1314
|
+
}
|
|
1315
|
+
return TransferNftEvent.reified().new({ sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender), receiver: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.receiver), nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.nft_id), number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number) });
|
|
1316
|
+
};
|
|
1317
|
+
TransferNftEvent.fromBcs = function (data) { return TransferNftEvent.fromFields(TransferNftEvent.bcs.parse(data)); };
|
|
1318
|
+
TransferNftEvent.prototype.toJSONField = function () {
|
|
1319
|
+
return {
|
|
1320
|
+
sender: this.sender, receiver: this.receiver, nftId: this.nftId, number: this.number.toString(),
|
|
1321
|
+
};
|
|
1322
|
+
};
|
|
1323
|
+
TransferNftEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1324
|
+
TransferNftEvent.fromJSONField = function (field) { return TransferNftEvent.reified().new({ sender: (0, reified_1.decodeFromJSONField)("address", field.sender), receiver: (0, reified_1.decodeFromJSONField)("address", field.receiver), nftId: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.nftId), number: (0, reified_1.decodeFromJSONField)("u64", field.number) }); };
|
|
1325
|
+
TransferNftEvent.fromJSON = function (json) {
|
|
1326
|
+
if (json.$typeName !== TransferNftEvent.$typeName) {
|
|
1327
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
1328
|
+
}
|
|
1329
|
+
;
|
|
1330
|
+
return TransferNftEvent.fromJSONField(json);
|
|
1331
|
+
};
|
|
1332
|
+
TransferNftEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1333
|
+
throw new Error("not an object");
|
|
1334
|
+
} if (!isTransferNftEvent(content.type)) {
|
|
1335
|
+
throw new Error("object at ".concat(content.fields.id, " is not a TransferNftEvent object"));
|
|
1336
|
+
} return TransferNftEvent.fromFieldsWithTypes(content); };
|
|
1337
|
+
TransferNftEvent.fetch = function (client, id) {
|
|
1338
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1339
|
+
var res;
|
|
1340
|
+
var _a, _b;
|
|
1341
|
+
return __generator(this, function (_c) {
|
|
1342
|
+
switch (_c.label) {
|
|
1343
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1344
|
+
case 1:
|
|
1345
|
+
res = _c.sent();
|
|
1346
|
+
if (res.error) {
|
|
1347
|
+
throw new Error("error fetching TransferNftEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
1348
|
+
}
|
|
1349
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTransferNftEvent(res.data.bcs.type)) {
|
|
1350
|
+
throw new Error("object at id ".concat(id, " is not a TransferNftEvent object"));
|
|
1351
|
+
}
|
|
1352
|
+
return [2 /*return*/, TransferNftEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1353
|
+
}
|
|
1354
|
+
});
|
|
1355
|
+
});
|
|
1356
|
+
};
|
|
1357
|
+
TransferNftEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::TransferNftEvent";
|
|
1358
|
+
TransferNftEvent.$numTypeParams = 0;
|
|
1359
|
+
return TransferNftEvent;
|
|
1360
|
+
}());
|
|
1361
|
+
exports.TransferNftEvent = TransferNftEvent;
|
|
1362
|
+
/* ============================== UnstakeNftEvent =============================== */
|
|
1363
|
+
function isUnstakeNftEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::UnstakeNftEvent"; }
|
|
1364
|
+
var UnstakeNftEvent = /** @class */ (function () {
|
|
1365
|
+
function UnstakeNftEvent(typeArgs, fields) {
|
|
1366
|
+
this.$typeName = UnstakeNftEvent.$typeName;
|
|
1367
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UnstakeNftEvent.$typeName], __read(typeArgs), false));
|
|
1368
|
+
this.$typeArgs = typeArgs;
|
|
1369
|
+
this.sender = fields.sender;
|
|
1370
|
+
;
|
|
1371
|
+
this.nftId = fields.nftId;
|
|
1372
|
+
;
|
|
1373
|
+
this.number = fields.number;
|
|
1374
|
+
}
|
|
1375
|
+
UnstakeNftEvent.reified = function () {
|
|
1376
|
+
var _this = this;
|
|
1377
|
+
return { typeName: UnstakeNftEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UnstakeNftEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return UnstakeNftEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return UnstakeNftEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return UnstakeNftEvent.fromBcs(data); }, bcs: UnstakeNftEvent.bcs, fromJSONField: function (field) { return UnstakeNftEvent.fromJSONField(field); }, fromJSON: function (json) { return UnstakeNftEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return UnstakeNftEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1378
|
+
return [2 /*return*/, UnstakeNftEvent.fetch(client, id)];
|
|
1379
|
+
}); }); }, new: function (fields) { return new UnstakeNftEvent([], fields); }, kind: "StructClassReified", };
|
|
1380
|
+
};
|
|
1381
|
+
Object.defineProperty(UnstakeNftEvent, "r", {
|
|
1382
|
+
get: function () { return UnstakeNftEvent.reified(); },
|
|
1383
|
+
enumerable: false,
|
|
1384
|
+
configurable: true
|
|
1385
|
+
});
|
|
1386
|
+
UnstakeNftEvent.phantom = function () { return (0, reified_1.phantom)(UnstakeNftEvent.reified()); };
|
|
1387
|
+
Object.defineProperty(UnstakeNftEvent, "p", {
|
|
1388
|
+
get: function () { return UnstakeNftEvent.phantom(); },
|
|
1389
|
+
enumerable: false,
|
|
1390
|
+
configurable: true
|
|
1391
|
+
});
|
|
1392
|
+
Object.defineProperty(UnstakeNftEvent, "bcs", {
|
|
1393
|
+
get: function () {
|
|
1394
|
+
return bcs_1.bcs.struct("UnstakeNftEvent", {
|
|
1395
|
+
sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), nft_id: structs_5.ID.bcs, number: bcs_1.bcs.u64()
|
|
1396
|
+
});
|
|
1397
|
+
},
|
|
1398
|
+
enumerable: false,
|
|
1399
|
+
configurable: true
|
|
1400
|
+
});
|
|
1401
|
+
;
|
|
1402
|
+
UnstakeNftEvent.fromFields = function (fields) { return UnstakeNftEvent.reified().new({ sender: (0, reified_1.decodeFromFields)("address", fields.sender), nftId: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.nft_id), number: (0, reified_1.decodeFromFields)("u64", fields.number) }); };
|
|
1403
|
+
UnstakeNftEvent.fromFieldsWithTypes = function (item) {
|
|
1404
|
+
if (!isUnstakeNftEvent(item.type)) {
|
|
1405
|
+
throw new Error("not a UnstakeNftEvent type");
|
|
1406
|
+
}
|
|
1407
|
+
return UnstakeNftEvent.reified().new({ sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender), nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.nft_id), number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number) });
|
|
1408
|
+
};
|
|
1409
|
+
UnstakeNftEvent.fromBcs = function (data) { return UnstakeNftEvent.fromFields(UnstakeNftEvent.bcs.parse(data)); };
|
|
1410
|
+
UnstakeNftEvent.prototype.toJSONField = function () {
|
|
1411
|
+
return {
|
|
1412
|
+
sender: this.sender, nftId: this.nftId, number: this.number.toString(),
|
|
1413
|
+
};
|
|
1414
|
+
};
|
|
1415
|
+
UnstakeNftEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1416
|
+
UnstakeNftEvent.fromJSONField = function (field) { return UnstakeNftEvent.reified().new({ sender: (0, reified_1.decodeFromJSONField)("address", field.sender), nftId: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.nftId), number: (0, reified_1.decodeFromJSONField)("u64", field.number) }); };
|
|
1417
|
+
UnstakeNftEvent.fromJSON = function (json) {
|
|
1418
|
+
if (json.$typeName !== UnstakeNftEvent.$typeName) {
|
|
1419
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
1420
|
+
}
|
|
1421
|
+
;
|
|
1422
|
+
return UnstakeNftEvent.fromJSONField(json);
|
|
1423
|
+
};
|
|
1424
|
+
UnstakeNftEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1425
|
+
throw new Error("not an object");
|
|
1426
|
+
} if (!isUnstakeNftEvent(content.type)) {
|
|
1427
|
+
throw new Error("object at ".concat(content.fields.id, " is not a UnstakeNftEvent object"));
|
|
1428
|
+
} return UnstakeNftEvent.fromFieldsWithTypes(content); };
|
|
1429
|
+
UnstakeNftEvent.fetch = function (client, id) {
|
|
1430
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1431
|
+
var res;
|
|
1432
|
+
var _a, _b;
|
|
1433
|
+
return __generator(this, function (_c) {
|
|
1434
|
+
switch (_c.label) {
|
|
1435
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1436
|
+
case 1:
|
|
1437
|
+
res = _c.sent();
|
|
1438
|
+
if (res.error) {
|
|
1439
|
+
throw new Error("error fetching UnstakeNftEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
1440
|
+
}
|
|
1441
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUnstakeNftEvent(res.data.bcs.type)) {
|
|
1442
|
+
throw new Error("object at id ".concat(id, " is not a UnstakeNftEvent object"));
|
|
1443
|
+
}
|
|
1444
|
+
return [2 /*return*/, UnstakeNftEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1445
|
+
}
|
|
1446
|
+
});
|
|
1447
|
+
});
|
|
1448
|
+
};
|
|
1449
|
+
UnstakeNftEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::UnstakeNftEvent";
|
|
1450
|
+
UnstakeNftEvent.$numTypeParams = 0;
|
|
1451
|
+
return UnstakeNftEvent;
|
|
1452
|
+
}());
|
|
1453
|
+
exports.UnstakeNftEvent = UnstakeNftEvent;
|
|
1454
|
+
/* ============================== UpdateDepositEvent =============================== */
|
|
1455
|
+
function isUpdateDepositEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::UpdateDepositEvent"; }
|
|
1456
|
+
var UpdateDepositEvent = /** @class */ (function () {
|
|
1457
|
+
function UpdateDepositEvent(typeArgs, fields) {
|
|
1458
|
+
this.$typeName = UpdateDepositEvent.$typeName;
|
|
1459
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateDepositEvent.$typeName], __read(typeArgs), false));
|
|
1460
|
+
this.$typeArgs = typeArgs;
|
|
1461
|
+
this.sender = fields.sender;
|
|
1462
|
+
;
|
|
1463
|
+
this.nftId = fields.nftId;
|
|
1464
|
+
;
|
|
1465
|
+
this.number = fields.number;
|
|
1466
|
+
;
|
|
1467
|
+
this.before = fields.before;
|
|
1468
|
+
;
|
|
1469
|
+
this.after = fields.after;
|
|
1470
|
+
}
|
|
1471
|
+
UpdateDepositEvent.reified = function () {
|
|
1472
|
+
var _this = this;
|
|
1473
|
+
return { typeName: UpdateDepositEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateDepositEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return UpdateDepositEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return UpdateDepositEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return UpdateDepositEvent.fromBcs(data); }, bcs: UpdateDepositEvent.bcs, fromJSONField: function (field) { return UpdateDepositEvent.fromJSONField(field); }, fromJSON: function (json) { return UpdateDepositEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return UpdateDepositEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1474
|
+
return [2 /*return*/, UpdateDepositEvent.fetch(client, id)];
|
|
1475
|
+
}); }); }, new: function (fields) { return new UpdateDepositEvent([], fields); }, kind: "StructClassReified", };
|
|
1476
|
+
};
|
|
1477
|
+
Object.defineProperty(UpdateDepositEvent, "r", {
|
|
1478
|
+
get: function () { return UpdateDepositEvent.reified(); },
|
|
1479
|
+
enumerable: false,
|
|
1480
|
+
configurable: true
|
|
1481
|
+
});
|
|
1482
|
+
UpdateDepositEvent.phantom = function () { return (0, reified_1.phantom)(UpdateDepositEvent.reified()); };
|
|
1483
|
+
Object.defineProperty(UpdateDepositEvent, "p", {
|
|
1484
|
+
get: function () { return UpdateDepositEvent.phantom(); },
|
|
1485
|
+
enumerable: false,
|
|
1486
|
+
configurable: true
|
|
1487
|
+
});
|
|
1488
|
+
Object.defineProperty(UpdateDepositEvent, "bcs", {
|
|
1489
|
+
get: function () {
|
|
1490
|
+
return bcs_1.bcs.struct("UpdateDepositEvent", {
|
|
1491
|
+
sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), nft_id: structs_5.ID.bcs, number: bcs_1.bcs.u64(), before: bcs_1.bcs.u64(), after: bcs_1.bcs.u64()
|
|
1492
|
+
});
|
|
1493
|
+
},
|
|
1494
|
+
enumerable: false,
|
|
1495
|
+
configurable: true
|
|
1496
|
+
});
|
|
1497
|
+
;
|
|
1498
|
+
UpdateDepositEvent.fromFields = function (fields) { return UpdateDepositEvent.reified().new({ sender: (0, reified_1.decodeFromFields)("address", fields.sender), nftId: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.nft_id), number: (0, reified_1.decodeFromFields)("u64", fields.number), before: (0, reified_1.decodeFromFields)("u64", fields.before), after: (0, reified_1.decodeFromFields)("u64", fields.after) }); };
|
|
1499
|
+
UpdateDepositEvent.fromFieldsWithTypes = function (item) {
|
|
1500
|
+
if (!isUpdateDepositEvent(item.type)) {
|
|
1501
|
+
throw new Error("not a UpdateDepositEvent type");
|
|
1502
|
+
}
|
|
1503
|
+
return UpdateDepositEvent.reified().new({ sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender), nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.nft_id), number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number), before: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.before), after: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.after) });
|
|
1504
|
+
};
|
|
1505
|
+
UpdateDepositEvent.fromBcs = function (data) { return UpdateDepositEvent.fromFields(UpdateDepositEvent.bcs.parse(data)); };
|
|
1506
|
+
UpdateDepositEvent.prototype.toJSONField = function () {
|
|
1507
|
+
return {
|
|
1508
|
+
sender: this.sender, nftId: this.nftId, number: this.number.toString(), before: this.before.toString(), after: this.after.toString(),
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
UpdateDepositEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1512
|
+
UpdateDepositEvent.fromJSONField = function (field) { return UpdateDepositEvent.reified().new({ sender: (0, reified_1.decodeFromJSONField)("address", field.sender), nftId: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.nftId), number: (0, reified_1.decodeFromJSONField)("u64", field.number), before: (0, reified_1.decodeFromJSONField)("u64", field.before), after: (0, reified_1.decodeFromJSONField)("u64", field.after) }); };
|
|
1513
|
+
UpdateDepositEvent.fromJSON = function (json) {
|
|
1514
|
+
if (json.$typeName !== UpdateDepositEvent.$typeName) {
|
|
1515
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
1516
|
+
}
|
|
1517
|
+
;
|
|
1518
|
+
return UpdateDepositEvent.fromJSONField(json);
|
|
1519
|
+
};
|
|
1520
|
+
UpdateDepositEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1521
|
+
throw new Error("not an object");
|
|
1522
|
+
} if (!isUpdateDepositEvent(content.type)) {
|
|
1523
|
+
throw new Error("object at ".concat(content.fields.id, " is not a UpdateDepositEvent object"));
|
|
1524
|
+
} return UpdateDepositEvent.fromFieldsWithTypes(content); };
|
|
1525
|
+
UpdateDepositEvent.fetch = function (client, id) {
|
|
1526
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1527
|
+
var res;
|
|
1528
|
+
var _a, _b;
|
|
1529
|
+
return __generator(this, function (_c) {
|
|
1530
|
+
switch (_c.label) {
|
|
1531
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1532
|
+
case 1:
|
|
1533
|
+
res = _c.sent();
|
|
1534
|
+
if (res.error) {
|
|
1535
|
+
throw new Error("error fetching UpdateDepositEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
1536
|
+
}
|
|
1537
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateDepositEvent(res.data.bcs.type)) {
|
|
1538
|
+
throw new Error("object at id ".concat(id, " is not a UpdateDepositEvent object"));
|
|
1539
|
+
}
|
|
1540
|
+
return [2 /*return*/, UpdateDepositEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1541
|
+
}
|
|
1542
|
+
});
|
|
1543
|
+
});
|
|
1544
|
+
};
|
|
1545
|
+
UpdateDepositEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::UpdateDepositEvent";
|
|
1546
|
+
UpdateDepositEvent.$numTypeParams = 0;
|
|
1547
|
+
return UpdateDepositEvent;
|
|
1548
|
+
}());
|
|
1549
|
+
exports.UpdateDepositEvent = UpdateDepositEvent;
|
|
1550
|
+
/* ============================== UpdateUrlEvent =============================== */
|
|
1551
|
+
function isUpdateUrlEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::UpdateUrlEvent"; }
|
|
1552
|
+
var UpdateUrlEvent = /** @class */ (function () {
|
|
1553
|
+
function UpdateUrlEvent(typeArgs, fields) {
|
|
1554
|
+
this.$typeName = UpdateUrlEvent.$typeName;
|
|
1555
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateUrlEvent.$typeName], __read(typeArgs), false));
|
|
1556
|
+
this.$typeArgs = typeArgs;
|
|
1557
|
+
this.nftId = fields.nftId;
|
|
1558
|
+
;
|
|
1559
|
+
this.number = fields.number;
|
|
1560
|
+
;
|
|
1561
|
+
this.level = fields.level;
|
|
1562
|
+
;
|
|
1563
|
+
this.url = fields.url;
|
|
1564
|
+
}
|
|
1565
|
+
UpdateUrlEvent.reified = function () {
|
|
1566
|
+
var _this = this;
|
|
1567
|
+
return { typeName: UpdateUrlEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateUrlEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return UpdateUrlEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return UpdateUrlEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return UpdateUrlEvent.fromBcs(data); }, bcs: UpdateUrlEvent.bcs, fromJSONField: function (field) { return UpdateUrlEvent.fromJSONField(field); }, fromJSON: function (json) { return UpdateUrlEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return UpdateUrlEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1568
|
+
return [2 /*return*/, UpdateUrlEvent.fetch(client, id)];
|
|
1569
|
+
}); }); }, new: function (fields) { return new UpdateUrlEvent([], fields); }, kind: "StructClassReified", };
|
|
1570
|
+
};
|
|
1571
|
+
Object.defineProperty(UpdateUrlEvent, "r", {
|
|
1572
|
+
get: function () { return UpdateUrlEvent.reified(); },
|
|
1573
|
+
enumerable: false,
|
|
1574
|
+
configurable: true
|
|
1575
|
+
});
|
|
1576
|
+
UpdateUrlEvent.phantom = function () { return (0, reified_1.phantom)(UpdateUrlEvent.reified()); };
|
|
1577
|
+
Object.defineProperty(UpdateUrlEvent, "p", {
|
|
1578
|
+
get: function () { return UpdateUrlEvent.phantom(); },
|
|
1579
|
+
enumerable: false,
|
|
1580
|
+
configurable: true
|
|
1581
|
+
});
|
|
1582
|
+
Object.defineProperty(UpdateUrlEvent, "bcs", {
|
|
1583
|
+
get: function () {
|
|
1584
|
+
return bcs_1.bcs.struct("UpdateUrlEvent", {
|
|
1585
|
+
nft_id: structs_5.ID.bcs, number: bcs_1.bcs.u64(), level: bcs_1.bcs.u64(), url: bcs_1.bcs.vector(bcs_1.bcs.u8())
|
|
1586
|
+
});
|
|
1587
|
+
},
|
|
1588
|
+
enumerable: false,
|
|
1589
|
+
configurable: true
|
|
1590
|
+
});
|
|
1591
|
+
;
|
|
1592
|
+
UpdateUrlEvent.fromFields = function (fields) { return UpdateUrlEvent.reified().new({ nftId: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.nft_id), number: (0, reified_1.decodeFromFields)("u64", fields.number), level: (0, reified_1.decodeFromFields)("u64", fields.level), url: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.url) }); };
|
|
1593
|
+
UpdateUrlEvent.fromFieldsWithTypes = function (item) {
|
|
1594
|
+
if (!isUpdateUrlEvent(item.type)) {
|
|
1595
|
+
throw new Error("not a UpdateUrlEvent type");
|
|
1596
|
+
}
|
|
1597
|
+
return UpdateUrlEvent.reified().new({ nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.nft_id), number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number), level: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.level), url: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.url) });
|
|
1598
|
+
};
|
|
1599
|
+
UpdateUrlEvent.fromBcs = function (data) { return UpdateUrlEvent.fromFields(UpdateUrlEvent.bcs.parse(data)); };
|
|
1600
|
+
UpdateUrlEvent.prototype.toJSONField = function () {
|
|
1601
|
+
return {
|
|
1602
|
+
nftId: this.nftId, number: this.number.toString(), level: this.level.toString(), url: (0, reified_1.fieldToJSON)("vector<u8>", this.url),
|
|
1603
|
+
};
|
|
1604
|
+
};
|
|
1605
|
+
UpdateUrlEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1606
|
+
UpdateUrlEvent.fromJSONField = function (field) { return UpdateUrlEvent.reified().new({ nftId: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.nftId), number: (0, reified_1.decodeFromJSONField)("u64", field.number), level: (0, reified_1.decodeFromJSONField)("u64", field.level), url: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.url) }); };
|
|
1607
|
+
UpdateUrlEvent.fromJSON = function (json) {
|
|
1608
|
+
if (json.$typeName !== UpdateUrlEvent.$typeName) {
|
|
1609
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
1610
|
+
}
|
|
1611
|
+
;
|
|
1612
|
+
return UpdateUrlEvent.fromJSONField(json);
|
|
1613
|
+
};
|
|
1614
|
+
UpdateUrlEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1615
|
+
throw new Error("not an object");
|
|
1616
|
+
} if (!isUpdateUrlEvent(content.type)) {
|
|
1617
|
+
throw new Error("object at ".concat(content.fields.id, " is not a UpdateUrlEvent object"));
|
|
1618
|
+
} return UpdateUrlEvent.fromFieldsWithTypes(content); };
|
|
1619
|
+
UpdateUrlEvent.fetch = function (client, id) {
|
|
1620
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1621
|
+
var res;
|
|
1622
|
+
var _a, _b;
|
|
1623
|
+
return __generator(this, function (_c) {
|
|
1624
|
+
switch (_c.label) {
|
|
1625
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1626
|
+
case 1:
|
|
1627
|
+
res = _c.sent();
|
|
1628
|
+
if (res.error) {
|
|
1629
|
+
throw new Error("error fetching UpdateUrlEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
1630
|
+
}
|
|
1631
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateUrlEvent(res.data.bcs.type)) {
|
|
1632
|
+
throw new Error("object at id ".concat(id, " is not a UpdateUrlEvent object"));
|
|
1633
|
+
}
|
|
1634
|
+
return [2 /*return*/, UpdateUrlEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1635
|
+
}
|
|
1636
|
+
});
|
|
1637
|
+
});
|
|
1638
|
+
};
|
|
1639
|
+
UpdateUrlEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::tails_staking::UpdateUrlEvent";
|
|
1640
|
+
UpdateUrlEvent.$numTypeParams = 0;
|
|
1641
|
+
return UpdateUrlEvent;
|
|
1642
|
+
}());
|
|
1643
|
+
exports.UpdateUrlEvent = UpdateUrlEvent;
|