@typus/typus-sdk 1.4.5 → 1.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.json +189 -0
- package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +82 -0
- package/dist/src/_dependencies/source/0x1/ascii/structs.js +280 -0
- package/dist/src/_dependencies/source/0x1/bit-vector/structs.d.ts +50 -0
- package/dist/src/_dependencies/source/0x1/bit-vector/structs.js +193 -0
- package/dist/src/_dependencies/source/0x1/fixed-point32/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0x1/fixed-point32/structs.js +167 -0
- package/dist/src/_dependencies/source/0x1/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x1/index.js +5 -0
- package/dist/src/_dependencies/source/0x1/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x1/init.js +41 -0
- package/dist/src/_dependencies/source/0x1/option/structs.d.ts +46 -0
- package/dist/src/_dependencies/source/0x1/option/structs.js +198 -0
- package/dist/src/_dependencies/source/0x1/string/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0x1/string/structs.js +191 -0
- package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +48 -0
- package/dist/src/_dependencies/source/0x1/type-name/structs.js +168 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +5 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +39 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +277 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +377 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +102 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +353 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +65 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +175 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +65 -0
- package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +175 -0
- package/dist/src/_dependencies/source/0x2/authenticator-state/structs.d.ts +442 -0
- package/dist/src/_dependencies/source/0x2/authenticator-state/structs.js +565 -0
- package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +56 -0
- package/dist/src/_dependencies/source/0x2/bag/structs.js +170 -0
- package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +79 -0
- package/dist/src/_dependencies/source/0x2/balance/structs.js +260 -0
- package/dist/src/_dependencies/source/0x2/bcs/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0x2/bcs/structs.js +191 -0
- package/dist/src/_dependencies/source/0x2/bls12381/structs.d.ts +155 -0
- package/dist/src/_dependencies/source/0x2/bls12381/structs.js +434 -0
- package/dist/src/_dependencies/source/0x2/borrow/structs.d.ts +104 -0
- package/dist/src/_dependencies/source/0x2/borrow/structs.js +267 -0
- package/dist/src/_dependencies/source/0x2/clock/structs.d.ts +56 -0
- package/dist/src/_dependencies/source/0x2/clock/structs.js +170 -0
- package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +379 -0
- package/dist/src/_dependencies/source/0x2/coin/structs.js +648 -0
- package/dist/src/_dependencies/source/0x2/deny-list/structs.d.ts +178 -0
- package/dist/src/_dependencies/source/0x2/deny-list/structs.js +290 -0
- package/dist/src/_dependencies/source/0x2/display/structs.d.ts +228 -0
- package/dist/src/_dependencies/source/0x2/display/structs.js +362 -0
- package/dist/src/_dependencies/source/0x2/dynamic-field/structs.d.ts +63 -0
- package/dist/src/_dependencies/source/0x2/dynamic-field/structs.js +174 -0
- package/dist/src/_dependencies/source/0x2/dynamic-object-field/structs.d.ts +42 -0
- package/dist/src/_dependencies/source/0x2/dynamic-object-field/structs.js +172 -0
- package/dist/src/_dependencies/source/0x2/groth16/structs.d.ts +186 -0
- package/dist/src/_dependencies/source/0x2/groth16/structs.js +464 -0
- package/dist/src/_dependencies/source/0x2/group-ops/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0x2/group-ops/structs.js +193 -0
- package/dist/src/_dependencies/source/0x2/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x2/index.js +5 -0
- package/dist/src/_dependencies/source/0x2/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x2/init.js +150 -0
- package/dist/src/_dependencies/source/0x2/kiosk/structs.d.ts +565 -0
- package/dist/src/_dependencies/source/0x2/kiosk/structs.js +1033 -0
- package/dist/src/_dependencies/source/0x2/kiosk-extension/structs.d.ts +112 -0
- package/dist/src/_dependencies/source/0x2/kiosk-extension/structs.js +263 -0
- package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +144 -0
- package/dist/src/_dependencies/source/0x2/linked-table/structs.js +272 -0
- package/dist/src/_dependencies/source/0x2/object/structs.d.ts +83 -0
- package/dist/src/_dependencies/source/0x2/object/structs.js +256 -0
- package/dist/src/_dependencies/source/0x2/object-bag/structs.d.ts +56 -0
- package/dist/src/_dependencies/source/0x2/object-bag/structs.js +170 -0
- package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +56 -0
- package/dist/src/_dependencies/source/0x2/object-table/structs.js +172 -0
- package/dist/src/_dependencies/source/0x2/package/structs.d.ts +262 -0
- package/dist/src/_dependencies/source/0x2/package/structs.js +478 -0
- package/dist/src/_dependencies/source/0x2/priority-queue/structs.d.ts +101 -0
- package/dist/src/_dependencies/source/0x2/priority-queue/structs.js +292 -0
- package/dist/src/_dependencies/source/0x2/random/structs.d.ts +190 -0
- package/dist/src/_dependencies/source/0x2/random/structs.js +383 -0
- package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0x2/sui/structs.js +167 -0
- package/dist/src/_dependencies/source/0x2/table/structs.d.ts +56 -0
- package/dist/src/_dependencies/source/0x2/table/structs.js +172 -0
- package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +63 -0
- package/dist/src/_dependencies/source/0x2/table-vec/structs.js +194 -0
- package/dist/src/_dependencies/source/0x2/token/structs.d.ts +424 -0
- package/dist/src/_dependencies/source/0x2/token/structs.js +651 -0
- package/dist/src/_dependencies/source/0x2/transfer/structs.d.ts +52 -0
- package/dist/src/_dependencies/source/0x2/transfer/structs.js +172 -0
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +345 -0
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +665 -0
- package/dist/src/_dependencies/source/0x2/tx-context/structs.d.ts +68 -0
- package/dist/src/_dependencies/source/0x2/tx-context/structs.js +199 -0
- package/dist/src/_dependencies/source/0x2/url/structs.d.ts +48 -0
- package/dist/src/_dependencies/source/0x2/url/structs.js +168 -0
- package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +101 -0
- package/dist/src/_dependencies/source/0x2/vec-map/structs.js +286 -0
- package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +45 -0
- package/dist/src/_dependencies/source/0x2/vec-set/structs.js +196 -0
- package/dist/src/_dependencies/source/0x2/versioned/structs.d.ts +104 -0
- package/dist/src/_dependencies/source/0x2/versioned/structs.js +261 -0
- package/dist/src/_dependencies/source/0x2/zklogin-verified-id/structs.d.ts +105 -0
- package/dist/src/_dependencies/source/0x2/zklogin-verified-id/structs.js +179 -0
- package/dist/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.d.ts +69 -0
- package/dist/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.js +173 -0
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +5 -0
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +30 -0
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +50 -0
- package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +168 -0
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +5 -0
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +33 -0
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +167 -0
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +112 -0
- package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +265 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +463 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +669 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +137 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +401 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +226 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +402 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +383 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +566 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +5 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +73 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +591 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +774 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.d.ts +152 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +272 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +138 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +276 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +261 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +471 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +306 -0
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +563 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +598 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +789 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +5 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +61 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +85 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.js +258 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +433 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +562 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +63 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +194 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +1006 -0
- package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +1331 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +1458 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +1706 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +5 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +129 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +1201 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +1643 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +1374 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +971 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +395 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +750 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +994 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +933 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +77 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +179 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +4562 -0
- package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +3796 -0
- package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +5 -0
- package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +4 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +83 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +192 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +333 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +382 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +68 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +176 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +843 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +959 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +167 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +5 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +79 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +146 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +274 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.d.ts +2272 -0
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +2830 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +719 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +711 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +5 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +43 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +81 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +200 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +53 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +171 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +115 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +212 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +50 -0
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +168 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +5 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +36 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +79 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +256 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +85 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.js +258 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +169 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.js +191 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.js +191 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.d.ts +72 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.js +193 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.d.ts +45 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.js +196 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.d.ts +140 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.js +348 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.d.ts +52 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.js +168 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.d.ts +58 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.js +195 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.d.ts +158 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.js +298 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.d.ts +52 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.js +168 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.d.ts +75 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.js +196 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.d.ts +80 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.js +174 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.js +5 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.js +90 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.d.ts +46 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.js +168 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.d.ts +177 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.js +438 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.d.ts +141 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.js +297 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.d.ts +101 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.js +283 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.d.ts +79 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.js +256 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.d.ts +50 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.js +168 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.d.ts +269 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.js +303 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.d.ts +85 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.js +258 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.d.ts +145 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.js +372 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.d.ts +143 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.js +349 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.d.ts +122 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.js +209 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.d.ts +79 -0
- package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.js +256 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.d.ts +279 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.js +295 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.d.ts +105 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.js +260 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.d.ts +66 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.js +170 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.d.ts +200 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.js +259 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.d.ts +67 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.js +196 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.js +167 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.d.ts +71 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.js +198 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.d.ts +45 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.js +196 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.d.ts +47 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.js +169 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.d.ts +2 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.js +5 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.js +84 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.d.ts +46 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.js +168 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.d.ts +84 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.js +174 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.d.ts +153 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.js +173 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.d.ts +44 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.js +191 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.d.ts +351 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.js +264 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.js +167 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.d.ts +110 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.js +288 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.d.ts +75 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.js +192 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.js +167 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.d.ts +72 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.js +172 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.d.ts +41 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.js +167 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.d.ts +47 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.js +169 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.d.ts +50 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.js +168 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.d.ts +269 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.js +363 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.d.ts +79 -0
- package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.js +256 -0
- package/dist/src/_framework/init-source.d.ts +1 -0
- package/dist/src/_framework/init-source.js +64 -0
- package/dist/src/_framework/loader.d.ts +17 -0
- package/dist/src/_framework/loader.js +99 -0
- package/dist/src/_framework/reified.d.ts +100 -0
- package/dist/src/_framework/reified.js +263 -0
- package/dist/src/_framework/util.d.ts +53 -0
- package/dist/src/_framework/util.js +251 -0
- package/dist/src/airdrop/authority-entry.d.ts +22 -0
- package/dist/src/airdrop/authority-entry.js +137 -0
- package/dist/src/airdrop/index.d.ts +3 -0
- package/dist/src/airdrop/index.js +19 -0
- package/dist/src/airdrop/user-entry.d.ts +10 -0
- package/dist/src/airdrop/user-entry.js +16 -0
- package/dist/src/airdrop/view-function.d.ts +9 -0
- package/dist/src/airdrop/view-function.js +73 -0
- package/dist/src/auto-bid/index.d.ts +2 -0
- package/dist/src/auto-bid/index.js +18 -0
- package/dist/src/auto-bid/user-entry.d.ts +45 -0
- package/dist/src/auto-bid/user-entry.js +203 -0
- package/dist/src/auto-bid/view-function.d.ts +43 -0
- package/dist/src/auto-bid/view-function.js +347 -0
- package/dist/src/constants/constant.d.ts +22 -0
- package/dist/src/constants/constant.js +29 -0
- package/dist/src/constants/index.d.ts +2 -0
- package/dist/src/constants/index.js +18 -0
- package/dist/src/constants/token.d.ts +51 -0
- package/dist/src/constants/token.js +178 -0
- package/dist/src/index.d.ts +11 -0
- package/dist/src/index.js +27 -0
- package/dist/src/leaderboard/authority-entry.d.ts +22 -0
- package/dist/src/leaderboard/authority-entry.js +90 -0
- package/dist/src/leaderboard/index.d.ts +2 -0
- package/dist/src/leaderboard/index.js +18 -0
- package/dist/src/leaderboard/view-function.d.ts +20 -0
- package/dist/src/leaderboard/view-function.js +93 -0
- package/dist/src/tails-exp-dice/api.d.ts +1 -0
- package/dist/src/tails-exp-dice/api.js +76 -0
- package/dist/src/tails-exp-dice/fetch.d.ts +81 -0
- package/dist/src/tails-exp-dice/fetch.js +346 -0
- package/dist/src/tails-exp-dice/index.d.ts +4 -0
- package/dist/src/tails-exp-dice/index.js +20 -0
- package/dist/src/tails-exp-dice/user-entry.d.ts +70 -0
- package/dist/src/tails-exp-dice/user-entry.js +249 -0
- package/dist/src/tails-exp-dice/view-function.d.ts +8 -0
- package/dist/src/tails-exp-dice/view-function.js +130 -0
- package/dist/src/tails-staking/authority-entry.d.ts +182 -0
- package/dist/src/tails-staking/authority-entry.js +247 -0
- package/dist/src/tails-staking/index.d.ts +3 -0
- package/dist/src/tails-staking/index.js +19 -0
- package/dist/src/tails-staking/user-entry.d.ts +157 -0
- package/dist/src/tails-staking/user-entry.js +416 -0
- package/dist/src/tails-staking/view-function.d.ts +20 -0
- package/dist/src/tails-staking/view-function.js +122 -0
- package/dist/src/typus-dov-single-v2/entry/authority-entry.d.ts +70 -0
- package/dist/src/typus-dov-single-v2/entry/authority-entry.js +167 -0
- package/dist/src/typus-dov-single-v2/entry/index.d.ts +3 -0
- package/dist/src/typus-dov-single-v2/entry/index.js +19 -0
- package/dist/src/typus-dov-single-v2/entry/mfud-user-entry.d.ts +126 -0
- package/dist/src/typus-dov-single-v2/entry/mfud-user-entry.js +425 -0
- package/dist/src/typus-dov-single-v2/entry/user-entry.d.ts +212 -0
- package/dist/src/typus-dov-single-v2/entry/user-entry.js +448 -0
- package/dist/src/typus-dov-single-v2/function/bidding.d.ts +151 -0
- package/dist/src/typus-dov-single-v2/function/bidding.js +833 -0
- package/dist/src/typus-dov-single-v2/function/index.d.ts +3 -0
- package/dist/src/typus-dov-single-v2/function/index.js +19 -0
- package/dist/src/typus-dov-single-v2/function/token.d.ts +21 -0
- package/dist/src/typus-dov-single-v2/function/token.js +38 -0
- package/dist/src/typus-dov-single-v2/function/vault.d.ts +8 -0
- package/dist/src/typus-dov-single-v2/function/vault.js +23 -0
- package/dist/src/typus-dov-single-v2/history/index.d.ts +2 -0
- package/dist/src/typus-dov-single-v2/history/index.js +18 -0
- package/dist/src/typus-dov-single-v2/history/user-history.d.ts +36 -0
- package/dist/src/typus-dov-single-v2/history/user-history.js +999 -0
- package/dist/src/typus-dov-single-v2/history/vault-history.d.ts +123 -0
- package/dist/src/typus-dov-single-v2/history/vault-history.js +403 -0
- package/dist/src/typus-dov-single-v2/index.d.ts +4 -0
- package/dist/src/typus-dov-single-v2/index.js +20 -0
- package/dist/src/typus-dov-single-v2/view-function.d.ts +212 -0
- package/dist/src/typus-dov-single-v2/view-function.js +578 -0
- package/dist/src/typus-nft/fetch.d.ts +69 -0
- package/dist/src/typus-nft/fetch.js +565 -0
- package/dist/src/typus-nft/index.d.ts +2 -0
- package/dist/src/typus-nft/index.js +18 -0
- package/dist/src/typus-nft/user-entry.d.ts +38 -0
- package/dist/src/typus-nft/user-entry.js +173 -0
- package/dist/src/typus-perp/admin/functions.d.ts +51 -0
- package/dist/src/typus-perp/admin/functions.js +100 -0
- package/dist/src/typus-perp/admin/structs.d.ts +425 -0
- package/dist/src/typus-perp/admin/structs.js +802 -0
- package/dist/src/typus-perp/fetch.d.ts +57 -0
- package/dist/src/typus-perp/fetch.js +400 -0
- package/dist/src/typus-perp/index.d.ts +7 -0
- package/dist/src/typus-perp/index.js +33 -0
- package/dist/src/typus-perp/init.d.ts +2 -0
- package/dist/src/typus-perp/init.js +120 -0
- package/dist/src/typus-perp/lp-pool/functions.d.ts +283 -0
- package/dist/src/typus-perp/lp-pool/functions.js +418 -0
- package/dist/src/typus-perp/lp-pool/structs.d.ts +2538 -0
- package/dist/src/typus-perp/lp-pool/structs.js +3515 -0
- package/dist/src/typus-perp/math/functions.d.ts +18 -0
- package/dist/src/typus-perp/math/functions.js +40 -0
- package/dist/src/typus-perp/oracle/functions.d.ts +14 -0
- package/dist/src/typus-perp/oracle/functions.js +22 -0
- package/dist/src/typus-perp/oracle/structs.d.ts +102 -0
- package/dist/src/typus-perp/oracle/structs.js +353 -0
- package/dist/src/typus-perp/position/functions.d.ts +339 -0
- package/dist/src/typus-perp/position/functions.js +564 -0
- package/dist/src/typus-perp/position/structs.d.ts +1144 -0
- package/dist/src/typus-perp/position/structs.js +1485 -0
- package/dist/src/typus-perp/readVec.d.ts +3 -0
- package/dist/src/typus-perp/readVec.js +117 -0
- package/dist/src/typus-perp/stake-pool/functions.d.ts +169 -0
- package/dist/src/typus-perp/stake-pool/functions.js +258 -0
- package/dist/src/typus-perp/stake-pool/structs.d.ts +2071 -0
- package/dist/src/typus-perp/stake-pool/structs.js +3515 -0
- package/dist/src/typus-perp/symbol/functions.d.ts +10 -0
- package/dist/src/typus-perp/symbol/functions.js +20 -0
- package/dist/src/typus-perp/symbol/structs.d.ts +76 -0
- package/dist/src/typus-perp/symbol/structs.js +216 -0
- package/dist/src/typus-perp/tlp/functions.d.ts +20 -0
- package/dist/src/typus-perp/tlp/functions.js +35 -0
- package/dist/src/typus-perp/tlp/structs.d.ts +88 -0
- package/dist/src/typus-perp/tlp/structs.js +329 -0
- package/dist/src/typus-perp/token-interface/functions.d.ts +12 -0
- package/dist/src/typus-perp/token-interface/functions.js +20 -0
- package/dist/src/typus-perp/trading/functions.d.ts +427 -0
- package/dist/src/typus-perp/trading/functions.js +612 -0
- package/dist/src/typus-perp/trading/structs.d.ts +2631 -0
- package/dist/src/typus-perp/trading/structs.js +4067 -0
- package/dist/src/typus-perp/treasury-caps/functions.d.ts +10 -0
- package/dist/src/typus-perp/treasury-caps/functions.js +32 -0
- package/dist/src/typus-perp/treasury-caps/structs.d.ts +50 -0
- package/dist/src/typus-perp/treasury-caps/structs.js +204 -0
- package/dist/src/typus-perp/user/index.d.ts +3 -0
- package/dist/src/typus-perp/user/index.js +19 -0
- package/dist/src/typus-perp/user/order.d.ts +70 -0
- package/dist/src/typus-perp/user/order.js +206 -0
- package/dist/src/typus-perp/user/orderWithBidReceipt.d.ts +62 -0
- package/dist/src/typus-perp/user/orderWithBidReceipt.js +149 -0
- package/dist/src/typus-perp/user/tlp.d.ts +93 -0
- package/dist/src/typus-perp/user/tlp.js +268 -0
- package/dist/src/user/index.d.ts +1 -0
- package/dist/src/user/index.js +17 -0
- package/dist/src/user/view-function.d.ts +8 -0
- package/dist/src/user/view-function.js +71 -0
- package/dist/src/utils/api/defillama/index.d.ts +1 -0
- package/dist/src/utils/api/defillama/index.js +17 -0
- package/dist/src/utils/api/defillama/tvl.d.ts +1 -0
- package/dist/src/utils/api/defillama/tvl.js +58 -0
- package/dist/src/utils/api/index.d.ts +3 -0
- package/dist/src/utils/api/index.js +19 -0
- package/dist/src/utils/api/price.d.ts +4 -0
- package/dist/src/utils/api/price.js +208 -0
- package/dist/src/utils/api/sentio/index.d.ts +2 -0
- package/dist/src/utils/api/sentio/index.js +18 -0
- package/dist/src/utils/api/sentio/leader-board.d.ts +7 -0
- package/dist/src/utils/api/sentio/leader-board.js +103 -0
- package/dist/src/utils/api/sentio/reward-generated.d.ts +16 -0
- package/dist/src/utils/api/sentio/reward-generated.js +506 -0
- package/dist/src/utils/index.d.ts +5 -0
- package/dist/src/utils/index.js +21 -0
- package/dist/src/utils/load_env.d.ts +1 -0
- package/dist/src/utils/load_env.js +9 -0
- package/dist/src/utils/mint.d.ts +2 -0
- package/dist/src/utils/mint.js +57 -0
- package/dist/src/utils/pyth/constant.d.ts +49 -0
- package/dist/src/utils/pyth/constant.js +70 -0
- package/dist/src/utils/pyth/index.d.ts +2 -0
- package/dist/src/utils/pyth/index.js +18 -0
- package/dist/src/utils/pyth/pythClient.d.ts +12 -0
- package/dist/src/utils/pyth/pythClient.js +80 -0
- package/dist/src/utils/tools.d.ts +6 -0
- package/dist/src/utils/tools.js +45 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1706 @@
|
|
|
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.WithdrawProfitEvent = exports.UpdateStrategyEvent = exports.StrategyV2 = exports.StrategyPoolV2 = exports.StrategyPool = exports.Strategy = exports.RemoveStrategyVaultEvent = exports.NewStrategyVaultEvent = exports.NewStrategySignalEvent = exports.NewStrategyPoolEvent = exports.NewStrategyEventV2 = exports.NewStrategyEvent = exports.CloseStrategyEventV2 = exports.CloseStrategyEvent = exports.AutoBidEvent = exports.AddAuthorutyEvent = void 0;
|
|
99
|
+
exports.isAddAuthorutyEvent = isAddAuthorutyEvent;
|
|
100
|
+
exports.isAutoBidEvent = isAutoBidEvent;
|
|
101
|
+
exports.isCloseStrategyEvent = isCloseStrategyEvent;
|
|
102
|
+
exports.isCloseStrategyEventV2 = isCloseStrategyEventV2;
|
|
103
|
+
exports.isNewStrategyEvent = isNewStrategyEvent;
|
|
104
|
+
exports.isNewStrategyEventV2 = isNewStrategyEventV2;
|
|
105
|
+
exports.isNewStrategyPoolEvent = isNewStrategyPoolEvent;
|
|
106
|
+
exports.isNewStrategySignalEvent = isNewStrategySignalEvent;
|
|
107
|
+
exports.isNewStrategyVaultEvent = isNewStrategyVaultEvent;
|
|
108
|
+
exports.isRemoveStrategyVaultEvent = isRemoveStrategyVaultEvent;
|
|
109
|
+
exports.isStrategy = isStrategy;
|
|
110
|
+
exports.isStrategyPool = isStrategyPool;
|
|
111
|
+
exports.isStrategyPoolV2 = isStrategyPoolV2;
|
|
112
|
+
exports.isStrategyV2 = isStrategyV2;
|
|
113
|
+
exports.isUpdateStrategyEvent = isUpdateStrategyEvent;
|
|
114
|
+
exports.isWithdrawProfitEvent = isWithdrawProfitEvent;
|
|
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("../../0x2/object/structs");
|
|
119
|
+
var structs_2 = require("../../0x2/table-vec/structs");
|
|
120
|
+
var structs_3 = require("../../0x2/vec-map/structs");
|
|
121
|
+
var structs_4 = require("../../0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs");
|
|
122
|
+
var bcs_1 = require("@mysten/bcs");
|
|
123
|
+
/* ============================== AddAuthorutyEvent =============================== */
|
|
124
|
+
function isAddAuthorutyEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::AddAuthorutyEvent"; }
|
|
125
|
+
var AddAuthorutyEvent = /** @class */ (function () {
|
|
126
|
+
function AddAuthorutyEvent(typeArgs, fields) {
|
|
127
|
+
this.$typeName = AddAuthorutyEvent.$typeName;
|
|
128
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AddAuthorutyEvent.$typeName], __read(typeArgs), false));
|
|
129
|
+
this.$typeArgs = typeArgs;
|
|
130
|
+
this.newAuthority = fields.newAuthority;
|
|
131
|
+
;
|
|
132
|
+
this.signer = fields.signer;
|
|
133
|
+
}
|
|
134
|
+
AddAuthorutyEvent.reified = function () {
|
|
135
|
+
var _this = this;
|
|
136
|
+
return { typeName: AddAuthorutyEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AddAuthorutyEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return AddAuthorutyEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return AddAuthorutyEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return AddAuthorutyEvent.fromBcs(data); }, bcs: AddAuthorutyEvent.bcs, fromJSONField: function (field) { return AddAuthorutyEvent.fromJSONField(field); }, fromJSON: function (json) { return AddAuthorutyEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return AddAuthorutyEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
137
|
+
return [2 /*return*/, AddAuthorutyEvent.fetch(client, id)];
|
|
138
|
+
}); }); }, new: function (fields) { return new AddAuthorutyEvent([], fields); }, kind: "StructClassReified", };
|
|
139
|
+
};
|
|
140
|
+
Object.defineProperty(AddAuthorutyEvent, "r", {
|
|
141
|
+
get: function () { return AddAuthorutyEvent.reified(); },
|
|
142
|
+
enumerable: false,
|
|
143
|
+
configurable: true
|
|
144
|
+
});
|
|
145
|
+
AddAuthorutyEvent.phantom = function () { return (0, reified_1.phantom)(AddAuthorutyEvent.reified()); };
|
|
146
|
+
Object.defineProperty(AddAuthorutyEvent, "p", {
|
|
147
|
+
get: function () { return AddAuthorutyEvent.phantom(); },
|
|
148
|
+
enumerable: false,
|
|
149
|
+
configurable: true
|
|
150
|
+
});
|
|
151
|
+
Object.defineProperty(AddAuthorutyEvent, "bcs", {
|
|
152
|
+
get: function () {
|
|
153
|
+
return bcs_1.bcs.struct("AddAuthorutyEvent", {
|
|
154
|
+
new_authority: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, })
|
|
155
|
+
});
|
|
156
|
+
},
|
|
157
|
+
enumerable: false,
|
|
158
|
+
configurable: true
|
|
159
|
+
});
|
|
160
|
+
;
|
|
161
|
+
AddAuthorutyEvent.fromFields = function (fields) { return AddAuthorutyEvent.reified().new({ newAuthority: (0, reified_1.decodeFromFields)("address", fields.new_authority), signer: (0, reified_1.decodeFromFields)("address", fields.signer) }); };
|
|
162
|
+
AddAuthorutyEvent.fromFieldsWithTypes = function (item) {
|
|
163
|
+
if (!isAddAuthorutyEvent(item.type)) {
|
|
164
|
+
throw new Error("not a AddAuthorutyEvent type");
|
|
165
|
+
}
|
|
166
|
+
return AddAuthorutyEvent.reified().new({ newAuthority: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.new_authority), signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer) });
|
|
167
|
+
};
|
|
168
|
+
AddAuthorutyEvent.fromBcs = function (data) { return AddAuthorutyEvent.fromFields(AddAuthorutyEvent.bcs.parse(data)); };
|
|
169
|
+
AddAuthorutyEvent.prototype.toJSONField = function () {
|
|
170
|
+
return {
|
|
171
|
+
newAuthority: this.newAuthority, signer: this.signer,
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
AddAuthorutyEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
175
|
+
AddAuthorutyEvent.fromJSONField = function (field) { return AddAuthorutyEvent.reified().new({ newAuthority: (0, reified_1.decodeFromJSONField)("address", field.newAuthority), signer: (0, reified_1.decodeFromJSONField)("address", field.signer) }); };
|
|
176
|
+
AddAuthorutyEvent.fromJSON = function (json) {
|
|
177
|
+
if (json.$typeName !== AddAuthorutyEvent.$typeName) {
|
|
178
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
179
|
+
}
|
|
180
|
+
;
|
|
181
|
+
return AddAuthorutyEvent.fromJSONField(json);
|
|
182
|
+
};
|
|
183
|
+
AddAuthorutyEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
184
|
+
throw new Error("not an object");
|
|
185
|
+
} if (!isAddAuthorutyEvent(content.type)) {
|
|
186
|
+
throw new Error("object at ".concat(content.fields.id, " is not a AddAuthorutyEvent object"));
|
|
187
|
+
} return AddAuthorutyEvent.fromFieldsWithTypes(content); };
|
|
188
|
+
AddAuthorutyEvent.fetch = function (client, id) {
|
|
189
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
190
|
+
var res;
|
|
191
|
+
var _a, _b;
|
|
192
|
+
return __generator(this, function (_c) {
|
|
193
|
+
switch (_c.label) {
|
|
194
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
195
|
+
case 1:
|
|
196
|
+
res = _c.sent();
|
|
197
|
+
if (res.error) {
|
|
198
|
+
throw new Error("error fetching AddAuthorutyEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
199
|
+
}
|
|
200
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAddAuthorutyEvent(res.data.bcs.type)) {
|
|
201
|
+
throw new Error("object at id ".concat(id, " is not a AddAuthorutyEvent object"));
|
|
202
|
+
}
|
|
203
|
+
return [2 /*return*/, AddAuthorutyEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
AddAuthorutyEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::AddAuthorutyEvent";
|
|
209
|
+
AddAuthorutyEvent.$numTypeParams = 0;
|
|
210
|
+
return AddAuthorutyEvent;
|
|
211
|
+
}());
|
|
212
|
+
exports.AddAuthorutyEvent = AddAuthorutyEvent;
|
|
213
|
+
/* ============================== AutoBidEvent =============================== */
|
|
214
|
+
function isAutoBidEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::AutoBidEvent"; }
|
|
215
|
+
var AutoBidEvent = /** @class */ (function () {
|
|
216
|
+
function AutoBidEvent(typeArgs, fields) {
|
|
217
|
+
this.$typeName = AutoBidEvent.$typeName;
|
|
218
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AutoBidEvent.$typeName], __read(typeArgs), false));
|
|
219
|
+
this.$typeArgs = typeArgs;
|
|
220
|
+
this.dummyField = fields.dummyField;
|
|
221
|
+
}
|
|
222
|
+
AutoBidEvent.reified = function () {
|
|
223
|
+
var _this = this;
|
|
224
|
+
return { typeName: AutoBidEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AutoBidEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return AutoBidEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return AutoBidEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return AutoBidEvent.fromBcs(data); }, bcs: AutoBidEvent.bcs, fromJSONField: function (field) { return AutoBidEvent.fromJSONField(field); }, fromJSON: function (json) { return AutoBidEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return AutoBidEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
225
|
+
return [2 /*return*/, AutoBidEvent.fetch(client, id)];
|
|
226
|
+
}); }); }, new: function (fields) { return new AutoBidEvent([], fields); }, kind: "StructClassReified", };
|
|
227
|
+
};
|
|
228
|
+
Object.defineProperty(AutoBidEvent, "r", {
|
|
229
|
+
get: function () { return AutoBidEvent.reified(); },
|
|
230
|
+
enumerable: false,
|
|
231
|
+
configurable: true
|
|
232
|
+
});
|
|
233
|
+
AutoBidEvent.phantom = function () { return (0, reified_1.phantom)(AutoBidEvent.reified()); };
|
|
234
|
+
Object.defineProperty(AutoBidEvent, "p", {
|
|
235
|
+
get: function () { return AutoBidEvent.phantom(); },
|
|
236
|
+
enumerable: false,
|
|
237
|
+
configurable: true
|
|
238
|
+
});
|
|
239
|
+
Object.defineProperty(AutoBidEvent, "bcs", {
|
|
240
|
+
get: function () {
|
|
241
|
+
return bcs_1.bcs.struct("AutoBidEvent", {
|
|
242
|
+
dummy_field: bcs_1.bcs.bool()
|
|
243
|
+
});
|
|
244
|
+
},
|
|
245
|
+
enumerable: false,
|
|
246
|
+
configurable: true
|
|
247
|
+
});
|
|
248
|
+
;
|
|
249
|
+
AutoBidEvent.fromFields = function (fields) { return AutoBidEvent.reified().new({ dummyField: (0, reified_1.decodeFromFields)("bool", fields.dummy_field) }); };
|
|
250
|
+
AutoBidEvent.fromFieldsWithTypes = function (item) {
|
|
251
|
+
if (!isAutoBidEvent(item.type)) {
|
|
252
|
+
throw new Error("not a AutoBidEvent type");
|
|
253
|
+
}
|
|
254
|
+
return AutoBidEvent.reified().new({ dummyField: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.dummy_field) });
|
|
255
|
+
};
|
|
256
|
+
AutoBidEvent.fromBcs = function (data) { return AutoBidEvent.fromFields(AutoBidEvent.bcs.parse(data)); };
|
|
257
|
+
AutoBidEvent.prototype.toJSONField = function () {
|
|
258
|
+
return {
|
|
259
|
+
dummyField: this.dummyField,
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
AutoBidEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
263
|
+
AutoBidEvent.fromJSONField = function (field) { return AutoBidEvent.reified().new({ dummyField: (0, reified_1.decodeFromJSONField)("bool", field.dummyField) }); };
|
|
264
|
+
AutoBidEvent.fromJSON = function (json) {
|
|
265
|
+
if (json.$typeName !== AutoBidEvent.$typeName) {
|
|
266
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
267
|
+
}
|
|
268
|
+
;
|
|
269
|
+
return AutoBidEvent.fromJSONField(json);
|
|
270
|
+
};
|
|
271
|
+
AutoBidEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
272
|
+
throw new Error("not an object");
|
|
273
|
+
} if (!isAutoBidEvent(content.type)) {
|
|
274
|
+
throw new Error("object at ".concat(content.fields.id, " is not a AutoBidEvent object"));
|
|
275
|
+
} return AutoBidEvent.fromFieldsWithTypes(content); };
|
|
276
|
+
AutoBidEvent.fetch = function (client, id) {
|
|
277
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
278
|
+
var res;
|
|
279
|
+
var _a, _b;
|
|
280
|
+
return __generator(this, function (_c) {
|
|
281
|
+
switch (_c.label) {
|
|
282
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
283
|
+
case 1:
|
|
284
|
+
res = _c.sent();
|
|
285
|
+
if (res.error) {
|
|
286
|
+
throw new Error("error fetching AutoBidEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
287
|
+
}
|
|
288
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAutoBidEvent(res.data.bcs.type)) {
|
|
289
|
+
throw new Error("object at id ".concat(id, " is not a AutoBidEvent object"));
|
|
290
|
+
}
|
|
291
|
+
return [2 /*return*/, AutoBidEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
});
|
|
295
|
+
};
|
|
296
|
+
AutoBidEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::AutoBidEvent";
|
|
297
|
+
AutoBidEvent.$numTypeParams = 0;
|
|
298
|
+
return AutoBidEvent;
|
|
299
|
+
}());
|
|
300
|
+
exports.AutoBidEvent = AutoBidEvent;
|
|
301
|
+
/* ============================== CloseStrategyEvent =============================== */
|
|
302
|
+
function isCloseStrategyEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::CloseStrategyEvent"; }
|
|
303
|
+
var CloseStrategyEvent = /** @class */ (function () {
|
|
304
|
+
function CloseStrategyEvent(typeArgs, fields) {
|
|
305
|
+
this.$typeName = CloseStrategyEvent.$typeName;
|
|
306
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([CloseStrategyEvent.$typeName], __read(typeArgs), false));
|
|
307
|
+
this.$typeArgs = typeArgs;
|
|
308
|
+
this.vaultIndex = fields.vaultIndex;
|
|
309
|
+
;
|
|
310
|
+
this.signalIndex = fields.signalIndex;
|
|
311
|
+
;
|
|
312
|
+
this.user = fields.user;
|
|
313
|
+
;
|
|
314
|
+
this.pricePercentage = fields.pricePercentage;
|
|
315
|
+
;
|
|
316
|
+
this.size = fields.size;
|
|
317
|
+
;
|
|
318
|
+
this.maxTimes = fields.maxTimes;
|
|
319
|
+
;
|
|
320
|
+
this.targetRounds = fields.targetRounds;
|
|
321
|
+
;
|
|
322
|
+
this.u64Padding = fields.u64Padding;
|
|
323
|
+
;
|
|
324
|
+
this.bidTimes = fields.bidTimes;
|
|
325
|
+
;
|
|
326
|
+
this.bidRound = fields.bidRound;
|
|
327
|
+
;
|
|
328
|
+
this.bidTsMs = fields.bidTsMs;
|
|
329
|
+
}
|
|
330
|
+
CloseStrategyEvent.reified = function () {
|
|
331
|
+
var _this = this;
|
|
332
|
+
return { typeName: CloseStrategyEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([CloseStrategyEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return CloseStrategyEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return CloseStrategyEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return CloseStrategyEvent.fromBcs(data); }, bcs: CloseStrategyEvent.bcs, fromJSONField: function (field) { return CloseStrategyEvent.fromJSONField(field); }, fromJSON: function (json) { return CloseStrategyEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return CloseStrategyEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
333
|
+
return [2 /*return*/, CloseStrategyEvent.fetch(client, id)];
|
|
334
|
+
}); }); }, new: function (fields) { return new CloseStrategyEvent([], fields); }, kind: "StructClassReified", };
|
|
335
|
+
};
|
|
336
|
+
Object.defineProperty(CloseStrategyEvent, "r", {
|
|
337
|
+
get: function () { return CloseStrategyEvent.reified(); },
|
|
338
|
+
enumerable: false,
|
|
339
|
+
configurable: true
|
|
340
|
+
});
|
|
341
|
+
CloseStrategyEvent.phantom = function () { return (0, reified_1.phantom)(CloseStrategyEvent.reified()); };
|
|
342
|
+
Object.defineProperty(CloseStrategyEvent, "p", {
|
|
343
|
+
get: function () { return CloseStrategyEvent.phantom(); },
|
|
344
|
+
enumerable: false,
|
|
345
|
+
configurable: true
|
|
346
|
+
});
|
|
347
|
+
Object.defineProperty(CloseStrategyEvent, "bcs", {
|
|
348
|
+
get: function () {
|
|
349
|
+
return bcs_1.bcs.struct("CloseStrategyEvent", {
|
|
350
|
+
vault_index: bcs_1.bcs.u64(), signal_index: bcs_1.bcs.u64(), user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), price_percentage: bcs_1.bcs.u64(), size: bcs_1.bcs.u64(), max_times: bcs_1.bcs.u64(), target_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()), u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()), bid_times: bcs_1.bcs.u64(), bid_round: bcs_1.bcs.u64(), bid_ts_ms: bcs_1.bcs.u64()
|
|
351
|
+
});
|
|
352
|
+
},
|
|
353
|
+
enumerable: false,
|
|
354
|
+
configurable: true
|
|
355
|
+
});
|
|
356
|
+
;
|
|
357
|
+
CloseStrategyEvent.fromFields = function (fields) { return CloseStrategyEvent.reified().new({ vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index), signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index), user: (0, reified_1.decodeFromFields)("address", fields.user), pricePercentage: (0, reified_1.decodeFromFields)("u64", fields.price_percentage), size: (0, reified_1.decodeFromFields)("u64", fields.size), maxTimes: (0, reified_1.decodeFromFields)("u64", fields.max_times), targetRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.target_rounds), u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding), bidTimes: (0, reified_1.decodeFromFields)("u64", fields.bid_times), bidRound: (0, reified_1.decodeFromFields)("u64", fields.bid_round), bidTsMs: (0, reified_1.decodeFromFields)("u64", fields.bid_ts_ms) }); };
|
|
358
|
+
CloseStrategyEvent.fromFieldsWithTypes = function (item) {
|
|
359
|
+
if (!isCloseStrategyEvent(item.type)) {
|
|
360
|
+
throw new Error("not a CloseStrategyEvent type");
|
|
361
|
+
}
|
|
362
|
+
return CloseStrategyEvent.reified().new({ vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index), signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index), user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user), pricePercentage: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price_percentage), size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size), maxTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.max_times), targetRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.target_rounds), u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding), bidTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_times), bidRound: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_round), bidTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_ts_ms) });
|
|
363
|
+
};
|
|
364
|
+
CloseStrategyEvent.fromBcs = function (data) { return CloseStrategyEvent.fromFields(CloseStrategyEvent.bcs.parse(data)); };
|
|
365
|
+
CloseStrategyEvent.prototype.toJSONField = function () {
|
|
366
|
+
return {
|
|
367
|
+
vaultIndex: this.vaultIndex.toString(), signalIndex: this.signalIndex.toString(), user: this.user, pricePercentage: this.pricePercentage.toString(), size: this.size.toString(), maxTimes: this.maxTimes.toString(), targetRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.targetRounds), u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding), bidTimes: this.bidTimes.toString(), bidRound: this.bidRound.toString(), bidTsMs: this.bidTsMs.toString(),
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
CloseStrategyEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
371
|
+
CloseStrategyEvent.fromJSONField = function (field) { return CloseStrategyEvent.reified().new({ vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex), signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex), user: (0, reified_1.decodeFromJSONField)("address", field.user), pricePercentage: (0, reified_1.decodeFromJSONField)("u64", field.pricePercentage), size: (0, reified_1.decodeFromJSONField)("u64", field.size), maxTimes: (0, reified_1.decodeFromJSONField)("u64", field.maxTimes), targetRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.targetRounds), u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding), bidTimes: (0, reified_1.decodeFromJSONField)("u64", field.bidTimes), bidRound: (0, reified_1.decodeFromJSONField)("u64", field.bidRound), bidTsMs: (0, reified_1.decodeFromJSONField)("u64", field.bidTsMs) }); };
|
|
372
|
+
CloseStrategyEvent.fromJSON = function (json) {
|
|
373
|
+
if (json.$typeName !== CloseStrategyEvent.$typeName) {
|
|
374
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
375
|
+
}
|
|
376
|
+
;
|
|
377
|
+
return CloseStrategyEvent.fromJSONField(json);
|
|
378
|
+
};
|
|
379
|
+
CloseStrategyEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
380
|
+
throw new Error("not an object");
|
|
381
|
+
} if (!isCloseStrategyEvent(content.type)) {
|
|
382
|
+
throw new Error("object at ".concat(content.fields.id, " is not a CloseStrategyEvent object"));
|
|
383
|
+
} return CloseStrategyEvent.fromFieldsWithTypes(content); };
|
|
384
|
+
CloseStrategyEvent.fetch = function (client, id) {
|
|
385
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
386
|
+
var res;
|
|
387
|
+
var _a, _b;
|
|
388
|
+
return __generator(this, function (_c) {
|
|
389
|
+
switch (_c.label) {
|
|
390
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
391
|
+
case 1:
|
|
392
|
+
res = _c.sent();
|
|
393
|
+
if (res.error) {
|
|
394
|
+
throw new Error("error fetching CloseStrategyEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
395
|
+
}
|
|
396
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isCloseStrategyEvent(res.data.bcs.type)) {
|
|
397
|
+
throw new Error("object at id ".concat(id, " is not a CloseStrategyEvent object"));
|
|
398
|
+
}
|
|
399
|
+
return [2 /*return*/, CloseStrategyEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
});
|
|
403
|
+
};
|
|
404
|
+
CloseStrategyEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::CloseStrategyEvent";
|
|
405
|
+
CloseStrategyEvent.$numTypeParams = 0;
|
|
406
|
+
return CloseStrategyEvent;
|
|
407
|
+
}());
|
|
408
|
+
exports.CloseStrategyEvent = CloseStrategyEvent;
|
|
409
|
+
/* ============================== CloseStrategyEventV2 =============================== */
|
|
410
|
+
function isCloseStrategyEventV2(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::CloseStrategyEventV2"; }
|
|
411
|
+
var CloseStrategyEventV2 = /** @class */ (function () {
|
|
412
|
+
function CloseStrategyEventV2(typeArgs, fields) {
|
|
413
|
+
this.$typeName = CloseStrategyEventV2.$typeName;
|
|
414
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([CloseStrategyEventV2.$typeName], __read(typeArgs), false));
|
|
415
|
+
this.$typeArgs = typeArgs;
|
|
416
|
+
this.vaultIndex = fields.vaultIndex;
|
|
417
|
+
;
|
|
418
|
+
this.signalIndex = fields.signalIndex;
|
|
419
|
+
;
|
|
420
|
+
this.user = fields.user;
|
|
421
|
+
;
|
|
422
|
+
this.pricePercentage = fields.pricePercentage;
|
|
423
|
+
;
|
|
424
|
+
this.size = fields.size;
|
|
425
|
+
;
|
|
426
|
+
this.maxTimes = fields.maxTimes;
|
|
427
|
+
;
|
|
428
|
+
this.targetRounds = fields.targetRounds;
|
|
429
|
+
;
|
|
430
|
+
this.u64Padding = fields.u64Padding;
|
|
431
|
+
;
|
|
432
|
+
this.bidTimes = fields.bidTimes;
|
|
433
|
+
;
|
|
434
|
+
this.bidRound = fields.bidRound;
|
|
435
|
+
;
|
|
436
|
+
this.bidTsMs = fields.bidTsMs;
|
|
437
|
+
;
|
|
438
|
+
this.bidRounds = fields.bidRounds;
|
|
439
|
+
;
|
|
440
|
+
this.accumulatedProfit = fields.accumulatedProfit;
|
|
441
|
+
}
|
|
442
|
+
CloseStrategyEventV2.reified = function () {
|
|
443
|
+
var _this = this;
|
|
444
|
+
return { typeName: CloseStrategyEventV2.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([CloseStrategyEventV2.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return CloseStrategyEventV2.fromFields(fields); }, fromFieldsWithTypes: function (item) { return CloseStrategyEventV2.fromFieldsWithTypes(item); }, fromBcs: function (data) { return CloseStrategyEventV2.fromBcs(data); }, bcs: CloseStrategyEventV2.bcs, fromJSONField: function (field) { return CloseStrategyEventV2.fromJSONField(field); }, fromJSON: function (json) { return CloseStrategyEventV2.fromJSON(json); }, fromSuiParsedData: function (content) { return CloseStrategyEventV2.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
445
|
+
return [2 /*return*/, CloseStrategyEventV2.fetch(client, id)];
|
|
446
|
+
}); }); }, new: function (fields) { return new CloseStrategyEventV2([], fields); }, kind: "StructClassReified", };
|
|
447
|
+
};
|
|
448
|
+
Object.defineProperty(CloseStrategyEventV2, "r", {
|
|
449
|
+
get: function () { return CloseStrategyEventV2.reified(); },
|
|
450
|
+
enumerable: false,
|
|
451
|
+
configurable: true
|
|
452
|
+
});
|
|
453
|
+
CloseStrategyEventV2.phantom = function () { return (0, reified_1.phantom)(CloseStrategyEventV2.reified()); };
|
|
454
|
+
Object.defineProperty(CloseStrategyEventV2, "p", {
|
|
455
|
+
get: function () { return CloseStrategyEventV2.phantom(); },
|
|
456
|
+
enumerable: false,
|
|
457
|
+
configurable: true
|
|
458
|
+
});
|
|
459
|
+
Object.defineProperty(CloseStrategyEventV2, "bcs", {
|
|
460
|
+
get: function () {
|
|
461
|
+
return bcs_1.bcs.struct("CloseStrategyEventV2", {
|
|
462
|
+
vault_index: bcs_1.bcs.u64(), signal_index: bcs_1.bcs.u64(), user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), price_percentage: bcs_1.bcs.u64(), size: bcs_1.bcs.u64(), max_times: bcs_1.bcs.u64(), target_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()), u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()), bid_times: bcs_1.bcs.u64(), bid_round: bcs_1.bcs.u64(), bid_ts_ms: bcs_1.bcs.u64(), bid_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()), accumulated_profit: bcs_1.bcs.u64()
|
|
463
|
+
});
|
|
464
|
+
},
|
|
465
|
+
enumerable: false,
|
|
466
|
+
configurable: true
|
|
467
|
+
});
|
|
468
|
+
;
|
|
469
|
+
CloseStrategyEventV2.fromFields = function (fields) { return CloseStrategyEventV2.reified().new({ vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index), signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index), user: (0, reified_1.decodeFromFields)("address", fields.user), pricePercentage: (0, reified_1.decodeFromFields)("u64", fields.price_percentage), size: (0, reified_1.decodeFromFields)("u64", fields.size), maxTimes: (0, reified_1.decodeFromFields)("u64", fields.max_times), targetRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.target_rounds), u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding), bidTimes: (0, reified_1.decodeFromFields)("u64", fields.bid_times), bidRound: (0, reified_1.decodeFromFields)("u64", fields.bid_round), bidTsMs: (0, reified_1.decodeFromFields)("u64", fields.bid_ts_ms), bidRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.bid_rounds), accumulatedProfit: (0, reified_1.decodeFromFields)("u64", fields.accumulated_profit) }); };
|
|
470
|
+
CloseStrategyEventV2.fromFieldsWithTypes = function (item) {
|
|
471
|
+
if (!isCloseStrategyEventV2(item.type)) {
|
|
472
|
+
throw new Error("not a CloseStrategyEventV2 type");
|
|
473
|
+
}
|
|
474
|
+
return CloseStrategyEventV2.reified().new({ vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index), signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index), user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user), pricePercentage: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price_percentage), size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size), maxTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.max_times), targetRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.target_rounds), u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding), bidTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_times), bidRound: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_round), bidTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_ts_ms), bidRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.bid_rounds), accumulatedProfit: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.accumulated_profit) });
|
|
475
|
+
};
|
|
476
|
+
CloseStrategyEventV2.fromBcs = function (data) { return CloseStrategyEventV2.fromFields(CloseStrategyEventV2.bcs.parse(data)); };
|
|
477
|
+
CloseStrategyEventV2.prototype.toJSONField = function () {
|
|
478
|
+
return {
|
|
479
|
+
vaultIndex: this.vaultIndex.toString(), signalIndex: this.signalIndex.toString(), user: this.user, pricePercentage: this.pricePercentage.toString(), size: this.size.toString(), maxTimes: this.maxTimes.toString(), targetRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.targetRounds), u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding), bidTimes: this.bidTimes.toString(), bidRound: this.bidRound.toString(), bidTsMs: this.bidTsMs.toString(), bidRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.bidRounds), accumulatedProfit: this.accumulatedProfit.toString(),
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
CloseStrategyEventV2.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
483
|
+
CloseStrategyEventV2.fromJSONField = function (field) { return CloseStrategyEventV2.reified().new({ vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex), signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex), user: (0, reified_1.decodeFromJSONField)("address", field.user), pricePercentage: (0, reified_1.decodeFromJSONField)("u64", field.pricePercentage), size: (0, reified_1.decodeFromJSONField)("u64", field.size), maxTimes: (0, reified_1.decodeFromJSONField)("u64", field.maxTimes), targetRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.targetRounds), u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding), bidTimes: (0, reified_1.decodeFromJSONField)("u64", field.bidTimes), bidRound: (0, reified_1.decodeFromJSONField)("u64", field.bidRound), bidTsMs: (0, reified_1.decodeFromJSONField)("u64", field.bidTsMs), bidRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.bidRounds), accumulatedProfit: (0, reified_1.decodeFromJSONField)("u64", field.accumulatedProfit) }); };
|
|
484
|
+
CloseStrategyEventV2.fromJSON = function (json) {
|
|
485
|
+
if (json.$typeName !== CloseStrategyEventV2.$typeName) {
|
|
486
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
487
|
+
}
|
|
488
|
+
;
|
|
489
|
+
return CloseStrategyEventV2.fromJSONField(json);
|
|
490
|
+
};
|
|
491
|
+
CloseStrategyEventV2.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
492
|
+
throw new Error("not an object");
|
|
493
|
+
} if (!isCloseStrategyEventV2(content.type)) {
|
|
494
|
+
throw new Error("object at ".concat(content.fields.id, " is not a CloseStrategyEventV2 object"));
|
|
495
|
+
} return CloseStrategyEventV2.fromFieldsWithTypes(content); };
|
|
496
|
+
CloseStrategyEventV2.fetch = function (client, id) {
|
|
497
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
498
|
+
var res;
|
|
499
|
+
var _a, _b;
|
|
500
|
+
return __generator(this, function (_c) {
|
|
501
|
+
switch (_c.label) {
|
|
502
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
503
|
+
case 1:
|
|
504
|
+
res = _c.sent();
|
|
505
|
+
if (res.error) {
|
|
506
|
+
throw new Error("error fetching CloseStrategyEventV2 object at id ".concat(id, ": ").concat(res.error.code));
|
|
507
|
+
}
|
|
508
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isCloseStrategyEventV2(res.data.bcs.type)) {
|
|
509
|
+
throw new Error("object at id ".concat(id, " is not a CloseStrategyEventV2 object"));
|
|
510
|
+
}
|
|
511
|
+
return [2 /*return*/, CloseStrategyEventV2.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
});
|
|
515
|
+
};
|
|
516
|
+
CloseStrategyEventV2.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::CloseStrategyEventV2";
|
|
517
|
+
CloseStrategyEventV2.$numTypeParams = 0;
|
|
518
|
+
return CloseStrategyEventV2;
|
|
519
|
+
}());
|
|
520
|
+
exports.CloseStrategyEventV2 = CloseStrategyEventV2;
|
|
521
|
+
/* ============================== NewStrategyEvent =============================== */
|
|
522
|
+
function isNewStrategyEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::NewStrategyEvent"; }
|
|
523
|
+
var NewStrategyEvent = /** @class */ (function () {
|
|
524
|
+
function NewStrategyEvent(typeArgs, fields) {
|
|
525
|
+
this.$typeName = NewStrategyEvent.$typeName;
|
|
526
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategyEvent.$typeName], __read(typeArgs), false));
|
|
527
|
+
this.$typeArgs = typeArgs;
|
|
528
|
+
this.vaultIndex = fields.vaultIndex;
|
|
529
|
+
;
|
|
530
|
+
this.signalIndex = fields.signalIndex;
|
|
531
|
+
;
|
|
532
|
+
this.user = fields.user;
|
|
533
|
+
;
|
|
534
|
+
this.pricePercentage = fields.pricePercentage;
|
|
535
|
+
;
|
|
536
|
+
this.size = fields.size;
|
|
537
|
+
;
|
|
538
|
+
this.maxTimes = fields.maxTimes;
|
|
539
|
+
;
|
|
540
|
+
this.targetRounds = fields.targetRounds;
|
|
541
|
+
}
|
|
542
|
+
NewStrategyEvent.reified = function () {
|
|
543
|
+
var _this = this;
|
|
544
|
+
return { typeName: NewStrategyEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategyEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return NewStrategyEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return NewStrategyEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return NewStrategyEvent.fromBcs(data); }, bcs: NewStrategyEvent.bcs, fromJSONField: function (field) { return NewStrategyEvent.fromJSONField(field); }, fromJSON: function (json) { return NewStrategyEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return NewStrategyEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
545
|
+
return [2 /*return*/, NewStrategyEvent.fetch(client, id)];
|
|
546
|
+
}); }); }, new: function (fields) { return new NewStrategyEvent([], fields); }, kind: "StructClassReified", };
|
|
547
|
+
};
|
|
548
|
+
Object.defineProperty(NewStrategyEvent, "r", {
|
|
549
|
+
get: function () { return NewStrategyEvent.reified(); },
|
|
550
|
+
enumerable: false,
|
|
551
|
+
configurable: true
|
|
552
|
+
});
|
|
553
|
+
NewStrategyEvent.phantom = function () { return (0, reified_1.phantom)(NewStrategyEvent.reified()); };
|
|
554
|
+
Object.defineProperty(NewStrategyEvent, "p", {
|
|
555
|
+
get: function () { return NewStrategyEvent.phantom(); },
|
|
556
|
+
enumerable: false,
|
|
557
|
+
configurable: true
|
|
558
|
+
});
|
|
559
|
+
Object.defineProperty(NewStrategyEvent, "bcs", {
|
|
560
|
+
get: function () {
|
|
561
|
+
return bcs_1.bcs.struct("NewStrategyEvent", {
|
|
562
|
+
vault_index: bcs_1.bcs.u64(), signal_index: bcs_1.bcs.u64(), user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), price_percentage: bcs_1.bcs.u64(), size: bcs_1.bcs.u64(), max_times: bcs_1.bcs.u64(), target_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64())
|
|
563
|
+
});
|
|
564
|
+
},
|
|
565
|
+
enumerable: false,
|
|
566
|
+
configurable: true
|
|
567
|
+
});
|
|
568
|
+
;
|
|
569
|
+
NewStrategyEvent.fromFields = function (fields) { return NewStrategyEvent.reified().new({ vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index), signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index), user: (0, reified_1.decodeFromFields)("address", fields.user), pricePercentage: (0, reified_1.decodeFromFields)("u64", fields.price_percentage), size: (0, reified_1.decodeFromFields)("u64", fields.size), maxTimes: (0, reified_1.decodeFromFields)("u64", fields.max_times), targetRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.target_rounds) }); };
|
|
570
|
+
NewStrategyEvent.fromFieldsWithTypes = function (item) {
|
|
571
|
+
if (!isNewStrategyEvent(item.type)) {
|
|
572
|
+
throw new Error("not a NewStrategyEvent type");
|
|
573
|
+
}
|
|
574
|
+
return NewStrategyEvent.reified().new({ vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index), signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index), user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user), pricePercentage: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price_percentage), size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size), maxTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.max_times), targetRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.target_rounds) });
|
|
575
|
+
};
|
|
576
|
+
NewStrategyEvent.fromBcs = function (data) { return NewStrategyEvent.fromFields(NewStrategyEvent.bcs.parse(data)); };
|
|
577
|
+
NewStrategyEvent.prototype.toJSONField = function () {
|
|
578
|
+
return {
|
|
579
|
+
vaultIndex: this.vaultIndex.toString(), signalIndex: this.signalIndex.toString(), user: this.user, pricePercentage: this.pricePercentage.toString(), size: this.size.toString(), maxTimes: this.maxTimes.toString(), targetRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.targetRounds),
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
NewStrategyEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
583
|
+
NewStrategyEvent.fromJSONField = function (field) { return NewStrategyEvent.reified().new({ vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex), signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex), user: (0, reified_1.decodeFromJSONField)("address", field.user), pricePercentage: (0, reified_1.decodeFromJSONField)("u64", field.pricePercentage), size: (0, reified_1.decodeFromJSONField)("u64", field.size), maxTimes: (0, reified_1.decodeFromJSONField)("u64", field.maxTimes), targetRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.targetRounds) }); };
|
|
584
|
+
NewStrategyEvent.fromJSON = function (json) {
|
|
585
|
+
if (json.$typeName !== NewStrategyEvent.$typeName) {
|
|
586
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
587
|
+
}
|
|
588
|
+
;
|
|
589
|
+
return NewStrategyEvent.fromJSONField(json);
|
|
590
|
+
};
|
|
591
|
+
NewStrategyEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
592
|
+
throw new Error("not an object");
|
|
593
|
+
} if (!isNewStrategyEvent(content.type)) {
|
|
594
|
+
throw new Error("object at ".concat(content.fields.id, " is not a NewStrategyEvent object"));
|
|
595
|
+
} return NewStrategyEvent.fromFieldsWithTypes(content); };
|
|
596
|
+
NewStrategyEvent.fetch = function (client, id) {
|
|
597
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
598
|
+
var res;
|
|
599
|
+
var _a, _b;
|
|
600
|
+
return __generator(this, function (_c) {
|
|
601
|
+
switch (_c.label) {
|
|
602
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
603
|
+
case 1:
|
|
604
|
+
res = _c.sent();
|
|
605
|
+
if (res.error) {
|
|
606
|
+
throw new Error("error fetching NewStrategyEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
607
|
+
}
|
|
608
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isNewStrategyEvent(res.data.bcs.type)) {
|
|
609
|
+
throw new Error("object at id ".concat(id, " is not a NewStrategyEvent object"));
|
|
610
|
+
}
|
|
611
|
+
return [2 /*return*/, NewStrategyEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
612
|
+
}
|
|
613
|
+
});
|
|
614
|
+
});
|
|
615
|
+
};
|
|
616
|
+
NewStrategyEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::NewStrategyEvent";
|
|
617
|
+
NewStrategyEvent.$numTypeParams = 0;
|
|
618
|
+
return NewStrategyEvent;
|
|
619
|
+
}());
|
|
620
|
+
exports.NewStrategyEvent = NewStrategyEvent;
|
|
621
|
+
/* ============================== NewStrategyEventV2 =============================== */
|
|
622
|
+
function isNewStrategyEventV2(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::NewStrategyEventV2"; }
|
|
623
|
+
var NewStrategyEventV2 = /** @class */ (function () {
|
|
624
|
+
function NewStrategyEventV2(typeArgs, fields) {
|
|
625
|
+
this.$typeName = NewStrategyEventV2.$typeName;
|
|
626
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategyEventV2.$typeName], __read(typeArgs), false));
|
|
627
|
+
this.$typeArgs = typeArgs;
|
|
628
|
+
this.vaultIndex = fields.vaultIndex;
|
|
629
|
+
;
|
|
630
|
+
this.signalIndex = fields.signalIndex;
|
|
631
|
+
;
|
|
632
|
+
this.user = fields.user;
|
|
633
|
+
;
|
|
634
|
+
this.pricePercentage = fields.pricePercentage;
|
|
635
|
+
;
|
|
636
|
+
this.size = fields.size;
|
|
637
|
+
;
|
|
638
|
+
this.maxTimes = fields.maxTimes;
|
|
639
|
+
;
|
|
640
|
+
this.targetRounds = fields.targetRounds;
|
|
641
|
+
;
|
|
642
|
+
this.depositAmount = fields.depositAmount;
|
|
643
|
+
}
|
|
644
|
+
NewStrategyEventV2.reified = function () {
|
|
645
|
+
var _this = this;
|
|
646
|
+
return { typeName: NewStrategyEventV2.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategyEventV2.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return NewStrategyEventV2.fromFields(fields); }, fromFieldsWithTypes: function (item) { return NewStrategyEventV2.fromFieldsWithTypes(item); }, fromBcs: function (data) { return NewStrategyEventV2.fromBcs(data); }, bcs: NewStrategyEventV2.bcs, fromJSONField: function (field) { return NewStrategyEventV2.fromJSONField(field); }, fromJSON: function (json) { return NewStrategyEventV2.fromJSON(json); }, fromSuiParsedData: function (content) { return NewStrategyEventV2.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
647
|
+
return [2 /*return*/, NewStrategyEventV2.fetch(client, id)];
|
|
648
|
+
}); }); }, new: function (fields) { return new NewStrategyEventV2([], fields); }, kind: "StructClassReified", };
|
|
649
|
+
};
|
|
650
|
+
Object.defineProperty(NewStrategyEventV2, "r", {
|
|
651
|
+
get: function () { return NewStrategyEventV2.reified(); },
|
|
652
|
+
enumerable: false,
|
|
653
|
+
configurable: true
|
|
654
|
+
});
|
|
655
|
+
NewStrategyEventV2.phantom = function () { return (0, reified_1.phantom)(NewStrategyEventV2.reified()); };
|
|
656
|
+
Object.defineProperty(NewStrategyEventV2, "p", {
|
|
657
|
+
get: function () { return NewStrategyEventV2.phantom(); },
|
|
658
|
+
enumerable: false,
|
|
659
|
+
configurable: true
|
|
660
|
+
});
|
|
661
|
+
Object.defineProperty(NewStrategyEventV2, "bcs", {
|
|
662
|
+
get: function () {
|
|
663
|
+
return bcs_1.bcs.struct("NewStrategyEventV2", {
|
|
664
|
+
vault_index: bcs_1.bcs.u64(), signal_index: bcs_1.bcs.u64(), user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), price_percentage: bcs_1.bcs.u64(), size: bcs_1.bcs.u64(), max_times: bcs_1.bcs.u64(), target_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()), deposit_amount: bcs_1.bcs.u64()
|
|
665
|
+
});
|
|
666
|
+
},
|
|
667
|
+
enumerable: false,
|
|
668
|
+
configurable: true
|
|
669
|
+
});
|
|
670
|
+
;
|
|
671
|
+
NewStrategyEventV2.fromFields = function (fields) { return NewStrategyEventV2.reified().new({ vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index), signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index), user: (0, reified_1.decodeFromFields)("address", fields.user), pricePercentage: (0, reified_1.decodeFromFields)("u64", fields.price_percentage), size: (0, reified_1.decodeFromFields)("u64", fields.size), maxTimes: (0, reified_1.decodeFromFields)("u64", fields.max_times), targetRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.target_rounds), depositAmount: (0, reified_1.decodeFromFields)("u64", fields.deposit_amount) }); };
|
|
672
|
+
NewStrategyEventV2.fromFieldsWithTypes = function (item) {
|
|
673
|
+
if (!isNewStrategyEventV2(item.type)) {
|
|
674
|
+
throw new Error("not a NewStrategyEventV2 type");
|
|
675
|
+
}
|
|
676
|
+
return NewStrategyEventV2.reified().new({ vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index), signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index), user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user), pricePercentage: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price_percentage), size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size), maxTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.max_times), targetRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.target_rounds), depositAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.deposit_amount) });
|
|
677
|
+
};
|
|
678
|
+
NewStrategyEventV2.fromBcs = function (data) { return NewStrategyEventV2.fromFields(NewStrategyEventV2.bcs.parse(data)); };
|
|
679
|
+
NewStrategyEventV2.prototype.toJSONField = function () {
|
|
680
|
+
return {
|
|
681
|
+
vaultIndex: this.vaultIndex.toString(), signalIndex: this.signalIndex.toString(), user: this.user, pricePercentage: this.pricePercentage.toString(), size: this.size.toString(), maxTimes: this.maxTimes.toString(), targetRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.targetRounds), depositAmount: this.depositAmount.toString(),
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
NewStrategyEventV2.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
685
|
+
NewStrategyEventV2.fromJSONField = function (field) { return NewStrategyEventV2.reified().new({ vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex), signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex), user: (0, reified_1.decodeFromJSONField)("address", field.user), pricePercentage: (0, reified_1.decodeFromJSONField)("u64", field.pricePercentage), size: (0, reified_1.decodeFromJSONField)("u64", field.size), maxTimes: (0, reified_1.decodeFromJSONField)("u64", field.maxTimes), targetRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.targetRounds), depositAmount: (0, reified_1.decodeFromJSONField)("u64", field.depositAmount) }); };
|
|
686
|
+
NewStrategyEventV2.fromJSON = function (json) {
|
|
687
|
+
if (json.$typeName !== NewStrategyEventV2.$typeName) {
|
|
688
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
689
|
+
}
|
|
690
|
+
;
|
|
691
|
+
return NewStrategyEventV2.fromJSONField(json);
|
|
692
|
+
};
|
|
693
|
+
NewStrategyEventV2.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
694
|
+
throw new Error("not an object");
|
|
695
|
+
} if (!isNewStrategyEventV2(content.type)) {
|
|
696
|
+
throw new Error("object at ".concat(content.fields.id, " is not a NewStrategyEventV2 object"));
|
|
697
|
+
} return NewStrategyEventV2.fromFieldsWithTypes(content); };
|
|
698
|
+
NewStrategyEventV2.fetch = function (client, id) {
|
|
699
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
700
|
+
var res;
|
|
701
|
+
var _a, _b;
|
|
702
|
+
return __generator(this, function (_c) {
|
|
703
|
+
switch (_c.label) {
|
|
704
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
705
|
+
case 1:
|
|
706
|
+
res = _c.sent();
|
|
707
|
+
if (res.error) {
|
|
708
|
+
throw new Error("error fetching NewStrategyEventV2 object at id ".concat(id, ": ").concat(res.error.code));
|
|
709
|
+
}
|
|
710
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isNewStrategyEventV2(res.data.bcs.type)) {
|
|
711
|
+
throw new Error("object at id ".concat(id, " is not a NewStrategyEventV2 object"));
|
|
712
|
+
}
|
|
713
|
+
return [2 /*return*/, NewStrategyEventV2.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
714
|
+
}
|
|
715
|
+
});
|
|
716
|
+
});
|
|
717
|
+
};
|
|
718
|
+
NewStrategyEventV2.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::NewStrategyEventV2";
|
|
719
|
+
NewStrategyEventV2.$numTypeParams = 0;
|
|
720
|
+
return NewStrategyEventV2;
|
|
721
|
+
}());
|
|
722
|
+
exports.NewStrategyEventV2 = NewStrategyEventV2;
|
|
723
|
+
/* ============================== NewStrategyPoolEvent =============================== */
|
|
724
|
+
function isNewStrategyPoolEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::NewStrategyPoolEvent"; }
|
|
725
|
+
var NewStrategyPoolEvent = /** @class */ (function () {
|
|
726
|
+
function NewStrategyPoolEvent(typeArgs, fields) {
|
|
727
|
+
this.$typeName = NewStrategyPoolEvent.$typeName;
|
|
728
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategyPoolEvent.$typeName], __read(typeArgs), false));
|
|
729
|
+
this.$typeArgs = typeArgs;
|
|
730
|
+
this.id = fields.id;
|
|
731
|
+
;
|
|
732
|
+
this.signer = fields.signer;
|
|
733
|
+
}
|
|
734
|
+
NewStrategyPoolEvent.reified = function () {
|
|
735
|
+
var _this = this;
|
|
736
|
+
return { typeName: NewStrategyPoolEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategyPoolEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return NewStrategyPoolEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return NewStrategyPoolEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return NewStrategyPoolEvent.fromBcs(data); }, bcs: NewStrategyPoolEvent.bcs, fromJSONField: function (field) { return NewStrategyPoolEvent.fromJSONField(field); }, fromJSON: function (json) { return NewStrategyPoolEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return NewStrategyPoolEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
737
|
+
return [2 /*return*/, NewStrategyPoolEvent.fetch(client, id)];
|
|
738
|
+
}); }); }, new: function (fields) { return new NewStrategyPoolEvent([], fields); }, kind: "StructClassReified", };
|
|
739
|
+
};
|
|
740
|
+
Object.defineProperty(NewStrategyPoolEvent, "r", {
|
|
741
|
+
get: function () { return NewStrategyPoolEvent.reified(); },
|
|
742
|
+
enumerable: false,
|
|
743
|
+
configurable: true
|
|
744
|
+
});
|
|
745
|
+
NewStrategyPoolEvent.phantom = function () { return (0, reified_1.phantom)(NewStrategyPoolEvent.reified()); };
|
|
746
|
+
Object.defineProperty(NewStrategyPoolEvent, "p", {
|
|
747
|
+
get: function () { return NewStrategyPoolEvent.phantom(); },
|
|
748
|
+
enumerable: false,
|
|
749
|
+
configurable: true
|
|
750
|
+
});
|
|
751
|
+
Object.defineProperty(NewStrategyPoolEvent, "bcs", {
|
|
752
|
+
get: function () {
|
|
753
|
+
return bcs_1.bcs.struct("NewStrategyPoolEvent", {
|
|
754
|
+
id: structs_1.ID.bcs, signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, })
|
|
755
|
+
});
|
|
756
|
+
},
|
|
757
|
+
enumerable: false,
|
|
758
|
+
configurable: true
|
|
759
|
+
});
|
|
760
|
+
;
|
|
761
|
+
NewStrategyPoolEvent.fromFields = function (fields) { return NewStrategyPoolEvent.reified().new({ id: (0, reified_1.decodeFromFields)(structs_1.ID.reified(), fields.id), signer: (0, reified_1.decodeFromFields)("address", fields.signer) }); };
|
|
762
|
+
NewStrategyPoolEvent.fromFieldsWithTypes = function (item) {
|
|
763
|
+
if (!isNewStrategyPoolEvent(item.type)) {
|
|
764
|
+
throw new Error("not a NewStrategyPoolEvent type");
|
|
765
|
+
}
|
|
766
|
+
return NewStrategyPoolEvent.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.ID.reified(), item.fields.id), signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer) });
|
|
767
|
+
};
|
|
768
|
+
NewStrategyPoolEvent.fromBcs = function (data) { return NewStrategyPoolEvent.fromFields(NewStrategyPoolEvent.bcs.parse(data)); };
|
|
769
|
+
NewStrategyPoolEvent.prototype.toJSONField = function () {
|
|
770
|
+
return {
|
|
771
|
+
id: this.id, signer: this.signer,
|
|
772
|
+
};
|
|
773
|
+
};
|
|
774
|
+
NewStrategyPoolEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
775
|
+
NewStrategyPoolEvent.fromJSONField = function (field) { return NewStrategyPoolEvent.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_1.ID.reified(), field.id), signer: (0, reified_1.decodeFromJSONField)("address", field.signer) }); };
|
|
776
|
+
NewStrategyPoolEvent.fromJSON = function (json) {
|
|
777
|
+
if (json.$typeName !== NewStrategyPoolEvent.$typeName) {
|
|
778
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
779
|
+
}
|
|
780
|
+
;
|
|
781
|
+
return NewStrategyPoolEvent.fromJSONField(json);
|
|
782
|
+
};
|
|
783
|
+
NewStrategyPoolEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
784
|
+
throw new Error("not an object");
|
|
785
|
+
} if (!isNewStrategyPoolEvent(content.type)) {
|
|
786
|
+
throw new Error("object at ".concat(content.fields.id, " is not a NewStrategyPoolEvent object"));
|
|
787
|
+
} return NewStrategyPoolEvent.fromFieldsWithTypes(content); };
|
|
788
|
+
NewStrategyPoolEvent.fetch = function (client, id) {
|
|
789
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
790
|
+
var res;
|
|
791
|
+
var _a, _b;
|
|
792
|
+
return __generator(this, function (_c) {
|
|
793
|
+
switch (_c.label) {
|
|
794
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
795
|
+
case 1:
|
|
796
|
+
res = _c.sent();
|
|
797
|
+
if (res.error) {
|
|
798
|
+
throw new Error("error fetching NewStrategyPoolEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
799
|
+
}
|
|
800
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isNewStrategyPoolEvent(res.data.bcs.type)) {
|
|
801
|
+
throw new Error("object at id ".concat(id, " is not a NewStrategyPoolEvent object"));
|
|
802
|
+
}
|
|
803
|
+
return [2 /*return*/, NewStrategyPoolEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
804
|
+
}
|
|
805
|
+
});
|
|
806
|
+
});
|
|
807
|
+
};
|
|
808
|
+
NewStrategyPoolEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::NewStrategyPoolEvent";
|
|
809
|
+
NewStrategyPoolEvent.$numTypeParams = 0;
|
|
810
|
+
return NewStrategyPoolEvent;
|
|
811
|
+
}());
|
|
812
|
+
exports.NewStrategyPoolEvent = NewStrategyPoolEvent;
|
|
813
|
+
/* ============================== NewStrategySignalEvent =============================== */
|
|
814
|
+
function isNewStrategySignalEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::NewStrategySignalEvent"; }
|
|
815
|
+
var NewStrategySignalEvent = /** @class */ (function () {
|
|
816
|
+
function NewStrategySignalEvent(typeArgs, fields) {
|
|
817
|
+
this.$typeName = NewStrategySignalEvent.$typeName;
|
|
818
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategySignalEvent.$typeName], __read(typeArgs), false));
|
|
819
|
+
this.$typeArgs = typeArgs;
|
|
820
|
+
this.id = fields.id;
|
|
821
|
+
;
|
|
822
|
+
this.vaultIndex = fields.vaultIndex;
|
|
823
|
+
;
|
|
824
|
+
this.signalIndex = fields.signalIndex;
|
|
825
|
+
;
|
|
826
|
+
this.signer = fields.signer;
|
|
827
|
+
}
|
|
828
|
+
NewStrategySignalEvent.reified = function () {
|
|
829
|
+
var _this = this;
|
|
830
|
+
return { typeName: NewStrategySignalEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategySignalEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return NewStrategySignalEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return NewStrategySignalEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return NewStrategySignalEvent.fromBcs(data); }, bcs: NewStrategySignalEvent.bcs, fromJSONField: function (field) { return NewStrategySignalEvent.fromJSONField(field); }, fromJSON: function (json) { return NewStrategySignalEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return NewStrategySignalEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
831
|
+
return [2 /*return*/, NewStrategySignalEvent.fetch(client, id)];
|
|
832
|
+
}); }); }, new: function (fields) { return new NewStrategySignalEvent([], fields); }, kind: "StructClassReified", };
|
|
833
|
+
};
|
|
834
|
+
Object.defineProperty(NewStrategySignalEvent, "r", {
|
|
835
|
+
get: function () { return NewStrategySignalEvent.reified(); },
|
|
836
|
+
enumerable: false,
|
|
837
|
+
configurable: true
|
|
838
|
+
});
|
|
839
|
+
NewStrategySignalEvent.phantom = function () { return (0, reified_1.phantom)(NewStrategySignalEvent.reified()); };
|
|
840
|
+
Object.defineProperty(NewStrategySignalEvent, "p", {
|
|
841
|
+
get: function () { return NewStrategySignalEvent.phantom(); },
|
|
842
|
+
enumerable: false,
|
|
843
|
+
configurable: true
|
|
844
|
+
});
|
|
845
|
+
Object.defineProperty(NewStrategySignalEvent, "bcs", {
|
|
846
|
+
get: function () {
|
|
847
|
+
return bcs_1.bcs.struct("NewStrategySignalEvent", {
|
|
848
|
+
id: structs_1.ID.bcs, vault_index: bcs_1.bcs.u64(), signal_index: bcs_1.bcs.u64(), signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, })
|
|
849
|
+
});
|
|
850
|
+
},
|
|
851
|
+
enumerable: false,
|
|
852
|
+
configurable: true
|
|
853
|
+
});
|
|
854
|
+
;
|
|
855
|
+
NewStrategySignalEvent.fromFields = function (fields) { return NewStrategySignalEvent.reified().new({ id: (0, reified_1.decodeFromFields)(structs_1.ID.reified(), fields.id), vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index), signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index), signer: (0, reified_1.decodeFromFields)("address", fields.signer) }); };
|
|
856
|
+
NewStrategySignalEvent.fromFieldsWithTypes = function (item) {
|
|
857
|
+
if (!isNewStrategySignalEvent(item.type)) {
|
|
858
|
+
throw new Error("not a NewStrategySignalEvent type");
|
|
859
|
+
}
|
|
860
|
+
return NewStrategySignalEvent.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.ID.reified(), item.fields.id), vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index), signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index), signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer) });
|
|
861
|
+
};
|
|
862
|
+
NewStrategySignalEvent.fromBcs = function (data) { return NewStrategySignalEvent.fromFields(NewStrategySignalEvent.bcs.parse(data)); };
|
|
863
|
+
NewStrategySignalEvent.prototype.toJSONField = function () {
|
|
864
|
+
return {
|
|
865
|
+
id: this.id, vaultIndex: this.vaultIndex.toString(), signalIndex: this.signalIndex.toString(), signer: this.signer,
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
NewStrategySignalEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
869
|
+
NewStrategySignalEvent.fromJSONField = function (field) { return NewStrategySignalEvent.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_1.ID.reified(), field.id), vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex), signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex), signer: (0, reified_1.decodeFromJSONField)("address", field.signer) }); };
|
|
870
|
+
NewStrategySignalEvent.fromJSON = function (json) {
|
|
871
|
+
if (json.$typeName !== NewStrategySignalEvent.$typeName) {
|
|
872
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
873
|
+
}
|
|
874
|
+
;
|
|
875
|
+
return NewStrategySignalEvent.fromJSONField(json);
|
|
876
|
+
};
|
|
877
|
+
NewStrategySignalEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
878
|
+
throw new Error("not an object");
|
|
879
|
+
} if (!isNewStrategySignalEvent(content.type)) {
|
|
880
|
+
throw new Error("object at ".concat(content.fields.id, " is not a NewStrategySignalEvent object"));
|
|
881
|
+
} return NewStrategySignalEvent.fromFieldsWithTypes(content); };
|
|
882
|
+
NewStrategySignalEvent.fetch = function (client, id) {
|
|
883
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
884
|
+
var res;
|
|
885
|
+
var _a, _b;
|
|
886
|
+
return __generator(this, function (_c) {
|
|
887
|
+
switch (_c.label) {
|
|
888
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
889
|
+
case 1:
|
|
890
|
+
res = _c.sent();
|
|
891
|
+
if (res.error) {
|
|
892
|
+
throw new Error("error fetching NewStrategySignalEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
893
|
+
}
|
|
894
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isNewStrategySignalEvent(res.data.bcs.type)) {
|
|
895
|
+
throw new Error("object at id ".concat(id, " is not a NewStrategySignalEvent object"));
|
|
896
|
+
}
|
|
897
|
+
return [2 /*return*/, NewStrategySignalEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
898
|
+
}
|
|
899
|
+
});
|
|
900
|
+
});
|
|
901
|
+
};
|
|
902
|
+
NewStrategySignalEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::NewStrategySignalEvent";
|
|
903
|
+
NewStrategySignalEvent.$numTypeParams = 0;
|
|
904
|
+
return NewStrategySignalEvent;
|
|
905
|
+
}());
|
|
906
|
+
exports.NewStrategySignalEvent = NewStrategySignalEvent;
|
|
907
|
+
/* ============================== NewStrategyVaultEvent =============================== */
|
|
908
|
+
function isNewStrategyVaultEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::NewStrategyVaultEvent"; }
|
|
909
|
+
var NewStrategyVaultEvent = /** @class */ (function () {
|
|
910
|
+
function NewStrategyVaultEvent(typeArgs, fields) {
|
|
911
|
+
this.$typeName = NewStrategyVaultEvent.$typeName;
|
|
912
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategyVaultEvent.$typeName], __read(typeArgs), false));
|
|
913
|
+
this.$typeArgs = typeArgs;
|
|
914
|
+
this.id = fields.id;
|
|
915
|
+
;
|
|
916
|
+
this.vaultIndex = fields.vaultIndex;
|
|
917
|
+
;
|
|
918
|
+
this.signer = fields.signer;
|
|
919
|
+
}
|
|
920
|
+
NewStrategyVaultEvent.reified = function () {
|
|
921
|
+
var _this = this;
|
|
922
|
+
return { typeName: NewStrategyVaultEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategyVaultEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return NewStrategyVaultEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return NewStrategyVaultEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return NewStrategyVaultEvent.fromBcs(data); }, bcs: NewStrategyVaultEvent.bcs, fromJSONField: function (field) { return NewStrategyVaultEvent.fromJSONField(field); }, fromJSON: function (json) { return NewStrategyVaultEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return NewStrategyVaultEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
923
|
+
return [2 /*return*/, NewStrategyVaultEvent.fetch(client, id)];
|
|
924
|
+
}); }); }, new: function (fields) { return new NewStrategyVaultEvent([], fields); }, kind: "StructClassReified", };
|
|
925
|
+
};
|
|
926
|
+
Object.defineProperty(NewStrategyVaultEvent, "r", {
|
|
927
|
+
get: function () { return NewStrategyVaultEvent.reified(); },
|
|
928
|
+
enumerable: false,
|
|
929
|
+
configurable: true
|
|
930
|
+
});
|
|
931
|
+
NewStrategyVaultEvent.phantom = function () { return (0, reified_1.phantom)(NewStrategyVaultEvent.reified()); };
|
|
932
|
+
Object.defineProperty(NewStrategyVaultEvent, "p", {
|
|
933
|
+
get: function () { return NewStrategyVaultEvent.phantom(); },
|
|
934
|
+
enumerable: false,
|
|
935
|
+
configurable: true
|
|
936
|
+
});
|
|
937
|
+
Object.defineProperty(NewStrategyVaultEvent, "bcs", {
|
|
938
|
+
get: function () {
|
|
939
|
+
return bcs_1.bcs.struct("NewStrategyVaultEvent", {
|
|
940
|
+
id: structs_1.ID.bcs, vault_index: bcs_1.bcs.u64(), signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, })
|
|
941
|
+
});
|
|
942
|
+
},
|
|
943
|
+
enumerable: false,
|
|
944
|
+
configurable: true
|
|
945
|
+
});
|
|
946
|
+
;
|
|
947
|
+
NewStrategyVaultEvent.fromFields = function (fields) { return NewStrategyVaultEvent.reified().new({ id: (0, reified_1.decodeFromFields)(structs_1.ID.reified(), fields.id), vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index), signer: (0, reified_1.decodeFromFields)("address", fields.signer) }); };
|
|
948
|
+
NewStrategyVaultEvent.fromFieldsWithTypes = function (item) {
|
|
949
|
+
if (!isNewStrategyVaultEvent(item.type)) {
|
|
950
|
+
throw new Error("not a NewStrategyVaultEvent type");
|
|
951
|
+
}
|
|
952
|
+
return NewStrategyVaultEvent.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.ID.reified(), item.fields.id), vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index), signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer) });
|
|
953
|
+
};
|
|
954
|
+
NewStrategyVaultEvent.fromBcs = function (data) { return NewStrategyVaultEvent.fromFields(NewStrategyVaultEvent.bcs.parse(data)); };
|
|
955
|
+
NewStrategyVaultEvent.prototype.toJSONField = function () {
|
|
956
|
+
return {
|
|
957
|
+
id: this.id, vaultIndex: this.vaultIndex.toString(), signer: this.signer,
|
|
958
|
+
};
|
|
959
|
+
};
|
|
960
|
+
NewStrategyVaultEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
961
|
+
NewStrategyVaultEvent.fromJSONField = function (field) { return NewStrategyVaultEvent.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_1.ID.reified(), field.id), vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex), signer: (0, reified_1.decodeFromJSONField)("address", field.signer) }); };
|
|
962
|
+
NewStrategyVaultEvent.fromJSON = function (json) {
|
|
963
|
+
if (json.$typeName !== NewStrategyVaultEvent.$typeName) {
|
|
964
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
965
|
+
}
|
|
966
|
+
;
|
|
967
|
+
return NewStrategyVaultEvent.fromJSONField(json);
|
|
968
|
+
};
|
|
969
|
+
NewStrategyVaultEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
970
|
+
throw new Error("not an object");
|
|
971
|
+
} if (!isNewStrategyVaultEvent(content.type)) {
|
|
972
|
+
throw new Error("object at ".concat(content.fields.id, " is not a NewStrategyVaultEvent object"));
|
|
973
|
+
} return NewStrategyVaultEvent.fromFieldsWithTypes(content); };
|
|
974
|
+
NewStrategyVaultEvent.fetch = function (client, id) {
|
|
975
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
976
|
+
var res;
|
|
977
|
+
var _a, _b;
|
|
978
|
+
return __generator(this, function (_c) {
|
|
979
|
+
switch (_c.label) {
|
|
980
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
981
|
+
case 1:
|
|
982
|
+
res = _c.sent();
|
|
983
|
+
if (res.error) {
|
|
984
|
+
throw new Error("error fetching NewStrategyVaultEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
985
|
+
}
|
|
986
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isNewStrategyVaultEvent(res.data.bcs.type)) {
|
|
987
|
+
throw new Error("object at id ".concat(id, " is not a NewStrategyVaultEvent object"));
|
|
988
|
+
}
|
|
989
|
+
return [2 /*return*/, NewStrategyVaultEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
990
|
+
}
|
|
991
|
+
});
|
|
992
|
+
});
|
|
993
|
+
};
|
|
994
|
+
NewStrategyVaultEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::NewStrategyVaultEvent";
|
|
995
|
+
NewStrategyVaultEvent.$numTypeParams = 0;
|
|
996
|
+
return NewStrategyVaultEvent;
|
|
997
|
+
}());
|
|
998
|
+
exports.NewStrategyVaultEvent = NewStrategyVaultEvent;
|
|
999
|
+
/* ============================== RemoveStrategyVaultEvent =============================== */
|
|
1000
|
+
function isRemoveStrategyVaultEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x197e13a257d67211cd3bc9ff5b93ffd298afedb43f4c7cbdd9438f5e4e823f4f::auto_bid::RemoveStrategyVaultEvent"; }
|
|
1001
|
+
var RemoveStrategyVaultEvent = /** @class */ (function () {
|
|
1002
|
+
function RemoveStrategyVaultEvent(typeArgs, fields) {
|
|
1003
|
+
this.$typeName = RemoveStrategyVaultEvent.$typeName;
|
|
1004
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemoveStrategyVaultEvent.$typeName], __read(typeArgs), false));
|
|
1005
|
+
this.$typeArgs = typeArgs;
|
|
1006
|
+
this.id = fields.id;
|
|
1007
|
+
;
|
|
1008
|
+
this.vaultIndex = fields.vaultIndex;
|
|
1009
|
+
;
|
|
1010
|
+
this.signer = fields.signer;
|
|
1011
|
+
}
|
|
1012
|
+
RemoveStrategyVaultEvent.reified = function () {
|
|
1013
|
+
var _this = this;
|
|
1014
|
+
return { typeName: RemoveStrategyVaultEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemoveStrategyVaultEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return RemoveStrategyVaultEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return RemoveStrategyVaultEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return RemoveStrategyVaultEvent.fromBcs(data); }, bcs: RemoveStrategyVaultEvent.bcs, fromJSONField: function (field) { return RemoveStrategyVaultEvent.fromJSONField(field); }, fromJSON: function (json) { return RemoveStrategyVaultEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return RemoveStrategyVaultEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1015
|
+
return [2 /*return*/, RemoveStrategyVaultEvent.fetch(client, id)];
|
|
1016
|
+
}); }); }, new: function (fields) { return new RemoveStrategyVaultEvent([], fields); }, kind: "StructClassReified", };
|
|
1017
|
+
};
|
|
1018
|
+
Object.defineProperty(RemoveStrategyVaultEvent, "r", {
|
|
1019
|
+
get: function () { return RemoveStrategyVaultEvent.reified(); },
|
|
1020
|
+
enumerable: false,
|
|
1021
|
+
configurable: true
|
|
1022
|
+
});
|
|
1023
|
+
RemoveStrategyVaultEvent.phantom = function () { return (0, reified_1.phantom)(RemoveStrategyVaultEvent.reified()); };
|
|
1024
|
+
Object.defineProperty(RemoveStrategyVaultEvent, "p", {
|
|
1025
|
+
get: function () { return RemoveStrategyVaultEvent.phantom(); },
|
|
1026
|
+
enumerable: false,
|
|
1027
|
+
configurable: true
|
|
1028
|
+
});
|
|
1029
|
+
Object.defineProperty(RemoveStrategyVaultEvent, "bcs", {
|
|
1030
|
+
get: function () {
|
|
1031
|
+
return bcs_1.bcs.struct("RemoveStrategyVaultEvent", {
|
|
1032
|
+
id: structs_1.ID.bcs, vault_index: bcs_1.bcs.u64(), signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, })
|
|
1033
|
+
});
|
|
1034
|
+
},
|
|
1035
|
+
enumerable: false,
|
|
1036
|
+
configurable: true
|
|
1037
|
+
});
|
|
1038
|
+
;
|
|
1039
|
+
RemoveStrategyVaultEvent.fromFields = function (fields) { return RemoveStrategyVaultEvent.reified().new({ id: (0, reified_1.decodeFromFields)(structs_1.ID.reified(), fields.id), vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index), signer: (0, reified_1.decodeFromFields)("address", fields.signer) }); };
|
|
1040
|
+
RemoveStrategyVaultEvent.fromFieldsWithTypes = function (item) {
|
|
1041
|
+
if (!isRemoveStrategyVaultEvent(item.type)) {
|
|
1042
|
+
throw new Error("not a RemoveStrategyVaultEvent type");
|
|
1043
|
+
}
|
|
1044
|
+
return RemoveStrategyVaultEvent.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.ID.reified(), item.fields.id), vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index), signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer) });
|
|
1045
|
+
};
|
|
1046
|
+
RemoveStrategyVaultEvent.fromBcs = function (data) { return RemoveStrategyVaultEvent.fromFields(RemoveStrategyVaultEvent.bcs.parse(data)); };
|
|
1047
|
+
RemoveStrategyVaultEvent.prototype.toJSONField = function () {
|
|
1048
|
+
return {
|
|
1049
|
+
id: this.id, vaultIndex: this.vaultIndex.toString(), signer: this.signer,
|
|
1050
|
+
};
|
|
1051
|
+
};
|
|
1052
|
+
RemoveStrategyVaultEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1053
|
+
RemoveStrategyVaultEvent.fromJSONField = function (field) { return RemoveStrategyVaultEvent.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_1.ID.reified(), field.id), vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex), signer: (0, reified_1.decodeFromJSONField)("address", field.signer) }); };
|
|
1054
|
+
RemoveStrategyVaultEvent.fromJSON = function (json) {
|
|
1055
|
+
if (json.$typeName !== RemoveStrategyVaultEvent.$typeName) {
|
|
1056
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
1057
|
+
}
|
|
1058
|
+
;
|
|
1059
|
+
return RemoveStrategyVaultEvent.fromJSONField(json);
|
|
1060
|
+
};
|
|
1061
|
+
RemoveStrategyVaultEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1062
|
+
throw new Error("not an object");
|
|
1063
|
+
} if (!isRemoveStrategyVaultEvent(content.type)) {
|
|
1064
|
+
throw new Error("object at ".concat(content.fields.id, " is not a RemoveStrategyVaultEvent object"));
|
|
1065
|
+
} return RemoveStrategyVaultEvent.fromFieldsWithTypes(content); };
|
|
1066
|
+
RemoveStrategyVaultEvent.fetch = function (client, id) {
|
|
1067
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1068
|
+
var res;
|
|
1069
|
+
var _a, _b;
|
|
1070
|
+
return __generator(this, function (_c) {
|
|
1071
|
+
switch (_c.label) {
|
|
1072
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1073
|
+
case 1:
|
|
1074
|
+
res = _c.sent();
|
|
1075
|
+
if (res.error) {
|
|
1076
|
+
throw new Error("error fetching RemoveStrategyVaultEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
1077
|
+
}
|
|
1078
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRemoveStrategyVaultEvent(res.data.bcs.type)) {
|
|
1079
|
+
throw new Error("object at id ".concat(id, " is not a RemoveStrategyVaultEvent object"));
|
|
1080
|
+
}
|
|
1081
|
+
return [2 /*return*/, RemoveStrategyVaultEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1082
|
+
}
|
|
1083
|
+
});
|
|
1084
|
+
});
|
|
1085
|
+
};
|
|
1086
|
+
RemoveStrategyVaultEvent.$typeName = "0x197e13a257d67211cd3bc9ff5b93ffd298afedb43f4c7cbdd9438f5e4e823f4f::auto_bid::RemoveStrategyVaultEvent";
|
|
1087
|
+
RemoveStrategyVaultEvent.$numTypeParams = 0;
|
|
1088
|
+
return RemoveStrategyVaultEvent;
|
|
1089
|
+
}());
|
|
1090
|
+
exports.RemoveStrategyVaultEvent = RemoveStrategyVaultEvent;
|
|
1091
|
+
/* ============================== Strategy =============================== */
|
|
1092
|
+
function isStrategy(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::Strategy"; }
|
|
1093
|
+
var Strategy = /** @class */ (function () {
|
|
1094
|
+
function Strategy(typeArgs, fields) {
|
|
1095
|
+
this.$typeName = Strategy.$typeName;
|
|
1096
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Strategy.$typeName], __read(typeArgs), false));
|
|
1097
|
+
this.$typeArgs = typeArgs;
|
|
1098
|
+
this.id = fields.id;
|
|
1099
|
+
;
|
|
1100
|
+
this.vaultIndex = fields.vaultIndex;
|
|
1101
|
+
;
|
|
1102
|
+
this.signalIndex = fields.signalIndex;
|
|
1103
|
+
;
|
|
1104
|
+
this.user = fields.user;
|
|
1105
|
+
;
|
|
1106
|
+
this.pricePercentage = fields.pricePercentage;
|
|
1107
|
+
;
|
|
1108
|
+
this.size = fields.size;
|
|
1109
|
+
;
|
|
1110
|
+
this.maxTimes = fields.maxTimes;
|
|
1111
|
+
;
|
|
1112
|
+
this.targetRounds = fields.targetRounds;
|
|
1113
|
+
;
|
|
1114
|
+
this.receipts = fields.receipts;
|
|
1115
|
+
;
|
|
1116
|
+
this.active = fields.active;
|
|
1117
|
+
;
|
|
1118
|
+
this.u64Padding = fields.u64Padding;
|
|
1119
|
+
;
|
|
1120
|
+
this.bidTimes = fields.bidTimes;
|
|
1121
|
+
;
|
|
1122
|
+
this.bidRound = fields.bidRound;
|
|
1123
|
+
;
|
|
1124
|
+
this.bidTsMs = fields.bidTsMs;
|
|
1125
|
+
}
|
|
1126
|
+
Strategy.reified = function () {
|
|
1127
|
+
var _this = this;
|
|
1128
|
+
return { typeName: Strategy.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Strategy.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return Strategy.fromFields(fields); }, fromFieldsWithTypes: function (item) { return Strategy.fromFieldsWithTypes(item); }, fromBcs: function (data) { return Strategy.fromBcs(data); }, bcs: Strategy.bcs, fromJSONField: function (field) { return Strategy.fromJSONField(field); }, fromJSON: function (json) { return Strategy.fromJSON(json); }, fromSuiParsedData: function (content) { return Strategy.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1129
|
+
return [2 /*return*/, Strategy.fetch(client, id)];
|
|
1130
|
+
}); }); }, new: function (fields) { return new Strategy([], fields); }, kind: "StructClassReified", };
|
|
1131
|
+
};
|
|
1132
|
+
Object.defineProperty(Strategy, "r", {
|
|
1133
|
+
get: function () { return Strategy.reified(); },
|
|
1134
|
+
enumerable: false,
|
|
1135
|
+
configurable: true
|
|
1136
|
+
});
|
|
1137
|
+
Strategy.phantom = function () { return (0, reified_1.phantom)(Strategy.reified()); };
|
|
1138
|
+
Object.defineProperty(Strategy, "p", {
|
|
1139
|
+
get: function () { return Strategy.phantom(); },
|
|
1140
|
+
enumerable: false,
|
|
1141
|
+
configurable: true
|
|
1142
|
+
});
|
|
1143
|
+
Object.defineProperty(Strategy, "bcs", {
|
|
1144
|
+
get: function () {
|
|
1145
|
+
return bcs_1.bcs.struct("Strategy", {
|
|
1146
|
+
id: structs_1.UID.bcs, vault_index: bcs_1.bcs.u64(), signal_index: bcs_1.bcs.u64(), user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), price_percentage: bcs_1.bcs.u64(), size: bcs_1.bcs.u64(), max_times: bcs_1.bcs.u64(), target_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()), receipts: bcs_1.bcs.vector(structs_4.TypusBidReceipt.bcs), active: bcs_1.bcs.bool(), u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()), bid_times: bcs_1.bcs.u64(), bid_round: bcs_1.bcs.u64(), bid_ts_ms: bcs_1.bcs.u64()
|
|
1147
|
+
});
|
|
1148
|
+
},
|
|
1149
|
+
enumerable: false,
|
|
1150
|
+
configurable: true
|
|
1151
|
+
});
|
|
1152
|
+
;
|
|
1153
|
+
Strategy.fromFields = function (fields) { return Strategy.reified().new({ id: (0, reified_1.decodeFromFields)(structs_1.UID.reified(), fields.id), vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index), signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index), user: (0, reified_1.decodeFromFields)("address", fields.user), pricePercentage: (0, reified_1.decodeFromFields)("u64", fields.price_percentage), size: (0, reified_1.decodeFromFields)("u64", fields.size), maxTimes: (0, reified_1.decodeFromFields)("u64", fields.max_times), targetRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.target_rounds), receipts: (0, reified_1.decodeFromFields)(reified.vector(structs_4.TypusBidReceipt.reified()), fields.receipts), active: (0, reified_1.decodeFromFields)("bool", fields.active), u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding), bidTimes: (0, reified_1.decodeFromFields)("u64", fields.bid_times), bidRound: (0, reified_1.decodeFromFields)("u64", fields.bid_round), bidTsMs: (0, reified_1.decodeFromFields)("u64", fields.bid_ts_ms) }); };
|
|
1154
|
+
Strategy.fromFieldsWithTypes = function (item) {
|
|
1155
|
+
if (!isStrategy(item.type)) {
|
|
1156
|
+
throw new Error("not a Strategy type");
|
|
1157
|
+
}
|
|
1158
|
+
return Strategy.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.UID.reified(), item.fields.id), vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index), signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index), user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user), pricePercentage: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price_percentage), size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size), maxTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.max_times), targetRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.target_rounds), receipts: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(structs_4.TypusBidReceipt.reified()), item.fields.receipts), active: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.active), u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding), bidTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_times), bidRound: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_round), bidTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_ts_ms) });
|
|
1159
|
+
};
|
|
1160
|
+
Strategy.fromBcs = function (data) { return Strategy.fromFields(Strategy.bcs.parse(data)); };
|
|
1161
|
+
Strategy.prototype.toJSONField = function () {
|
|
1162
|
+
return {
|
|
1163
|
+
id: this.id, vaultIndex: this.vaultIndex.toString(), signalIndex: this.signalIndex.toString(), user: this.user, pricePercentage: this.pricePercentage.toString(), size: this.size.toString(), maxTimes: this.maxTimes.toString(), targetRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.targetRounds), receipts: (0, reified_1.fieldToJSON)("vector<0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::vault::TypusBidReceipt>", this.receipts), active: this.active, u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding), bidTimes: this.bidTimes.toString(), bidRound: this.bidRound.toString(), bidTsMs: this.bidTsMs.toString(),
|
|
1164
|
+
};
|
|
1165
|
+
};
|
|
1166
|
+
Strategy.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1167
|
+
Strategy.fromJSONField = function (field) { return Strategy.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_1.UID.reified(), field.id), vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex), signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex), user: (0, reified_1.decodeFromJSONField)("address", field.user), pricePercentage: (0, reified_1.decodeFromJSONField)("u64", field.pricePercentage), size: (0, reified_1.decodeFromJSONField)("u64", field.size), maxTimes: (0, reified_1.decodeFromJSONField)("u64", field.maxTimes), targetRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.targetRounds), receipts: (0, reified_1.decodeFromJSONField)(reified.vector(structs_4.TypusBidReceipt.reified()), field.receipts), active: (0, reified_1.decodeFromJSONField)("bool", field.active), u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding), bidTimes: (0, reified_1.decodeFromJSONField)("u64", field.bidTimes), bidRound: (0, reified_1.decodeFromJSONField)("u64", field.bidRound), bidTsMs: (0, reified_1.decodeFromJSONField)("u64", field.bidTsMs) }); };
|
|
1168
|
+
Strategy.fromJSON = function (json) {
|
|
1169
|
+
if (json.$typeName !== Strategy.$typeName) {
|
|
1170
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
1171
|
+
}
|
|
1172
|
+
;
|
|
1173
|
+
return Strategy.fromJSONField(json);
|
|
1174
|
+
};
|
|
1175
|
+
Strategy.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1176
|
+
throw new Error("not an object");
|
|
1177
|
+
} if (!isStrategy(content.type)) {
|
|
1178
|
+
throw new Error("object at ".concat(content.fields.id, " is not a Strategy object"));
|
|
1179
|
+
} return Strategy.fromFieldsWithTypes(content); };
|
|
1180
|
+
Strategy.fetch = function (client, id) {
|
|
1181
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1182
|
+
var res;
|
|
1183
|
+
var _a, _b;
|
|
1184
|
+
return __generator(this, function (_c) {
|
|
1185
|
+
switch (_c.label) {
|
|
1186
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1187
|
+
case 1:
|
|
1188
|
+
res = _c.sent();
|
|
1189
|
+
if (res.error) {
|
|
1190
|
+
throw new Error("error fetching Strategy object at id ".concat(id, ": ").concat(res.error.code));
|
|
1191
|
+
}
|
|
1192
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStrategy(res.data.bcs.type)) {
|
|
1193
|
+
throw new Error("object at id ".concat(id, " is not a Strategy object"));
|
|
1194
|
+
}
|
|
1195
|
+
return [2 /*return*/, Strategy.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1196
|
+
}
|
|
1197
|
+
});
|
|
1198
|
+
});
|
|
1199
|
+
};
|
|
1200
|
+
Strategy.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::Strategy";
|
|
1201
|
+
Strategy.$numTypeParams = 0;
|
|
1202
|
+
return Strategy;
|
|
1203
|
+
}());
|
|
1204
|
+
exports.Strategy = Strategy;
|
|
1205
|
+
/* ============================== StrategyPool =============================== */
|
|
1206
|
+
function isStrategyPool(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::StrategyPool"; }
|
|
1207
|
+
var StrategyPool = /** @class */ (function () {
|
|
1208
|
+
function StrategyPool(typeArgs, fields) {
|
|
1209
|
+
this.$typeName = StrategyPool.$typeName;
|
|
1210
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StrategyPool.$typeName], __read(typeArgs), false));
|
|
1211
|
+
this.$typeArgs = typeArgs;
|
|
1212
|
+
this.id = fields.id;
|
|
1213
|
+
;
|
|
1214
|
+
this.strategies = fields.strategies;
|
|
1215
|
+
;
|
|
1216
|
+
this.authority = fields.authority;
|
|
1217
|
+
}
|
|
1218
|
+
StrategyPool.reified = function () {
|
|
1219
|
+
var _this = this;
|
|
1220
|
+
return { typeName: StrategyPool.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StrategyPool.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return StrategyPool.fromFields(fields); }, fromFieldsWithTypes: function (item) { return StrategyPool.fromFieldsWithTypes(item); }, fromBcs: function (data) { return StrategyPool.fromBcs(data); }, bcs: StrategyPool.bcs, fromJSONField: function (field) { return StrategyPool.fromJSONField(field); }, fromJSON: function (json) { return StrategyPool.fromJSON(json); }, fromSuiParsedData: function (content) { return StrategyPool.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1221
|
+
return [2 /*return*/, StrategyPool.fetch(client, id)];
|
|
1222
|
+
}); }); }, new: function (fields) { return new StrategyPool([], fields); }, kind: "StructClassReified", };
|
|
1223
|
+
};
|
|
1224
|
+
Object.defineProperty(StrategyPool, "r", {
|
|
1225
|
+
get: function () { return StrategyPool.reified(); },
|
|
1226
|
+
enumerable: false,
|
|
1227
|
+
configurable: true
|
|
1228
|
+
});
|
|
1229
|
+
StrategyPool.phantom = function () { return (0, reified_1.phantom)(StrategyPool.reified()); };
|
|
1230
|
+
Object.defineProperty(StrategyPool, "p", {
|
|
1231
|
+
get: function () { return StrategyPool.phantom(); },
|
|
1232
|
+
enumerable: false,
|
|
1233
|
+
configurable: true
|
|
1234
|
+
});
|
|
1235
|
+
Object.defineProperty(StrategyPool, "bcs", {
|
|
1236
|
+
get: function () {
|
|
1237
|
+
return bcs_1.bcs.struct("StrategyPool", {
|
|
1238
|
+
id: structs_1.UID.bcs, strategies: structs_3.VecMap.bcs(bcs_1.bcs.u64(), structs_3.VecMap.bcs(bcs_1.bcs.u64(), structs_2.TableVec.bcs)), authority: bcs_1.bcs.vector(bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }))
|
|
1239
|
+
});
|
|
1240
|
+
},
|
|
1241
|
+
enumerable: false,
|
|
1242
|
+
configurable: true
|
|
1243
|
+
});
|
|
1244
|
+
;
|
|
1245
|
+
StrategyPool.fromFields = function (fields) { return StrategyPool.reified().new({ id: (0, reified_1.decodeFromFields)(structs_1.UID.reified(), fields.id), strategies: (0, reified_1.decodeFromFields)(structs_3.VecMap.reified("u64", structs_3.VecMap.reified("u64", structs_2.TableVec.reified(reified.phantom(Strategy.reified())))), fields.strategies), authority: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.authority) }); };
|
|
1246
|
+
StrategyPool.fromFieldsWithTypes = function (item) {
|
|
1247
|
+
if (!isStrategyPool(item.type)) {
|
|
1248
|
+
throw new Error("not a StrategyPool type");
|
|
1249
|
+
}
|
|
1250
|
+
return StrategyPool.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.UID.reified(), item.fields.id), strategies: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.VecMap.reified("u64", structs_3.VecMap.reified("u64", structs_2.TableVec.reified(reified.phantom(Strategy.reified())))), item.fields.strategies), authority: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.authority) });
|
|
1251
|
+
};
|
|
1252
|
+
StrategyPool.fromBcs = function (data) { return StrategyPool.fromFields(StrategyPool.bcs.parse(data)); };
|
|
1253
|
+
StrategyPool.prototype.toJSONField = function () {
|
|
1254
|
+
return {
|
|
1255
|
+
id: this.id, strategies: this.strategies.toJSONField(), authority: (0, reified_1.fieldToJSON)("vector<address>", this.authority),
|
|
1256
|
+
};
|
|
1257
|
+
};
|
|
1258
|
+
StrategyPool.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1259
|
+
StrategyPool.fromJSONField = function (field) { return StrategyPool.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_1.UID.reified(), field.id), strategies: (0, reified_1.decodeFromJSONField)(structs_3.VecMap.reified("u64", structs_3.VecMap.reified("u64", structs_2.TableVec.reified(reified.phantom(Strategy.reified())))), field.strategies), authority: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.authority) }); };
|
|
1260
|
+
StrategyPool.fromJSON = function (json) {
|
|
1261
|
+
if (json.$typeName !== StrategyPool.$typeName) {
|
|
1262
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
1263
|
+
}
|
|
1264
|
+
;
|
|
1265
|
+
return StrategyPool.fromJSONField(json);
|
|
1266
|
+
};
|
|
1267
|
+
StrategyPool.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1268
|
+
throw new Error("not an object");
|
|
1269
|
+
} if (!isStrategyPool(content.type)) {
|
|
1270
|
+
throw new Error("object at ".concat(content.fields.id, " is not a StrategyPool object"));
|
|
1271
|
+
} return StrategyPool.fromFieldsWithTypes(content); };
|
|
1272
|
+
StrategyPool.fetch = function (client, id) {
|
|
1273
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1274
|
+
var res;
|
|
1275
|
+
var _a, _b;
|
|
1276
|
+
return __generator(this, function (_c) {
|
|
1277
|
+
switch (_c.label) {
|
|
1278
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1279
|
+
case 1:
|
|
1280
|
+
res = _c.sent();
|
|
1281
|
+
if (res.error) {
|
|
1282
|
+
throw new Error("error fetching StrategyPool object at id ".concat(id, ": ").concat(res.error.code));
|
|
1283
|
+
}
|
|
1284
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStrategyPool(res.data.bcs.type)) {
|
|
1285
|
+
throw new Error("object at id ".concat(id, " is not a StrategyPool object"));
|
|
1286
|
+
}
|
|
1287
|
+
return [2 /*return*/, StrategyPool.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1288
|
+
}
|
|
1289
|
+
});
|
|
1290
|
+
});
|
|
1291
|
+
};
|
|
1292
|
+
StrategyPool.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::StrategyPool";
|
|
1293
|
+
StrategyPool.$numTypeParams = 0;
|
|
1294
|
+
return StrategyPool;
|
|
1295
|
+
}());
|
|
1296
|
+
exports.StrategyPool = StrategyPool;
|
|
1297
|
+
/* ============================== StrategyPoolV2 =============================== */
|
|
1298
|
+
function isStrategyPoolV2(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::StrategyPoolV2"; }
|
|
1299
|
+
var StrategyPoolV2 = /** @class */ (function () {
|
|
1300
|
+
function StrategyPoolV2(typeArgs, fields) {
|
|
1301
|
+
this.$typeName = StrategyPoolV2.$typeName;
|
|
1302
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StrategyPoolV2.$typeName], __read(typeArgs), false));
|
|
1303
|
+
this.$typeArgs = typeArgs;
|
|
1304
|
+
this.id = fields.id;
|
|
1305
|
+
;
|
|
1306
|
+
this.strategies = fields.strategies;
|
|
1307
|
+
;
|
|
1308
|
+
this.authority = fields.authority;
|
|
1309
|
+
}
|
|
1310
|
+
StrategyPoolV2.reified = function () {
|
|
1311
|
+
var _this = this;
|
|
1312
|
+
return { typeName: StrategyPoolV2.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StrategyPoolV2.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return StrategyPoolV2.fromFields(fields); }, fromFieldsWithTypes: function (item) { return StrategyPoolV2.fromFieldsWithTypes(item); }, fromBcs: function (data) { return StrategyPoolV2.fromBcs(data); }, bcs: StrategyPoolV2.bcs, fromJSONField: function (field) { return StrategyPoolV2.fromJSONField(field); }, fromJSON: function (json) { return StrategyPoolV2.fromJSON(json); }, fromSuiParsedData: function (content) { return StrategyPoolV2.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1313
|
+
return [2 /*return*/, StrategyPoolV2.fetch(client, id)];
|
|
1314
|
+
}); }); }, new: function (fields) { return new StrategyPoolV2([], fields); }, kind: "StructClassReified", };
|
|
1315
|
+
};
|
|
1316
|
+
Object.defineProperty(StrategyPoolV2, "r", {
|
|
1317
|
+
get: function () { return StrategyPoolV2.reified(); },
|
|
1318
|
+
enumerable: false,
|
|
1319
|
+
configurable: true
|
|
1320
|
+
});
|
|
1321
|
+
StrategyPoolV2.phantom = function () { return (0, reified_1.phantom)(StrategyPoolV2.reified()); };
|
|
1322
|
+
Object.defineProperty(StrategyPoolV2, "p", {
|
|
1323
|
+
get: function () { return StrategyPoolV2.phantom(); },
|
|
1324
|
+
enumerable: false,
|
|
1325
|
+
configurable: true
|
|
1326
|
+
});
|
|
1327
|
+
Object.defineProperty(StrategyPoolV2, "bcs", {
|
|
1328
|
+
get: function () {
|
|
1329
|
+
return bcs_1.bcs.struct("StrategyPoolV2", {
|
|
1330
|
+
id: structs_1.UID.bcs, strategies: structs_3.VecMap.bcs(bcs_1.bcs.u64(), structs_3.VecMap.bcs(bcs_1.bcs.u64(), structs_2.TableVec.bcs)), authority: bcs_1.bcs.vector(bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }))
|
|
1331
|
+
});
|
|
1332
|
+
},
|
|
1333
|
+
enumerable: false,
|
|
1334
|
+
configurable: true
|
|
1335
|
+
});
|
|
1336
|
+
;
|
|
1337
|
+
StrategyPoolV2.fromFields = function (fields) { return StrategyPoolV2.reified().new({ id: (0, reified_1.decodeFromFields)(structs_1.UID.reified(), fields.id), strategies: (0, reified_1.decodeFromFields)(structs_3.VecMap.reified("u64", structs_3.VecMap.reified("u64", structs_2.TableVec.reified(reified.phantom(StrategyV2.reified())))), fields.strategies), authority: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.authority) }); };
|
|
1338
|
+
StrategyPoolV2.fromFieldsWithTypes = function (item) {
|
|
1339
|
+
if (!isStrategyPoolV2(item.type)) {
|
|
1340
|
+
throw new Error("not a StrategyPoolV2 type");
|
|
1341
|
+
}
|
|
1342
|
+
return StrategyPoolV2.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.UID.reified(), item.fields.id), strategies: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.VecMap.reified("u64", structs_3.VecMap.reified("u64", structs_2.TableVec.reified(reified.phantom(StrategyV2.reified())))), item.fields.strategies), authority: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.authority) });
|
|
1343
|
+
};
|
|
1344
|
+
StrategyPoolV2.fromBcs = function (data) { return StrategyPoolV2.fromFields(StrategyPoolV2.bcs.parse(data)); };
|
|
1345
|
+
StrategyPoolV2.prototype.toJSONField = function () {
|
|
1346
|
+
return {
|
|
1347
|
+
id: this.id, strategies: this.strategies.toJSONField(), authority: (0, reified_1.fieldToJSON)("vector<address>", this.authority),
|
|
1348
|
+
};
|
|
1349
|
+
};
|
|
1350
|
+
StrategyPoolV2.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1351
|
+
StrategyPoolV2.fromJSONField = function (field) { return StrategyPoolV2.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_1.UID.reified(), field.id), strategies: (0, reified_1.decodeFromJSONField)(structs_3.VecMap.reified("u64", structs_3.VecMap.reified("u64", structs_2.TableVec.reified(reified.phantom(StrategyV2.reified())))), field.strategies), authority: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.authority) }); };
|
|
1352
|
+
StrategyPoolV2.fromJSON = function (json) {
|
|
1353
|
+
if (json.$typeName !== StrategyPoolV2.$typeName) {
|
|
1354
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
1355
|
+
}
|
|
1356
|
+
;
|
|
1357
|
+
return StrategyPoolV2.fromJSONField(json);
|
|
1358
|
+
};
|
|
1359
|
+
StrategyPoolV2.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1360
|
+
throw new Error("not an object");
|
|
1361
|
+
} if (!isStrategyPoolV2(content.type)) {
|
|
1362
|
+
throw new Error("object at ".concat(content.fields.id, " is not a StrategyPoolV2 object"));
|
|
1363
|
+
} return StrategyPoolV2.fromFieldsWithTypes(content); };
|
|
1364
|
+
StrategyPoolV2.fetch = function (client, id) {
|
|
1365
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1366
|
+
var res;
|
|
1367
|
+
var _a, _b;
|
|
1368
|
+
return __generator(this, function (_c) {
|
|
1369
|
+
switch (_c.label) {
|
|
1370
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1371
|
+
case 1:
|
|
1372
|
+
res = _c.sent();
|
|
1373
|
+
if (res.error) {
|
|
1374
|
+
throw new Error("error fetching StrategyPoolV2 object at id ".concat(id, ": ").concat(res.error.code));
|
|
1375
|
+
}
|
|
1376
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStrategyPoolV2(res.data.bcs.type)) {
|
|
1377
|
+
throw new Error("object at id ".concat(id, " is not a StrategyPoolV2 object"));
|
|
1378
|
+
}
|
|
1379
|
+
return [2 /*return*/, StrategyPoolV2.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1380
|
+
}
|
|
1381
|
+
});
|
|
1382
|
+
});
|
|
1383
|
+
};
|
|
1384
|
+
StrategyPoolV2.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::StrategyPoolV2";
|
|
1385
|
+
StrategyPoolV2.$numTypeParams = 0;
|
|
1386
|
+
return StrategyPoolV2;
|
|
1387
|
+
}());
|
|
1388
|
+
exports.StrategyPoolV2 = StrategyPoolV2;
|
|
1389
|
+
/* ============================== StrategyV2 =============================== */
|
|
1390
|
+
function isStrategyV2(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::StrategyV2"; }
|
|
1391
|
+
var StrategyV2 = /** @class */ (function () {
|
|
1392
|
+
function StrategyV2(typeArgs, fields) {
|
|
1393
|
+
this.$typeName = StrategyV2.$typeName;
|
|
1394
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StrategyV2.$typeName], __read(typeArgs), false));
|
|
1395
|
+
this.$typeArgs = typeArgs;
|
|
1396
|
+
this.id = fields.id;
|
|
1397
|
+
;
|
|
1398
|
+
this.vaultIndex = fields.vaultIndex;
|
|
1399
|
+
;
|
|
1400
|
+
this.signalIndex = fields.signalIndex;
|
|
1401
|
+
;
|
|
1402
|
+
this.user = fields.user;
|
|
1403
|
+
;
|
|
1404
|
+
this.pricePercentage = fields.pricePercentage;
|
|
1405
|
+
;
|
|
1406
|
+
this.size = fields.size;
|
|
1407
|
+
;
|
|
1408
|
+
this.maxTimes = fields.maxTimes;
|
|
1409
|
+
;
|
|
1410
|
+
this.targetRounds = fields.targetRounds;
|
|
1411
|
+
;
|
|
1412
|
+
this.receipts = fields.receipts;
|
|
1413
|
+
;
|
|
1414
|
+
this.active = fields.active;
|
|
1415
|
+
;
|
|
1416
|
+
this.u64Padding = fields.u64Padding;
|
|
1417
|
+
;
|
|
1418
|
+
this.bidTimes = fields.bidTimes;
|
|
1419
|
+
;
|
|
1420
|
+
this.bidRound = fields.bidRound;
|
|
1421
|
+
;
|
|
1422
|
+
this.bidTsMs = fields.bidTsMs;
|
|
1423
|
+
;
|
|
1424
|
+
this.bidRounds = fields.bidRounds;
|
|
1425
|
+
;
|
|
1426
|
+
this.accumulatedProfit = fields.accumulatedProfit;
|
|
1427
|
+
}
|
|
1428
|
+
StrategyV2.reified = function () {
|
|
1429
|
+
var _this = this;
|
|
1430
|
+
return { typeName: StrategyV2.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StrategyV2.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return StrategyV2.fromFields(fields); }, fromFieldsWithTypes: function (item) { return StrategyV2.fromFieldsWithTypes(item); }, fromBcs: function (data) { return StrategyV2.fromBcs(data); }, bcs: StrategyV2.bcs, fromJSONField: function (field) { return StrategyV2.fromJSONField(field); }, fromJSON: function (json) { return StrategyV2.fromJSON(json); }, fromSuiParsedData: function (content) { return StrategyV2.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1431
|
+
return [2 /*return*/, StrategyV2.fetch(client, id)];
|
|
1432
|
+
}); }); }, new: function (fields) { return new StrategyV2([], fields); }, kind: "StructClassReified", };
|
|
1433
|
+
};
|
|
1434
|
+
Object.defineProperty(StrategyV2, "r", {
|
|
1435
|
+
get: function () { return StrategyV2.reified(); },
|
|
1436
|
+
enumerable: false,
|
|
1437
|
+
configurable: true
|
|
1438
|
+
});
|
|
1439
|
+
StrategyV2.phantom = function () { return (0, reified_1.phantom)(StrategyV2.reified()); };
|
|
1440
|
+
Object.defineProperty(StrategyV2, "p", {
|
|
1441
|
+
get: function () { return StrategyV2.phantom(); },
|
|
1442
|
+
enumerable: false,
|
|
1443
|
+
configurable: true
|
|
1444
|
+
});
|
|
1445
|
+
Object.defineProperty(StrategyV2, "bcs", {
|
|
1446
|
+
get: function () {
|
|
1447
|
+
return bcs_1.bcs.struct("StrategyV2", {
|
|
1448
|
+
id: structs_1.UID.bcs, vault_index: bcs_1.bcs.u64(), signal_index: bcs_1.bcs.u64(), user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), price_percentage: bcs_1.bcs.u64(), size: bcs_1.bcs.u64(), max_times: bcs_1.bcs.u64(), target_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()), receipts: bcs_1.bcs.vector(structs_4.TypusBidReceipt.bcs), active: bcs_1.bcs.bool(), u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()), bid_times: bcs_1.bcs.u64(), bid_round: bcs_1.bcs.u64(), bid_ts_ms: bcs_1.bcs.u64(), bid_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()), accumulated_profit: bcs_1.bcs.u64()
|
|
1449
|
+
});
|
|
1450
|
+
},
|
|
1451
|
+
enumerable: false,
|
|
1452
|
+
configurable: true
|
|
1453
|
+
});
|
|
1454
|
+
;
|
|
1455
|
+
StrategyV2.fromFields = function (fields) { return StrategyV2.reified().new({ id: (0, reified_1.decodeFromFields)(structs_1.UID.reified(), fields.id), vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index), signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index), user: (0, reified_1.decodeFromFields)("address", fields.user), pricePercentage: (0, reified_1.decodeFromFields)("u64", fields.price_percentage), size: (0, reified_1.decodeFromFields)("u64", fields.size), maxTimes: (0, reified_1.decodeFromFields)("u64", fields.max_times), targetRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.target_rounds), receipts: (0, reified_1.decodeFromFields)(reified.vector(structs_4.TypusBidReceipt.reified()), fields.receipts), active: (0, reified_1.decodeFromFields)("bool", fields.active), u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding), bidTimes: (0, reified_1.decodeFromFields)("u64", fields.bid_times), bidRound: (0, reified_1.decodeFromFields)("u64", fields.bid_round), bidTsMs: (0, reified_1.decodeFromFields)("u64", fields.bid_ts_ms), bidRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.bid_rounds), accumulatedProfit: (0, reified_1.decodeFromFields)("u64", fields.accumulated_profit) }); };
|
|
1456
|
+
StrategyV2.fromFieldsWithTypes = function (item) {
|
|
1457
|
+
if (!isStrategyV2(item.type)) {
|
|
1458
|
+
throw new Error("not a StrategyV2 type");
|
|
1459
|
+
}
|
|
1460
|
+
return StrategyV2.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.UID.reified(), item.fields.id), vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index), signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index), user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user), pricePercentage: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price_percentage), size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size), maxTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.max_times), targetRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.target_rounds), receipts: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(structs_4.TypusBidReceipt.reified()), item.fields.receipts), active: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.active), u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding), bidTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_times), bidRound: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_round), bidTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_ts_ms), bidRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.bid_rounds), accumulatedProfit: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.accumulated_profit) });
|
|
1461
|
+
};
|
|
1462
|
+
StrategyV2.fromBcs = function (data) { return StrategyV2.fromFields(StrategyV2.bcs.parse(data)); };
|
|
1463
|
+
StrategyV2.prototype.toJSONField = function () {
|
|
1464
|
+
return {
|
|
1465
|
+
id: this.id, vaultIndex: this.vaultIndex.toString(), signalIndex: this.signalIndex.toString(), user: this.user, pricePercentage: this.pricePercentage.toString(), size: this.size.toString(), maxTimes: this.maxTimes.toString(), targetRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.targetRounds), receipts: (0, reified_1.fieldToJSON)("vector<0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded::vault::TypusBidReceipt>", this.receipts), active: this.active, u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding), bidTimes: this.bidTimes.toString(), bidRound: this.bidRound.toString(), bidTsMs: this.bidTsMs.toString(), bidRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.bidRounds), accumulatedProfit: this.accumulatedProfit.toString(),
|
|
1466
|
+
};
|
|
1467
|
+
};
|
|
1468
|
+
StrategyV2.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1469
|
+
StrategyV2.fromJSONField = function (field) { return StrategyV2.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_1.UID.reified(), field.id), vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex), signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex), user: (0, reified_1.decodeFromJSONField)("address", field.user), pricePercentage: (0, reified_1.decodeFromJSONField)("u64", field.pricePercentage), size: (0, reified_1.decodeFromJSONField)("u64", field.size), maxTimes: (0, reified_1.decodeFromJSONField)("u64", field.maxTimes), targetRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.targetRounds), receipts: (0, reified_1.decodeFromJSONField)(reified.vector(structs_4.TypusBidReceipt.reified()), field.receipts), active: (0, reified_1.decodeFromJSONField)("bool", field.active), u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding), bidTimes: (0, reified_1.decodeFromJSONField)("u64", field.bidTimes), bidRound: (0, reified_1.decodeFromJSONField)("u64", field.bidRound), bidTsMs: (0, reified_1.decodeFromJSONField)("u64", field.bidTsMs), bidRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.bidRounds), accumulatedProfit: (0, reified_1.decodeFromJSONField)("u64", field.accumulatedProfit) }); };
|
|
1470
|
+
StrategyV2.fromJSON = function (json) {
|
|
1471
|
+
if (json.$typeName !== StrategyV2.$typeName) {
|
|
1472
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
1473
|
+
}
|
|
1474
|
+
;
|
|
1475
|
+
return StrategyV2.fromJSONField(json);
|
|
1476
|
+
};
|
|
1477
|
+
StrategyV2.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1478
|
+
throw new Error("not an object");
|
|
1479
|
+
} if (!isStrategyV2(content.type)) {
|
|
1480
|
+
throw new Error("object at ".concat(content.fields.id, " is not a StrategyV2 object"));
|
|
1481
|
+
} return StrategyV2.fromFieldsWithTypes(content); };
|
|
1482
|
+
StrategyV2.fetch = function (client, id) {
|
|
1483
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1484
|
+
var res;
|
|
1485
|
+
var _a, _b;
|
|
1486
|
+
return __generator(this, function (_c) {
|
|
1487
|
+
switch (_c.label) {
|
|
1488
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1489
|
+
case 1:
|
|
1490
|
+
res = _c.sent();
|
|
1491
|
+
if (res.error) {
|
|
1492
|
+
throw new Error("error fetching StrategyV2 object at id ".concat(id, ": ").concat(res.error.code));
|
|
1493
|
+
}
|
|
1494
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStrategyV2(res.data.bcs.type)) {
|
|
1495
|
+
throw new Error("object at id ".concat(id, " is not a StrategyV2 object"));
|
|
1496
|
+
}
|
|
1497
|
+
return [2 /*return*/, StrategyV2.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1498
|
+
}
|
|
1499
|
+
});
|
|
1500
|
+
});
|
|
1501
|
+
};
|
|
1502
|
+
StrategyV2.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::StrategyV2";
|
|
1503
|
+
StrategyV2.$numTypeParams = 0;
|
|
1504
|
+
return StrategyV2;
|
|
1505
|
+
}());
|
|
1506
|
+
exports.StrategyV2 = StrategyV2;
|
|
1507
|
+
/* ============================== UpdateStrategyEvent =============================== */
|
|
1508
|
+
function isUpdateStrategyEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::UpdateStrategyEvent"; }
|
|
1509
|
+
var UpdateStrategyEvent = /** @class */ (function () {
|
|
1510
|
+
function UpdateStrategyEvent(typeArgs, fields) {
|
|
1511
|
+
this.$typeName = UpdateStrategyEvent.$typeName;
|
|
1512
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateStrategyEvent.$typeName], __read(typeArgs), false));
|
|
1513
|
+
this.$typeArgs = typeArgs;
|
|
1514
|
+
this.vaultIndex = fields.vaultIndex;
|
|
1515
|
+
;
|
|
1516
|
+
this.signalIndex = fields.signalIndex;
|
|
1517
|
+
;
|
|
1518
|
+
this.strategyIndex = fields.strategyIndex;
|
|
1519
|
+
;
|
|
1520
|
+
this.user = fields.user;
|
|
1521
|
+
;
|
|
1522
|
+
this.pricePercentage = fields.pricePercentage;
|
|
1523
|
+
;
|
|
1524
|
+
this.size = fields.size;
|
|
1525
|
+
;
|
|
1526
|
+
this.maxTimes = fields.maxTimes;
|
|
1527
|
+
;
|
|
1528
|
+
this.targetRounds = fields.targetRounds;
|
|
1529
|
+
;
|
|
1530
|
+
this.depositAmount = fields.depositAmount;
|
|
1531
|
+
}
|
|
1532
|
+
UpdateStrategyEvent.reified = function () {
|
|
1533
|
+
var _this = this;
|
|
1534
|
+
return { typeName: UpdateStrategyEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateStrategyEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return UpdateStrategyEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return UpdateStrategyEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return UpdateStrategyEvent.fromBcs(data); }, bcs: UpdateStrategyEvent.bcs, fromJSONField: function (field) { return UpdateStrategyEvent.fromJSONField(field); }, fromJSON: function (json) { return UpdateStrategyEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return UpdateStrategyEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1535
|
+
return [2 /*return*/, UpdateStrategyEvent.fetch(client, id)];
|
|
1536
|
+
}); }); }, new: function (fields) { return new UpdateStrategyEvent([], fields); }, kind: "StructClassReified", };
|
|
1537
|
+
};
|
|
1538
|
+
Object.defineProperty(UpdateStrategyEvent, "r", {
|
|
1539
|
+
get: function () { return UpdateStrategyEvent.reified(); },
|
|
1540
|
+
enumerable: false,
|
|
1541
|
+
configurable: true
|
|
1542
|
+
});
|
|
1543
|
+
UpdateStrategyEvent.phantom = function () { return (0, reified_1.phantom)(UpdateStrategyEvent.reified()); };
|
|
1544
|
+
Object.defineProperty(UpdateStrategyEvent, "p", {
|
|
1545
|
+
get: function () { return UpdateStrategyEvent.phantom(); },
|
|
1546
|
+
enumerable: false,
|
|
1547
|
+
configurable: true
|
|
1548
|
+
});
|
|
1549
|
+
Object.defineProperty(UpdateStrategyEvent, "bcs", {
|
|
1550
|
+
get: function () {
|
|
1551
|
+
return bcs_1.bcs.struct("UpdateStrategyEvent", {
|
|
1552
|
+
vault_index: bcs_1.bcs.u64(), signal_index: bcs_1.bcs.u64(), strategy_index: bcs_1.bcs.u64(), user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), price_percentage: bcs_1.bcs.u64(), size: bcs_1.bcs.u64(), max_times: bcs_1.bcs.u64(), target_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()), deposit_amount: bcs_1.bcs.u64()
|
|
1553
|
+
});
|
|
1554
|
+
},
|
|
1555
|
+
enumerable: false,
|
|
1556
|
+
configurable: true
|
|
1557
|
+
});
|
|
1558
|
+
;
|
|
1559
|
+
UpdateStrategyEvent.fromFields = function (fields) { return UpdateStrategyEvent.reified().new({ vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index), signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index), strategyIndex: (0, reified_1.decodeFromFields)("u64", fields.strategy_index), user: (0, reified_1.decodeFromFields)("address", fields.user), pricePercentage: (0, reified_1.decodeFromFields)("u64", fields.price_percentage), size: (0, reified_1.decodeFromFields)("u64", fields.size), maxTimes: (0, reified_1.decodeFromFields)("u64", fields.max_times), targetRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.target_rounds), depositAmount: (0, reified_1.decodeFromFields)("u64", fields.deposit_amount) }); };
|
|
1560
|
+
UpdateStrategyEvent.fromFieldsWithTypes = function (item) {
|
|
1561
|
+
if (!isUpdateStrategyEvent(item.type)) {
|
|
1562
|
+
throw new Error("not a UpdateStrategyEvent type");
|
|
1563
|
+
}
|
|
1564
|
+
return UpdateStrategyEvent.reified().new({ vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index), signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index), strategyIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.strategy_index), user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user), pricePercentage: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price_percentage), size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size), maxTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.max_times), targetRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.target_rounds), depositAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.deposit_amount) });
|
|
1565
|
+
};
|
|
1566
|
+
UpdateStrategyEvent.fromBcs = function (data) { return UpdateStrategyEvent.fromFields(UpdateStrategyEvent.bcs.parse(data)); };
|
|
1567
|
+
UpdateStrategyEvent.prototype.toJSONField = function () {
|
|
1568
|
+
return {
|
|
1569
|
+
vaultIndex: this.vaultIndex.toString(), signalIndex: this.signalIndex.toString(), strategyIndex: this.strategyIndex.toString(), user: this.user, pricePercentage: this.pricePercentage.toString(), size: this.size.toString(), maxTimes: this.maxTimes.toString(), targetRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.targetRounds), depositAmount: this.depositAmount.toString(),
|
|
1570
|
+
};
|
|
1571
|
+
};
|
|
1572
|
+
UpdateStrategyEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1573
|
+
UpdateStrategyEvent.fromJSONField = function (field) { return UpdateStrategyEvent.reified().new({ vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex), signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex), strategyIndex: (0, reified_1.decodeFromJSONField)("u64", field.strategyIndex), user: (0, reified_1.decodeFromJSONField)("address", field.user), pricePercentage: (0, reified_1.decodeFromJSONField)("u64", field.pricePercentage), size: (0, reified_1.decodeFromJSONField)("u64", field.size), maxTimes: (0, reified_1.decodeFromJSONField)("u64", field.maxTimes), targetRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.targetRounds), depositAmount: (0, reified_1.decodeFromJSONField)("u64", field.depositAmount) }); };
|
|
1574
|
+
UpdateStrategyEvent.fromJSON = function (json) {
|
|
1575
|
+
if (json.$typeName !== UpdateStrategyEvent.$typeName) {
|
|
1576
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
1577
|
+
}
|
|
1578
|
+
;
|
|
1579
|
+
return UpdateStrategyEvent.fromJSONField(json);
|
|
1580
|
+
};
|
|
1581
|
+
UpdateStrategyEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1582
|
+
throw new Error("not an object");
|
|
1583
|
+
} if (!isUpdateStrategyEvent(content.type)) {
|
|
1584
|
+
throw new Error("object at ".concat(content.fields.id, " is not a UpdateStrategyEvent object"));
|
|
1585
|
+
} return UpdateStrategyEvent.fromFieldsWithTypes(content); };
|
|
1586
|
+
UpdateStrategyEvent.fetch = function (client, id) {
|
|
1587
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1588
|
+
var res;
|
|
1589
|
+
var _a, _b;
|
|
1590
|
+
return __generator(this, function (_c) {
|
|
1591
|
+
switch (_c.label) {
|
|
1592
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1593
|
+
case 1:
|
|
1594
|
+
res = _c.sent();
|
|
1595
|
+
if (res.error) {
|
|
1596
|
+
throw new Error("error fetching UpdateStrategyEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
1597
|
+
}
|
|
1598
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateStrategyEvent(res.data.bcs.type)) {
|
|
1599
|
+
throw new Error("object at id ".concat(id, " is not a UpdateStrategyEvent object"));
|
|
1600
|
+
}
|
|
1601
|
+
return [2 /*return*/, UpdateStrategyEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1602
|
+
}
|
|
1603
|
+
});
|
|
1604
|
+
});
|
|
1605
|
+
};
|
|
1606
|
+
UpdateStrategyEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::UpdateStrategyEvent";
|
|
1607
|
+
UpdateStrategyEvent.$numTypeParams = 0;
|
|
1608
|
+
return UpdateStrategyEvent;
|
|
1609
|
+
}());
|
|
1610
|
+
exports.UpdateStrategyEvent = UpdateStrategyEvent;
|
|
1611
|
+
/* ============================== WithdrawProfitEvent =============================== */
|
|
1612
|
+
function isWithdrawProfitEvent(type) { type = (0, util_1.compressSuiType)(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::WithdrawProfitEvent"; }
|
|
1613
|
+
var WithdrawProfitEvent = /** @class */ (function () {
|
|
1614
|
+
function WithdrawProfitEvent(typeArgs, fields) {
|
|
1615
|
+
this.$typeName = WithdrawProfitEvent.$typeName;
|
|
1616
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawProfitEvent.$typeName], __read(typeArgs), false));
|
|
1617
|
+
this.$typeArgs = typeArgs;
|
|
1618
|
+
this.vaultIndex = fields.vaultIndex;
|
|
1619
|
+
;
|
|
1620
|
+
this.signalIndex = fields.signalIndex;
|
|
1621
|
+
;
|
|
1622
|
+
this.strategyIndex = fields.strategyIndex;
|
|
1623
|
+
;
|
|
1624
|
+
this.user = fields.user;
|
|
1625
|
+
;
|
|
1626
|
+
this.profit = fields.profit;
|
|
1627
|
+
}
|
|
1628
|
+
WithdrawProfitEvent.reified = function () {
|
|
1629
|
+
var _this = this;
|
|
1630
|
+
return { typeName: WithdrawProfitEvent.$typeName, fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawProfitEvent.$typeName], [], false)), typeArgs: [], reifiedTypeArgs: [], fromFields: function (fields) { return WithdrawProfitEvent.fromFields(fields); }, fromFieldsWithTypes: function (item) { return WithdrawProfitEvent.fromFieldsWithTypes(item); }, fromBcs: function (data) { return WithdrawProfitEvent.fromBcs(data); }, bcs: WithdrawProfitEvent.bcs, fromJSONField: function (field) { return WithdrawProfitEvent.fromJSONField(field); }, fromJSON: function (json) { return WithdrawProfitEvent.fromJSON(json); }, fromSuiParsedData: function (content) { return WithdrawProfitEvent.fromSuiParsedData(content); }, fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
1631
|
+
return [2 /*return*/, WithdrawProfitEvent.fetch(client, id)];
|
|
1632
|
+
}); }); }, new: function (fields) { return new WithdrawProfitEvent([], fields); }, kind: "StructClassReified", };
|
|
1633
|
+
};
|
|
1634
|
+
Object.defineProperty(WithdrawProfitEvent, "r", {
|
|
1635
|
+
get: function () { return WithdrawProfitEvent.reified(); },
|
|
1636
|
+
enumerable: false,
|
|
1637
|
+
configurable: true
|
|
1638
|
+
});
|
|
1639
|
+
WithdrawProfitEvent.phantom = function () { return (0, reified_1.phantom)(WithdrawProfitEvent.reified()); };
|
|
1640
|
+
Object.defineProperty(WithdrawProfitEvent, "p", {
|
|
1641
|
+
get: function () { return WithdrawProfitEvent.phantom(); },
|
|
1642
|
+
enumerable: false,
|
|
1643
|
+
configurable: true
|
|
1644
|
+
});
|
|
1645
|
+
Object.defineProperty(WithdrawProfitEvent, "bcs", {
|
|
1646
|
+
get: function () {
|
|
1647
|
+
return bcs_1.bcs.struct("WithdrawProfitEvent", {
|
|
1648
|
+
vault_index: bcs_1.bcs.u64(), signal_index: bcs_1.bcs.u64(), strategy_index: bcs_1.bcs.u64(), user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); }, }), profit: bcs_1.bcs.u64()
|
|
1649
|
+
});
|
|
1650
|
+
},
|
|
1651
|
+
enumerable: false,
|
|
1652
|
+
configurable: true
|
|
1653
|
+
});
|
|
1654
|
+
;
|
|
1655
|
+
WithdrawProfitEvent.fromFields = function (fields) { return WithdrawProfitEvent.reified().new({ vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index), signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index), strategyIndex: (0, reified_1.decodeFromFields)("u64", fields.strategy_index), user: (0, reified_1.decodeFromFields)("address", fields.user), profit: (0, reified_1.decodeFromFields)("u64", fields.profit) }); };
|
|
1656
|
+
WithdrawProfitEvent.fromFieldsWithTypes = function (item) {
|
|
1657
|
+
if (!isWithdrawProfitEvent(item.type)) {
|
|
1658
|
+
throw new Error("not a WithdrawProfitEvent type");
|
|
1659
|
+
}
|
|
1660
|
+
return WithdrawProfitEvent.reified().new({ vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index), signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index), strategyIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.strategy_index), user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user), profit: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.profit) });
|
|
1661
|
+
};
|
|
1662
|
+
WithdrawProfitEvent.fromBcs = function (data) { return WithdrawProfitEvent.fromFields(WithdrawProfitEvent.bcs.parse(data)); };
|
|
1663
|
+
WithdrawProfitEvent.prototype.toJSONField = function () {
|
|
1664
|
+
return {
|
|
1665
|
+
vaultIndex: this.vaultIndex.toString(), signalIndex: this.signalIndex.toString(), strategyIndex: this.strategyIndex.toString(), user: this.user, profit: this.profit.toString(),
|
|
1666
|
+
};
|
|
1667
|
+
};
|
|
1668
|
+
WithdrawProfitEvent.prototype.toJSON = function () { return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField()); };
|
|
1669
|
+
WithdrawProfitEvent.fromJSONField = function (field) { return WithdrawProfitEvent.reified().new({ vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex), signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex), strategyIndex: (0, reified_1.decodeFromJSONField)("u64", field.strategyIndex), user: (0, reified_1.decodeFromJSONField)("address", field.user), profit: (0, reified_1.decodeFromJSONField)("u64", field.profit) }); };
|
|
1670
|
+
WithdrawProfitEvent.fromJSON = function (json) {
|
|
1671
|
+
if (json.$typeName !== WithdrawProfitEvent.$typeName) {
|
|
1672
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
1673
|
+
}
|
|
1674
|
+
;
|
|
1675
|
+
return WithdrawProfitEvent.fromJSONField(json);
|
|
1676
|
+
};
|
|
1677
|
+
WithdrawProfitEvent.fromSuiParsedData = function (content) { if (content.dataType !== "moveObject") {
|
|
1678
|
+
throw new Error("not an object");
|
|
1679
|
+
} if (!isWithdrawProfitEvent(content.type)) {
|
|
1680
|
+
throw new Error("object at ".concat(content.fields.id, " is not a WithdrawProfitEvent object"));
|
|
1681
|
+
} return WithdrawProfitEvent.fromFieldsWithTypes(content); };
|
|
1682
|
+
WithdrawProfitEvent.fetch = function (client, id) {
|
|
1683
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1684
|
+
var res;
|
|
1685
|
+
var _a, _b;
|
|
1686
|
+
return __generator(this, function (_c) {
|
|
1687
|
+
switch (_c.label) {
|
|
1688
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true, }, })];
|
|
1689
|
+
case 1:
|
|
1690
|
+
res = _c.sent();
|
|
1691
|
+
if (res.error) {
|
|
1692
|
+
throw new Error("error fetching WithdrawProfitEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
1693
|
+
}
|
|
1694
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isWithdrawProfitEvent(res.data.bcs.type)) {
|
|
1695
|
+
throw new Error("object at id ".concat(id, " is not a WithdrawProfitEvent object"));
|
|
1696
|
+
}
|
|
1697
|
+
return [2 /*return*/, WithdrawProfitEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
|
|
1698
|
+
}
|
|
1699
|
+
});
|
|
1700
|
+
});
|
|
1701
|
+
};
|
|
1702
|
+
WithdrawProfitEvent.$typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::auto_bid::WithdrawProfitEvent";
|
|
1703
|
+
WithdrawProfitEvent.$numTypeParams = 0;
|
|
1704
|
+
return WithdrawProfitEvent;
|
|
1705
|
+
}());
|
|
1706
|
+
exports.WithdrawProfitEvent = WithdrawProfitEvent;
|