@typus/typus-sdk 1.5.3 → 1.5.5-a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (446) hide show
  1. package/dist/src/auto-bid/view-function.js +2 -2
  2. package/dist/src/constants/token.d.ts +5 -53
  3. package/dist/src/constants/token.js +174 -104
  4. package/dist/src/dice/api.js +2 -2
  5. package/dist/src/dice/fetch.js +2 -2
  6. package/dist/src/dice/user-entry.js +2 -2
  7. package/dist/src/typus/airdrop/authority-entry.js +2 -2
  8. package/dist/src/typus/airdrop/view-function.js +2 -2
  9. package/dist/src/typus/leaderboard/authority-entry.js +2 -2
  10. package/dist/src/typus/leaderboard/view-function.js +2 -2
  11. package/dist/src/typus/tails-staking/view-function.js +2 -2
  12. package/dist/src/typus/user/view-function.js +2 -2
  13. package/dist/src/typus-dov-single-v2/authority-entry.js +2 -2
  14. package/dist/src/typus-dov-single-v2/function/bidding.js +2 -2
  15. package/dist/src/typus-dov-single-v2/history/user-history.d.ts +3 -1
  16. package/dist/src/typus-dov-single-v2/history/user-history.js +35 -2
  17. package/dist/src/typus-dov-single-v2/history/vault-history.js +2 -2
  18. package/dist/src/typus-dov-single-v2/view-function.js +2 -2
  19. package/dist/src/typus-launch/airdrop/authority-entry.js +4 -4
  20. package/dist/src/typus-launch/airdrop/view-function.js +2 -2
  21. package/dist/src/typus-launch/auction/view-function.js +2 -2
  22. package/dist/src/typus-launch/funding-vault/view-function.js +2 -2
  23. package/dist/src/typus-launch/improvement-proposal/authority-entry.js +2 -2
  24. package/dist/src/typus-launch/improvement-proposal/view-function.js +2 -2
  25. package/dist/src/typus-launch/ve-typus/view-function.d.ts +7 -0
  26. package/dist/src/typus-launch/ve-typus/view-function.js +34 -2
  27. package/dist/src/typus-nft/fetch.js +2 -2
  28. package/dist/src/typus-nft/user-entry.js +2 -2
  29. package/dist/src/typus-safu/user-history.js +2 -2
  30. package/dist/src/typus-safu/view-function.js +2 -2
  31. package/dist/src/utils/api/defillama/tvl.js +2 -2
  32. package/dist/src/utils/api/price.js +2 -2
  33. package/dist/src/utils/api/sentio/events.js +2 -2
  34. package/dist/src/utils/api/sentio/leader-board.js +2 -2
  35. package/dist/src/utils/api/sentio/reward-generated.js +2 -2
  36. package/dist/src/utils/api/sentio/vault-history.js +2 -2
  37. package/dist/src/utils/mint.js +2 -2
  38. package/dist/src/utils/pyth/pythClient.js +2 -2
  39. package/dist/src/utils/typusConfig.js +26 -13
  40. package/package.json +6 -54
  41. package/dist/src/typus-perp/_dependencies/source/0x1/ascii/structs.d.ts +0 -92
  42. package/dist/src/typus-perp/_dependencies/source/0x1/ascii/structs.js +0 -396
  43. package/dist/src/typus-perp/_dependencies/source/0x1/bit-vector/structs.d.ts +0 -56
  44. package/dist/src/typus-perp/_dependencies/source/0x1/bit-vector/structs.js +0 -258
  45. package/dist/src/typus-perp/_dependencies/source/0x1/fixed-point32/structs.d.ts +0 -46
  46. package/dist/src/typus-perp/_dependencies/source/0x1/fixed-point32/structs.js +0 -228
  47. package/dist/src/typus-perp/_dependencies/source/0x1/index.d.ts +0 -3
  48. package/dist/src/typus-perp/_dependencies/source/0x1/index.js +0 -6
  49. package/dist/src/typus-perp/_dependencies/source/0x1/init.d.ts +0 -2
  50. package/dist/src/typus-perp/_dependencies/source/0x1/init.js +0 -45
  51. package/dist/src/typus-perp/_dependencies/source/0x1/option/structs.d.ts +0 -52
  52. package/dist/src/typus-perp/_dependencies/source/0x1/option/structs.js +0 -267
  53. package/dist/src/typus-perp/_dependencies/source/0x1/string/structs.d.ts +0 -50
  54. package/dist/src/typus-perp/_dependencies/source/0x1/string/structs.js +0 -252
  55. package/dist/src/typus-perp/_dependencies/source/0x1/type-name/structs.d.ts +0 -53
  56. package/dist/src/typus-perp/_dependencies/source/0x1/type-name/structs.js +0 -229
  57. package/dist/src/typus-perp/_dependencies/source/0x1/uq32-32/structs.d.ts +0 -46
  58. package/dist/src/typus-perp/_dependencies/source/0x1/uq32-32/structs.js +0 -228
  59. package/dist/src/typus-perp/_dependencies/source/0x1/uq64-64/structs.d.ts +0 -46
  60. package/dist/src/typus-perp/_dependencies/source/0x1/uq64-64/structs.js +0 -228
  61. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +0 -5
  62. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +0 -8
  63. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +0 -2
  64. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +0 -40
  65. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +0 -350
  66. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +0 -793
  67. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +0 -111
  68. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +0 -395
  69. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +0 -70
  70. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +0 -252
  71. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +0 -70
  72. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +0 -255
  73. package/dist/src/typus-perp/_dependencies/source/0x2/authenticator-state/structs.d.ts +0 -464
  74. package/dist/src/typus-perp/_dependencies/source/0x2/authenticator-state/structs.js +0 -894
  75. package/dist/src/typus-perp/_dependencies/source/0x2/bag/structs.d.ts +0 -61
  76. package/dist/src/typus-perp/_dependencies/source/0x2/bag/structs.js +0 -235
  77. package/dist/src/typus-perp/_dependencies/source/0x2/balance/structs.d.ts +0 -88
  78. package/dist/src/typus-perp/_dependencies/source/0x2/balance/structs.js +0 -398
  79. package/dist/src/typus-perp/_dependencies/source/0x2/bcs/structs.d.ts +0 -50
  80. package/dist/src/typus-perp/_dependencies/source/0x2/bcs/structs.js +0 -252
  81. package/dist/src/typus-perp/_dependencies/source/0x2/bls12381/structs.d.ts +0 -214
  82. package/dist/src/typus-perp/_dependencies/source/0x2/bls12381/structs.js +0 -820
  83. package/dist/src/typus-perp/_dependencies/source/0x2/borrow/structs.d.ts +0 -113
  84. package/dist/src/typus-perp/_dependencies/source/0x2/borrow/structs.js +0 -410
  85. package/dist/src/typus-perp/_dependencies/source/0x2/clock/structs.d.ts +0 -61
  86. package/dist/src/typus-perp/_dependencies/source/0x2/clock/structs.js +0 -235
  87. package/dist/src/typus-perp/_dependencies/source/0x2/coin/structs.d.ts +0 -460
  88. package/dist/src/typus-perp/_dependencies/source/0x2/coin/structs.js +0 -1259
  89. package/dist/src/typus-perp/_dependencies/source/0x2/config/structs.d.ts +0 -179
  90. package/dist/src/typus-perp/_dependencies/source/0x2/config/structs.js +0 -577
  91. package/dist/src/typus-perp/_dependencies/source/0x2/deny-list/structs.d.ts +0 -430
  92. package/dist/src/typus-perp/_dependencies/source/0x2/deny-list/structs.js +0 -1177
  93. package/dist/src/typus-perp/_dependencies/source/0x2/display/structs.d.ts +0 -241
  94. package/dist/src/typus-perp/_dependencies/source/0x2/display/structs.js +0 -584
  95. package/dist/src/typus-perp/_dependencies/source/0x2/dynamic-field/structs.d.ts +0 -68
  96. package/dist/src/typus-perp/_dependencies/source/0x2/dynamic-field/structs.js +0 -256
  97. package/dist/src/typus-perp/_dependencies/source/0x2/dynamic-object-field/structs.d.ts +0 -47
  98. package/dist/src/typus-perp/_dependencies/source/0x2/dynamic-object-field/structs.js +0 -242
  99. package/dist/src/typus-perp/_dependencies/source/0x2/groth16/structs.d.ts +0 -204
  100. package/dist/src/typus-perp/_dependencies/source/0x2/groth16/structs.js +0 -710
  101. package/dist/src/typus-perp/_dependencies/source/0x2/group-ops/structs.d.ts +0 -50
  102. package/dist/src/typus-perp/_dependencies/source/0x2/group-ops/structs.js +0 -263
  103. package/dist/src/typus-perp/_dependencies/source/0x2/index.d.ts +0 -3
  104. package/dist/src/typus-perp/_dependencies/source/0x2/index.js +0 -6
  105. package/dist/src/typus-perp/_dependencies/source/0x2/init.d.ts +0 -2
  106. package/dist/src/typus-perp/_dependencies/source/0x2/init.js +0 -161
  107. package/dist/src/typus-perp/_dependencies/source/0x2/kiosk/structs.d.ts +0 -606
  108. package/dist/src/typus-perp/_dependencies/source/0x2/kiosk/structs.js +0 -1724
  109. package/dist/src/typus-perp/_dependencies/source/0x2/kiosk-extension/structs.d.ts +0 -121
  110. package/dist/src/typus-perp/_dependencies/source/0x2/kiosk-extension/structs.js +0 -400
  111. package/dist/src/typus-perp/_dependencies/source/0x2/linked-table/structs.d.ts +0 -153
  112. package/dist/src/typus-perp/_dependencies/source/0x2/linked-table/structs.js +0 -438
  113. package/dist/src/typus-perp/_dependencies/source/0x2/object/structs.d.ts +0 -92
  114. package/dist/src/typus-perp/_dependencies/source/0x2/object/structs.js +0 -377
  115. package/dist/src/typus-perp/_dependencies/source/0x2/object-bag/structs.d.ts +0 -61
  116. package/dist/src/typus-perp/_dependencies/source/0x2/object-bag/structs.js +0 -235
  117. package/dist/src/typus-perp/_dependencies/source/0x2/object-table/structs.d.ts +0 -61
  118. package/dist/src/typus-perp/_dependencies/source/0x2/object-table/structs.js +0 -248
  119. package/dist/src/typus-perp/_dependencies/source/0x2/package/structs.d.ts +0 -280
  120. package/dist/src/typus-perp/_dependencies/source/0x2/package/structs.js +0 -752
  121. package/dist/src/typus-perp/_dependencies/source/0x2/priority-queue/structs.d.ts +0 -111
  122. package/dist/src/typus-perp/_dependencies/source/0x2/priority-queue/structs.js +0 -434
  123. package/dist/src/typus-perp/_dependencies/source/0x2/random/structs.d.ts +0 -204
  124. package/dist/src/typus-perp/_dependencies/source/0x2/random/structs.js +0 -586
  125. package/dist/src/typus-perp/_dependencies/source/0x2/sui/structs.d.ts +0 -46
  126. package/dist/src/typus-perp/_dependencies/source/0x2/sui/structs.js +0 -228
  127. package/dist/src/typus-perp/_dependencies/source/0x2/table/structs.d.ts +0 -61
  128. package/dist/src/typus-perp/_dependencies/source/0x2/table/structs.js +0 -248
  129. package/dist/src/typus-perp/_dependencies/source/0x2/table-vec/structs.d.ts +0 -68
  130. package/dist/src/typus-perp/_dependencies/source/0x2/table-vec/structs.js +0 -264
  131. package/dist/src/typus-perp/_dependencies/source/0x2/token/structs.d.ts +0 -449
  132. package/dist/src/typus-perp/_dependencies/source/0x2/token/structs.js +0 -1107
  133. package/dist/src/typus-perp/_dependencies/source/0x2/transfer/structs.d.ts +0 -57
  134. package/dist/src/typus-perp/_dependencies/source/0x2/transfer/structs.js +0 -246
  135. package/dist/src/typus-perp/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -370
  136. package/dist/src/typus-perp/_dependencies/source/0x2/transfer-policy/structs.js +0 -1099
  137. package/dist/src/typus-perp/_dependencies/source/0x2/tx-context/structs.d.ts +0 -74
  138. package/dist/src/typus-perp/_dependencies/source/0x2/tx-context/structs.js +0 -279
  139. package/dist/src/typus-perp/_dependencies/source/0x2/url/structs.d.ts +0 -53
  140. package/dist/src/typus-perp/_dependencies/source/0x2/url/structs.js +0 -229
  141. package/dist/src/typus-perp/_dependencies/source/0x2/vec-map/structs.d.ts +0 -111
  142. package/dist/src/typus-perp/_dependencies/source/0x2/vec-map/structs.js +0 -436
  143. package/dist/src/typus-perp/_dependencies/source/0x2/vec-set/structs.d.ts +0 -51
  144. package/dist/src/typus-perp/_dependencies/source/0x2/vec-set/structs.js +0 -266
  145. package/dist/src/typus-perp/_dependencies/source/0x2/versioned/structs.d.ts +0 -113
  146. package/dist/src/typus-perp/_dependencies/source/0x2/versioned/structs.js +0 -389
  147. package/dist/src/typus-perp/_dependencies/source/0x2/zklogin-verified-id/structs.d.ts +0 -110
  148. package/dist/src/typus-perp/_dependencies/source/0x2/zklogin-verified-id/structs.js +0 -263
  149. package/dist/src/typus-perp/_dependencies/source/0x2/zklogin-verified-issuer/structs.d.ts +0 -74
  150. package/dist/src/typus-perp/_dependencies/source/0x2/zklogin-verified-issuer/structs.js +0 -245
  151. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +0 -3
  152. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +0 -6
  153. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +0 -2
  154. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +0 -30
  155. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +0 -55
  156. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +0 -229
  157. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +0 -4
  158. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +0 -7
  159. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +0 -2
  160. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +0 -33
  161. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +0 -46
  162. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +0 -228
  163. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +0 -121
  164. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +0 -401
  165. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +0 -489
  166. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +0 -1092
  167. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +0 -147
  168. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +0 -446
  169. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +0 -239
  170. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +0 -643
  171. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +0 -405
  172. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +0 -898
  173. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +0 -8
  174. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +0 -11
  175. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +0 -2
  176. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +0 -92
  177. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/keyed-big-vector/structs.d.ts +0 -227
  178. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/keyed-big-vector/structs.js +0 -622
  179. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +0 -699
  180. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +0 -1476
  181. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.d.ts +0 -161
  182. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +0 -438
  183. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +0 -147
  184. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +0 -430
  185. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.d.ts +0 -1071
  186. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.js +0 -2275
  187. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +0 -279
  188. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +0 -732
  189. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +0 -328
  190. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +0 -900
  191. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +0 -628
  192. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +0 -1335
  193. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +0 -9
  194. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +0 -12
  195. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +0 -2
  196. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +0 -62
  197. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +0 -94
  198. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.js +0 -382
  199. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +0 -454
  200. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +0 -886
  201. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +0 -68
  202. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +0 -264
  203. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +0 -1117
  204. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +0 -2407
  205. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +0 -1524
  206. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +0 -3052
  207. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +0 -10
  208. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +0 -13
  209. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +0 -2
  210. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +0 -135
  211. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +0 -1267
  212. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +0 -2846
  213. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +0 -1412
  214. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +0 -1669
  215. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +0 -425
  216. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +0 -1249
  217. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +0 -1156
  218. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +0 -1869
  219. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +0 -82
  220. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +0 -264
  221. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +0 -5022
  222. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +0 -7680
  223. package/dist/src/typus-perp/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +0 -3
  224. package/dist/src/typus-perp/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +0 -6
  225. package/dist/src/typus-perp/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +0 -2
  226. package/dist/src/typus-perp/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +0 -4
  227. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +0 -88
  228. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +0 -256
  229. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +0 -347
  230. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +0 -581
  231. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +0 -73
  232. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +0 -258
  233. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +0 -876
  234. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +0 -1735
  235. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +0 -46
  236. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +0 -224
  237. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +0 -3
  238. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +0 -6
  239. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +0 -2
  240. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +0 -79
  241. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +0 -155
  242. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +0 -444
  243. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.d.ts +0 -2386
  244. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +0 -5014
  245. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +0 -745
  246. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +0 -1229
  247. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +0 -3
  248. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +0 -6
  249. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +0 -2
  250. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +0 -43
  251. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +0 -87
  252. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +0 -277
  253. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +0 -58
  254. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +0 -240
  255. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +0 -121
  256. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +0 -322
  257. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +0 -55
  258. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +0 -229
  259. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/batch-price-attestation/structs.d.ts +0 -289
  260. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/batch-price-attestation/structs.js +0 -443
  261. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/contract-upgrade/structs.d.ts +0 -114
  262. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/contract-upgrade/structs.js +0 -384
  263. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/data-source/structs.d.ts +0 -71
  264. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/data-source/structs.js +0 -235
  265. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/event/structs.d.ts +0 -209
  266. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/event/structs.js +0 -383
  267. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance/structs.d.ts +0 -73
  268. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance/structs.js +0 -265
  269. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-action/structs.d.ts +0 -46
  270. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-action/structs.js +0 -228
  271. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-instruction/structs.d.ts +0 -77
  272. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-instruction/structs.js +0 -271
  273. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/hot-potato-vector/structs.d.ts +0 -51
  274. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/hot-potato-vector/structs.js +0 -266
  275. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/i64/structs.d.ts +0 -52
  276. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/i64/structs.js +0 -234
  277. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.d.ts +0 -3
  278. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.js +0 -6
  279. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/init.d.ts +0 -2
  280. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/init.js +0 -85
  281. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/migrate/structs.d.ts +0 -51
  282. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/migrate/structs.js +0 -229
  283. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price/structs.d.ts +0 -89
  284. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price/structs.js +0 -247
  285. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-feed/structs.d.ts +0 -158
  286. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-feed/structs.js +0 -242
  287. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-identifier/structs.d.ts +0 -50
  288. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-identifier/structs.js +0 -252
  289. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-info/structs.d.ts +0 -360
  290. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-info/structs.js +0 -396
  291. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-status/structs.d.ts +0 -46
  292. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-status/structs.js +0 -228
  293. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set/structs.d.ts +0 -120
  294. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set/structs.js +0 -421
  295. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-data-sources/structs.d.ts +0 -81
  296. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-data-sources/structs.js +0 -253
  297. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-fee-recipient/structs.d.ts +0 -46
  298. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-fee-recipient/structs.js +0 -231
  299. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-governance-data-source/structs.d.ts +0 -77
  300. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-governance-data-source/structs.js +0 -241
  301. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-stale-price-threshold/structs.d.ts +0 -46
  302. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-stale-price-threshold/structs.js +0 -228
  303. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-update-fee/structs.d.ts +0 -52
  304. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-update-fee/structs.js +0 -234
  305. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/setup/structs.d.ts +0 -55
  306. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/setup/structs.js +0 -229
  307. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.d.ts +0 -282
  308. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.js +0 -573
  309. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.d.ts +0 -130
  310. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.js +0 -524
  311. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +0 -3
  312. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +0 -6
  313. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.d.ts +0 -2
  314. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +0 -36
  315. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +0 -88
  316. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +0 -376
  317. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +0 -94
  318. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.js +0 -382
  319. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +0 -46
  320. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +0 -239
  321. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes20/structs.d.ts +0 -50
  322. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes20/structs.js +0 -252
  323. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes32/structs.d.ts +0 -50
  324. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes32/structs.js +0 -252
  325. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed-vaas/structs.d.ts +0 -77
  326. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed-vaas/structs.js +0 -254
  327. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/cursor/structs.d.ts +0 -51
  328. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/cursor/structs.js +0 -266
  329. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.d.ts +0 -153
  330. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.js +0 -531
  331. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/external-address/structs.d.ts +0 -57
  332. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/external-address/structs.js +0 -229
  333. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/fee-collector/structs.d.ts +0 -63
  334. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/fee-collector/structs.js +0 -260
  335. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.d.ts +0 -168
  336. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.js +0 -460
  337. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian/structs.d.ts +0 -57
  338. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian/structs.js +0 -229
  339. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-set/structs.d.ts +0 -81
  340. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-set/structs.js +0 -265
  341. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-signature/structs.d.ts +0 -85
  342. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-signature/structs.js +0 -247
  343. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.d.ts +0 -3
  344. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.js +0 -6
  345. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/init.d.ts +0 -2
  346. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/init.js +0 -90
  347. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/migrate/structs.d.ts +0 -51
  348. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/migrate/structs.js +0 -229
  349. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.d.ts +0 -194
  350. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.js +0 -680
  351. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.d.ts +0 -151
  352. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.js +0 -449
  353. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set/structs.d.ts +0 -110
  354. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set/structs.js +0 -412
  355. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set-fee/structs.d.ts +0 -88
  356. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set-fee/structs.js +0 -376
  357. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/setup/structs.d.ts +0 -55
  358. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/setup/structs.js +0 -229
  359. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.d.ts +0 -278
  360. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.js +0 -455
  361. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/transfer-fee/structs.d.ts +0 -94
  362. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/transfer-fee/structs.js +0 -385
  363. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/update-guardian-set/structs.d.ts +0 -159
  364. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/update-guardian-set/structs.js +0 -555
  365. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.d.ts +0 -156
  366. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.js +0 -532
  367. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/vaa/structs.d.ts +0 -128
  368. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/vaa/structs.js +0 -302
  369. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/version-control/structs.d.ts +0 -88
  370. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/version-control/structs.js +0 -376
  371. package/dist/src/typus-perp/_framework/init-loader.d.ts +0 -2
  372. package/dist/src/typus-perp/_framework/init-loader.js +0 -63
  373. package/dist/src/typus-perp/_framework/loader.d.ts +0 -17
  374. package/dist/src/typus-perp/_framework/loader.js +0 -108
  375. package/dist/src/typus-perp/_framework/reified.d.ts +0 -108
  376. package/dist/src/typus-perp/_framework/reified.js +0 -237
  377. package/dist/src/typus-perp/_framework/util.d.ts +0 -35
  378. package/dist/src/typus-perp/_framework/util.js +0 -396
  379. package/dist/src/typus-perp/_framework/vector.d.ts +0 -35
  380. package/dist/src/typus-perp/_framework/vector.js +0 -112
  381. package/dist/src/typus-perp/fetch.d.ts +0 -17
  382. package/dist/src/typus-perp/fetch.js +0 -410
  383. package/dist/src/typus-perp/index.d.ts +0 -5
  384. package/dist/src/typus-perp/index.js +0 -29
  385. package/dist/src/typus-perp/readVec.d.ts +0 -3
  386. package/dist/src/typus-perp/readVec.js +0 -117
  387. package/dist/src/typus-perp/typus_perp/admin/functions.d.ts +0 -50
  388. package/dist/src/typus-perp/typus_perp/admin/functions.js +0 -116
  389. package/dist/src/typus-perp/typus_perp/admin/structs.d.ts +0 -447
  390. package/dist/src/typus-perp/typus_perp/admin/structs.js +0 -898
  391. package/dist/src/typus-perp/typus_perp/index.d.ts +0 -3
  392. package/dist/src/typus-perp/typus_perp/index.js +0 -6
  393. package/dist/src/typus-perp/typus_perp/init.d.ts +0 -2
  394. package/dist/src/typus-perp/typus_perp/init.js +0 -107
  395. package/dist/src/typus-perp/typus_perp/lp-pool/functions.d.ts +0 -342
  396. package/dist/src/typus-perp/typus_perp/lp-pool/functions.js +0 -517
  397. package/dist/src/typus-perp/typus_perp/lp-pool/structs.d.ts +0 -3088
  398. package/dist/src/typus-perp/typus_perp/lp-pool/structs.js +0 -4800
  399. package/dist/src/typus-perp/typus_perp/math/functions.d.ts +0 -18
  400. package/dist/src/typus-perp/typus_perp/math/functions.js +0 -49
  401. package/dist/src/typus-perp/typus_perp/oracle/functions.d.ts +0 -13
  402. package/dist/src/typus-perp/typus_perp/oracle/functions.js +0 -25
  403. package/dist/src/typus-perp/typus_perp/oracle/structs.d.ts +0 -111
  404. package/dist/src/typus-perp/typus_perp/oracle/structs.js +0 -395
  405. package/dist/src/typus-perp/typus_perp/position/functions.d.ts +0 -343
  406. package/dist/src/typus-perp/typus_perp/position/functions.js +0 -659
  407. package/dist/src/typus-perp/typus_perp/position/structs.d.ts +0 -1174
  408. package/dist/src/typus-perp/typus_perp/position/structs.js +0 -1624
  409. package/dist/src/typus-perp/typus_perp/symbol/functions.d.ts +0 -9
  410. package/dist/src/typus-perp/typus_perp/symbol/functions.js +0 -33
  411. package/dist/src/typus-perp/typus_perp/symbol/structs.d.ts +0 -81
  412. package/dist/src/typus-perp/typus_perp/symbol/structs.js +0 -235
  413. package/dist/src/typus-perp/typus_perp/tlp/functions.d.ts +0 -19
  414. package/dist/src/typus-perp/typus_perp/tlp/functions.js +0 -41
  415. package/dist/src/typus-perp/typus_perp/tlp/structs.d.ts +0 -97
  416. package/dist/src/typus-perp/typus_perp/tlp/structs.js +0 -377
  417. package/dist/src/typus-perp/typus_perp/token-interface/functions.d.ts +0 -11
  418. package/dist/src/typus-perp/typus_perp/token-interface/functions.js +0 -20
  419. package/dist/src/typus-perp/typus_perp/trading/functions.d.ts +0 -493
  420. package/dist/src/typus-perp/typus_perp/trading/functions.js +0 -711
  421. package/dist/src/typus-perp/typus_perp/trading/structs.d.ts +0 -2993
  422. package/dist/src/typus-perp/typus_perp/trading/structs.js +0 -5002
  423. package/dist/src/typus-perp/typus_perp/treasury-caps/functions.d.ts +0 -9
  424. package/dist/src/typus-perp/typus_perp/treasury-caps/functions.js +0 -35
  425. package/dist/src/typus-perp/typus_perp/treasury-caps/structs.d.ts +0 -55
  426. package/dist/src/typus-perp/typus_perp/treasury-caps/structs.js +0 -229
  427. package/dist/src/typus-perp/typus_stake_pool/admin/functions.d.ts +0 -50
  428. package/dist/src/typus-perp/typus_stake_pool/admin/functions.js +0 -116
  429. package/dist/src/typus-perp/typus_stake_pool/admin/structs.d.ts +0 -447
  430. package/dist/src/typus-perp/typus_stake_pool/admin/structs.js +0 -898
  431. package/dist/src/typus-perp/typus_stake_pool/index.d.ts +0 -3
  432. package/dist/src/typus-perp/typus_stake_pool/index.js +0 -6
  433. package/dist/src/typus-perp/typus_stake_pool/init.d.ts +0 -2
  434. package/dist/src/typus-perp/typus_stake_pool/init.js +0 -57
  435. package/dist/src/typus-perp/typus_stake_pool/stake-pool/functions.d.ts +0 -175
  436. package/dist/src/typus-perp/typus_stake_pool/stake-pool/functions.js +0 -275
  437. package/dist/src/typus-perp/typus_stake_pool/stake-pool/structs.d.ts +0 -2179
  438. package/dist/src/typus-perp/typus_stake_pool/stake-pool/structs.js +0 -3939
  439. package/dist/src/typus-perp/user/index.d.ts +0 -3
  440. package/dist/src/typus-perp/user/index.js +0 -19
  441. package/dist/src/typus-perp/user/order.d.ts +0 -29
  442. package/dist/src/typus-perp/user/order.js +0 -206
  443. package/dist/src/typus-perp/user/orderWithBidReceipt.d.ts +0 -22
  444. package/dist/src/typus-perp/user/orderWithBidReceipt.js +0 -144
  445. package/dist/src/typus-perp/user/tlp.d.ts +0 -32
  446. package/dist/src/typus-perp/user/tlp.js +0 -267
@@ -1,2275 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
- return new (P || (P = Promise))(function (resolve, reject) {
39
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
- step((generator = generator.apply(thisArg, _arguments || [])).next());
43
- });
44
- };
45
- var __generator = (this && this.__generator) || function (thisArg, body) {
46
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
47
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
48
- function verb(n) { return function (v) { return step([n, v]); }; }
49
- function step(op) {
50
- if (f) throw new TypeError("Generator is already executing.");
51
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
52
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
53
- if (y = 0, t) op = [op[0] & 2, t.value];
54
- switch (op[0]) {
55
- case 0: case 1: t = op; break;
56
- case 4: _.label++; return { value: op[1], done: false };
57
- case 5: _.label++; y = op[1]; op = [0]; continue;
58
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
59
- default:
60
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
61
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
62
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
63
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
64
- if (t[2]) _.ops.pop();
65
- _.trys.pop(); continue;
66
- }
67
- op = body.call(thisArg, _);
68
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
69
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
70
- }
71
- };
72
- var __read = (this && this.__read) || function (o, n) {
73
- var m = typeof Symbol === "function" && o[Symbol.iterator];
74
- if (!m) return o;
75
- var i = m.call(o), r, ar = [], e;
76
- try {
77
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
78
- }
79
- catch (error) { e = { error: error }; }
80
- finally {
81
- try {
82
- if (r && !r.done && (m = i["return"])) m.call(i);
83
- }
84
- finally { if (e) throw e.error; }
85
- }
86
- return ar;
87
- };
88
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
89
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
90
- if (ar || !(i in from)) {
91
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
92
- ar[i] = from[i];
93
- }
94
- }
95
- return to.concat(ar || Array.prototype.slice.call(from));
96
- };
97
- Object.defineProperty(exports, "__esModule", { value: true });
98
- exports.UpdateTailsStakingRegistryConfigEvent = exports.UnstakeTailsEvent = exports.TransferTailsEvent = exports.TailsStakingRegistry = exports.StakingInfo = exports.StakeTailsEvent = exports.SetProfitSharingEvent = exports.RemoveProfitSharingEvent = exports.DailySignUpEvent = exports.ClaimProfitSharingEvent = exports.LevelUpEvent = exports.ExpUpEvent = exports.ExpDownEvent = void 0;
99
- exports.isExpDownEvent = isExpDownEvent;
100
- exports.isExpUpEvent = isExpUpEvent;
101
- exports.isLevelUpEvent = isLevelUpEvent;
102
- exports.isClaimProfitSharingEvent = isClaimProfitSharingEvent;
103
- exports.isDailySignUpEvent = isDailySignUpEvent;
104
- exports.isRemoveProfitSharingEvent = isRemoveProfitSharingEvent;
105
- exports.isSetProfitSharingEvent = isSetProfitSharingEvent;
106
- exports.isStakeTailsEvent = isStakeTailsEvent;
107
- exports.isStakingInfo = isStakingInfo;
108
- exports.isTailsStakingRegistry = isTailsStakingRegistry;
109
- exports.isTransferTailsEvent = isTransferTailsEvent;
110
- exports.isUnstakeTailsEvent = isUnstakeTailsEvent;
111
- exports.isUpdateTailsStakingRegistryConfigEvent = isUpdateTailsStakingRegistryConfigEvent;
112
- var reified = __importStar(require("../../../../_framework/reified"));
113
- var reified_1 = require("../../../../_framework/reified");
114
- var util_1 = require("../../../../_framework/util");
115
- var structs_1 = require("../../0x1/type-name/structs");
116
- var structs_2 = require("../../0x2/bag/structs");
117
- var structs_3 = require("../../0x2/object-table/structs");
118
- var structs_4 = require("../../0x2/object/structs");
119
- var structs_5 = require("../../0x2/transfer-policy/structs");
120
- var structs_6 = require("../../0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs");
121
- var structs_7 = require("../big-vector/structs");
122
- var index_1 = require("../index");
123
- var bcs_1 = require("@mysten/sui/bcs");
124
- var utils_1 = require("@mysten/sui/utils");
125
- /* ============================== ExpDownEvent =============================== */
126
- function isExpDownEvent(type) {
127
- type = (0, util_1.compressSuiType)(type);
128
- return type === "".concat(index_1.PKG_V11, "::tails_staking::ExpDownEvent");
129
- }
130
- var ExpDownEvent = /** @class */ (function () {
131
- function ExpDownEvent(typeArgs, fields) {
132
- this.__StructClass = true;
133
- this.$typeName = ExpDownEvent.$typeName;
134
- this.$isPhantom = ExpDownEvent.$isPhantom;
135
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ExpDownEvent.$typeName], __read(typeArgs), false));
136
- this.$typeArgs = typeArgs;
137
- this.tails = fields.tails;
138
- this.log = fields.log;
139
- this.bcsPadding = fields.bcsPadding;
140
- }
141
- ExpDownEvent.reified = function () {
142
- var _this = this;
143
- return {
144
- typeName: ExpDownEvent.$typeName,
145
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ExpDownEvent.$typeName], [], false)),
146
- typeArgs: [],
147
- isPhantom: ExpDownEvent.$isPhantom,
148
- reifiedTypeArgs: [],
149
- fromFields: function (fields) { return ExpDownEvent.fromFields(fields); },
150
- fromFieldsWithTypes: function (item) { return ExpDownEvent.fromFieldsWithTypes(item); },
151
- fromBcs: function (data) { return ExpDownEvent.fromBcs(data); },
152
- bcs: ExpDownEvent.bcs,
153
- fromJSONField: function (field) { return ExpDownEvent.fromJSONField(field); },
154
- fromJSON: function (json) { return ExpDownEvent.fromJSON(json); },
155
- fromSuiParsedData: function (content) { return ExpDownEvent.fromSuiParsedData(content); },
156
- fromSuiObjectData: function (content) { return ExpDownEvent.fromSuiObjectData(content); },
157
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
158
- return [2 /*return*/, ExpDownEvent.fetch(client, id)];
159
- }); }); },
160
- new: function (fields) {
161
- return new ExpDownEvent([], fields);
162
- },
163
- kind: "StructClassReified",
164
- };
165
- };
166
- Object.defineProperty(ExpDownEvent, "r", {
167
- get: function () {
168
- return ExpDownEvent.reified();
169
- },
170
- enumerable: false,
171
- configurable: true
172
- });
173
- ExpDownEvent.phantom = function () {
174
- return (0, reified_1.phantom)(ExpDownEvent.reified());
175
- };
176
- Object.defineProperty(ExpDownEvent, "p", {
177
- get: function () {
178
- return ExpDownEvent.phantom();
179
- },
180
- enumerable: false,
181
- configurable: true
182
- });
183
- Object.defineProperty(ExpDownEvent, "bcs", {
184
- get: function () {
185
- return bcs_1.bcs.struct("ExpDownEvent", {
186
- tails: bcs_1.bcs.bytes(32).transform({
187
- input: function (val) { return (0, utils_1.fromHEX)(val); },
188
- output: function (val) { return (0, utils_1.toHEX)(val); },
189
- }),
190
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
191
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
192
- });
193
- },
194
- enumerable: false,
195
- configurable: true
196
- });
197
- ExpDownEvent.fromFields = function (fields) {
198
- return ExpDownEvent.reified().new({
199
- tails: (0, reified_1.decodeFromFields)("address", fields.tails),
200
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
201
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
202
- });
203
- };
204
- ExpDownEvent.fromFieldsWithTypes = function (item) {
205
- if (!isExpDownEvent(item.type)) {
206
- throw new Error("not a ExpDownEvent type");
207
- }
208
- return ExpDownEvent.reified().new({
209
- tails: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.tails),
210
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
211
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
212
- });
213
- };
214
- ExpDownEvent.fromBcs = function (data) {
215
- return ExpDownEvent.fromFields(ExpDownEvent.bcs.parse(data));
216
- };
217
- ExpDownEvent.prototype.toJSONField = function () {
218
- return {
219
- tails: this.tails,
220
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
221
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
222
- };
223
- };
224
- ExpDownEvent.prototype.toJSON = function () {
225
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
226
- };
227
- ExpDownEvent.fromJSONField = function (field) {
228
- return ExpDownEvent.reified().new({
229
- tails: (0, reified_1.decodeFromJSONField)("address", field.tails),
230
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
231
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
232
- });
233
- };
234
- ExpDownEvent.fromJSON = function (json) {
235
- if (json.$typeName !== ExpDownEvent.$typeName) {
236
- throw new Error("not a WithTwoGenerics json object");
237
- }
238
- return ExpDownEvent.fromJSONField(json);
239
- };
240
- ExpDownEvent.fromSuiParsedData = function (content) {
241
- if (content.dataType !== "moveObject") {
242
- throw new Error("not an object");
243
- }
244
- if (!isExpDownEvent(content.type)) {
245
- throw new Error("object at ".concat(content.fields.id, " is not a ExpDownEvent object"));
246
- }
247
- return ExpDownEvent.fromFieldsWithTypes(content);
248
- };
249
- ExpDownEvent.fromSuiObjectData = function (data) {
250
- if (data.bcs) {
251
- if (data.bcs.dataType !== "moveObject" || !isExpDownEvent(data.bcs.type)) {
252
- throw new Error("object at is not a ExpDownEvent object");
253
- }
254
- return ExpDownEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
255
- }
256
- if (data.content) {
257
- return ExpDownEvent.fromSuiParsedData(data.content);
258
- }
259
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
260
- };
261
- ExpDownEvent.fetch = function (client, id) {
262
- return __awaiter(this, void 0, void 0, function () {
263
- var res;
264
- var _a, _b;
265
- return __generator(this, function (_c) {
266
- switch (_c.label) {
267
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
268
- case 1:
269
- res = _c.sent();
270
- if (res.error) {
271
- throw new Error("error fetching ExpDownEvent object at id ".concat(id, ": ").concat(res.error.code));
272
- }
273
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isExpDownEvent(res.data.bcs.type)) {
274
- throw new Error("object at id ".concat(id, " is not a ExpDownEvent object"));
275
- }
276
- return [2 /*return*/, ExpDownEvent.fromSuiObjectData(res.data)];
277
- }
278
- });
279
- });
280
- };
281
- ExpDownEvent.$typeName = "".concat(index_1.PKG_V11, "::tails_staking::ExpDownEvent");
282
- ExpDownEvent.$numTypeParams = 0;
283
- ExpDownEvent.$isPhantom = [];
284
- return ExpDownEvent;
285
- }());
286
- exports.ExpDownEvent = ExpDownEvent;
287
- /* ============================== ExpUpEvent =============================== */
288
- function isExpUpEvent(type) {
289
- type = (0, util_1.compressSuiType)(type);
290
- return type === "".concat(index_1.PKG_V6, "::tails_staking::ExpUpEvent");
291
- }
292
- var ExpUpEvent = /** @class */ (function () {
293
- function ExpUpEvent(typeArgs, fields) {
294
- this.__StructClass = true;
295
- this.$typeName = ExpUpEvent.$typeName;
296
- this.$isPhantom = ExpUpEvent.$isPhantom;
297
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ExpUpEvent.$typeName], __read(typeArgs), false));
298
- this.$typeArgs = typeArgs;
299
- this.tails = fields.tails;
300
- this.log = fields.log;
301
- this.bcsPadding = fields.bcsPadding;
302
- }
303
- ExpUpEvent.reified = function () {
304
- var _this = this;
305
- return {
306
- typeName: ExpUpEvent.$typeName,
307
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ExpUpEvent.$typeName], [], false)),
308
- typeArgs: [],
309
- isPhantom: ExpUpEvent.$isPhantom,
310
- reifiedTypeArgs: [],
311
- fromFields: function (fields) { return ExpUpEvent.fromFields(fields); },
312
- fromFieldsWithTypes: function (item) { return ExpUpEvent.fromFieldsWithTypes(item); },
313
- fromBcs: function (data) { return ExpUpEvent.fromBcs(data); },
314
- bcs: ExpUpEvent.bcs,
315
- fromJSONField: function (field) { return ExpUpEvent.fromJSONField(field); },
316
- fromJSON: function (json) { return ExpUpEvent.fromJSON(json); },
317
- fromSuiParsedData: function (content) { return ExpUpEvent.fromSuiParsedData(content); },
318
- fromSuiObjectData: function (content) { return ExpUpEvent.fromSuiObjectData(content); },
319
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
320
- return [2 /*return*/, ExpUpEvent.fetch(client, id)];
321
- }); }); },
322
- new: function (fields) {
323
- return new ExpUpEvent([], fields);
324
- },
325
- kind: "StructClassReified",
326
- };
327
- };
328
- Object.defineProperty(ExpUpEvent, "r", {
329
- get: function () {
330
- return ExpUpEvent.reified();
331
- },
332
- enumerable: false,
333
- configurable: true
334
- });
335
- ExpUpEvent.phantom = function () {
336
- return (0, reified_1.phantom)(ExpUpEvent.reified());
337
- };
338
- Object.defineProperty(ExpUpEvent, "p", {
339
- get: function () {
340
- return ExpUpEvent.phantom();
341
- },
342
- enumerable: false,
343
- configurable: true
344
- });
345
- Object.defineProperty(ExpUpEvent, "bcs", {
346
- get: function () {
347
- return bcs_1.bcs.struct("ExpUpEvent", {
348
- tails: bcs_1.bcs.bytes(32).transform({
349
- input: function (val) { return (0, utils_1.fromHEX)(val); },
350
- output: function (val) { return (0, utils_1.toHEX)(val); },
351
- }),
352
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
353
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
354
- });
355
- },
356
- enumerable: false,
357
- configurable: true
358
- });
359
- ExpUpEvent.fromFields = function (fields) {
360
- return ExpUpEvent.reified().new({
361
- tails: (0, reified_1.decodeFromFields)("address", fields.tails),
362
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
363
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
364
- });
365
- };
366
- ExpUpEvent.fromFieldsWithTypes = function (item) {
367
- if (!isExpUpEvent(item.type)) {
368
- throw new Error("not a ExpUpEvent type");
369
- }
370
- return ExpUpEvent.reified().new({
371
- tails: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.tails),
372
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
373
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
374
- });
375
- };
376
- ExpUpEvent.fromBcs = function (data) {
377
- return ExpUpEvent.fromFields(ExpUpEvent.bcs.parse(data));
378
- };
379
- ExpUpEvent.prototype.toJSONField = function () {
380
- return {
381
- tails: this.tails,
382
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
383
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
384
- };
385
- };
386
- ExpUpEvent.prototype.toJSON = function () {
387
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
388
- };
389
- ExpUpEvent.fromJSONField = function (field) {
390
- return ExpUpEvent.reified().new({
391
- tails: (0, reified_1.decodeFromJSONField)("address", field.tails),
392
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
393
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
394
- });
395
- };
396
- ExpUpEvent.fromJSON = function (json) {
397
- if (json.$typeName !== ExpUpEvent.$typeName) {
398
- throw new Error("not a WithTwoGenerics json object");
399
- }
400
- return ExpUpEvent.fromJSONField(json);
401
- };
402
- ExpUpEvent.fromSuiParsedData = function (content) {
403
- if (content.dataType !== "moveObject") {
404
- throw new Error("not an object");
405
- }
406
- if (!isExpUpEvent(content.type)) {
407
- throw new Error("object at ".concat(content.fields.id, " is not a ExpUpEvent object"));
408
- }
409
- return ExpUpEvent.fromFieldsWithTypes(content);
410
- };
411
- ExpUpEvent.fromSuiObjectData = function (data) {
412
- if (data.bcs) {
413
- if (data.bcs.dataType !== "moveObject" || !isExpUpEvent(data.bcs.type)) {
414
- throw new Error("object at is not a ExpUpEvent object");
415
- }
416
- return ExpUpEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
417
- }
418
- if (data.content) {
419
- return ExpUpEvent.fromSuiParsedData(data.content);
420
- }
421
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
422
- };
423
- ExpUpEvent.fetch = function (client, id) {
424
- return __awaiter(this, void 0, void 0, function () {
425
- var res;
426
- var _a, _b;
427
- return __generator(this, function (_c) {
428
- switch (_c.label) {
429
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
430
- case 1:
431
- res = _c.sent();
432
- if (res.error) {
433
- throw new Error("error fetching ExpUpEvent object at id ".concat(id, ": ").concat(res.error.code));
434
- }
435
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isExpUpEvent(res.data.bcs.type)) {
436
- throw new Error("object at id ".concat(id, " is not a ExpUpEvent object"));
437
- }
438
- return [2 /*return*/, ExpUpEvent.fromSuiObjectData(res.data)];
439
- }
440
- });
441
- });
442
- };
443
- ExpUpEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::ExpUpEvent");
444
- ExpUpEvent.$numTypeParams = 0;
445
- ExpUpEvent.$isPhantom = [];
446
- return ExpUpEvent;
447
- }());
448
- exports.ExpUpEvent = ExpUpEvent;
449
- /* ============================== LevelUpEvent =============================== */
450
- function isLevelUpEvent(type) {
451
- type = (0, util_1.compressSuiType)(type);
452
- return type === "".concat(index_1.PKG_V6, "::tails_staking::LevelUpEvent");
453
- }
454
- var LevelUpEvent = /** @class */ (function () {
455
- function LevelUpEvent(typeArgs, fields) {
456
- this.__StructClass = true;
457
- this.$typeName = LevelUpEvent.$typeName;
458
- this.$isPhantom = LevelUpEvent.$isPhantom;
459
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([LevelUpEvent.$typeName], __read(typeArgs), false));
460
- this.$typeArgs = typeArgs;
461
- this.tails = fields.tails;
462
- this.log = fields.log;
463
- this.bcsPadding = fields.bcsPadding;
464
- }
465
- LevelUpEvent.reified = function () {
466
- var _this = this;
467
- return {
468
- typeName: LevelUpEvent.$typeName,
469
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([LevelUpEvent.$typeName], [], false)),
470
- typeArgs: [],
471
- isPhantom: LevelUpEvent.$isPhantom,
472
- reifiedTypeArgs: [],
473
- fromFields: function (fields) { return LevelUpEvent.fromFields(fields); },
474
- fromFieldsWithTypes: function (item) { return LevelUpEvent.fromFieldsWithTypes(item); },
475
- fromBcs: function (data) { return LevelUpEvent.fromBcs(data); },
476
- bcs: LevelUpEvent.bcs,
477
- fromJSONField: function (field) { return LevelUpEvent.fromJSONField(field); },
478
- fromJSON: function (json) { return LevelUpEvent.fromJSON(json); },
479
- fromSuiParsedData: function (content) { return LevelUpEvent.fromSuiParsedData(content); },
480
- fromSuiObjectData: function (content) { return LevelUpEvent.fromSuiObjectData(content); },
481
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
482
- return [2 /*return*/, LevelUpEvent.fetch(client, id)];
483
- }); }); },
484
- new: function (fields) {
485
- return new LevelUpEvent([], fields);
486
- },
487
- kind: "StructClassReified",
488
- };
489
- };
490
- Object.defineProperty(LevelUpEvent, "r", {
491
- get: function () {
492
- return LevelUpEvent.reified();
493
- },
494
- enumerable: false,
495
- configurable: true
496
- });
497
- LevelUpEvent.phantom = function () {
498
- return (0, reified_1.phantom)(LevelUpEvent.reified());
499
- };
500
- Object.defineProperty(LevelUpEvent, "p", {
501
- get: function () {
502
- return LevelUpEvent.phantom();
503
- },
504
- enumerable: false,
505
- configurable: true
506
- });
507
- Object.defineProperty(LevelUpEvent, "bcs", {
508
- get: function () {
509
- return bcs_1.bcs.struct("LevelUpEvent", {
510
- tails: bcs_1.bcs.bytes(32).transform({
511
- input: function (val) { return (0, utils_1.fromHEX)(val); },
512
- output: function (val) { return (0, utils_1.toHEX)(val); },
513
- }),
514
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
515
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
516
- });
517
- },
518
- enumerable: false,
519
- configurable: true
520
- });
521
- LevelUpEvent.fromFields = function (fields) {
522
- return LevelUpEvent.reified().new({
523
- tails: (0, reified_1.decodeFromFields)("address", fields.tails),
524
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
525
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
526
- });
527
- };
528
- LevelUpEvent.fromFieldsWithTypes = function (item) {
529
- if (!isLevelUpEvent(item.type)) {
530
- throw new Error("not a LevelUpEvent type");
531
- }
532
- return LevelUpEvent.reified().new({
533
- tails: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.tails),
534
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
535
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
536
- });
537
- };
538
- LevelUpEvent.fromBcs = function (data) {
539
- return LevelUpEvent.fromFields(LevelUpEvent.bcs.parse(data));
540
- };
541
- LevelUpEvent.prototype.toJSONField = function () {
542
- return {
543
- tails: this.tails,
544
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
545
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
546
- };
547
- };
548
- LevelUpEvent.prototype.toJSON = function () {
549
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
550
- };
551
- LevelUpEvent.fromJSONField = function (field) {
552
- return LevelUpEvent.reified().new({
553
- tails: (0, reified_1.decodeFromJSONField)("address", field.tails),
554
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
555
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
556
- });
557
- };
558
- LevelUpEvent.fromJSON = function (json) {
559
- if (json.$typeName !== LevelUpEvent.$typeName) {
560
- throw new Error("not a WithTwoGenerics json object");
561
- }
562
- return LevelUpEvent.fromJSONField(json);
563
- };
564
- LevelUpEvent.fromSuiParsedData = function (content) {
565
- if (content.dataType !== "moveObject") {
566
- throw new Error("not an object");
567
- }
568
- if (!isLevelUpEvent(content.type)) {
569
- throw new Error("object at ".concat(content.fields.id, " is not a LevelUpEvent object"));
570
- }
571
- return LevelUpEvent.fromFieldsWithTypes(content);
572
- };
573
- LevelUpEvent.fromSuiObjectData = function (data) {
574
- if (data.bcs) {
575
- if (data.bcs.dataType !== "moveObject" || !isLevelUpEvent(data.bcs.type)) {
576
- throw new Error("object at is not a LevelUpEvent object");
577
- }
578
- return LevelUpEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
579
- }
580
- if (data.content) {
581
- return LevelUpEvent.fromSuiParsedData(data.content);
582
- }
583
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
584
- };
585
- LevelUpEvent.fetch = function (client, id) {
586
- return __awaiter(this, void 0, void 0, function () {
587
- var res;
588
- var _a, _b;
589
- return __generator(this, function (_c) {
590
- switch (_c.label) {
591
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
592
- case 1:
593
- res = _c.sent();
594
- if (res.error) {
595
- throw new Error("error fetching LevelUpEvent object at id ".concat(id, ": ").concat(res.error.code));
596
- }
597
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isLevelUpEvent(res.data.bcs.type)) {
598
- throw new Error("object at id ".concat(id, " is not a LevelUpEvent object"));
599
- }
600
- return [2 /*return*/, LevelUpEvent.fromSuiObjectData(res.data)];
601
- }
602
- });
603
- });
604
- };
605
- LevelUpEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::LevelUpEvent");
606
- LevelUpEvent.$numTypeParams = 0;
607
- LevelUpEvent.$isPhantom = [];
608
- return LevelUpEvent;
609
- }());
610
- exports.LevelUpEvent = LevelUpEvent;
611
- /* ============================== ClaimProfitSharingEvent =============================== */
612
- function isClaimProfitSharingEvent(type) {
613
- type = (0, util_1.compressSuiType)(type);
614
- return type === "".concat(index_1.PKG_V6, "::tails_staking::ClaimProfitSharingEvent");
615
- }
616
- var ClaimProfitSharingEvent = /** @class */ (function () {
617
- function ClaimProfitSharingEvent(typeArgs, fields) {
618
- this.__StructClass = true;
619
- this.$typeName = ClaimProfitSharingEvent.$typeName;
620
- this.$isPhantom = ClaimProfitSharingEvent.$isPhantom;
621
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ClaimProfitSharingEvent.$typeName], __read(typeArgs), false));
622
- this.$typeArgs = typeArgs;
623
- this.tails = fields.tails;
624
- this.profitAsset = fields.profitAsset;
625
- this.log = fields.log;
626
- this.bcsPadding = fields.bcsPadding;
627
- }
628
- ClaimProfitSharingEvent.reified = function () {
629
- var _this = this;
630
- return {
631
- typeName: ClaimProfitSharingEvent.$typeName,
632
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ClaimProfitSharingEvent.$typeName], [], false)),
633
- typeArgs: [],
634
- isPhantom: ClaimProfitSharingEvent.$isPhantom,
635
- reifiedTypeArgs: [],
636
- fromFields: function (fields) { return ClaimProfitSharingEvent.fromFields(fields); },
637
- fromFieldsWithTypes: function (item) { return ClaimProfitSharingEvent.fromFieldsWithTypes(item); },
638
- fromBcs: function (data) { return ClaimProfitSharingEvent.fromBcs(data); },
639
- bcs: ClaimProfitSharingEvent.bcs,
640
- fromJSONField: function (field) { return ClaimProfitSharingEvent.fromJSONField(field); },
641
- fromJSON: function (json) { return ClaimProfitSharingEvent.fromJSON(json); },
642
- fromSuiParsedData: function (content) { return ClaimProfitSharingEvent.fromSuiParsedData(content); },
643
- fromSuiObjectData: function (content) { return ClaimProfitSharingEvent.fromSuiObjectData(content); },
644
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
645
- return [2 /*return*/, ClaimProfitSharingEvent.fetch(client, id)];
646
- }); }); },
647
- new: function (fields) {
648
- return new ClaimProfitSharingEvent([], fields);
649
- },
650
- kind: "StructClassReified",
651
- };
652
- };
653
- Object.defineProperty(ClaimProfitSharingEvent, "r", {
654
- get: function () {
655
- return ClaimProfitSharingEvent.reified();
656
- },
657
- enumerable: false,
658
- configurable: true
659
- });
660
- ClaimProfitSharingEvent.phantom = function () {
661
- return (0, reified_1.phantom)(ClaimProfitSharingEvent.reified());
662
- };
663
- Object.defineProperty(ClaimProfitSharingEvent, "p", {
664
- get: function () {
665
- return ClaimProfitSharingEvent.phantom();
666
- },
667
- enumerable: false,
668
- configurable: true
669
- });
670
- Object.defineProperty(ClaimProfitSharingEvent, "bcs", {
671
- get: function () {
672
- return bcs_1.bcs.struct("ClaimProfitSharingEvent", {
673
- tails: bcs_1.bcs.vector(bcs_1.bcs.u64()),
674
- profit_asset: structs_1.TypeName.bcs,
675
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
676
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
677
- });
678
- },
679
- enumerable: false,
680
- configurable: true
681
- });
682
- ClaimProfitSharingEvent.fromFields = function (fields) {
683
- return ClaimProfitSharingEvent.reified().new({
684
- tails: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.tails),
685
- profitAsset: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.profit_asset),
686
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
687
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
688
- });
689
- };
690
- ClaimProfitSharingEvent.fromFieldsWithTypes = function (item) {
691
- if (!isClaimProfitSharingEvent(item.type)) {
692
- throw new Error("not a ClaimProfitSharingEvent type");
693
- }
694
- return ClaimProfitSharingEvent.reified().new({
695
- tails: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.tails),
696
- profitAsset: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.profit_asset),
697
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
698
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
699
- });
700
- };
701
- ClaimProfitSharingEvent.fromBcs = function (data) {
702
- return ClaimProfitSharingEvent.fromFields(ClaimProfitSharingEvent.bcs.parse(data));
703
- };
704
- ClaimProfitSharingEvent.prototype.toJSONField = function () {
705
- return {
706
- tails: (0, reified_1.fieldToJSON)("vector<u64>", this.tails),
707
- profitAsset: this.profitAsset.toJSONField(),
708
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
709
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
710
- };
711
- };
712
- ClaimProfitSharingEvent.prototype.toJSON = function () {
713
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
714
- };
715
- ClaimProfitSharingEvent.fromJSONField = function (field) {
716
- return ClaimProfitSharingEvent.reified().new({
717
- tails: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.tails),
718
- profitAsset: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.profitAsset),
719
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
720
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
721
- });
722
- };
723
- ClaimProfitSharingEvent.fromJSON = function (json) {
724
- if (json.$typeName !== ClaimProfitSharingEvent.$typeName) {
725
- throw new Error("not a WithTwoGenerics json object");
726
- }
727
- return ClaimProfitSharingEvent.fromJSONField(json);
728
- };
729
- ClaimProfitSharingEvent.fromSuiParsedData = function (content) {
730
- if (content.dataType !== "moveObject") {
731
- throw new Error("not an object");
732
- }
733
- if (!isClaimProfitSharingEvent(content.type)) {
734
- throw new Error("object at ".concat(content.fields.id, " is not a ClaimProfitSharingEvent object"));
735
- }
736
- return ClaimProfitSharingEvent.fromFieldsWithTypes(content);
737
- };
738
- ClaimProfitSharingEvent.fromSuiObjectData = function (data) {
739
- if (data.bcs) {
740
- if (data.bcs.dataType !== "moveObject" || !isClaimProfitSharingEvent(data.bcs.type)) {
741
- throw new Error("object at is not a ClaimProfitSharingEvent object");
742
- }
743
- return ClaimProfitSharingEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
744
- }
745
- if (data.content) {
746
- return ClaimProfitSharingEvent.fromSuiParsedData(data.content);
747
- }
748
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
749
- };
750
- ClaimProfitSharingEvent.fetch = function (client, id) {
751
- return __awaiter(this, void 0, void 0, function () {
752
- var res;
753
- var _a, _b;
754
- return __generator(this, function (_c) {
755
- switch (_c.label) {
756
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
757
- case 1:
758
- res = _c.sent();
759
- if (res.error) {
760
- throw new Error("error fetching ClaimProfitSharingEvent object at id ".concat(id, ": ").concat(res.error.code));
761
- }
762
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isClaimProfitSharingEvent(res.data.bcs.type)) {
763
- throw new Error("object at id ".concat(id, " is not a ClaimProfitSharingEvent object"));
764
- }
765
- return [2 /*return*/, ClaimProfitSharingEvent.fromSuiObjectData(res.data)];
766
- }
767
- });
768
- });
769
- };
770
- ClaimProfitSharingEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::ClaimProfitSharingEvent");
771
- ClaimProfitSharingEvent.$numTypeParams = 0;
772
- ClaimProfitSharingEvent.$isPhantom = [];
773
- return ClaimProfitSharingEvent;
774
- }());
775
- exports.ClaimProfitSharingEvent = ClaimProfitSharingEvent;
776
- /* ============================== DailySignUpEvent =============================== */
777
- function isDailySignUpEvent(type) {
778
- type = (0, util_1.compressSuiType)(type);
779
- return type === "".concat(index_1.PKG_V6, "::tails_staking::DailySignUpEvent");
780
- }
781
- var DailySignUpEvent = /** @class */ (function () {
782
- function DailySignUpEvent(typeArgs, fields) {
783
- this.__StructClass = true;
784
- this.$typeName = DailySignUpEvent.$typeName;
785
- this.$isPhantom = DailySignUpEvent.$isPhantom;
786
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DailySignUpEvent.$typeName], __read(typeArgs), false));
787
- this.$typeArgs = typeArgs;
788
- this.tails = fields.tails;
789
- this.log = fields.log;
790
- this.bcsPadding = fields.bcsPadding;
791
- }
792
- DailySignUpEvent.reified = function () {
793
- var _this = this;
794
- return {
795
- typeName: DailySignUpEvent.$typeName,
796
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DailySignUpEvent.$typeName], [], false)),
797
- typeArgs: [],
798
- isPhantom: DailySignUpEvent.$isPhantom,
799
- reifiedTypeArgs: [],
800
- fromFields: function (fields) { return DailySignUpEvent.fromFields(fields); },
801
- fromFieldsWithTypes: function (item) { return DailySignUpEvent.fromFieldsWithTypes(item); },
802
- fromBcs: function (data) { return DailySignUpEvent.fromBcs(data); },
803
- bcs: DailySignUpEvent.bcs,
804
- fromJSONField: function (field) { return DailySignUpEvent.fromJSONField(field); },
805
- fromJSON: function (json) { return DailySignUpEvent.fromJSON(json); },
806
- fromSuiParsedData: function (content) { return DailySignUpEvent.fromSuiParsedData(content); },
807
- fromSuiObjectData: function (content) { return DailySignUpEvent.fromSuiObjectData(content); },
808
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
809
- return [2 /*return*/, DailySignUpEvent.fetch(client, id)];
810
- }); }); },
811
- new: function (fields) {
812
- return new DailySignUpEvent([], fields);
813
- },
814
- kind: "StructClassReified",
815
- };
816
- };
817
- Object.defineProperty(DailySignUpEvent, "r", {
818
- get: function () {
819
- return DailySignUpEvent.reified();
820
- },
821
- enumerable: false,
822
- configurable: true
823
- });
824
- DailySignUpEvent.phantom = function () {
825
- return (0, reified_1.phantom)(DailySignUpEvent.reified());
826
- };
827
- Object.defineProperty(DailySignUpEvent, "p", {
828
- get: function () {
829
- return DailySignUpEvent.phantom();
830
- },
831
- enumerable: false,
832
- configurable: true
833
- });
834
- Object.defineProperty(DailySignUpEvent, "bcs", {
835
- get: function () {
836
- return bcs_1.bcs.struct("DailySignUpEvent", {
837
- tails: bcs_1.bcs.vector(bcs_1.bcs.u64()),
838
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
839
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
840
- });
841
- },
842
- enumerable: false,
843
- configurable: true
844
- });
845
- DailySignUpEvent.fromFields = function (fields) {
846
- return DailySignUpEvent.reified().new({
847
- tails: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.tails),
848
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
849
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
850
- });
851
- };
852
- DailySignUpEvent.fromFieldsWithTypes = function (item) {
853
- if (!isDailySignUpEvent(item.type)) {
854
- throw new Error("not a DailySignUpEvent type");
855
- }
856
- return DailySignUpEvent.reified().new({
857
- tails: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.tails),
858
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
859
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
860
- });
861
- };
862
- DailySignUpEvent.fromBcs = function (data) {
863
- return DailySignUpEvent.fromFields(DailySignUpEvent.bcs.parse(data));
864
- };
865
- DailySignUpEvent.prototype.toJSONField = function () {
866
- return {
867
- tails: (0, reified_1.fieldToJSON)("vector<u64>", this.tails),
868
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
869
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
870
- };
871
- };
872
- DailySignUpEvent.prototype.toJSON = function () {
873
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
874
- };
875
- DailySignUpEvent.fromJSONField = function (field) {
876
- return DailySignUpEvent.reified().new({
877
- tails: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.tails),
878
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
879
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
880
- });
881
- };
882
- DailySignUpEvent.fromJSON = function (json) {
883
- if (json.$typeName !== DailySignUpEvent.$typeName) {
884
- throw new Error("not a WithTwoGenerics json object");
885
- }
886
- return DailySignUpEvent.fromJSONField(json);
887
- };
888
- DailySignUpEvent.fromSuiParsedData = function (content) {
889
- if (content.dataType !== "moveObject") {
890
- throw new Error("not an object");
891
- }
892
- if (!isDailySignUpEvent(content.type)) {
893
- throw new Error("object at ".concat(content.fields.id, " is not a DailySignUpEvent object"));
894
- }
895
- return DailySignUpEvent.fromFieldsWithTypes(content);
896
- };
897
- DailySignUpEvent.fromSuiObjectData = function (data) {
898
- if (data.bcs) {
899
- if (data.bcs.dataType !== "moveObject" || !isDailySignUpEvent(data.bcs.type)) {
900
- throw new Error("object at is not a DailySignUpEvent object");
901
- }
902
- return DailySignUpEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
903
- }
904
- if (data.content) {
905
- return DailySignUpEvent.fromSuiParsedData(data.content);
906
- }
907
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
908
- };
909
- DailySignUpEvent.fetch = function (client, id) {
910
- return __awaiter(this, void 0, void 0, function () {
911
- var res;
912
- var _a, _b;
913
- return __generator(this, function (_c) {
914
- switch (_c.label) {
915
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
916
- case 1:
917
- res = _c.sent();
918
- if (res.error) {
919
- throw new Error("error fetching DailySignUpEvent object at id ".concat(id, ": ").concat(res.error.code));
920
- }
921
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDailySignUpEvent(res.data.bcs.type)) {
922
- throw new Error("object at id ".concat(id, " is not a DailySignUpEvent object"));
923
- }
924
- return [2 /*return*/, DailySignUpEvent.fromSuiObjectData(res.data)];
925
- }
926
- });
927
- });
928
- };
929
- DailySignUpEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::DailySignUpEvent");
930
- DailySignUpEvent.$numTypeParams = 0;
931
- DailySignUpEvent.$isPhantom = [];
932
- return DailySignUpEvent;
933
- }());
934
- exports.DailySignUpEvent = DailySignUpEvent;
935
- /* ============================== RemoveProfitSharingEvent =============================== */
936
- function isRemoveProfitSharingEvent(type) {
937
- type = (0, util_1.compressSuiType)(type);
938
- return type === "".concat(index_1.PKG_V6, "::tails_staking::RemoveProfitSharingEvent");
939
- }
940
- var RemoveProfitSharingEvent = /** @class */ (function () {
941
- function RemoveProfitSharingEvent(typeArgs, fields) {
942
- this.__StructClass = true;
943
- this.$typeName = RemoveProfitSharingEvent.$typeName;
944
- this.$isPhantom = RemoveProfitSharingEvent.$isPhantom;
945
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemoveProfitSharingEvent.$typeName], __read(typeArgs), false));
946
- this.$typeArgs = typeArgs;
947
- this.token = fields.token;
948
- this.log = fields.log;
949
- this.bcsPadding = fields.bcsPadding;
950
- }
951
- RemoveProfitSharingEvent.reified = function () {
952
- var _this = this;
953
- return {
954
- typeName: RemoveProfitSharingEvent.$typeName,
955
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemoveProfitSharingEvent.$typeName], [], false)),
956
- typeArgs: [],
957
- isPhantom: RemoveProfitSharingEvent.$isPhantom,
958
- reifiedTypeArgs: [],
959
- fromFields: function (fields) { return RemoveProfitSharingEvent.fromFields(fields); },
960
- fromFieldsWithTypes: function (item) { return RemoveProfitSharingEvent.fromFieldsWithTypes(item); },
961
- fromBcs: function (data) { return RemoveProfitSharingEvent.fromBcs(data); },
962
- bcs: RemoveProfitSharingEvent.bcs,
963
- fromJSONField: function (field) { return RemoveProfitSharingEvent.fromJSONField(field); },
964
- fromJSON: function (json) { return RemoveProfitSharingEvent.fromJSON(json); },
965
- fromSuiParsedData: function (content) { return RemoveProfitSharingEvent.fromSuiParsedData(content); },
966
- fromSuiObjectData: function (content) { return RemoveProfitSharingEvent.fromSuiObjectData(content); },
967
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
968
- return [2 /*return*/, RemoveProfitSharingEvent.fetch(client, id)];
969
- }); }); },
970
- new: function (fields) {
971
- return new RemoveProfitSharingEvent([], fields);
972
- },
973
- kind: "StructClassReified",
974
- };
975
- };
976
- Object.defineProperty(RemoveProfitSharingEvent, "r", {
977
- get: function () {
978
- return RemoveProfitSharingEvent.reified();
979
- },
980
- enumerable: false,
981
- configurable: true
982
- });
983
- RemoveProfitSharingEvent.phantom = function () {
984
- return (0, reified_1.phantom)(RemoveProfitSharingEvent.reified());
985
- };
986
- Object.defineProperty(RemoveProfitSharingEvent, "p", {
987
- get: function () {
988
- return RemoveProfitSharingEvent.phantom();
989
- },
990
- enumerable: false,
991
- configurable: true
992
- });
993
- Object.defineProperty(RemoveProfitSharingEvent, "bcs", {
994
- get: function () {
995
- return bcs_1.bcs.struct("RemoveProfitSharingEvent", {
996
- token: structs_1.TypeName.bcs,
997
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
998
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
999
- });
1000
- },
1001
- enumerable: false,
1002
- configurable: true
1003
- });
1004
- RemoveProfitSharingEvent.fromFields = function (fields) {
1005
- return RemoveProfitSharingEvent.reified().new({
1006
- token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
1007
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
1008
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
1009
- });
1010
- };
1011
- RemoveProfitSharingEvent.fromFieldsWithTypes = function (item) {
1012
- if (!isRemoveProfitSharingEvent(item.type)) {
1013
- throw new Error("not a RemoveProfitSharingEvent type");
1014
- }
1015
- return RemoveProfitSharingEvent.reified().new({
1016
- token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
1017
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
1018
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
1019
- });
1020
- };
1021
- RemoveProfitSharingEvent.fromBcs = function (data) {
1022
- return RemoveProfitSharingEvent.fromFields(RemoveProfitSharingEvent.bcs.parse(data));
1023
- };
1024
- RemoveProfitSharingEvent.prototype.toJSONField = function () {
1025
- return {
1026
- token: this.token.toJSONField(),
1027
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
1028
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
1029
- };
1030
- };
1031
- RemoveProfitSharingEvent.prototype.toJSON = function () {
1032
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1033
- };
1034
- RemoveProfitSharingEvent.fromJSONField = function (field) {
1035
- return RemoveProfitSharingEvent.reified().new({
1036
- token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
1037
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
1038
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
1039
- });
1040
- };
1041
- RemoveProfitSharingEvent.fromJSON = function (json) {
1042
- if (json.$typeName !== RemoveProfitSharingEvent.$typeName) {
1043
- throw new Error("not a WithTwoGenerics json object");
1044
- }
1045
- return RemoveProfitSharingEvent.fromJSONField(json);
1046
- };
1047
- RemoveProfitSharingEvent.fromSuiParsedData = function (content) {
1048
- if (content.dataType !== "moveObject") {
1049
- throw new Error("not an object");
1050
- }
1051
- if (!isRemoveProfitSharingEvent(content.type)) {
1052
- throw new Error("object at ".concat(content.fields.id, " is not a RemoveProfitSharingEvent object"));
1053
- }
1054
- return RemoveProfitSharingEvent.fromFieldsWithTypes(content);
1055
- };
1056
- RemoveProfitSharingEvent.fromSuiObjectData = function (data) {
1057
- if (data.bcs) {
1058
- if (data.bcs.dataType !== "moveObject" || !isRemoveProfitSharingEvent(data.bcs.type)) {
1059
- throw new Error("object at is not a RemoveProfitSharingEvent object");
1060
- }
1061
- return RemoveProfitSharingEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1062
- }
1063
- if (data.content) {
1064
- return RemoveProfitSharingEvent.fromSuiParsedData(data.content);
1065
- }
1066
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1067
- };
1068
- RemoveProfitSharingEvent.fetch = function (client, id) {
1069
- return __awaiter(this, void 0, void 0, function () {
1070
- var res;
1071
- var _a, _b;
1072
- return __generator(this, function (_c) {
1073
- switch (_c.label) {
1074
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1075
- case 1:
1076
- res = _c.sent();
1077
- if (res.error) {
1078
- throw new Error("error fetching RemoveProfitSharingEvent object at id ".concat(id, ": ").concat(res.error.code));
1079
- }
1080
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRemoveProfitSharingEvent(res.data.bcs.type)) {
1081
- throw new Error("object at id ".concat(id, " is not a RemoveProfitSharingEvent object"));
1082
- }
1083
- return [2 /*return*/, RemoveProfitSharingEvent.fromSuiObjectData(res.data)];
1084
- }
1085
- });
1086
- });
1087
- };
1088
- RemoveProfitSharingEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::RemoveProfitSharingEvent");
1089
- RemoveProfitSharingEvent.$numTypeParams = 0;
1090
- RemoveProfitSharingEvent.$isPhantom = [];
1091
- return RemoveProfitSharingEvent;
1092
- }());
1093
- exports.RemoveProfitSharingEvent = RemoveProfitSharingEvent;
1094
- /* ============================== SetProfitSharingEvent =============================== */
1095
- function isSetProfitSharingEvent(type) {
1096
- type = (0, util_1.compressSuiType)(type);
1097
- return type === "".concat(index_1.PKG_V6, "::tails_staking::SetProfitSharingEvent");
1098
- }
1099
- var SetProfitSharingEvent = /** @class */ (function () {
1100
- function SetProfitSharingEvent(typeArgs, fields) {
1101
- this.__StructClass = true;
1102
- this.$typeName = SetProfitSharingEvent.$typeName;
1103
- this.$isPhantom = SetProfitSharingEvent.$isPhantom;
1104
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([SetProfitSharingEvent.$typeName], __read(typeArgs), false));
1105
- this.$typeArgs = typeArgs;
1106
- this.token = fields.token;
1107
- this.levelProfits = fields.levelProfits;
1108
- this.levelCounts = fields.levelCounts;
1109
- this.log = fields.log;
1110
- this.bcsPadding = fields.bcsPadding;
1111
- }
1112
- SetProfitSharingEvent.reified = function () {
1113
- var _this = this;
1114
- return {
1115
- typeName: SetProfitSharingEvent.$typeName,
1116
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([SetProfitSharingEvent.$typeName], [], false)),
1117
- typeArgs: [],
1118
- isPhantom: SetProfitSharingEvent.$isPhantom,
1119
- reifiedTypeArgs: [],
1120
- fromFields: function (fields) { return SetProfitSharingEvent.fromFields(fields); },
1121
- fromFieldsWithTypes: function (item) { return SetProfitSharingEvent.fromFieldsWithTypes(item); },
1122
- fromBcs: function (data) { return SetProfitSharingEvent.fromBcs(data); },
1123
- bcs: SetProfitSharingEvent.bcs,
1124
- fromJSONField: function (field) { return SetProfitSharingEvent.fromJSONField(field); },
1125
- fromJSON: function (json) { return SetProfitSharingEvent.fromJSON(json); },
1126
- fromSuiParsedData: function (content) { return SetProfitSharingEvent.fromSuiParsedData(content); },
1127
- fromSuiObjectData: function (content) { return SetProfitSharingEvent.fromSuiObjectData(content); },
1128
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1129
- return [2 /*return*/, SetProfitSharingEvent.fetch(client, id)];
1130
- }); }); },
1131
- new: function (fields) {
1132
- return new SetProfitSharingEvent([], fields);
1133
- },
1134
- kind: "StructClassReified",
1135
- };
1136
- };
1137
- Object.defineProperty(SetProfitSharingEvent, "r", {
1138
- get: function () {
1139
- return SetProfitSharingEvent.reified();
1140
- },
1141
- enumerable: false,
1142
- configurable: true
1143
- });
1144
- SetProfitSharingEvent.phantom = function () {
1145
- return (0, reified_1.phantom)(SetProfitSharingEvent.reified());
1146
- };
1147
- Object.defineProperty(SetProfitSharingEvent, "p", {
1148
- get: function () {
1149
- return SetProfitSharingEvent.phantom();
1150
- },
1151
- enumerable: false,
1152
- configurable: true
1153
- });
1154
- Object.defineProperty(SetProfitSharingEvent, "bcs", {
1155
- get: function () {
1156
- return bcs_1.bcs.struct("SetProfitSharingEvent", {
1157
- token: structs_1.TypeName.bcs,
1158
- level_profits: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1159
- level_counts: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1160
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1161
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
1162
- });
1163
- },
1164
- enumerable: false,
1165
- configurable: true
1166
- });
1167
- SetProfitSharingEvent.fromFields = function (fields) {
1168
- return SetProfitSharingEvent.reified().new({
1169
- token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
1170
- levelProfits: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.level_profits),
1171
- levelCounts: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.level_counts),
1172
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
1173
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
1174
- });
1175
- };
1176
- SetProfitSharingEvent.fromFieldsWithTypes = function (item) {
1177
- if (!isSetProfitSharingEvent(item.type)) {
1178
- throw new Error("not a SetProfitSharingEvent type");
1179
- }
1180
- return SetProfitSharingEvent.reified().new({
1181
- token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
1182
- levelProfits: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.level_profits),
1183
- levelCounts: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.level_counts),
1184
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
1185
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
1186
- });
1187
- };
1188
- SetProfitSharingEvent.fromBcs = function (data) {
1189
- return SetProfitSharingEvent.fromFields(SetProfitSharingEvent.bcs.parse(data));
1190
- };
1191
- SetProfitSharingEvent.prototype.toJSONField = function () {
1192
- return {
1193
- token: this.token.toJSONField(),
1194
- levelProfits: (0, reified_1.fieldToJSON)("vector<u64>", this.levelProfits),
1195
- levelCounts: (0, reified_1.fieldToJSON)("vector<u64>", this.levelCounts),
1196
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
1197
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
1198
- };
1199
- };
1200
- SetProfitSharingEvent.prototype.toJSON = function () {
1201
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1202
- };
1203
- SetProfitSharingEvent.fromJSONField = function (field) {
1204
- return SetProfitSharingEvent.reified().new({
1205
- token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
1206
- levelProfits: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.levelProfits),
1207
- levelCounts: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.levelCounts),
1208
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
1209
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
1210
- });
1211
- };
1212
- SetProfitSharingEvent.fromJSON = function (json) {
1213
- if (json.$typeName !== SetProfitSharingEvent.$typeName) {
1214
- throw new Error("not a WithTwoGenerics json object");
1215
- }
1216
- return SetProfitSharingEvent.fromJSONField(json);
1217
- };
1218
- SetProfitSharingEvent.fromSuiParsedData = function (content) {
1219
- if (content.dataType !== "moveObject") {
1220
- throw new Error("not an object");
1221
- }
1222
- if (!isSetProfitSharingEvent(content.type)) {
1223
- throw new Error("object at ".concat(content.fields.id, " is not a SetProfitSharingEvent object"));
1224
- }
1225
- return SetProfitSharingEvent.fromFieldsWithTypes(content);
1226
- };
1227
- SetProfitSharingEvent.fromSuiObjectData = function (data) {
1228
- if (data.bcs) {
1229
- if (data.bcs.dataType !== "moveObject" || !isSetProfitSharingEvent(data.bcs.type)) {
1230
- throw new Error("object at is not a SetProfitSharingEvent object");
1231
- }
1232
- return SetProfitSharingEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1233
- }
1234
- if (data.content) {
1235
- return SetProfitSharingEvent.fromSuiParsedData(data.content);
1236
- }
1237
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1238
- };
1239
- SetProfitSharingEvent.fetch = function (client, id) {
1240
- return __awaiter(this, void 0, void 0, function () {
1241
- var res;
1242
- var _a, _b;
1243
- return __generator(this, function (_c) {
1244
- switch (_c.label) {
1245
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1246
- case 1:
1247
- res = _c.sent();
1248
- if (res.error) {
1249
- throw new Error("error fetching SetProfitSharingEvent object at id ".concat(id, ": ").concat(res.error.code));
1250
- }
1251
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isSetProfitSharingEvent(res.data.bcs.type)) {
1252
- throw new Error("object at id ".concat(id, " is not a SetProfitSharingEvent object"));
1253
- }
1254
- return [2 /*return*/, SetProfitSharingEvent.fromSuiObjectData(res.data)];
1255
- }
1256
- });
1257
- });
1258
- };
1259
- SetProfitSharingEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::SetProfitSharingEvent");
1260
- SetProfitSharingEvent.$numTypeParams = 0;
1261
- SetProfitSharingEvent.$isPhantom = [];
1262
- return SetProfitSharingEvent;
1263
- }());
1264
- exports.SetProfitSharingEvent = SetProfitSharingEvent;
1265
- /* ============================== StakeTailsEvent =============================== */
1266
- function isStakeTailsEvent(type) {
1267
- type = (0, util_1.compressSuiType)(type);
1268
- return type === "".concat(index_1.PKG_V6, "::tails_staking::StakeTailsEvent");
1269
- }
1270
- var StakeTailsEvent = /** @class */ (function () {
1271
- function StakeTailsEvent(typeArgs, fields) {
1272
- this.__StructClass = true;
1273
- this.$typeName = StakeTailsEvent.$typeName;
1274
- this.$isPhantom = StakeTailsEvent.$isPhantom;
1275
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StakeTailsEvent.$typeName], __read(typeArgs), false));
1276
- this.$typeArgs = typeArgs;
1277
- this.tails = fields.tails;
1278
- this.log = fields.log;
1279
- this.bcsPadding = fields.bcsPadding;
1280
- }
1281
- StakeTailsEvent.reified = function () {
1282
- var _this = this;
1283
- return {
1284
- typeName: StakeTailsEvent.$typeName,
1285
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StakeTailsEvent.$typeName], [], false)),
1286
- typeArgs: [],
1287
- isPhantom: StakeTailsEvent.$isPhantom,
1288
- reifiedTypeArgs: [],
1289
- fromFields: function (fields) { return StakeTailsEvent.fromFields(fields); },
1290
- fromFieldsWithTypes: function (item) { return StakeTailsEvent.fromFieldsWithTypes(item); },
1291
- fromBcs: function (data) { return StakeTailsEvent.fromBcs(data); },
1292
- bcs: StakeTailsEvent.bcs,
1293
- fromJSONField: function (field) { return StakeTailsEvent.fromJSONField(field); },
1294
- fromJSON: function (json) { return StakeTailsEvent.fromJSON(json); },
1295
- fromSuiParsedData: function (content) { return StakeTailsEvent.fromSuiParsedData(content); },
1296
- fromSuiObjectData: function (content) { return StakeTailsEvent.fromSuiObjectData(content); },
1297
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1298
- return [2 /*return*/, StakeTailsEvent.fetch(client, id)];
1299
- }); }); },
1300
- new: function (fields) {
1301
- return new StakeTailsEvent([], fields);
1302
- },
1303
- kind: "StructClassReified",
1304
- };
1305
- };
1306
- Object.defineProperty(StakeTailsEvent, "r", {
1307
- get: function () {
1308
- return StakeTailsEvent.reified();
1309
- },
1310
- enumerable: false,
1311
- configurable: true
1312
- });
1313
- StakeTailsEvent.phantom = function () {
1314
- return (0, reified_1.phantom)(StakeTailsEvent.reified());
1315
- };
1316
- Object.defineProperty(StakeTailsEvent, "p", {
1317
- get: function () {
1318
- return StakeTailsEvent.phantom();
1319
- },
1320
- enumerable: false,
1321
- configurable: true
1322
- });
1323
- Object.defineProperty(StakeTailsEvent, "bcs", {
1324
- get: function () {
1325
- return bcs_1.bcs.struct("StakeTailsEvent", {
1326
- tails: bcs_1.bcs.bytes(32).transform({
1327
- input: function (val) { return (0, utils_1.fromHEX)(val); },
1328
- output: function (val) { return (0, utils_1.toHEX)(val); },
1329
- }),
1330
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1331
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
1332
- });
1333
- },
1334
- enumerable: false,
1335
- configurable: true
1336
- });
1337
- StakeTailsEvent.fromFields = function (fields) {
1338
- return StakeTailsEvent.reified().new({
1339
- tails: (0, reified_1.decodeFromFields)("address", fields.tails),
1340
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
1341
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
1342
- });
1343
- };
1344
- StakeTailsEvent.fromFieldsWithTypes = function (item) {
1345
- if (!isStakeTailsEvent(item.type)) {
1346
- throw new Error("not a StakeTailsEvent type");
1347
- }
1348
- return StakeTailsEvent.reified().new({
1349
- tails: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.tails),
1350
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
1351
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
1352
- });
1353
- };
1354
- StakeTailsEvent.fromBcs = function (data) {
1355
- return StakeTailsEvent.fromFields(StakeTailsEvent.bcs.parse(data));
1356
- };
1357
- StakeTailsEvent.prototype.toJSONField = function () {
1358
- return {
1359
- tails: this.tails,
1360
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
1361
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
1362
- };
1363
- };
1364
- StakeTailsEvent.prototype.toJSON = function () {
1365
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1366
- };
1367
- StakeTailsEvent.fromJSONField = function (field) {
1368
- return StakeTailsEvent.reified().new({
1369
- tails: (0, reified_1.decodeFromJSONField)("address", field.tails),
1370
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
1371
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
1372
- });
1373
- };
1374
- StakeTailsEvent.fromJSON = function (json) {
1375
- if (json.$typeName !== StakeTailsEvent.$typeName) {
1376
- throw new Error("not a WithTwoGenerics json object");
1377
- }
1378
- return StakeTailsEvent.fromJSONField(json);
1379
- };
1380
- StakeTailsEvent.fromSuiParsedData = function (content) {
1381
- if (content.dataType !== "moveObject") {
1382
- throw new Error("not an object");
1383
- }
1384
- if (!isStakeTailsEvent(content.type)) {
1385
- throw new Error("object at ".concat(content.fields.id, " is not a StakeTailsEvent object"));
1386
- }
1387
- return StakeTailsEvent.fromFieldsWithTypes(content);
1388
- };
1389
- StakeTailsEvent.fromSuiObjectData = function (data) {
1390
- if (data.bcs) {
1391
- if (data.bcs.dataType !== "moveObject" || !isStakeTailsEvent(data.bcs.type)) {
1392
- throw new Error("object at is not a StakeTailsEvent object");
1393
- }
1394
- return StakeTailsEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1395
- }
1396
- if (data.content) {
1397
- return StakeTailsEvent.fromSuiParsedData(data.content);
1398
- }
1399
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1400
- };
1401
- StakeTailsEvent.fetch = function (client, id) {
1402
- return __awaiter(this, void 0, void 0, function () {
1403
- var res;
1404
- var _a, _b;
1405
- return __generator(this, function (_c) {
1406
- switch (_c.label) {
1407
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1408
- case 1:
1409
- res = _c.sent();
1410
- if (res.error) {
1411
- throw new Error("error fetching StakeTailsEvent object at id ".concat(id, ": ").concat(res.error.code));
1412
- }
1413
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStakeTailsEvent(res.data.bcs.type)) {
1414
- throw new Error("object at id ".concat(id, " is not a StakeTailsEvent object"));
1415
- }
1416
- return [2 /*return*/, StakeTailsEvent.fromSuiObjectData(res.data)];
1417
- }
1418
- });
1419
- });
1420
- };
1421
- StakeTailsEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::StakeTailsEvent");
1422
- StakeTailsEvent.$numTypeParams = 0;
1423
- StakeTailsEvent.$isPhantom = [];
1424
- return StakeTailsEvent;
1425
- }());
1426
- exports.StakeTailsEvent = StakeTailsEvent;
1427
- /* ============================== StakingInfo =============================== */
1428
- function isStakingInfo(type) {
1429
- type = (0, util_1.compressSuiType)(type);
1430
- return type === "".concat(index_1.PKG_V6, "::tails_staking::StakingInfo");
1431
- }
1432
- var StakingInfo = /** @class */ (function () {
1433
- function StakingInfo(typeArgs, fields) {
1434
- this.__StructClass = true;
1435
- this.$typeName = StakingInfo.$typeName;
1436
- this.$isPhantom = StakingInfo.$isPhantom;
1437
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StakingInfo.$typeName], __read(typeArgs), false));
1438
- this.$typeArgs = typeArgs;
1439
- this.user = fields.user;
1440
- this.tails = fields.tails;
1441
- this.profits = fields.profits;
1442
- this.u64Padding = fields.u64Padding;
1443
- }
1444
- StakingInfo.reified = function () {
1445
- var _this = this;
1446
- return {
1447
- typeName: StakingInfo.$typeName,
1448
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StakingInfo.$typeName], [], false)),
1449
- typeArgs: [],
1450
- isPhantom: StakingInfo.$isPhantom,
1451
- reifiedTypeArgs: [],
1452
- fromFields: function (fields) { return StakingInfo.fromFields(fields); },
1453
- fromFieldsWithTypes: function (item) { return StakingInfo.fromFieldsWithTypes(item); },
1454
- fromBcs: function (data) { return StakingInfo.fromBcs(data); },
1455
- bcs: StakingInfo.bcs,
1456
- fromJSONField: function (field) { return StakingInfo.fromJSONField(field); },
1457
- fromJSON: function (json) { return StakingInfo.fromJSON(json); },
1458
- fromSuiParsedData: function (content) { return StakingInfo.fromSuiParsedData(content); },
1459
- fromSuiObjectData: function (content) { return StakingInfo.fromSuiObjectData(content); },
1460
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1461
- return [2 /*return*/, StakingInfo.fetch(client, id)];
1462
- }); }); },
1463
- new: function (fields) {
1464
- return new StakingInfo([], fields);
1465
- },
1466
- kind: "StructClassReified",
1467
- };
1468
- };
1469
- Object.defineProperty(StakingInfo, "r", {
1470
- get: function () {
1471
- return StakingInfo.reified();
1472
- },
1473
- enumerable: false,
1474
- configurable: true
1475
- });
1476
- StakingInfo.phantom = function () {
1477
- return (0, reified_1.phantom)(StakingInfo.reified());
1478
- };
1479
- Object.defineProperty(StakingInfo, "p", {
1480
- get: function () {
1481
- return StakingInfo.phantom();
1482
- },
1483
- enumerable: false,
1484
- configurable: true
1485
- });
1486
- Object.defineProperty(StakingInfo, "bcs", {
1487
- get: function () {
1488
- return bcs_1.bcs.struct("StakingInfo", {
1489
- user: bcs_1.bcs.bytes(32).transform({
1490
- input: function (val) { return (0, utils_1.fromHEX)(val); },
1491
- output: function (val) { return (0, utils_1.toHEX)(val); },
1492
- }),
1493
- tails: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1494
- profits: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1495
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1496
- });
1497
- },
1498
- enumerable: false,
1499
- configurable: true
1500
- });
1501
- StakingInfo.fromFields = function (fields) {
1502
- return StakingInfo.reified().new({
1503
- user: (0, reified_1.decodeFromFields)("address", fields.user),
1504
- tails: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.tails),
1505
- profits: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.profits),
1506
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
1507
- });
1508
- };
1509
- StakingInfo.fromFieldsWithTypes = function (item) {
1510
- if (!isStakingInfo(item.type)) {
1511
- throw new Error("not a StakingInfo type");
1512
- }
1513
- return StakingInfo.reified().new({
1514
- user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
1515
- tails: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.tails),
1516
- profits: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.profits),
1517
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
1518
- });
1519
- };
1520
- StakingInfo.fromBcs = function (data) {
1521
- return StakingInfo.fromFields(StakingInfo.bcs.parse(data));
1522
- };
1523
- StakingInfo.prototype.toJSONField = function () {
1524
- return {
1525
- user: this.user,
1526
- tails: (0, reified_1.fieldToJSON)("vector<u64>", this.tails),
1527
- profits: (0, reified_1.fieldToJSON)("vector<u64>", this.profits),
1528
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
1529
- };
1530
- };
1531
- StakingInfo.prototype.toJSON = function () {
1532
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1533
- };
1534
- StakingInfo.fromJSONField = function (field) {
1535
- return StakingInfo.reified().new({
1536
- user: (0, reified_1.decodeFromJSONField)("address", field.user),
1537
- tails: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.tails),
1538
- profits: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.profits),
1539
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
1540
- });
1541
- };
1542
- StakingInfo.fromJSON = function (json) {
1543
- if (json.$typeName !== StakingInfo.$typeName) {
1544
- throw new Error("not a WithTwoGenerics json object");
1545
- }
1546
- return StakingInfo.fromJSONField(json);
1547
- };
1548
- StakingInfo.fromSuiParsedData = function (content) {
1549
- if (content.dataType !== "moveObject") {
1550
- throw new Error("not an object");
1551
- }
1552
- if (!isStakingInfo(content.type)) {
1553
- throw new Error("object at ".concat(content.fields.id, " is not a StakingInfo object"));
1554
- }
1555
- return StakingInfo.fromFieldsWithTypes(content);
1556
- };
1557
- StakingInfo.fromSuiObjectData = function (data) {
1558
- if (data.bcs) {
1559
- if (data.bcs.dataType !== "moveObject" || !isStakingInfo(data.bcs.type)) {
1560
- throw new Error("object at is not a StakingInfo object");
1561
- }
1562
- return StakingInfo.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1563
- }
1564
- if (data.content) {
1565
- return StakingInfo.fromSuiParsedData(data.content);
1566
- }
1567
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1568
- };
1569
- StakingInfo.fetch = function (client, id) {
1570
- return __awaiter(this, void 0, void 0, function () {
1571
- var res;
1572
- var _a, _b;
1573
- return __generator(this, function (_c) {
1574
- switch (_c.label) {
1575
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1576
- case 1:
1577
- res = _c.sent();
1578
- if (res.error) {
1579
- throw new Error("error fetching StakingInfo object at id ".concat(id, ": ").concat(res.error.code));
1580
- }
1581
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStakingInfo(res.data.bcs.type)) {
1582
- throw new Error("object at id ".concat(id, " is not a StakingInfo object"));
1583
- }
1584
- return [2 /*return*/, StakingInfo.fromSuiObjectData(res.data)];
1585
- }
1586
- });
1587
- });
1588
- };
1589
- StakingInfo.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::StakingInfo");
1590
- StakingInfo.$numTypeParams = 0;
1591
- StakingInfo.$isPhantom = [];
1592
- return StakingInfo;
1593
- }());
1594
- exports.StakingInfo = StakingInfo;
1595
- /* ============================== TailsStakingRegistry =============================== */
1596
- function isTailsStakingRegistry(type) {
1597
- type = (0, util_1.compressSuiType)(type);
1598
- return type === "".concat(index_1.PKG_V6, "::tails_staking::TailsStakingRegistry");
1599
- }
1600
- var TailsStakingRegistry = /** @class */ (function () {
1601
- function TailsStakingRegistry(typeArgs, fields) {
1602
- this.__StructClass = true;
1603
- this.$typeName = TailsStakingRegistry.$typeName;
1604
- this.$isPhantom = TailsStakingRegistry.$isPhantom;
1605
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TailsStakingRegistry.$typeName], __read(typeArgs), false));
1606
- this.$typeArgs = typeArgs;
1607
- this.id = fields.id;
1608
- this.config = fields.config;
1609
- this.tailsManagerCap = fields.tailsManagerCap;
1610
- this.tails = fields.tails;
1611
- this.tailsMetadata = fields.tailsMetadata;
1612
- this.stakingInfos = fields.stakingInfos;
1613
- this.profitAssets = fields.profitAssets;
1614
- this.transferPolicy = fields.transferPolicy;
1615
- }
1616
- TailsStakingRegistry.reified = function () {
1617
- var _this = this;
1618
- return {
1619
- typeName: TailsStakingRegistry.$typeName,
1620
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TailsStakingRegistry.$typeName], [], false)),
1621
- typeArgs: [],
1622
- isPhantom: TailsStakingRegistry.$isPhantom,
1623
- reifiedTypeArgs: [],
1624
- fromFields: function (fields) { return TailsStakingRegistry.fromFields(fields); },
1625
- fromFieldsWithTypes: function (item) { return TailsStakingRegistry.fromFieldsWithTypes(item); },
1626
- fromBcs: function (data) { return TailsStakingRegistry.fromBcs(data); },
1627
- bcs: TailsStakingRegistry.bcs,
1628
- fromJSONField: function (field) { return TailsStakingRegistry.fromJSONField(field); },
1629
- fromJSON: function (json) { return TailsStakingRegistry.fromJSON(json); },
1630
- fromSuiParsedData: function (content) { return TailsStakingRegistry.fromSuiParsedData(content); },
1631
- fromSuiObjectData: function (content) { return TailsStakingRegistry.fromSuiObjectData(content); },
1632
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1633
- return [2 /*return*/, TailsStakingRegistry.fetch(client, id)];
1634
- }); }); },
1635
- new: function (fields) {
1636
- return new TailsStakingRegistry([], fields);
1637
- },
1638
- kind: "StructClassReified",
1639
- };
1640
- };
1641
- Object.defineProperty(TailsStakingRegistry, "r", {
1642
- get: function () {
1643
- return TailsStakingRegistry.reified();
1644
- },
1645
- enumerable: false,
1646
- configurable: true
1647
- });
1648
- TailsStakingRegistry.phantom = function () {
1649
- return (0, reified_1.phantom)(TailsStakingRegistry.reified());
1650
- };
1651
- Object.defineProperty(TailsStakingRegistry, "p", {
1652
- get: function () {
1653
- return TailsStakingRegistry.phantom();
1654
- },
1655
- enumerable: false,
1656
- configurable: true
1657
- });
1658
- Object.defineProperty(TailsStakingRegistry, "bcs", {
1659
- get: function () {
1660
- return bcs_1.bcs.struct("TailsStakingRegistry", {
1661
- id: structs_4.UID.bcs,
1662
- config: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1663
- tails_manager_cap: structs_6.ManagerCap.bcs,
1664
- tails: structs_3.ObjectTable.bcs,
1665
- tails_metadata: structs_2.Bag.bcs,
1666
- staking_infos: structs_7.BigVector.bcs,
1667
- profit_assets: bcs_1.bcs.vector(structs_1.TypeName.bcs),
1668
- transfer_policy: structs_5.TransferPolicy.bcs,
1669
- });
1670
- },
1671
- enumerable: false,
1672
- configurable: true
1673
- });
1674
- TailsStakingRegistry.fromFields = function (fields) {
1675
- return TailsStakingRegistry.reified().new({
1676
- id: (0, reified_1.decodeFromFields)(structs_4.UID.reified(), fields.id),
1677
- config: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.config),
1678
- tailsManagerCap: (0, reified_1.decodeFromFields)(structs_6.ManagerCap.reified(), fields.tails_manager_cap),
1679
- tails: (0, reified_1.decodeFromFields)(structs_3.ObjectTable.reified(reified.phantom("address"), reified.phantom(structs_6.Tails.reified())), fields.tails),
1680
- tailsMetadata: (0, reified_1.decodeFromFields)(structs_2.Bag.reified(), fields.tails_metadata),
1681
- stakingInfos: (0, reified_1.decodeFromFields)(structs_7.BigVector.reified(), fields.staking_infos),
1682
- profitAssets: (0, reified_1.decodeFromFields)(reified.vector(structs_1.TypeName.reified()), fields.profit_assets),
1683
- transferPolicy: (0, reified_1.decodeFromFields)(structs_5.TransferPolicy.reified(reified.phantom(structs_6.Tails.reified())), fields.transfer_policy),
1684
- });
1685
- };
1686
- TailsStakingRegistry.fromFieldsWithTypes = function (item) {
1687
- if (!isTailsStakingRegistry(item.type)) {
1688
- throw new Error("not a TailsStakingRegistry type");
1689
- }
1690
- return TailsStakingRegistry.reified().new({
1691
- id: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.UID.reified(), item.fields.id),
1692
- config: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.config),
1693
- tailsManagerCap: (0, reified_1.decodeFromFieldsWithTypes)(structs_6.ManagerCap.reified(), item.fields.tails_manager_cap),
1694
- tails: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.ObjectTable.reified(reified.phantom("address"), reified.phantom(structs_6.Tails.reified())), item.fields.tails),
1695
- tailsMetadata: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.Bag.reified(), item.fields.tails_metadata),
1696
- stakingInfos: (0, reified_1.decodeFromFieldsWithTypes)(structs_7.BigVector.reified(), item.fields.staking_infos),
1697
- profitAssets: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(structs_1.TypeName.reified()), item.fields.profit_assets),
1698
- transferPolicy: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.TransferPolicy.reified(reified.phantom(structs_6.Tails.reified())), item.fields.transfer_policy),
1699
- });
1700
- };
1701
- TailsStakingRegistry.fromBcs = function (data) {
1702
- return TailsStakingRegistry.fromFields(TailsStakingRegistry.bcs.parse(data));
1703
- };
1704
- TailsStakingRegistry.prototype.toJSONField = function () {
1705
- return {
1706
- id: this.id,
1707
- config: (0, reified_1.fieldToJSON)("vector<u64>", this.config),
1708
- tailsManagerCap: this.tailsManagerCap.toJSONField(),
1709
- tails: this.tails.toJSONField(),
1710
- tailsMetadata: this.tailsMetadata.toJSONField(),
1711
- stakingInfos: this.stakingInfos.toJSONField(),
1712
- profitAssets: (0, reified_1.fieldToJSON)("vector<".concat(structs_1.TypeName.$typeName, ">"), this.profitAssets),
1713
- transferPolicy: this.transferPolicy.toJSONField(),
1714
- };
1715
- };
1716
- TailsStakingRegistry.prototype.toJSON = function () {
1717
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1718
- };
1719
- TailsStakingRegistry.fromJSONField = function (field) {
1720
- return TailsStakingRegistry.reified().new({
1721
- id: (0, reified_1.decodeFromJSONField)(structs_4.UID.reified(), field.id),
1722
- config: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.config),
1723
- tailsManagerCap: (0, reified_1.decodeFromJSONField)(structs_6.ManagerCap.reified(), field.tailsManagerCap),
1724
- tails: (0, reified_1.decodeFromJSONField)(structs_3.ObjectTable.reified(reified.phantom("address"), reified.phantom(structs_6.Tails.reified())), field.tails),
1725
- tailsMetadata: (0, reified_1.decodeFromJSONField)(structs_2.Bag.reified(), field.tailsMetadata),
1726
- stakingInfos: (0, reified_1.decodeFromJSONField)(structs_7.BigVector.reified(), field.stakingInfos),
1727
- profitAssets: (0, reified_1.decodeFromJSONField)(reified.vector(structs_1.TypeName.reified()), field.profitAssets),
1728
- transferPolicy: (0, reified_1.decodeFromJSONField)(structs_5.TransferPolicy.reified(reified.phantom(structs_6.Tails.reified())), field.transferPolicy),
1729
- });
1730
- };
1731
- TailsStakingRegistry.fromJSON = function (json) {
1732
- if (json.$typeName !== TailsStakingRegistry.$typeName) {
1733
- throw new Error("not a WithTwoGenerics json object");
1734
- }
1735
- return TailsStakingRegistry.fromJSONField(json);
1736
- };
1737
- TailsStakingRegistry.fromSuiParsedData = function (content) {
1738
- if (content.dataType !== "moveObject") {
1739
- throw new Error("not an object");
1740
- }
1741
- if (!isTailsStakingRegistry(content.type)) {
1742
- throw new Error("object at ".concat(content.fields.id, " is not a TailsStakingRegistry object"));
1743
- }
1744
- return TailsStakingRegistry.fromFieldsWithTypes(content);
1745
- };
1746
- TailsStakingRegistry.fromSuiObjectData = function (data) {
1747
- if (data.bcs) {
1748
- if (data.bcs.dataType !== "moveObject" || !isTailsStakingRegistry(data.bcs.type)) {
1749
- throw new Error("object at is not a TailsStakingRegistry object");
1750
- }
1751
- return TailsStakingRegistry.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1752
- }
1753
- if (data.content) {
1754
- return TailsStakingRegistry.fromSuiParsedData(data.content);
1755
- }
1756
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1757
- };
1758
- TailsStakingRegistry.fetch = function (client, id) {
1759
- return __awaiter(this, void 0, void 0, function () {
1760
- var res;
1761
- var _a, _b;
1762
- return __generator(this, function (_c) {
1763
- switch (_c.label) {
1764
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1765
- case 1:
1766
- res = _c.sent();
1767
- if (res.error) {
1768
- throw new Error("error fetching TailsStakingRegistry object at id ".concat(id, ": ").concat(res.error.code));
1769
- }
1770
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTailsStakingRegistry(res.data.bcs.type)) {
1771
- throw new Error("object at id ".concat(id, " is not a TailsStakingRegistry object"));
1772
- }
1773
- return [2 /*return*/, TailsStakingRegistry.fromSuiObjectData(res.data)];
1774
- }
1775
- });
1776
- });
1777
- };
1778
- TailsStakingRegistry.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::TailsStakingRegistry");
1779
- TailsStakingRegistry.$numTypeParams = 0;
1780
- TailsStakingRegistry.$isPhantom = [];
1781
- return TailsStakingRegistry;
1782
- }());
1783
- exports.TailsStakingRegistry = TailsStakingRegistry;
1784
- /* ============================== TransferTailsEvent =============================== */
1785
- function isTransferTailsEvent(type) {
1786
- type = (0, util_1.compressSuiType)(type);
1787
- return type === "".concat(index_1.PKG_V6, "::tails_staking::TransferTailsEvent");
1788
- }
1789
- var TransferTailsEvent = /** @class */ (function () {
1790
- function TransferTailsEvent(typeArgs, fields) {
1791
- this.__StructClass = true;
1792
- this.$typeName = TransferTailsEvent.$typeName;
1793
- this.$isPhantom = TransferTailsEvent.$isPhantom;
1794
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TransferTailsEvent.$typeName], __read(typeArgs), false));
1795
- this.$typeArgs = typeArgs;
1796
- this.tails = fields.tails;
1797
- this.recipient = fields.recipient;
1798
- this.log = fields.log;
1799
- this.bcsPadding = fields.bcsPadding;
1800
- }
1801
- TransferTailsEvent.reified = function () {
1802
- var _this = this;
1803
- return {
1804
- typeName: TransferTailsEvent.$typeName,
1805
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TransferTailsEvent.$typeName], [], false)),
1806
- typeArgs: [],
1807
- isPhantom: TransferTailsEvent.$isPhantom,
1808
- reifiedTypeArgs: [],
1809
- fromFields: function (fields) { return TransferTailsEvent.fromFields(fields); },
1810
- fromFieldsWithTypes: function (item) { return TransferTailsEvent.fromFieldsWithTypes(item); },
1811
- fromBcs: function (data) { return TransferTailsEvent.fromBcs(data); },
1812
- bcs: TransferTailsEvent.bcs,
1813
- fromJSONField: function (field) { return TransferTailsEvent.fromJSONField(field); },
1814
- fromJSON: function (json) { return TransferTailsEvent.fromJSON(json); },
1815
- fromSuiParsedData: function (content) { return TransferTailsEvent.fromSuiParsedData(content); },
1816
- fromSuiObjectData: function (content) { return TransferTailsEvent.fromSuiObjectData(content); },
1817
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1818
- return [2 /*return*/, TransferTailsEvent.fetch(client, id)];
1819
- }); }); },
1820
- new: function (fields) {
1821
- return new TransferTailsEvent([], fields);
1822
- },
1823
- kind: "StructClassReified",
1824
- };
1825
- };
1826
- Object.defineProperty(TransferTailsEvent, "r", {
1827
- get: function () {
1828
- return TransferTailsEvent.reified();
1829
- },
1830
- enumerable: false,
1831
- configurable: true
1832
- });
1833
- TransferTailsEvent.phantom = function () {
1834
- return (0, reified_1.phantom)(TransferTailsEvent.reified());
1835
- };
1836
- Object.defineProperty(TransferTailsEvent, "p", {
1837
- get: function () {
1838
- return TransferTailsEvent.phantom();
1839
- },
1840
- enumerable: false,
1841
- configurable: true
1842
- });
1843
- Object.defineProperty(TransferTailsEvent, "bcs", {
1844
- get: function () {
1845
- return bcs_1.bcs.struct("TransferTailsEvent", {
1846
- tails: bcs_1.bcs.bytes(32).transform({
1847
- input: function (val) { return (0, utils_1.fromHEX)(val); },
1848
- output: function (val) { return (0, utils_1.toHEX)(val); },
1849
- }),
1850
- recipient: bcs_1.bcs.bytes(32).transform({
1851
- input: function (val) { return (0, utils_1.fromHEX)(val); },
1852
- output: function (val) { return (0, utils_1.toHEX)(val); },
1853
- }),
1854
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1855
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
1856
- });
1857
- },
1858
- enumerable: false,
1859
- configurable: true
1860
- });
1861
- TransferTailsEvent.fromFields = function (fields) {
1862
- return TransferTailsEvent.reified().new({
1863
- tails: (0, reified_1.decodeFromFields)("address", fields.tails),
1864
- recipient: (0, reified_1.decodeFromFields)("address", fields.recipient),
1865
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
1866
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
1867
- });
1868
- };
1869
- TransferTailsEvent.fromFieldsWithTypes = function (item) {
1870
- if (!isTransferTailsEvent(item.type)) {
1871
- throw new Error("not a TransferTailsEvent type");
1872
- }
1873
- return TransferTailsEvent.reified().new({
1874
- tails: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.tails),
1875
- recipient: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.recipient),
1876
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
1877
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
1878
- });
1879
- };
1880
- TransferTailsEvent.fromBcs = function (data) {
1881
- return TransferTailsEvent.fromFields(TransferTailsEvent.bcs.parse(data));
1882
- };
1883
- TransferTailsEvent.prototype.toJSONField = function () {
1884
- return {
1885
- tails: this.tails,
1886
- recipient: this.recipient,
1887
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
1888
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
1889
- };
1890
- };
1891
- TransferTailsEvent.prototype.toJSON = function () {
1892
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1893
- };
1894
- TransferTailsEvent.fromJSONField = function (field) {
1895
- return TransferTailsEvent.reified().new({
1896
- tails: (0, reified_1.decodeFromJSONField)("address", field.tails),
1897
- recipient: (0, reified_1.decodeFromJSONField)("address", field.recipient),
1898
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
1899
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
1900
- });
1901
- };
1902
- TransferTailsEvent.fromJSON = function (json) {
1903
- if (json.$typeName !== TransferTailsEvent.$typeName) {
1904
- throw new Error("not a WithTwoGenerics json object");
1905
- }
1906
- return TransferTailsEvent.fromJSONField(json);
1907
- };
1908
- TransferTailsEvent.fromSuiParsedData = function (content) {
1909
- if (content.dataType !== "moveObject") {
1910
- throw new Error("not an object");
1911
- }
1912
- if (!isTransferTailsEvent(content.type)) {
1913
- throw new Error("object at ".concat(content.fields.id, " is not a TransferTailsEvent object"));
1914
- }
1915
- return TransferTailsEvent.fromFieldsWithTypes(content);
1916
- };
1917
- TransferTailsEvent.fromSuiObjectData = function (data) {
1918
- if (data.bcs) {
1919
- if (data.bcs.dataType !== "moveObject" || !isTransferTailsEvent(data.bcs.type)) {
1920
- throw new Error("object at is not a TransferTailsEvent object");
1921
- }
1922
- return TransferTailsEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1923
- }
1924
- if (data.content) {
1925
- return TransferTailsEvent.fromSuiParsedData(data.content);
1926
- }
1927
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1928
- };
1929
- TransferTailsEvent.fetch = function (client, id) {
1930
- return __awaiter(this, void 0, void 0, function () {
1931
- var res;
1932
- var _a, _b;
1933
- return __generator(this, function (_c) {
1934
- switch (_c.label) {
1935
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1936
- case 1:
1937
- res = _c.sent();
1938
- if (res.error) {
1939
- throw new Error("error fetching TransferTailsEvent object at id ".concat(id, ": ").concat(res.error.code));
1940
- }
1941
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTransferTailsEvent(res.data.bcs.type)) {
1942
- throw new Error("object at id ".concat(id, " is not a TransferTailsEvent object"));
1943
- }
1944
- return [2 /*return*/, TransferTailsEvent.fromSuiObjectData(res.data)];
1945
- }
1946
- });
1947
- });
1948
- };
1949
- TransferTailsEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::TransferTailsEvent");
1950
- TransferTailsEvent.$numTypeParams = 0;
1951
- TransferTailsEvent.$isPhantom = [];
1952
- return TransferTailsEvent;
1953
- }());
1954
- exports.TransferTailsEvent = TransferTailsEvent;
1955
- /* ============================== UnstakeTailsEvent =============================== */
1956
- function isUnstakeTailsEvent(type) {
1957
- type = (0, util_1.compressSuiType)(type);
1958
- return type === "".concat(index_1.PKG_V6, "::tails_staking::UnstakeTailsEvent");
1959
- }
1960
- var UnstakeTailsEvent = /** @class */ (function () {
1961
- function UnstakeTailsEvent(typeArgs, fields) {
1962
- this.__StructClass = true;
1963
- this.$typeName = UnstakeTailsEvent.$typeName;
1964
- this.$isPhantom = UnstakeTailsEvent.$isPhantom;
1965
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UnstakeTailsEvent.$typeName], __read(typeArgs), false));
1966
- this.$typeArgs = typeArgs;
1967
- this.tails = fields.tails;
1968
- this.log = fields.log;
1969
- this.bcsPadding = fields.bcsPadding;
1970
- }
1971
- UnstakeTailsEvent.reified = function () {
1972
- var _this = this;
1973
- return {
1974
- typeName: UnstakeTailsEvent.$typeName,
1975
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UnstakeTailsEvent.$typeName], [], false)),
1976
- typeArgs: [],
1977
- isPhantom: UnstakeTailsEvent.$isPhantom,
1978
- reifiedTypeArgs: [],
1979
- fromFields: function (fields) { return UnstakeTailsEvent.fromFields(fields); },
1980
- fromFieldsWithTypes: function (item) { return UnstakeTailsEvent.fromFieldsWithTypes(item); },
1981
- fromBcs: function (data) { return UnstakeTailsEvent.fromBcs(data); },
1982
- bcs: UnstakeTailsEvent.bcs,
1983
- fromJSONField: function (field) { return UnstakeTailsEvent.fromJSONField(field); },
1984
- fromJSON: function (json) { return UnstakeTailsEvent.fromJSON(json); },
1985
- fromSuiParsedData: function (content) { return UnstakeTailsEvent.fromSuiParsedData(content); },
1986
- fromSuiObjectData: function (content) { return UnstakeTailsEvent.fromSuiObjectData(content); },
1987
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1988
- return [2 /*return*/, UnstakeTailsEvent.fetch(client, id)];
1989
- }); }); },
1990
- new: function (fields) {
1991
- return new UnstakeTailsEvent([], fields);
1992
- },
1993
- kind: "StructClassReified",
1994
- };
1995
- };
1996
- Object.defineProperty(UnstakeTailsEvent, "r", {
1997
- get: function () {
1998
- return UnstakeTailsEvent.reified();
1999
- },
2000
- enumerable: false,
2001
- configurable: true
2002
- });
2003
- UnstakeTailsEvent.phantom = function () {
2004
- return (0, reified_1.phantom)(UnstakeTailsEvent.reified());
2005
- };
2006
- Object.defineProperty(UnstakeTailsEvent, "p", {
2007
- get: function () {
2008
- return UnstakeTailsEvent.phantom();
2009
- },
2010
- enumerable: false,
2011
- configurable: true
2012
- });
2013
- Object.defineProperty(UnstakeTailsEvent, "bcs", {
2014
- get: function () {
2015
- return bcs_1.bcs.struct("UnstakeTailsEvent", {
2016
- tails: bcs_1.bcs.bytes(32).transform({
2017
- input: function (val) { return (0, utils_1.fromHEX)(val); },
2018
- output: function (val) { return (0, utils_1.toHEX)(val); },
2019
- }),
2020
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
2021
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
2022
- });
2023
- },
2024
- enumerable: false,
2025
- configurable: true
2026
- });
2027
- UnstakeTailsEvent.fromFields = function (fields) {
2028
- return UnstakeTailsEvent.reified().new({
2029
- tails: (0, reified_1.decodeFromFields)("address", fields.tails),
2030
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
2031
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
2032
- });
2033
- };
2034
- UnstakeTailsEvent.fromFieldsWithTypes = function (item) {
2035
- if (!isUnstakeTailsEvent(item.type)) {
2036
- throw new Error("not a UnstakeTailsEvent type");
2037
- }
2038
- return UnstakeTailsEvent.reified().new({
2039
- tails: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.tails),
2040
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
2041
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
2042
- });
2043
- };
2044
- UnstakeTailsEvent.fromBcs = function (data) {
2045
- return UnstakeTailsEvent.fromFields(UnstakeTailsEvent.bcs.parse(data));
2046
- };
2047
- UnstakeTailsEvent.prototype.toJSONField = function () {
2048
- return {
2049
- tails: this.tails,
2050
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
2051
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
2052
- };
2053
- };
2054
- UnstakeTailsEvent.prototype.toJSON = function () {
2055
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
2056
- };
2057
- UnstakeTailsEvent.fromJSONField = function (field) {
2058
- return UnstakeTailsEvent.reified().new({
2059
- tails: (0, reified_1.decodeFromJSONField)("address", field.tails),
2060
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
2061
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
2062
- });
2063
- };
2064
- UnstakeTailsEvent.fromJSON = function (json) {
2065
- if (json.$typeName !== UnstakeTailsEvent.$typeName) {
2066
- throw new Error("not a WithTwoGenerics json object");
2067
- }
2068
- return UnstakeTailsEvent.fromJSONField(json);
2069
- };
2070
- UnstakeTailsEvent.fromSuiParsedData = function (content) {
2071
- if (content.dataType !== "moveObject") {
2072
- throw new Error("not an object");
2073
- }
2074
- if (!isUnstakeTailsEvent(content.type)) {
2075
- throw new Error("object at ".concat(content.fields.id, " is not a UnstakeTailsEvent object"));
2076
- }
2077
- return UnstakeTailsEvent.fromFieldsWithTypes(content);
2078
- };
2079
- UnstakeTailsEvent.fromSuiObjectData = function (data) {
2080
- if (data.bcs) {
2081
- if (data.bcs.dataType !== "moveObject" || !isUnstakeTailsEvent(data.bcs.type)) {
2082
- throw new Error("object at is not a UnstakeTailsEvent object");
2083
- }
2084
- return UnstakeTailsEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2085
- }
2086
- if (data.content) {
2087
- return UnstakeTailsEvent.fromSuiParsedData(data.content);
2088
- }
2089
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2090
- };
2091
- UnstakeTailsEvent.fetch = function (client, id) {
2092
- return __awaiter(this, void 0, void 0, function () {
2093
- var res;
2094
- var _a, _b;
2095
- return __generator(this, function (_c) {
2096
- switch (_c.label) {
2097
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2098
- case 1:
2099
- res = _c.sent();
2100
- if (res.error) {
2101
- throw new Error("error fetching UnstakeTailsEvent object at id ".concat(id, ": ").concat(res.error.code));
2102
- }
2103
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUnstakeTailsEvent(res.data.bcs.type)) {
2104
- throw new Error("object at id ".concat(id, " is not a UnstakeTailsEvent object"));
2105
- }
2106
- return [2 /*return*/, UnstakeTailsEvent.fromSuiObjectData(res.data)];
2107
- }
2108
- });
2109
- });
2110
- };
2111
- UnstakeTailsEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::UnstakeTailsEvent");
2112
- UnstakeTailsEvent.$numTypeParams = 0;
2113
- UnstakeTailsEvent.$isPhantom = [];
2114
- return UnstakeTailsEvent;
2115
- }());
2116
- exports.UnstakeTailsEvent = UnstakeTailsEvent;
2117
- /* ============================== UpdateTailsStakingRegistryConfigEvent =============================== */
2118
- function isUpdateTailsStakingRegistryConfigEvent(type) {
2119
- type = (0, util_1.compressSuiType)(type);
2120
- return type === "".concat(index_1.PKG_V6, "::tails_staking::UpdateTailsStakingRegistryConfigEvent");
2121
- }
2122
- var UpdateTailsStakingRegistryConfigEvent = /** @class */ (function () {
2123
- function UpdateTailsStakingRegistryConfigEvent(typeArgs, fields) {
2124
- this.__StructClass = true;
2125
- this.$typeName = UpdateTailsStakingRegistryConfigEvent.$typeName;
2126
- this.$isPhantom = UpdateTailsStakingRegistryConfigEvent.$isPhantom;
2127
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateTailsStakingRegistryConfigEvent.$typeName], __read(typeArgs), false));
2128
- this.$typeArgs = typeArgs;
2129
- this.index = fields.index;
2130
- this.log = fields.log;
2131
- this.bcsPadding = fields.bcsPadding;
2132
- }
2133
- UpdateTailsStakingRegistryConfigEvent.reified = function () {
2134
- var _this = this;
2135
- return {
2136
- typeName: UpdateTailsStakingRegistryConfigEvent.$typeName,
2137
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateTailsStakingRegistryConfigEvent.$typeName], [], false)),
2138
- typeArgs: [],
2139
- isPhantom: UpdateTailsStakingRegistryConfigEvent.$isPhantom,
2140
- reifiedTypeArgs: [],
2141
- fromFields: function (fields) { return UpdateTailsStakingRegistryConfigEvent.fromFields(fields); },
2142
- fromFieldsWithTypes: function (item) { return UpdateTailsStakingRegistryConfigEvent.fromFieldsWithTypes(item); },
2143
- fromBcs: function (data) { return UpdateTailsStakingRegistryConfigEvent.fromBcs(data); },
2144
- bcs: UpdateTailsStakingRegistryConfigEvent.bcs,
2145
- fromJSONField: function (field) { return UpdateTailsStakingRegistryConfigEvent.fromJSONField(field); },
2146
- fromJSON: function (json) { return UpdateTailsStakingRegistryConfigEvent.fromJSON(json); },
2147
- fromSuiParsedData: function (content) { return UpdateTailsStakingRegistryConfigEvent.fromSuiParsedData(content); },
2148
- fromSuiObjectData: function (content) { return UpdateTailsStakingRegistryConfigEvent.fromSuiObjectData(content); },
2149
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2150
- return [2 /*return*/, UpdateTailsStakingRegistryConfigEvent.fetch(client, id)];
2151
- }); }); },
2152
- new: function (fields) {
2153
- return new UpdateTailsStakingRegistryConfigEvent([], fields);
2154
- },
2155
- kind: "StructClassReified",
2156
- };
2157
- };
2158
- Object.defineProperty(UpdateTailsStakingRegistryConfigEvent, "r", {
2159
- get: function () {
2160
- return UpdateTailsStakingRegistryConfigEvent.reified();
2161
- },
2162
- enumerable: false,
2163
- configurable: true
2164
- });
2165
- UpdateTailsStakingRegistryConfigEvent.phantom = function () {
2166
- return (0, reified_1.phantom)(UpdateTailsStakingRegistryConfigEvent.reified());
2167
- };
2168
- Object.defineProperty(UpdateTailsStakingRegistryConfigEvent, "p", {
2169
- get: function () {
2170
- return UpdateTailsStakingRegistryConfigEvent.phantom();
2171
- },
2172
- enumerable: false,
2173
- configurable: true
2174
- });
2175
- Object.defineProperty(UpdateTailsStakingRegistryConfigEvent, "bcs", {
2176
- get: function () {
2177
- return bcs_1.bcs.struct("UpdateTailsStakingRegistryConfigEvent", {
2178
- index: bcs_1.bcs.u64(),
2179
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
2180
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
2181
- });
2182
- },
2183
- enumerable: false,
2184
- configurable: true
2185
- });
2186
- UpdateTailsStakingRegistryConfigEvent.fromFields = function (fields) {
2187
- return UpdateTailsStakingRegistryConfigEvent.reified().new({
2188
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
2189
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
2190
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
2191
- });
2192
- };
2193
- UpdateTailsStakingRegistryConfigEvent.fromFieldsWithTypes = function (item) {
2194
- if (!isUpdateTailsStakingRegistryConfigEvent(item.type)) {
2195
- throw new Error("not a UpdateTailsStakingRegistryConfigEvent type");
2196
- }
2197
- return UpdateTailsStakingRegistryConfigEvent.reified().new({
2198
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
2199
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
2200
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
2201
- });
2202
- };
2203
- UpdateTailsStakingRegistryConfigEvent.fromBcs = function (data) {
2204
- return UpdateTailsStakingRegistryConfigEvent.fromFields(UpdateTailsStakingRegistryConfigEvent.bcs.parse(data));
2205
- };
2206
- UpdateTailsStakingRegistryConfigEvent.prototype.toJSONField = function () {
2207
- return {
2208
- index: this.index.toString(),
2209
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
2210
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
2211
- };
2212
- };
2213
- UpdateTailsStakingRegistryConfigEvent.prototype.toJSON = function () {
2214
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
2215
- };
2216
- UpdateTailsStakingRegistryConfigEvent.fromJSONField = function (field) {
2217
- return UpdateTailsStakingRegistryConfigEvent.reified().new({
2218
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
2219
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
2220
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
2221
- });
2222
- };
2223
- UpdateTailsStakingRegistryConfigEvent.fromJSON = function (json) {
2224
- if (json.$typeName !== UpdateTailsStakingRegistryConfigEvent.$typeName) {
2225
- throw new Error("not a WithTwoGenerics json object");
2226
- }
2227
- return UpdateTailsStakingRegistryConfigEvent.fromJSONField(json);
2228
- };
2229
- UpdateTailsStakingRegistryConfigEvent.fromSuiParsedData = function (content) {
2230
- if (content.dataType !== "moveObject") {
2231
- throw new Error("not an object");
2232
- }
2233
- if (!isUpdateTailsStakingRegistryConfigEvent(content.type)) {
2234
- throw new Error("object at ".concat(content.fields.id, " is not a UpdateTailsStakingRegistryConfigEvent object"));
2235
- }
2236
- return UpdateTailsStakingRegistryConfigEvent.fromFieldsWithTypes(content);
2237
- };
2238
- UpdateTailsStakingRegistryConfigEvent.fromSuiObjectData = function (data) {
2239
- if (data.bcs) {
2240
- if (data.bcs.dataType !== "moveObject" || !isUpdateTailsStakingRegistryConfigEvent(data.bcs.type)) {
2241
- throw new Error("object at is not a UpdateTailsStakingRegistryConfigEvent object");
2242
- }
2243
- return UpdateTailsStakingRegistryConfigEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2244
- }
2245
- if (data.content) {
2246
- return UpdateTailsStakingRegistryConfigEvent.fromSuiParsedData(data.content);
2247
- }
2248
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2249
- };
2250
- UpdateTailsStakingRegistryConfigEvent.fetch = function (client, id) {
2251
- return __awaiter(this, void 0, void 0, function () {
2252
- var res;
2253
- var _a, _b;
2254
- return __generator(this, function (_c) {
2255
- switch (_c.label) {
2256
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2257
- case 1:
2258
- res = _c.sent();
2259
- if (res.error) {
2260
- throw new Error("error fetching UpdateTailsStakingRegistryConfigEvent object at id ".concat(id, ": ").concat(res.error.code));
2261
- }
2262
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateTailsStakingRegistryConfigEvent(res.data.bcs.type)) {
2263
- throw new Error("object at id ".concat(id, " is not a UpdateTailsStakingRegistryConfigEvent object"));
2264
- }
2265
- return [2 /*return*/, UpdateTailsStakingRegistryConfigEvent.fromSuiObjectData(res.data)];
2266
- }
2267
- });
2268
- });
2269
- };
2270
- UpdateTailsStakingRegistryConfigEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::UpdateTailsStakingRegistryConfigEvent");
2271
- UpdateTailsStakingRegistryConfigEvent.$numTypeParams = 0;
2272
- UpdateTailsStakingRegistryConfigEvent.$isPhantom = [];
2273
- return UpdateTailsStakingRegistryConfigEvent;
2274
- }());
2275
- exports.UpdateTailsStakingRegistryConfigEvent = UpdateTailsStakingRegistryConfigEvent;