@typus/typus-sdk 1.4.3-c → 1.4.3-e
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/package.json +10 -2
- package/src/_dependencies/source/0x1/ascii/structs.ts +135 -0
- package/src/_dependencies/source/0x1/bit-vector/structs.ts +70 -0
- package/src/_dependencies/source/0x1/fixed-point32/structs.ts +69 -0
- package/src/_dependencies/source/0x1/index.ts +1 -0
- package/src/_dependencies/source/0x1/init.ts +16 -0
- package/src/_dependencies/source/0x1/option/structs.ts +74 -0
- package/src/_dependencies/source/0x1/string/structs.ts +70 -0
- package/src/_dependencies/source/0x1/type-name/structs.ts +70 -0
- package/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.ts +1 -0
- package/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.ts +14 -0
- package/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.ts +203 -0
- package/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.ts +317 -0
- package/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.ts +69 -0
- package/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.ts +69 -0
- package/src/_dependencies/source/0x2/authenticator-state/structs.ts +332 -0
- package/src/_dependencies/source/0x2/bag/structs.ts +70 -0
- package/src/_dependencies/source/0x2/balance/structs.ts +134 -0
- package/src/_dependencies/source/0x2/bcs/structs.ts +70 -0
- package/src/_dependencies/source/0x2/bls12381/structs.ts +264 -0
- package/src/_dependencies/source/0x2/borrow/structs.ts +138 -0
- package/src/_dependencies/source/0x2/clock/structs.ts +70 -0
- package/src/_dependencies/source/0x2/coin/structs.ts +400 -0
- package/src/_dependencies/source/0x2/deny-list/structs.ts +139 -0
- package/src/_dependencies/source/0x2/display/structs.ts +202 -0
- package/src/_dependencies/source/0x2/dynamic-field/structs.ts +70 -0
- package/src/_dependencies/source/0x2/dynamic-object-field/structs.ts +71 -0
- package/src/_dependencies/source/0x2/groth16/structs.ts +265 -0
- package/src/_dependencies/source/0x2/group-ops/structs.ts +70 -0
- package/src/_dependencies/source/0x2/index.ts +1 -0
- package/src/_dependencies/source/0x2/init.ts +125 -0
- package/src/_dependencies/source/0x2/kiosk/structs.ts +658 -0
- package/src/_dependencies/source/0x2/kiosk-extension/structs.ts +135 -0
- package/src/_dependencies/source/0x2/linked-table/structs.ts +136 -0
- package/src/_dependencies/source/0x2/object/structs.ts +134 -0
- package/src/_dependencies/source/0x2/object-bag/structs.ts +70 -0
- package/src/_dependencies/source/0x2/object-table/structs.ts +70 -0
- package/src/_dependencies/source/0x2/package/structs.ts +267 -0
- package/src/_dependencies/source/0x2/priority-queue/structs.ts +139 -0
- package/src/_dependencies/source/0x2/random/structs.ts +202 -0
- package/src/_dependencies/source/0x2/sui/structs.ts +69 -0
- package/src/_dependencies/source/0x2/table/structs.ts +70 -0
- package/src/_dependencies/source/0x2/table-vec/structs.ts +71 -0
- package/src/_dependencies/source/0x2/token/structs.ts +401 -0
- package/src/_dependencies/source/0x2/transfer/structs.ts +70 -0
- package/src/_dependencies/source/0x2/transfer-policy/structs.ts +400 -0
- package/src/_dependencies/source/0x2/tx-context/structs.ts +70 -0
- package/src/_dependencies/source/0x2/url/structs.ts +70 -0
- package/src/_dependencies/source/0x2/vec-map/structs.ts +135 -0
- package/src/_dependencies/source/0x2/vec-set/structs.ts +72 -0
- package/src/_dependencies/source/0x2/versioned/structs.ts +135 -0
- package/src/_dependencies/source/0x2/zklogin-verified-id/structs.ts +71 -0
- package/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.ts +71 -0
- package/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.ts +1 -0
- package/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.ts +5 -0
- package/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.ts +70 -0
- package/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.ts +1 -0
- package/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.ts +8 -0
- package/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.ts +69 -0
- package/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.ts +135 -0
- package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.ts +400 -0
- package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.ts +372 -0
- package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.ts +205 -0
- package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.ts +333 -0
- package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.ts +1 -0
- package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.ts +48 -0
- package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.ts +465 -0
- package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.ts +136 -0
- package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.ts +140 -0
- package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.ts +268 -0
- package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.ts +332 -0
- package/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.ts +466 -0
- package/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.ts +1 -0
- package/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.ts +36 -0
- package/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.ts +134 -0
- package/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.ts +333 -0
- package/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.ts +71 -0
- package/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.ts +856 -0
- package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.ts +1049 -0
- package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.ts +1 -0
- package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.ts +104 -0
- package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.ts +1054 -0
- package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.ts +592 -0
- package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.ts +461 -0
- package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.ts +592 -0
- package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.ts +69 -0
- package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.ts +2351 -0
- package/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.ts +1 -0
- package/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.ts +3 -0
- package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.ts +71 -0
- package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.ts +203 -0
- package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.ts +70 -0
- package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.ts +528 -0
- package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.ts +69 -0
- package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.ts +1 -0
- package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.ts +54 -0
- package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.ts +136 -0
- package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.ts +1829 -0
- package/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.ts +398 -0
- package/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.ts +1 -0
- package/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.ts +18 -0
- package/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.ts +71 -0
- package/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.ts +69 -0
- package/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.ts +71 -0
- package/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.ts +70 -0
- package/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.ts +1 -0
- package/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.ts +11 -0
- package/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.ts +134 -0
- package/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.ts +134 -0
- package/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.ts +69 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.ts +70 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.ts +70 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.ts +72 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.ts +72 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.ts +200 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.ts +70 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.ts +72 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.ts +137 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.ts +70 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.ts +71 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.ts +70 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.ts +1 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.ts +65 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.ts +70 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.ts +266 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.ts +136 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.ts +136 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.ts +134 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.ts +70 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.ts +142 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.ts +134 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.ts +201 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.ts +201 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.ts +72 -0
- package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.ts +134 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.ts +136 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.ts +136 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.ts +70 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.ts +135 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.ts +71 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.ts +69 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.ts +71 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.ts +72 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.ts +69 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.ts +1 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.ts +59 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.ts +70 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.ts +70 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.ts +71 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.ts +70 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.ts +136 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.ts +69 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.ts +138 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.ts +71 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.ts +69 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.ts +70 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.ts +69 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.ts +69 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.ts +70 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.ts +203 -0
- package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.ts +134 -0
- package/src/_framework/init-source.ts +39 -0
- package/src/_framework/loader.ts +69 -0
- package/src/_framework/reified.ts +442 -0
- package/src/_framework/util.ts +265 -0
- package/src/airdrop/authority-entry.ts +101 -0
- package/src/airdrop/index.ts +3 -0
- package/src/airdrop/user-entry.ts +24 -0
- package/src/airdrop/view-function.ts +36 -0
- package/src/auto-bid/index.ts +2 -0
- package/src/auto-bid/user-entry.ts +256 -0
- package/src/auto-bid/view-function.ts +285 -0
- package/src/constants/constant.ts +32 -0
- package/src/constants/index.ts +2 -0
- package/src/constants/token.ts +194 -0
- package/src/index.ts +11 -0
- package/src/leaderboard/authority-entry.ts +63 -0
- package/src/leaderboard/index.ts +2 -0
- package/src/leaderboard/view-function.ts +66 -0
- package/src/tails-exp-dice/api.ts +46 -0
- package/src/tails-exp-dice/fetch.ts +347 -0
- package/src/tails-exp-dice/index.ts +4 -0
- package/src/tails-exp-dice/user-entry.ts +241 -0
- package/src/tails-exp-dice/view-function.ts +111 -0
- package/src/tails-staking/authority-entry.ts +333 -0
- package/src/tails-staking/index.ts +3 -0
- package/src/tails-staking/user-entry.ts +401 -0
- package/src/tails-staking/view-function.ts +86 -0
- package/src/typus-dov-single-v2/entry/authority-entry.ts +171 -0
- package/src/typus-dov-single-v2/entry/index.ts +3 -0
- package/src/typus-dov-single-v2/entry/mfud-user-entry.ts +591 -0
- package/src/typus-dov-single-v2/entry/user-entry.ts +573 -0
- package/src/typus-dov-single-v2/function/bidding.ts +823 -0
- package/src/typus-dov-single-v2/function/index.ts +3 -0
- package/src/typus-dov-single-v2/function/token.ts +38 -0
- package/src/typus-dov-single-v2/function/vault.ts +24 -0
- package/src/typus-dov-single-v2/history/index.ts +2 -0
- package/src/typus-dov-single-v2/history/user-history.ts +929 -0
- package/src/typus-dov-single-v2/history/vault-history.ts +452 -0
- package/src/typus-dov-single-v2/index.ts +4 -0
- package/src/typus-dov-single-v2/view-function.ts +705 -0
- package/src/typus-nft/fetch.ts +428 -0
- package/src/typus-nft/index.ts +2 -0
- package/src/typus-nft/user-entry.ts +113 -0
- package/src/typus-perp/admin/functions.ts +141 -0
- package/src/typus-perp/admin/structs.ts +793 -0
- package/src/typus-perp/fetch.ts +253 -0
- package/src/typus-perp/index.ts +9 -0
- package/src/typus-perp/init.ts +96 -0
- package/src/typus-perp/lp-pool/functions.ts +694 -0
- package/src/typus-perp/lp-pool/structs.ts +3884 -0
- package/src/typus-perp/math/functions.ts +53 -0
- package/src/typus-perp/oracle/functions.ts +32 -0
- package/src/typus-perp/oracle/structs.ts +317 -0
- package/src/typus-perp/position/functions.ts +887 -0
- package/src/typus-perp/position/structs.ts +1637 -0
- package/src/typus-perp/readVec.ts +118 -0
- package/src/typus-perp/stake-pool/functions.ts +421 -0
- package/src/typus-perp/stake-pool/structs.ts +3873 -0
- package/src/typus-perp/symbol/functions.ts +24 -0
- package/src/typus-perp/symbol/structs.ts +165 -0
- package/src/typus-perp/tlp/functions.ts +50 -0
- package/src/typus-perp/tlp/structs.ts +287 -0
- package/src/typus-perp/token-interface/functions.ts +29 -0
- package/src/typus-perp/trading/functions.ts +1046 -0
- package/src/typus-perp/trading/structs.ts +4541 -0
- package/src/typus-perp/treasury-caps/functions.ts +36 -0
- package/src/typus-perp/treasury-caps/structs.ts +151 -0
- package/src/typus-perp/user/order.ts +221 -0
- package/src/typus-perp/user/orderWithBidReceipt.ts +176 -0
- package/src/typus-perp/user/tlp.ts +234 -0
- package/src/user/index.ts +1 -0
- package/src/user/view-function.ts +33 -0
- package/src/utils/.DS_Store +0 -0
- package/src/utils/api/defillama/index.ts +1 -0
- package/src/utils/api/defillama/tvl.ts +11 -0
- package/src/utils/api/index.ts +3 -0
- package/src/utils/api/price.ts +101 -0
- package/src/utils/api/sentio/index.ts +2 -0
- package/src/utils/api/sentio/leader-board.ts +259 -0
- package/src/utils/api/sentio/reward-generated.ts +392 -0
- package/src/utils/index.ts +5 -0
- package/src/utils/load_env.ts +5 -0
- package/src/utils/mint.ts +16 -0
- package/src/utils/pyth/constant.ts +71 -0
- package/src/utils/pyth/index.ts +2 -0
- package/src/utils/pyth/pythClient.ts +52 -0
- package/src/utils/tools.ts +38 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { TransactionBlock } from "@mysten/sui.js/transactions";
|
|
2
|
+
import { SuiClient, getFullnodeUrl } from "@mysten/sui.js/client";
|
|
3
|
+
import { Ed25519Keypair } from "@mysten/sui.js/keypairs/ed25519";
|
|
4
|
+
import { BcsReader } from "@mysten/bcs";
|
|
5
|
+
import loadBls from "bls-signatures";
|
|
6
|
+
|
|
7
|
+
export interface DrawResult {
|
|
8
|
+
answer_1: string;
|
|
9
|
+
result_1: string;
|
|
10
|
+
answer_2: string;
|
|
11
|
+
result_2: string;
|
|
12
|
+
exp: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export async function simulateGame(
|
|
16
|
+
network: "mainnet" | "testnet",
|
|
17
|
+
packageId: string,
|
|
18
|
+
registry: string,
|
|
19
|
+
index: string,
|
|
20
|
+
amount: string,
|
|
21
|
+
guess_1: string,
|
|
22
|
+
larger_than_1: boolean,
|
|
23
|
+
guess_2: string,
|
|
24
|
+
larger_than_2: boolean,
|
|
25
|
+
vrf_input_1: number[],
|
|
26
|
+
vrf_input_2: number[],
|
|
27
|
+
drawKeys,
|
|
28
|
+
sender = "0xb6c7e3b1c61ee81516a8317f221daa035f1503e0ac3ae7a50b61834bc7a3ead9"
|
|
29
|
+
): Promise<DrawResult> {
|
|
30
|
+
const provider = new SuiClient({ url: getFullnodeUrl(network) });
|
|
31
|
+
|
|
32
|
+
let transactionBlock = new TransactionBlock();
|
|
33
|
+
let target = `${packageId}::tails_exp::simulate_game` as any;
|
|
34
|
+
|
|
35
|
+
const BLS = await loadBls();
|
|
36
|
+
const PRIVATE_KEY = Uint8Array.from(drawKeys[network][index]); // your draw key. TODO: use env for cloud function
|
|
37
|
+
let draw_private_key = BLS.PrivateKey.from_bytes(PRIVATE_KEY, true);
|
|
38
|
+
|
|
39
|
+
let bls_signature_1 = BLS.BasicSchemeMPL.sign(draw_private_key, Uint8Array.from(vrf_input_1)).serialize();
|
|
40
|
+
let bls_signature_2 = BLS.BasicSchemeMPL.sign(draw_private_key, Uint8Array.from(vrf_input_2)).serialize();
|
|
41
|
+
|
|
42
|
+
let transactionBlockArguments = [
|
|
43
|
+
transactionBlock.object(registry),
|
|
44
|
+
transactionBlock.pure(index),
|
|
45
|
+
transactionBlock.pure(amount),
|
|
46
|
+
transactionBlock.pure(guess_1),
|
|
47
|
+
transactionBlock.pure(larger_than_1),
|
|
48
|
+
transactionBlock.pure(guess_2),
|
|
49
|
+
transactionBlock.pure(larger_than_2),
|
|
50
|
+
transactionBlock.pure(uint8ArrayToBCSStringArray(Uint8Array.from(vrf_input_1))),
|
|
51
|
+
transactionBlock.pure(uint8ArrayToBCSStringArray(Uint8Array.from(vrf_input_2))),
|
|
52
|
+
transactionBlock.pure(uint8ArrayToBCSStringArray(bls_signature_1)),
|
|
53
|
+
transactionBlock.pure(uint8ArrayToBCSStringArray(bls_signature_2)),
|
|
54
|
+
];
|
|
55
|
+
transactionBlock.moveCall({
|
|
56
|
+
target,
|
|
57
|
+
typeArguments: [],
|
|
58
|
+
arguments: transactionBlockArguments,
|
|
59
|
+
});
|
|
60
|
+
let results = (await provider.devInspectTransactionBlock({ transactionBlock, sender })).results;
|
|
61
|
+
// @ts-ignore
|
|
62
|
+
let bytes = results[results.length - 1].returnValues[0][0];
|
|
63
|
+
let reader = new BcsReader(new Uint8Array(bytes));
|
|
64
|
+
// vector[
|
|
65
|
+
// answer_1,
|
|
66
|
+
// result_1,
|
|
67
|
+
// answer_2,
|
|
68
|
+
// result_2,
|
|
69
|
+
// exp
|
|
70
|
+
// ]
|
|
71
|
+
// skip vector length byte first
|
|
72
|
+
reader.read8();
|
|
73
|
+
let answer_1 = reader.read64();
|
|
74
|
+
let result_1 = reader.read64();
|
|
75
|
+
let answer_2 = reader.read64();
|
|
76
|
+
let result_2 = reader.read64();
|
|
77
|
+
let exp = reader.read64();
|
|
78
|
+
let result = {
|
|
79
|
+
answer_1,
|
|
80
|
+
result_1,
|
|
81
|
+
answer_2,
|
|
82
|
+
result_2,
|
|
83
|
+
exp,
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
return result;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function uint8ArrayToBCSStringArray(uint8Array: Uint8Array): string[] {
|
|
90
|
+
const result: string[] = [];
|
|
91
|
+
|
|
92
|
+
for (let i = 0; i < uint8Array.length; i++) {
|
|
93
|
+
// Assume each byte is a UTF-8 character
|
|
94
|
+
const character = String.fromCharCode(uint8Array[i]);
|
|
95
|
+
|
|
96
|
+
// Convert character to its BCS representation (you need to implement this part)
|
|
97
|
+
const bcsRepresentation = encodeToBCS(character);
|
|
98
|
+
|
|
99
|
+
// Add BCS representation to the result array
|
|
100
|
+
result.push(bcsRepresentation);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return result;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Function to encode a character to its BCS representation
|
|
107
|
+
function encodeToBCS(character: string): string {
|
|
108
|
+
// You need to implement this part based on BCS encoding rules
|
|
109
|
+
// This is a placeholder; the actual implementation depends on BCS specifications
|
|
110
|
+
return character.charCodeAt(0).toString();
|
|
111
|
+
}
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import { TransactionBlock, TransactionObjectInput } from "@mysten/sui.js/transactions";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
entry fun upload_ids(
|
|
5
|
+
version: &Version,
|
|
6
|
+
tails_staking_registry: &mut TailsStakingRegistry,
|
|
7
|
+
mut ids: vector<address>, // reverse
|
|
8
|
+
ctx: &TxContext,
|
|
9
|
+
) {
|
|
10
|
+
*/
|
|
11
|
+
export function getUploadIdsTx(input: {
|
|
12
|
+
tx: TransactionBlock;
|
|
13
|
+
typusPackageId: string;
|
|
14
|
+
typusEcosystemVersion: string;
|
|
15
|
+
typusTailsStakingRegistry: string;
|
|
16
|
+
ids: string[];
|
|
17
|
+
}) {
|
|
18
|
+
let result = input.tx.moveCall({
|
|
19
|
+
target: `${input.typusPackageId}::tails_staking::upload_ids`,
|
|
20
|
+
typeArguments: [],
|
|
21
|
+
arguments: [
|
|
22
|
+
input.tx.object(input.typusEcosystemVersion),
|
|
23
|
+
input.tx.object(input.typusTailsStakingRegistry),
|
|
24
|
+
input.tx.pure(input.ids),
|
|
25
|
+
],
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
return input.tx;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
entry fun remove_ids(
|
|
33
|
+
version: &Version,
|
|
34
|
+
tails_staking_registry: &mut TailsStakingRegistry,
|
|
35
|
+
mut count: u64,
|
|
36
|
+
ctx: &TxContext,
|
|
37
|
+
) {
|
|
38
|
+
*/
|
|
39
|
+
export function getRemoveIdsTx(input: {
|
|
40
|
+
tx: TransactionBlock;
|
|
41
|
+
typusPackageId: string;
|
|
42
|
+
typusEcosystemVersion: string;
|
|
43
|
+
typusTailsStakingRegistry: string;
|
|
44
|
+
count: string;
|
|
45
|
+
}) {
|
|
46
|
+
let result = input.tx.moveCall({
|
|
47
|
+
target: `${input.typusPackageId}::tails_staking::remove_ids`,
|
|
48
|
+
typeArguments: [],
|
|
49
|
+
arguments: [
|
|
50
|
+
input.tx.object(input.typusEcosystemVersion),
|
|
51
|
+
input.tx.object(input.typusTailsStakingRegistry),
|
|
52
|
+
input.tx.pure(input.count),
|
|
53
|
+
],
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
return input.tx;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
entry fun upload_levels(
|
|
61
|
+
version: &Version,
|
|
62
|
+
tails_staking_registry: &mut TailsStakingRegistry,
|
|
63
|
+
mut count: u64,
|
|
64
|
+
ctx: &TxContext,
|
|
65
|
+
) {
|
|
66
|
+
*/
|
|
67
|
+
export function getUploadLevelsTx(input: {
|
|
68
|
+
tx: TransactionBlock;
|
|
69
|
+
typusPackageId: string;
|
|
70
|
+
typusEcosystemVersion: string;
|
|
71
|
+
typusTailsStakingRegistry: string;
|
|
72
|
+
count: string;
|
|
73
|
+
}) {
|
|
74
|
+
let result = input.tx.moveCall({
|
|
75
|
+
target: `${input.typusPackageId}::tails_staking::upload_levels`,
|
|
76
|
+
typeArguments: [],
|
|
77
|
+
arguments: [
|
|
78
|
+
input.tx.object(input.typusEcosystemVersion),
|
|
79
|
+
input.tx.object(input.typusTailsStakingRegistry),
|
|
80
|
+
input.tx.pure(input.count),
|
|
81
|
+
],
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
return input.tx;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
entry fun remove_levels(
|
|
89
|
+
version: &Version,
|
|
90
|
+
tails_staking_registry: &mut TailsStakingRegistry,
|
|
91
|
+
mut count: u64,
|
|
92
|
+
ctx: &TxContext,
|
|
93
|
+
) {
|
|
94
|
+
*/
|
|
95
|
+
export function getRemoveLevelsTx(input: {
|
|
96
|
+
tx: TransactionBlock;
|
|
97
|
+
typusPackageId: string;
|
|
98
|
+
typusEcosystemVersion: string;
|
|
99
|
+
typusTailsStakingRegistry: string;
|
|
100
|
+
count: string;
|
|
101
|
+
}) {
|
|
102
|
+
let result = input.tx.moveCall({
|
|
103
|
+
target: `${input.typusPackageId}::tails_staking::remove_levels`,
|
|
104
|
+
typeArguments: [],
|
|
105
|
+
arguments: [
|
|
106
|
+
input.tx.object(input.typusEcosystemVersion),
|
|
107
|
+
input.tx.object(input.typusTailsStakingRegistry),
|
|
108
|
+
input.tx.pure(input.count),
|
|
109
|
+
],
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
return input.tx;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
entry fun upload_ipfs_urls(
|
|
117
|
+
version: &Version,
|
|
118
|
+
tails_staking_registry: &mut TailsStakingRegistry,
|
|
119
|
+
level: u64,
|
|
120
|
+
mut urls: vector<vector<u8>>, // reverse
|
|
121
|
+
ctx: &TxContext,
|
|
122
|
+
) {
|
|
123
|
+
*/
|
|
124
|
+
export function getUploadIpfsUrlsTx(input: {
|
|
125
|
+
tx: TransactionBlock;
|
|
126
|
+
typusPackageId: string;
|
|
127
|
+
typusEcosystemVersion: string;
|
|
128
|
+
typusTailsStakingRegistry: string;
|
|
129
|
+
level: string;
|
|
130
|
+
urls: string[][];
|
|
131
|
+
}) {
|
|
132
|
+
let result = input.tx.moveCall({
|
|
133
|
+
target: `${input.typusPackageId}::tails_staking::upload_ipfs_urls`,
|
|
134
|
+
typeArguments: [],
|
|
135
|
+
arguments: [
|
|
136
|
+
input.tx.object(input.typusEcosystemVersion),
|
|
137
|
+
input.tx.object(input.typusTailsStakingRegistry),
|
|
138
|
+
input.tx.pure(input.level),
|
|
139
|
+
input.tx.pure(input.urls),
|
|
140
|
+
],
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
return input.tx;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
entry fun remove_ipfs_urls(
|
|
148
|
+
version: &Version,
|
|
149
|
+
tails_staking_registry: &mut TailsStakingRegistry,
|
|
150
|
+
level: u64,
|
|
151
|
+
ctx: &mut TxContext,
|
|
152
|
+
) {
|
|
153
|
+
*/
|
|
154
|
+
export function getRemoveIpfsUrlsTx(input: {
|
|
155
|
+
tx: TransactionBlock;
|
|
156
|
+
typusPackageId: string;
|
|
157
|
+
typusEcosystemVersion: string;
|
|
158
|
+
typusTailsStakingRegistry: string;
|
|
159
|
+
level: string;
|
|
160
|
+
}) {
|
|
161
|
+
let result = input.tx.moveCall({
|
|
162
|
+
target: `${input.typusPackageId}::tails_staking::remove_ipfs_urls`,
|
|
163
|
+
typeArguments: [],
|
|
164
|
+
arguments: [
|
|
165
|
+
input.tx.object(input.typusEcosystemVersion),
|
|
166
|
+
input.tx.object(input.typusTailsStakingRegistry),
|
|
167
|
+
input.tx.pure(input.level),
|
|
168
|
+
],
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
return input.tx;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
entry fun upload_webp_bytes(
|
|
176
|
+
version: &Version,
|
|
177
|
+
tails_staking_registry: &mut TailsStakingRegistry,
|
|
178
|
+
number: u64,
|
|
179
|
+
level: u64,
|
|
180
|
+
mut bytes: vector<u8>, // reverse when extend
|
|
181
|
+
ctx: &TxContext,
|
|
182
|
+
) {
|
|
183
|
+
*/
|
|
184
|
+
export function getUploadWebpBytesTx(input: {
|
|
185
|
+
tx: TransactionBlock;
|
|
186
|
+
typusPackageId: string;
|
|
187
|
+
typusEcosystemVersion: string;
|
|
188
|
+
typusTailsStakingRegistry: string;
|
|
189
|
+
number: string;
|
|
190
|
+
level: string;
|
|
191
|
+
bytes: string[];
|
|
192
|
+
}) {
|
|
193
|
+
let result = input.tx.moveCall({
|
|
194
|
+
target: `${input.typusPackageId}::tails_staking::upload_webp_bytes`,
|
|
195
|
+
typeArguments: [],
|
|
196
|
+
arguments: [
|
|
197
|
+
input.tx.object(input.typusEcosystemVersion),
|
|
198
|
+
input.tx.object(input.typusTailsStakingRegistry),
|
|
199
|
+
input.tx.pure(input.number),
|
|
200
|
+
input.tx.pure(input.level),
|
|
201
|
+
input.tx.pure(input.bytes),
|
|
202
|
+
],
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
return input.tx;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
entry fun remove_webp_bytes(
|
|
210
|
+
version: &Version,
|
|
211
|
+
tails_staking_registry: &mut TailsStakingRegistry,
|
|
212
|
+
number: u64,
|
|
213
|
+
level: u64,
|
|
214
|
+
ctx: &TxContext,
|
|
215
|
+
) {
|
|
216
|
+
*/
|
|
217
|
+
export function getRemoveWebpBytesTx(input: {
|
|
218
|
+
tx: TransactionBlock;
|
|
219
|
+
typusPackageId: string;
|
|
220
|
+
typusEcosystemVersion: string;
|
|
221
|
+
typusTailsStakingRegistry: string;
|
|
222
|
+
number: string;
|
|
223
|
+
level: string;
|
|
224
|
+
}) {
|
|
225
|
+
let result = input.tx.moveCall({
|
|
226
|
+
target: `${input.typusPackageId}::tails_staking::remove_webp_bytes`,
|
|
227
|
+
typeArguments: [],
|
|
228
|
+
arguments: [
|
|
229
|
+
input.tx.object(input.typusEcosystemVersion),
|
|
230
|
+
input.tx.object(input.typusTailsStakingRegistry),
|
|
231
|
+
input.tx.pure(input.number),
|
|
232
|
+
input.tx.pure(input.level),
|
|
233
|
+
],
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
return input.tx;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
entry fun update_tails_staking_registry_config(
|
|
241
|
+
version: &Version,
|
|
242
|
+
tails_staking_registry: &mut TailsStakingRegistry,
|
|
243
|
+
index: u64,
|
|
244
|
+
value: u64,
|
|
245
|
+
ctx: &TxContext,
|
|
246
|
+
) {
|
|
247
|
+
*/
|
|
248
|
+
export function getUpdateTailsStakingRegistryConfigTx(input: {
|
|
249
|
+
tx: TransactionBlock;
|
|
250
|
+
typusPackageId: string;
|
|
251
|
+
typusEcosystemVersion: string;
|
|
252
|
+
typusTailsStakingRegistry: string;
|
|
253
|
+
index: string;
|
|
254
|
+
value: string;
|
|
255
|
+
}) {
|
|
256
|
+
input.tx.moveCall({
|
|
257
|
+
target: `${input.typusPackageId}::tails_staking::update_tails_staking_registry_config`,
|
|
258
|
+
typeArguments: [],
|
|
259
|
+
arguments: [
|
|
260
|
+
input.tx.object(input.typusEcosystemVersion),
|
|
261
|
+
input.tx.object(input.typusTailsStakingRegistry),
|
|
262
|
+
input.tx.pure(input.index),
|
|
263
|
+
input.tx.pure(input.value),
|
|
264
|
+
],
|
|
265
|
+
});
|
|
266
|
+
|
|
267
|
+
return input.tx;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
entry fun set_profit_sharing<TOKEN>(
|
|
272
|
+
version: &Version,
|
|
273
|
+
tails_staking_registry: &mut TailsStakingRegistry,
|
|
274
|
+
level_profits: vector<u64>,
|
|
275
|
+
mut profit: vector<Coin<TOKEN>>,
|
|
276
|
+
ctx: &TxContext,
|
|
277
|
+
) {
|
|
278
|
+
*/
|
|
279
|
+
export function getSetProfitSharingTx(input: {
|
|
280
|
+
tx: TransactionBlock;
|
|
281
|
+
typusPackageId: string;
|
|
282
|
+
typusEcosystemVersion: string;
|
|
283
|
+
typusTailsStakingRegistry: string;
|
|
284
|
+
typeArguments: string[];
|
|
285
|
+
levelProfits: string[];
|
|
286
|
+
coin: TransactionObjectInput;
|
|
287
|
+
amount: string;
|
|
288
|
+
tsMs: string;
|
|
289
|
+
}) {
|
|
290
|
+
let result = input.tx.moveCall({
|
|
291
|
+
target: `${input.typusPackageId}::tails_staking::set_profit_sharing`,
|
|
292
|
+
typeArguments: input.typeArguments,
|
|
293
|
+
arguments: [
|
|
294
|
+
input.tx.object(input.typusEcosystemVersion),
|
|
295
|
+
input.tx.object(input.typusTailsStakingRegistry),
|
|
296
|
+
input.tx.pure(input.levelProfits),
|
|
297
|
+
input.tx.object(input.coin),
|
|
298
|
+
input.tx.pure(input.amount),
|
|
299
|
+
input.tx.pure(input.tsMs),
|
|
300
|
+
],
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
return input.tx;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
entry fun remove_profit_sharing<TOKEN>(
|
|
308
|
+
version: &Version,
|
|
309
|
+
tails_staking_registry: &mut TailsStakingRegistry,
|
|
310
|
+
recipient: address,
|
|
311
|
+
ctx: &mut TxContext,
|
|
312
|
+
) {
|
|
313
|
+
*/
|
|
314
|
+
export function getRemoveProfitSharingTx(input: {
|
|
315
|
+
tx: TransactionBlock;
|
|
316
|
+
typusPackageId: string;
|
|
317
|
+
typusEcosystemVersion: string;
|
|
318
|
+
typusTailsStakingRegistry: string;
|
|
319
|
+
typeArguments: string[];
|
|
320
|
+
recipient: string;
|
|
321
|
+
}) {
|
|
322
|
+
let result = input.tx.moveCall({
|
|
323
|
+
target: `${input.typusPackageId}::tails_staking::remove_profit_sharing`,
|
|
324
|
+
typeArguments: input.typeArguments,
|
|
325
|
+
arguments: [
|
|
326
|
+
input.tx.object(input.typusEcosystemVersion),
|
|
327
|
+
input.tx.object(input.typusTailsStakingRegistry),
|
|
328
|
+
input.tx.pure(input.recipient),
|
|
329
|
+
],
|
|
330
|
+
});
|
|
331
|
+
|
|
332
|
+
return input.tx;
|
|
333
|
+
}
|