@typus/typus-sdk 1.4.3-d → 1.4.3-f

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.
Files changed (715) hide show
  1. package/package.json +4 -4
  2. package/src/_dependencies/source/0x1/ascii/structs.ts +135 -0
  3. package/src/_dependencies/source/0x1/bit-vector/structs.ts +70 -0
  4. package/src/_dependencies/source/0x1/fixed-point32/structs.ts +69 -0
  5. package/src/_dependencies/source/0x1/index.ts +1 -0
  6. package/src/_dependencies/source/0x1/init.ts +16 -0
  7. package/src/_dependencies/source/0x1/option/structs.ts +74 -0
  8. package/src/_dependencies/source/0x1/string/structs.ts +70 -0
  9. package/src/_dependencies/source/0x1/type-name/structs.ts +70 -0
  10. package/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.ts +1 -0
  11. package/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.ts +14 -0
  12. package/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.ts +203 -0
  13. package/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.ts +317 -0
  14. package/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.ts +69 -0
  15. package/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.ts +69 -0
  16. package/src/_dependencies/source/0x2/authenticator-state/structs.ts +332 -0
  17. package/src/_dependencies/source/0x2/bag/structs.ts +70 -0
  18. package/src/_dependencies/source/0x2/balance/structs.ts +134 -0
  19. package/src/_dependencies/source/0x2/bcs/structs.ts +70 -0
  20. package/src/_dependencies/source/0x2/bls12381/structs.ts +264 -0
  21. package/src/_dependencies/source/0x2/borrow/structs.ts +138 -0
  22. package/src/_dependencies/source/0x2/clock/structs.ts +70 -0
  23. package/src/_dependencies/source/0x2/coin/structs.ts +400 -0
  24. package/src/_dependencies/source/0x2/deny-list/structs.ts +139 -0
  25. package/src/_dependencies/source/0x2/display/structs.ts +202 -0
  26. package/src/_dependencies/source/0x2/dynamic-field/structs.ts +70 -0
  27. package/src/_dependencies/source/0x2/dynamic-object-field/structs.ts +71 -0
  28. package/src/_dependencies/source/0x2/groth16/structs.ts +265 -0
  29. package/src/_dependencies/source/0x2/group-ops/structs.ts +70 -0
  30. package/src/_dependencies/source/0x2/index.ts +1 -0
  31. package/src/_dependencies/source/0x2/init.ts +125 -0
  32. package/src/_dependencies/source/0x2/kiosk/structs.ts +658 -0
  33. package/src/_dependencies/source/0x2/kiosk-extension/structs.ts +135 -0
  34. package/src/_dependencies/source/0x2/linked-table/structs.ts +136 -0
  35. package/src/_dependencies/source/0x2/object/structs.ts +134 -0
  36. package/src/_dependencies/source/0x2/object-bag/structs.ts +70 -0
  37. package/src/_dependencies/source/0x2/object-table/structs.ts +70 -0
  38. package/src/_dependencies/source/0x2/package/structs.ts +267 -0
  39. package/src/_dependencies/source/0x2/priority-queue/structs.ts +139 -0
  40. package/src/_dependencies/source/0x2/random/structs.ts +202 -0
  41. package/src/_dependencies/source/0x2/sui/structs.ts +69 -0
  42. package/src/_dependencies/source/0x2/table/structs.ts +70 -0
  43. package/src/_dependencies/source/0x2/table-vec/structs.ts +71 -0
  44. package/src/_dependencies/source/0x2/token/structs.ts +401 -0
  45. package/src/_dependencies/source/0x2/transfer/structs.ts +70 -0
  46. package/src/_dependencies/source/0x2/transfer-policy/structs.ts +400 -0
  47. package/src/_dependencies/source/0x2/tx-context/structs.ts +70 -0
  48. package/src/_dependencies/source/0x2/url/structs.ts +70 -0
  49. package/src/_dependencies/source/0x2/vec-map/structs.ts +135 -0
  50. package/src/_dependencies/source/0x2/vec-set/structs.ts +72 -0
  51. package/src/_dependencies/source/0x2/versioned/structs.ts +135 -0
  52. package/src/_dependencies/source/0x2/zklogin-verified-id/structs.ts +71 -0
  53. package/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.ts +71 -0
  54. package/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.ts +1 -0
  55. package/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.ts +5 -0
  56. package/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.ts +70 -0
  57. package/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.ts +1 -0
  58. package/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.ts +8 -0
  59. package/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.ts +69 -0
  60. package/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.ts +135 -0
  61. package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.ts +400 -0
  62. package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.ts +372 -0
  63. package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.ts +205 -0
  64. package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.ts +333 -0
  65. package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.ts +1 -0
  66. package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.ts +48 -0
  67. package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.ts +465 -0
  68. package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.ts +136 -0
  69. package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.ts +140 -0
  70. package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.ts +268 -0
  71. package/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.ts +332 -0
  72. package/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.ts +466 -0
  73. package/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.ts +1 -0
  74. package/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.ts +36 -0
  75. package/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.ts +134 -0
  76. package/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.ts +333 -0
  77. package/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.ts +71 -0
  78. package/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.ts +856 -0
  79. package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.ts +1049 -0
  80. package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.ts +1 -0
  81. package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.ts +104 -0
  82. package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.ts +1054 -0
  83. package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.ts +592 -0
  84. package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.ts +461 -0
  85. package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.ts +592 -0
  86. package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.ts +69 -0
  87. package/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.ts +2351 -0
  88. package/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.ts +1 -0
  89. package/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.ts +3 -0
  90. package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.ts +71 -0
  91. package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.ts +203 -0
  92. package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.ts +70 -0
  93. package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.ts +528 -0
  94. package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.ts +69 -0
  95. package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.ts +1 -0
  96. package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.ts +54 -0
  97. package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.ts +136 -0
  98. package/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.ts +1829 -0
  99. package/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.ts +398 -0
  100. package/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.ts +1 -0
  101. package/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.ts +18 -0
  102. package/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.ts +71 -0
  103. package/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.ts +69 -0
  104. package/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.ts +71 -0
  105. package/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.ts +70 -0
  106. package/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.ts +1 -0
  107. package/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.ts +11 -0
  108. package/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.ts +134 -0
  109. package/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.ts +134 -0
  110. package/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.ts +69 -0
  111. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.ts +70 -0
  112. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.ts +70 -0
  113. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.ts +72 -0
  114. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.ts +72 -0
  115. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.ts +200 -0
  116. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.ts +70 -0
  117. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.ts +72 -0
  118. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.ts +137 -0
  119. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.ts +70 -0
  120. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.ts +71 -0
  121. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.ts +70 -0
  122. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.ts +1 -0
  123. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.ts +65 -0
  124. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.ts +70 -0
  125. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.ts +266 -0
  126. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.ts +136 -0
  127. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.ts +136 -0
  128. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.ts +134 -0
  129. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.ts +70 -0
  130. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.ts +142 -0
  131. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.ts +134 -0
  132. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.ts +201 -0
  133. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.ts +201 -0
  134. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.ts +72 -0
  135. package/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.ts +134 -0
  136. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.ts +136 -0
  137. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.ts +136 -0
  138. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.ts +70 -0
  139. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.ts +135 -0
  140. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.ts +71 -0
  141. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.ts +69 -0
  142. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.ts +71 -0
  143. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.ts +72 -0
  144. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.ts +69 -0
  145. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.ts +1 -0
  146. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.ts +59 -0
  147. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.ts +70 -0
  148. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.ts +70 -0
  149. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.ts +71 -0
  150. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.ts +70 -0
  151. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.ts +136 -0
  152. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.ts +69 -0
  153. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.ts +138 -0
  154. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.ts +71 -0
  155. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.ts +69 -0
  156. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.ts +70 -0
  157. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.ts +69 -0
  158. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.ts +69 -0
  159. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.ts +70 -0
  160. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.ts +203 -0
  161. package/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.ts +134 -0
  162. package/src/_framework/init-source.ts +39 -0
  163. package/src/_framework/loader.ts +69 -0
  164. package/src/_framework/reified.ts +442 -0
  165. package/src/_framework/util.ts +265 -0
  166. package/src/airdrop/authority-entry.ts +101 -0
  167. package/src/airdrop/user-entry.ts +24 -0
  168. package/src/airdrop/view-function.ts +36 -0
  169. package/{dist/auto-bid/user-entry.js → src/auto-bid/user-entry.ts} +125 -72
  170. package/src/auto-bid/view-function.ts +285 -0
  171. package/src/constants/constant.ts +32 -0
  172. package/{dist/constants/token.js → src/constants/token.ts} +38 -22
  173. package/src/leaderboard/authority-entry.ts +63 -0
  174. package/src/leaderboard/view-function.ts +66 -0
  175. package/src/tails-exp-dice/api.ts +46 -0
  176. package/src/tails-exp-dice/fetch.ts +347 -0
  177. package/src/tails-exp-dice/user-entry.ts +241 -0
  178. package/src/tails-exp-dice/view-function.ts +111 -0
  179. package/{dist/tails-staking/authority-entry.js → src/tails-staking/authority-entry.ts} +131 -45
  180. package/src/tails-staking/user-entry.ts +401 -0
  181. package/src/tails-staking/view-function.ts +86 -0
  182. package/src/typus-dov-single-v2/entry/authority-entry.ts +171 -0
  183. package/src/typus-dov-single-v2/entry/mfud-user-entry.ts +591 -0
  184. package/{dist/typus-dov-single-v2/entry/user-entry.js → src/typus-dov-single-v2/entry/user-entry.ts} +266 -141
  185. package/src/typus-dov-single-v2/function/bidding.ts +823 -0
  186. package/src/typus-dov-single-v2/function/token.ts +38 -0
  187. package/src/typus-dov-single-v2/function/vault.ts +24 -0
  188. package/src/typus-dov-single-v2/history/user-history.ts +929 -0
  189. package/src/typus-dov-single-v2/history/vault-history.ts +452 -0
  190. package/src/typus-dov-single-v2/view-function.ts +705 -0
  191. package/src/typus-nft/fetch.ts +428 -0
  192. package/src/typus-nft/user-entry.ts +113 -0
  193. package/src/typus-perp/admin/functions.ts +141 -0
  194. package/src/typus-perp/admin/structs.ts +793 -0
  195. package/src/typus-perp/fetch.ts +253 -0
  196. package/src/typus-perp/index.ts +9 -0
  197. package/{dist/typus-perp/init.js → src/typus-perp/init.ts} +12 -36
  198. package/src/typus-perp/lp-pool/functions.ts +694 -0
  199. package/src/typus-perp/lp-pool/structs.ts +3884 -0
  200. package/src/typus-perp/math/functions.ts +53 -0
  201. package/src/typus-perp/oracle/functions.ts +32 -0
  202. package/src/typus-perp/oracle/structs.ts +317 -0
  203. package/src/typus-perp/position/functions.ts +887 -0
  204. package/src/typus-perp/position/structs.ts +1637 -0
  205. package/{dist/typus-perp/readVec.js → src/typus-perp/readVec.ts} +46 -45
  206. package/src/typus-perp/stake-pool/functions.ts +421 -0
  207. package/src/typus-perp/stake-pool/structs.ts +3873 -0
  208. package/src/typus-perp/symbol/functions.ts +24 -0
  209. package/src/typus-perp/symbol/structs.ts +165 -0
  210. package/src/typus-perp/tlp/functions.ts +50 -0
  211. package/src/typus-perp/tlp/structs.ts +287 -0
  212. package/src/typus-perp/token-interface/functions.ts +29 -0
  213. package/src/typus-perp/trading/functions.ts +1046 -0
  214. package/src/typus-perp/trading/structs.ts +4541 -0
  215. package/src/typus-perp/treasury-caps/functions.ts +36 -0
  216. package/src/typus-perp/treasury-caps/structs.ts +151 -0
  217. package/src/typus-perp/user/order.ts +221 -0
  218. package/src/typus-perp/user/orderWithBidReceipt.ts +176 -0
  219. package/src/typus-perp/user/tlp.ts +234 -0
  220. package/src/user/view-function.ts +33 -0
  221. package/src/utils/.DS_Store +0 -0
  222. package/src/utils/api/defillama/tvl.ts +11 -0
  223. package/src/utils/api/price.ts +101 -0
  224. package/src/utils/api/sentio/leader-board.ts +259 -0
  225. package/src/utils/api/sentio/reward-generated.ts +392 -0
  226. package/src/utils/load_env.ts +5 -0
  227. package/src/utils/mint.ts +16 -0
  228. package/{dist/utils/pyth/constant.js → src/utils/pyth/constant.ts} +9 -8
  229. package/src/utils/pyth/pythClient.ts +52 -0
  230. package/src/utils/tools.ts +38 -0
  231. package/dist/_dependencies/source/0x1/ascii/structs.d.ts +0 -82
  232. package/dist/_dependencies/source/0x1/ascii/structs.js +0 -280
  233. package/dist/_dependencies/source/0x1/bit-vector/structs.d.ts +0 -50
  234. package/dist/_dependencies/source/0x1/bit-vector/structs.js +0 -193
  235. package/dist/_dependencies/source/0x1/fixed-point32/structs.d.ts +0 -41
  236. package/dist/_dependencies/source/0x1/fixed-point32/structs.js +0 -167
  237. package/dist/_dependencies/source/0x1/index.d.ts +0 -2
  238. package/dist/_dependencies/source/0x1/index.js +0 -5
  239. package/dist/_dependencies/source/0x1/init.d.ts +0 -2
  240. package/dist/_dependencies/source/0x1/init.js +0 -41
  241. package/dist/_dependencies/source/0x1/option/structs.d.ts +0 -46
  242. package/dist/_dependencies/source/0x1/option/structs.js +0 -198
  243. package/dist/_dependencies/source/0x1/string/structs.d.ts +0 -44
  244. package/dist/_dependencies/source/0x1/string/structs.js +0 -191
  245. package/dist/_dependencies/source/0x1/type-name/structs.d.ts +0 -48
  246. package/dist/_dependencies/source/0x1/type-name/structs.js +0 -168
  247. package/dist/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +0 -2
  248. package/dist/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +0 -5
  249. package/dist/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +0 -2
  250. package/dist/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +0 -39
  251. package/dist/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +0 -277
  252. package/dist/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +0 -377
  253. package/dist/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +0 -102
  254. package/dist/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +0 -353
  255. package/dist/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +0 -65
  256. package/dist/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +0 -175
  257. package/dist/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +0 -65
  258. package/dist/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +0 -175
  259. package/dist/_dependencies/source/0x2/authenticator-state/structs.d.ts +0 -442
  260. package/dist/_dependencies/source/0x2/authenticator-state/structs.js +0 -565
  261. package/dist/_dependencies/source/0x2/bag/structs.d.ts +0 -56
  262. package/dist/_dependencies/source/0x2/bag/structs.js +0 -170
  263. package/dist/_dependencies/source/0x2/balance/structs.d.ts +0 -79
  264. package/dist/_dependencies/source/0x2/balance/structs.js +0 -260
  265. package/dist/_dependencies/source/0x2/bcs/structs.d.ts +0 -44
  266. package/dist/_dependencies/source/0x2/bcs/structs.js +0 -191
  267. package/dist/_dependencies/source/0x2/bls12381/structs.d.ts +0 -155
  268. package/dist/_dependencies/source/0x2/bls12381/structs.js +0 -434
  269. package/dist/_dependencies/source/0x2/borrow/structs.d.ts +0 -104
  270. package/dist/_dependencies/source/0x2/borrow/structs.js +0 -267
  271. package/dist/_dependencies/source/0x2/clock/structs.d.ts +0 -56
  272. package/dist/_dependencies/source/0x2/clock/structs.js +0 -170
  273. package/dist/_dependencies/source/0x2/coin/structs.d.ts +0 -379
  274. package/dist/_dependencies/source/0x2/coin/structs.js +0 -648
  275. package/dist/_dependencies/source/0x2/deny-list/structs.d.ts +0 -178
  276. package/dist/_dependencies/source/0x2/deny-list/structs.js +0 -290
  277. package/dist/_dependencies/source/0x2/display/structs.d.ts +0 -228
  278. package/dist/_dependencies/source/0x2/display/structs.js +0 -362
  279. package/dist/_dependencies/source/0x2/dynamic-field/structs.d.ts +0 -63
  280. package/dist/_dependencies/source/0x2/dynamic-field/structs.js +0 -174
  281. package/dist/_dependencies/source/0x2/dynamic-object-field/structs.d.ts +0 -42
  282. package/dist/_dependencies/source/0x2/dynamic-object-field/structs.js +0 -172
  283. package/dist/_dependencies/source/0x2/groth16/structs.d.ts +0 -186
  284. package/dist/_dependencies/source/0x2/groth16/structs.js +0 -464
  285. package/dist/_dependencies/source/0x2/group-ops/structs.d.ts +0 -44
  286. package/dist/_dependencies/source/0x2/group-ops/structs.js +0 -193
  287. package/dist/_dependencies/source/0x2/index.d.ts +0 -2
  288. package/dist/_dependencies/source/0x2/index.js +0 -5
  289. package/dist/_dependencies/source/0x2/init.d.ts +0 -2
  290. package/dist/_dependencies/source/0x2/init.js +0 -150
  291. package/dist/_dependencies/source/0x2/kiosk/structs.d.ts +0 -565
  292. package/dist/_dependencies/source/0x2/kiosk/structs.js +0 -1033
  293. package/dist/_dependencies/source/0x2/kiosk-extension/structs.d.ts +0 -112
  294. package/dist/_dependencies/source/0x2/kiosk-extension/structs.js +0 -263
  295. package/dist/_dependencies/source/0x2/linked-table/structs.d.ts +0 -144
  296. package/dist/_dependencies/source/0x2/linked-table/structs.js +0 -272
  297. package/dist/_dependencies/source/0x2/object/structs.d.ts +0 -83
  298. package/dist/_dependencies/source/0x2/object/structs.js +0 -256
  299. package/dist/_dependencies/source/0x2/object-bag/structs.d.ts +0 -56
  300. package/dist/_dependencies/source/0x2/object-bag/structs.js +0 -170
  301. package/dist/_dependencies/source/0x2/object-table/structs.d.ts +0 -56
  302. package/dist/_dependencies/source/0x2/object-table/structs.js +0 -172
  303. package/dist/_dependencies/source/0x2/package/structs.d.ts +0 -262
  304. package/dist/_dependencies/source/0x2/package/structs.js +0 -478
  305. package/dist/_dependencies/source/0x2/priority-queue/structs.d.ts +0 -101
  306. package/dist/_dependencies/source/0x2/priority-queue/structs.js +0 -292
  307. package/dist/_dependencies/source/0x2/random/structs.d.ts +0 -190
  308. package/dist/_dependencies/source/0x2/random/structs.js +0 -383
  309. package/dist/_dependencies/source/0x2/sui/structs.d.ts +0 -41
  310. package/dist/_dependencies/source/0x2/sui/structs.js +0 -167
  311. package/dist/_dependencies/source/0x2/table/structs.d.ts +0 -56
  312. package/dist/_dependencies/source/0x2/table/structs.js +0 -172
  313. package/dist/_dependencies/source/0x2/table-vec/structs.d.ts +0 -63
  314. package/dist/_dependencies/source/0x2/table-vec/structs.js +0 -194
  315. package/dist/_dependencies/source/0x2/token/structs.d.ts +0 -424
  316. package/dist/_dependencies/source/0x2/token/structs.js +0 -651
  317. package/dist/_dependencies/source/0x2/transfer/structs.d.ts +0 -52
  318. package/dist/_dependencies/source/0x2/transfer/structs.js +0 -172
  319. package/dist/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -345
  320. package/dist/_dependencies/source/0x2/transfer-policy/structs.js +0 -665
  321. package/dist/_dependencies/source/0x2/tx-context/structs.d.ts +0 -68
  322. package/dist/_dependencies/source/0x2/tx-context/structs.js +0 -199
  323. package/dist/_dependencies/source/0x2/url/structs.d.ts +0 -48
  324. package/dist/_dependencies/source/0x2/url/structs.js +0 -168
  325. package/dist/_dependencies/source/0x2/vec-map/structs.d.ts +0 -101
  326. package/dist/_dependencies/source/0x2/vec-map/structs.js +0 -286
  327. package/dist/_dependencies/source/0x2/vec-set/structs.d.ts +0 -45
  328. package/dist/_dependencies/source/0x2/vec-set/structs.js +0 -196
  329. package/dist/_dependencies/source/0x2/versioned/structs.d.ts +0 -104
  330. package/dist/_dependencies/source/0x2/versioned/structs.js +0 -261
  331. package/dist/_dependencies/source/0x2/zklogin-verified-id/structs.d.ts +0 -105
  332. package/dist/_dependencies/source/0x2/zklogin-verified-id/structs.js +0 -179
  333. package/dist/_dependencies/source/0x2/zklogin-verified-issuer/structs.d.ts +0 -69
  334. package/dist/_dependencies/source/0x2/zklogin-verified-issuer/structs.js +0 -173
  335. package/dist/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +0 -2
  336. package/dist/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +0 -5
  337. package/dist/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +0 -2
  338. package/dist/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +0 -30
  339. package/dist/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +0 -50
  340. package/dist/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +0 -168
  341. package/dist/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +0 -2
  342. package/dist/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +0 -5
  343. package/dist/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +0 -2
  344. package/dist/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +0 -33
  345. package/dist/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +0 -41
  346. package/dist/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +0 -167
  347. package/dist/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +0 -112
  348. package/dist/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +0 -265
  349. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +0 -463
  350. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +0 -669
  351. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +0 -137
  352. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +0 -401
  353. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +0 -226
  354. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +0 -402
  355. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +0 -383
  356. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +0 -566
  357. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +0 -2
  358. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +0 -5
  359. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +0 -2
  360. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +0 -73
  361. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +0 -591
  362. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +0 -774
  363. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.d.ts +0 -152
  364. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +0 -272
  365. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +0 -138
  366. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +0 -276
  367. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +0 -261
  368. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +0 -471
  369. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +0 -306
  370. package/dist/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +0 -563
  371. package/dist/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +0 -598
  372. package/dist/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +0 -789
  373. package/dist/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +0 -2
  374. package/dist/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +0 -5
  375. package/dist/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +0 -2
  376. package/dist/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +0 -61
  377. package/dist/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +0 -85
  378. package/dist/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.js +0 -258
  379. package/dist/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +0 -433
  380. package/dist/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +0 -562
  381. package/dist/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +0 -63
  382. package/dist/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +0 -194
  383. package/dist/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +0 -1006
  384. package/dist/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +0 -1331
  385. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +0 -1458
  386. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +0 -1706
  387. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +0 -2
  388. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +0 -5
  389. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +0 -2
  390. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +0 -129
  391. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +0 -1201
  392. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +0 -1643
  393. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +0 -1374
  394. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +0 -971
  395. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +0 -395
  396. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +0 -750
  397. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +0 -994
  398. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +0 -933
  399. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +0 -77
  400. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +0 -179
  401. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +0 -4562
  402. package/dist/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +0 -3796
  403. package/dist/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +0 -2
  404. package/dist/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +0 -5
  405. package/dist/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +0 -2
  406. package/dist/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +0 -4
  407. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +0 -83
  408. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +0 -192
  409. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +0 -333
  410. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +0 -382
  411. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +0 -68
  412. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +0 -176
  413. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +0 -843
  414. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +0 -959
  415. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +0 -41
  416. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +0 -167
  417. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +0 -2
  418. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +0 -5
  419. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +0 -2
  420. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +0 -79
  421. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +0 -146
  422. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +0 -274
  423. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.d.ts +0 -2272
  424. package/dist/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +0 -2830
  425. package/dist/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +0 -719
  426. package/dist/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +0 -711
  427. package/dist/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +0 -2
  428. package/dist/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +0 -5
  429. package/dist/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +0 -2
  430. package/dist/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +0 -43
  431. package/dist/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +0 -81
  432. package/dist/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +0 -200
  433. package/dist/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +0 -53
  434. package/dist/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +0 -171
  435. package/dist/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +0 -115
  436. package/dist/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +0 -212
  437. package/dist/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +0 -50
  438. package/dist/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +0 -168
  439. package/dist/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +0 -2
  440. package/dist/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +0 -5
  441. package/dist/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.d.ts +0 -2
  442. package/dist/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +0 -36
  443. package/dist/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +0 -79
  444. package/dist/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +0 -256
  445. package/dist/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +0 -85
  446. package/dist/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.js +0 -258
  447. package/dist/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +0 -41
  448. package/dist/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +0 -169
  449. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.d.ts +0 -44
  450. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.js +0 -191
  451. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.d.ts +0 -44
  452. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.js +0 -191
  453. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.d.ts +0 -72
  454. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.js +0 -193
  455. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.d.ts +0 -45
  456. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.js +0 -196
  457. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.d.ts +0 -140
  458. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.js +0 -348
  459. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.d.ts +0 -52
  460. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.js +0 -168
  461. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.d.ts +0 -58
  462. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.js +0 -195
  463. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.d.ts +0 -158
  464. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.js +0 -298
  465. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.d.ts +0 -52
  466. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.js +0 -168
  467. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.d.ts +0 -75
  468. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.js +0 -196
  469. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.d.ts +0 -80
  470. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.js +0 -174
  471. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.d.ts +0 -2
  472. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.js +0 -5
  473. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.d.ts +0 -2
  474. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.js +0 -90
  475. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.d.ts +0 -46
  476. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.js +0 -168
  477. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.d.ts +0 -177
  478. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.js +0 -438
  479. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.d.ts +0 -141
  480. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.js +0 -297
  481. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.d.ts +0 -101
  482. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.js +0 -283
  483. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.d.ts +0 -79
  484. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.js +0 -256
  485. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.d.ts +0 -50
  486. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.js +0 -168
  487. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.d.ts +0 -269
  488. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.js +0 -303
  489. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.d.ts +0 -85
  490. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.js +0 -258
  491. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.d.ts +0 -145
  492. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.js +0 -372
  493. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.d.ts +0 -143
  494. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.js +0 -349
  495. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.d.ts +0 -122
  496. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.js +0 -209
  497. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.d.ts +0 -79
  498. package/dist/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.js +0 -256
  499. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.d.ts +0 -279
  500. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.js +0 -295
  501. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.d.ts +0 -105
  502. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.js +0 -260
  503. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.d.ts +0 -66
  504. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.js +0 -170
  505. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.d.ts +0 -200
  506. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.js +0 -259
  507. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.d.ts +0 -67
  508. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.js +0 -196
  509. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.d.ts +0 -41
  510. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.js +0 -167
  511. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.d.ts +0 -71
  512. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.js +0 -198
  513. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.d.ts +0 -45
  514. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.js +0 -196
  515. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.d.ts +0 -47
  516. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.js +0 -169
  517. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.d.ts +0 -2
  518. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.js +0 -5
  519. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.d.ts +0 -2
  520. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.js +0 -84
  521. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.d.ts +0 -46
  522. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.js +0 -168
  523. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.d.ts +0 -84
  524. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.js +0 -174
  525. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.d.ts +0 -153
  526. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.js +0 -173
  527. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.d.ts +0 -44
  528. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.js +0 -191
  529. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.d.ts +0 -351
  530. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.js +0 -264
  531. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.d.ts +0 -41
  532. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.js +0 -167
  533. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.d.ts +0 -110
  534. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.js +0 -288
  535. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.d.ts +0 -75
  536. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.js +0 -192
  537. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.d.ts +0 -41
  538. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.js +0 -167
  539. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.d.ts +0 -72
  540. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.js +0 -172
  541. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.d.ts +0 -41
  542. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.js +0 -167
  543. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.d.ts +0 -47
  544. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.js +0 -169
  545. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.d.ts +0 -50
  546. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.js +0 -168
  547. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.d.ts +0 -269
  548. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.js +0 -363
  549. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.d.ts +0 -79
  550. package/dist/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.js +0 -256
  551. package/dist/_framework/init-source.d.ts +0 -1
  552. package/dist/_framework/init-source.js +0 -64
  553. package/dist/_framework/loader.d.ts +0 -17
  554. package/dist/_framework/loader.js +0 -99
  555. package/dist/_framework/reified.d.ts +0 -100
  556. package/dist/_framework/reified.js +0 -263
  557. package/dist/_framework/util.d.ts +0 -53
  558. package/dist/_framework/util.js +0 -251
  559. package/dist/airdrop/authority-entry.d.ts +0 -22
  560. package/dist/airdrop/authority-entry.js +0 -137
  561. package/dist/airdrop/index.js +0 -19
  562. package/dist/airdrop/user-entry.d.ts +0 -10
  563. package/dist/airdrop/user-entry.js +0 -16
  564. package/dist/airdrop/view-function.d.ts +0 -9
  565. package/dist/airdrop/view-function.js +0 -73
  566. package/dist/auto-bid/index.js +0 -18
  567. package/dist/auto-bid/user-entry.d.ts +0 -45
  568. package/dist/auto-bid/view-function.d.ts +0 -43
  569. package/dist/auto-bid/view-function.js +0 -347
  570. package/dist/constants/constant.d.ts +0 -22
  571. package/dist/constants/constant.js +0 -29
  572. package/dist/constants/index.js +0 -18
  573. package/dist/constants/token.d.ts +0 -51
  574. package/dist/index.js +0 -27
  575. package/dist/leaderboard/authority-entry.d.ts +0 -22
  576. package/dist/leaderboard/authority-entry.js +0 -90
  577. package/dist/leaderboard/index.js +0 -18
  578. package/dist/leaderboard/view-function.d.ts +0 -20
  579. package/dist/leaderboard/view-function.js +0 -93
  580. package/dist/tails-exp-dice/api.d.ts +0 -1
  581. package/dist/tails-exp-dice/api.js +0 -76
  582. package/dist/tails-exp-dice/fetch.d.ts +0 -81
  583. package/dist/tails-exp-dice/fetch.js +0 -346
  584. package/dist/tails-exp-dice/index.js +0 -20
  585. package/dist/tails-exp-dice/user-entry.d.ts +0 -70
  586. package/dist/tails-exp-dice/user-entry.js +0 -249
  587. package/dist/tails-exp-dice/view-function.d.ts +0 -8
  588. package/dist/tails-exp-dice/view-function.js +0 -130
  589. package/dist/tails-staking/authority-entry.d.ts +0 -182
  590. package/dist/tails-staking/index.js +0 -19
  591. package/dist/tails-staking/user-entry.d.ts +0 -157
  592. package/dist/tails-staking/user-entry.js +0 -416
  593. package/dist/tails-staking/view-function.d.ts +0 -20
  594. package/dist/tails-staking/view-function.js +0 -122
  595. package/dist/typus-dov-single-v2/entry/authority-entry.d.ts +0 -70
  596. package/dist/typus-dov-single-v2/entry/authority-entry.js +0 -167
  597. package/dist/typus-dov-single-v2/entry/index.js +0 -19
  598. package/dist/typus-dov-single-v2/entry/mfud-user-entry.d.ts +0 -126
  599. package/dist/typus-dov-single-v2/entry/mfud-user-entry.js +0 -425
  600. package/dist/typus-dov-single-v2/entry/user-entry.d.ts +0 -212
  601. package/dist/typus-dov-single-v2/function/bidding.d.ts +0 -151
  602. package/dist/typus-dov-single-v2/function/bidding.js +0 -833
  603. package/dist/typus-dov-single-v2/function/index.js +0 -19
  604. package/dist/typus-dov-single-v2/function/token.d.ts +0 -21
  605. package/dist/typus-dov-single-v2/function/token.js +0 -38
  606. package/dist/typus-dov-single-v2/function/vault.d.ts +0 -8
  607. package/dist/typus-dov-single-v2/function/vault.js +0 -23
  608. package/dist/typus-dov-single-v2/history/index.js +0 -18
  609. package/dist/typus-dov-single-v2/history/user-history.d.ts +0 -36
  610. package/dist/typus-dov-single-v2/history/user-history.js +0 -999
  611. package/dist/typus-dov-single-v2/history/vault-history.d.ts +0 -123
  612. package/dist/typus-dov-single-v2/history/vault-history.js +0 -403
  613. package/dist/typus-dov-single-v2/index.js +0 -20
  614. package/dist/typus-dov-single-v2/view-function.d.ts +0 -212
  615. package/dist/typus-dov-single-v2/view-function.js +0 -578
  616. package/dist/typus-nft/fetch.d.ts +0 -69
  617. package/dist/typus-nft/fetch.js +0 -565
  618. package/dist/typus-nft/index.js +0 -18
  619. package/dist/typus-nft/user-entry.d.ts +0 -38
  620. package/dist/typus-nft/user-entry.js +0 -173
  621. package/dist/typus-perp/admin/functions.d.ts +0 -51
  622. package/dist/typus-perp/admin/functions.js +0 -100
  623. package/dist/typus-perp/admin/structs.d.ts +0 -425
  624. package/dist/typus-perp/admin/structs.js +0 -802
  625. package/dist/typus-perp/fetch.d.ts +0 -57
  626. package/dist/typus-perp/fetch.js +0 -400
  627. package/dist/typus-perp/index.d.ts +0 -3
  628. package/dist/typus-perp/index.js +0 -14
  629. package/dist/typus-perp/init.d.ts +0 -2
  630. package/dist/typus-perp/lp-pool/functions.d.ts +0 -283
  631. package/dist/typus-perp/lp-pool/functions.js +0 -418
  632. package/dist/typus-perp/lp-pool/structs.d.ts +0 -2538
  633. package/dist/typus-perp/lp-pool/structs.js +0 -3515
  634. package/dist/typus-perp/math/functions.d.ts +0 -18
  635. package/dist/typus-perp/math/functions.js +0 -40
  636. package/dist/typus-perp/oracle/functions.d.ts +0 -14
  637. package/dist/typus-perp/oracle/functions.js +0 -22
  638. package/dist/typus-perp/oracle/structs.d.ts +0 -102
  639. package/dist/typus-perp/oracle/structs.js +0 -353
  640. package/dist/typus-perp/position/functions.d.ts +0 -339
  641. package/dist/typus-perp/position/functions.js +0 -564
  642. package/dist/typus-perp/position/structs.d.ts +0 -1144
  643. package/dist/typus-perp/position/structs.js +0 -1485
  644. package/dist/typus-perp/readVec.d.ts +0 -3
  645. package/dist/typus-perp/stake-pool/functions.d.ts +0 -169
  646. package/dist/typus-perp/stake-pool/functions.js +0 -258
  647. package/dist/typus-perp/stake-pool/structs.d.ts +0 -2071
  648. package/dist/typus-perp/stake-pool/structs.js +0 -3515
  649. package/dist/typus-perp/symbol/functions.d.ts +0 -10
  650. package/dist/typus-perp/symbol/functions.js +0 -20
  651. package/dist/typus-perp/symbol/structs.d.ts +0 -76
  652. package/dist/typus-perp/symbol/structs.js +0 -216
  653. package/dist/typus-perp/tlp/functions.d.ts +0 -20
  654. package/dist/typus-perp/tlp/functions.js +0 -35
  655. package/dist/typus-perp/tlp/structs.d.ts +0 -88
  656. package/dist/typus-perp/tlp/structs.js +0 -329
  657. package/dist/typus-perp/token-interface/functions.d.ts +0 -12
  658. package/dist/typus-perp/token-interface/functions.js +0 -20
  659. package/dist/typus-perp/trading/functions.d.ts +0 -427
  660. package/dist/typus-perp/trading/functions.js +0 -612
  661. package/dist/typus-perp/trading/structs.d.ts +0 -2631
  662. package/dist/typus-perp/trading/structs.js +0 -4067
  663. package/dist/typus-perp/treasury-caps/functions.d.ts +0 -10
  664. package/dist/typus-perp/treasury-caps/functions.js +0 -32
  665. package/dist/typus-perp/treasury-caps/structs.d.ts +0 -50
  666. package/dist/typus-perp/treasury-caps/structs.js +0 -204
  667. package/dist/typus-perp/user/order.d.ts +0 -70
  668. package/dist/typus-perp/user/order.js +0 -206
  669. package/dist/typus-perp/user/orderWithBidReceipt.d.ts +0 -62
  670. package/dist/typus-perp/user/orderWithBidReceipt.js +0 -149
  671. package/dist/typus-perp/user/tlp.d.ts +0 -93
  672. package/dist/typus-perp/user/tlp.js +0 -268
  673. package/dist/user/index.js +0 -17
  674. package/dist/user/view-function.d.ts +0 -8
  675. package/dist/user/view-function.js +0 -71
  676. package/dist/utils/api/defillama/index.js +0 -17
  677. package/dist/utils/api/defillama/tvl.d.ts +0 -1
  678. package/dist/utils/api/defillama/tvl.js +0 -58
  679. package/dist/utils/api/index.js +0 -19
  680. package/dist/utils/api/price.d.ts +0 -4
  681. package/dist/utils/api/price.js +0 -208
  682. package/dist/utils/api/sentio/index.js +0 -18
  683. package/dist/utils/api/sentio/leader-board.d.ts +0 -7
  684. package/dist/utils/api/sentio/leader-board.js +0 -103
  685. package/dist/utils/api/sentio/reward-generated.d.ts +0 -16
  686. package/dist/utils/api/sentio/reward-generated.js +0 -511
  687. package/dist/utils/index.js +0 -21
  688. package/dist/utils/load_env.d.ts +0 -1
  689. package/dist/utils/load_env.js +0 -9
  690. package/dist/utils/mint.d.ts +0 -2
  691. package/dist/utils/mint.js +0 -57
  692. package/dist/utils/pyth/constant.d.ts +0 -49
  693. package/dist/utils/pyth/index.js +0 -18
  694. package/dist/utils/pyth/pythClient.d.ts +0 -12
  695. package/dist/utils/pyth/pythClient.js +0 -80
  696. package/dist/utils/tools.d.ts +0 -6
  697. package/dist/utils/tools.js +0 -45
  698. /package/{dist/airdrop/index.d.ts → src/airdrop/index.ts} +0 -0
  699. /package/{dist/auto-bid/index.d.ts → src/auto-bid/index.ts} +0 -0
  700. /package/{dist/constants/index.d.ts → src/constants/index.ts} +0 -0
  701. /package/{dist/index.d.ts → src/index.ts} +0 -0
  702. /package/{dist/leaderboard/index.d.ts → src/leaderboard/index.ts} +0 -0
  703. /package/{dist/tails-exp-dice/index.d.ts → src/tails-exp-dice/index.ts} +0 -0
  704. /package/{dist/tails-staking/index.d.ts → src/tails-staking/index.ts} +0 -0
  705. /package/{dist/typus-dov-single-v2/entry/index.d.ts → src/typus-dov-single-v2/entry/index.ts} +0 -0
  706. /package/{dist/typus-dov-single-v2/function/index.d.ts → src/typus-dov-single-v2/function/index.ts} +0 -0
  707. /package/{dist/typus-dov-single-v2/history/index.d.ts → src/typus-dov-single-v2/history/index.ts} +0 -0
  708. /package/{dist/typus-dov-single-v2/index.d.ts → src/typus-dov-single-v2/index.ts} +0 -0
  709. /package/{dist/typus-nft/index.d.ts → src/typus-nft/index.ts} +0 -0
  710. /package/{dist/user/index.d.ts → src/user/index.ts} +0 -0
  711. /package/{dist/utils/api/defillama/index.d.ts → src/utils/api/defillama/index.ts} +0 -0
  712. /package/{dist/utils/api/index.d.ts → src/utils/api/index.ts} +0 -0
  713. /package/{dist/utils/api/sentio/index.d.ts → src/utils/api/sentio/index.ts} +0 -0
  714. /package/{dist/utils/index.d.ts → src/utils/index.ts} +0 -0
  715. /package/{dist/utils/pyth/index.d.ts → src/utils/pyth/index.ts} +0 -0
@@ -0,0 +1,2351 @@
1
+ import * as reified from "../../../../_framework/reified";
2
+ import {PhantomReified, Reified, StructClass, ToField, ToTypeStr, Vector, decodeFromFields, decodeFromFieldsWithTypes, decodeFromJSONField, fieldToJSON, phantom} from "../../../../_framework/reified";
3
+ import {FieldsWithTypes, composeSuiType, compressSuiType} from "../../../../_framework/util";
4
+ import {Option} from "../../0x1/option/structs";
5
+ import {String} from "../../0x1/string/structs";
6
+ import {TypeName} from "../../0x1/type-name/structs";
7
+ import {UID} from "../../0x2/object/structs";
8
+ import {Authority} from "../../0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs";
9
+ import {BalancePool} from "../../0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs";
10
+ import {bcs, fromB64, fromHEX, toHEX} from "@mysten/bcs";
11
+ import {SuiClient, SuiParsedData} from "@mysten/sui.js/client";
12
+
13
+ /* ============================== Config =============================== */
14
+
15
+ export function isConfig(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::Config"; }
16
+
17
+ export interface ConfigFields { oracleId: ToField<"address">; depositLotSize: ToField<"u64">; bidLotSize: ToField<"u64">; minDepositSize: ToField<"u64">; minBidSize: ToField<"u64">; maxDepositEntry: ToField<"u64">; maxBidEntry: ToField<"u64">; depositFeeBp: ToField<"u64">; depositFeeShareBp: ToField<"u64">; depositSharedFeePool: ToField<Option<Vector<"u8">>>; bidFeeBp: ToField<"u64">; depositIncentiveBp: ToField<"u64">; bidIncentiveBp: ToField<"u64">; auctionDelayTsMs: ToField<"u64">; auctionDurationTsMs: ToField<"u64">; recoupDelayTsMs: ToField<"u64">; capacity: ToField<"u64">; leverage: ToField<"u64">; riskLevel: ToField<"u64">; hasNext: ToField<"bool">; activeVaultConfig: ToField<VaultConfig>; warmupVaultConfig: ToField<VaultConfig>; u64Padding: ToField<Vector<"u64">>; bcsPadding: ToField<Vector<"u8">> }
18
+
19
+ export type ConfigReified = Reified< Config, ConfigFields >;
20
+
21
+ export class Config implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::Config"; static readonly $numTypeParams = 0;
22
+
23
+ readonly $typeName = Config.$typeName;
24
+
25
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::Config";
26
+
27
+ readonly $typeArgs: [];
28
+
29
+ readonly oracleId: ToField<"address">; readonly depositLotSize: ToField<"u64">; readonly bidLotSize: ToField<"u64">; readonly minDepositSize: ToField<"u64">; readonly minBidSize: ToField<"u64">; readonly maxDepositEntry: ToField<"u64">; readonly maxBidEntry: ToField<"u64">; readonly depositFeeBp: ToField<"u64">; readonly depositFeeShareBp: ToField<"u64">; readonly depositSharedFeePool: ToField<Option<Vector<"u8">>>; readonly bidFeeBp: ToField<"u64">; readonly depositIncentiveBp: ToField<"u64">; readonly bidIncentiveBp: ToField<"u64">; readonly auctionDelayTsMs: ToField<"u64">; readonly auctionDurationTsMs: ToField<"u64">; readonly recoupDelayTsMs: ToField<"u64">; readonly capacity: ToField<"u64">; readonly leverage: ToField<"u64">; readonly riskLevel: ToField<"u64">; readonly hasNext: ToField<"bool">; readonly activeVaultConfig: ToField<VaultConfig>; readonly warmupVaultConfig: ToField<VaultConfig>; readonly u64Padding: ToField<Vector<"u64">>; readonly bcsPadding: ToField<Vector<"u8">>
30
+
31
+ private constructor(typeArgs: [], fields: ConfigFields, ) { this.$fullTypeName = composeSuiType( Config.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::Config"; this.$typeArgs = typeArgs;
32
+
33
+ this.oracleId = fields.oracleId;; this.depositLotSize = fields.depositLotSize;; this.bidLotSize = fields.bidLotSize;; this.minDepositSize = fields.minDepositSize;; this.minBidSize = fields.minBidSize;; this.maxDepositEntry = fields.maxDepositEntry;; this.maxBidEntry = fields.maxBidEntry;; this.depositFeeBp = fields.depositFeeBp;; this.depositFeeShareBp = fields.depositFeeShareBp;; this.depositSharedFeePool = fields.depositSharedFeePool;; this.bidFeeBp = fields.bidFeeBp;; this.depositIncentiveBp = fields.depositIncentiveBp;; this.bidIncentiveBp = fields.bidIncentiveBp;; this.auctionDelayTsMs = fields.auctionDelayTsMs;; this.auctionDurationTsMs = fields.auctionDurationTsMs;; this.recoupDelayTsMs = fields.recoupDelayTsMs;; this.capacity = fields.capacity;; this.leverage = fields.leverage;; this.riskLevel = fields.riskLevel;; this.hasNext = fields.hasNext;; this.activeVaultConfig = fields.activeVaultConfig;; this.warmupVaultConfig = fields.warmupVaultConfig;; this.u64Padding = fields.u64Padding;; this.bcsPadding = fields.bcsPadding; }
34
+
35
+ static reified( ): ConfigReified { return { typeName: Config.$typeName, fullTypeName: composeSuiType( Config.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::Config", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => Config.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => Config.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => Config.fromBcs( data, ), bcs: Config.bcs, fromJSONField: (field: any) => Config.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => Config.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => Config.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => Config.fetch( client, id, ), new: ( fields: ConfigFields, ) => { return new Config( [], fields ) }, kind: "StructClassReified", } }
36
+
37
+ static get r() { return Config.reified() }
38
+
39
+ static phantom( ): PhantomReified<ToTypeStr<Config>> { return phantom(Config.reified( )); } static get p() { return Config.phantom() }
40
+
41
+ static get bcs() { return bcs.struct("Config", {
42
+
43
+ oracle_id: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), deposit_lot_size: bcs.u64(), bid_lot_size: bcs.u64(), min_deposit_size: bcs.u64(), min_bid_size: bcs.u64(), max_deposit_entry: bcs.u64(), max_bid_entry: bcs.u64(), deposit_fee_bp: bcs.u64(), deposit_fee_share_bp: bcs.u64(), deposit_shared_fee_pool: Option.bcs(bcs.vector(bcs.u8())), bid_fee_bp: bcs.u64(), deposit_incentive_bp: bcs.u64(), bid_incentive_bp: bcs.u64(), auction_delay_ts_ms: bcs.u64(), auction_duration_ts_ms: bcs.u64(), recoup_delay_ts_ms: bcs.u64(), capacity: bcs.u64(), leverage: bcs.u64(), risk_level: bcs.u64(), has_next: bcs.bool(), active_vault_config: VaultConfig.bcs, warmup_vault_config: VaultConfig.bcs, u64_padding: bcs.vector(bcs.u64()), bcs_padding: bcs.vector(bcs.u8())
44
+
45
+ }) };
46
+
47
+ static fromFields( fields: Record<string, any> ): Config { return Config.reified( ).new( { oracleId: decodeFromFields("address", fields.oracle_id), depositLotSize: decodeFromFields("u64", fields.deposit_lot_size), bidLotSize: decodeFromFields("u64", fields.bid_lot_size), minDepositSize: decodeFromFields("u64", fields.min_deposit_size), minBidSize: decodeFromFields("u64", fields.min_bid_size), maxDepositEntry: decodeFromFields("u64", fields.max_deposit_entry), maxBidEntry: decodeFromFields("u64", fields.max_bid_entry), depositFeeBp: decodeFromFields("u64", fields.deposit_fee_bp), depositFeeShareBp: decodeFromFields("u64", fields.deposit_fee_share_bp), depositSharedFeePool: decodeFromFields(Option.reified(reified.vector("u8")), fields.deposit_shared_fee_pool), bidFeeBp: decodeFromFields("u64", fields.bid_fee_bp), depositIncentiveBp: decodeFromFields("u64", fields.deposit_incentive_bp), bidIncentiveBp: decodeFromFields("u64", fields.bid_incentive_bp), auctionDelayTsMs: decodeFromFields("u64", fields.auction_delay_ts_ms), auctionDurationTsMs: decodeFromFields("u64", fields.auction_duration_ts_ms), recoupDelayTsMs: decodeFromFields("u64", fields.recoup_delay_ts_ms), capacity: decodeFromFields("u64", fields.capacity), leverage: decodeFromFields("u64", fields.leverage), riskLevel: decodeFromFields("u64", fields.risk_level), hasNext: decodeFromFields("bool", fields.has_next), activeVaultConfig: decodeFromFields(VaultConfig.reified(), fields.active_vault_config), warmupVaultConfig: decodeFromFields(VaultConfig.reified(), fields.warmup_vault_config), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding), bcsPadding: decodeFromFields(reified.vector("u8"), fields.bcs_padding) } ) }
48
+
49
+ static fromFieldsWithTypes( item: FieldsWithTypes ): Config { if (!isConfig(item.type)) { throw new Error("not a Config type");
50
+
51
+ }
52
+
53
+ return Config.reified( ).new( { oracleId: decodeFromFieldsWithTypes("address", item.fields.oracle_id), depositLotSize: decodeFromFieldsWithTypes("u64", item.fields.deposit_lot_size), bidLotSize: decodeFromFieldsWithTypes("u64", item.fields.bid_lot_size), minDepositSize: decodeFromFieldsWithTypes("u64", item.fields.min_deposit_size), minBidSize: decodeFromFieldsWithTypes("u64", item.fields.min_bid_size), maxDepositEntry: decodeFromFieldsWithTypes("u64", item.fields.max_deposit_entry), maxBidEntry: decodeFromFieldsWithTypes("u64", item.fields.max_bid_entry), depositFeeBp: decodeFromFieldsWithTypes("u64", item.fields.deposit_fee_bp), depositFeeShareBp: decodeFromFieldsWithTypes("u64", item.fields.deposit_fee_share_bp), depositSharedFeePool: decodeFromFieldsWithTypes(Option.reified(reified.vector("u8")), item.fields.deposit_shared_fee_pool), bidFeeBp: decodeFromFieldsWithTypes("u64", item.fields.bid_fee_bp), depositIncentiveBp: decodeFromFieldsWithTypes("u64", item.fields.deposit_incentive_bp), bidIncentiveBp: decodeFromFieldsWithTypes("u64", item.fields.bid_incentive_bp), auctionDelayTsMs: decodeFromFieldsWithTypes("u64", item.fields.auction_delay_ts_ms), auctionDurationTsMs: decodeFromFieldsWithTypes("u64", item.fields.auction_duration_ts_ms), recoupDelayTsMs: decodeFromFieldsWithTypes("u64", item.fields.recoup_delay_ts_ms), capacity: decodeFromFieldsWithTypes("u64", item.fields.capacity), leverage: decodeFromFieldsWithTypes("u64", item.fields.leverage), riskLevel: decodeFromFieldsWithTypes("u64", item.fields.risk_level), hasNext: decodeFromFieldsWithTypes("bool", item.fields.has_next), activeVaultConfig: decodeFromFieldsWithTypes(VaultConfig.reified(), item.fields.active_vault_config), warmupVaultConfig: decodeFromFieldsWithTypes(VaultConfig.reified(), item.fields.warmup_vault_config), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding), bcsPadding: decodeFromFieldsWithTypes(reified.vector("u8"), item.fields.bcs_padding) } ) }
54
+
55
+ static fromBcs( data: Uint8Array ): Config { return Config.fromFields( Config.bcs.parse(data) ) }
56
+
57
+ toJSONField() { return {
58
+
59
+ oracleId: this.oracleId,depositLotSize: this.depositLotSize.toString(),bidLotSize: this.bidLotSize.toString(),minDepositSize: this.minDepositSize.toString(),minBidSize: this.minBidSize.toString(),maxDepositEntry: this.maxDepositEntry.toString(),maxBidEntry: this.maxBidEntry.toString(),depositFeeBp: this.depositFeeBp.toString(),depositFeeShareBp: this.depositFeeShareBp.toString(),depositSharedFeePool: fieldToJSON<Option<Vector<"u8">>>(`0x1::option::Option<vector<u8>>`, this.depositSharedFeePool),bidFeeBp: this.bidFeeBp.toString(),depositIncentiveBp: this.depositIncentiveBp.toString(),bidIncentiveBp: this.bidIncentiveBp.toString(),auctionDelayTsMs: this.auctionDelayTsMs.toString(),auctionDurationTsMs: this.auctionDurationTsMs.toString(),recoupDelayTsMs: this.recoupDelayTsMs.toString(),capacity: this.capacity.toString(),leverage: this.leverage.toString(),riskLevel: this.riskLevel.toString(),hasNext: this.hasNext,activeVaultConfig: this.activeVaultConfig.toJSONField(),warmupVaultConfig: this.warmupVaultConfig.toJSONField(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),bcsPadding: fieldToJSON<Vector<"u8">>(`vector<u8>`, this.bcsPadding),
60
+
61
+ } }
62
+
63
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
64
+
65
+ static fromJSONField( field: any ): Config { return Config.reified( ).new( { oracleId: decodeFromJSONField("address", field.oracleId), depositLotSize: decodeFromJSONField("u64", field.depositLotSize), bidLotSize: decodeFromJSONField("u64", field.bidLotSize), minDepositSize: decodeFromJSONField("u64", field.minDepositSize), minBidSize: decodeFromJSONField("u64", field.minBidSize), maxDepositEntry: decodeFromJSONField("u64", field.maxDepositEntry), maxBidEntry: decodeFromJSONField("u64", field.maxBidEntry), depositFeeBp: decodeFromJSONField("u64", field.depositFeeBp), depositFeeShareBp: decodeFromJSONField("u64", field.depositFeeShareBp), depositSharedFeePool: decodeFromJSONField(Option.reified(reified.vector("u8")), field.depositSharedFeePool), bidFeeBp: decodeFromJSONField("u64", field.bidFeeBp), depositIncentiveBp: decodeFromJSONField("u64", field.depositIncentiveBp), bidIncentiveBp: decodeFromJSONField("u64", field.bidIncentiveBp), auctionDelayTsMs: decodeFromJSONField("u64", field.auctionDelayTsMs), auctionDurationTsMs: decodeFromJSONField("u64", field.auctionDurationTsMs), recoupDelayTsMs: decodeFromJSONField("u64", field.recoupDelayTsMs), capacity: decodeFromJSONField("u64", field.capacity), leverage: decodeFromJSONField("u64", field.leverage), riskLevel: decodeFromJSONField("u64", field.riskLevel), hasNext: decodeFromJSONField("bool", field.hasNext), activeVaultConfig: decodeFromJSONField(VaultConfig.reified(), field.activeVaultConfig), warmupVaultConfig: decodeFromJSONField(VaultConfig.reified(), field.warmupVaultConfig), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding), bcsPadding: decodeFromJSONField(reified.vector("u8"), field.bcsPadding) } ) }
66
+
67
+ static fromJSON( json: Record<string, any> ): Config { if (json.$typeName !== Config.$typeName) { throw new Error("not a WithTwoGenerics json object") };
68
+
69
+ return Config.fromJSONField( json, ) }
70
+
71
+ static fromSuiParsedData( content: SuiParsedData ): Config { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isConfig(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a Config object`); } return Config.fromFieldsWithTypes( content ); }
72
+
73
+ static async fetch( client: SuiClient, id: string ): Promise<Config> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching Config object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isConfig(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a Config object`); }
74
+ return Config.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
75
+
76
+ }
77
+
78
+ /* ============================== Registry =============================== */
79
+
80
+ export function isRegistry(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::Registry"; }
81
+
82
+ export interface RegistryFields { id: ToField<UID>; numOfVault: ToField<"u64">; authority: ToField<Authority>; feePool: ToField<BalancePool>; portfolioVaultRegistry: ToField<UID>; depositVaultRegistry: ToField<UID>; auctionRegistry: ToField<UID>; bidVaultRegistry: ToField<UID>; refundVaultRegistry: ToField<UID>; additionalConfigRegistry: ToField<UID>; version: ToField<"u64">; transactionSuspended: ToField<"bool"> }
83
+
84
+ export type RegistryReified = Reified< Registry, RegistryFields >;
85
+
86
+ export class Registry implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::Registry"; static readonly $numTypeParams = 0;
87
+
88
+ readonly $typeName = Registry.$typeName;
89
+
90
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::Registry";
91
+
92
+ readonly $typeArgs: [];
93
+
94
+ readonly id: ToField<UID>; readonly numOfVault: ToField<"u64">; readonly authority: ToField<Authority>; readonly feePool: ToField<BalancePool>; readonly portfolioVaultRegistry: ToField<UID>; readonly depositVaultRegistry: ToField<UID>; readonly auctionRegistry: ToField<UID>; readonly bidVaultRegistry: ToField<UID>; readonly refundVaultRegistry: ToField<UID>; readonly additionalConfigRegistry: ToField<UID>; readonly version: ToField<"u64">; readonly transactionSuspended: ToField<"bool">
95
+
96
+ private constructor(typeArgs: [], fields: RegistryFields, ) { this.$fullTypeName = composeSuiType( Registry.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::Registry"; this.$typeArgs = typeArgs;
97
+
98
+ this.id = fields.id;; this.numOfVault = fields.numOfVault;; this.authority = fields.authority;; this.feePool = fields.feePool;; this.portfolioVaultRegistry = fields.portfolioVaultRegistry;; this.depositVaultRegistry = fields.depositVaultRegistry;; this.auctionRegistry = fields.auctionRegistry;; this.bidVaultRegistry = fields.bidVaultRegistry;; this.refundVaultRegistry = fields.refundVaultRegistry;; this.additionalConfigRegistry = fields.additionalConfigRegistry;; this.version = fields.version;; this.transactionSuspended = fields.transactionSuspended; }
99
+
100
+ static reified( ): RegistryReified { return { typeName: Registry.$typeName, fullTypeName: composeSuiType( Registry.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::Registry", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => Registry.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => Registry.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => Registry.fromBcs( data, ), bcs: Registry.bcs, fromJSONField: (field: any) => Registry.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => Registry.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => Registry.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => Registry.fetch( client, id, ), new: ( fields: RegistryFields, ) => { return new Registry( [], fields ) }, kind: "StructClassReified", } }
101
+
102
+ static get r() { return Registry.reified() }
103
+
104
+ static phantom( ): PhantomReified<ToTypeStr<Registry>> { return phantom(Registry.reified( )); } static get p() { return Registry.phantom() }
105
+
106
+ static get bcs() { return bcs.struct("Registry", {
107
+
108
+ id: UID.bcs, num_of_vault: bcs.u64(), authority: Authority.bcs, fee_pool: BalancePool.bcs, portfolio_vault_registry: UID.bcs, deposit_vault_registry: UID.bcs, auction_registry: UID.bcs, bid_vault_registry: UID.bcs, refund_vault_registry: UID.bcs, additional_config_registry: UID.bcs, version: bcs.u64(), transaction_suspended: bcs.bool()
109
+
110
+ }) };
111
+
112
+ static fromFields( fields: Record<string, any> ): Registry { return Registry.reified( ).new( { id: decodeFromFields(UID.reified(), fields.id), numOfVault: decodeFromFields("u64", fields.num_of_vault), authority: decodeFromFields(Authority.reified(), fields.authority), feePool: decodeFromFields(BalancePool.reified(), fields.fee_pool), portfolioVaultRegistry: decodeFromFields(UID.reified(), fields.portfolio_vault_registry), depositVaultRegistry: decodeFromFields(UID.reified(), fields.deposit_vault_registry), auctionRegistry: decodeFromFields(UID.reified(), fields.auction_registry), bidVaultRegistry: decodeFromFields(UID.reified(), fields.bid_vault_registry), refundVaultRegistry: decodeFromFields(UID.reified(), fields.refund_vault_registry), additionalConfigRegistry: decodeFromFields(UID.reified(), fields.additional_config_registry), version: decodeFromFields("u64", fields.version), transactionSuspended: decodeFromFields("bool", fields.transaction_suspended) } ) }
113
+
114
+ static fromFieldsWithTypes( item: FieldsWithTypes ): Registry { if (!isRegistry(item.type)) { throw new Error("not a Registry type");
115
+
116
+ }
117
+
118
+ return Registry.reified( ).new( { id: decodeFromFieldsWithTypes(UID.reified(), item.fields.id), numOfVault: decodeFromFieldsWithTypes("u64", item.fields.num_of_vault), authority: decodeFromFieldsWithTypes(Authority.reified(), item.fields.authority), feePool: decodeFromFieldsWithTypes(BalancePool.reified(), item.fields.fee_pool), portfolioVaultRegistry: decodeFromFieldsWithTypes(UID.reified(), item.fields.portfolio_vault_registry), depositVaultRegistry: decodeFromFieldsWithTypes(UID.reified(), item.fields.deposit_vault_registry), auctionRegistry: decodeFromFieldsWithTypes(UID.reified(), item.fields.auction_registry), bidVaultRegistry: decodeFromFieldsWithTypes(UID.reified(), item.fields.bid_vault_registry), refundVaultRegistry: decodeFromFieldsWithTypes(UID.reified(), item.fields.refund_vault_registry), additionalConfigRegistry: decodeFromFieldsWithTypes(UID.reified(), item.fields.additional_config_registry), version: decodeFromFieldsWithTypes("u64", item.fields.version), transactionSuspended: decodeFromFieldsWithTypes("bool", item.fields.transaction_suspended) } ) }
119
+
120
+ static fromBcs( data: Uint8Array ): Registry { return Registry.fromFields( Registry.bcs.parse(data) ) }
121
+
122
+ toJSONField() { return {
123
+
124
+ id: this.id,numOfVault: this.numOfVault.toString(),authority: this.authority.toJSONField(),feePool: this.feePool.toJSONField(),portfolioVaultRegistry: this.portfolioVaultRegistry,depositVaultRegistry: this.depositVaultRegistry,auctionRegistry: this.auctionRegistry,bidVaultRegistry: this.bidVaultRegistry,refundVaultRegistry: this.refundVaultRegistry,additionalConfigRegistry: this.additionalConfigRegistry,version: this.version.toString(),transactionSuspended: this.transactionSuspended,
125
+
126
+ } }
127
+
128
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
129
+
130
+ static fromJSONField( field: any ): Registry { return Registry.reified( ).new( { id: decodeFromJSONField(UID.reified(), field.id), numOfVault: decodeFromJSONField("u64", field.numOfVault), authority: decodeFromJSONField(Authority.reified(), field.authority), feePool: decodeFromJSONField(BalancePool.reified(), field.feePool), portfolioVaultRegistry: decodeFromJSONField(UID.reified(), field.portfolioVaultRegistry), depositVaultRegistry: decodeFromJSONField(UID.reified(), field.depositVaultRegistry), auctionRegistry: decodeFromJSONField(UID.reified(), field.auctionRegistry), bidVaultRegistry: decodeFromJSONField(UID.reified(), field.bidVaultRegistry), refundVaultRegistry: decodeFromJSONField(UID.reified(), field.refundVaultRegistry), additionalConfigRegistry: decodeFromJSONField(UID.reified(), field.additionalConfigRegistry), version: decodeFromJSONField("u64", field.version), transactionSuspended: decodeFromJSONField("bool", field.transactionSuspended) } ) }
131
+
132
+ static fromJSON( json: Record<string, any> ): Registry { if (json.$typeName !== Registry.$typeName) { throw new Error("not a WithTwoGenerics json object") };
133
+
134
+ return Registry.fromJSONField( json, ) }
135
+
136
+ static fromSuiParsedData( content: SuiParsedData ): Registry { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isRegistry(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a Registry object`); } return Registry.fromFieldsWithTypes( content ); }
137
+
138
+ static async fetch( client: SuiClient, id: string ): Promise<Registry> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching Registry object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isRegistry(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a Registry object`); }
139
+ return Registry.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
140
+
141
+ }
142
+
143
+ /* ============================== ActivateEvent =============================== */
144
+
145
+ export function isActivateEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::ActivateEvent"; }
146
+
147
+ export interface ActivateEventFields { signer: ToField<"address">; index: ToField<"u64">; round: ToField<"u64">; depositAmount: ToField<"u64">; dTokenDecimal: ToField<"u64">; contractSize: ToField<"u64">; oTokenDecimal: ToField<"u64">; oracleInfo: ToField<OracleInfo>; u64Padding: ToField<Vector<"u64">> }
148
+
149
+ export type ActivateEventReified = Reified< ActivateEvent, ActivateEventFields >;
150
+
151
+ export class ActivateEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::ActivateEvent"; static readonly $numTypeParams = 0;
152
+
153
+ readonly $typeName = ActivateEvent.$typeName;
154
+
155
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::ActivateEvent";
156
+
157
+ readonly $typeArgs: [];
158
+
159
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly round: ToField<"u64">; readonly depositAmount: ToField<"u64">; readonly dTokenDecimal: ToField<"u64">; readonly contractSize: ToField<"u64">; readonly oTokenDecimal: ToField<"u64">; readonly oracleInfo: ToField<OracleInfo>; readonly u64Padding: ToField<Vector<"u64">>
160
+
161
+ private constructor(typeArgs: [], fields: ActivateEventFields, ) { this.$fullTypeName = composeSuiType( ActivateEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::ActivateEvent"; this.$typeArgs = typeArgs;
162
+
163
+ this.signer = fields.signer;; this.index = fields.index;; this.round = fields.round;; this.depositAmount = fields.depositAmount;; this.dTokenDecimal = fields.dTokenDecimal;; this.contractSize = fields.contractSize;; this.oTokenDecimal = fields.oTokenDecimal;; this.oracleInfo = fields.oracleInfo;; this.u64Padding = fields.u64Padding; }
164
+
165
+ static reified( ): ActivateEventReified { return { typeName: ActivateEvent.$typeName, fullTypeName: composeSuiType( ActivateEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::ActivateEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => ActivateEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => ActivateEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => ActivateEvent.fromBcs( data, ), bcs: ActivateEvent.bcs, fromJSONField: (field: any) => ActivateEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => ActivateEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => ActivateEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => ActivateEvent.fetch( client, id, ), new: ( fields: ActivateEventFields, ) => { return new ActivateEvent( [], fields ) }, kind: "StructClassReified", } }
166
+
167
+ static get r() { return ActivateEvent.reified() }
168
+
169
+ static phantom( ): PhantomReified<ToTypeStr<ActivateEvent>> { return phantom(ActivateEvent.reified( )); } static get p() { return ActivateEvent.phantom() }
170
+
171
+ static get bcs() { return bcs.struct("ActivateEvent", {
172
+
173
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), round: bcs.u64(), deposit_amount: bcs.u64(), d_token_decimal: bcs.u64(), contract_size: bcs.u64(), o_token_decimal: bcs.u64(), oracle_info: OracleInfo.bcs, u64_padding: bcs.vector(bcs.u64())
174
+
175
+ }) };
176
+
177
+ static fromFields( fields: Record<string, any> ): ActivateEvent { return ActivateEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), round: decodeFromFields("u64", fields.round), depositAmount: decodeFromFields("u64", fields.deposit_amount), dTokenDecimal: decodeFromFields("u64", fields.d_token_decimal), contractSize: decodeFromFields("u64", fields.contract_size), oTokenDecimal: decodeFromFields("u64", fields.o_token_decimal), oracleInfo: decodeFromFields(OracleInfo.reified(), fields.oracle_info), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
178
+
179
+ static fromFieldsWithTypes( item: FieldsWithTypes ): ActivateEvent { if (!isActivateEvent(item.type)) { throw new Error("not a ActivateEvent type");
180
+
181
+ }
182
+
183
+ return ActivateEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), round: decodeFromFieldsWithTypes("u64", item.fields.round), depositAmount: decodeFromFieldsWithTypes("u64", item.fields.deposit_amount), dTokenDecimal: decodeFromFieldsWithTypes("u64", item.fields.d_token_decimal), contractSize: decodeFromFieldsWithTypes("u64", item.fields.contract_size), oTokenDecimal: decodeFromFieldsWithTypes("u64", item.fields.o_token_decimal), oracleInfo: decodeFromFieldsWithTypes(OracleInfo.reified(), item.fields.oracle_info), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
184
+
185
+ static fromBcs( data: Uint8Array ): ActivateEvent { return ActivateEvent.fromFields( ActivateEvent.bcs.parse(data) ) }
186
+
187
+ toJSONField() { return {
188
+
189
+ signer: this.signer,index: this.index.toString(),round: this.round.toString(),depositAmount: this.depositAmount.toString(),dTokenDecimal: this.dTokenDecimal.toString(),contractSize: this.contractSize.toString(),oTokenDecimal: this.oTokenDecimal.toString(),oracleInfo: this.oracleInfo.toJSONField(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
190
+
191
+ } }
192
+
193
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
194
+
195
+ static fromJSONField( field: any ): ActivateEvent { return ActivateEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), round: decodeFromJSONField("u64", field.round), depositAmount: decodeFromJSONField("u64", field.depositAmount), dTokenDecimal: decodeFromJSONField("u64", field.dTokenDecimal), contractSize: decodeFromJSONField("u64", field.contractSize), oTokenDecimal: decodeFromJSONField("u64", field.oTokenDecimal), oracleInfo: decodeFromJSONField(OracleInfo.reified(), field.oracleInfo), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
196
+
197
+ static fromJSON( json: Record<string, any> ): ActivateEvent { if (json.$typeName !== ActivateEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
198
+
199
+ return ActivateEvent.fromJSONField( json, ) }
200
+
201
+ static fromSuiParsedData( content: SuiParsedData ): ActivateEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isActivateEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a ActivateEvent object`); } return ActivateEvent.fromFieldsWithTypes( content ); }
202
+
203
+ static async fetch( client: SuiClient, id: string ): Promise<ActivateEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching ActivateEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isActivateEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a ActivateEvent object`); }
204
+ return ActivateEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
205
+
206
+ }
207
+
208
+ /* ============================== AdditionalConfig =============================== */
209
+
210
+ export function isAdditionalConfig(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::AdditionalConfig"; }
211
+
212
+ export interface AdditionalConfigFields { id: ToField<UID> }
213
+
214
+ export type AdditionalConfigReified = Reified< AdditionalConfig, AdditionalConfigFields >;
215
+
216
+ export class AdditionalConfig implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::AdditionalConfig"; static readonly $numTypeParams = 0;
217
+
218
+ readonly $typeName = AdditionalConfig.$typeName;
219
+
220
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::AdditionalConfig";
221
+
222
+ readonly $typeArgs: [];
223
+
224
+ readonly id: ToField<UID>
225
+
226
+ private constructor(typeArgs: [], fields: AdditionalConfigFields, ) { this.$fullTypeName = composeSuiType( AdditionalConfig.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::AdditionalConfig"; this.$typeArgs = typeArgs;
227
+
228
+ this.id = fields.id; }
229
+
230
+ static reified( ): AdditionalConfigReified { return { typeName: AdditionalConfig.$typeName, fullTypeName: composeSuiType( AdditionalConfig.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::AdditionalConfig", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => AdditionalConfig.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => AdditionalConfig.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => AdditionalConfig.fromBcs( data, ), bcs: AdditionalConfig.bcs, fromJSONField: (field: any) => AdditionalConfig.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => AdditionalConfig.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => AdditionalConfig.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => AdditionalConfig.fetch( client, id, ), new: ( fields: AdditionalConfigFields, ) => { return new AdditionalConfig( [], fields ) }, kind: "StructClassReified", } }
231
+
232
+ static get r() { return AdditionalConfig.reified() }
233
+
234
+ static phantom( ): PhantomReified<ToTypeStr<AdditionalConfig>> { return phantom(AdditionalConfig.reified( )); } static get p() { return AdditionalConfig.phantom() }
235
+
236
+ static get bcs() { return bcs.struct("AdditionalConfig", {
237
+
238
+ id: UID.bcs
239
+
240
+ }) };
241
+
242
+ static fromFields( fields: Record<string, any> ): AdditionalConfig { return AdditionalConfig.reified( ).new( { id: decodeFromFields(UID.reified(), fields.id) } ) }
243
+
244
+ static fromFieldsWithTypes( item: FieldsWithTypes ): AdditionalConfig { if (!isAdditionalConfig(item.type)) { throw new Error("not a AdditionalConfig type");
245
+
246
+ }
247
+
248
+ return AdditionalConfig.reified( ).new( { id: decodeFromFieldsWithTypes(UID.reified(), item.fields.id) } ) }
249
+
250
+ static fromBcs( data: Uint8Array ): AdditionalConfig { return AdditionalConfig.fromFields( AdditionalConfig.bcs.parse(data) ) }
251
+
252
+ toJSONField() { return {
253
+
254
+ id: this.id,
255
+
256
+ } }
257
+
258
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
259
+
260
+ static fromJSONField( field: any ): AdditionalConfig { return AdditionalConfig.reified( ).new( { id: decodeFromJSONField(UID.reified(), field.id) } ) }
261
+
262
+ static fromJSON( json: Record<string, any> ): AdditionalConfig { if (json.$typeName !== AdditionalConfig.$typeName) { throw new Error("not a WithTwoGenerics json object") };
263
+
264
+ return AdditionalConfig.fromJSONField( json, ) }
265
+
266
+ static fromSuiParsedData( content: SuiParsedData ): AdditionalConfig { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isAdditionalConfig(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a AdditionalConfig object`); } return AdditionalConfig.fromFieldsWithTypes( content ); }
267
+
268
+ static async fetch( client: SuiClient, id: string ): Promise<AdditionalConfig> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching AdditionalConfig object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isAdditionalConfig(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a AdditionalConfig object`); }
269
+ return AdditionalConfig.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
270
+
271
+ }
272
+
273
+ /* ============================== ClaimEvent =============================== */
274
+
275
+ export function isClaimEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::ClaimEvent"; }
276
+
277
+ export interface ClaimEventFields { signer: ToField<"address">; index: ToField<"u64">; token: ToField<TypeName>; amount: ToField<"u64">; decimal: ToField<"u64">; oracleInfo: ToField<OracleInfo>; u64Padding: ToField<Vector<"u64">> }
278
+
279
+ export type ClaimEventReified = Reified< ClaimEvent, ClaimEventFields >;
280
+
281
+ export class ClaimEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::ClaimEvent"; static readonly $numTypeParams = 0;
282
+
283
+ readonly $typeName = ClaimEvent.$typeName;
284
+
285
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::ClaimEvent";
286
+
287
+ readonly $typeArgs: [];
288
+
289
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly token: ToField<TypeName>; readonly amount: ToField<"u64">; readonly decimal: ToField<"u64">; readonly oracleInfo: ToField<OracleInfo>; readonly u64Padding: ToField<Vector<"u64">>
290
+
291
+ private constructor(typeArgs: [], fields: ClaimEventFields, ) { this.$fullTypeName = composeSuiType( ClaimEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::ClaimEvent"; this.$typeArgs = typeArgs;
292
+
293
+ this.signer = fields.signer;; this.index = fields.index;; this.token = fields.token;; this.amount = fields.amount;; this.decimal = fields.decimal;; this.oracleInfo = fields.oracleInfo;; this.u64Padding = fields.u64Padding; }
294
+
295
+ static reified( ): ClaimEventReified { return { typeName: ClaimEvent.$typeName, fullTypeName: composeSuiType( ClaimEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::ClaimEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => ClaimEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => ClaimEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => ClaimEvent.fromBcs( data, ), bcs: ClaimEvent.bcs, fromJSONField: (field: any) => ClaimEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => ClaimEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => ClaimEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => ClaimEvent.fetch( client, id, ), new: ( fields: ClaimEventFields, ) => { return new ClaimEvent( [], fields ) }, kind: "StructClassReified", } }
296
+
297
+ static get r() { return ClaimEvent.reified() }
298
+
299
+ static phantom( ): PhantomReified<ToTypeStr<ClaimEvent>> { return phantom(ClaimEvent.reified( )); } static get p() { return ClaimEvent.phantom() }
300
+
301
+ static get bcs() { return bcs.struct("ClaimEvent", {
302
+
303
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), token: TypeName.bcs, amount: bcs.u64(), decimal: bcs.u64(), oracle_info: OracleInfo.bcs, u64_padding: bcs.vector(bcs.u64())
304
+
305
+ }) };
306
+
307
+ static fromFields( fields: Record<string, any> ): ClaimEvent { return ClaimEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), token: decodeFromFields(TypeName.reified(), fields.token), amount: decodeFromFields("u64", fields.amount), decimal: decodeFromFields("u64", fields.decimal), oracleInfo: decodeFromFields(OracleInfo.reified(), fields.oracle_info), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
308
+
309
+ static fromFieldsWithTypes( item: FieldsWithTypes ): ClaimEvent { if (!isClaimEvent(item.type)) { throw new Error("not a ClaimEvent type");
310
+
311
+ }
312
+
313
+ return ClaimEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), token: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.token), amount: decodeFromFieldsWithTypes("u64", item.fields.amount), decimal: decodeFromFieldsWithTypes("u64", item.fields.decimal), oracleInfo: decodeFromFieldsWithTypes(OracleInfo.reified(), item.fields.oracle_info), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
314
+
315
+ static fromBcs( data: Uint8Array ): ClaimEvent { return ClaimEvent.fromFields( ClaimEvent.bcs.parse(data) ) }
316
+
317
+ toJSONField() { return {
318
+
319
+ signer: this.signer,index: this.index.toString(),token: this.token.toJSONField(),amount: this.amount.toString(),decimal: this.decimal.toString(),oracleInfo: this.oracleInfo.toJSONField(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
320
+
321
+ } }
322
+
323
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
324
+
325
+ static fromJSONField( field: any ): ClaimEvent { return ClaimEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), token: decodeFromJSONField(TypeName.reified(), field.token), amount: decodeFromJSONField("u64", field.amount), decimal: decodeFromJSONField("u64", field.decimal), oracleInfo: decodeFromJSONField(OracleInfo.reified(), field.oracleInfo), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
326
+
327
+ static fromJSON( json: Record<string, any> ): ClaimEvent { if (json.$typeName !== ClaimEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
328
+
329
+ return ClaimEvent.fromJSONField( json, ) }
330
+
331
+ static fromSuiParsedData( content: SuiParsedData ): ClaimEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isClaimEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a ClaimEvent object`); } return ClaimEvent.fromFieldsWithTypes( content ); }
332
+
333
+ static async fetch( client: SuiClient, id: string ): Promise<ClaimEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching ClaimEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isClaimEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a ClaimEvent object`); }
334
+ return ClaimEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
335
+
336
+ }
337
+
338
+ /* ============================== CloseEvent =============================== */
339
+
340
+ export function isCloseEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::CloseEvent"; }
341
+
342
+ export interface CloseEventFields { signer: ToField<"address">; index: ToField<"u64">; round: ToField<"u64">; u64Padding: ToField<Vector<"u64">> }
343
+
344
+ export type CloseEventReified = Reified< CloseEvent, CloseEventFields >;
345
+
346
+ export class CloseEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::CloseEvent"; static readonly $numTypeParams = 0;
347
+
348
+ readonly $typeName = CloseEvent.$typeName;
349
+
350
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::CloseEvent";
351
+
352
+ readonly $typeArgs: [];
353
+
354
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly round: ToField<"u64">; readonly u64Padding: ToField<Vector<"u64">>
355
+
356
+ private constructor(typeArgs: [], fields: CloseEventFields, ) { this.$fullTypeName = composeSuiType( CloseEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::CloseEvent"; this.$typeArgs = typeArgs;
357
+
358
+ this.signer = fields.signer;; this.index = fields.index;; this.round = fields.round;; this.u64Padding = fields.u64Padding; }
359
+
360
+ static reified( ): CloseEventReified { return { typeName: CloseEvent.$typeName, fullTypeName: composeSuiType( CloseEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::CloseEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => CloseEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => CloseEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => CloseEvent.fromBcs( data, ), bcs: CloseEvent.bcs, fromJSONField: (field: any) => CloseEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => CloseEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => CloseEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => CloseEvent.fetch( client, id, ), new: ( fields: CloseEventFields, ) => { return new CloseEvent( [], fields ) }, kind: "StructClassReified", } }
361
+
362
+ static get r() { return CloseEvent.reified() }
363
+
364
+ static phantom( ): PhantomReified<ToTypeStr<CloseEvent>> { return phantom(CloseEvent.reified( )); } static get p() { return CloseEvent.phantom() }
365
+
366
+ static get bcs() { return bcs.struct("CloseEvent", {
367
+
368
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), round: bcs.u64(), u64_padding: bcs.vector(bcs.u64())
369
+
370
+ }) };
371
+
372
+ static fromFields( fields: Record<string, any> ): CloseEvent { return CloseEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), round: decodeFromFields("u64", fields.round), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
373
+
374
+ static fromFieldsWithTypes( item: FieldsWithTypes ): CloseEvent { if (!isCloseEvent(item.type)) { throw new Error("not a CloseEvent type");
375
+
376
+ }
377
+
378
+ return CloseEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), round: decodeFromFieldsWithTypes("u64", item.fields.round), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
379
+
380
+ static fromBcs( data: Uint8Array ): CloseEvent { return CloseEvent.fromFields( CloseEvent.bcs.parse(data) ) }
381
+
382
+ toJSONField() { return {
383
+
384
+ signer: this.signer,index: this.index.toString(),round: this.round.toString(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
385
+
386
+ } }
387
+
388
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
389
+
390
+ static fromJSONField( field: any ): CloseEvent { return CloseEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), round: decodeFromJSONField("u64", field.round), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
391
+
392
+ static fromJSON( json: Record<string, any> ): CloseEvent { if (json.$typeName !== CloseEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
393
+
394
+ return CloseEvent.fromJSONField( json, ) }
395
+
396
+ static fromSuiParsedData( content: SuiParsedData ): CloseEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isCloseEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a CloseEvent object`); } return CloseEvent.fromFieldsWithTypes( content ); }
397
+
398
+ static async fetch( client: SuiClient, id: string ): Promise<CloseEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching CloseEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isCloseEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a CloseEvent object`); }
399
+ return CloseEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
400
+
401
+ }
402
+
403
+ /* ============================== CompoundEvent =============================== */
404
+
405
+ export function isCompoundEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::CompoundEvent"; }
406
+
407
+ export interface CompoundEventFields { signer: ToField<"address">; index: ToField<"u64">; token: ToField<TypeName>; amount: ToField<"u64">; decimal: ToField<"u64">; oracleInfo: ToField<OracleInfo>; u64Padding: ToField<Vector<"u64">> }
408
+
409
+ export type CompoundEventReified = Reified< CompoundEvent, CompoundEventFields >;
410
+
411
+ export class CompoundEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::CompoundEvent"; static readonly $numTypeParams = 0;
412
+
413
+ readonly $typeName = CompoundEvent.$typeName;
414
+
415
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::CompoundEvent";
416
+
417
+ readonly $typeArgs: [];
418
+
419
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly token: ToField<TypeName>; readonly amount: ToField<"u64">; readonly decimal: ToField<"u64">; readonly oracleInfo: ToField<OracleInfo>; readonly u64Padding: ToField<Vector<"u64">>
420
+
421
+ private constructor(typeArgs: [], fields: CompoundEventFields, ) { this.$fullTypeName = composeSuiType( CompoundEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::CompoundEvent"; this.$typeArgs = typeArgs;
422
+
423
+ this.signer = fields.signer;; this.index = fields.index;; this.token = fields.token;; this.amount = fields.amount;; this.decimal = fields.decimal;; this.oracleInfo = fields.oracleInfo;; this.u64Padding = fields.u64Padding; }
424
+
425
+ static reified( ): CompoundEventReified { return { typeName: CompoundEvent.$typeName, fullTypeName: composeSuiType( CompoundEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::CompoundEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => CompoundEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => CompoundEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => CompoundEvent.fromBcs( data, ), bcs: CompoundEvent.bcs, fromJSONField: (field: any) => CompoundEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => CompoundEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => CompoundEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => CompoundEvent.fetch( client, id, ), new: ( fields: CompoundEventFields, ) => { return new CompoundEvent( [], fields ) }, kind: "StructClassReified", } }
426
+
427
+ static get r() { return CompoundEvent.reified() }
428
+
429
+ static phantom( ): PhantomReified<ToTypeStr<CompoundEvent>> { return phantom(CompoundEvent.reified( )); } static get p() { return CompoundEvent.phantom() }
430
+
431
+ static get bcs() { return bcs.struct("CompoundEvent", {
432
+
433
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), token: TypeName.bcs, amount: bcs.u64(), decimal: bcs.u64(), oracle_info: OracleInfo.bcs, u64_padding: bcs.vector(bcs.u64())
434
+
435
+ }) };
436
+
437
+ static fromFields( fields: Record<string, any> ): CompoundEvent { return CompoundEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), token: decodeFromFields(TypeName.reified(), fields.token), amount: decodeFromFields("u64", fields.amount), decimal: decodeFromFields("u64", fields.decimal), oracleInfo: decodeFromFields(OracleInfo.reified(), fields.oracle_info), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
438
+
439
+ static fromFieldsWithTypes( item: FieldsWithTypes ): CompoundEvent { if (!isCompoundEvent(item.type)) { throw new Error("not a CompoundEvent type");
440
+
441
+ }
442
+
443
+ return CompoundEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), token: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.token), amount: decodeFromFieldsWithTypes("u64", item.fields.amount), decimal: decodeFromFieldsWithTypes("u64", item.fields.decimal), oracleInfo: decodeFromFieldsWithTypes(OracleInfo.reified(), item.fields.oracle_info), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
444
+
445
+ static fromBcs( data: Uint8Array ): CompoundEvent { return CompoundEvent.fromFields( CompoundEvent.bcs.parse(data) ) }
446
+
447
+ toJSONField() { return {
448
+
449
+ signer: this.signer,index: this.index.toString(),token: this.token.toJSONField(),amount: this.amount.toString(),decimal: this.decimal.toString(),oracleInfo: this.oracleInfo.toJSONField(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
450
+
451
+ } }
452
+
453
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
454
+
455
+ static fromJSONField( field: any ): CompoundEvent { return CompoundEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), token: decodeFromJSONField(TypeName.reified(), field.token), amount: decodeFromJSONField("u64", field.amount), decimal: decodeFromJSONField("u64", field.decimal), oracleInfo: decodeFromJSONField(OracleInfo.reified(), field.oracleInfo), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
456
+
457
+ static fromJSON( json: Record<string, any> ): CompoundEvent { if (json.$typeName !== CompoundEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
458
+
459
+ return CompoundEvent.fromJSONField( json, ) }
460
+
461
+ static fromSuiParsedData( content: SuiParsedData ): CompoundEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isCompoundEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a CompoundEvent object`); } return CompoundEvent.fromFieldsWithTypes( content ); }
462
+
463
+ static async fetch( client: SuiClient, id: string ): Promise<CompoundEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching CompoundEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isCompoundEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a CompoundEvent object`); }
464
+ return CompoundEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
465
+
466
+ }
467
+
468
+ /* ============================== DeliveryEvent =============================== */
469
+
470
+ export function isDeliveryEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DeliveryEvent"; }
471
+
472
+ export interface DeliveryEventFields { signer: ToField<"address">; index: ToField<"u64">; round: ToField<"u64">; early: ToField<"bool">; deliveryPrice: ToField<"u64">; deliverySize: ToField<"u64">; oTokenDecimal: ToField<"u64">; oToken: ToField<TypeName>; bidderBidValue: ToField<"u64">; bidderFee: ToField<"u64">; incentiveBidValue: ToField<"u64">; incentiveFee: ToField<"u64">; bTokenDecimal: ToField<"u64">; bToken: ToField<TypeName>; depositorIncentiveValue: ToField<"u64">; u64Padding: ToField<Vector<"u64">> }
473
+
474
+ export type DeliveryEventReified = Reified< DeliveryEvent, DeliveryEventFields >;
475
+
476
+ export class DeliveryEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DeliveryEvent"; static readonly $numTypeParams = 0;
477
+
478
+ readonly $typeName = DeliveryEvent.$typeName;
479
+
480
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DeliveryEvent";
481
+
482
+ readonly $typeArgs: [];
483
+
484
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly round: ToField<"u64">; readonly early: ToField<"bool">; readonly deliveryPrice: ToField<"u64">; readonly deliverySize: ToField<"u64">; readonly oTokenDecimal: ToField<"u64">; readonly oToken: ToField<TypeName>; readonly bidderBidValue: ToField<"u64">; readonly bidderFee: ToField<"u64">; readonly incentiveBidValue: ToField<"u64">; readonly incentiveFee: ToField<"u64">; readonly bTokenDecimal: ToField<"u64">; readonly bToken: ToField<TypeName>; readonly depositorIncentiveValue: ToField<"u64">; readonly u64Padding: ToField<Vector<"u64">>
485
+
486
+ private constructor(typeArgs: [], fields: DeliveryEventFields, ) { this.$fullTypeName = composeSuiType( DeliveryEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DeliveryEvent"; this.$typeArgs = typeArgs;
487
+
488
+ this.signer = fields.signer;; this.index = fields.index;; this.round = fields.round;; this.early = fields.early;; this.deliveryPrice = fields.deliveryPrice;; this.deliverySize = fields.deliverySize;; this.oTokenDecimal = fields.oTokenDecimal;; this.oToken = fields.oToken;; this.bidderBidValue = fields.bidderBidValue;; this.bidderFee = fields.bidderFee;; this.incentiveBidValue = fields.incentiveBidValue;; this.incentiveFee = fields.incentiveFee;; this.bTokenDecimal = fields.bTokenDecimal;; this.bToken = fields.bToken;; this.depositorIncentiveValue = fields.depositorIncentiveValue;; this.u64Padding = fields.u64Padding; }
489
+
490
+ static reified( ): DeliveryEventReified { return { typeName: DeliveryEvent.$typeName, fullTypeName: composeSuiType( DeliveryEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DeliveryEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => DeliveryEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => DeliveryEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => DeliveryEvent.fromBcs( data, ), bcs: DeliveryEvent.bcs, fromJSONField: (field: any) => DeliveryEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => DeliveryEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => DeliveryEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => DeliveryEvent.fetch( client, id, ), new: ( fields: DeliveryEventFields, ) => { return new DeliveryEvent( [], fields ) }, kind: "StructClassReified", } }
491
+
492
+ static get r() { return DeliveryEvent.reified() }
493
+
494
+ static phantom( ): PhantomReified<ToTypeStr<DeliveryEvent>> { return phantom(DeliveryEvent.reified( )); } static get p() { return DeliveryEvent.phantom() }
495
+
496
+ static get bcs() { return bcs.struct("DeliveryEvent", {
497
+
498
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), round: bcs.u64(), early: bcs.bool(), delivery_price: bcs.u64(), delivery_size: bcs.u64(), o_token_decimal: bcs.u64(), o_token: TypeName.bcs, bidder_bid_value: bcs.u64(), bidder_fee: bcs.u64(), incentive_bid_value: bcs.u64(), incentive_fee: bcs.u64(), b_token_decimal: bcs.u64(), b_token: TypeName.bcs, depositor_incentive_value: bcs.u64(), u64_padding: bcs.vector(bcs.u64())
499
+
500
+ }) };
501
+
502
+ static fromFields( fields: Record<string, any> ): DeliveryEvent { return DeliveryEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), round: decodeFromFields("u64", fields.round), early: decodeFromFields("bool", fields.early), deliveryPrice: decodeFromFields("u64", fields.delivery_price), deliverySize: decodeFromFields("u64", fields.delivery_size), oTokenDecimal: decodeFromFields("u64", fields.o_token_decimal), oToken: decodeFromFields(TypeName.reified(), fields.o_token), bidderBidValue: decodeFromFields("u64", fields.bidder_bid_value), bidderFee: decodeFromFields("u64", fields.bidder_fee), incentiveBidValue: decodeFromFields("u64", fields.incentive_bid_value), incentiveFee: decodeFromFields("u64", fields.incentive_fee), bTokenDecimal: decodeFromFields("u64", fields.b_token_decimal), bToken: decodeFromFields(TypeName.reified(), fields.b_token), depositorIncentiveValue: decodeFromFields("u64", fields.depositor_incentive_value), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
503
+
504
+ static fromFieldsWithTypes( item: FieldsWithTypes ): DeliveryEvent { if (!isDeliveryEvent(item.type)) { throw new Error("not a DeliveryEvent type");
505
+
506
+ }
507
+
508
+ return DeliveryEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), round: decodeFromFieldsWithTypes("u64", item.fields.round), early: decodeFromFieldsWithTypes("bool", item.fields.early), deliveryPrice: decodeFromFieldsWithTypes("u64", item.fields.delivery_price), deliverySize: decodeFromFieldsWithTypes("u64", item.fields.delivery_size), oTokenDecimal: decodeFromFieldsWithTypes("u64", item.fields.o_token_decimal), oToken: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.o_token), bidderBidValue: decodeFromFieldsWithTypes("u64", item.fields.bidder_bid_value), bidderFee: decodeFromFieldsWithTypes("u64", item.fields.bidder_fee), incentiveBidValue: decodeFromFieldsWithTypes("u64", item.fields.incentive_bid_value), incentiveFee: decodeFromFieldsWithTypes("u64", item.fields.incentive_fee), bTokenDecimal: decodeFromFieldsWithTypes("u64", item.fields.b_token_decimal), bToken: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.b_token), depositorIncentiveValue: decodeFromFieldsWithTypes("u64", item.fields.depositor_incentive_value), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
509
+
510
+ static fromBcs( data: Uint8Array ): DeliveryEvent { return DeliveryEvent.fromFields( DeliveryEvent.bcs.parse(data) ) }
511
+
512
+ toJSONField() { return {
513
+
514
+ signer: this.signer,index: this.index.toString(),round: this.round.toString(),early: this.early,deliveryPrice: this.deliveryPrice.toString(),deliverySize: this.deliverySize.toString(),oTokenDecimal: this.oTokenDecimal.toString(),oToken: this.oToken.toJSONField(),bidderBidValue: this.bidderBidValue.toString(),bidderFee: this.bidderFee.toString(),incentiveBidValue: this.incentiveBidValue.toString(),incentiveFee: this.incentiveFee.toString(),bTokenDecimal: this.bTokenDecimal.toString(),bToken: this.bToken.toJSONField(),depositorIncentiveValue: this.depositorIncentiveValue.toString(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
515
+
516
+ } }
517
+
518
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
519
+
520
+ static fromJSONField( field: any ): DeliveryEvent { return DeliveryEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), round: decodeFromJSONField("u64", field.round), early: decodeFromJSONField("bool", field.early), deliveryPrice: decodeFromJSONField("u64", field.deliveryPrice), deliverySize: decodeFromJSONField("u64", field.deliverySize), oTokenDecimal: decodeFromJSONField("u64", field.oTokenDecimal), oToken: decodeFromJSONField(TypeName.reified(), field.oToken), bidderBidValue: decodeFromJSONField("u64", field.bidderBidValue), bidderFee: decodeFromJSONField("u64", field.bidderFee), incentiveBidValue: decodeFromJSONField("u64", field.incentiveBidValue), incentiveFee: decodeFromJSONField("u64", field.incentiveFee), bTokenDecimal: decodeFromJSONField("u64", field.bTokenDecimal), bToken: decodeFromJSONField(TypeName.reified(), field.bToken), depositorIncentiveValue: decodeFromJSONField("u64", field.depositorIncentiveValue), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
521
+
522
+ static fromJSON( json: Record<string, any> ): DeliveryEvent { if (json.$typeName !== DeliveryEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
523
+
524
+ return DeliveryEvent.fromJSONField( json, ) }
525
+
526
+ static fromSuiParsedData( content: SuiParsedData ): DeliveryEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isDeliveryEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a DeliveryEvent object`); } return DeliveryEvent.fromFieldsWithTypes( content ); }
527
+
528
+ static async fetch( client: SuiClient, id: string ): Promise<DeliveryEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching DeliveryEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isDeliveryEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a DeliveryEvent object`); }
529
+ return DeliveryEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
530
+
531
+ }
532
+
533
+ /* ============================== DeliveryInfo =============================== */
534
+
535
+ export function isDeliveryInfo(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DeliveryInfo"; }
536
+
537
+ export interface DeliveryInfoFields { auctionType: ToField<"u64">; deliveryPrice: ToField<"u64">; deliverySize: ToField<"u64">; bidderBidValue: ToField<"u64">; bidderFee: ToField<"u64">; incentiveBidValue: ToField<"u64">; incentiveFee: ToField<"u64">; tsMs: ToField<"u64">; u64Padding: ToField<Vector<"u64">> }
538
+
539
+ export type DeliveryInfoReified = Reified< DeliveryInfo, DeliveryInfoFields >;
540
+
541
+ export class DeliveryInfo implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DeliveryInfo"; static readonly $numTypeParams = 0;
542
+
543
+ readonly $typeName = DeliveryInfo.$typeName;
544
+
545
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DeliveryInfo";
546
+
547
+ readonly $typeArgs: [];
548
+
549
+ readonly auctionType: ToField<"u64">; readonly deliveryPrice: ToField<"u64">; readonly deliverySize: ToField<"u64">; readonly bidderBidValue: ToField<"u64">; readonly bidderFee: ToField<"u64">; readonly incentiveBidValue: ToField<"u64">; readonly incentiveFee: ToField<"u64">; readonly tsMs: ToField<"u64">; readonly u64Padding: ToField<Vector<"u64">>
550
+
551
+ private constructor(typeArgs: [], fields: DeliveryInfoFields, ) { this.$fullTypeName = composeSuiType( DeliveryInfo.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DeliveryInfo"; this.$typeArgs = typeArgs;
552
+
553
+ this.auctionType = fields.auctionType;; this.deliveryPrice = fields.deliveryPrice;; this.deliverySize = fields.deliverySize;; this.bidderBidValue = fields.bidderBidValue;; this.bidderFee = fields.bidderFee;; this.incentiveBidValue = fields.incentiveBidValue;; this.incentiveFee = fields.incentiveFee;; this.tsMs = fields.tsMs;; this.u64Padding = fields.u64Padding; }
554
+
555
+ static reified( ): DeliveryInfoReified { return { typeName: DeliveryInfo.$typeName, fullTypeName: composeSuiType( DeliveryInfo.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DeliveryInfo", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => DeliveryInfo.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => DeliveryInfo.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => DeliveryInfo.fromBcs( data, ), bcs: DeliveryInfo.bcs, fromJSONField: (field: any) => DeliveryInfo.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => DeliveryInfo.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => DeliveryInfo.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => DeliveryInfo.fetch( client, id, ), new: ( fields: DeliveryInfoFields, ) => { return new DeliveryInfo( [], fields ) }, kind: "StructClassReified", } }
556
+
557
+ static get r() { return DeliveryInfo.reified() }
558
+
559
+ static phantom( ): PhantomReified<ToTypeStr<DeliveryInfo>> { return phantom(DeliveryInfo.reified( )); } static get p() { return DeliveryInfo.phantom() }
560
+
561
+ static get bcs() { return bcs.struct("DeliveryInfo", {
562
+
563
+ auction_type: bcs.u64(), delivery_price: bcs.u64(), delivery_size: bcs.u64(), bidder_bid_value: bcs.u64(), bidder_fee: bcs.u64(), incentive_bid_value: bcs.u64(), incentive_fee: bcs.u64(), ts_ms: bcs.u64(), u64_padding: bcs.vector(bcs.u64())
564
+
565
+ }) };
566
+
567
+ static fromFields( fields: Record<string, any> ): DeliveryInfo { return DeliveryInfo.reified( ).new( { auctionType: decodeFromFields("u64", fields.auction_type), deliveryPrice: decodeFromFields("u64", fields.delivery_price), deliverySize: decodeFromFields("u64", fields.delivery_size), bidderBidValue: decodeFromFields("u64", fields.bidder_bid_value), bidderFee: decodeFromFields("u64", fields.bidder_fee), incentiveBidValue: decodeFromFields("u64", fields.incentive_bid_value), incentiveFee: decodeFromFields("u64", fields.incentive_fee), tsMs: decodeFromFields("u64", fields.ts_ms), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
568
+
569
+ static fromFieldsWithTypes( item: FieldsWithTypes ): DeliveryInfo { if (!isDeliveryInfo(item.type)) { throw new Error("not a DeliveryInfo type");
570
+
571
+ }
572
+
573
+ return DeliveryInfo.reified( ).new( { auctionType: decodeFromFieldsWithTypes("u64", item.fields.auction_type), deliveryPrice: decodeFromFieldsWithTypes("u64", item.fields.delivery_price), deliverySize: decodeFromFieldsWithTypes("u64", item.fields.delivery_size), bidderBidValue: decodeFromFieldsWithTypes("u64", item.fields.bidder_bid_value), bidderFee: decodeFromFieldsWithTypes("u64", item.fields.bidder_fee), incentiveBidValue: decodeFromFieldsWithTypes("u64", item.fields.incentive_bid_value), incentiveFee: decodeFromFieldsWithTypes("u64", item.fields.incentive_fee), tsMs: decodeFromFieldsWithTypes("u64", item.fields.ts_ms), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
574
+
575
+ static fromBcs( data: Uint8Array ): DeliveryInfo { return DeliveryInfo.fromFields( DeliveryInfo.bcs.parse(data) ) }
576
+
577
+ toJSONField() { return {
578
+
579
+ auctionType: this.auctionType.toString(),deliveryPrice: this.deliveryPrice.toString(),deliverySize: this.deliverySize.toString(),bidderBidValue: this.bidderBidValue.toString(),bidderFee: this.bidderFee.toString(),incentiveBidValue: this.incentiveBidValue.toString(),incentiveFee: this.incentiveFee.toString(),tsMs: this.tsMs.toString(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
580
+
581
+ } }
582
+
583
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
584
+
585
+ static fromJSONField( field: any ): DeliveryInfo { return DeliveryInfo.reified( ).new( { auctionType: decodeFromJSONField("u64", field.auctionType), deliveryPrice: decodeFromJSONField("u64", field.deliveryPrice), deliverySize: decodeFromJSONField("u64", field.deliverySize), bidderBidValue: decodeFromJSONField("u64", field.bidderBidValue), bidderFee: decodeFromJSONField("u64", field.bidderFee), incentiveBidValue: decodeFromJSONField("u64", field.incentiveBidValue), incentiveFee: decodeFromJSONField("u64", field.incentiveFee), tsMs: decodeFromJSONField("u64", field.tsMs), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
586
+
587
+ static fromJSON( json: Record<string, any> ): DeliveryInfo { if (json.$typeName !== DeliveryInfo.$typeName) { throw new Error("not a WithTwoGenerics json object") };
588
+
589
+ return DeliveryInfo.fromJSONField( json, ) }
590
+
591
+ static fromSuiParsedData( content: SuiParsedData ): DeliveryInfo { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isDeliveryInfo(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a DeliveryInfo object`); } return DeliveryInfo.fromFieldsWithTypes( content ); }
592
+
593
+ static async fetch( client: SuiClient, id: string ): Promise<DeliveryInfo> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching DeliveryInfo object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isDeliveryInfo(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a DeliveryInfo object`); }
594
+ return DeliveryInfo.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
595
+
596
+ }
597
+
598
+ /* ============================== DeliveryInfos =============================== */
599
+
600
+ export function isDeliveryInfos(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DeliveryInfos"; }
601
+
602
+ export interface DeliveryInfosFields { round: ToField<"u64">; maxSize: ToField<"u64">; totalDeliverySize: ToField<"u64">; totalBidderBidValue: ToField<"u64">; totalBidderFee: ToField<"u64">; totalIncentiveBidValue: ToField<"u64">; totalIncentiveFee: ToField<"u64">; deliveryInfo: ToField<Vector<DeliveryInfo>>; u64Padding: ToField<Vector<"u64">> }
603
+
604
+ export type DeliveryInfosReified = Reified< DeliveryInfos, DeliveryInfosFields >;
605
+
606
+ export class DeliveryInfos implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DeliveryInfos"; static readonly $numTypeParams = 0;
607
+
608
+ readonly $typeName = DeliveryInfos.$typeName;
609
+
610
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DeliveryInfos";
611
+
612
+ readonly $typeArgs: [];
613
+
614
+ readonly round: ToField<"u64">; readonly maxSize: ToField<"u64">; readonly totalDeliverySize: ToField<"u64">; readonly totalBidderBidValue: ToField<"u64">; readonly totalBidderFee: ToField<"u64">; readonly totalIncentiveBidValue: ToField<"u64">; readonly totalIncentiveFee: ToField<"u64">; readonly deliveryInfo: ToField<Vector<DeliveryInfo>>; readonly u64Padding: ToField<Vector<"u64">>
615
+
616
+ private constructor(typeArgs: [], fields: DeliveryInfosFields, ) { this.$fullTypeName = composeSuiType( DeliveryInfos.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DeliveryInfos"; this.$typeArgs = typeArgs;
617
+
618
+ this.round = fields.round;; this.maxSize = fields.maxSize;; this.totalDeliverySize = fields.totalDeliverySize;; this.totalBidderBidValue = fields.totalBidderBidValue;; this.totalBidderFee = fields.totalBidderFee;; this.totalIncentiveBidValue = fields.totalIncentiveBidValue;; this.totalIncentiveFee = fields.totalIncentiveFee;; this.deliveryInfo = fields.deliveryInfo;; this.u64Padding = fields.u64Padding; }
619
+
620
+ static reified( ): DeliveryInfosReified { return { typeName: DeliveryInfos.$typeName, fullTypeName: composeSuiType( DeliveryInfos.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DeliveryInfos", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => DeliveryInfos.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => DeliveryInfos.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => DeliveryInfos.fromBcs( data, ), bcs: DeliveryInfos.bcs, fromJSONField: (field: any) => DeliveryInfos.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => DeliveryInfos.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => DeliveryInfos.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => DeliveryInfos.fetch( client, id, ), new: ( fields: DeliveryInfosFields, ) => { return new DeliveryInfos( [], fields ) }, kind: "StructClassReified", } }
621
+
622
+ static get r() { return DeliveryInfos.reified() }
623
+
624
+ static phantom( ): PhantomReified<ToTypeStr<DeliveryInfos>> { return phantom(DeliveryInfos.reified( )); } static get p() { return DeliveryInfos.phantom() }
625
+
626
+ static get bcs() { return bcs.struct("DeliveryInfos", {
627
+
628
+ round: bcs.u64(), max_size: bcs.u64(), total_delivery_size: bcs.u64(), total_bidder_bid_value: bcs.u64(), total_bidder_fee: bcs.u64(), total_incentive_bid_value: bcs.u64(), total_incentive_fee: bcs.u64(), delivery_info: bcs.vector(DeliveryInfo.bcs), u64_padding: bcs.vector(bcs.u64())
629
+
630
+ }) };
631
+
632
+ static fromFields( fields: Record<string, any> ): DeliveryInfos { return DeliveryInfos.reified( ).new( { round: decodeFromFields("u64", fields.round), maxSize: decodeFromFields("u64", fields.max_size), totalDeliverySize: decodeFromFields("u64", fields.total_delivery_size), totalBidderBidValue: decodeFromFields("u64", fields.total_bidder_bid_value), totalBidderFee: decodeFromFields("u64", fields.total_bidder_fee), totalIncentiveBidValue: decodeFromFields("u64", fields.total_incentive_bid_value), totalIncentiveFee: decodeFromFields("u64", fields.total_incentive_fee), deliveryInfo: decodeFromFields(reified.vector(DeliveryInfo.reified()), fields.delivery_info), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
633
+
634
+ static fromFieldsWithTypes( item: FieldsWithTypes ): DeliveryInfos { if (!isDeliveryInfos(item.type)) { throw new Error("not a DeliveryInfos type");
635
+
636
+ }
637
+
638
+ return DeliveryInfos.reified( ).new( { round: decodeFromFieldsWithTypes("u64", item.fields.round), maxSize: decodeFromFieldsWithTypes("u64", item.fields.max_size), totalDeliverySize: decodeFromFieldsWithTypes("u64", item.fields.total_delivery_size), totalBidderBidValue: decodeFromFieldsWithTypes("u64", item.fields.total_bidder_bid_value), totalBidderFee: decodeFromFieldsWithTypes("u64", item.fields.total_bidder_fee), totalIncentiveBidValue: decodeFromFieldsWithTypes("u64", item.fields.total_incentive_bid_value), totalIncentiveFee: decodeFromFieldsWithTypes("u64", item.fields.total_incentive_fee), deliveryInfo: decodeFromFieldsWithTypes(reified.vector(DeliveryInfo.reified()), item.fields.delivery_info), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
639
+
640
+ static fromBcs( data: Uint8Array ): DeliveryInfos { return DeliveryInfos.fromFields( DeliveryInfos.bcs.parse(data) ) }
641
+
642
+ toJSONField() { return {
643
+
644
+ round: this.round.toString(),maxSize: this.maxSize.toString(),totalDeliverySize: this.totalDeliverySize.toString(),totalBidderBidValue: this.totalBidderBidValue.toString(),totalBidderFee: this.totalBidderFee.toString(),totalIncentiveBidValue: this.totalIncentiveBidValue.toString(),totalIncentiveFee: this.totalIncentiveFee.toString(),deliveryInfo: fieldToJSON<Vector<DeliveryInfo>>(`vector<0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DeliveryInfo>`, this.deliveryInfo),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
645
+
646
+ } }
647
+
648
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
649
+
650
+ static fromJSONField( field: any ): DeliveryInfos { return DeliveryInfos.reified( ).new( { round: decodeFromJSONField("u64", field.round), maxSize: decodeFromJSONField("u64", field.maxSize), totalDeliverySize: decodeFromJSONField("u64", field.totalDeliverySize), totalBidderBidValue: decodeFromJSONField("u64", field.totalBidderBidValue), totalBidderFee: decodeFromJSONField("u64", field.totalBidderFee), totalIncentiveBidValue: decodeFromJSONField("u64", field.totalIncentiveBidValue), totalIncentiveFee: decodeFromJSONField("u64", field.totalIncentiveFee), deliveryInfo: decodeFromJSONField(reified.vector(DeliveryInfo.reified()), field.deliveryInfo), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
651
+
652
+ static fromJSON( json: Record<string, any> ): DeliveryInfos { if (json.$typeName !== DeliveryInfos.$typeName) { throw new Error("not a WithTwoGenerics json object") };
653
+
654
+ return DeliveryInfos.fromJSONField( json, ) }
655
+
656
+ static fromSuiParsedData( content: SuiParsedData ): DeliveryInfos { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isDeliveryInfos(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a DeliveryInfos object`); } return DeliveryInfos.fromFieldsWithTypes( content ); }
657
+
658
+ static async fetch( client: SuiClient, id: string ): Promise<DeliveryInfos> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching DeliveryInfos object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isDeliveryInfos(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a DeliveryInfos object`); }
659
+ return DeliveryInfos.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
660
+
661
+ }
662
+
663
+ /* ============================== DepositEvent =============================== */
664
+
665
+ export function isDepositEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DepositEvent"; }
666
+
667
+ export interface DepositEventFields { signer: ToField<"address">; index: ToField<"u64">; token: ToField<TypeName>; amount: ToField<"u64">; decimal: ToField<"u64">; oracleInfo: ToField<OracleInfo>; u64Padding: ToField<Vector<"u64">> }
668
+
669
+ export type DepositEventReified = Reified< DepositEvent, DepositEventFields >;
670
+
671
+ export class DepositEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DepositEvent"; static readonly $numTypeParams = 0;
672
+
673
+ readonly $typeName = DepositEvent.$typeName;
674
+
675
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DepositEvent";
676
+
677
+ readonly $typeArgs: [];
678
+
679
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly token: ToField<TypeName>; readonly amount: ToField<"u64">; readonly decimal: ToField<"u64">; readonly oracleInfo: ToField<OracleInfo>; readonly u64Padding: ToField<Vector<"u64">>
680
+
681
+ private constructor(typeArgs: [], fields: DepositEventFields, ) { this.$fullTypeName = composeSuiType( DepositEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DepositEvent"; this.$typeArgs = typeArgs;
682
+
683
+ this.signer = fields.signer;; this.index = fields.index;; this.token = fields.token;; this.amount = fields.amount;; this.decimal = fields.decimal;; this.oracleInfo = fields.oracleInfo;; this.u64Padding = fields.u64Padding; }
684
+
685
+ static reified( ): DepositEventReified { return { typeName: DepositEvent.$typeName, fullTypeName: composeSuiType( DepositEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DepositEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => DepositEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => DepositEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => DepositEvent.fromBcs( data, ), bcs: DepositEvent.bcs, fromJSONField: (field: any) => DepositEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => DepositEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => DepositEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => DepositEvent.fetch( client, id, ), new: ( fields: DepositEventFields, ) => { return new DepositEvent( [], fields ) }, kind: "StructClassReified", } }
686
+
687
+ static get r() { return DepositEvent.reified() }
688
+
689
+ static phantom( ): PhantomReified<ToTypeStr<DepositEvent>> { return phantom(DepositEvent.reified( )); } static get p() { return DepositEvent.phantom() }
690
+
691
+ static get bcs() { return bcs.struct("DepositEvent", {
692
+
693
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), token: TypeName.bcs, amount: bcs.u64(), decimal: bcs.u64(), oracle_info: OracleInfo.bcs, u64_padding: bcs.vector(bcs.u64())
694
+
695
+ }) };
696
+
697
+ static fromFields( fields: Record<string, any> ): DepositEvent { return DepositEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), token: decodeFromFields(TypeName.reified(), fields.token), amount: decodeFromFields("u64", fields.amount), decimal: decodeFromFields("u64", fields.decimal), oracleInfo: decodeFromFields(OracleInfo.reified(), fields.oracle_info), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
698
+
699
+ static fromFieldsWithTypes( item: FieldsWithTypes ): DepositEvent { if (!isDepositEvent(item.type)) { throw new Error("not a DepositEvent type");
700
+
701
+ }
702
+
703
+ return DepositEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), token: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.token), amount: decodeFromFieldsWithTypes("u64", item.fields.amount), decimal: decodeFromFieldsWithTypes("u64", item.fields.decimal), oracleInfo: decodeFromFieldsWithTypes(OracleInfo.reified(), item.fields.oracle_info), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
704
+
705
+ static fromBcs( data: Uint8Array ): DepositEvent { return DepositEvent.fromFields( DepositEvent.bcs.parse(data) ) }
706
+
707
+ toJSONField() { return {
708
+
709
+ signer: this.signer,index: this.index.toString(),token: this.token.toJSONField(),amount: this.amount.toString(),decimal: this.decimal.toString(),oracleInfo: this.oracleInfo.toJSONField(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
710
+
711
+ } }
712
+
713
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
714
+
715
+ static fromJSONField( field: any ): DepositEvent { return DepositEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), token: decodeFromJSONField(TypeName.reified(), field.token), amount: decodeFromJSONField("u64", field.amount), decimal: decodeFromJSONField("u64", field.decimal), oracleInfo: decodeFromJSONField(OracleInfo.reified(), field.oracleInfo), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
716
+
717
+ static fromJSON( json: Record<string, any> ): DepositEvent { if (json.$typeName !== DepositEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
718
+
719
+ return DepositEvent.fromJSONField( json, ) }
720
+
721
+ static fromSuiParsedData( content: SuiParsedData ): DepositEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isDepositEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a DepositEvent object`); } return DepositEvent.fromFieldsWithTypes( content ); }
722
+
723
+ static async fetch( client: SuiClient, id: string ): Promise<DepositEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching DepositEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isDepositEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a DepositEvent object`); }
724
+ return DepositEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
725
+
726
+ }
727
+
728
+ /* ============================== DepositSnapshot =============================== */
729
+
730
+ export function isDepositSnapshot(type: string): boolean { type = compressSuiType(type); return type === "0x10250db78795fda6ce62b76efa324eb1a7dc50beeed1229fba40c50e4305ef9a::typus_dov_single::DepositSnapshot"; }
731
+
732
+ export interface DepositSnapshotFields { snapshots: ToField<Vector<"u64">>; totalDeposit: ToField<"u64">; snapshotTsMs: ToField<"u64"> }
733
+
734
+ export type DepositSnapshotReified = Reified< DepositSnapshot, DepositSnapshotFields >;
735
+
736
+ export class DepositSnapshot implements StructClass { static readonly $typeName = "0x10250db78795fda6ce62b76efa324eb1a7dc50beeed1229fba40c50e4305ef9a::typus_dov_single::DepositSnapshot"; static readonly $numTypeParams = 0;
737
+
738
+ readonly $typeName = DepositSnapshot.$typeName;
739
+
740
+ readonly $fullTypeName: "0x10250db78795fda6ce62b76efa324eb1a7dc50beeed1229fba40c50e4305ef9a::typus_dov_single::DepositSnapshot";
741
+
742
+ readonly $typeArgs: [];
743
+
744
+ readonly snapshots: ToField<Vector<"u64">>; readonly totalDeposit: ToField<"u64">; readonly snapshotTsMs: ToField<"u64">
745
+
746
+ private constructor(typeArgs: [], fields: DepositSnapshotFields, ) { this.$fullTypeName = composeSuiType( DepositSnapshot.$typeName, ...typeArgs ) as "0x10250db78795fda6ce62b76efa324eb1a7dc50beeed1229fba40c50e4305ef9a::typus_dov_single::DepositSnapshot"; this.$typeArgs = typeArgs;
747
+
748
+ this.snapshots = fields.snapshots;; this.totalDeposit = fields.totalDeposit;; this.snapshotTsMs = fields.snapshotTsMs; }
749
+
750
+ static reified( ): DepositSnapshotReified { return { typeName: DepositSnapshot.$typeName, fullTypeName: composeSuiType( DepositSnapshot.$typeName, ...[] ) as "0x10250db78795fda6ce62b76efa324eb1a7dc50beeed1229fba40c50e4305ef9a::typus_dov_single::DepositSnapshot", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => DepositSnapshot.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => DepositSnapshot.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => DepositSnapshot.fromBcs( data, ), bcs: DepositSnapshot.bcs, fromJSONField: (field: any) => DepositSnapshot.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => DepositSnapshot.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => DepositSnapshot.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => DepositSnapshot.fetch( client, id, ), new: ( fields: DepositSnapshotFields, ) => { return new DepositSnapshot( [], fields ) }, kind: "StructClassReified", } }
751
+
752
+ static get r() { return DepositSnapshot.reified() }
753
+
754
+ static phantom( ): PhantomReified<ToTypeStr<DepositSnapshot>> { return phantom(DepositSnapshot.reified( )); } static get p() { return DepositSnapshot.phantom() }
755
+
756
+ static get bcs() { return bcs.struct("DepositSnapshot", {
757
+
758
+ snapshots: bcs.vector(bcs.u64()), total_deposit: bcs.u64(), snapshot_ts_ms: bcs.u64()
759
+
760
+ }) };
761
+
762
+ static fromFields( fields: Record<string, any> ): DepositSnapshot { return DepositSnapshot.reified( ).new( { snapshots: decodeFromFields(reified.vector("u64"), fields.snapshots), totalDeposit: decodeFromFields("u64", fields.total_deposit), snapshotTsMs: decodeFromFields("u64", fields.snapshot_ts_ms) } ) }
763
+
764
+ static fromFieldsWithTypes( item: FieldsWithTypes ): DepositSnapshot { if (!isDepositSnapshot(item.type)) { throw new Error("not a DepositSnapshot type");
765
+
766
+ }
767
+
768
+ return DepositSnapshot.reified( ).new( { snapshots: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.snapshots), totalDeposit: decodeFromFieldsWithTypes("u64", item.fields.total_deposit), snapshotTsMs: decodeFromFieldsWithTypes("u64", item.fields.snapshot_ts_ms) } ) }
769
+
770
+ static fromBcs( data: Uint8Array ): DepositSnapshot { return DepositSnapshot.fromFields( DepositSnapshot.bcs.parse(data) ) }
771
+
772
+ toJSONField() { return {
773
+
774
+ snapshots: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.snapshots),totalDeposit: this.totalDeposit.toString(),snapshotTsMs: this.snapshotTsMs.toString(),
775
+
776
+ } }
777
+
778
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
779
+
780
+ static fromJSONField( field: any ): DepositSnapshot { return DepositSnapshot.reified( ).new( { snapshots: decodeFromJSONField(reified.vector("u64"), field.snapshots), totalDeposit: decodeFromJSONField("u64", field.totalDeposit), snapshotTsMs: decodeFromJSONField("u64", field.snapshotTsMs) } ) }
781
+
782
+ static fromJSON( json: Record<string, any> ): DepositSnapshot { if (json.$typeName !== DepositSnapshot.$typeName) { throw new Error("not a WithTwoGenerics json object") };
783
+
784
+ return DepositSnapshot.fromJSONField( json, ) }
785
+
786
+ static fromSuiParsedData( content: SuiParsedData ): DepositSnapshot { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isDepositSnapshot(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a DepositSnapshot object`); } return DepositSnapshot.fromFieldsWithTypes( content ); }
787
+
788
+ static async fetch( client: SuiClient, id: string ): Promise<DepositSnapshot> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching DepositSnapshot object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isDepositSnapshot(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a DepositSnapshot object`); }
789
+ return DepositSnapshot.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
790
+
791
+ }
792
+
793
+ /* ============================== DropVaultEvent =============================== */
794
+
795
+ export function isDropVaultEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DropVaultEvent"; }
796
+
797
+ export interface DropVaultEventFields { signer: ToField<"address">; index: ToField<"u64">; round: ToField<"u64">; u64Padding: ToField<Vector<"u64">> }
798
+
799
+ export type DropVaultEventReified = Reified< DropVaultEvent, DropVaultEventFields >;
800
+
801
+ export class DropVaultEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DropVaultEvent"; static readonly $numTypeParams = 0;
802
+
803
+ readonly $typeName = DropVaultEvent.$typeName;
804
+
805
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DropVaultEvent";
806
+
807
+ readonly $typeArgs: [];
808
+
809
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly round: ToField<"u64">; readonly u64Padding: ToField<Vector<"u64">>
810
+
811
+ private constructor(typeArgs: [], fields: DropVaultEventFields, ) { this.$fullTypeName = composeSuiType( DropVaultEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DropVaultEvent"; this.$typeArgs = typeArgs;
812
+
813
+ this.signer = fields.signer;; this.index = fields.index;; this.round = fields.round;; this.u64Padding = fields.u64Padding; }
814
+
815
+ static reified( ): DropVaultEventReified { return { typeName: DropVaultEvent.$typeName, fullTypeName: composeSuiType( DropVaultEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::DropVaultEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => DropVaultEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => DropVaultEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => DropVaultEvent.fromBcs( data, ), bcs: DropVaultEvent.bcs, fromJSONField: (field: any) => DropVaultEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => DropVaultEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => DropVaultEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => DropVaultEvent.fetch( client, id, ), new: ( fields: DropVaultEventFields, ) => { return new DropVaultEvent( [], fields ) }, kind: "StructClassReified", } }
816
+
817
+ static get r() { return DropVaultEvent.reified() }
818
+
819
+ static phantom( ): PhantomReified<ToTypeStr<DropVaultEvent>> { return phantom(DropVaultEvent.reified( )); } static get p() { return DropVaultEvent.phantom() }
820
+
821
+ static get bcs() { return bcs.struct("DropVaultEvent", {
822
+
823
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), round: bcs.u64(), u64_padding: bcs.vector(bcs.u64())
824
+
825
+ }) };
826
+
827
+ static fromFields( fields: Record<string, any> ): DropVaultEvent { return DropVaultEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), round: decodeFromFields("u64", fields.round), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
828
+
829
+ static fromFieldsWithTypes( item: FieldsWithTypes ): DropVaultEvent { if (!isDropVaultEvent(item.type)) { throw new Error("not a DropVaultEvent type");
830
+
831
+ }
832
+
833
+ return DropVaultEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), round: decodeFromFieldsWithTypes("u64", item.fields.round), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
834
+
835
+ static fromBcs( data: Uint8Array ): DropVaultEvent { return DropVaultEvent.fromFields( DropVaultEvent.bcs.parse(data) ) }
836
+
837
+ toJSONField() { return {
838
+
839
+ signer: this.signer,index: this.index.toString(),round: this.round.toString(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
840
+
841
+ } }
842
+
843
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
844
+
845
+ static fromJSONField( field: any ): DropVaultEvent { return DropVaultEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), round: decodeFromJSONField("u64", field.round), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
846
+
847
+ static fromJSON( json: Record<string, any> ): DropVaultEvent { if (json.$typeName !== DropVaultEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
848
+
849
+ return DropVaultEvent.fromJSONField( json, ) }
850
+
851
+ static fromSuiParsedData( content: SuiParsedData ): DropVaultEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isDropVaultEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a DropVaultEvent object`); } return DropVaultEvent.fromFieldsWithTypes( content ); }
852
+
853
+ static async fetch( client: SuiClient, id: string ): Promise<DropVaultEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching DropVaultEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isDropVaultEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a DropVaultEvent object`); }
854
+ return DropVaultEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
855
+
856
+ }
857
+
858
+ /* ============================== ExerciseEvent =============================== */
859
+
860
+ export function isExerciseEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::ExerciseEvent"; }
861
+
862
+ export interface ExerciseEventFields { signer: ToField<"address">; index: ToField<"u64">; token: ToField<TypeName>; amount: ToField<"u64">; decimal: ToField<"u64">; incentiveToken: ToField<Option<TypeName>>; incentiveAmount: ToField<"u64">; u64Padding: ToField<Vector<"u64">> }
863
+
864
+ export type ExerciseEventReified = Reified< ExerciseEvent, ExerciseEventFields >;
865
+
866
+ export class ExerciseEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::ExerciseEvent"; static readonly $numTypeParams = 0;
867
+
868
+ readonly $typeName = ExerciseEvent.$typeName;
869
+
870
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::ExerciseEvent";
871
+
872
+ readonly $typeArgs: [];
873
+
874
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly token: ToField<TypeName>; readonly amount: ToField<"u64">; readonly decimal: ToField<"u64">; readonly incentiveToken: ToField<Option<TypeName>>; readonly incentiveAmount: ToField<"u64">; readonly u64Padding: ToField<Vector<"u64">>
875
+
876
+ private constructor(typeArgs: [], fields: ExerciseEventFields, ) { this.$fullTypeName = composeSuiType( ExerciseEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::ExerciseEvent"; this.$typeArgs = typeArgs;
877
+
878
+ this.signer = fields.signer;; this.index = fields.index;; this.token = fields.token;; this.amount = fields.amount;; this.decimal = fields.decimal;; this.incentiveToken = fields.incentiveToken;; this.incentiveAmount = fields.incentiveAmount;; this.u64Padding = fields.u64Padding; }
879
+
880
+ static reified( ): ExerciseEventReified { return { typeName: ExerciseEvent.$typeName, fullTypeName: composeSuiType( ExerciseEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::ExerciseEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => ExerciseEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => ExerciseEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => ExerciseEvent.fromBcs( data, ), bcs: ExerciseEvent.bcs, fromJSONField: (field: any) => ExerciseEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => ExerciseEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => ExerciseEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => ExerciseEvent.fetch( client, id, ), new: ( fields: ExerciseEventFields, ) => { return new ExerciseEvent( [], fields ) }, kind: "StructClassReified", } }
881
+
882
+ static get r() { return ExerciseEvent.reified() }
883
+
884
+ static phantom( ): PhantomReified<ToTypeStr<ExerciseEvent>> { return phantom(ExerciseEvent.reified( )); } static get p() { return ExerciseEvent.phantom() }
885
+
886
+ static get bcs() { return bcs.struct("ExerciseEvent", {
887
+
888
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), token: TypeName.bcs, amount: bcs.u64(), decimal: bcs.u64(), incentive_token: Option.bcs(TypeName.bcs), incentive_amount: bcs.u64(), u64_padding: bcs.vector(bcs.u64())
889
+
890
+ }) };
891
+
892
+ static fromFields( fields: Record<string, any> ): ExerciseEvent { return ExerciseEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), token: decodeFromFields(TypeName.reified(), fields.token), amount: decodeFromFields("u64", fields.amount), decimal: decodeFromFields("u64", fields.decimal), incentiveToken: decodeFromFields(Option.reified(TypeName.reified()), fields.incentive_token), incentiveAmount: decodeFromFields("u64", fields.incentive_amount), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
893
+
894
+ static fromFieldsWithTypes( item: FieldsWithTypes ): ExerciseEvent { if (!isExerciseEvent(item.type)) { throw new Error("not a ExerciseEvent type");
895
+
896
+ }
897
+
898
+ return ExerciseEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), token: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.token), amount: decodeFromFieldsWithTypes("u64", item.fields.amount), decimal: decodeFromFieldsWithTypes("u64", item.fields.decimal), incentiveToken: decodeFromFieldsWithTypes(Option.reified(TypeName.reified()), item.fields.incentive_token), incentiveAmount: decodeFromFieldsWithTypes("u64", item.fields.incentive_amount), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
899
+
900
+ static fromBcs( data: Uint8Array ): ExerciseEvent { return ExerciseEvent.fromFields( ExerciseEvent.bcs.parse(data) ) }
901
+
902
+ toJSONField() { return {
903
+
904
+ signer: this.signer,index: this.index.toString(),token: this.token.toJSONField(),amount: this.amount.toString(),decimal: this.decimal.toString(),incentiveToken: fieldToJSON<Option<TypeName>>(`0x1::option::Option<0x1::type_name::TypeName>`, this.incentiveToken),incentiveAmount: this.incentiveAmount.toString(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
905
+
906
+ } }
907
+
908
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
909
+
910
+ static fromJSONField( field: any ): ExerciseEvent { return ExerciseEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), token: decodeFromJSONField(TypeName.reified(), field.token), amount: decodeFromJSONField("u64", field.amount), decimal: decodeFromJSONField("u64", field.decimal), incentiveToken: decodeFromJSONField(Option.reified(TypeName.reified()), field.incentiveToken), incentiveAmount: decodeFromJSONField("u64", field.incentiveAmount), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
911
+
912
+ static fromJSON( json: Record<string, any> ): ExerciseEvent { if (json.$typeName !== ExerciseEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
913
+
914
+ return ExerciseEvent.fromJSONField( json, ) }
915
+
916
+ static fromSuiParsedData( content: SuiParsedData ): ExerciseEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isExerciseEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a ExerciseEvent object`); } return ExerciseEvent.fromFieldsWithTypes( content ); }
917
+
918
+ static async fetch( client: SuiClient, id: string ): Promise<ExerciseEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching ExerciseEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isExerciseEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a ExerciseEvent object`); }
919
+ return ExerciseEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
920
+
921
+ }
922
+
923
+ /* ============================== HarvestEvent =============================== */
924
+
925
+ export function isHarvestEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::HarvestEvent"; }
926
+
927
+ export interface HarvestEventFields { signer: ToField<"address">; index: ToField<"u64">; token: ToField<TypeName>; amount: ToField<"u64">; feeAmount: ToField<"u64">; decimal: ToField<"u64">; oracleInfo: ToField<OracleInfo>; u64Padding: ToField<Vector<"u64">> }
928
+
929
+ export type HarvestEventReified = Reified< HarvestEvent, HarvestEventFields >;
930
+
931
+ export class HarvestEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::HarvestEvent"; static readonly $numTypeParams = 0;
932
+
933
+ readonly $typeName = HarvestEvent.$typeName;
934
+
935
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::HarvestEvent";
936
+
937
+ readonly $typeArgs: [];
938
+
939
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly token: ToField<TypeName>; readonly amount: ToField<"u64">; readonly feeAmount: ToField<"u64">; readonly decimal: ToField<"u64">; readonly oracleInfo: ToField<OracleInfo>; readonly u64Padding: ToField<Vector<"u64">>
940
+
941
+ private constructor(typeArgs: [], fields: HarvestEventFields, ) { this.$fullTypeName = composeSuiType( HarvestEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::HarvestEvent"; this.$typeArgs = typeArgs;
942
+
943
+ this.signer = fields.signer;; this.index = fields.index;; this.token = fields.token;; this.amount = fields.amount;; this.feeAmount = fields.feeAmount;; this.decimal = fields.decimal;; this.oracleInfo = fields.oracleInfo;; this.u64Padding = fields.u64Padding; }
944
+
945
+ static reified( ): HarvestEventReified { return { typeName: HarvestEvent.$typeName, fullTypeName: composeSuiType( HarvestEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::HarvestEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => HarvestEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => HarvestEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => HarvestEvent.fromBcs( data, ), bcs: HarvestEvent.bcs, fromJSONField: (field: any) => HarvestEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => HarvestEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => HarvestEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => HarvestEvent.fetch( client, id, ), new: ( fields: HarvestEventFields, ) => { return new HarvestEvent( [], fields ) }, kind: "StructClassReified", } }
946
+
947
+ static get r() { return HarvestEvent.reified() }
948
+
949
+ static phantom( ): PhantomReified<ToTypeStr<HarvestEvent>> { return phantom(HarvestEvent.reified( )); } static get p() { return HarvestEvent.phantom() }
950
+
951
+ static get bcs() { return bcs.struct("HarvestEvent", {
952
+
953
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), token: TypeName.bcs, amount: bcs.u64(), fee_amount: bcs.u64(), decimal: bcs.u64(), oracle_info: OracleInfo.bcs, u64_padding: bcs.vector(bcs.u64())
954
+
955
+ }) };
956
+
957
+ static fromFields( fields: Record<string, any> ): HarvestEvent { return HarvestEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), token: decodeFromFields(TypeName.reified(), fields.token), amount: decodeFromFields("u64", fields.amount), feeAmount: decodeFromFields("u64", fields.fee_amount), decimal: decodeFromFields("u64", fields.decimal), oracleInfo: decodeFromFields(OracleInfo.reified(), fields.oracle_info), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
958
+
959
+ static fromFieldsWithTypes( item: FieldsWithTypes ): HarvestEvent { if (!isHarvestEvent(item.type)) { throw new Error("not a HarvestEvent type");
960
+
961
+ }
962
+
963
+ return HarvestEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), token: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.token), amount: decodeFromFieldsWithTypes("u64", item.fields.amount), feeAmount: decodeFromFieldsWithTypes("u64", item.fields.fee_amount), decimal: decodeFromFieldsWithTypes("u64", item.fields.decimal), oracleInfo: decodeFromFieldsWithTypes(OracleInfo.reified(), item.fields.oracle_info), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
964
+
965
+ static fromBcs( data: Uint8Array ): HarvestEvent { return HarvestEvent.fromFields( HarvestEvent.bcs.parse(data) ) }
966
+
967
+ toJSONField() { return {
968
+
969
+ signer: this.signer,index: this.index.toString(),token: this.token.toJSONField(),amount: this.amount.toString(),feeAmount: this.feeAmount.toString(),decimal: this.decimal.toString(),oracleInfo: this.oracleInfo.toJSONField(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
970
+
971
+ } }
972
+
973
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
974
+
975
+ static fromJSONField( field: any ): HarvestEvent { return HarvestEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), token: decodeFromJSONField(TypeName.reified(), field.token), amount: decodeFromJSONField("u64", field.amount), feeAmount: decodeFromJSONField("u64", field.feeAmount), decimal: decodeFromJSONField("u64", field.decimal), oracleInfo: decodeFromJSONField(OracleInfo.reified(), field.oracleInfo), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
976
+
977
+ static fromJSON( json: Record<string, any> ): HarvestEvent { if (json.$typeName !== HarvestEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
978
+
979
+ return HarvestEvent.fromJSONField( json, ) }
980
+
981
+ static fromSuiParsedData( content: SuiParsedData ): HarvestEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isHarvestEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a HarvestEvent object`); } return HarvestEvent.fromFieldsWithTypes( content ); }
982
+
983
+ static async fetch( client: SuiClient, id: string ): Promise<HarvestEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching HarvestEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isHarvestEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a HarvestEvent object`); }
984
+ return HarvestEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
985
+
986
+ }
987
+
988
+ /* ============================== Info =============================== */
989
+
990
+ export function isInfo(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::Info"; }
991
+
992
+ export interface InfoFields { index: ToField<"u64">; optionType: ToField<"u64">; period: ToField<"u8">; activationTsMs: ToField<"u64">; expirationTsMs: ToField<"u64">; depositToken: ToField<TypeName>; bidToken: ToField<TypeName>; settlementBase: ToField<TypeName>; settlementQuote: ToField<TypeName>; settlementBaseName: ToField<String>; settlementQuoteName: ToField<String>; dTokenDecimal: ToField<"u64">; bTokenDecimal: ToField<"u64">; oTokenDecimal: ToField<"u64">; creator: ToField<"address">; createTsMs: ToField<"u64">; round: ToField<"u64">; status: ToField<"u64">; oracleInfo: ToField<OracleInfo>; deliveryInfos: ToField<DeliveryInfos>; settlementInfo: ToField<Option<SettlementInfo>>; u64Padding: ToField<Vector<"u64">>; bcsPadding: ToField<Vector<"u8">> }
993
+
994
+ export type InfoReified = Reified< Info, InfoFields >;
995
+
996
+ export class Info implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::Info"; static readonly $numTypeParams = 0;
997
+
998
+ readonly $typeName = Info.$typeName;
999
+
1000
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::Info";
1001
+
1002
+ readonly $typeArgs: [];
1003
+
1004
+ readonly index: ToField<"u64">; readonly optionType: ToField<"u64">; readonly period: ToField<"u8">; readonly activationTsMs: ToField<"u64">; readonly expirationTsMs: ToField<"u64">; readonly depositToken: ToField<TypeName>; readonly bidToken: ToField<TypeName>; readonly settlementBase: ToField<TypeName>; readonly settlementQuote: ToField<TypeName>; readonly settlementBaseName: ToField<String>; readonly settlementQuoteName: ToField<String>; readonly dTokenDecimal: ToField<"u64">; readonly bTokenDecimal: ToField<"u64">; readonly oTokenDecimal: ToField<"u64">; readonly creator: ToField<"address">; readonly createTsMs: ToField<"u64">; readonly round: ToField<"u64">; readonly status: ToField<"u64">; readonly oracleInfo: ToField<OracleInfo>; readonly deliveryInfos: ToField<DeliveryInfos>; readonly settlementInfo: ToField<Option<SettlementInfo>>; readonly u64Padding: ToField<Vector<"u64">>; readonly bcsPadding: ToField<Vector<"u8">>
1005
+
1006
+ private constructor(typeArgs: [], fields: InfoFields, ) { this.$fullTypeName = composeSuiType( Info.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::Info"; this.$typeArgs = typeArgs;
1007
+
1008
+ this.index = fields.index;; this.optionType = fields.optionType;; this.period = fields.period;; this.activationTsMs = fields.activationTsMs;; this.expirationTsMs = fields.expirationTsMs;; this.depositToken = fields.depositToken;; this.bidToken = fields.bidToken;; this.settlementBase = fields.settlementBase;; this.settlementQuote = fields.settlementQuote;; this.settlementBaseName = fields.settlementBaseName;; this.settlementQuoteName = fields.settlementQuoteName;; this.dTokenDecimal = fields.dTokenDecimal;; this.bTokenDecimal = fields.bTokenDecimal;; this.oTokenDecimal = fields.oTokenDecimal;; this.creator = fields.creator;; this.createTsMs = fields.createTsMs;; this.round = fields.round;; this.status = fields.status;; this.oracleInfo = fields.oracleInfo;; this.deliveryInfos = fields.deliveryInfos;; this.settlementInfo = fields.settlementInfo;; this.u64Padding = fields.u64Padding;; this.bcsPadding = fields.bcsPadding; }
1009
+
1010
+ static reified( ): InfoReified { return { typeName: Info.$typeName, fullTypeName: composeSuiType( Info.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::Info", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => Info.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => Info.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => Info.fromBcs( data, ), bcs: Info.bcs, fromJSONField: (field: any) => Info.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => Info.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => Info.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => Info.fetch( client, id, ), new: ( fields: InfoFields, ) => { return new Info( [], fields ) }, kind: "StructClassReified", } }
1011
+
1012
+ static get r() { return Info.reified() }
1013
+
1014
+ static phantom( ): PhantomReified<ToTypeStr<Info>> { return phantom(Info.reified( )); } static get p() { return Info.phantom() }
1015
+
1016
+ static get bcs() { return bcs.struct("Info", {
1017
+
1018
+ index: bcs.u64(), option_type: bcs.u64(), period: bcs.u8(), activation_ts_ms: bcs.u64(), expiration_ts_ms: bcs.u64(), deposit_token: TypeName.bcs, bid_token: TypeName.bcs, settlement_base: TypeName.bcs, settlement_quote: TypeName.bcs, settlement_base_name: String.bcs, settlement_quote_name: String.bcs, d_token_decimal: bcs.u64(), b_token_decimal: bcs.u64(), o_token_decimal: bcs.u64(), creator: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), create_ts_ms: bcs.u64(), round: bcs.u64(), status: bcs.u64(), oracle_info: OracleInfo.bcs, delivery_infos: DeliveryInfos.bcs, settlement_info: Option.bcs(SettlementInfo.bcs), u64_padding: bcs.vector(bcs.u64()), bcs_padding: bcs.vector(bcs.u8())
1019
+
1020
+ }) };
1021
+
1022
+ static fromFields( fields: Record<string, any> ): Info { return Info.reified( ).new( { index: decodeFromFields("u64", fields.index), optionType: decodeFromFields("u64", fields.option_type), period: decodeFromFields("u8", fields.period), activationTsMs: decodeFromFields("u64", fields.activation_ts_ms), expirationTsMs: decodeFromFields("u64", fields.expiration_ts_ms), depositToken: decodeFromFields(TypeName.reified(), fields.deposit_token), bidToken: decodeFromFields(TypeName.reified(), fields.bid_token), settlementBase: decodeFromFields(TypeName.reified(), fields.settlement_base), settlementQuote: decodeFromFields(TypeName.reified(), fields.settlement_quote), settlementBaseName: decodeFromFields(String.reified(), fields.settlement_base_name), settlementQuoteName: decodeFromFields(String.reified(), fields.settlement_quote_name), dTokenDecimal: decodeFromFields("u64", fields.d_token_decimal), bTokenDecimal: decodeFromFields("u64", fields.b_token_decimal), oTokenDecimal: decodeFromFields("u64", fields.o_token_decimal), creator: decodeFromFields("address", fields.creator), createTsMs: decodeFromFields("u64", fields.create_ts_ms), round: decodeFromFields("u64", fields.round), status: decodeFromFields("u64", fields.status), oracleInfo: decodeFromFields(OracleInfo.reified(), fields.oracle_info), deliveryInfos: decodeFromFields(DeliveryInfos.reified(), fields.delivery_infos), settlementInfo: decodeFromFields(Option.reified(SettlementInfo.reified()), fields.settlement_info), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding), bcsPadding: decodeFromFields(reified.vector("u8"), fields.bcs_padding) } ) }
1023
+
1024
+ static fromFieldsWithTypes( item: FieldsWithTypes ): Info { if (!isInfo(item.type)) { throw new Error("not a Info type");
1025
+
1026
+ }
1027
+
1028
+ return Info.reified( ).new( { index: decodeFromFieldsWithTypes("u64", item.fields.index), optionType: decodeFromFieldsWithTypes("u64", item.fields.option_type), period: decodeFromFieldsWithTypes("u8", item.fields.period), activationTsMs: decodeFromFieldsWithTypes("u64", item.fields.activation_ts_ms), expirationTsMs: decodeFromFieldsWithTypes("u64", item.fields.expiration_ts_ms), depositToken: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.deposit_token), bidToken: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.bid_token), settlementBase: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.settlement_base), settlementQuote: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.settlement_quote), settlementBaseName: decodeFromFieldsWithTypes(String.reified(), item.fields.settlement_base_name), settlementQuoteName: decodeFromFieldsWithTypes(String.reified(), item.fields.settlement_quote_name), dTokenDecimal: decodeFromFieldsWithTypes("u64", item.fields.d_token_decimal), bTokenDecimal: decodeFromFieldsWithTypes("u64", item.fields.b_token_decimal), oTokenDecimal: decodeFromFieldsWithTypes("u64", item.fields.o_token_decimal), creator: decodeFromFieldsWithTypes("address", item.fields.creator), createTsMs: decodeFromFieldsWithTypes("u64", item.fields.create_ts_ms), round: decodeFromFieldsWithTypes("u64", item.fields.round), status: decodeFromFieldsWithTypes("u64", item.fields.status), oracleInfo: decodeFromFieldsWithTypes(OracleInfo.reified(), item.fields.oracle_info), deliveryInfos: decodeFromFieldsWithTypes(DeliveryInfos.reified(), item.fields.delivery_infos), settlementInfo: decodeFromFieldsWithTypes(Option.reified(SettlementInfo.reified()), item.fields.settlement_info), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding), bcsPadding: decodeFromFieldsWithTypes(reified.vector("u8"), item.fields.bcs_padding) } ) }
1029
+
1030
+ static fromBcs( data: Uint8Array ): Info { return Info.fromFields( Info.bcs.parse(data) ) }
1031
+
1032
+ toJSONField() { return {
1033
+
1034
+ index: this.index.toString(),optionType: this.optionType.toString(),period: this.period,activationTsMs: this.activationTsMs.toString(),expirationTsMs: this.expirationTsMs.toString(),depositToken: this.depositToken.toJSONField(),bidToken: this.bidToken.toJSONField(),settlementBase: this.settlementBase.toJSONField(),settlementQuote: this.settlementQuote.toJSONField(),settlementBaseName: this.settlementBaseName,settlementQuoteName: this.settlementQuoteName,dTokenDecimal: this.dTokenDecimal.toString(),bTokenDecimal: this.bTokenDecimal.toString(),oTokenDecimal: this.oTokenDecimal.toString(),creator: this.creator,createTsMs: this.createTsMs.toString(),round: this.round.toString(),status: this.status.toString(),oracleInfo: this.oracleInfo.toJSONField(),deliveryInfos: this.deliveryInfos.toJSONField(),settlementInfo: fieldToJSON<Option<SettlementInfo>>(`0x1::option::Option<0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::SettlementInfo>`, this.settlementInfo),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),bcsPadding: fieldToJSON<Vector<"u8">>(`vector<u8>`, this.bcsPadding),
1035
+
1036
+ } }
1037
+
1038
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
1039
+
1040
+ static fromJSONField( field: any ): Info { return Info.reified( ).new( { index: decodeFromJSONField("u64", field.index), optionType: decodeFromJSONField("u64", field.optionType), period: decodeFromJSONField("u8", field.period), activationTsMs: decodeFromJSONField("u64", field.activationTsMs), expirationTsMs: decodeFromJSONField("u64", field.expirationTsMs), depositToken: decodeFromJSONField(TypeName.reified(), field.depositToken), bidToken: decodeFromJSONField(TypeName.reified(), field.bidToken), settlementBase: decodeFromJSONField(TypeName.reified(), field.settlementBase), settlementQuote: decodeFromJSONField(TypeName.reified(), field.settlementQuote), settlementBaseName: decodeFromJSONField(String.reified(), field.settlementBaseName), settlementQuoteName: decodeFromJSONField(String.reified(), field.settlementQuoteName), dTokenDecimal: decodeFromJSONField("u64", field.dTokenDecimal), bTokenDecimal: decodeFromJSONField("u64", field.bTokenDecimal), oTokenDecimal: decodeFromJSONField("u64", field.oTokenDecimal), creator: decodeFromJSONField("address", field.creator), createTsMs: decodeFromJSONField("u64", field.createTsMs), round: decodeFromJSONField("u64", field.round), status: decodeFromJSONField("u64", field.status), oracleInfo: decodeFromJSONField(OracleInfo.reified(), field.oracleInfo), deliveryInfos: decodeFromJSONField(DeliveryInfos.reified(), field.deliveryInfos), settlementInfo: decodeFromJSONField(Option.reified(SettlementInfo.reified()), field.settlementInfo), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding), bcsPadding: decodeFromJSONField(reified.vector("u8"), field.bcsPadding) } ) }
1041
+
1042
+ static fromJSON( json: Record<string, any> ): Info { if (json.$typeName !== Info.$typeName) { throw new Error("not a WithTwoGenerics json object") };
1043
+
1044
+ return Info.fromJSONField( json, ) }
1045
+
1046
+ static fromSuiParsedData( content: SuiParsedData ): Info { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isInfo(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a Info object`); } return Info.fromFieldsWithTypes( content ); }
1047
+
1048
+ static async fetch( client: SuiClient, id: string ): Promise<Info> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching Info object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isInfo(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a Info object`); }
1049
+ return Info.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
1050
+
1051
+ }
1052
+
1053
+ /* ============================== NewAuctionEvent =============================== */
1054
+
1055
+ export function isNewAuctionEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::NewAuctionEvent"; }
1056
+
1057
+ export interface NewAuctionEventFields { signer: ToField<"address">; index: ToField<"u64">; round: ToField<"u64">; startTsMs: ToField<"u64">; endTsMs: ToField<"u64">; size: ToField<"u64">; vaultConfig: ToField<VaultConfig>; oracleInfo: ToField<OracleInfo>; u64Padding: ToField<Vector<"u64">> }
1058
+
1059
+ export type NewAuctionEventReified = Reified< NewAuctionEvent, NewAuctionEventFields >;
1060
+
1061
+ export class NewAuctionEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::NewAuctionEvent"; static readonly $numTypeParams = 0;
1062
+
1063
+ readonly $typeName = NewAuctionEvent.$typeName;
1064
+
1065
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::NewAuctionEvent";
1066
+
1067
+ readonly $typeArgs: [];
1068
+
1069
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly round: ToField<"u64">; readonly startTsMs: ToField<"u64">; readonly endTsMs: ToField<"u64">; readonly size: ToField<"u64">; readonly vaultConfig: ToField<VaultConfig>; readonly oracleInfo: ToField<OracleInfo>; readonly u64Padding: ToField<Vector<"u64">>
1070
+
1071
+ private constructor(typeArgs: [], fields: NewAuctionEventFields, ) { this.$fullTypeName = composeSuiType( NewAuctionEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::NewAuctionEvent"; this.$typeArgs = typeArgs;
1072
+
1073
+ this.signer = fields.signer;; this.index = fields.index;; this.round = fields.round;; this.startTsMs = fields.startTsMs;; this.endTsMs = fields.endTsMs;; this.size = fields.size;; this.vaultConfig = fields.vaultConfig;; this.oracleInfo = fields.oracleInfo;; this.u64Padding = fields.u64Padding; }
1074
+
1075
+ static reified( ): NewAuctionEventReified { return { typeName: NewAuctionEvent.$typeName, fullTypeName: composeSuiType( NewAuctionEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::NewAuctionEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => NewAuctionEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => NewAuctionEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => NewAuctionEvent.fromBcs( data, ), bcs: NewAuctionEvent.bcs, fromJSONField: (field: any) => NewAuctionEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => NewAuctionEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => NewAuctionEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => NewAuctionEvent.fetch( client, id, ), new: ( fields: NewAuctionEventFields, ) => { return new NewAuctionEvent( [], fields ) }, kind: "StructClassReified", } }
1076
+
1077
+ static get r() { return NewAuctionEvent.reified() }
1078
+
1079
+ static phantom( ): PhantomReified<ToTypeStr<NewAuctionEvent>> { return phantom(NewAuctionEvent.reified( )); } static get p() { return NewAuctionEvent.phantom() }
1080
+
1081
+ static get bcs() { return bcs.struct("NewAuctionEvent", {
1082
+
1083
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), round: bcs.u64(), start_ts_ms: bcs.u64(), end_ts_ms: bcs.u64(), size: bcs.u64(), vault_config: VaultConfig.bcs, oracle_info: OracleInfo.bcs, u64_padding: bcs.vector(bcs.u64())
1084
+
1085
+ }) };
1086
+
1087
+ static fromFields( fields: Record<string, any> ): NewAuctionEvent { return NewAuctionEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), round: decodeFromFields("u64", fields.round), startTsMs: decodeFromFields("u64", fields.start_ts_ms), endTsMs: decodeFromFields("u64", fields.end_ts_ms), size: decodeFromFields("u64", fields.size), vaultConfig: decodeFromFields(VaultConfig.reified(), fields.vault_config), oracleInfo: decodeFromFields(OracleInfo.reified(), fields.oracle_info), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
1088
+
1089
+ static fromFieldsWithTypes( item: FieldsWithTypes ): NewAuctionEvent { if (!isNewAuctionEvent(item.type)) { throw new Error("not a NewAuctionEvent type");
1090
+
1091
+ }
1092
+
1093
+ return NewAuctionEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), round: decodeFromFieldsWithTypes("u64", item.fields.round), startTsMs: decodeFromFieldsWithTypes("u64", item.fields.start_ts_ms), endTsMs: decodeFromFieldsWithTypes("u64", item.fields.end_ts_ms), size: decodeFromFieldsWithTypes("u64", item.fields.size), vaultConfig: decodeFromFieldsWithTypes(VaultConfig.reified(), item.fields.vault_config), oracleInfo: decodeFromFieldsWithTypes(OracleInfo.reified(), item.fields.oracle_info), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
1094
+
1095
+ static fromBcs( data: Uint8Array ): NewAuctionEvent { return NewAuctionEvent.fromFields( NewAuctionEvent.bcs.parse(data) ) }
1096
+
1097
+ toJSONField() { return {
1098
+
1099
+ signer: this.signer,index: this.index.toString(),round: this.round.toString(),startTsMs: this.startTsMs.toString(),endTsMs: this.endTsMs.toString(),size: this.size.toString(),vaultConfig: this.vaultConfig.toJSONField(),oracleInfo: this.oracleInfo.toJSONField(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
1100
+
1101
+ } }
1102
+
1103
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
1104
+
1105
+ static fromJSONField( field: any ): NewAuctionEvent { return NewAuctionEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), round: decodeFromJSONField("u64", field.round), startTsMs: decodeFromJSONField("u64", field.startTsMs), endTsMs: decodeFromJSONField("u64", field.endTsMs), size: decodeFromJSONField("u64", field.size), vaultConfig: decodeFromJSONField(VaultConfig.reified(), field.vaultConfig), oracleInfo: decodeFromJSONField(OracleInfo.reified(), field.oracleInfo), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
1106
+
1107
+ static fromJSON( json: Record<string, any> ): NewAuctionEvent { if (json.$typeName !== NewAuctionEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
1108
+
1109
+ return NewAuctionEvent.fromJSONField( json, ) }
1110
+
1111
+ static fromSuiParsedData( content: SuiParsedData ): NewAuctionEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isNewAuctionEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a NewAuctionEvent object`); } return NewAuctionEvent.fromFieldsWithTypes( content ); }
1112
+
1113
+ static async fetch( client: SuiClient, id: string ): Promise<NewAuctionEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching NewAuctionEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isNewAuctionEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a NewAuctionEvent object`); }
1114
+ return NewAuctionEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
1115
+
1116
+ }
1117
+
1118
+ /* ============================== NewBidEvent =============================== */
1119
+
1120
+ export function isNewBidEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::NewBidEvent"; }
1121
+
1122
+ export interface NewBidEventFields { signer: ToField<"address">; index: ToField<"u64">; bidIndex: ToField<"u64">; price: ToField<"u64">; size: ToField<"u64">; bToken: ToField<TypeName>; oToken: ToField<TypeName>; bidderBalance: ToField<"u64">; incentiveBalance: ToField<"u64">; decimal: ToField<"u64">; tsMs: ToField<"u64">; oracleInfo: ToField<OracleInfo>; u64Padding: ToField<Vector<"u64">> }
1123
+
1124
+ export type NewBidEventReified = Reified< NewBidEvent, NewBidEventFields >;
1125
+
1126
+ export class NewBidEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::NewBidEvent"; static readonly $numTypeParams = 0;
1127
+
1128
+ readonly $typeName = NewBidEvent.$typeName;
1129
+
1130
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::NewBidEvent";
1131
+
1132
+ readonly $typeArgs: [];
1133
+
1134
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly bidIndex: ToField<"u64">; readonly price: ToField<"u64">; readonly size: ToField<"u64">; readonly bToken: ToField<TypeName>; readonly oToken: ToField<TypeName>; readonly bidderBalance: ToField<"u64">; readonly incentiveBalance: ToField<"u64">; readonly decimal: ToField<"u64">; readonly tsMs: ToField<"u64">; readonly oracleInfo: ToField<OracleInfo>; readonly u64Padding: ToField<Vector<"u64">>
1135
+
1136
+ private constructor(typeArgs: [], fields: NewBidEventFields, ) { this.$fullTypeName = composeSuiType( NewBidEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::NewBidEvent"; this.$typeArgs = typeArgs;
1137
+
1138
+ this.signer = fields.signer;; this.index = fields.index;; this.bidIndex = fields.bidIndex;; this.price = fields.price;; this.size = fields.size;; this.bToken = fields.bToken;; this.oToken = fields.oToken;; this.bidderBalance = fields.bidderBalance;; this.incentiveBalance = fields.incentiveBalance;; this.decimal = fields.decimal;; this.tsMs = fields.tsMs;; this.oracleInfo = fields.oracleInfo;; this.u64Padding = fields.u64Padding; }
1139
+
1140
+ static reified( ): NewBidEventReified { return { typeName: NewBidEvent.$typeName, fullTypeName: composeSuiType( NewBidEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::NewBidEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => NewBidEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => NewBidEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => NewBidEvent.fromBcs( data, ), bcs: NewBidEvent.bcs, fromJSONField: (field: any) => NewBidEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => NewBidEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => NewBidEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => NewBidEvent.fetch( client, id, ), new: ( fields: NewBidEventFields, ) => { return new NewBidEvent( [], fields ) }, kind: "StructClassReified", } }
1141
+
1142
+ static get r() { return NewBidEvent.reified() }
1143
+
1144
+ static phantom( ): PhantomReified<ToTypeStr<NewBidEvent>> { return phantom(NewBidEvent.reified( )); } static get p() { return NewBidEvent.phantom() }
1145
+
1146
+ static get bcs() { return bcs.struct("NewBidEvent", {
1147
+
1148
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), bid_index: bcs.u64(), price: bcs.u64(), size: bcs.u64(), b_token: TypeName.bcs, o_token: TypeName.bcs, bidder_balance: bcs.u64(), incentive_balance: bcs.u64(), decimal: bcs.u64(), ts_ms: bcs.u64(), oracle_info: OracleInfo.bcs, u64_padding: bcs.vector(bcs.u64())
1149
+
1150
+ }) };
1151
+
1152
+ static fromFields( fields: Record<string, any> ): NewBidEvent { return NewBidEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), bidIndex: decodeFromFields("u64", fields.bid_index), price: decodeFromFields("u64", fields.price), size: decodeFromFields("u64", fields.size), bToken: decodeFromFields(TypeName.reified(), fields.b_token), oToken: decodeFromFields(TypeName.reified(), fields.o_token), bidderBalance: decodeFromFields("u64", fields.bidder_balance), incentiveBalance: decodeFromFields("u64", fields.incentive_balance), decimal: decodeFromFields("u64", fields.decimal), tsMs: decodeFromFields("u64", fields.ts_ms), oracleInfo: decodeFromFields(OracleInfo.reified(), fields.oracle_info), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
1153
+
1154
+ static fromFieldsWithTypes( item: FieldsWithTypes ): NewBidEvent { if (!isNewBidEvent(item.type)) { throw new Error("not a NewBidEvent type");
1155
+
1156
+ }
1157
+
1158
+ return NewBidEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), bidIndex: decodeFromFieldsWithTypes("u64", item.fields.bid_index), price: decodeFromFieldsWithTypes("u64", item.fields.price), size: decodeFromFieldsWithTypes("u64", item.fields.size), bToken: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.b_token), oToken: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.o_token), bidderBalance: decodeFromFieldsWithTypes("u64", item.fields.bidder_balance), incentiveBalance: decodeFromFieldsWithTypes("u64", item.fields.incentive_balance), decimal: decodeFromFieldsWithTypes("u64", item.fields.decimal), tsMs: decodeFromFieldsWithTypes("u64", item.fields.ts_ms), oracleInfo: decodeFromFieldsWithTypes(OracleInfo.reified(), item.fields.oracle_info), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
1159
+
1160
+ static fromBcs( data: Uint8Array ): NewBidEvent { return NewBidEvent.fromFields( NewBidEvent.bcs.parse(data) ) }
1161
+
1162
+ toJSONField() { return {
1163
+
1164
+ signer: this.signer,index: this.index.toString(),bidIndex: this.bidIndex.toString(),price: this.price.toString(),size: this.size.toString(),bToken: this.bToken.toJSONField(),oToken: this.oToken.toJSONField(),bidderBalance: this.bidderBalance.toString(),incentiveBalance: this.incentiveBalance.toString(),decimal: this.decimal.toString(),tsMs: this.tsMs.toString(),oracleInfo: this.oracleInfo.toJSONField(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
1165
+
1166
+ } }
1167
+
1168
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
1169
+
1170
+ static fromJSONField( field: any ): NewBidEvent { return NewBidEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), bidIndex: decodeFromJSONField("u64", field.bidIndex), price: decodeFromJSONField("u64", field.price), size: decodeFromJSONField("u64", field.size), bToken: decodeFromJSONField(TypeName.reified(), field.bToken), oToken: decodeFromJSONField(TypeName.reified(), field.oToken), bidderBalance: decodeFromJSONField("u64", field.bidderBalance), incentiveBalance: decodeFromJSONField("u64", field.incentiveBalance), decimal: decodeFromJSONField("u64", field.decimal), tsMs: decodeFromJSONField("u64", field.tsMs), oracleInfo: decodeFromJSONField(OracleInfo.reified(), field.oracleInfo), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
1171
+
1172
+ static fromJSON( json: Record<string, any> ): NewBidEvent { if (json.$typeName !== NewBidEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
1173
+
1174
+ return NewBidEvent.fromJSONField( json, ) }
1175
+
1176
+ static fromSuiParsedData( content: SuiParsedData ): NewBidEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isNewBidEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a NewBidEvent object`); } return NewBidEvent.fromFieldsWithTypes( content ); }
1177
+
1178
+ static async fetch( client: SuiClient, id: string ): Promise<NewBidEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching NewBidEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isNewBidEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a NewBidEvent object`); }
1179
+ return NewBidEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
1180
+
1181
+ }
1182
+
1183
+ /* ============================== OracleInfo =============================== */
1184
+
1185
+ export function isOracleInfo(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::OracleInfo"; }
1186
+
1187
+ export interface OracleInfoFields { price: ToField<"u64">; decimal: ToField<"u64"> }
1188
+
1189
+ export type OracleInfoReified = Reified< OracleInfo, OracleInfoFields >;
1190
+
1191
+ export class OracleInfo implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::OracleInfo"; static readonly $numTypeParams = 0;
1192
+
1193
+ readonly $typeName = OracleInfo.$typeName;
1194
+
1195
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::OracleInfo";
1196
+
1197
+ readonly $typeArgs: [];
1198
+
1199
+ readonly price: ToField<"u64">; readonly decimal: ToField<"u64">
1200
+
1201
+ private constructor(typeArgs: [], fields: OracleInfoFields, ) { this.$fullTypeName = composeSuiType( OracleInfo.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::OracleInfo"; this.$typeArgs = typeArgs;
1202
+
1203
+ this.price = fields.price;; this.decimal = fields.decimal; }
1204
+
1205
+ static reified( ): OracleInfoReified { return { typeName: OracleInfo.$typeName, fullTypeName: composeSuiType( OracleInfo.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::OracleInfo", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => OracleInfo.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => OracleInfo.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => OracleInfo.fromBcs( data, ), bcs: OracleInfo.bcs, fromJSONField: (field: any) => OracleInfo.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => OracleInfo.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => OracleInfo.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => OracleInfo.fetch( client, id, ), new: ( fields: OracleInfoFields, ) => { return new OracleInfo( [], fields ) }, kind: "StructClassReified", } }
1206
+
1207
+ static get r() { return OracleInfo.reified() }
1208
+
1209
+ static phantom( ): PhantomReified<ToTypeStr<OracleInfo>> { return phantom(OracleInfo.reified( )); } static get p() { return OracleInfo.phantom() }
1210
+
1211
+ static get bcs() { return bcs.struct("OracleInfo", {
1212
+
1213
+ price: bcs.u64(), decimal: bcs.u64()
1214
+
1215
+ }) };
1216
+
1217
+ static fromFields( fields: Record<string, any> ): OracleInfo { return OracleInfo.reified( ).new( { price: decodeFromFields("u64", fields.price), decimal: decodeFromFields("u64", fields.decimal) } ) }
1218
+
1219
+ static fromFieldsWithTypes( item: FieldsWithTypes ): OracleInfo { if (!isOracleInfo(item.type)) { throw new Error("not a OracleInfo type");
1220
+
1221
+ }
1222
+
1223
+ return OracleInfo.reified( ).new( { price: decodeFromFieldsWithTypes("u64", item.fields.price), decimal: decodeFromFieldsWithTypes("u64", item.fields.decimal) } ) }
1224
+
1225
+ static fromBcs( data: Uint8Array ): OracleInfo { return OracleInfo.fromFields( OracleInfo.bcs.parse(data) ) }
1226
+
1227
+ toJSONField() { return {
1228
+
1229
+ price: this.price.toString(),decimal: this.decimal.toString(),
1230
+
1231
+ } }
1232
+
1233
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
1234
+
1235
+ static fromJSONField( field: any ): OracleInfo { return OracleInfo.reified( ).new( { price: decodeFromJSONField("u64", field.price), decimal: decodeFromJSONField("u64", field.decimal) } ) }
1236
+
1237
+ static fromJSON( json: Record<string, any> ): OracleInfo { if (json.$typeName !== OracleInfo.$typeName) { throw new Error("not a WithTwoGenerics json object") };
1238
+
1239
+ return OracleInfo.fromJSONField( json, ) }
1240
+
1241
+ static fromSuiParsedData( content: SuiParsedData ): OracleInfo { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isOracleInfo(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a OracleInfo object`); } return OracleInfo.fromFieldsWithTypes( content ); }
1242
+
1243
+ static async fetch( client: SuiClient, id: string ): Promise<OracleInfo> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching OracleInfo object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isOracleInfo(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a OracleInfo object`); }
1244
+ return OracleInfo.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
1245
+
1246
+ }
1247
+
1248
+ /* ============================== OtcEvent =============================== */
1249
+
1250
+ export function isOtcEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::OtcEvent"; }
1251
+
1252
+ export interface OtcEventFields { signer: ToField<"address">; index: ToField<"u64">; round: ToField<"u64">; deliveryPrice: ToField<"u64">; deliverySize: ToField<"u64">; oTokenDecimal: ToField<"u64">; bidderBidValue: ToField<"u64">; bidderFee: ToField<"u64">; incentiveBidValue: ToField<"u64">; incentiveFee: ToField<"u64">; bTokenDecimal: ToField<"u64">; depositorIncentiveValue: ToField<"u64">; u64Padding: ToField<Vector<"u64">> }
1253
+
1254
+ export type OtcEventReified = Reified< OtcEvent, OtcEventFields >;
1255
+
1256
+ export class OtcEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::OtcEvent"; static readonly $numTypeParams = 0;
1257
+
1258
+ readonly $typeName = OtcEvent.$typeName;
1259
+
1260
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::OtcEvent";
1261
+
1262
+ readonly $typeArgs: [];
1263
+
1264
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly round: ToField<"u64">; readonly deliveryPrice: ToField<"u64">; readonly deliverySize: ToField<"u64">; readonly oTokenDecimal: ToField<"u64">; readonly bidderBidValue: ToField<"u64">; readonly bidderFee: ToField<"u64">; readonly incentiveBidValue: ToField<"u64">; readonly incentiveFee: ToField<"u64">; readonly bTokenDecimal: ToField<"u64">; readonly depositorIncentiveValue: ToField<"u64">; readonly u64Padding: ToField<Vector<"u64">>
1265
+
1266
+ private constructor(typeArgs: [], fields: OtcEventFields, ) { this.$fullTypeName = composeSuiType( OtcEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::OtcEvent"; this.$typeArgs = typeArgs;
1267
+
1268
+ this.signer = fields.signer;; this.index = fields.index;; this.round = fields.round;; this.deliveryPrice = fields.deliveryPrice;; this.deliverySize = fields.deliverySize;; this.oTokenDecimal = fields.oTokenDecimal;; this.bidderBidValue = fields.bidderBidValue;; this.bidderFee = fields.bidderFee;; this.incentiveBidValue = fields.incentiveBidValue;; this.incentiveFee = fields.incentiveFee;; this.bTokenDecimal = fields.bTokenDecimal;; this.depositorIncentiveValue = fields.depositorIncentiveValue;; this.u64Padding = fields.u64Padding; }
1269
+
1270
+ static reified( ): OtcEventReified { return { typeName: OtcEvent.$typeName, fullTypeName: composeSuiType( OtcEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::OtcEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => OtcEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => OtcEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => OtcEvent.fromBcs( data, ), bcs: OtcEvent.bcs, fromJSONField: (field: any) => OtcEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => OtcEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => OtcEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => OtcEvent.fetch( client, id, ), new: ( fields: OtcEventFields, ) => { return new OtcEvent( [], fields ) }, kind: "StructClassReified", } }
1271
+
1272
+ static get r() { return OtcEvent.reified() }
1273
+
1274
+ static phantom( ): PhantomReified<ToTypeStr<OtcEvent>> { return phantom(OtcEvent.reified( )); } static get p() { return OtcEvent.phantom() }
1275
+
1276
+ static get bcs() { return bcs.struct("OtcEvent", {
1277
+
1278
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), round: bcs.u64(), delivery_price: bcs.u64(), delivery_size: bcs.u64(), o_token_decimal: bcs.u64(), bidder_bid_value: bcs.u64(), bidder_fee: bcs.u64(), incentive_bid_value: bcs.u64(), incentive_fee: bcs.u64(), b_token_decimal: bcs.u64(), depositor_incentive_value: bcs.u64(), u64_padding: bcs.vector(bcs.u64())
1279
+
1280
+ }) };
1281
+
1282
+ static fromFields( fields: Record<string, any> ): OtcEvent { return OtcEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), round: decodeFromFields("u64", fields.round), deliveryPrice: decodeFromFields("u64", fields.delivery_price), deliverySize: decodeFromFields("u64", fields.delivery_size), oTokenDecimal: decodeFromFields("u64", fields.o_token_decimal), bidderBidValue: decodeFromFields("u64", fields.bidder_bid_value), bidderFee: decodeFromFields("u64", fields.bidder_fee), incentiveBidValue: decodeFromFields("u64", fields.incentive_bid_value), incentiveFee: decodeFromFields("u64", fields.incentive_fee), bTokenDecimal: decodeFromFields("u64", fields.b_token_decimal), depositorIncentiveValue: decodeFromFields("u64", fields.depositor_incentive_value), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
1283
+
1284
+ static fromFieldsWithTypes( item: FieldsWithTypes ): OtcEvent { if (!isOtcEvent(item.type)) { throw new Error("not a OtcEvent type");
1285
+
1286
+ }
1287
+
1288
+ return OtcEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), round: decodeFromFieldsWithTypes("u64", item.fields.round), deliveryPrice: decodeFromFieldsWithTypes("u64", item.fields.delivery_price), deliverySize: decodeFromFieldsWithTypes("u64", item.fields.delivery_size), oTokenDecimal: decodeFromFieldsWithTypes("u64", item.fields.o_token_decimal), bidderBidValue: decodeFromFieldsWithTypes("u64", item.fields.bidder_bid_value), bidderFee: decodeFromFieldsWithTypes("u64", item.fields.bidder_fee), incentiveBidValue: decodeFromFieldsWithTypes("u64", item.fields.incentive_bid_value), incentiveFee: decodeFromFieldsWithTypes("u64", item.fields.incentive_fee), bTokenDecimal: decodeFromFieldsWithTypes("u64", item.fields.b_token_decimal), depositorIncentiveValue: decodeFromFieldsWithTypes("u64", item.fields.depositor_incentive_value), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
1289
+
1290
+ static fromBcs( data: Uint8Array ): OtcEvent { return OtcEvent.fromFields( OtcEvent.bcs.parse(data) ) }
1291
+
1292
+ toJSONField() { return {
1293
+
1294
+ signer: this.signer,index: this.index.toString(),round: this.round.toString(),deliveryPrice: this.deliveryPrice.toString(),deliverySize: this.deliverySize.toString(),oTokenDecimal: this.oTokenDecimal.toString(),bidderBidValue: this.bidderBidValue.toString(),bidderFee: this.bidderFee.toString(),incentiveBidValue: this.incentiveBidValue.toString(),incentiveFee: this.incentiveFee.toString(),bTokenDecimal: this.bTokenDecimal.toString(),depositorIncentiveValue: this.depositorIncentiveValue.toString(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
1295
+
1296
+ } }
1297
+
1298
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
1299
+
1300
+ static fromJSONField( field: any ): OtcEvent { return OtcEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), round: decodeFromJSONField("u64", field.round), deliveryPrice: decodeFromJSONField("u64", field.deliveryPrice), deliverySize: decodeFromJSONField("u64", field.deliverySize), oTokenDecimal: decodeFromJSONField("u64", field.oTokenDecimal), bidderBidValue: decodeFromJSONField("u64", field.bidderBidValue), bidderFee: decodeFromJSONField("u64", field.bidderFee), incentiveBidValue: decodeFromJSONField("u64", field.incentiveBidValue), incentiveFee: decodeFromJSONField("u64", field.incentiveFee), bTokenDecimal: decodeFromJSONField("u64", field.bTokenDecimal), depositorIncentiveValue: decodeFromJSONField("u64", field.depositorIncentiveValue), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
1301
+
1302
+ static fromJSON( json: Record<string, any> ): OtcEvent { if (json.$typeName !== OtcEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
1303
+
1304
+ return OtcEvent.fromJSONField( json, ) }
1305
+
1306
+ static fromSuiParsedData( content: SuiParsedData ): OtcEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isOtcEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a OtcEvent object`); } return OtcEvent.fromFieldsWithTypes( content ); }
1307
+
1308
+ static async fetch( client: SuiClient, id: string ): Promise<OtcEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching OtcEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isOtcEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a OtcEvent object`); }
1309
+ return OtcEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
1310
+
1311
+ }
1312
+
1313
+ /* ============================== PayoffConfig =============================== */
1314
+
1315
+ export function isPayoffConfig(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::PayoffConfig"; }
1316
+
1317
+ export interface PayoffConfigFields { strikeBp: ToField<"u64">; weight: ToField<"u64">; isBuyer: ToField<"bool">; strike: ToField<Option<"u64">>; u64Padding: ToField<Vector<"u64">> }
1318
+
1319
+ export type PayoffConfigReified = Reified< PayoffConfig, PayoffConfigFields >;
1320
+
1321
+ export class PayoffConfig implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::PayoffConfig"; static readonly $numTypeParams = 0;
1322
+
1323
+ readonly $typeName = PayoffConfig.$typeName;
1324
+
1325
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::PayoffConfig";
1326
+
1327
+ readonly $typeArgs: [];
1328
+
1329
+ readonly strikeBp: ToField<"u64">; readonly weight: ToField<"u64">; readonly isBuyer: ToField<"bool">; readonly strike: ToField<Option<"u64">>; readonly u64Padding: ToField<Vector<"u64">>
1330
+
1331
+ private constructor(typeArgs: [], fields: PayoffConfigFields, ) { this.$fullTypeName = composeSuiType( PayoffConfig.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::PayoffConfig"; this.$typeArgs = typeArgs;
1332
+
1333
+ this.strikeBp = fields.strikeBp;; this.weight = fields.weight;; this.isBuyer = fields.isBuyer;; this.strike = fields.strike;; this.u64Padding = fields.u64Padding; }
1334
+
1335
+ static reified( ): PayoffConfigReified { return { typeName: PayoffConfig.$typeName, fullTypeName: composeSuiType( PayoffConfig.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::PayoffConfig", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => PayoffConfig.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => PayoffConfig.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => PayoffConfig.fromBcs( data, ), bcs: PayoffConfig.bcs, fromJSONField: (field: any) => PayoffConfig.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => PayoffConfig.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => PayoffConfig.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => PayoffConfig.fetch( client, id, ), new: ( fields: PayoffConfigFields, ) => { return new PayoffConfig( [], fields ) }, kind: "StructClassReified", } }
1336
+
1337
+ static get r() { return PayoffConfig.reified() }
1338
+
1339
+ static phantom( ): PhantomReified<ToTypeStr<PayoffConfig>> { return phantom(PayoffConfig.reified( )); } static get p() { return PayoffConfig.phantom() }
1340
+
1341
+ static get bcs() { return bcs.struct("PayoffConfig", {
1342
+
1343
+ strike_bp: bcs.u64(), weight: bcs.u64(), is_buyer: bcs.bool(), strike: Option.bcs(bcs.u64()), u64_padding: bcs.vector(bcs.u64())
1344
+
1345
+ }) };
1346
+
1347
+ static fromFields( fields: Record<string, any> ): PayoffConfig { return PayoffConfig.reified( ).new( { strikeBp: decodeFromFields("u64", fields.strike_bp), weight: decodeFromFields("u64", fields.weight), isBuyer: decodeFromFields("bool", fields.is_buyer), strike: decodeFromFields(Option.reified("u64"), fields.strike), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
1348
+
1349
+ static fromFieldsWithTypes( item: FieldsWithTypes ): PayoffConfig { if (!isPayoffConfig(item.type)) { throw new Error("not a PayoffConfig type");
1350
+
1351
+ }
1352
+
1353
+ return PayoffConfig.reified( ).new( { strikeBp: decodeFromFieldsWithTypes("u64", item.fields.strike_bp), weight: decodeFromFieldsWithTypes("u64", item.fields.weight), isBuyer: decodeFromFieldsWithTypes("bool", item.fields.is_buyer), strike: decodeFromFieldsWithTypes(Option.reified("u64"), item.fields.strike), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
1354
+
1355
+ static fromBcs( data: Uint8Array ): PayoffConfig { return PayoffConfig.fromFields( PayoffConfig.bcs.parse(data) ) }
1356
+
1357
+ toJSONField() { return {
1358
+
1359
+ strikeBp: this.strikeBp.toString(),weight: this.weight.toString(),isBuyer: this.isBuyer,strike: fieldToJSON<Option<"u64">>(`0x1::option::Option<u64>`, this.strike),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
1360
+
1361
+ } }
1362
+
1363
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
1364
+
1365
+ static fromJSONField( field: any ): PayoffConfig { return PayoffConfig.reified( ).new( { strikeBp: decodeFromJSONField("u64", field.strikeBp), weight: decodeFromJSONField("u64", field.weight), isBuyer: decodeFromJSONField("bool", field.isBuyer), strike: decodeFromJSONField(Option.reified("u64"), field.strike), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
1366
+
1367
+ static fromJSON( json: Record<string, any> ): PayoffConfig { if (json.$typeName !== PayoffConfig.$typeName) { throw new Error("not a WithTwoGenerics json object") };
1368
+
1369
+ return PayoffConfig.fromJSONField( json, ) }
1370
+
1371
+ static fromSuiParsedData( content: SuiParsedData ): PayoffConfig { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isPayoffConfig(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a PayoffConfig object`); } return PayoffConfig.fromFieldsWithTypes( content ); }
1372
+
1373
+ static async fetch( client: SuiClient, id: string ): Promise<PayoffConfig> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching PayoffConfig object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isPayoffConfig(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a PayoffConfig object`); }
1374
+ return PayoffConfig.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
1375
+
1376
+ }
1377
+
1378
+ /* ============================== PortfolioVault =============================== */
1379
+
1380
+ export function isPortfolioVault(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::PortfolioVault"; }
1381
+
1382
+ export interface PortfolioVaultFields { id: ToField<UID>; info: ToField<Info>; config: ToField<Config>; authority: ToField<Authority> }
1383
+
1384
+ export type PortfolioVaultReified = Reified< PortfolioVault, PortfolioVaultFields >;
1385
+
1386
+ export class PortfolioVault implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::PortfolioVault"; static readonly $numTypeParams = 0;
1387
+
1388
+ readonly $typeName = PortfolioVault.$typeName;
1389
+
1390
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::PortfolioVault";
1391
+
1392
+ readonly $typeArgs: [];
1393
+
1394
+ readonly id: ToField<UID>; readonly info: ToField<Info>; readonly config: ToField<Config>; readonly authority: ToField<Authority>
1395
+
1396
+ private constructor(typeArgs: [], fields: PortfolioVaultFields, ) { this.$fullTypeName = composeSuiType( PortfolioVault.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::PortfolioVault"; this.$typeArgs = typeArgs;
1397
+
1398
+ this.id = fields.id;; this.info = fields.info;; this.config = fields.config;; this.authority = fields.authority; }
1399
+
1400
+ static reified( ): PortfolioVaultReified { return { typeName: PortfolioVault.$typeName, fullTypeName: composeSuiType( PortfolioVault.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::PortfolioVault", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => PortfolioVault.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => PortfolioVault.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => PortfolioVault.fromBcs( data, ), bcs: PortfolioVault.bcs, fromJSONField: (field: any) => PortfolioVault.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => PortfolioVault.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => PortfolioVault.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => PortfolioVault.fetch( client, id, ), new: ( fields: PortfolioVaultFields, ) => { return new PortfolioVault( [], fields ) }, kind: "StructClassReified", } }
1401
+
1402
+ static get r() { return PortfolioVault.reified() }
1403
+
1404
+ static phantom( ): PhantomReified<ToTypeStr<PortfolioVault>> { return phantom(PortfolioVault.reified( )); } static get p() { return PortfolioVault.phantom() }
1405
+
1406
+ static get bcs() { return bcs.struct("PortfolioVault", {
1407
+
1408
+ id: UID.bcs, info: Info.bcs, config: Config.bcs, authority: Authority.bcs
1409
+
1410
+ }) };
1411
+
1412
+ static fromFields( fields: Record<string, any> ): PortfolioVault { return PortfolioVault.reified( ).new( { id: decodeFromFields(UID.reified(), fields.id), info: decodeFromFields(Info.reified(), fields.info), config: decodeFromFields(Config.reified(), fields.config), authority: decodeFromFields(Authority.reified(), fields.authority) } ) }
1413
+
1414
+ static fromFieldsWithTypes( item: FieldsWithTypes ): PortfolioVault { if (!isPortfolioVault(item.type)) { throw new Error("not a PortfolioVault type");
1415
+
1416
+ }
1417
+
1418
+ return PortfolioVault.reified( ).new( { id: decodeFromFieldsWithTypes(UID.reified(), item.fields.id), info: decodeFromFieldsWithTypes(Info.reified(), item.fields.info), config: decodeFromFieldsWithTypes(Config.reified(), item.fields.config), authority: decodeFromFieldsWithTypes(Authority.reified(), item.fields.authority) } ) }
1419
+
1420
+ static fromBcs( data: Uint8Array ): PortfolioVault { return PortfolioVault.fromFields( PortfolioVault.bcs.parse(data) ) }
1421
+
1422
+ toJSONField() { return {
1423
+
1424
+ id: this.id,info: this.info.toJSONField(),config: this.config.toJSONField(),authority: this.authority.toJSONField(),
1425
+
1426
+ } }
1427
+
1428
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
1429
+
1430
+ static fromJSONField( field: any ): PortfolioVault { return PortfolioVault.reified( ).new( { id: decodeFromJSONField(UID.reified(), field.id), info: decodeFromJSONField(Info.reified(), field.info), config: decodeFromJSONField(Config.reified(), field.config), authority: decodeFromJSONField(Authority.reified(), field.authority) } ) }
1431
+
1432
+ static fromJSON( json: Record<string, any> ): PortfolioVault { if (json.$typeName !== PortfolioVault.$typeName) { throw new Error("not a WithTwoGenerics json object") };
1433
+
1434
+ return PortfolioVault.fromJSONField( json, ) }
1435
+
1436
+ static fromSuiParsedData( content: SuiParsedData ): PortfolioVault { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isPortfolioVault(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a PortfolioVault object`); } return PortfolioVault.fromFieldsWithTypes( content ); }
1437
+
1438
+ static async fetch( client: SuiClient, id: string ): Promise<PortfolioVault> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching PortfolioVault object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isPortfolioVault(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a PortfolioVault object`); }
1439
+ return PortfolioVault.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
1440
+
1441
+ }
1442
+
1443
+ /* ============================== RaiseFundEvent =============================== */
1444
+
1445
+ export function isRaiseFundEvent(type: string): boolean { type = compressSuiType(type); return type === "0x10250db78795fda6ce62b76efa324eb1a7dc50beeed1229fba40c50e4305ef9a::typus_dov_single::RaiseFundEvent"; }
1446
+
1447
+ export interface RaiseFundEventFields { signer: ToField<"address">; token: ToField<TypeName>; log: ToField<Vector<"u64">> }
1448
+
1449
+ export type RaiseFundEventReified = Reified< RaiseFundEvent, RaiseFundEventFields >;
1450
+
1451
+ export class RaiseFundEvent implements StructClass { static readonly $typeName = "0x10250db78795fda6ce62b76efa324eb1a7dc50beeed1229fba40c50e4305ef9a::typus_dov_single::RaiseFundEvent"; static readonly $numTypeParams = 0;
1452
+
1453
+ readonly $typeName = RaiseFundEvent.$typeName;
1454
+
1455
+ readonly $fullTypeName: "0x10250db78795fda6ce62b76efa324eb1a7dc50beeed1229fba40c50e4305ef9a::typus_dov_single::RaiseFundEvent";
1456
+
1457
+ readonly $typeArgs: [];
1458
+
1459
+ readonly signer: ToField<"address">; readonly token: ToField<TypeName>; readonly log: ToField<Vector<"u64">>
1460
+
1461
+ private constructor(typeArgs: [], fields: RaiseFundEventFields, ) { this.$fullTypeName = composeSuiType( RaiseFundEvent.$typeName, ...typeArgs ) as "0x10250db78795fda6ce62b76efa324eb1a7dc50beeed1229fba40c50e4305ef9a::typus_dov_single::RaiseFundEvent"; this.$typeArgs = typeArgs;
1462
+
1463
+ this.signer = fields.signer;; this.token = fields.token;; this.log = fields.log; }
1464
+
1465
+ static reified( ): RaiseFundEventReified { return { typeName: RaiseFundEvent.$typeName, fullTypeName: composeSuiType( RaiseFundEvent.$typeName, ...[] ) as "0x10250db78795fda6ce62b76efa324eb1a7dc50beeed1229fba40c50e4305ef9a::typus_dov_single::RaiseFundEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => RaiseFundEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => RaiseFundEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => RaiseFundEvent.fromBcs( data, ), bcs: RaiseFundEvent.bcs, fromJSONField: (field: any) => RaiseFundEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => RaiseFundEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => RaiseFundEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => RaiseFundEvent.fetch( client, id, ), new: ( fields: RaiseFundEventFields, ) => { return new RaiseFundEvent( [], fields ) }, kind: "StructClassReified", } }
1466
+
1467
+ static get r() { return RaiseFundEvent.reified() }
1468
+
1469
+ static phantom( ): PhantomReified<ToTypeStr<RaiseFundEvent>> { return phantom(RaiseFundEvent.reified( )); } static get p() { return RaiseFundEvent.phantom() }
1470
+
1471
+ static get bcs() { return bcs.struct("RaiseFundEvent", {
1472
+
1473
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), token: TypeName.bcs, log: bcs.vector(bcs.u64())
1474
+
1475
+ }) };
1476
+
1477
+ static fromFields( fields: Record<string, any> ): RaiseFundEvent { return RaiseFundEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), token: decodeFromFields(TypeName.reified(), fields.token), log: decodeFromFields(reified.vector("u64"), fields.log) } ) }
1478
+
1479
+ static fromFieldsWithTypes( item: FieldsWithTypes ): RaiseFundEvent { if (!isRaiseFundEvent(item.type)) { throw new Error("not a RaiseFundEvent type");
1480
+
1481
+ }
1482
+
1483
+ return RaiseFundEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), token: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.token), log: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.log) } ) }
1484
+
1485
+ static fromBcs( data: Uint8Array ): RaiseFundEvent { return RaiseFundEvent.fromFields( RaiseFundEvent.bcs.parse(data) ) }
1486
+
1487
+ toJSONField() { return {
1488
+
1489
+ signer: this.signer,token: this.token.toJSONField(),log: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.log),
1490
+
1491
+ } }
1492
+
1493
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
1494
+
1495
+ static fromJSONField( field: any ): RaiseFundEvent { return RaiseFundEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), token: decodeFromJSONField(TypeName.reified(), field.token), log: decodeFromJSONField(reified.vector("u64"), field.log) } ) }
1496
+
1497
+ static fromJSON( json: Record<string, any> ): RaiseFundEvent { if (json.$typeName !== RaiseFundEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
1498
+
1499
+ return RaiseFundEvent.fromJSONField( json, ) }
1500
+
1501
+ static fromSuiParsedData( content: SuiParsedData ): RaiseFundEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isRaiseFundEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a RaiseFundEvent object`); } return RaiseFundEvent.fromFieldsWithTypes( content ); }
1502
+
1503
+ static async fetch( client: SuiClient, id: string ): Promise<RaiseFundEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching RaiseFundEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isRaiseFundEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a RaiseFundEvent object`); }
1504
+ return RaiseFundEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
1505
+
1506
+ }
1507
+
1508
+ /* ============================== RecoupEvent =============================== */
1509
+
1510
+ export function isRecoupEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::RecoupEvent"; }
1511
+
1512
+ export interface RecoupEventFields { signer: ToField<"address">; index: ToField<"u64">; round: ToField<"u64">; activeAmount: ToField<"u64">; deactivatingAmount: ToField<"u64">; dTokenDecimal: ToField<"u64">; u64Padding: ToField<Vector<"u64">> }
1513
+
1514
+ export type RecoupEventReified = Reified< RecoupEvent, RecoupEventFields >;
1515
+
1516
+ export class RecoupEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::RecoupEvent"; static readonly $numTypeParams = 0;
1517
+
1518
+ readonly $typeName = RecoupEvent.$typeName;
1519
+
1520
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::RecoupEvent";
1521
+
1522
+ readonly $typeArgs: [];
1523
+
1524
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly round: ToField<"u64">; readonly activeAmount: ToField<"u64">; readonly deactivatingAmount: ToField<"u64">; readonly dTokenDecimal: ToField<"u64">; readonly u64Padding: ToField<Vector<"u64">>
1525
+
1526
+ private constructor(typeArgs: [], fields: RecoupEventFields, ) { this.$fullTypeName = composeSuiType( RecoupEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::RecoupEvent"; this.$typeArgs = typeArgs;
1527
+
1528
+ this.signer = fields.signer;; this.index = fields.index;; this.round = fields.round;; this.activeAmount = fields.activeAmount;; this.deactivatingAmount = fields.deactivatingAmount;; this.dTokenDecimal = fields.dTokenDecimal;; this.u64Padding = fields.u64Padding; }
1529
+
1530
+ static reified( ): RecoupEventReified { return { typeName: RecoupEvent.$typeName, fullTypeName: composeSuiType( RecoupEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::RecoupEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => RecoupEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => RecoupEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => RecoupEvent.fromBcs( data, ), bcs: RecoupEvent.bcs, fromJSONField: (field: any) => RecoupEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => RecoupEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => RecoupEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => RecoupEvent.fetch( client, id, ), new: ( fields: RecoupEventFields, ) => { return new RecoupEvent( [], fields ) }, kind: "StructClassReified", } }
1531
+
1532
+ static get r() { return RecoupEvent.reified() }
1533
+
1534
+ static phantom( ): PhantomReified<ToTypeStr<RecoupEvent>> { return phantom(RecoupEvent.reified( )); } static get p() { return RecoupEvent.phantom() }
1535
+
1536
+ static get bcs() { return bcs.struct("RecoupEvent", {
1537
+
1538
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), round: bcs.u64(), active_amount: bcs.u64(), deactivating_amount: bcs.u64(), d_token_decimal: bcs.u64(), u64_padding: bcs.vector(bcs.u64())
1539
+
1540
+ }) };
1541
+
1542
+ static fromFields( fields: Record<string, any> ): RecoupEvent { return RecoupEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), round: decodeFromFields("u64", fields.round), activeAmount: decodeFromFields("u64", fields.active_amount), deactivatingAmount: decodeFromFields("u64", fields.deactivating_amount), dTokenDecimal: decodeFromFields("u64", fields.d_token_decimal), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
1543
+
1544
+ static fromFieldsWithTypes( item: FieldsWithTypes ): RecoupEvent { if (!isRecoupEvent(item.type)) { throw new Error("not a RecoupEvent type");
1545
+
1546
+ }
1547
+
1548
+ return RecoupEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), round: decodeFromFieldsWithTypes("u64", item.fields.round), activeAmount: decodeFromFieldsWithTypes("u64", item.fields.active_amount), deactivatingAmount: decodeFromFieldsWithTypes("u64", item.fields.deactivating_amount), dTokenDecimal: decodeFromFieldsWithTypes("u64", item.fields.d_token_decimal), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
1549
+
1550
+ static fromBcs( data: Uint8Array ): RecoupEvent { return RecoupEvent.fromFields( RecoupEvent.bcs.parse(data) ) }
1551
+
1552
+ toJSONField() { return {
1553
+
1554
+ signer: this.signer,index: this.index.toString(),round: this.round.toString(),activeAmount: this.activeAmount.toString(),deactivatingAmount: this.deactivatingAmount.toString(),dTokenDecimal: this.dTokenDecimal.toString(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
1555
+
1556
+ } }
1557
+
1558
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
1559
+
1560
+ static fromJSONField( field: any ): RecoupEvent { return RecoupEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), round: decodeFromJSONField("u64", field.round), activeAmount: decodeFromJSONField("u64", field.activeAmount), deactivatingAmount: decodeFromJSONField("u64", field.deactivatingAmount), dTokenDecimal: decodeFromJSONField("u64", field.dTokenDecimal), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
1561
+
1562
+ static fromJSON( json: Record<string, any> ): RecoupEvent { if (json.$typeName !== RecoupEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
1563
+
1564
+ return RecoupEvent.fromJSONField( json, ) }
1565
+
1566
+ static fromSuiParsedData( content: SuiParsedData ): RecoupEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isRecoupEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a RecoupEvent object`); } return RecoupEvent.fromFieldsWithTypes( content ); }
1567
+
1568
+ static async fetch( client: SuiClient, id: string ): Promise<RecoupEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching RecoupEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isRecoupEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a RecoupEvent object`); }
1569
+ return RecoupEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
1570
+
1571
+ }
1572
+
1573
+ /* ============================== RedeemEvent =============================== */
1574
+
1575
+ export function isRedeemEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::RedeemEvent"; }
1576
+
1577
+ export interface RedeemEventFields { signer: ToField<"address">; index: ToField<"u64">; token: ToField<TypeName>; amount: ToField<"u64">; oracleInfo: ToField<OracleInfo>; u64Padding: ToField<Vector<"u64">> }
1578
+
1579
+ export type RedeemEventReified = Reified< RedeemEvent, RedeemEventFields >;
1580
+
1581
+ export class RedeemEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::RedeemEvent"; static readonly $numTypeParams = 0;
1582
+
1583
+ readonly $typeName = RedeemEvent.$typeName;
1584
+
1585
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::RedeemEvent";
1586
+
1587
+ readonly $typeArgs: [];
1588
+
1589
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly token: ToField<TypeName>; readonly amount: ToField<"u64">; readonly oracleInfo: ToField<OracleInfo>; readonly u64Padding: ToField<Vector<"u64">>
1590
+
1591
+ private constructor(typeArgs: [], fields: RedeemEventFields, ) { this.$fullTypeName = composeSuiType( RedeemEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::RedeemEvent"; this.$typeArgs = typeArgs;
1592
+
1593
+ this.signer = fields.signer;; this.index = fields.index;; this.token = fields.token;; this.amount = fields.amount;; this.oracleInfo = fields.oracleInfo;; this.u64Padding = fields.u64Padding; }
1594
+
1595
+ static reified( ): RedeemEventReified { return { typeName: RedeemEvent.$typeName, fullTypeName: composeSuiType( RedeemEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::RedeemEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => RedeemEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => RedeemEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => RedeemEvent.fromBcs( data, ), bcs: RedeemEvent.bcs, fromJSONField: (field: any) => RedeemEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => RedeemEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => RedeemEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => RedeemEvent.fetch( client, id, ), new: ( fields: RedeemEventFields, ) => { return new RedeemEvent( [], fields ) }, kind: "StructClassReified", } }
1596
+
1597
+ static get r() { return RedeemEvent.reified() }
1598
+
1599
+ static phantom( ): PhantomReified<ToTypeStr<RedeemEvent>> { return phantom(RedeemEvent.reified( )); } static get p() { return RedeemEvent.phantom() }
1600
+
1601
+ static get bcs() { return bcs.struct("RedeemEvent", {
1602
+
1603
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), token: TypeName.bcs, amount: bcs.u64(), oracle_info: OracleInfo.bcs, u64_padding: bcs.vector(bcs.u64())
1604
+
1605
+ }) };
1606
+
1607
+ static fromFields( fields: Record<string, any> ): RedeemEvent { return RedeemEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), token: decodeFromFields(TypeName.reified(), fields.token), amount: decodeFromFields("u64", fields.amount), oracleInfo: decodeFromFields(OracleInfo.reified(), fields.oracle_info), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
1608
+
1609
+ static fromFieldsWithTypes( item: FieldsWithTypes ): RedeemEvent { if (!isRedeemEvent(item.type)) { throw new Error("not a RedeemEvent type");
1610
+
1611
+ }
1612
+
1613
+ return RedeemEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), token: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.token), amount: decodeFromFieldsWithTypes("u64", item.fields.amount), oracleInfo: decodeFromFieldsWithTypes(OracleInfo.reified(), item.fields.oracle_info), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
1614
+
1615
+ static fromBcs( data: Uint8Array ): RedeemEvent { return RedeemEvent.fromFields( RedeemEvent.bcs.parse(data) ) }
1616
+
1617
+ toJSONField() { return {
1618
+
1619
+ signer: this.signer,index: this.index.toString(),token: this.token.toJSONField(),amount: this.amount.toString(),oracleInfo: this.oracleInfo.toJSONField(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
1620
+
1621
+ } }
1622
+
1623
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
1624
+
1625
+ static fromJSONField( field: any ): RedeemEvent { return RedeemEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), token: decodeFromJSONField(TypeName.reified(), field.token), amount: decodeFromJSONField("u64", field.amount), oracleInfo: decodeFromJSONField(OracleInfo.reified(), field.oracleInfo), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
1626
+
1627
+ static fromJSON( json: Record<string, any> ): RedeemEvent { if (json.$typeName !== RedeemEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
1628
+
1629
+ return RedeemEvent.fromJSONField( json, ) }
1630
+
1631
+ static fromSuiParsedData( content: SuiParsedData ): RedeemEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isRedeemEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a RedeemEvent object`); } return RedeemEvent.fromFieldsWithTypes( content ); }
1632
+
1633
+ static async fetch( client: SuiClient, id: string ): Promise<RedeemEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching RedeemEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isRedeemEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a RedeemEvent object`); }
1634
+ return RedeemEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
1635
+
1636
+ }
1637
+
1638
+ /* ============================== ReduceFundEvent =============================== */
1639
+
1640
+ export function isReduceFundEvent(type: string): boolean { type = compressSuiType(type); return type === "0x10250db78795fda6ce62b76efa324eb1a7dc50beeed1229fba40c50e4305ef9a::typus_dov_single::ReduceFundEvent"; }
1641
+
1642
+ export interface ReduceFundEventFields { signer: ToField<"address">; dToken: ToField<TypeName>; bToken: ToField<TypeName>; iToken: ToField<TypeName>; log: ToField<Vector<"u64">> }
1643
+
1644
+ export type ReduceFundEventReified = Reified< ReduceFundEvent, ReduceFundEventFields >;
1645
+
1646
+ export class ReduceFundEvent implements StructClass { static readonly $typeName = "0x10250db78795fda6ce62b76efa324eb1a7dc50beeed1229fba40c50e4305ef9a::typus_dov_single::ReduceFundEvent"; static readonly $numTypeParams = 0;
1647
+
1648
+ readonly $typeName = ReduceFundEvent.$typeName;
1649
+
1650
+ readonly $fullTypeName: "0x10250db78795fda6ce62b76efa324eb1a7dc50beeed1229fba40c50e4305ef9a::typus_dov_single::ReduceFundEvent";
1651
+
1652
+ readonly $typeArgs: [];
1653
+
1654
+ readonly signer: ToField<"address">; readonly dToken: ToField<TypeName>; readonly bToken: ToField<TypeName>; readonly iToken: ToField<TypeName>; readonly log: ToField<Vector<"u64">>
1655
+
1656
+ private constructor(typeArgs: [], fields: ReduceFundEventFields, ) { this.$fullTypeName = composeSuiType( ReduceFundEvent.$typeName, ...typeArgs ) as "0x10250db78795fda6ce62b76efa324eb1a7dc50beeed1229fba40c50e4305ef9a::typus_dov_single::ReduceFundEvent"; this.$typeArgs = typeArgs;
1657
+
1658
+ this.signer = fields.signer;; this.dToken = fields.dToken;; this.bToken = fields.bToken;; this.iToken = fields.iToken;; this.log = fields.log; }
1659
+
1660
+ static reified( ): ReduceFundEventReified { return { typeName: ReduceFundEvent.$typeName, fullTypeName: composeSuiType( ReduceFundEvent.$typeName, ...[] ) as "0x10250db78795fda6ce62b76efa324eb1a7dc50beeed1229fba40c50e4305ef9a::typus_dov_single::ReduceFundEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => ReduceFundEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => ReduceFundEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => ReduceFundEvent.fromBcs( data, ), bcs: ReduceFundEvent.bcs, fromJSONField: (field: any) => ReduceFundEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => ReduceFundEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => ReduceFundEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => ReduceFundEvent.fetch( client, id, ), new: ( fields: ReduceFundEventFields, ) => { return new ReduceFundEvent( [], fields ) }, kind: "StructClassReified", } }
1661
+
1662
+ static get r() { return ReduceFundEvent.reified() }
1663
+
1664
+ static phantom( ): PhantomReified<ToTypeStr<ReduceFundEvent>> { return phantom(ReduceFundEvent.reified( )); } static get p() { return ReduceFundEvent.phantom() }
1665
+
1666
+ static get bcs() { return bcs.struct("ReduceFundEvent", {
1667
+
1668
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), d_token: TypeName.bcs, b_token: TypeName.bcs, i_token: TypeName.bcs, log: bcs.vector(bcs.u64())
1669
+
1670
+ }) };
1671
+
1672
+ static fromFields( fields: Record<string, any> ): ReduceFundEvent { return ReduceFundEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), dToken: decodeFromFields(TypeName.reified(), fields.d_token), bToken: decodeFromFields(TypeName.reified(), fields.b_token), iToken: decodeFromFields(TypeName.reified(), fields.i_token), log: decodeFromFields(reified.vector("u64"), fields.log) } ) }
1673
+
1674
+ static fromFieldsWithTypes( item: FieldsWithTypes ): ReduceFundEvent { if (!isReduceFundEvent(item.type)) { throw new Error("not a ReduceFundEvent type");
1675
+
1676
+ }
1677
+
1678
+ return ReduceFundEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), dToken: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.d_token), bToken: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.b_token), iToken: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.i_token), log: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.log) } ) }
1679
+
1680
+ static fromBcs( data: Uint8Array ): ReduceFundEvent { return ReduceFundEvent.fromFields( ReduceFundEvent.bcs.parse(data) ) }
1681
+
1682
+ toJSONField() { return {
1683
+
1684
+ signer: this.signer,dToken: this.dToken.toJSONField(),bToken: this.bToken.toJSONField(),iToken: this.iToken.toJSONField(),log: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.log),
1685
+
1686
+ } }
1687
+
1688
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
1689
+
1690
+ static fromJSONField( field: any ): ReduceFundEvent { return ReduceFundEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), dToken: decodeFromJSONField(TypeName.reified(), field.dToken), bToken: decodeFromJSONField(TypeName.reified(), field.bToken), iToken: decodeFromJSONField(TypeName.reified(), field.iToken), log: decodeFromJSONField(reified.vector("u64"), field.log) } ) }
1691
+
1692
+ static fromJSON( json: Record<string, any> ): ReduceFundEvent { if (json.$typeName !== ReduceFundEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
1693
+
1694
+ return ReduceFundEvent.fromJSONField( json, ) }
1695
+
1696
+ static fromSuiParsedData( content: SuiParsedData ): ReduceFundEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isReduceFundEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a ReduceFundEvent object`); } return ReduceFundEvent.fromFieldsWithTypes( content ); }
1697
+
1698
+ static async fetch( client: SuiClient, id: string ): Promise<ReduceFundEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching ReduceFundEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isReduceFundEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a ReduceFundEvent object`); }
1699
+ return ReduceFundEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
1700
+
1701
+ }
1702
+
1703
+ /* ============================== RefundEvent =============================== */
1704
+
1705
+ export function isRefundEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::RefundEvent"; }
1706
+
1707
+ export interface RefundEventFields { signer: ToField<"address">; token: ToField<TypeName>; amount: ToField<"u64">; u64Padding: ToField<Vector<"u64">> }
1708
+
1709
+ export type RefundEventReified = Reified< RefundEvent, RefundEventFields >;
1710
+
1711
+ export class RefundEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::RefundEvent"; static readonly $numTypeParams = 0;
1712
+
1713
+ readonly $typeName = RefundEvent.$typeName;
1714
+
1715
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::RefundEvent";
1716
+
1717
+ readonly $typeArgs: [];
1718
+
1719
+ readonly signer: ToField<"address">; readonly token: ToField<TypeName>; readonly amount: ToField<"u64">; readonly u64Padding: ToField<Vector<"u64">>
1720
+
1721
+ private constructor(typeArgs: [], fields: RefundEventFields, ) { this.$fullTypeName = composeSuiType( RefundEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::RefundEvent"; this.$typeArgs = typeArgs;
1722
+
1723
+ this.signer = fields.signer;; this.token = fields.token;; this.amount = fields.amount;; this.u64Padding = fields.u64Padding; }
1724
+
1725
+ static reified( ): RefundEventReified { return { typeName: RefundEvent.$typeName, fullTypeName: composeSuiType( RefundEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::RefundEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => RefundEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => RefundEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => RefundEvent.fromBcs( data, ), bcs: RefundEvent.bcs, fromJSONField: (field: any) => RefundEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => RefundEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => RefundEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => RefundEvent.fetch( client, id, ), new: ( fields: RefundEventFields, ) => { return new RefundEvent( [], fields ) }, kind: "StructClassReified", } }
1726
+
1727
+ static get r() { return RefundEvent.reified() }
1728
+
1729
+ static phantom( ): PhantomReified<ToTypeStr<RefundEvent>> { return phantom(RefundEvent.reified( )); } static get p() { return RefundEvent.phantom() }
1730
+
1731
+ static get bcs() { return bcs.struct("RefundEvent", {
1732
+
1733
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), token: TypeName.bcs, amount: bcs.u64(), u64_padding: bcs.vector(bcs.u64())
1734
+
1735
+ }) };
1736
+
1737
+ static fromFields( fields: Record<string, any> ): RefundEvent { return RefundEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), token: decodeFromFields(TypeName.reified(), fields.token), amount: decodeFromFields("u64", fields.amount), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
1738
+
1739
+ static fromFieldsWithTypes( item: FieldsWithTypes ): RefundEvent { if (!isRefundEvent(item.type)) { throw new Error("not a RefundEvent type");
1740
+
1741
+ }
1742
+
1743
+ return RefundEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), token: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.token), amount: decodeFromFieldsWithTypes("u64", item.fields.amount), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
1744
+
1745
+ static fromBcs( data: Uint8Array ): RefundEvent { return RefundEvent.fromFields( RefundEvent.bcs.parse(data) ) }
1746
+
1747
+ toJSONField() { return {
1748
+
1749
+ signer: this.signer,token: this.token.toJSONField(),amount: this.amount.toString(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
1750
+
1751
+ } }
1752
+
1753
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
1754
+
1755
+ static fromJSONField( field: any ): RefundEvent { return RefundEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), token: decodeFromJSONField(TypeName.reified(), field.token), amount: decodeFromJSONField("u64", field.amount), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
1756
+
1757
+ static fromJSON( json: Record<string, any> ): RefundEvent { if (json.$typeName !== RefundEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
1758
+
1759
+ return RefundEvent.fromJSONField( json, ) }
1760
+
1761
+ static fromSuiParsedData( content: SuiParsedData ): RefundEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isRefundEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a RefundEvent object`); } return RefundEvent.fromFieldsWithTypes( content ); }
1762
+
1763
+ static async fetch( client: SuiClient, id: string ): Promise<RefundEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching RefundEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isRefundEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a RefundEvent object`); }
1764
+ return RefundEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
1765
+
1766
+ }
1767
+
1768
+ /* ============================== SettleEvent =============================== */
1769
+
1770
+ export function isSettleEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::SettleEvent"; }
1771
+
1772
+ export interface SettleEventFields { signer: ToField<"address">; index: ToField<"u64">; round: ToField<"u64">; oraclePrice: ToField<"u64">; oraclePriceDecimal: ToField<"u64">; settleBalance: ToField<"u64">; settledBalance: ToField<"u64">; dTokenDecimal: ToField<"u64">; dToken: ToField<TypeName>; sharePrice: ToField<"u64">; u64Padding: ToField<Vector<"u64">> }
1773
+
1774
+ export type SettleEventReified = Reified< SettleEvent, SettleEventFields >;
1775
+
1776
+ export class SettleEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::SettleEvent"; static readonly $numTypeParams = 0;
1777
+
1778
+ readonly $typeName = SettleEvent.$typeName;
1779
+
1780
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::SettleEvent";
1781
+
1782
+ readonly $typeArgs: [];
1783
+
1784
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly round: ToField<"u64">; readonly oraclePrice: ToField<"u64">; readonly oraclePriceDecimal: ToField<"u64">; readonly settleBalance: ToField<"u64">; readonly settledBalance: ToField<"u64">; readonly dTokenDecimal: ToField<"u64">; readonly dToken: ToField<TypeName>; readonly sharePrice: ToField<"u64">; readonly u64Padding: ToField<Vector<"u64">>
1785
+
1786
+ private constructor(typeArgs: [], fields: SettleEventFields, ) { this.$fullTypeName = composeSuiType( SettleEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::SettleEvent"; this.$typeArgs = typeArgs;
1787
+
1788
+ this.signer = fields.signer;; this.index = fields.index;; this.round = fields.round;; this.oraclePrice = fields.oraclePrice;; this.oraclePriceDecimal = fields.oraclePriceDecimal;; this.settleBalance = fields.settleBalance;; this.settledBalance = fields.settledBalance;; this.dTokenDecimal = fields.dTokenDecimal;; this.dToken = fields.dToken;; this.sharePrice = fields.sharePrice;; this.u64Padding = fields.u64Padding; }
1789
+
1790
+ static reified( ): SettleEventReified { return { typeName: SettleEvent.$typeName, fullTypeName: composeSuiType( SettleEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::SettleEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => SettleEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => SettleEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => SettleEvent.fromBcs( data, ), bcs: SettleEvent.bcs, fromJSONField: (field: any) => SettleEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => SettleEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => SettleEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => SettleEvent.fetch( client, id, ), new: ( fields: SettleEventFields, ) => { return new SettleEvent( [], fields ) }, kind: "StructClassReified", } }
1791
+
1792
+ static get r() { return SettleEvent.reified() }
1793
+
1794
+ static phantom( ): PhantomReified<ToTypeStr<SettleEvent>> { return phantom(SettleEvent.reified( )); } static get p() { return SettleEvent.phantom() }
1795
+
1796
+ static get bcs() { return bcs.struct("SettleEvent", {
1797
+
1798
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), round: bcs.u64(), oracle_price: bcs.u64(), oracle_price_decimal: bcs.u64(), settle_balance: bcs.u64(), settled_balance: bcs.u64(), d_token_decimal: bcs.u64(), d_token: TypeName.bcs, share_price: bcs.u64(), u64_padding: bcs.vector(bcs.u64())
1799
+
1800
+ }) };
1801
+
1802
+ static fromFields( fields: Record<string, any> ): SettleEvent { return SettleEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), round: decodeFromFields("u64", fields.round), oraclePrice: decodeFromFields("u64", fields.oracle_price), oraclePriceDecimal: decodeFromFields("u64", fields.oracle_price_decimal), settleBalance: decodeFromFields("u64", fields.settle_balance), settledBalance: decodeFromFields("u64", fields.settled_balance), dTokenDecimal: decodeFromFields("u64", fields.d_token_decimal), dToken: decodeFromFields(TypeName.reified(), fields.d_token), sharePrice: decodeFromFields("u64", fields.share_price), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
1803
+
1804
+ static fromFieldsWithTypes( item: FieldsWithTypes ): SettleEvent { if (!isSettleEvent(item.type)) { throw new Error("not a SettleEvent type");
1805
+
1806
+ }
1807
+
1808
+ return SettleEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), round: decodeFromFieldsWithTypes("u64", item.fields.round), oraclePrice: decodeFromFieldsWithTypes("u64", item.fields.oracle_price), oraclePriceDecimal: decodeFromFieldsWithTypes("u64", item.fields.oracle_price_decimal), settleBalance: decodeFromFieldsWithTypes("u64", item.fields.settle_balance), settledBalance: decodeFromFieldsWithTypes("u64", item.fields.settled_balance), dTokenDecimal: decodeFromFieldsWithTypes("u64", item.fields.d_token_decimal), dToken: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.d_token), sharePrice: decodeFromFieldsWithTypes("u64", item.fields.share_price), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
1809
+
1810
+ static fromBcs( data: Uint8Array ): SettleEvent { return SettleEvent.fromFields( SettleEvent.bcs.parse(data) ) }
1811
+
1812
+ toJSONField() { return {
1813
+
1814
+ signer: this.signer,index: this.index.toString(),round: this.round.toString(),oraclePrice: this.oraclePrice.toString(),oraclePriceDecimal: this.oraclePriceDecimal.toString(),settleBalance: this.settleBalance.toString(),settledBalance: this.settledBalance.toString(),dTokenDecimal: this.dTokenDecimal.toString(),dToken: this.dToken.toJSONField(),sharePrice: this.sharePrice.toString(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
1815
+
1816
+ } }
1817
+
1818
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
1819
+
1820
+ static fromJSONField( field: any ): SettleEvent { return SettleEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), round: decodeFromJSONField("u64", field.round), oraclePrice: decodeFromJSONField("u64", field.oraclePrice), oraclePriceDecimal: decodeFromJSONField("u64", field.oraclePriceDecimal), settleBalance: decodeFromJSONField("u64", field.settleBalance), settledBalance: decodeFromJSONField("u64", field.settledBalance), dTokenDecimal: decodeFromJSONField("u64", field.dTokenDecimal), dToken: decodeFromJSONField(TypeName.reified(), field.dToken), sharePrice: decodeFromJSONField("u64", field.sharePrice), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
1821
+
1822
+ static fromJSON( json: Record<string, any> ): SettleEvent { if (json.$typeName !== SettleEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
1823
+
1824
+ return SettleEvent.fromJSONField( json, ) }
1825
+
1826
+ static fromSuiParsedData( content: SuiParsedData ): SettleEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isSettleEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a SettleEvent object`); } return SettleEvent.fromFieldsWithTypes( content ); }
1827
+
1828
+ static async fetch( client: SuiClient, id: string ): Promise<SettleEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching SettleEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isSettleEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a SettleEvent object`); }
1829
+ return SettleEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
1830
+
1831
+ }
1832
+
1833
+ /* ============================== SettlementInfo =============================== */
1834
+
1835
+ export function isSettlementInfo(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::SettlementInfo"; }
1836
+
1837
+ export interface SettlementInfoFields { round: ToField<"u64">; oraclePrice: ToField<"u64">; oraclePriceDecimal: ToField<"u64">; settleBalance: ToField<"u64">; settledBalance: ToField<"u64">; sharePrice: ToField<"u64">; sharePriceDecimal: ToField<"u64">; tsMs: ToField<"u64">; u64Padding: ToField<Vector<"u64">> }
1838
+
1839
+ export type SettlementInfoReified = Reified< SettlementInfo, SettlementInfoFields >;
1840
+
1841
+ export class SettlementInfo implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::SettlementInfo"; static readonly $numTypeParams = 0;
1842
+
1843
+ readonly $typeName = SettlementInfo.$typeName;
1844
+
1845
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::SettlementInfo";
1846
+
1847
+ readonly $typeArgs: [];
1848
+
1849
+ readonly round: ToField<"u64">; readonly oraclePrice: ToField<"u64">; readonly oraclePriceDecimal: ToField<"u64">; readonly settleBalance: ToField<"u64">; readonly settledBalance: ToField<"u64">; readonly sharePrice: ToField<"u64">; readonly sharePriceDecimal: ToField<"u64">; readonly tsMs: ToField<"u64">; readonly u64Padding: ToField<Vector<"u64">>
1850
+
1851
+ private constructor(typeArgs: [], fields: SettlementInfoFields, ) { this.$fullTypeName = composeSuiType( SettlementInfo.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::SettlementInfo"; this.$typeArgs = typeArgs;
1852
+
1853
+ this.round = fields.round;; this.oraclePrice = fields.oraclePrice;; this.oraclePriceDecimal = fields.oraclePriceDecimal;; this.settleBalance = fields.settleBalance;; this.settledBalance = fields.settledBalance;; this.sharePrice = fields.sharePrice;; this.sharePriceDecimal = fields.sharePriceDecimal;; this.tsMs = fields.tsMs;; this.u64Padding = fields.u64Padding; }
1854
+
1855
+ static reified( ): SettlementInfoReified { return { typeName: SettlementInfo.$typeName, fullTypeName: composeSuiType( SettlementInfo.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::SettlementInfo", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => SettlementInfo.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => SettlementInfo.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => SettlementInfo.fromBcs( data, ), bcs: SettlementInfo.bcs, fromJSONField: (field: any) => SettlementInfo.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => SettlementInfo.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => SettlementInfo.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => SettlementInfo.fetch( client, id, ), new: ( fields: SettlementInfoFields, ) => { return new SettlementInfo( [], fields ) }, kind: "StructClassReified", } }
1856
+
1857
+ static get r() { return SettlementInfo.reified() }
1858
+
1859
+ static phantom( ): PhantomReified<ToTypeStr<SettlementInfo>> { return phantom(SettlementInfo.reified( )); } static get p() { return SettlementInfo.phantom() }
1860
+
1861
+ static get bcs() { return bcs.struct("SettlementInfo", {
1862
+
1863
+ round: bcs.u64(), oracle_price: bcs.u64(), oracle_price_decimal: bcs.u64(), settle_balance: bcs.u64(), settled_balance: bcs.u64(), share_price: bcs.u64(), share_price_decimal: bcs.u64(), ts_ms: bcs.u64(), u64_padding: bcs.vector(bcs.u64())
1864
+
1865
+ }) };
1866
+
1867
+ static fromFields( fields: Record<string, any> ): SettlementInfo { return SettlementInfo.reified( ).new( { round: decodeFromFields("u64", fields.round), oraclePrice: decodeFromFields("u64", fields.oracle_price), oraclePriceDecimal: decodeFromFields("u64", fields.oracle_price_decimal), settleBalance: decodeFromFields("u64", fields.settle_balance), settledBalance: decodeFromFields("u64", fields.settled_balance), sharePrice: decodeFromFields("u64", fields.share_price), sharePriceDecimal: decodeFromFields("u64", fields.share_price_decimal), tsMs: decodeFromFields("u64", fields.ts_ms), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
1868
+
1869
+ static fromFieldsWithTypes( item: FieldsWithTypes ): SettlementInfo { if (!isSettlementInfo(item.type)) { throw new Error("not a SettlementInfo type");
1870
+
1871
+ }
1872
+
1873
+ return SettlementInfo.reified( ).new( { round: decodeFromFieldsWithTypes("u64", item.fields.round), oraclePrice: decodeFromFieldsWithTypes("u64", item.fields.oracle_price), oraclePriceDecimal: decodeFromFieldsWithTypes("u64", item.fields.oracle_price_decimal), settleBalance: decodeFromFieldsWithTypes("u64", item.fields.settle_balance), settledBalance: decodeFromFieldsWithTypes("u64", item.fields.settled_balance), sharePrice: decodeFromFieldsWithTypes("u64", item.fields.share_price), sharePriceDecimal: decodeFromFieldsWithTypes("u64", item.fields.share_price_decimal), tsMs: decodeFromFieldsWithTypes("u64", item.fields.ts_ms), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
1874
+
1875
+ static fromBcs( data: Uint8Array ): SettlementInfo { return SettlementInfo.fromFields( SettlementInfo.bcs.parse(data) ) }
1876
+
1877
+ toJSONField() { return {
1878
+
1879
+ round: this.round.toString(),oraclePrice: this.oraclePrice.toString(),oraclePriceDecimal: this.oraclePriceDecimal.toString(),settleBalance: this.settleBalance.toString(),settledBalance: this.settledBalance.toString(),sharePrice: this.sharePrice.toString(),sharePriceDecimal: this.sharePriceDecimal.toString(),tsMs: this.tsMs.toString(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
1880
+
1881
+ } }
1882
+
1883
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
1884
+
1885
+ static fromJSONField( field: any ): SettlementInfo { return SettlementInfo.reified( ).new( { round: decodeFromJSONField("u64", field.round), oraclePrice: decodeFromJSONField("u64", field.oraclePrice), oraclePriceDecimal: decodeFromJSONField("u64", field.oraclePriceDecimal), settleBalance: decodeFromJSONField("u64", field.settleBalance), settledBalance: decodeFromJSONField("u64", field.settledBalance), sharePrice: decodeFromJSONField("u64", field.sharePrice), sharePriceDecimal: decodeFromJSONField("u64", field.sharePriceDecimal), tsMs: decodeFromJSONField("u64", field.tsMs), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
1886
+
1887
+ static fromJSON( json: Record<string, any> ): SettlementInfo { if (json.$typeName !== SettlementInfo.$typeName) { throw new Error("not a WithTwoGenerics json object") };
1888
+
1889
+ return SettlementInfo.fromJSONField( json, ) }
1890
+
1891
+ static fromSuiParsedData( content: SuiParsedData ): SettlementInfo { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isSettlementInfo(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a SettlementInfo object`); } return SettlementInfo.fromFieldsWithTypes( content ); }
1892
+
1893
+ static async fetch( client: SuiClient, id: string ): Promise<SettlementInfo> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching SettlementInfo object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isSettlementInfo(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a SettlementInfo object`); }
1894
+ return SettlementInfo.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
1895
+
1896
+ }
1897
+
1898
+ /* ============================== TYPUS_DOV_SINGLE =============================== */
1899
+
1900
+ export function isTYPUS_DOV_SINGLE(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TYPUS_DOV_SINGLE"; }
1901
+
1902
+ export interface TYPUS_DOV_SINGLEFields { dummyField: ToField<"bool"> }
1903
+
1904
+ export type TYPUS_DOV_SINGLEReified = Reified< TYPUS_DOV_SINGLE, TYPUS_DOV_SINGLEFields >;
1905
+
1906
+ export class TYPUS_DOV_SINGLE implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TYPUS_DOV_SINGLE"; static readonly $numTypeParams = 0;
1907
+
1908
+ readonly $typeName = TYPUS_DOV_SINGLE.$typeName;
1909
+
1910
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TYPUS_DOV_SINGLE";
1911
+
1912
+ readonly $typeArgs: [];
1913
+
1914
+ readonly dummyField: ToField<"bool">
1915
+
1916
+ private constructor(typeArgs: [], fields: TYPUS_DOV_SINGLEFields, ) { this.$fullTypeName = composeSuiType( TYPUS_DOV_SINGLE.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TYPUS_DOV_SINGLE"; this.$typeArgs = typeArgs;
1917
+
1918
+ this.dummyField = fields.dummyField; }
1919
+
1920
+ static reified( ): TYPUS_DOV_SINGLEReified { return { typeName: TYPUS_DOV_SINGLE.$typeName, fullTypeName: composeSuiType( TYPUS_DOV_SINGLE.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TYPUS_DOV_SINGLE", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => TYPUS_DOV_SINGLE.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => TYPUS_DOV_SINGLE.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => TYPUS_DOV_SINGLE.fromBcs( data, ), bcs: TYPUS_DOV_SINGLE.bcs, fromJSONField: (field: any) => TYPUS_DOV_SINGLE.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => TYPUS_DOV_SINGLE.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => TYPUS_DOV_SINGLE.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => TYPUS_DOV_SINGLE.fetch( client, id, ), new: ( fields: TYPUS_DOV_SINGLEFields, ) => { return new TYPUS_DOV_SINGLE( [], fields ) }, kind: "StructClassReified", } }
1921
+
1922
+ static get r() { return TYPUS_DOV_SINGLE.reified() }
1923
+
1924
+ static phantom( ): PhantomReified<ToTypeStr<TYPUS_DOV_SINGLE>> { return phantom(TYPUS_DOV_SINGLE.reified( )); } static get p() { return TYPUS_DOV_SINGLE.phantom() }
1925
+
1926
+ static get bcs() { return bcs.struct("TYPUS_DOV_SINGLE", {
1927
+
1928
+ dummy_field: bcs.bool()
1929
+
1930
+ }) };
1931
+
1932
+ static fromFields( fields: Record<string, any> ): TYPUS_DOV_SINGLE { return TYPUS_DOV_SINGLE.reified( ).new( { dummyField: decodeFromFields("bool", fields.dummy_field) } ) }
1933
+
1934
+ static fromFieldsWithTypes( item: FieldsWithTypes ): TYPUS_DOV_SINGLE { if (!isTYPUS_DOV_SINGLE(item.type)) { throw new Error("not a TYPUS_DOV_SINGLE type");
1935
+
1936
+ }
1937
+
1938
+ return TYPUS_DOV_SINGLE.reified( ).new( { dummyField: decodeFromFieldsWithTypes("bool", item.fields.dummy_field) } ) }
1939
+
1940
+ static fromBcs( data: Uint8Array ): TYPUS_DOV_SINGLE { return TYPUS_DOV_SINGLE.fromFields( TYPUS_DOV_SINGLE.bcs.parse(data) ) }
1941
+
1942
+ toJSONField() { return {
1943
+
1944
+ dummyField: this.dummyField,
1945
+
1946
+ } }
1947
+
1948
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
1949
+
1950
+ static fromJSONField( field: any ): TYPUS_DOV_SINGLE { return TYPUS_DOV_SINGLE.reified( ).new( { dummyField: decodeFromJSONField("bool", field.dummyField) } ) }
1951
+
1952
+ static fromJSON( json: Record<string, any> ): TYPUS_DOV_SINGLE { if (json.$typeName !== TYPUS_DOV_SINGLE.$typeName) { throw new Error("not a WithTwoGenerics json object") };
1953
+
1954
+ return TYPUS_DOV_SINGLE.fromJSONField( json, ) }
1955
+
1956
+ static fromSuiParsedData( content: SuiParsedData ): TYPUS_DOV_SINGLE { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isTYPUS_DOV_SINGLE(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a TYPUS_DOV_SINGLE object`); } return TYPUS_DOV_SINGLE.fromFieldsWithTypes( content ); }
1957
+
1958
+ static async fetch( client: SuiClient, id: string ): Promise<TYPUS_DOV_SINGLE> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching TYPUS_DOV_SINGLE object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isTYPUS_DOV_SINGLE(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a TYPUS_DOV_SINGLE object`); }
1959
+ return TYPUS_DOV_SINGLE.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
1960
+
1961
+ }
1962
+
1963
+ /* ============================== TerminateAuctionEvent =============================== */
1964
+
1965
+ export function isTerminateAuctionEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TerminateAuctionEvent"; }
1966
+
1967
+ export interface TerminateAuctionEventFields { signer: ToField<"address">; index: ToField<"u64">; round: ToField<"u64">; u64Padding: ToField<Vector<"u64">> }
1968
+
1969
+ export type TerminateAuctionEventReified = Reified< TerminateAuctionEvent, TerminateAuctionEventFields >;
1970
+
1971
+ export class TerminateAuctionEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TerminateAuctionEvent"; static readonly $numTypeParams = 0;
1972
+
1973
+ readonly $typeName = TerminateAuctionEvent.$typeName;
1974
+
1975
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TerminateAuctionEvent";
1976
+
1977
+ readonly $typeArgs: [];
1978
+
1979
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly round: ToField<"u64">; readonly u64Padding: ToField<Vector<"u64">>
1980
+
1981
+ private constructor(typeArgs: [], fields: TerminateAuctionEventFields, ) { this.$fullTypeName = composeSuiType( TerminateAuctionEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TerminateAuctionEvent"; this.$typeArgs = typeArgs;
1982
+
1983
+ this.signer = fields.signer;; this.index = fields.index;; this.round = fields.round;; this.u64Padding = fields.u64Padding; }
1984
+
1985
+ static reified( ): TerminateAuctionEventReified { return { typeName: TerminateAuctionEvent.$typeName, fullTypeName: composeSuiType( TerminateAuctionEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TerminateAuctionEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => TerminateAuctionEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => TerminateAuctionEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => TerminateAuctionEvent.fromBcs( data, ), bcs: TerminateAuctionEvent.bcs, fromJSONField: (field: any) => TerminateAuctionEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => TerminateAuctionEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => TerminateAuctionEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => TerminateAuctionEvent.fetch( client, id, ), new: ( fields: TerminateAuctionEventFields, ) => { return new TerminateAuctionEvent( [], fields ) }, kind: "StructClassReified", } }
1986
+
1987
+ static get r() { return TerminateAuctionEvent.reified() }
1988
+
1989
+ static phantom( ): PhantomReified<ToTypeStr<TerminateAuctionEvent>> { return phantom(TerminateAuctionEvent.reified( )); } static get p() { return TerminateAuctionEvent.phantom() }
1990
+
1991
+ static get bcs() { return bcs.struct("TerminateAuctionEvent", {
1992
+
1993
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), round: bcs.u64(), u64_padding: bcs.vector(bcs.u64())
1994
+
1995
+ }) };
1996
+
1997
+ static fromFields( fields: Record<string, any> ): TerminateAuctionEvent { return TerminateAuctionEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), round: decodeFromFields("u64", fields.round), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
1998
+
1999
+ static fromFieldsWithTypes( item: FieldsWithTypes ): TerminateAuctionEvent { if (!isTerminateAuctionEvent(item.type)) { throw new Error("not a TerminateAuctionEvent type");
2000
+
2001
+ }
2002
+
2003
+ return TerminateAuctionEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), round: decodeFromFieldsWithTypes("u64", item.fields.round), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
2004
+
2005
+ static fromBcs( data: Uint8Array ): TerminateAuctionEvent { return TerminateAuctionEvent.fromFields( TerminateAuctionEvent.bcs.parse(data) ) }
2006
+
2007
+ toJSONField() { return {
2008
+
2009
+ signer: this.signer,index: this.index.toString(),round: this.round.toString(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
2010
+
2011
+ } }
2012
+
2013
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
2014
+
2015
+ static fromJSONField( field: any ): TerminateAuctionEvent { return TerminateAuctionEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), round: decodeFromJSONField("u64", field.round), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
2016
+
2017
+ static fromJSON( json: Record<string, any> ): TerminateAuctionEvent { if (json.$typeName !== TerminateAuctionEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
2018
+
2019
+ return TerminateAuctionEvent.fromJSONField( json, ) }
2020
+
2021
+ static fromSuiParsedData( content: SuiParsedData ): TerminateAuctionEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isTerminateAuctionEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a TerminateAuctionEvent object`); } return TerminateAuctionEvent.fromFieldsWithTypes( content ); }
2022
+
2023
+ static async fetch( client: SuiClient, id: string ): Promise<TerminateAuctionEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching TerminateAuctionEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isTerminateAuctionEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a TerminateAuctionEvent object`); }
2024
+ return TerminateAuctionEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
2025
+
2026
+ }
2027
+
2028
+ /* ============================== TerminateVaultEvent =============================== */
2029
+
2030
+ export function isTerminateVaultEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TerminateVaultEvent"; }
2031
+
2032
+ export interface TerminateVaultEventFields { signer: ToField<"address">; index: ToField<"u64">; round: ToField<"u64">; u64Padding: ToField<Vector<"u64">> }
2033
+
2034
+ export type TerminateVaultEventReified = Reified< TerminateVaultEvent, TerminateVaultEventFields >;
2035
+
2036
+ export class TerminateVaultEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TerminateVaultEvent"; static readonly $numTypeParams = 0;
2037
+
2038
+ readonly $typeName = TerminateVaultEvent.$typeName;
2039
+
2040
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TerminateVaultEvent";
2041
+
2042
+ readonly $typeArgs: [];
2043
+
2044
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly round: ToField<"u64">; readonly u64Padding: ToField<Vector<"u64">>
2045
+
2046
+ private constructor(typeArgs: [], fields: TerminateVaultEventFields, ) { this.$fullTypeName = composeSuiType( TerminateVaultEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TerminateVaultEvent"; this.$typeArgs = typeArgs;
2047
+
2048
+ this.signer = fields.signer;; this.index = fields.index;; this.round = fields.round;; this.u64Padding = fields.u64Padding; }
2049
+
2050
+ static reified( ): TerminateVaultEventReified { return { typeName: TerminateVaultEvent.$typeName, fullTypeName: composeSuiType( TerminateVaultEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TerminateVaultEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => TerminateVaultEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => TerminateVaultEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => TerminateVaultEvent.fromBcs( data, ), bcs: TerminateVaultEvent.bcs, fromJSONField: (field: any) => TerminateVaultEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => TerminateVaultEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => TerminateVaultEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => TerminateVaultEvent.fetch( client, id, ), new: ( fields: TerminateVaultEventFields, ) => { return new TerminateVaultEvent( [], fields ) }, kind: "StructClassReified", } }
2051
+
2052
+ static get r() { return TerminateVaultEvent.reified() }
2053
+
2054
+ static phantom( ): PhantomReified<ToTypeStr<TerminateVaultEvent>> { return phantom(TerminateVaultEvent.reified( )); } static get p() { return TerminateVaultEvent.phantom() }
2055
+
2056
+ static get bcs() { return bcs.struct("TerminateVaultEvent", {
2057
+
2058
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), round: bcs.u64(), u64_padding: bcs.vector(bcs.u64())
2059
+
2060
+ }) };
2061
+
2062
+ static fromFields( fields: Record<string, any> ): TerminateVaultEvent { return TerminateVaultEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), round: decodeFromFields("u64", fields.round), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
2063
+
2064
+ static fromFieldsWithTypes( item: FieldsWithTypes ): TerminateVaultEvent { if (!isTerminateVaultEvent(item.type)) { throw new Error("not a TerminateVaultEvent type");
2065
+
2066
+ }
2067
+
2068
+ return TerminateVaultEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), round: decodeFromFieldsWithTypes("u64", item.fields.round), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
2069
+
2070
+ static fromBcs( data: Uint8Array ): TerminateVaultEvent { return TerminateVaultEvent.fromFields( TerminateVaultEvent.bcs.parse(data) ) }
2071
+
2072
+ toJSONField() { return {
2073
+
2074
+ signer: this.signer,index: this.index.toString(),round: this.round.toString(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
2075
+
2076
+ } }
2077
+
2078
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
2079
+
2080
+ static fromJSONField( field: any ): TerminateVaultEvent { return TerminateVaultEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), round: decodeFromJSONField("u64", field.round), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
2081
+
2082
+ static fromJSON( json: Record<string, any> ): TerminateVaultEvent { if (json.$typeName !== TerminateVaultEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
2083
+
2084
+ return TerminateVaultEvent.fromJSONField( json, ) }
2085
+
2086
+ static fromSuiParsedData( content: SuiParsedData ): TerminateVaultEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isTerminateVaultEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a TerminateVaultEvent object`); } return TerminateVaultEvent.fromFieldsWithTypes( content ); }
2087
+
2088
+ static async fetch( client: SuiClient, id: string ): Promise<TerminateVaultEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching TerminateVaultEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isTerminateVaultEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a TerminateVaultEvent object`); }
2089
+ return TerminateVaultEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
2090
+
2091
+ }
2092
+
2093
+ /* ============================== TransferBidReceiptEvent =============================== */
2094
+
2095
+ export function isTransferBidReceiptEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TransferBidReceiptEvent"; }
2096
+
2097
+ export interface TransferBidReceiptEventFields { signer: ToField<"address">; index: ToField<"u64">; amount: ToField<"u64">; decimal: ToField<"u64">; recipient: ToField<"address">; oracleInfo: ToField<OracleInfo>; u64Padding: ToField<Vector<"u64">> }
2098
+
2099
+ export type TransferBidReceiptEventReified = Reified< TransferBidReceiptEvent, TransferBidReceiptEventFields >;
2100
+
2101
+ export class TransferBidReceiptEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TransferBidReceiptEvent"; static readonly $numTypeParams = 0;
2102
+
2103
+ readonly $typeName = TransferBidReceiptEvent.$typeName;
2104
+
2105
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TransferBidReceiptEvent";
2106
+
2107
+ readonly $typeArgs: [];
2108
+
2109
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly amount: ToField<"u64">; readonly decimal: ToField<"u64">; readonly recipient: ToField<"address">; readonly oracleInfo: ToField<OracleInfo>; readonly u64Padding: ToField<Vector<"u64">>
2110
+
2111
+ private constructor(typeArgs: [], fields: TransferBidReceiptEventFields, ) { this.$fullTypeName = composeSuiType( TransferBidReceiptEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TransferBidReceiptEvent"; this.$typeArgs = typeArgs;
2112
+
2113
+ this.signer = fields.signer;; this.index = fields.index;; this.amount = fields.amount;; this.decimal = fields.decimal;; this.recipient = fields.recipient;; this.oracleInfo = fields.oracleInfo;; this.u64Padding = fields.u64Padding; }
2114
+
2115
+ static reified( ): TransferBidReceiptEventReified { return { typeName: TransferBidReceiptEvent.$typeName, fullTypeName: composeSuiType( TransferBidReceiptEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::TransferBidReceiptEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => TransferBidReceiptEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => TransferBidReceiptEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => TransferBidReceiptEvent.fromBcs( data, ), bcs: TransferBidReceiptEvent.bcs, fromJSONField: (field: any) => TransferBidReceiptEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => TransferBidReceiptEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => TransferBidReceiptEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => TransferBidReceiptEvent.fetch( client, id, ), new: ( fields: TransferBidReceiptEventFields, ) => { return new TransferBidReceiptEvent( [], fields ) }, kind: "StructClassReified", } }
2116
+
2117
+ static get r() { return TransferBidReceiptEvent.reified() }
2118
+
2119
+ static phantom( ): PhantomReified<ToTypeStr<TransferBidReceiptEvent>> { return phantom(TransferBidReceiptEvent.reified( )); } static get p() { return TransferBidReceiptEvent.phantom() }
2120
+
2121
+ static get bcs() { return bcs.struct("TransferBidReceiptEvent", {
2122
+
2123
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), amount: bcs.u64(), decimal: bcs.u64(), recipient: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), oracle_info: OracleInfo.bcs, u64_padding: bcs.vector(bcs.u64())
2124
+
2125
+ }) };
2126
+
2127
+ static fromFields( fields: Record<string, any> ): TransferBidReceiptEvent { return TransferBidReceiptEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), amount: decodeFromFields("u64", fields.amount), decimal: decodeFromFields("u64", fields.decimal), recipient: decodeFromFields("address", fields.recipient), oracleInfo: decodeFromFields(OracleInfo.reified(), fields.oracle_info), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
2128
+
2129
+ static fromFieldsWithTypes( item: FieldsWithTypes ): TransferBidReceiptEvent { if (!isTransferBidReceiptEvent(item.type)) { throw new Error("not a TransferBidReceiptEvent type");
2130
+
2131
+ }
2132
+
2133
+ return TransferBidReceiptEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), amount: decodeFromFieldsWithTypes("u64", item.fields.amount), decimal: decodeFromFieldsWithTypes("u64", item.fields.decimal), recipient: decodeFromFieldsWithTypes("address", item.fields.recipient), oracleInfo: decodeFromFieldsWithTypes(OracleInfo.reified(), item.fields.oracle_info), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
2134
+
2135
+ static fromBcs( data: Uint8Array ): TransferBidReceiptEvent { return TransferBidReceiptEvent.fromFields( TransferBidReceiptEvent.bcs.parse(data) ) }
2136
+
2137
+ toJSONField() { return {
2138
+
2139
+ signer: this.signer,index: this.index.toString(),amount: this.amount.toString(),decimal: this.decimal.toString(),recipient: this.recipient,oracleInfo: this.oracleInfo.toJSONField(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
2140
+
2141
+ } }
2142
+
2143
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
2144
+
2145
+ static fromJSONField( field: any ): TransferBidReceiptEvent { return TransferBidReceiptEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), amount: decodeFromJSONField("u64", field.amount), decimal: decodeFromJSONField("u64", field.decimal), recipient: decodeFromJSONField("address", field.recipient), oracleInfo: decodeFromJSONField(OracleInfo.reified(), field.oracleInfo), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
2146
+
2147
+ static fromJSON( json: Record<string, any> ): TransferBidReceiptEvent { if (json.$typeName !== TransferBidReceiptEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
2148
+
2149
+ return TransferBidReceiptEvent.fromJSONField( json, ) }
2150
+
2151
+ static fromSuiParsedData( content: SuiParsedData ): TransferBidReceiptEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isTransferBidReceiptEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a TransferBidReceiptEvent object`); } return TransferBidReceiptEvent.fromFieldsWithTypes( content ); }
2152
+
2153
+ static async fetch( client: SuiClient, id: string ): Promise<TransferBidReceiptEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching TransferBidReceiptEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isTransferBidReceiptEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a TransferBidReceiptEvent object`); }
2154
+ return TransferBidReceiptEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
2155
+
2156
+ }
2157
+
2158
+ /* ============================== UnsubscribeEvent =============================== */
2159
+
2160
+ export function isUnsubscribeEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::UnsubscribeEvent"; }
2161
+
2162
+ export interface UnsubscribeEventFields { signer: ToField<"address">; index: ToField<"u64">; token: ToField<TypeName>; amount: ToField<"u64">; decimal: ToField<"u64">; oracleInfo: ToField<OracleInfo>; u64Padding: ToField<Vector<"u64">> }
2163
+
2164
+ export type UnsubscribeEventReified = Reified< UnsubscribeEvent, UnsubscribeEventFields >;
2165
+
2166
+ export class UnsubscribeEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::UnsubscribeEvent"; static readonly $numTypeParams = 0;
2167
+
2168
+ readonly $typeName = UnsubscribeEvent.$typeName;
2169
+
2170
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::UnsubscribeEvent";
2171
+
2172
+ readonly $typeArgs: [];
2173
+
2174
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly token: ToField<TypeName>; readonly amount: ToField<"u64">; readonly decimal: ToField<"u64">; readonly oracleInfo: ToField<OracleInfo>; readonly u64Padding: ToField<Vector<"u64">>
2175
+
2176
+ private constructor(typeArgs: [], fields: UnsubscribeEventFields, ) { this.$fullTypeName = composeSuiType( UnsubscribeEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::UnsubscribeEvent"; this.$typeArgs = typeArgs;
2177
+
2178
+ this.signer = fields.signer;; this.index = fields.index;; this.token = fields.token;; this.amount = fields.amount;; this.decimal = fields.decimal;; this.oracleInfo = fields.oracleInfo;; this.u64Padding = fields.u64Padding; }
2179
+
2180
+ static reified( ): UnsubscribeEventReified { return { typeName: UnsubscribeEvent.$typeName, fullTypeName: composeSuiType( UnsubscribeEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::UnsubscribeEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => UnsubscribeEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => UnsubscribeEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => UnsubscribeEvent.fromBcs( data, ), bcs: UnsubscribeEvent.bcs, fromJSONField: (field: any) => UnsubscribeEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => UnsubscribeEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => UnsubscribeEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => UnsubscribeEvent.fetch( client, id, ), new: ( fields: UnsubscribeEventFields, ) => { return new UnsubscribeEvent( [], fields ) }, kind: "StructClassReified", } }
2181
+
2182
+ static get r() { return UnsubscribeEvent.reified() }
2183
+
2184
+ static phantom( ): PhantomReified<ToTypeStr<UnsubscribeEvent>> { return phantom(UnsubscribeEvent.reified( )); } static get p() { return UnsubscribeEvent.phantom() }
2185
+
2186
+ static get bcs() { return bcs.struct("UnsubscribeEvent", {
2187
+
2188
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), token: TypeName.bcs, amount: bcs.u64(), decimal: bcs.u64(), oracle_info: OracleInfo.bcs, u64_padding: bcs.vector(bcs.u64())
2189
+
2190
+ }) };
2191
+
2192
+ static fromFields( fields: Record<string, any> ): UnsubscribeEvent { return UnsubscribeEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), token: decodeFromFields(TypeName.reified(), fields.token), amount: decodeFromFields("u64", fields.amount), decimal: decodeFromFields("u64", fields.decimal), oracleInfo: decodeFromFields(OracleInfo.reified(), fields.oracle_info), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
2193
+
2194
+ static fromFieldsWithTypes( item: FieldsWithTypes ): UnsubscribeEvent { if (!isUnsubscribeEvent(item.type)) { throw new Error("not a UnsubscribeEvent type");
2195
+
2196
+ }
2197
+
2198
+ return UnsubscribeEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), token: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.token), amount: decodeFromFieldsWithTypes("u64", item.fields.amount), decimal: decodeFromFieldsWithTypes("u64", item.fields.decimal), oracleInfo: decodeFromFieldsWithTypes(OracleInfo.reified(), item.fields.oracle_info), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
2199
+
2200
+ static fromBcs( data: Uint8Array ): UnsubscribeEvent { return UnsubscribeEvent.fromFields( UnsubscribeEvent.bcs.parse(data) ) }
2201
+
2202
+ toJSONField() { return {
2203
+
2204
+ signer: this.signer,index: this.index.toString(),token: this.token.toJSONField(),amount: this.amount.toString(),decimal: this.decimal.toString(),oracleInfo: this.oracleInfo.toJSONField(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
2205
+
2206
+ } }
2207
+
2208
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
2209
+
2210
+ static fromJSONField( field: any ): UnsubscribeEvent { return UnsubscribeEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), token: decodeFromJSONField(TypeName.reified(), field.token), amount: decodeFromJSONField("u64", field.amount), decimal: decodeFromJSONField("u64", field.decimal), oracleInfo: decodeFromJSONField(OracleInfo.reified(), field.oracleInfo), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
2211
+
2212
+ static fromJSON( json: Record<string, any> ): UnsubscribeEvent { if (json.$typeName !== UnsubscribeEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
2213
+
2214
+ return UnsubscribeEvent.fromJSONField( json, ) }
2215
+
2216
+ static fromSuiParsedData( content: SuiParsedData ): UnsubscribeEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isUnsubscribeEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a UnsubscribeEvent object`); } return UnsubscribeEvent.fromFieldsWithTypes( content ); }
2217
+
2218
+ static async fetch( client: SuiClient, id: string ): Promise<UnsubscribeEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching UnsubscribeEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isUnsubscribeEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a UnsubscribeEvent object`); }
2219
+ return UnsubscribeEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
2220
+
2221
+ }
2222
+
2223
+ /* ============================== VaultConfig =============================== */
2224
+
2225
+ export function isVaultConfig(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::VaultConfig"; }
2226
+
2227
+ export interface VaultConfigFields { payoffConfigs: ToField<Vector<PayoffConfig>>; strikeIncrement: ToField<"u64">; decaySpeed: ToField<"u64">; initialPrice: ToField<"u64">; finalPrice: ToField<"u64">; u64Padding: ToField<Vector<"u64">> }
2228
+
2229
+ export type VaultConfigReified = Reified< VaultConfig, VaultConfigFields >;
2230
+
2231
+ export class VaultConfig implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::VaultConfig"; static readonly $numTypeParams = 0;
2232
+
2233
+ readonly $typeName = VaultConfig.$typeName;
2234
+
2235
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::VaultConfig";
2236
+
2237
+ readonly $typeArgs: [];
2238
+
2239
+ readonly payoffConfigs: ToField<Vector<PayoffConfig>>; readonly strikeIncrement: ToField<"u64">; readonly decaySpeed: ToField<"u64">; readonly initialPrice: ToField<"u64">; readonly finalPrice: ToField<"u64">; readonly u64Padding: ToField<Vector<"u64">>
2240
+
2241
+ private constructor(typeArgs: [], fields: VaultConfigFields, ) { this.$fullTypeName = composeSuiType( VaultConfig.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::VaultConfig"; this.$typeArgs = typeArgs;
2242
+
2243
+ this.payoffConfigs = fields.payoffConfigs;; this.strikeIncrement = fields.strikeIncrement;; this.decaySpeed = fields.decaySpeed;; this.initialPrice = fields.initialPrice;; this.finalPrice = fields.finalPrice;; this.u64Padding = fields.u64Padding; }
2244
+
2245
+ static reified( ): VaultConfigReified { return { typeName: VaultConfig.$typeName, fullTypeName: composeSuiType( VaultConfig.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::VaultConfig", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => VaultConfig.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => VaultConfig.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => VaultConfig.fromBcs( data, ), bcs: VaultConfig.bcs, fromJSONField: (field: any) => VaultConfig.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => VaultConfig.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => VaultConfig.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => VaultConfig.fetch( client, id, ), new: ( fields: VaultConfigFields, ) => { return new VaultConfig( [], fields ) }, kind: "StructClassReified", } }
2246
+
2247
+ static get r() { return VaultConfig.reified() }
2248
+
2249
+ static phantom( ): PhantomReified<ToTypeStr<VaultConfig>> { return phantom(VaultConfig.reified( )); } static get p() { return VaultConfig.phantom() }
2250
+
2251
+ static get bcs() { return bcs.struct("VaultConfig", {
2252
+
2253
+ payoff_configs: bcs.vector(PayoffConfig.bcs), strike_increment: bcs.u64(), decay_speed: bcs.u64(), initial_price: bcs.u64(), final_price: bcs.u64(), u64_padding: bcs.vector(bcs.u64())
2254
+
2255
+ }) };
2256
+
2257
+ static fromFields( fields: Record<string, any> ): VaultConfig { return VaultConfig.reified( ).new( { payoffConfigs: decodeFromFields(reified.vector(PayoffConfig.reified()), fields.payoff_configs), strikeIncrement: decodeFromFields("u64", fields.strike_increment), decaySpeed: decodeFromFields("u64", fields.decay_speed), initialPrice: decodeFromFields("u64", fields.initial_price), finalPrice: decodeFromFields("u64", fields.final_price), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
2258
+
2259
+ static fromFieldsWithTypes( item: FieldsWithTypes ): VaultConfig { if (!isVaultConfig(item.type)) { throw new Error("not a VaultConfig type");
2260
+
2261
+ }
2262
+
2263
+ return VaultConfig.reified( ).new( { payoffConfigs: decodeFromFieldsWithTypes(reified.vector(PayoffConfig.reified()), item.fields.payoff_configs), strikeIncrement: decodeFromFieldsWithTypes("u64", item.fields.strike_increment), decaySpeed: decodeFromFieldsWithTypes("u64", item.fields.decay_speed), initialPrice: decodeFromFieldsWithTypes("u64", item.fields.initial_price), finalPrice: decodeFromFieldsWithTypes("u64", item.fields.final_price), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
2264
+
2265
+ static fromBcs( data: Uint8Array ): VaultConfig { return VaultConfig.fromFields( VaultConfig.bcs.parse(data) ) }
2266
+
2267
+ toJSONField() { return {
2268
+
2269
+ payoffConfigs: fieldToJSON<Vector<PayoffConfig>>(`vector<0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::PayoffConfig>`, this.payoffConfigs),strikeIncrement: this.strikeIncrement.toString(),decaySpeed: this.decaySpeed.toString(),initialPrice: this.initialPrice.toString(),finalPrice: this.finalPrice.toString(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
2270
+
2271
+ } }
2272
+
2273
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
2274
+
2275
+ static fromJSONField( field: any ): VaultConfig { return VaultConfig.reified( ).new( { payoffConfigs: decodeFromJSONField(reified.vector(PayoffConfig.reified()), field.payoffConfigs), strikeIncrement: decodeFromJSONField("u64", field.strikeIncrement), decaySpeed: decodeFromJSONField("u64", field.decaySpeed), initialPrice: decodeFromJSONField("u64", field.initialPrice), finalPrice: decodeFromJSONField("u64", field.finalPrice), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
2276
+
2277
+ static fromJSON( json: Record<string, any> ): VaultConfig { if (json.$typeName !== VaultConfig.$typeName) { throw new Error("not a WithTwoGenerics json object") };
2278
+
2279
+ return VaultConfig.fromJSONField( json, ) }
2280
+
2281
+ static fromSuiParsedData( content: SuiParsedData ): VaultConfig { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isVaultConfig(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a VaultConfig object`); } return VaultConfig.fromFieldsWithTypes( content ); }
2282
+
2283
+ static async fetch( client: SuiClient, id: string ): Promise<VaultConfig> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching VaultConfig object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isVaultConfig(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a VaultConfig object`); }
2284
+ return VaultConfig.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
2285
+
2286
+ }
2287
+
2288
+ /* ============================== WithdrawEvent =============================== */
2289
+
2290
+ export function isWithdrawEvent(type: string): boolean { type = compressSuiType(type); return type === "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::WithdrawEvent"; }
2291
+
2292
+ export interface WithdrawEventFields { signer: ToField<"address">; index: ToField<"u64">; token: ToField<TypeName>; amount: ToField<"u64">; decimal: ToField<"u64">; oracleInfo: ToField<OracleInfo>; u64Padding: ToField<Vector<"u64">> }
2293
+
2294
+ export type WithdrawEventReified = Reified< WithdrawEvent, WithdrawEventFields >;
2295
+
2296
+ export class WithdrawEvent implements StructClass { static readonly $typeName = "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::WithdrawEvent"; static readonly $numTypeParams = 0;
2297
+
2298
+ readonly $typeName = WithdrawEvent.$typeName;
2299
+
2300
+ readonly $fullTypeName: "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::WithdrawEvent";
2301
+
2302
+ readonly $typeArgs: [];
2303
+
2304
+ readonly signer: ToField<"address">; readonly index: ToField<"u64">; readonly token: ToField<TypeName>; readonly amount: ToField<"u64">; readonly decimal: ToField<"u64">; readonly oracleInfo: ToField<OracleInfo>; readonly u64Padding: ToField<Vector<"u64">>
2305
+
2306
+ private constructor(typeArgs: [], fields: WithdrawEventFields, ) { this.$fullTypeName = composeSuiType( WithdrawEvent.$typeName, ...typeArgs ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::WithdrawEvent"; this.$typeArgs = typeArgs;
2307
+
2308
+ this.signer = fields.signer;; this.index = fields.index;; this.token = fields.token;; this.amount = fields.amount;; this.decimal = fields.decimal;; this.oracleInfo = fields.oracleInfo;; this.u64Padding = fields.u64Padding; }
2309
+
2310
+ static reified( ): WithdrawEventReified { return { typeName: WithdrawEvent.$typeName, fullTypeName: composeSuiType( WithdrawEvent.$typeName, ...[] ) as "0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f::typus_dov_single::WithdrawEvent", typeArgs: [ ] as [], reifiedTypeArgs: [], fromFields: (fields: Record<string, any>) => WithdrawEvent.fromFields( fields, ), fromFieldsWithTypes: (item: FieldsWithTypes) => WithdrawEvent.fromFieldsWithTypes( item, ), fromBcs: (data: Uint8Array) => WithdrawEvent.fromBcs( data, ), bcs: WithdrawEvent.bcs, fromJSONField: (field: any) => WithdrawEvent.fromJSONField( field, ), fromJSON: (json: Record<string, any>) => WithdrawEvent.fromJSON( json, ), fromSuiParsedData: (content: SuiParsedData) => WithdrawEvent.fromSuiParsedData( content, ), fetch: async (client: SuiClient, id: string) => WithdrawEvent.fetch( client, id, ), new: ( fields: WithdrawEventFields, ) => { return new WithdrawEvent( [], fields ) }, kind: "StructClassReified", } }
2311
+
2312
+ static get r() { return WithdrawEvent.reified() }
2313
+
2314
+ static phantom( ): PhantomReified<ToTypeStr<WithdrawEvent>> { return phantom(WithdrawEvent.reified( )); } static get p() { return WithdrawEvent.phantom() }
2315
+
2316
+ static get bcs() { return bcs.struct("WithdrawEvent", {
2317
+
2318
+ signer: bcs.bytes(32).transform({ input: (val: string) => fromHEX(val), output: (val: Uint8Array) => toHEX(val), }), index: bcs.u64(), token: TypeName.bcs, amount: bcs.u64(), decimal: bcs.u64(), oracle_info: OracleInfo.bcs, u64_padding: bcs.vector(bcs.u64())
2319
+
2320
+ }) };
2321
+
2322
+ static fromFields( fields: Record<string, any> ): WithdrawEvent { return WithdrawEvent.reified( ).new( { signer: decodeFromFields("address", fields.signer), index: decodeFromFields("u64", fields.index), token: decodeFromFields(TypeName.reified(), fields.token), amount: decodeFromFields("u64", fields.amount), decimal: decodeFromFields("u64", fields.decimal), oracleInfo: decodeFromFields(OracleInfo.reified(), fields.oracle_info), u64Padding: decodeFromFields(reified.vector("u64"), fields.u64_padding) } ) }
2323
+
2324
+ static fromFieldsWithTypes( item: FieldsWithTypes ): WithdrawEvent { if (!isWithdrawEvent(item.type)) { throw new Error("not a WithdrawEvent type");
2325
+
2326
+ }
2327
+
2328
+ return WithdrawEvent.reified( ).new( { signer: decodeFromFieldsWithTypes("address", item.fields.signer), index: decodeFromFieldsWithTypes("u64", item.fields.index), token: decodeFromFieldsWithTypes(TypeName.reified(), item.fields.token), amount: decodeFromFieldsWithTypes("u64", item.fields.amount), decimal: decodeFromFieldsWithTypes("u64", item.fields.decimal), oracleInfo: decodeFromFieldsWithTypes(OracleInfo.reified(), item.fields.oracle_info), u64Padding: decodeFromFieldsWithTypes(reified.vector("u64"), item.fields.u64_padding) } ) }
2329
+
2330
+ static fromBcs( data: Uint8Array ): WithdrawEvent { return WithdrawEvent.fromFields( WithdrawEvent.bcs.parse(data) ) }
2331
+
2332
+ toJSONField() { return {
2333
+
2334
+ signer: this.signer,index: this.index.toString(),token: this.token.toJSONField(),amount: this.amount.toString(),decimal: this.decimal.toString(),oracleInfo: this.oracleInfo.toJSONField(),u64Padding: fieldToJSON<Vector<"u64">>(`vector<u64>`, this.u64Padding),
2335
+
2336
+ } }
2337
+
2338
+ toJSON() { return { $typeName: this.$typeName, $typeArgs: this.$typeArgs, ...this.toJSONField() } }
2339
+
2340
+ static fromJSONField( field: any ): WithdrawEvent { return WithdrawEvent.reified( ).new( { signer: decodeFromJSONField("address", field.signer), index: decodeFromJSONField("u64", field.index), token: decodeFromJSONField(TypeName.reified(), field.token), amount: decodeFromJSONField("u64", field.amount), decimal: decodeFromJSONField("u64", field.decimal), oracleInfo: decodeFromJSONField(OracleInfo.reified(), field.oracleInfo), u64Padding: decodeFromJSONField(reified.vector("u64"), field.u64Padding) } ) }
2341
+
2342
+ static fromJSON( json: Record<string, any> ): WithdrawEvent { if (json.$typeName !== WithdrawEvent.$typeName) { throw new Error("not a WithTwoGenerics json object") };
2343
+
2344
+ return WithdrawEvent.fromJSONField( json, ) }
2345
+
2346
+ static fromSuiParsedData( content: SuiParsedData ): WithdrawEvent { if (content.dataType !== "moveObject") { throw new Error("not an object"); } if (!isWithdrawEvent(content.type)) { throw new Error(`object at ${(content.fields as any).id} is not a WithdrawEvent object`); } return WithdrawEvent.fromFieldsWithTypes( content ); }
2347
+
2348
+ static async fetch( client: SuiClient, id: string ): Promise<WithdrawEvent> { const res = await client.getObject({ id, options: { showBcs: true, }, }); if (res.error) { throw new Error(`error fetching WithdrawEvent object at id ${id}: ${res.error.code}`); } if (res.data?.bcs?.dataType !== "moveObject" || !isWithdrawEvent(res.data.bcs.type)) { throw new Error(`object at id ${id} is not a WithdrawEvent object`); }
2349
+ return WithdrawEvent.fromBcs( fromB64(res.data.bcs.bcsBytes) ); }
2350
+
2351
+ }