@typus/typus-sdk 1.4.3 → 1.4.5

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 (494) hide show
  1. package/package.json +6 -6
  2. package/lib/config.json +0 -189
  3. package/lib/src/_dependencies/source/0x1/ascii/structs.d.ts +0 -82
  4. package/lib/src/_dependencies/source/0x1/ascii/structs.js +0 -280
  5. package/lib/src/_dependencies/source/0x1/bit-vector/structs.d.ts +0 -50
  6. package/lib/src/_dependencies/source/0x1/bit-vector/structs.js +0 -193
  7. package/lib/src/_dependencies/source/0x1/fixed-point32/structs.d.ts +0 -41
  8. package/lib/src/_dependencies/source/0x1/fixed-point32/structs.js +0 -167
  9. package/lib/src/_dependencies/source/0x1/index.d.ts +0 -2
  10. package/lib/src/_dependencies/source/0x1/index.js +0 -5
  11. package/lib/src/_dependencies/source/0x1/init.d.ts +0 -2
  12. package/lib/src/_dependencies/source/0x1/init.js +0 -41
  13. package/lib/src/_dependencies/source/0x1/option/structs.d.ts +0 -46
  14. package/lib/src/_dependencies/source/0x1/option/structs.js +0 -198
  15. package/lib/src/_dependencies/source/0x1/string/structs.d.ts +0 -44
  16. package/lib/src/_dependencies/source/0x1/string/structs.js +0 -191
  17. package/lib/src/_dependencies/source/0x1/type-name/structs.d.ts +0 -48
  18. package/lib/src/_dependencies/source/0x1/type-name/structs.js +0 -168
  19. package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +0 -2
  20. package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +0 -5
  21. package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +0 -2
  22. package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +0 -39
  23. package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +0 -277
  24. package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +0 -377
  25. package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +0 -102
  26. package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +0 -353
  27. package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +0 -65
  28. package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +0 -175
  29. package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +0 -65
  30. package/lib/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +0 -175
  31. package/lib/src/_dependencies/source/0x2/authenticator-state/structs.d.ts +0 -442
  32. package/lib/src/_dependencies/source/0x2/authenticator-state/structs.js +0 -565
  33. package/lib/src/_dependencies/source/0x2/bag/structs.d.ts +0 -56
  34. package/lib/src/_dependencies/source/0x2/bag/structs.js +0 -170
  35. package/lib/src/_dependencies/source/0x2/balance/structs.d.ts +0 -79
  36. package/lib/src/_dependencies/source/0x2/balance/structs.js +0 -260
  37. package/lib/src/_dependencies/source/0x2/bcs/structs.d.ts +0 -44
  38. package/lib/src/_dependencies/source/0x2/bcs/structs.js +0 -191
  39. package/lib/src/_dependencies/source/0x2/bls12381/structs.d.ts +0 -155
  40. package/lib/src/_dependencies/source/0x2/bls12381/structs.js +0 -434
  41. package/lib/src/_dependencies/source/0x2/borrow/structs.d.ts +0 -104
  42. package/lib/src/_dependencies/source/0x2/borrow/structs.js +0 -267
  43. package/lib/src/_dependencies/source/0x2/clock/structs.d.ts +0 -56
  44. package/lib/src/_dependencies/source/0x2/clock/structs.js +0 -170
  45. package/lib/src/_dependencies/source/0x2/coin/structs.d.ts +0 -379
  46. package/lib/src/_dependencies/source/0x2/coin/structs.js +0 -648
  47. package/lib/src/_dependencies/source/0x2/deny-list/structs.d.ts +0 -178
  48. package/lib/src/_dependencies/source/0x2/deny-list/structs.js +0 -290
  49. package/lib/src/_dependencies/source/0x2/display/structs.d.ts +0 -228
  50. package/lib/src/_dependencies/source/0x2/display/structs.js +0 -362
  51. package/lib/src/_dependencies/source/0x2/dynamic-field/structs.d.ts +0 -63
  52. package/lib/src/_dependencies/source/0x2/dynamic-field/structs.js +0 -174
  53. package/lib/src/_dependencies/source/0x2/dynamic-object-field/structs.d.ts +0 -42
  54. package/lib/src/_dependencies/source/0x2/dynamic-object-field/structs.js +0 -172
  55. package/lib/src/_dependencies/source/0x2/groth16/structs.d.ts +0 -186
  56. package/lib/src/_dependencies/source/0x2/groth16/structs.js +0 -464
  57. package/lib/src/_dependencies/source/0x2/group-ops/structs.d.ts +0 -44
  58. package/lib/src/_dependencies/source/0x2/group-ops/structs.js +0 -193
  59. package/lib/src/_dependencies/source/0x2/index.d.ts +0 -2
  60. package/lib/src/_dependencies/source/0x2/index.js +0 -5
  61. package/lib/src/_dependencies/source/0x2/init.d.ts +0 -2
  62. package/lib/src/_dependencies/source/0x2/init.js +0 -150
  63. package/lib/src/_dependencies/source/0x2/kiosk/structs.d.ts +0 -565
  64. package/lib/src/_dependencies/source/0x2/kiosk/structs.js +0 -1033
  65. package/lib/src/_dependencies/source/0x2/kiosk-extension/structs.d.ts +0 -112
  66. package/lib/src/_dependencies/source/0x2/kiosk-extension/structs.js +0 -263
  67. package/lib/src/_dependencies/source/0x2/linked-table/structs.d.ts +0 -144
  68. package/lib/src/_dependencies/source/0x2/linked-table/structs.js +0 -272
  69. package/lib/src/_dependencies/source/0x2/object/structs.d.ts +0 -83
  70. package/lib/src/_dependencies/source/0x2/object/structs.js +0 -256
  71. package/lib/src/_dependencies/source/0x2/object-bag/structs.d.ts +0 -56
  72. package/lib/src/_dependencies/source/0x2/object-bag/structs.js +0 -170
  73. package/lib/src/_dependencies/source/0x2/object-table/structs.d.ts +0 -56
  74. package/lib/src/_dependencies/source/0x2/object-table/structs.js +0 -172
  75. package/lib/src/_dependencies/source/0x2/package/structs.d.ts +0 -262
  76. package/lib/src/_dependencies/source/0x2/package/structs.js +0 -478
  77. package/lib/src/_dependencies/source/0x2/priority-queue/structs.d.ts +0 -101
  78. package/lib/src/_dependencies/source/0x2/priority-queue/structs.js +0 -292
  79. package/lib/src/_dependencies/source/0x2/random/structs.d.ts +0 -190
  80. package/lib/src/_dependencies/source/0x2/random/structs.js +0 -383
  81. package/lib/src/_dependencies/source/0x2/sui/structs.d.ts +0 -41
  82. package/lib/src/_dependencies/source/0x2/sui/structs.js +0 -167
  83. package/lib/src/_dependencies/source/0x2/table/structs.d.ts +0 -56
  84. package/lib/src/_dependencies/source/0x2/table/structs.js +0 -172
  85. package/lib/src/_dependencies/source/0x2/table-vec/structs.d.ts +0 -63
  86. package/lib/src/_dependencies/source/0x2/table-vec/structs.js +0 -194
  87. package/lib/src/_dependencies/source/0x2/token/structs.d.ts +0 -424
  88. package/lib/src/_dependencies/source/0x2/token/structs.js +0 -651
  89. package/lib/src/_dependencies/source/0x2/transfer/structs.d.ts +0 -52
  90. package/lib/src/_dependencies/source/0x2/transfer/structs.js +0 -172
  91. package/lib/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -345
  92. package/lib/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -665
  93. package/lib/src/_dependencies/source/0x2/tx-context/structs.d.ts +0 -68
  94. package/lib/src/_dependencies/source/0x2/tx-context/structs.js +0 -199
  95. package/lib/src/_dependencies/source/0x2/url/structs.d.ts +0 -48
  96. package/lib/src/_dependencies/source/0x2/url/structs.js +0 -168
  97. package/lib/src/_dependencies/source/0x2/vec-map/structs.d.ts +0 -101
  98. package/lib/src/_dependencies/source/0x2/vec-map/structs.js +0 -286
  99. package/lib/src/_dependencies/source/0x2/vec-set/structs.d.ts +0 -45
  100. package/lib/src/_dependencies/source/0x2/vec-set/structs.js +0 -196
  101. package/lib/src/_dependencies/source/0x2/versioned/structs.d.ts +0 -104
  102. package/lib/src/_dependencies/source/0x2/versioned/structs.js +0 -261
  103. package/lib/src/_dependencies/source/0x2/zklogin-verified-id/structs.d.ts +0 -105
  104. package/lib/src/_dependencies/source/0x2/zklogin-verified-id/structs.js +0 -179
  105. package/lib/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.d.ts +0 -69
  106. package/lib/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.js +0 -173
  107. package/lib/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +0 -2
  108. package/lib/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +0 -5
  109. package/lib/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +0 -2
  110. package/lib/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +0 -30
  111. package/lib/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +0 -50
  112. package/lib/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +0 -168
  113. package/lib/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +0 -2
  114. package/lib/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +0 -5
  115. package/lib/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +0 -2
  116. package/lib/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +0 -33
  117. package/lib/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +0 -41
  118. package/lib/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +0 -167
  119. package/lib/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +0 -112
  120. package/lib/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +0 -265
  121. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +0 -463
  122. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +0 -669
  123. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +0 -137
  124. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +0 -401
  125. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +0 -226
  126. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +0 -402
  127. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +0 -383
  128. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +0 -566
  129. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +0 -2
  130. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +0 -5
  131. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +0 -2
  132. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +0 -73
  133. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +0 -591
  134. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +0 -774
  135. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.d.ts +0 -152
  136. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +0 -272
  137. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +0 -138
  138. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +0 -276
  139. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +0 -261
  140. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +0 -471
  141. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +0 -306
  142. package/lib/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +0 -563
  143. package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +0 -598
  144. package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +0 -789
  145. package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +0 -2
  146. package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +0 -5
  147. package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +0 -2
  148. package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +0 -61
  149. package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +0 -85
  150. package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.js +0 -258
  151. package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +0 -433
  152. package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +0 -562
  153. package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +0 -63
  154. package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +0 -194
  155. package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +0 -1006
  156. package/lib/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +0 -1331
  157. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +0 -1458
  158. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +0 -1706
  159. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +0 -2
  160. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +0 -5
  161. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +0 -2
  162. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +0 -129
  163. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +0 -1201
  164. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +0 -1643
  165. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +0 -1374
  166. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +0 -971
  167. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +0 -395
  168. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +0 -750
  169. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +0 -994
  170. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +0 -933
  171. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +0 -77
  172. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +0 -179
  173. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +0 -4562
  174. package/lib/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +0 -3796
  175. package/lib/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +0 -2
  176. package/lib/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +0 -5
  177. package/lib/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +0 -2
  178. package/lib/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +0 -4
  179. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +0 -83
  180. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +0 -192
  181. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +0 -333
  182. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +0 -382
  183. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +0 -68
  184. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +0 -176
  185. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +0 -843
  186. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +0 -959
  187. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +0 -41
  188. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +0 -167
  189. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +0 -2
  190. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +0 -5
  191. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +0 -2
  192. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +0 -79
  193. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +0 -146
  194. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +0 -274
  195. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.d.ts +0 -2272
  196. package/lib/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +0 -2830
  197. package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +0 -719
  198. package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +0 -711
  199. package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +0 -2
  200. package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +0 -5
  201. package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +0 -2
  202. package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +0 -43
  203. package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +0 -81
  204. package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +0 -200
  205. package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +0 -53
  206. package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +0 -171
  207. package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +0 -115
  208. package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +0 -212
  209. package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +0 -50
  210. package/lib/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +0 -168
  211. package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +0 -2
  212. package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +0 -5
  213. package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.d.ts +0 -2
  214. package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +0 -36
  215. package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +0 -79
  216. package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +0 -256
  217. package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +0 -85
  218. package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.js +0 -258
  219. package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +0 -41
  220. package/lib/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +0 -169
  221. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.d.ts +0 -44
  222. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.js +0 -191
  223. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.d.ts +0 -44
  224. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.js +0 -191
  225. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.d.ts +0 -72
  226. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.js +0 -193
  227. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.d.ts +0 -45
  228. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.js +0 -196
  229. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.d.ts +0 -140
  230. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.js +0 -348
  231. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.d.ts +0 -52
  232. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.js +0 -168
  233. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.d.ts +0 -58
  234. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.js +0 -195
  235. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.d.ts +0 -158
  236. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.js +0 -298
  237. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.d.ts +0 -52
  238. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.js +0 -168
  239. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.d.ts +0 -75
  240. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.js +0 -196
  241. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.d.ts +0 -80
  242. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.js +0 -174
  243. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.d.ts +0 -2
  244. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.js +0 -5
  245. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.d.ts +0 -2
  246. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.js +0 -90
  247. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.d.ts +0 -46
  248. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.js +0 -168
  249. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.d.ts +0 -177
  250. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.js +0 -438
  251. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.d.ts +0 -141
  252. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.js +0 -297
  253. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.d.ts +0 -101
  254. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.js +0 -283
  255. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.d.ts +0 -79
  256. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.js +0 -256
  257. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.d.ts +0 -50
  258. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.js +0 -168
  259. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.d.ts +0 -269
  260. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.js +0 -303
  261. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.d.ts +0 -85
  262. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.js +0 -258
  263. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.d.ts +0 -145
  264. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.js +0 -372
  265. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.d.ts +0 -143
  266. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.js +0 -349
  267. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.d.ts +0 -122
  268. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.js +0 -209
  269. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.d.ts +0 -79
  270. package/lib/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.js +0 -256
  271. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.d.ts +0 -279
  272. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.js +0 -295
  273. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.d.ts +0 -105
  274. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.js +0 -260
  275. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.d.ts +0 -66
  276. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.js +0 -170
  277. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.d.ts +0 -200
  278. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.js +0 -259
  279. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.d.ts +0 -67
  280. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.js +0 -196
  281. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.d.ts +0 -41
  282. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.js +0 -167
  283. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.d.ts +0 -71
  284. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.js +0 -198
  285. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.d.ts +0 -45
  286. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.js +0 -196
  287. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.d.ts +0 -47
  288. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.js +0 -169
  289. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.d.ts +0 -2
  290. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.js +0 -5
  291. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.d.ts +0 -2
  292. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.js +0 -84
  293. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.d.ts +0 -46
  294. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.js +0 -168
  295. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.d.ts +0 -84
  296. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.js +0 -174
  297. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.d.ts +0 -153
  298. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.js +0 -173
  299. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.d.ts +0 -44
  300. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.js +0 -191
  301. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.d.ts +0 -351
  302. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.js +0 -264
  303. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.d.ts +0 -41
  304. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.js +0 -167
  305. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.d.ts +0 -110
  306. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.js +0 -288
  307. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.d.ts +0 -75
  308. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.js +0 -192
  309. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.d.ts +0 -41
  310. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.js +0 -167
  311. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.d.ts +0 -72
  312. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.js +0 -172
  313. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.d.ts +0 -41
  314. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.js +0 -167
  315. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.d.ts +0 -47
  316. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.js +0 -169
  317. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.d.ts +0 -50
  318. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.js +0 -168
  319. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.d.ts +0 -269
  320. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.js +0 -363
  321. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.d.ts +0 -79
  322. package/lib/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.js +0 -256
  323. package/lib/src/_framework/init-source.d.ts +0 -1
  324. package/lib/src/_framework/init-source.js +0 -64
  325. package/lib/src/_framework/loader.d.ts +0 -17
  326. package/lib/src/_framework/loader.js +0 -99
  327. package/lib/src/_framework/reified.d.ts +0 -100
  328. package/lib/src/_framework/reified.js +0 -263
  329. package/lib/src/_framework/util.d.ts +0 -53
  330. package/lib/src/_framework/util.js +0 -251
  331. package/lib/src/airdrop/authority-entry.d.ts +0 -22
  332. package/lib/src/airdrop/authority-entry.js +0 -137
  333. package/lib/src/airdrop/index.d.ts +0 -3
  334. package/lib/src/airdrop/index.js +0 -19
  335. package/lib/src/airdrop/user-entry.d.ts +0 -10
  336. package/lib/src/airdrop/user-entry.js +0 -16
  337. package/lib/src/airdrop/view-function.d.ts +0 -9
  338. package/lib/src/airdrop/view-function.js +0 -73
  339. package/lib/src/auto-bid/index.d.ts +0 -2
  340. package/lib/src/auto-bid/index.js +0 -18
  341. package/lib/src/auto-bid/user-entry.d.ts +0 -45
  342. package/lib/src/auto-bid/user-entry.js +0 -203
  343. package/lib/src/auto-bid/view-function.d.ts +0 -43
  344. package/lib/src/auto-bid/view-function.js +0 -347
  345. package/lib/src/constants/constant.d.ts +0 -22
  346. package/lib/src/constants/constant.js +0 -29
  347. package/lib/src/constants/index.d.ts +0 -2
  348. package/lib/src/constants/index.js +0 -18
  349. package/lib/src/constants/token.d.ts +0 -51
  350. package/lib/src/constants/token.js +0 -178
  351. package/lib/src/index.d.ts +0 -11
  352. package/lib/src/index.js +0 -27
  353. package/lib/src/leaderboard/authority-entry.d.ts +0 -22
  354. package/lib/src/leaderboard/authority-entry.js +0 -90
  355. package/lib/src/leaderboard/index.d.ts +0 -2
  356. package/lib/src/leaderboard/index.js +0 -18
  357. package/lib/src/leaderboard/view-function.d.ts +0 -20
  358. package/lib/src/leaderboard/view-function.js +0 -93
  359. package/lib/src/tails-exp-dice/api.d.ts +0 -1
  360. package/lib/src/tails-exp-dice/api.js +0 -76
  361. package/lib/src/tails-exp-dice/fetch.d.ts +0 -81
  362. package/lib/src/tails-exp-dice/fetch.js +0 -346
  363. package/lib/src/tails-exp-dice/index.d.ts +0 -4
  364. package/lib/src/tails-exp-dice/index.js +0 -20
  365. package/lib/src/tails-exp-dice/user-entry.d.ts +0 -70
  366. package/lib/src/tails-exp-dice/user-entry.js +0 -249
  367. package/lib/src/tails-exp-dice/view-function.d.ts +0 -8
  368. package/lib/src/tails-exp-dice/view-function.js +0 -130
  369. package/lib/src/tails-staking/authority-entry.d.ts +0 -182
  370. package/lib/src/tails-staking/authority-entry.js +0 -247
  371. package/lib/src/tails-staking/index.d.ts +0 -3
  372. package/lib/src/tails-staking/index.js +0 -19
  373. package/lib/src/tails-staking/user-entry.d.ts +0 -157
  374. package/lib/src/tails-staking/user-entry.js +0 -416
  375. package/lib/src/tails-staking/view-function.d.ts +0 -20
  376. package/lib/src/tails-staking/view-function.js +0 -122
  377. package/lib/src/typus-dov-single-v2/entry/authority-entry.d.ts +0 -70
  378. package/lib/src/typus-dov-single-v2/entry/authority-entry.js +0 -167
  379. package/lib/src/typus-dov-single-v2/entry/index.d.ts +0 -3
  380. package/lib/src/typus-dov-single-v2/entry/index.js +0 -19
  381. package/lib/src/typus-dov-single-v2/entry/mfud-user-entry.d.ts +0 -126
  382. package/lib/src/typus-dov-single-v2/entry/mfud-user-entry.js +0 -425
  383. package/lib/src/typus-dov-single-v2/entry/user-entry.d.ts +0 -212
  384. package/lib/src/typus-dov-single-v2/entry/user-entry.js +0 -448
  385. package/lib/src/typus-dov-single-v2/function/bidding.d.ts +0 -151
  386. package/lib/src/typus-dov-single-v2/function/bidding.js +0 -833
  387. package/lib/src/typus-dov-single-v2/function/index.d.ts +0 -3
  388. package/lib/src/typus-dov-single-v2/function/index.js +0 -19
  389. package/lib/src/typus-dov-single-v2/function/token.d.ts +0 -21
  390. package/lib/src/typus-dov-single-v2/function/token.js +0 -38
  391. package/lib/src/typus-dov-single-v2/function/vault.d.ts +0 -8
  392. package/lib/src/typus-dov-single-v2/function/vault.js +0 -23
  393. package/lib/src/typus-dov-single-v2/history/index.d.ts +0 -2
  394. package/lib/src/typus-dov-single-v2/history/index.js +0 -18
  395. package/lib/src/typus-dov-single-v2/history/user-history.d.ts +0 -36
  396. package/lib/src/typus-dov-single-v2/history/user-history.js +0 -999
  397. package/lib/src/typus-dov-single-v2/history/vault-history.d.ts +0 -123
  398. package/lib/src/typus-dov-single-v2/history/vault-history.js +0 -403
  399. package/lib/src/typus-dov-single-v2/index.d.ts +0 -4
  400. package/lib/src/typus-dov-single-v2/index.js +0 -20
  401. package/lib/src/typus-dov-single-v2/view-function.d.ts +0 -212
  402. package/lib/src/typus-dov-single-v2/view-function.js +0 -578
  403. package/lib/src/typus-nft/fetch.d.ts +0 -69
  404. package/lib/src/typus-nft/fetch.js +0 -565
  405. package/lib/src/typus-nft/index.d.ts +0 -2
  406. package/lib/src/typus-nft/index.js +0 -18
  407. package/lib/src/typus-nft/user-entry.d.ts +0 -38
  408. package/lib/src/typus-nft/user-entry.js +0 -173
  409. package/lib/src/typus-perp/admin/functions.d.ts +0 -51
  410. package/lib/src/typus-perp/admin/functions.js +0 -100
  411. package/lib/src/typus-perp/admin/structs.d.ts +0 -425
  412. package/lib/src/typus-perp/admin/structs.js +0 -802
  413. package/lib/src/typus-perp/fetch.d.ts +0 -57
  414. package/lib/src/typus-perp/fetch.js +0 -400
  415. package/lib/src/typus-perp/index.d.ts +0 -3
  416. package/lib/src/typus-perp/index.js +0 -14
  417. package/lib/src/typus-perp/init.d.ts +0 -2
  418. package/lib/src/typus-perp/init.js +0 -120
  419. package/lib/src/typus-perp/lp-pool/functions.d.ts +0 -283
  420. package/lib/src/typus-perp/lp-pool/functions.js +0 -418
  421. package/lib/src/typus-perp/lp-pool/structs.d.ts +0 -2538
  422. package/lib/src/typus-perp/lp-pool/structs.js +0 -3515
  423. package/lib/src/typus-perp/math/functions.d.ts +0 -18
  424. package/lib/src/typus-perp/math/functions.js +0 -40
  425. package/lib/src/typus-perp/oracle/functions.d.ts +0 -14
  426. package/lib/src/typus-perp/oracle/functions.js +0 -22
  427. package/lib/src/typus-perp/oracle/structs.d.ts +0 -102
  428. package/lib/src/typus-perp/oracle/structs.js +0 -353
  429. package/lib/src/typus-perp/position/functions.d.ts +0 -339
  430. package/lib/src/typus-perp/position/functions.js +0 -564
  431. package/lib/src/typus-perp/position/structs.d.ts +0 -1144
  432. package/lib/src/typus-perp/position/structs.js +0 -1485
  433. package/lib/src/typus-perp/readVec.d.ts +0 -3
  434. package/lib/src/typus-perp/readVec.js +0 -117
  435. package/lib/src/typus-perp/stake-pool/functions.d.ts +0 -169
  436. package/lib/src/typus-perp/stake-pool/functions.js +0 -258
  437. package/lib/src/typus-perp/stake-pool/structs.d.ts +0 -2071
  438. package/lib/src/typus-perp/stake-pool/structs.js +0 -3515
  439. package/lib/src/typus-perp/symbol/functions.d.ts +0 -10
  440. package/lib/src/typus-perp/symbol/functions.js +0 -20
  441. package/lib/src/typus-perp/symbol/structs.d.ts +0 -76
  442. package/lib/src/typus-perp/symbol/structs.js +0 -216
  443. package/lib/src/typus-perp/tlp/functions.d.ts +0 -20
  444. package/lib/src/typus-perp/tlp/functions.js +0 -35
  445. package/lib/src/typus-perp/tlp/structs.d.ts +0 -88
  446. package/lib/src/typus-perp/tlp/structs.js +0 -329
  447. package/lib/src/typus-perp/token-interface/functions.d.ts +0 -12
  448. package/lib/src/typus-perp/token-interface/functions.js +0 -20
  449. package/lib/src/typus-perp/trading/functions.d.ts +0 -427
  450. package/lib/src/typus-perp/trading/functions.js +0 -612
  451. package/lib/src/typus-perp/trading/structs.d.ts +0 -2631
  452. package/lib/src/typus-perp/trading/structs.js +0 -4067
  453. package/lib/src/typus-perp/treasury-caps/functions.d.ts +0 -10
  454. package/lib/src/typus-perp/treasury-caps/functions.js +0 -32
  455. package/lib/src/typus-perp/treasury-caps/structs.d.ts +0 -50
  456. package/lib/src/typus-perp/treasury-caps/structs.js +0 -204
  457. package/lib/src/typus-perp/user/order.d.ts +0 -70
  458. package/lib/src/typus-perp/user/order.js +0 -206
  459. package/lib/src/typus-perp/user/orderWithBidReceipt.d.ts +0 -62
  460. package/lib/src/typus-perp/user/orderWithBidReceipt.js +0 -149
  461. package/lib/src/typus-perp/user/tlp.d.ts +0 -93
  462. package/lib/src/typus-perp/user/tlp.js +0 -268
  463. package/lib/src/user/index.d.ts +0 -1
  464. package/lib/src/user/index.js +0 -17
  465. package/lib/src/user/view-function.d.ts +0 -8
  466. package/lib/src/user/view-function.js +0 -71
  467. package/lib/src/utils/api/defillama/index.d.ts +0 -1
  468. package/lib/src/utils/api/defillama/index.js +0 -17
  469. package/lib/src/utils/api/defillama/tvl.d.ts +0 -1
  470. package/lib/src/utils/api/defillama/tvl.js +0 -58
  471. package/lib/src/utils/api/index.d.ts +0 -3
  472. package/lib/src/utils/api/index.js +0 -19
  473. package/lib/src/utils/api/price.d.ts +0 -4
  474. package/lib/src/utils/api/price.js +0 -208
  475. package/lib/src/utils/api/sentio/index.d.ts +0 -2
  476. package/lib/src/utils/api/sentio/index.js +0 -18
  477. package/lib/src/utils/api/sentio/leader-board.d.ts +0 -7
  478. package/lib/src/utils/api/sentio/leader-board.js +0 -103
  479. package/lib/src/utils/api/sentio/reward-generated.d.ts +0 -16
  480. package/lib/src/utils/api/sentio/reward-generated.js +0 -511
  481. package/lib/src/utils/index.d.ts +0 -5
  482. package/lib/src/utils/index.js +0 -21
  483. package/lib/src/utils/load_env.d.ts +0 -1
  484. package/lib/src/utils/load_env.js +0 -9
  485. package/lib/src/utils/mint.d.ts +0 -2
  486. package/lib/src/utils/mint.js +0 -57
  487. package/lib/src/utils/pyth/constant.d.ts +0 -49
  488. package/lib/src/utils/pyth/constant.js +0 -70
  489. package/lib/src/utils/pyth/index.d.ts +0 -2
  490. package/lib/src/utils/pyth/index.js +0 -18
  491. package/lib/src/utils/pyth/pythClient.d.ts +0 -12
  492. package/lib/src/utils/pyth/pythClient.js +0 -80
  493. package/lib/src/utils/tools.d.ts +0 -6
  494. package/lib/src/utils/tools.js +0 -45
@@ -1,3515 +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.WithdrawIncentiveEvent = exports.UpdateUnlockCountdownTsMsEvent = exports.UpdateIncentiveConfigEvent = exports.UnstakeEvent = exports.StakePoolRegistry = exports.StakePoolInfo = exports.StakePoolConfig = exports.StakePool = exports.StakeEvent = exports.RemoveIncentiveTokenEvent = exports.NewStakePoolEvent = exports.LpUserShare = exports.IncentiveInfo = exports.IncentiveConfig = exports.Incentive = exports.HarvestPerUserShareEvent = exports.DepositIncentiveEvent = exports.DeactivatingShares = exports.DeactivateIncentiveTokenEvent = exports.AddIncentiveTokenEvent = exports.ActivateIncentiveTokenEvent = exports.UnsubscribeEvent = void 0;
99
- exports.isUnsubscribeEvent = isUnsubscribeEvent;
100
- exports.isActivateIncentiveTokenEvent = isActivateIncentiveTokenEvent;
101
- exports.isAddIncentiveTokenEvent = isAddIncentiveTokenEvent;
102
- exports.isDeactivateIncentiveTokenEvent = isDeactivateIncentiveTokenEvent;
103
- exports.isDeactivatingShares = isDeactivatingShares;
104
- exports.isDepositIncentiveEvent = isDepositIncentiveEvent;
105
- exports.isHarvestPerUserShareEvent = isHarvestPerUserShareEvent;
106
- exports.isIncentive = isIncentive;
107
- exports.isIncentiveConfig = isIncentiveConfig;
108
- exports.isIncentiveInfo = isIncentiveInfo;
109
- exports.isLpUserShare = isLpUserShare;
110
- exports.isNewStakePoolEvent = isNewStakePoolEvent;
111
- exports.isRemoveIncentiveTokenEvent = isRemoveIncentiveTokenEvent;
112
- exports.isStakeEvent = isStakeEvent;
113
- exports.isStakePool = isStakePool;
114
- exports.isStakePoolConfig = isStakePoolConfig;
115
- exports.isStakePoolInfo = isStakePoolInfo;
116
- exports.isStakePoolRegistry = isStakePoolRegistry;
117
- exports.isUnstakeEvent = isUnstakeEvent;
118
- exports.isUpdateIncentiveConfigEvent = isUpdateIncentiveConfigEvent;
119
- exports.isUpdateUnlockCountdownTsMsEvent = isUpdateUnlockCountdownTsMsEvent;
120
- exports.isWithdrawIncentiveEvent = isWithdrawIncentiveEvent;
121
- var reified = __importStar(require("../../_framework/reified"));
122
- var structs_1 = require("../../_dependencies/source/0x1/type-name/structs");
123
- var structs_2 = require("../../_dependencies/source/0x2/object/structs");
124
- var structs_3 = require("../../_dependencies/source/0x2/vec-map/structs");
125
- var reified_1 = require("../../_framework/reified");
126
- var util_1 = require("../../_framework/util");
127
- var bcs_1 = require("@mysten/bcs");
128
- /* ============================== UnsubscribeEvent =============================== */
129
- function isUnsubscribeEvent(type) {
130
- type = (0, util_1.compressSuiType)(type);
131
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::UnsubscribeEvent";
132
- }
133
- var UnsubscribeEvent = /** @class */ (function () {
134
- function UnsubscribeEvent(typeArgs, fields) {
135
- this.$typeName = UnsubscribeEvent.$typeName;
136
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UnsubscribeEvent.$typeName], __read(typeArgs), false));
137
- this.$typeArgs = typeArgs;
138
- this.sender = fields.sender;
139
- this.index = fields.index;
140
- this.lpTokenType = fields.lpTokenType;
141
- this.userShareId = fields.userShareId;
142
- this.unsubscribedShares = fields.unsubscribedShares;
143
- this.unsubscribeTsMs = fields.unsubscribeTsMs;
144
- this.unlockedTsMs = fields.unlockedTsMs;
145
- this.u64Padding = fields.u64Padding;
146
- }
147
- UnsubscribeEvent.reified = function () {
148
- var _this = this;
149
- return {
150
- typeName: UnsubscribeEvent.$typeName,
151
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UnsubscribeEvent.$typeName], [], false)),
152
- typeArgs: [],
153
- reifiedTypeArgs: [],
154
- fromFields: function (fields) { return UnsubscribeEvent.fromFields(fields); },
155
- fromFieldsWithTypes: function (item) { return UnsubscribeEvent.fromFieldsWithTypes(item); },
156
- fromBcs: function (data) { return UnsubscribeEvent.fromBcs(data); },
157
- bcs: UnsubscribeEvent.bcs,
158
- fromJSONField: function (field) { return UnsubscribeEvent.fromJSONField(field); },
159
- fromJSON: function (json) { return UnsubscribeEvent.fromJSON(json); },
160
- fromSuiParsedData: function (content) { return UnsubscribeEvent.fromSuiParsedData(content); },
161
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
162
- return [2 /*return*/, UnsubscribeEvent.fetch(client, id)];
163
- }); }); },
164
- new: function (fields) {
165
- return new UnsubscribeEvent([], fields);
166
- },
167
- kind: "StructClassReified",
168
- };
169
- };
170
- Object.defineProperty(UnsubscribeEvent, "r", {
171
- get: function () {
172
- return UnsubscribeEvent.reified();
173
- },
174
- enumerable: false,
175
- configurable: true
176
- });
177
- UnsubscribeEvent.phantom = function () {
178
- return (0, reified_1.phantom)(UnsubscribeEvent.reified());
179
- };
180
- Object.defineProperty(UnsubscribeEvent, "p", {
181
- get: function () {
182
- return UnsubscribeEvent.phantom();
183
- },
184
- enumerable: false,
185
- configurable: true
186
- });
187
- Object.defineProperty(UnsubscribeEvent, "bcs", {
188
- get: function () {
189
- return bcs_1.bcs.struct("UnsubscribeEvent", {
190
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
191
- index: bcs_1.bcs.u64(),
192
- lp_token_type: structs_1.TypeName.bcs,
193
- user_share_id: bcs_1.bcs.u64(),
194
- unsubscribed_shares: bcs_1.bcs.u64(),
195
- unsubscribe_ts_ms: bcs_1.bcs.u64(),
196
- unlocked_ts_ms: bcs_1.bcs.u64(),
197
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
198
- });
199
- },
200
- enumerable: false,
201
- configurable: true
202
- });
203
- UnsubscribeEvent.fromFields = function (fields) {
204
- return UnsubscribeEvent.reified().new({
205
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
206
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
207
- lpTokenType: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.lp_token_type),
208
- userShareId: (0, reified_1.decodeFromFields)("u64", fields.user_share_id),
209
- unsubscribedShares: (0, reified_1.decodeFromFields)("u64", fields.unsubscribed_shares),
210
- unsubscribeTsMs: (0, reified_1.decodeFromFields)("u64", fields.unsubscribe_ts_ms),
211
- unlockedTsMs: (0, reified_1.decodeFromFields)("u64", fields.unlocked_ts_ms),
212
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
213
- });
214
- };
215
- UnsubscribeEvent.fromFieldsWithTypes = function (item) {
216
- if (!isUnsubscribeEvent(item.type)) {
217
- throw new Error("not a UnsubscribeEvent type");
218
- }
219
- return UnsubscribeEvent.reified().new({
220
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
221
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
222
- lpTokenType: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.lp_token_type),
223
- userShareId: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.user_share_id),
224
- unsubscribedShares: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unsubscribed_shares),
225
- unsubscribeTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unsubscribe_ts_ms),
226
- unlockedTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unlocked_ts_ms),
227
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
228
- });
229
- };
230
- UnsubscribeEvent.fromBcs = function (data) {
231
- return UnsubscribeEvent.fromFields(UnsubscribeEvent.bcs.parse(data));
232
- };
233
- UnsubscribeEvent.prototype.toJSONField = function () {
234
- return {
235
- sender: this.sender,
236
- index: this.index.toString(),
237
- lpTokenType: this.lpTokenType.toJSONField(),
238
- userShareId: this.userShareId.toString(),
239
- unsubscribedShares: this.unsubscribedShares.toString(),
240
- unsubscribeTsMs: this.unsubscribeTsMs.toString(),
241
- unlockedTsMs: this.unlockedTsMs.toString(),
242
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
243
- };
244
- };
245
- UnsubscribeEvent.prototype.toJSON = function () {
246
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
247
- };
248
- UnsubscribeEvent.fromJSONField = function (field) {
249
- return UnsubscribeEvent.reified().new({
250
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
251
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
252
- lpTokenType: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.lpTokenType),
253
- userShareId: (0, reified_1.decodeFromJSONField)("u64", field.userShareId),
254
- unsubscribedShares: (0, reified_1.decodeFromJSONField)("u64", field.unsubscribedShares),
255
- unsubscribeTsMs: (0, reified_1.decodeFromJSONField)("u64", field.unsubscribeTsMs),
256
- unlockedTsMs: (0, reified_1.decodeFromJSONField)("u64", field.unlockedTsMs),
257
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
258
- });
259
- };
260
- UnsubscribeEvent.fromJSON = function (json) {
261
- if (json.$typeName !== UnsubscribeEvent.$typeName) {
262
- throw new Error("not a WithTwoGenerics json object");
263
- }
264
- return UnsubscribeEvent.fromJSONField(json);
265
- };
266
- UnsubscribeEvent.fromSuiParsedData = function (content) {
267
- if (content.dataType !== "moveObject") {
268
- throw new Error("not an object");
269
- }
270
- if (!isUnsubscribeEvent(content.type)) {
271
- throw new Error("object at ".concat(content.fields.id, " is not a UnsubscribeEvent object"));
272
- }
273
- return UnsubscribeEvent.fromFieldsWithTypes(content);
274
- };
275
- UnsubscribeEvent.fetch = function (client, id) {
276
- return __awaiter(this, void 0, void 0, function () {
277
- var res;
278
- var _a, _b;
279
- return __generator(this, function (_c) {
280
- switch (_c.label) {
281
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
282
- case 1:
283
- res = _c.sent();
284
- if (res.error) {
285
- throw new Error("error fetching UnsubscribeEvent object at id ".concat(id, ": ").concat(res.error.code));
286
- }
287
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUnsubscribeEvent(res.data.bcs.type)) {
288
- throw new Error("object at id ".concat(id, " is not a UnsubscribeEvent object"));
289
- }
290
- return [2 /*return*/, UnsubscribeEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
291
- }
292
- });
293
- });
294
- };
295
- UnsubscribeEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::UnsubscribeEvent";
296
- UnsubscribeEvent.$numTypeParams = 0;
297
- return UnsubscribeEvent;
298
- }());
299
- exports.UnsubscribeEvent = UnsubscribeEvent;
300
- /* ============================== ActivateIncentiveTokenEvent =============================== */
301
- function isActivateIncentiveTokenEvent(type) {
302
- type = (0, util_1.compressSuiType)(type);
303
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::ActivateIncentiveTokenEvent";
304
- }
305
- var ActivateIncentiveTokenEvent = /** @class */ (function () {
306
- function ActivateIncentiveTokenEvent(typeArgs, fields) {
307
- this.$typeName = ActivateIncentiveTokenEvent.$typeName;
308
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ActivateIncentiveTokenEvent.$typeName], __read(typeArgs), false));
309
- this.$typeArgs = typeArgs;
310
- this.sender = fields.sender;
311
- this.index = fields.index;
312
- this.incentiveToken = fields.incentiveToken;
313
- this.u64Padding = fields.u64Padding;
314
- }
315
- ActivateIncentiveTokenEvent.reified = function () {
316
- var _this = this;
317
- return {
318
- typeName: ActivateIncentiveTokenEvent.$typeName,
319
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ActivateIncentiveTokenEvent.$typeName], [], false)),
320
- typeArgs: [],
321
- reifiedTypeArgs: [],
322
- fromFields: function (fields) { return ActivateIncentiveTokenEvent.fromFields(fields); },
323
- fromFieldsWithTypes: function (item) { return ActivateIncentiveTokenEvent.fromFieldsWithTypes(item); },
324
- fromBcs: function (data) { return ActivateIncentiveTokenEvent.fromBcs(data); },
325
- bcs: ActivateIncentiveTokenEvent.bcs,
326
- fromJSONField: function (field) { return ActivateIncentiveTokenEvent.fromJSONField(field); },
327
- fromJSON: function (json) { return ActivateIncentiveTokenEvent.fromJSON(json); },
328
- fromSuiParsedData: function (content) { return ActivateIncentiveTokenEvent.fromSuiParsedData(content); },
329
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
330
- return [2 /*return*/, ActivateIncentiveTokenEvent.fetch(client, id)];
331
- }); }); },
332
- new: function (fields) {
333
- return new ActivateIncentiveTokenEvent([], fields);
334
- },
335
- kind: "StructClassReified",
336
- };
337
- };
338
- Object.defineProperty(ActivateIncentiveTokenEvent, "r", {
339
- get: function () {
340
- return ActivateIncentiveTokenEvent.reified();
341
- },
342
- enumerable: false,
343
- configurable: true
344
- });
345
- ActivateIncentiveTokenEvent.phantom = function () {
346
- return (0, reified_1.phantom)(ActivateIncentiveTokenEvent.reified());
347
- };
348
- Object.defineProperty(ActivateIncentiveTokenEvent, "p", {
349
- get: function () {
350
- return ActivateIncentiveTokenEvent.phantom();
351
- },
352
- enumerable: false,
353
- configurable: true
354
- });
355
- Object.defineProperty(ActivateIncentiveTokenEvent, "bcs", {
356
- get: function () {
357
- return bcs_1.bcs.struct("ActivateIncentiveTokenEvent", {
358
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
359
- index: bcs_1.bcs.u64(),
360
- incentive_token: structs_1.TypeName.bcs,
361
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
362
- });
363
- },
364
- enumerable: false,
365
- configurable: true
366
- });
367
- ActivateIncentiveTokenEvent.fromFields = function (fields) {
368
- return ActivateIncentiveTokenEvent.reified().new({
369
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
370
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
371
- incentiveToken: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.incentive_token),
372
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
373
- });
374
- };
375
- ActivateIncentiveTokenEvent.fromFieldsWithTypes = function (item) {
376
- if (!isActivateIncentiveTokenEvent(item.type)) {
377
- throw new Error("not a ActivateIncentiveTokenEvent type");
378
- }
379
- return ActivateIncentiveTokenEvent.reified().new({
380
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
381
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
382
- incentiveToken: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.incentive_token),
383
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
384
- });
385
- };
386
- ActivateIncentiveTokenEvent.fromBcs = function (data) {
387
- return ActivateIncentiveTokenEvent.fromFields(ActivateIncentiveTokenEvent.bcs.parse(data));
388
- };
389
- ActivateIncentiveTokenEvent.prototype.toJSONField = function () {
390
- return {
391
- sender: this.sender,
392
- index: this.index.toString(),
393
- incentiveToken: this.incentiveToken.toJSONField(),
394
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
395
- };
396
- };
397
- ActivateIncentiveTokenEvent.prototype.toJSON = function () {
398
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
399
- };
400
- ActivateIncentiveTokenEvent.fromJSONField = function (field) {
401
- return ActivateIncentiveTokenEvent.reified().new({
402
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
403
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
404
- incentiveToken: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.incentiveToken),
405
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
406
- });
407
- };
408
- ActivateIncentiveTokenEvent.fromJSON = function (json) {
409
- if (json.$typeName !== ActivateIncentiveTokenEvent.$typeName) {
410
- throw new Error("not a WithTwoGenerics json object");
411
- }
412
- return ActivateIncentiveTokenEvent.fromJSONField(json);
413
- };
414
- ActivateIncentiveTokenEvent.fromSuiParsedData = function (content) {
415
- if (content.dataType !== "moveObject") {
416
- throw new Error("not an object");
417
- }
418
- if (!isActivateIncentiveTokenEvent(content.type)) {
419
- throw new Error("object at ".concat(content.fields.id, " is not a ActivateIncentiveTokenEvent object"));
420
- }
421
- return ActivateIncentiveTokenEvent.fromFieldsWithTypes(content);
422
- };
423
- ActivateIncentiveTokenEvent.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 ActivateIncentiveTokenEvent 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" || !isActivateIncentiveTokenEvent(res.data.bcs.type)) {
436
- throw new Error("object at id ".concat(id, " is not a ActivateIncentiveTokenEvent object"));
437
- }
438
- return [2 /*return*/, ActivateIncentiveTokenEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
439
- }
440
- });
441
- });
442
- };
443
- ActivateIncentiveTokenEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::ActivateIncentiveTokenEvent";
444
- ActivateIncentiveTokenEvent.$numTypeParams = 0;
445
- return ActivateIncentiveTokenEvent;
446
- }());
447
- exports.ActivateIncentiveTokenEvent = ActivateIncentiveTokenEvent;
448
- /* ============================== AddIncentiveTokenEvent =============================== */
449
- function isAddIncentiveTokenEvent(type) {
450
- type = (0, util_1.compressSuiType)(type);
451
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::AddIncentiveTokenEvent";
452
- }
453
- var AddIncentiveTokenEvent = /** @class */ (function () {
454
- function AddIncentiveTokenEvent(typeArgs, fields) {
455
- this.$typeName = AddIncentiveTokenEvent.$typeName;
456
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AddIncentiveTokenEvent.$typeName], __read(typeArgs), false));
457
- this.$typeArgs = typeArgs;
458
- this.sender = fields.sender;
459
- this.index = fields.index;
460
- this.incentiveToken = fields.incentiveToken;
461
- this.incentiveInfo = fields.incentiveInfo;
462
- this.incentiveConfig = fields.incentiveConfig;
463
- this.u64Padding = fields.u64Padding;
464
- }
465
- AddIncentiveTokenEvent.reified = function () {
466
- var _this = this;
467
- return {
468
- typeName: AddIncentiveTokenEvent.$typeName,
469
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AddIncentiveTokenEvent.$typeName], [], false)),
470
- typeArgs: [],
471
- reifiedTypeArgs: [],
472
- fromFields: function (fields) { return AddIncentiveTokenEvent.fromFields(fields); },
473
- fromFieldsWithTypes: function (item) { return AddIncentiveTokenEvent.fromFieldsWithTypes(item); },
474
- fromBcs: function (data) { return AddIncentiveTokenEvent.fromBcs(data); },
475
- bcs: AddIncentiveTokenEvent.bcs,
476
- fromJSONField: function (field) { return AddIncentiveTokenEvent.fromJSONField(field); },
477
- fromJSON: function (json) { return AddIncentiveTokenEvent.fromJSON(json); },
478
- fromSuiParsedData: function (content) { return AddIncentiveTokenEvent.fromSuiParsedData(content); },
479
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
480
- return [2 /*return*/, AddIncentiveTokenEvent.fetch(client, id)];
481
- }); }); },
482
- new: function (fields) {
483
- return new AddIncentiveTokenEvent([], fields);
484
- },
485
- kind: "StructClassReified",
486
- };
487
- };
488
- Object.defineProperty(AddIncentiveTokenEvent, "r", {
489
- get: function () {
490
- return AddIncentiveTokenEvent.reified();
491
- },
492
- enumerable: false,
493
- configurable: true
494
- });
495
- AddIncentiveTokenEvent.phantom = function () {
496
- return (0, reified_1.phantom)(AddIncentiveTokenEvent.reified());
497
- };
498
- Object.defineProperty(AddIncentiveTokenEvent, "p", {
499
- get: function () {
500
- return AddIncentiveTokenEvent.phantom();
501
- },
502
- enumerable: false,
503
- configurable: true
504
- });
505
- Object.defineProperty(AddIncentiveTokenEvent, "bcs", {
506
- get: function () {
507
- return bcs_1.bcs.struct("AddIncentiveTokenEvent", {
508
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
509
- index: bcs_1.bcs.u64(),
510
- incentive_token: structs_1.TypeName.bcs,
511
- incentive_info: IncentiveInfo.bcs,
512
- incentive_config: IncentiveConfig.bcs,
513
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
514
- });
515
- },
516
- enumerable: false,
517
- configurable: true
518
- });
519
- AddIncentiveTokenEvent.fromFields = function (fields) {
520
- return AddIncentiveTokenEvent.reified().new({
521
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
522
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
523
- incentiveToken: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.incentive_token),
524
- incentiveInfo: (0, reified_1.decodeFromFields)(IncentiveInfo.reified(), fields.incentive_info),
525
- incentiveConfig: (0, reified_1.decodeFromFields)(IncentiveConfig.reified(), fields.incentive_config),
526
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
527
- });
528
- };
529
- AddIncentiveTokenEvent.fromFieldsWithTypes = function (item) {
530
- if (!isAddIncentiveTokenEvent(item.type)) {
531
- throw new Error("not a AddIncentiveTokenEvent type");
532
- }
533
- return AddIncentiveTokenEvent.reified().new({
534
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
535
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
536
- incentiveToken: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.incentive_token),
537
- incentiveInfo: (0, reified_1.decodeFromFieldsWithTypes)(IncentiveInfo.reified(), item.fields.incentive_info),
538
- incentiveConfig: (0, reified_1.decodeFromFieldsWithTypes)(IncentiveConfig.reified(), item.fields.incentive_config),
539
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
540
- });
541
- };
542
- AddIncentiveTokenEvent.fromBcs = function (data) {
543
- return AddIncentiveTokenEvent.fromFields(AddIncentiveTokenEvent.bcs.parse(data));
544
- };
545
- AddIncentiveTokenEvent.prototype.toJSONField = function () {
546
- return {
547
- sender: this.sender,
548
- index: this.index.toString(),
549
- incentiveToken: this.incentiveToken.toJSONField(),
550
- incentiveInfo: this.incentiveInfo.toJSONField(),
551
- incentiveConfig: this.incentiveConfig.toJSONField(),
552
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
553
- };
554
- };
555
- AddIncentiveTokenEvent.prototype.toJSON = function () {
556
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
557
- };
558
- AddIncentiveTokenEvent.fromJSONField = function (field) {
559
- return AddIncentiveTokenEvent.reified().new({
560
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
561
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
562
- incentiveToken: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.incentiveToken),
563
- incentiveInfo: (0, reified_1.decodeFromJSONField)(IncentiveInfo.reified(), field.incentiveInfo),
564
- incentiveConfig: (0, reified_1.decodeFromJSONField)(IncentiveConfig.reified(), field.incentiveConfig),
565
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
566
- });
567
- };
568
- AddIncentiveTokenEvent.fromJSON = function (json) {
569
- if (json.$typeName !== AddIncentiveTokenEvent.$typeName) {
570
- throw new Error("not a WithTwoGenerics json object");
571
- }
572
- return AddIncentiveTokenEvent.fromJSONField(json);
573
- };
574
- AddIncentiveTokenEvent.fromSuiParsedData = function (content) {
575
- if (content.dataType !== "moveObject") {
576
- throw new Error("not an object");
577
- }
578
- if (!isAddIncentiveTokenEvent(content.type)) {
579
- throw new Error("object at ".concat(content.fields.id, " is not a AddIncentiveTokenEvent object"));
580
- }
581
- return AddIncentiveTokenEvent.fromFieldsWithTypes(content);
582
- };
583
- AddIncentiveTokenEvent.fetch = function (client, id) {
584
- return __awaiter(this, void 0, void 0, function () {
585
- var res;
586
- var _a, _b;
587
- return __generator(this, function (_c) {
588
- switch (_c.label) {
589
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
590
- case 1:
591
- res = _c.sent();
592
- if (res.error) {
593
- throw new Error("error fetching AddIncentiveTokenEvent object at id ".concat(id, ": ").concat(res.error.code));
594
- }
595
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAddIncentiveTokenEvent(res.data.bcs.type)) {
596
- throw new Error("object at id ".concat(id, " is not a AddIncentiveTokenEvent object"));
597
- }
598
- return [2 /*return*/, AddIncentiveTokenEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
599
- }
600
- });
601
- });
602
- };
603
- AddIncentiveTokenEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::AddIncentiveTokenEvent";
604
- AddIncentiveTokenEvent.$numTypeParams = 0;
605
- return AddIncentiveTokenEvent;
606
- }());
607
- exports.AddIncentiveTokenEvent = AddIncentiveTokenEvent;
608
- /* ============================== DeactivateIncentiveTokenEvent =============================== */
609
- function isDeactivateIncentiveTokenEvent(type) {
610
- type = (0, util_1.compressSuiType)(type);
611
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::DeactivateIncentiveTokenEvent";
612
- }
613
- var DeactivateIncentiveTokenEvent = /** @class */ (function () {
614
- function DeactivateIncentiveTokenEvent(typeArgs, fields) {
615
- this.$typeName = DeactivateIncentiveTokenEvent.$typeName;
616
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DeactivateIncentiveTokenEvent.$typeName], __read(typeArgs), false));
617
- this.$typeArgs = typeArgs;
618
- this.sender = fields.sender;
619
- this.index = fields.index;
620
- this.incentiveToken = fields.incentiveToken;
621
- this.u64Padding = fields.u64Padding;
622
- }
623
- DeactivateIncentiveTokenEvent.reified = function () {
624
- var _this = this;
625
- return {
626
- typeName: DeactivateIncentiveTokenEvent.$typeName,
627
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DeactivateIncentiveTokenEvent.$typeName], [], false)),
628
- typeArgs: [],
629
- reifiedTypeArgs: [],
630
- fromFields: function (fields) { return DeactivateIncentiveTokenEvent.fromFields(fields); },
631
- fromFieldsWithTypes: function (item) { return DeactivateIncentiveTokenEvent.fromFieldsWithTypes(item); },
632
- fromBcs: function (data) { return DeactivateIncentiveTokenEvent.fromBcs(data); },
633
- bcs: DeactivateIncentiveTokenEvent.bcs,
634
- fromJSONField: function (field) { return DeactivateIncentiveTokenEvent.fromJSONField(field); },
635
- fromJSON: function (json) { return DeactivateIncentiveTokenEvent.fromJSON(json); },
636
- fromSuiParsedData: function (content) { return DeactivateIncentiveTokenEvent.fromSuiParsedData(content); },
637
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
638
- return [2 /*return*/, DeactivateIncentiveTokenEvent.fetch(client, id)];
639
- }); }); },
640
- new: function (fields) {
641
- return new DeactivateIncentiveTokenEvent([], fields);
642
- },
643
- kind: "StructClassReified",
644
- };
645
- };
646
- Object.defineProperty(DeactivateIncentiveTokenEvent, "r", {
647
- get: function () {
648
- return DeactivateIncentiveTokenEvent.reified();
649
- },
650
- enumerable: false,
651
- configurable: true
652
- });
653
- DeactivateIncentiveTokenEvent.phantom = function () {
654
- return (0, reified_1.phantom)(DeactivateIncentiveTokenEvent.reified());
655
- };
656
- Object.defineProperty(DeactivateIncentiveTokenEvent, "p", {
657
- get: function () {
658
- return DeactivateIncentiveTokenEvent.phantom();
659
- },
660
- enumerable: false,
661
- configurable: true
662
- });
663
- Object.defineProperty(DeactivateIncentiveTokenEvent, "bcs", {
664
- get: function () {
665
- return bcs_1.bcs.struct("DeactivateIncentiveTokenEvent", {
666
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
667
- index: bcs_1.bcs.u64(),
668
- incentive_token: structs_1.TypeName.bcs,
669
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
670
- });
671
- },
672
- enumerable: false,
673
- configurable: true
674
- });
675
- DeactivateIncentiveTokenEvent.fromFields = function (fields) {
676
- return DeactivateIncentiveTokenEvent.reified().new({
677
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
678
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
679
- incentiveToken: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.incentive_token),
680
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
681
- });
682
- };
683
- DeactivateIncentiveTokenEvent.fromFieldsWithTypes = function (item) {
684
- if (!isDeactivateIncentiveTokenEvent(item.type)) {
685
- throw new Error("not a DeactivateIncentiveTokenEvent type");
686
- }
687
- return DeactivateIncentiveTokenEvent.reified().new({
688
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
689
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
690
- incentiveToken: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.incentive_token),
691
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
692
- });
693
- };
694
- DeactivateIncentiveTokenEvent.fromBcs = function (data) {
695
- return DeactivateIncentiveTokenEvent.fromFields(DeactivateIncentiveTokenEvent.bcs.parse(data));
696
- };
697
- DeactivateIncentiveTokenEvent.prototype.toJSONField = function () {
698
- return {
699
- sender: this.sender,
700
- index: this.index.toString(),
701
- incentiveToken: this.incentiveToken.toJSONField(),
702
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
703
- };
704
- };
705
- DeactivateIncentiveTokenEvent.prototype.toJSON = function () {
706
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
707
- };
708
- DeactivateIncentiveTokenEvent.fromJSONField = function (field) {
709
- return DeactivateIncentiveTokenEvent.reified().new({
710
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
711
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
712
- incentiveToken: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.incentiveToken),
713
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
714
- });
715
- };
716
- DeactivateIncentiveTokenEvent.fromJSON = function (json) {
717
- if (json.$typeName !== DeactivateIncentiveTokenEvent.$typeName) {
718
- throw new Error("not a WithTwoGenerics json object");
719
- }
720
- return DeactivateIncentiveTokenEvent.fromJSONField(json);
721
- };
722
- DeactivateIncentiveTokenEvent.fromSuiParsedData = function (content) {
723
- if (content.dataType !== "moveObject") {
724
- throw new Error("not an object");
725
- }
726
- if (!isDeactivateIncentiveTokenEvent(content.type)) {
727
- throw new Error("object at ".concat(content.fields.id, " is not a DeactivateIncentiveTokenEvent object"));
728
- }
729
- return DeactivateIncentiveTokenEvent.fromFieldsWithTypes(content);
730
- };
731
- DeactivateIncentiveTokenEvent.fetch = function (client, id) {
732
- return __awaiter(this, void 0, void 0, function () {
733
- var res;
734
- var _a, _b;
735
- return __generator(this, function (_c) {
736
- switch (_c.label) {
737
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
738
- case 1:
739
- res = _c.sent();
740
- if (res.error) {
741
- throw new Error("error fetching DeactivateIncentiveTokenEvent object at id ".concat(id, ": ").concat(res.error.code));
742
- }
743
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDeactivateIncentiveTokenEvent(res.data.bcs.type)) {
744
- throw new Error("object at id ".concat(id, " is not a DeactivateIncentiveTokenEvent object"));
745
- }
746
- return [2 /*return*/, DeactivateIncentiveTokenEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
747
- }
748
- });
749
- });
750
- };
751
- DeactivateIncentiveTokenEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::DeactivateIncentiveTokenEvent";
752
- DeactivateIncentiveTokenEvent.$numTypeParams = 0;
753
- return DeactivateIncentiveTokenEvent;
754
- }());
755
- exports.DeactivateIncentiveTokenEvent = DeactivateIncentiveTokenEvent;
756
- /* ============================== DeactivatingShares =============================== */
757
- function isDeactivatingShares(type) {
758
- type = (0, util_1.compressSuiType)(type);
759
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::DeactivatingShares";
760
- }
761
- var DeactivatingShares = /** @class */ (function () {
762
- function DeactivatingShares(typeArgs, fields) {
763
- this.$typeName = DeactivatingShares.$typeName;
764
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DeactivatingShares.$typeName], __read(typeArgs), false));
765
- this.$typeArgs = typeArgs;
766
- this.shares = fields.shares;
767
- this.unsubscribedTsMs = fields.unsubscribedTsMs;
768
- this.unlockedTsMs = fields.unlockedTsMs;
769
- this.unsubscribedIncentivePriceIndex = fields.unsubscribedIncentivePriceIndex;
770
- this.u64Padding = fields.u64Padding;
771
- }
772
- DeactivatingShares.reified = function () {
773
- var _this = this;
774
- return {
775
- typeName: DeactivatingShares.$typeName,
776
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DeactivatingShares.$typeName], [], false)),
777
- typeArgs: [],
778
- reifiedTypeArgs: [],
779
- fromFields: function (fields) { return DeactivatingShares.fromFields(fields); },
780
- fromFieldsWithTypes: function (item) { return DeactivatingShares.fromFieldsWithTypes(item); },
781
- fromBcs: function (data) { return DeactivatingShares.fromBcs(data); },
782
- bcs: DeactivatingShares.bcs,
783
- fromJSONField: function (field) { return DeactivatingShares.fromJSONField(field); },
784
- fromJSON: function (json) { return DeactivatingShares.fromJSON(json); },
785
- fromSuiParsedData: function (content) { return DeactivatingShares.fromSuiParsedData(content); },
786
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
787
- return [2 /*return*/, DeactivatingShares.fetch(client, id)];
788
- }); }); },
789
- new: function (fields) {
790
- return new DeactivatingShares([], fields);
791
- },
792
- kind: "StructClassReified",
793
- };
794
- };
795
- Object.defineProperty(DeactivatingShares, "r", {
796
- get: function () {
797
- return DeactivatingShares.reified();
798
- },
799
- enumerable: false,
800
- configurable: true
801
- });
802
- DeactivatingShares.phantom = function () {
803
- return (0, reified_1.phantom)(DeactivatingShares.reified());
804
- };
805
- Object.defineProperty(DeactivatingShares, "p", {
806
- get: function () {
807
- return DeactivatingShares.phantom();
808
- },
809
- enumerable: false,
810
- configurable: true
811
- });
812
- Object.defineProperty(DeactivatingShares, "bcs", {
813
- get: function () {
814
- return bcs_1.bcs.struct("DeactivatingShares", {
815
- shares: bcs_1.bcs.u64(),
816
- unsubscribed_ts_ms: bcs_1.bcs.u64(),
817
- unlocked_ts_ms: bcs_1.bcs.u64(),
818
- unsubscribed_incentive_price_index: structs_3.VecMap.bcs(structs_1.TypeName.bcs, bcs_1.bcs.u64()),
819
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
820
- });
821
- },
822
- enumerable: false,
823
- configurable: true
824
- });
825
- DeactivatingShares.fromFields = function (fields) {
826
- return DeactivatingShares.reified().new({
827
- shares: (0, reified_1.decodeFromFields)("u64", fields.shares),
828
- unsubscribedTsMs: (0, reified_1.decodeFromFields)("u64", fields.unsubscribed_ts_ms),
829
- unlockedTsMs: (0, reified_1.decodeFromFields)("u64", fields.unlocked_ts_ms),
830
- unsubscribedIncentivePriceIndex: (0, reified_1.decodeFromFields)(structs_3.VecMap.reified(structs_1.TypeName.reified(), "u64"), fields.unsubscribed_incentive_price_index),
831
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
832
- });
833
- };
834
- DeactivatingShares.fromFieldsWithTypes = function (item) {
835
- if (!isDeactivatingShares(item.type)) {
836
- throw new Error("not a DeactivatingShares type");
837
- }
838
- return DeactivatingShares.reified().new({
839
- shares: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.shares),
840
- unsubscribedTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unsubscribed_ts_ms),
841
- unlockedTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unlocked_ts_ms),
842
- unsubscribedIncentivePriceIndex: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.VecMap.reified(structs_1.TypeName.reified(), "u64"), item.fields.unsubscribed_incentive_price_index),
843
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
844
- });
845
- };
846
- DeactivatingShares.fromBcs = function (data) {
847
- return DeactivatingShares.fromFields(DeactivatingShares.bcs.parse(data));
848
- };
849
- DeactivatingShares.prototype.toJSONField = function () {
850
- return {
851
- shares: this.shares.toString(),
852
- unsubscribedTsMs: this.unsubscribedTsMs.toString(),
853
- unlockedTsMs: this.unlockedTsMs.toString(),
854
- unsubscribedIncentivePriceIndex: this.unsubscribedIncentivePriceIndex.toJSONField(),
855
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
856
- };
857
- };
858
- DeactivatingShares.prototype.toJSON = function () {
859
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
860
- };
861
- DeactivatingShares.fromJSONField = function (field) {
862
- return DeactivatingShares.reified().new({
863
- shares: (0, reified_1.decodeFromJSONField)("u64", field.shares),
864
- unsubscribedTsMs: (0, reified_1.decodeFromJSONField)("u64", field.unsubscribedTsMs),
865
- unlockedTsMs: (0, reified_1.decodeFromJSONField)("u64", field.unlockedTsMs),
866
- unsubscribedIncentivePriceIndex: (0, reified_1.decodeFromJSONField)(structs_3.VecMap.reified(structs_1.TypeName.reified(), "u64"), field.unsubscribedIncentivePriceIndex),
867
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
868
- });
869
- };
870
- DeactivatingShares.fromJSON = function (json) {
871
- if (json.$typeName !== DeactivatingShares.$typeName) {
872
- throw new Error("not a WithTwoGenerics json object");
873
- }
874
- return DeactivatingShares.fromJSONField(json);
875
- };
876
- DeactivatingShares.fromSuiParsedData = function (content) {
877
- if (content.dataType !== "moveObject") {
878
- throw new Error("not an object");
879
- }
880
- if (!isDeactivatingShares(content.type)) {
881
- throw new Error("object at ".concat(content.fields.id, " is not a DeactivatingShares object"));
882
- }
883
- return DeactivatingShares.fromFieldsWithTypes(content);
884
- };
885
- DeactivatingShares.fetch = function (client, id) {
886
- return __awaiter(this, void 0, void 0, function () {
887
- var res;
888
- var _a, _b;
889
- return __generator(this, function (_c) {
890
- switch (_c.label) {
891
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
892
- case 1:
893
- res = _c.sent();
894
- if (res.error) {
895
- throw new Error("error fetching DeactivatingShares object at id ".concat(id, ": ").concat(res.error.code));
896
- }
897
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDeactivatingShares(res.data.bcs.type)) {
898
- throw new Error("object at id ".concat(id, " is not a DeactivatingShares object"));
899
- }
900
- return [2 /*return*/, DeactivatingShares.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
901
- }
902
- });
903
- });
904
- };
905
- DeactivatingShares.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::DeactivatingShares";
906
- DeactivatingShares.$numTypeParams = 0;
907
- return DeactivatingShares;
908
- }());
909
- exports.DeactivatingShares = DeactivatingShares;
910
- /* ============================== DepositIncentiveEvent =============================== */
911
- function isDepositIncentiveEvent(type) {
912
- type = (0, util_1.compressSuiType)(type);
913
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::DepositIncentiveEvent";
914
- }
915
- var DepositIncentiveEvent = /** @class */ (function () {
916
- function DepositIncentiveEvent(typeArgs, fields) {
917
- this.$typeName = DepositIncentiveEvent.$typeName;
918
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DepositIncentiveEvent.$typeName], __read(typeArgs), false));
919
- this.$typeArgs = typeArgs;
920
- this.sender = fields.sender;
921
- this.index = fields.index;
922
- this.incentiveTokenType = fields.incentiveTokenType;
923
- this.depositAmount = fields.depositAmount;
924
- this.u64Padding = fields.u64Padding;
925
- }
926
- DepositIncentiveEvent.reified = function () {
927
- var _this = this;
928
- return {
929
- typeName: DepositIncentiveEvent.$typeName,
930
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DepositIncentiveEvent.$typeName], [], false)),
931
- typeArgs: [],
932
- reifiedTypeArgs: [],
933
- fromFields: function (fields) { return DepositIncentiveEvent.fromFields(fields); },
934
- fromFieldsWithTypes: function (item) { return DepositIncentiveEvent.fromFieldsWithTypes(item); },
935
- fromBcs: function (data) { return DepositIncentiveEvent.fromBcs(data); },
936
- bcs: DepositIncentiveEvent.bcs,
937
- fromJSONField: function (field) { return DepositIncentiveEvent.fromJSONField(field); },
938
- fromJSON: function (json) { return DepositIncentiveEvent.fromJSON(json); },
939
- fromSuiParsedData: function (content) { return DepositIncentiveEvent.fromSuiParsedData(content); },
940
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
941
- return [2 /*return*/, DepositIncentiveEvent.fetch(client, id)];
942
- }); }); },
943
- new: function (fields) {
944
- return new DepositIncentiveEvent([], fields);
945
- },
946
- kind: "StructClassReified",
947
- };
948
- };
949
- Object.defineProperty(DepositIncentiveEvent, "r", {
950
- get: function () {
951
- return DepositIncentiveEvent.reified();
952
- },
953
- enumerable: false,
954
- configurable: true
955
- });
956
- DepositIncentiveEvent.phantom = function () {
957
- return (0, reified_1.phantom)(DepositIncentiveEvent.reified());
958
- };
959
- Object.defineProperty(DepositIncentiveEvent, "p", {
960
- get: function () {
961
- return DepositIncentiveEvent.phantom();
962
- },
963
- enumerable: false,
964
- configurable: true
965
- });
966
- Object.defineProperty(DepositIncentiveEvent, "bcs", {
967
- get: function () {
968
- return bcs_1.bcs.struct("DepositIncentiveEvent", {
969
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
970
- index: bcs_1.bcs.u64(),
971
- incentive_token_type: structs_1.TypeName.bcs,
972
- deposit_amount: bcs_1.bcs.u64(),
973
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
974
- });
975
- },
976
- enumerable: false,
977
- configurable: true
978
- });
979
- DepositIncentiveEvent.fromFields = function (fields) {
980
- return DepositIncentiveEvent.reified().new({
981
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
982
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
983
- incentiveTokenType: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.incentive_token_type),
984
- depositAmount: (0, reified_1.decodeFromFields)("u64", fields.deposit_amount),
985
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
986
- });
987
- };
988
- DepositIncentiveEvent.fromFieldsWithTypes = function (item) {
989
- if (!isDepositIncentiveEvent(item.type)) {
990
- throw new Error("not a DepositIncentiveEvent type");
991
- }
992
- return DepositIncentiveEvent.reified().new({
993
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
994
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
995
- incentiveTokenType: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.incentive_token_type),
996
- depositAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.deposit_amount),
997
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
998
- });
999
- };
1000
- DepositIncentiveEvent.fromBcs = function (data) {
1001
- return DepositIncentiveEvent.fromFields(DepositIncentiveEvent.bcs.parse(data));
1002
- };
1003
- DepositIncentiveEvent.prototype.toJSONField = function () {
1004
- return {
1005
- sender: this.sender,
1006
- index: this.index.toString(),
1007
- incentiveTokenType: this.incentiveTokenType.toJSONField(),
1008
- depositAmount: this.depositAmount.toString(),
1009
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
1010
- };
1011
- };
1012
- DepositIncentiveEvent.prototype.toJSON = function () {
1013
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1014
- };
1015
- DepositIncentiveEvent.fromJSONField = function (field) {
1016
- return DepositIncentiveEvent.reified().new({
1017
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
1018
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
1019
- incentiveTokenType: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.incentiveTokenType),
1020
- depositAmount: (0, reified_1.decodeFromJSONField)("u64", field.depositAmount),
1021
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
1022
- });
1023
- };
1024
- DepositIncentiveEvent.fromJSON = function (json) {
1025
- if (json.$typeName !== DepositIncentiveEvent.$typeName) {
1026
- throw new Error("not a WithTwoGenerics json object");
1027
- }
1028
- return DepositIncentiveEvent.fromJSONField(json);
1029
- };
1030
- DepositIncentiveEvent.fromSuiParsedData = function (content) {
1031
- if (content.dataType !== "moveObject") {
1032
- throw new Error("not an object");
1033
- }
1034
- if (!isDepositIncentiveEvent(content.type)) {
1035
- throw new Error("object at ".concat(content.fields.id, " is not a DepositIncentiveEvent object"));
1036
- }
1037
- return DepositIncentiveEvent.fromFieldsWithTypes(content);
1038
- };
1039
- DepositIncentiveEvent.fetch = function (client, id) {
1040
- return __awaiter(this, void 0, void 0, function () {
1041
- var res;
1042
- var _a, _b;
1043
- return __generator(this, function (_c) {
1044
- switch (_c.label) {
1045
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1046
- case 1:
1047
- res = _c.sent();
1048
- if (res.error) {
1049
- throw new Error("error fetching DepositIncentiveEvent object at id ".concat(id, ": ").concat(res.error.code));
1050
- }
1051
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDepositIncentiveEvent(res.data.bcs.type)) {
1052
- throw new Error("object at id ".concat(id, " is not a DepositIncentiveEvent object"));
1053
- }
1054
- return [2 /*return*/, DepositIncentiveEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1055
- }
1056
- });
1057
- });
1058
- };
1059
- DepositIncentiveEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::DepositIncentiveEvent";
1060
- DepositIncentiveEvent.$numTypeParams = 0;
1061
- return DepositIncentiveEvent;
1062
- }());
1063
- exports.DepositIncentiveEvent = DepositIncentiveEvent;
1064
- /* ============================== HarvestPerUserShareEvent =============================== */
1065
- function isHarvestPerUserShareEvent(type) {
1066
- type = (0, util_1.compressSuiType)(type);
1067
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::HarvestPerUserShareEvent";
1068
- }
1069
- var HarvestPerUserShareEvent = /** @class */ (function () {
1070
- function HarvestPerUserShareEvent(typeArgs, fields) {
1071
- this.$typeName = HarvestPerUserShareEvent.$typeName;
1072
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([HarvestPerUserShareEvent.$typeName], __read(typeArgs), false));
1073
- this.$typeArgs = typeArgs;
1074
- this.sender = fields.sender;
1075
- this.index = fields.index;
1076
- this.incentiveTokenType = fields.incentiveTokenType;
1077
- this.harvestAmount = fields.harvestAmount;
1078
- this.userShareId = fields.userShareId;
1079
- this.u64Padding = fields.u64Padding;
1080
- }
1081
- HarvestPerUserShareEvent.reified = function () {
1082
- var _this = this;
1083
- return {
1084
- typeName: HarvestPerUserShareEvent.$typeName,
1085
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([HarvestPerUserShareEvent.$typeName], [], false)),
1086
- typeArgs: [],
1087
- reifiedTypeArgs: [],
1088
- fromFields: function (fields) { return HarvestPerUserShareEvent.fromFields(fields); },
1089
- fromFieldsWithTypes: function (item) { return HarvestPerUserShareEvent.fromFieldsWithTypes(item); },
1090
- fromBcs: function (data) { return HarvestPerUserShareEvent.fromBcs(data); },
1091
- bcs: HarvestPerUserShareEvent.bcs,
1092
- fromJSONField: function (field) { return HarvestPerUserShareEvent.fromJSONField(field); },
1093
- fromJSON: function (json) { return HarvestPerUserShareEvent.fromJSON(json); },
1094
- fromSuiParsedData: function (content) { return HarvestPerUserShareEvent.fromSuiParsedData(content); },
1095
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1096
- return [2 /*return*/, HarvestPerUserShareEvent.fetch(client, id)];
1097
- }); }); },
1098
- new: function (fields) {
1099
- return new HarvestPerUserShareEvent([], fields);
1100
- },
1101
- kind: "StructClassReified",
1102
- };
1103
- };
1104
- Object.defineProperty(HarvestPerUserShareEvent, "r", {
1105
- get: function () {
1106
- return HarvestPerUserShareEvent.reified();
1107
- },
1108
- enumerable: false,
1109
- configurable: true
1110
- });
1111
- HarvestPerUserShareEvent.phantom = function () {
1112
- return (0, reified_1.phantom)(HarvestPerUserShareEvent.reified());
1113
- };
1114
- Object.defineProperty(HarvestPerUserShareEvent, "p", {
1115
- get: function () {
1116
- return HarvestPerUserShareEvent.phantom();
1117
- },
1118
- enumerable: false,
1119
- configurable: true
1120
- });
1121
- Object.defineProperty(HarvestPerUserShareEvent, "bcs", {
1122
- get: function () {
1123
- return bcs_1.bcs.struct("HarvestPerUserShareEvent", {
1124
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
1125
- index: bcs_1.bcs.u64(),
1126
- incentive_token_type: structs_1.TypeName.bcs,
1127
- harvest_amount: bcs_1.bcs.u64(),
1128
- user_share_id: bcs_1.bcs.u64(),
1129
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1130
- });
1131
- },
1132
- enumerable: false,
1133
- configurable: true
1134
- });
1135
- HarvestPerUserShareEvent.fromFields = function (fields) {
1136
- return HarvestPerUserShareEvent.reified().new({
1137
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
1138
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
1139
- incentiveTokenType: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.incentive_token_type),
1140
- harvestAmount: (0, reified_1.decodeFromFields)("u64", fields.harvest_amount),
1141
- userShareId: (0, reified_1.decodeFromFields)("u64", fields.user_share_id),
1142
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
1143
- });
1144
- };
1145
- HarvestPerUserShareEvent.fromFieldsWithTypes = function (item) {
1146
- if (!isHarvestPerUserShareEvent(item.type)) {
1147
- throw new Error("not a HarvestPerUserShareEvent type");
1148
- }
1149
- return HarvestPerUserShareEvent.reified().new({
1150
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
1151
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
1152
- incentiveTokenType: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.incentive_token_type),
1153
- harvestAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.harvest_amount),
1154
- userShareId: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.user_share_id),
1155
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
1156
- });
1157
- };
1158
- HarvestPerUserShareEvent.fromBcs = function (data) {
1159
- return HarvestPerUserShareEvent.fromFields(HarvestPerUserShareEvent.bcs.parse(data));
1160
- };
1161
- HarvestPerUserShareEvent.prototype.toJSONField = function () {
1162
- return {
1163
- sender: this.sender,
1164
- index: this.index.toString(),
1165
- incentiveTokenType: this.incentiveTokenType.toJSONField(),
1166
- harvestAmount: this.harvestAmount.toString(),
1167
- userShareId: this.userShareId.toString(),
1168
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
1169
- };
1170
- };
1171
- HarvestPerUserShareEvent.prototype.toJSON = function () {
1172
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1173
- };
1174
- HarvestPerUserShareEvent.fromJSONField = function (field) {
1175
- return HarvestPerUserShareEvent.reified().new({
1176
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
1177
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
1178
- incentiveTokenType: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.incentiveTokenType),
1179
- harvestAmount: (0, reified_1.decodeFromJSONField)("u64", field.harvestAmount),
1180
- userShareId: (0, reified_1.decodeFromJSONField)("u64", field.userShareId),
1181
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
1182
- });
1183
- };
1184
- HarvestPerUserShareEvent.fromJSON = function (json) {
1185
- if (json.$typeName !== HarvestPerUserShareEvent.$typeName) {
1186
- throw new Error("not a WithTwoGenerics json object");
1187
- }
1188
- return HarvestPerUserShareEvent.fromJSONField(json);
1189
- };
1190
- HarvestPerUserShareEvent.fromSuiParsedData = function (content) {
1191
- if (content.dataType !== "moveObject") {
1192
- throw new Error("not an object");
1193
- }
1194
- if (!isHarvestPerUserShareEvent(content.type)) {
1195
- throw new Error("object at ".concat(content.fields.id, " is not a HarvestPerUserShareEvent object"));
1196
- }
1197
- return HarvestPerUserShareEvent.fromFieldsWithTypes(content);
1198
- };
1199
- HarvestPerUserShareEvent.fetch = function (client, id) {
1200
- return __awaiter(this, void 0, void 0, function () {
1201
- var res;
1202
- var _a, _b;
1203
- return __generator(this, function (_c) {
1204
- switch (_c.label) {
1205
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1206
- case 1:
1207
- res = _c.sent();
1208
- if (res.error) {
1209
- throw new Error("error fetching HarvestPerUserShareEvent object at id ".concat(id, ": ").concat(res.error.code));
1210
- }
1211
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isHarvestPerUserShareEvent(res.data.bcs.type)) {
1212
- throw new Error("object at id ".concat(id, " is not a HarvestPerUserShareEvent object"));
1213
- }
1214
- return [2 /*return*/, HarvestPerUserShareEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1215
- }
1216
- });
1217
- });
1218
- };
1219
- HarvestPerUserShareEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::HarvestPerUserShareEvent";
1220
- HarvestPerUserShareEvent.$numTypeParams = 0;
1221
- return HarvestPerUserShareEvent;
1222
- }());
1223
- exports.HarvestPerUserShareEvent = HarvestPerUserShareEvent;
1224
- /* ============================== Incentive =============================== */
1225
- function isIncentive(type) {
1226
- type = (0, util_1.compressSuiType)(type);
1227
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::Incentive";
1228
- }
1229
- var Incentive = /** @class */ (function () {
1230
- function Incentive(typeArgs, fields) {
1231
- this.$typeName = Incentive.$typeName;
1232
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Incentive.$typeName], __read(typeArgs), false));
1233
- this.$typeArgs = typeArgs;
1234
- this.tokenType = fields.tokenType;
1235
- this.config = fields.config;
1236
- this.info = fields.info;
1237
- }
1238
- Incentive.reified = function () {
1239
- var _this = this;
1240
- return {
1241
- typeName: Incentive.$typeName,
1242
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Incentive.$typeName], [], false)),
1243
- typeArgs: [],
1244
- reifiedTypeArgs: [],
1245
- fromFields: function (fields) { return Incentive.fromFields(fields); },
1246
- fromFieldsWithTypes: function (item) { return Incentive.fromFieldsWithTypes(item); },
1247
- fromBcs: function (data) { return Incentive.fromBcs(data); },
1248
- bcs: Incentive.bcs,
1249
- fromJSONField: function (field) { return Incentive.fromJSONField(field); },
1250
- fromJSON: function (json) { return Incentive.fromJSON(json); },
1251
- fromSuiParsedData: function (content) { return Incentive.fromSuiParsedData(content); },
1252
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1253
- return [2 /*return*/, Incentive.fetch(client, id)];
1254
- }); }); },
1255
- new: function (fields) {
1256
- return new Incentive([], fields);
1257
- },
1258
- kind: "StructClassReified",
1259
- };
1260
- };
1261
- Object.defineProperty(Incentive, "r", {
1262
- get: function () {
1263
- return Incentive.reified();
1264
- },
1265
- enumerable: false,
1266
- configurable: true
1267
- });
1268
- Incentive.phantom = function () {
1269
- return (0, reified_1.phantom)(Incentive.reified());
1270
- };
1271
- Object.defineProperty(Incentive, "p", {
1272
- get: function () {
1273
- return Incentive.phantom();
1274
- },
1275
- enumerable: false,
1276
- configurable: true
1277
- });
1278
- Object.defineProperty(Incentive, "bcs", {
1279
- get: function () {
1280
- return bcs_1.bcs.struct("Incentive", {
1281
- token_type: structs_1.TypeName.bcs,
1282
- config: IncentiveConfig.bcs,
1283
- info: IncentiveInfo.bcs,
1284
- });
1285
- },
1286
- enumerable: false,
1287
- configurable: true
1288
- });
1289
- Incentive.fromFields = function (fields) {
1290
- return Incentive.reified().new({
1291
- tokenType: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token_type),
1292
- config: (0, reified_1.decodeFromFields)(IncentiveConfig.reified(), fields.config),
1293
- info: (0, reified_1.decodeFromFields)(IncentiveInfo.reified(), fields.info),
1294
- });
1295
- };
1296
- Incentive.fromFieldsWithTypes = function (item) {
1297
- if (!isIncentive(item.type)) {
1298
- throw new Error("not a Incentive type");
1299
- }
1300
- return Incentive.reified().new({
1301
- tokenType: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token_type),
1302
- config: (0, reified_1.decodeFromFieldsWithTypes)(IncentiveConfig.reified(), item.fields.config),
1303
- info: (0, reified_1.decodeFromFieldsWithTypes)(IncentiveInfo.reified(), item.fields.info),
1304
- });
1305
- };
1306
- Incentive.fromBcs = function (data) {
1307
- return Incentive.fromFields(Incentive.bcs.parse(data));
1308
- };
1309
- Incentive.prototype.toJSONField = function () {
1310
- return {
1311
- tokenType: this.tokenType.toJSONField(),
1312
- config: this.config.toJSONField(),
1313
- info: this.info.toJSONField(),
1314
- };
1315
- };
1316
- Incentive.prototype.toJSON = function () {
1317
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1318
- };
1319
- Incentive.fromJSONField = function (field) {
1320
- return Incentive.reified().new({
1321
- tokenType: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.tokenType),
1322
- config: (0, reified_1.decodeFromJSONField)(IncentiveConfig.reified(), field.config),
1323
- info: (0, reified_1.decodeFromJSONField)(IncentiveInfo.reified(), field.info),
1324
- });
1325
- };
1326
- Incentive.fromJSON = function (json) {
1327
- if (json.$typeName !== Incentive.$typeName) {
1328
- throw new Error("not a WithTwoGenerics json object");
1329
- }
1330
- return Incentive.fromJSONField(json);
1331
- };
1332
- Incentive.fromSuiParsedData = function (content) {
1333
- if (content.dataType !== "moveObject") {
1334
- throw new Error("not an object");
1335
- }
1336
- if (!isIncentive(content.type)) {
1337
- throw new Error("object at ".concat(content.fields.id, " is not a Incentive object"));
1338
- }
1339
- return Incentive.fromFieldsWithTypes(content);
1340
- };
1341
- Incentive.fetch = function (client, id) {
1342
- return __awaiter(this, void 0, void 0, function () {
1343
- var res;
1344
- var _a, _b;
1345
- return __generator(this, function (_c) {
1346
- switch (_c.label) {
1347
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1348
- case 1:
1349
- res = _c.sent();
1350
- if (res.error) {
1351
- throw new Error("error fetching Incentive object at id ".concat(id, ": ").concat(res.error.code));
1352
- }
1353
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isIncentive(res.data.bcs.type)) {
1354
- throw new Error("object at id ".concat(id, " is not a Incentive object"));
1355
- }
1356
- return [2 /*return*/, Incentive.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1357
- }
1358
- });
1359
- });
1360
- };
1361
- Incentive.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::Incentive";
1362
- Incentive.$numTypeParams = 0;
1363
- return Incentive;
1364
- }());
1365
- exports.Incentive = Incentive;
1366
- /* ============================== IncentiveConfig =============================== */
1367
- function isIncentiveConfig(type) {
1368
- type = (0, util_1.compressSuiType)(type);
1369
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::IncentiveConfig";
1370
- }
1371
- var IncentiveConfig = /** @class */ (function () {
1372
- function IncentiveConfig(typeArgs, fields) {
1373
- this.$typeName = IncentiveConfig.$typeName;
1374
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([IncentiveConfig.$typeName], __read(typeArgs), false));
1375
- this.$typeArgs = typeArgs;
1376
- this.periodIncentiveAmount = fields.periodIncentiveAmount;
1377
- this.incentiveIntervalTsMs = fields.incentiveIntervalTsMs;
1378
- this.u64Padding = fields.u64Padding;
1379
- }
1380
- IncentiveConfig.reified = function () {
1381
- var _this = this;
1382
- return {
1383
- typeName: IncentiveConfig.$typeName,
1384
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([IncentiveConfig.$typeName], [], false)),
1385
- typeArgs: [],
1386
- reifiedTypeArgs: [],
1387
- fromFields: function (fields) { return IncentiveConfig.fromFields(fields); },
1388
- fromFieldsWithTypes: function (item) { return IncentiveConfig.fromFieldsWithTypes(item); },
1389
- fromBcs: function (data) { return IncentiveConfig.fromBcs(data); },
1390
- bcs: IncentiveConfig.bcs,
1391
- fromJSONField: function (field) { return IncentiveConfig.fromJSONField(field); },
1392
- fromJSON: function (json) { return IncentiveConfig.fromJSON(json); },
1393
- fromSuiParsedData: function (content) { return IncentiveConfig.fromSuiParsedData(content); },
1394
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1395
- return [2 /*return*/, IncentiveConfig.fetch(client, id)];
1396
- }); }); },
1397
- new: function (fields) {
1398
- return new IncentiveConfig([], fields);
1399
- },
1400
- kind: "StructClassReified",
1401
- };
1402
- };
1403
- Object.defineProperty(IncentiveConfig, "r", {
1404
- get: function () {
1405
- return IncentiveConfig.reified();
1406
- },
1407
- enumerable: false,
1408
- configurable: true
1409
- });
1410
- IncentiveConfig.phantom = function () {
1411
- return (0, reified_1.phantom)(IncentiveConfig.reified());
1412
- };
1413
- Object.defineProperty(IncentiveConfig, "p", {
1414
- get: function () {
1415
- return IncentiveConfig.phantom();
1416
- },
1417
- enumerable: false,
1418
- configurable: true
1419
- });
1420
- Object.defineProperty(IncentiveConfig, "bcs", {
1421
- get: function () {
1422
- return bcs_1.bcs.struct("IncentiveConfig", {
1423
- period_incentive_amount: bcs_1.bcs.u64(),
1424
- incentive_interval_ts_ms: bcs_1.bcs.u64(),
1425
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1426
- });
1427
- },
1428
- enumerable: false,
1429
- configurable: true
1430
- });
1431
- IncentiveConfig.fromFields = function (fields) {
1432
- return IncentiveConfig.reified().new({
1433
- periodIncentiveAmount: (0, reified_1.decodeFromFields)("u64", fields.period_incentive_amount),
1434
- incentiveIntervalTsMs: (0, reified_1.decodeFromFields)("u64", fields.incentive_interval_ts_ms),
1435
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
1436
- });
1437
- };
1438
- IncentiveConfig.fromFieldsWithTypes = function (item) {
1439
- if (!isIncentiveConfig(item.type)) {
1440
- throw new Error("not a IncentiveConfig type");
1441
- }
1442
- return IncentiveConfig.reified().new({
1443
- periodIncentiveAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.period_incentive_amount),
1444
- incentiveIntervalTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.incentive_interval_ts_ms),
1445
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
1446
- });
1447
- };
1448
- IncentiveConfig.fromBcs = function (data) {
1449
- return IncentiveConfig.fromFields(IncentiveConfig.bcs.parse(data));
1450
- };
1451
- IncentiveConfig.prototype.toJSONField = function () {
1452
- return {
1453
- periodIncentiveAmount: this.periodIncentiveAmount.toString(),
1454
- incentiveIntervalTsMs: this.incentiveIntervalTsMs.toString(),
1455
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
1456
- };
1457
- };
1458
- IncentiveConfig.prototype.toJSON = function () {
1459
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1460
- };
1461
- IncentiveConfig.fromJSONField = function (field) {
1462
- return IncentiveConfig.reified().new({
1463
- periodIncentiveAmount: (0, reified_1.decodeFromJSONField)("u64", field.periodIncentiveAmount),
1464
- incentiveIntervalTsMs: (0, reified_1.decodeFromJSONField)("u64", field.incentiveIntervalTsMs),
1465
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
1466
- });
1467
- };
1468
- IncentiveConfig.fromJSON = function (json) {
1469
- if (json.$typeName !== IncentiveConfig.$typeName) {
1470
- throw new Error("not a WithTwoGenerics json object");
1471
- }
1472
- return IncentiveConfig.fromJSONField(json);
1473
- };
1474
- IncentiveConfig.fromSuiParsedData = function (content) {
1475
- if (content.dataType !== "moveObject") {
1476
- throw new Error("not an object");
1477
- }
1478
- if (!isIncentiveConfig(content.type)) {
1479
- throw new Error("object at ".concat(content.fields.id, " is not a IncentiveConfig object"));
1480
- }
1481
- return IncentiveConfig.fromFieldsWithTypes(content);
1482
- };
1483
- IncentiveConfig.fetch = function (client, id) {
1484
- return __awaiter(this, void 0, void 0, function () {
1485
- var res;
1486
- var _a, _b;
1487
- return __generator(this, function (_c) {
1488
- switch (_c.label) {
1489
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1490
- case 1:
1491
- res = _c.sent();
1492
- if (res.error) {
1493
- throw new Error("error fetching IncentiveConfig object at id ".concat(id, ": ").concat(res.error.code));
1494
- }
1495
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isIncentiveConfig(res.data.bcs.type)) {
1496
- throw new Error("object at id ".concat(id, " is not a IncentiveConfig object"));
1497
- }
1498
- return [2 /*return*/, IncentiveConfig.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1499
- }
1500
- });
1501
- });
1502
- };
1503
- IncentiveConfig.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::IncentiveConfig";
1504
- IncentiveConfig.$numTypeParams = 0;
1505
- return IncentiveConfig;
1506
- }());
1507
- exports.IncentiveConfig = IncentiveConfig;
1508
- /* ============================== IncentiveInfo =============================== */
1509
- function isIncentiveInfo(type) {
1510
- type = (0, util_1.compressSuiType)(type);
1511
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::IncentiveInfo";
1512
- }
1513
- var IncentiveInfo = /** @class */ (function () {
1514
- function IncentiveInfo(typeArgs, fields) {
1515
- this.$typeName = IncentiveInfo.$typeName;
1516
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([IncentiveInfo.$typeName], __read(typeArgs), false));
1517
- this.$typeArgs = typeArgs;
1518
- this.active = fields.active;
1519
- this.lastAllocateTsMs = fields.lastAllocateTsMs;
1520
- this.incentivePriceIndex = fields.incentivePriceIndex;
1521
- this.u64Padding = fields.u64Padding;
1522
- }
1523
- IncentiveInfo.reified = function () {
1524
- var _this = this;
1525
- return {
1526
- typeName: IncentiveInfo.$typeName,
1527
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([IncentiveInfo.$typeName], [], false)),
1528
- typeArgs: [],
1529
- reifiedTypeArgs: [],
1530
- fromFields: function (fields) { return IncentiveInfo.fromFields(fields); },
1531
- fromFieldsWithTypes: function (item) { return IncentiveInfo.fromFieldsWithTypes(item); },
1532
- fromBcs: function (data) { return IncentiveInfo.fromBcs(data); },
1533
- bcs: IncentiveInfo.bcs,
1534
- fromJSONField: function (field) { return IncentiveInfo.fromJSONField(field); },
1535
- fromJSON: function (json) { return IncentiveInfo.fromJSON(json); },
1536
- fromSuiParsedData: function (content) { return IncentiveInfo.fromSuiParsedData(content); },
1537
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1538
- return [2 /*return*/, IncentiveInfo.fetch(client, id)];
1539
- }); }); },
1540
- new: function (fields) {
1541
- return new IncentiveInfo([], fields);
1542
- },
1543
- kind: "StructClassReified",
1544
- };
1545
- };
1546
- Object.defineProperty(IncentiveInfo, "r", {
1547
- get: function () {
1548
- return IncentiveInfo.reified();
1549
- },
1550
- enumerable: false,
1551
- configurable: true
1552
- });
1553
- IncentiveInfo.phantom = function () {
1554
- return (0, reified_1.phantom)(IncentiveInfo.reified());
1555
- };
1556
- Object.defineProperty(IncentiveInfo, "p", {
1557
- get: function () {
1558
- return IncentiveInfo.phantom();
1559
- },
1560
- enumerable: false,
1561
- configurable: true
1562
- });
1563
- Object.defineProperty(IncentiveInfo, "bcs", {
1564
- get: function () {
1565
- return bcs_1.bcs.struct("IncentiveInfo", {
1566
- active: bcs_1.bcs.bool(),
1567
- last_allocate_ts_ms: bcs_1.bcs.u64(),
1568
- incentive_price_index: bcs_1.bcs.u64(),
1569
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1570
- });
1571
- },
1572
- enumerable: false,
1573
- configurable: true
1574
- });
1575
- IncentiveInfo.fromFields = function (fields) {
1576
- return IncentiveInfo.reified().new({
1577
- active: (0, reified_1.decodeFromFields)("bool", fields.active),
1578
- lastAllocateTsMs: (0, reified_1.decodeFromFields)("u64", fields.last_allocate_ts_ms),
1579
- incentivePriceIndex: (0, reified_1.decodeFromFields)("u64", fields.incentive_price_index),
1580
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
1581
- });
1582
- };
1583
- IncentiveInfo.fromFieldsWithTypes = function (item) {
1584
- if (!isIncentiveInfo(item.type)) {
1585
- throw new Error("not a IncentiveInfo type");
1586
- }
1587
- return IncentiveInfo.reified().new({
1588
- active: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.active),
1589
- lastAllocateTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.last_allocate_ts_ms),
1590
- incentivePriceIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.incentive_price_index),
1591
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
1592
- });
1593
- };
1594
- IncentiveInfo.fromBcs = function (data) {
1595
- return IncentiveInfo.fromFields(IncentiveInfo.bcs.parse(data));
1596
- };
1597
- IncentiveInfo.prototype.toJSONField = function () {
1598
- return {
1599
- active: this.active,
1600
- lastAllocateTsMs: this.lastAllocateTsMs.toString(),
1601
- incentivePriceIndex: this.incentivePriceIndex.toString(),
1602
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
1603
- };
1604
- };
1605
- IncentiveInfo.prototype.toJSON = function () {
1606
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1607
- };
1608
- IncentiveInfo.fromJSONField = function (field) {
1609
- return IncentiveInfo.reified().new({
1610
- active: (0, reified_1.decodeFromJSONField)("bool", field.active),
1611
- lastAllocateTsMs: (0, reified_1.decodeFromJSONField)("u64", field.lastAllocateTsMs),
1612
- incentivePriceIndex: (0, reified_1.decodeFromJSONField)("u64", field.incentivePriceIndex),
1613
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
1614
- });
1615
- };
1616
- IncentiveInfo.fromJSON = function (json) {
1617
- if (json.$typeName !== IncentiveInfo.$typeName) {
1618
- throw new Error("not a WithTwoGenerics json object");
1619
- }
1620
- return IncentiveInfo.fromJSONField(json);
1621
- };
1622
- IncentiveInfo.fromSuiParsedData = function (content) {
1623
- if (content.dataType !== "moveObject") {
1624
- throw new Error("not an object");
1625
- }
1626
- if (!isIncentiveInfo(content.type)) {
1627
- throw new Error("object at ".concat(content.fields.id, " is not a IncentiveInfo object"));
1628
- }
1629
- return IncentiveInfo.fromFieldsWithTypes(content);
1630
- };
1631
- IncentiveInfo.fetch = function (client, id) {
1632
- return __awaiter(this, void 0, void 0, function () {
1633
- var res;
1634
- var _a, _b;
1635
- return __generator(this, function (_c) {
1636
- switch (_c.label) {
1637
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1638
- case 1:
1639
- res = _c.sent();
1640
- if (res.error) {
1641
- throw new Error("error fetching IncentiveInfo object at id ".concat(id, ": ").concat(res.error.code));
1642
- }
1643
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isIncentiveInfo(res.data.bcs.type)) {
1644
- throw new Error("object at id ".concat(id, " is not a IncentiveInfo object"));
1645
- }
1646
- return [2 /*return*/, IncentiveInfo.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1647
- }
1648
- });
1649
- });
1650
- };
1651
- IncentiveInfo.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::IncentiveInfo";
1652
- IncentiveInfo.$numTypeParams = 0;
1653
- return IncentiveInfo;
1654
- }());
1655
- exports.IncentiveInfo = IncentiveInfo;
1656
- /* ============================== LpUserShare =============================== */
1657
- function isLpUserShare(type) {
1658
- type = (0, util_1.compressSuiType)(type);
1659
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::LpUserShare";
1660
- }
1661
- var LpUserShare = /** @class */ (function () {
1662
- function LpUserShare(typeArgs, fields) {
1663
- this.$typeName = LpUserShare.$typeName;
1664
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([LpUserShare.$typeName], __read(typeArgs), false));
1665
- this.$typeArgs = typeArgs;
1666
- this.user = fields.user;
1667
- this.userShareId = fields.userShareId;
1668
- this.stakeTsMs = fields.stakeTsMs;
1669
- this.totalShares = fields.totalShares;
1670
- this.activeShares = fields.activeShares;
1671
- this.deactivatingShares = fields.deactivatingShares;
1672
- this.lastIncentivePriceIndex = fields.lastIncentivePriceIndex;
1673
- this.u64Padding = fields.u64Padding;
1674
- }
1675
- LpUserShare.reified = function () {
1676
- var _this = this;
1677
- return {
1678
- typeName: LpUserShare.$typeName,
1679
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([LpUserShare.$typeName], [], false)),
1680
- typeArgs: [],
1681
- reifiedTypeArgs: [],
1682
- fromFields: function (fields) { return LpUserShare.fromFields(fields); },
1683
- fromFieldsWithTypes: function (item) { return LpUserShare.fromFieldsWithTypes(item); },
1684
- fromBcs: function (data) { return LpUserShare.fromBcs(data); },
1685
- bcs: LpUserShare.bcs,
1686
- fromJSONField: function (field) { return LpUserShare.fromJSONField(field); },
1687
- fromJSON: function (json) { return LpUserShare.fromJSON(json); },
1688
- fromSuiParsedData: function (content) { return LpUserShare.fromSuiParsedData(content); },
1689
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1690
- return [2 /*return*/, LpUserShare.fetch(client, id)];
1691
- }); }); },
1692
- new: function (fields) {
1693
- return new LpUserShare([], fields);
1694
- },
1695
- kind: "StructClassReified",
1696
- };
1697
- };
1698
- Object.defineProperty(LpUserShare, "r", {
1699
- get: function () {
1700
- return LpUserShare.reified();
1701
- },
1702
- enumerable: false,
1703
- configurable: true
1704
- });
1705
- LpUserShare.phantom = function () {
1706
- return (0, reified_1.phantom)(LpUserShare.reified());
1707
- };
1708
- Object.defineProperty(LpUserShare, "p", {
1709
- get: function () {
1710
- return LpUserShare.phantom();
1711
- },
1712
- enumerable: false,
1713
- configurable: true
1714
- });
1715
- Object.defineProperty(LpUserShare, "bcs", {
1716
- get: function () {
1717
- return bcs_1.bcs.struct("LpUserShare", {
1718
- user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
1719
- user_share_id: bcs_1.bcs.u64(),
1720
- stake_ts_ms: bcs_1.bcs.u64(),
1721
- total_shares: bcs_1.bcs.u64(),
1722
- active_shares: bcs_1.bcs.u64(),
1723
- deactivating_shares: bcs_1.bcs.vector(DeactivatingShares.bcs),
1724
- last_incentive_price_index: structs_3.VecMap.bcs(structs_1.TypeName.bcs, bcs_1.bcs.u64()),
1725
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1726
- });
1727
- },
1728
- enumerable: false,
1729
- configurable: true
1730
- });
1731
- LpUserShare.fromFields = function (fields) {
1732
- return LpUserShare.reified().new({
1733
- user: (0, reified_1.decodeFromFields)("address", fields.user),
1734
- userShareId: (0, reified_1.decodeFromFields)("u64", fields.user_share_id),
1735
- stakeTsMs: (0, reified_1.decodeFromFields)("u64", fields.stake_ts_ms),
1736
- totalShares: (0, reified_1.decodeFromFields)("u64", fields.total_shares),
1737
- activeShares: (0, reified_1.decodeFromFields)("u64", fields.active_shares),
1738
- deactivatingShares: (0, reified_1.decodeFromFields)(reified.vector(DeactivatingShares.reified()), fields.deactivating_shares),
1739
- lastIncentivePriceIndex: (0, reified_1.decodeFromFields)(structs_3.VecMap.reified(structs_1.TypeName.reified(), "u64"), fields.last_incentive_price_index),
1740
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
1741
- });
1742
- };
1743
- LpUserShare.fromFieldsWithTypes = function (item) {
1744
- if (!isLpUserShare(item.type)) {
1745
- throw new Error("not a LpUserShare type");
1746
- }
1747
- return LpUserShare.reified().new({
1748
- user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
1749
- userShareId: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.user_share_id),
1750
- stakeTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.stake_ts_ms),
1751
- totalShares: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.total_shares),
1752
- activeShares: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.active_shares),
1753
- deactivatingShares: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(DeactivatingShares.reified()), item.fields.deactivating_shares),
1754
- lastIncentivePriceIndex: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.VecMap.reified(structs_1.TypeName.reified(), "u64"), item.fields.last_incentive_price_index),
1755
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
1756
- });
1757
- };
1758
- LpUserShare.fromBcs = function (data) {
1759
- return LpUserShare.fromFields(LpUserShare.bcs.parse(data));
1760
- };
1761
- LpUserShare.prototype.toJSONField = function () {
1762
- return {
1763
- user: this.user,
1764
- userShareId: this.userShareId.toString(),
1765
- stakeTsMs: this.stakeTsMs.toString(),
1766
- totalShares: this.totalShares.toString(),
1767
- activeShares: this.activeShares.toString(),
1768
- deactivatingShares: (0, reified_1.fieldToJSON)("vector<0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::DeactivatingShares>", this.deactivatingShares),
1769
- lastIncentivePriceIndex: this.lastIncentivePriceIndex.toJSONField(),
1770
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
1771
- };
1772
- };
1773
- LpUserShare.prototype.toJSON = function () {
1774
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1775
- };
1776
- LpUserShare.fromJSONField = function (field) {
1777
- return LpUserShare.reified().new({
1778
- user: (0, reified_1.decodeFromJSONField)("address", field.user),
1779
- userShareId: (0, reified_1.decodeFromJSONField)("u64", field.userShareId),
1780
- stakeTsMs: (0, reified_1.decodeFromJSONField)("u64", field.stakeTsMs),
1781
- totalShares: (0, reified_1.decodeFromJSONField)("u64", field.totalShares),
1782
- activeShares: (0, reified_1.decodeFromJSONField)("u64", field.activeShares),
1783
- deactivatingShares: (0, reified_1.decodeFromJSONField)(reified.vector(DeactivatingShares.reified()), field.deactivatingShares),
1784
- lastIncentivePriceIndex: (0, reified_1.decodeFromJSONField)(structs_3.VecMap.reified(structs_1.TypeName.reified(), "u64"), field.lastIncentivePriceIndex),
1785
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
1786
- });
1787
- };
1788
- LpUserShare.fromJSON = function (json) {
1789
- if (json.$typeName !== LpUserShare.$typeName) {
1790
- throw new Error("not a WithTwoGenerics json object");
1791
- }
1792
- return LpUserShare.fromJSONField(json);
1793
- };
1794
- LpUserShare.fromSuiParsedData = function (content) {
1795
- if (content.dataType !== "moveObject") {
1796
- throw new Error("not an object");
1797
- }
1798
- if (!isLpUserShare(content.type)) {
1799
- throw new Error("object at ".concat(content.fields.id, " is not a LpUserShare object"));
1800
- }
1801
- return LpUserShare.fromFieldsWithTypes(content);
1802
- };
1803
- LpUserShare.fetch = function (client, id) {
1804
- return __awaiter(this, void 0, void 0, function () {
1805
- var res;
1806
- var _a, _b;
1807
- return __generator(this, function (_c) {
1808
- switch (_c.label) {
1809
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1810
- case 1:
1811
- res = _c.sent();
1812
- if (res.error) {
1813
- throw new Error("error fetching LpUserShare object at id ".concat(id, ": ").concat(res.error.code));
1814
- }
1815
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isLpUserShare(res.data.bcs.type)) {
1816
- throw new Error("object at id ".concat(id, " is not a LpUserShare object"));
1817
- }
1818
- return [2 /*return*/, LpUserShare.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1819
- }
1820
- });
1821
- });
1822
- };
1823
- LpUserShare.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::LpUserShare";
1824
- LpUserShare.$numTypeParams = 0;
1825
- return LpUserShare;
1826
- }());
1827
- exports.LpUserShare = LpUserShare;
1828
- /* ============================== NewStakePoolEvent =============================== */
1829
- function isNewStakePoolEvent(type) {
1830
- type = (0, util_1.compressSuiType)(type);
1831
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::NewStakePoolEvent";
1832
- }
1833
- var NewStakePoolEvent = /** @class */ (function () {
1834
- function NewStakePoolEvent(typeArgs, fields) {
1835
- this.$typeName = NewStakePoolEvent.$typeName;
1836
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewStakePoolEvent.$typeName], __read(typeArgs), false));
1837
- this.$typeArgs = typeArgs;
1838
- this.sender = fields.sender;
1839
- this.stakePoolInfo = fields.stakePoolInfo;
1840
- this.stakePoolConfig = fields.stakePoolConfig;
1841
- this.u64Padding = fields.u64Padding;
1842
- }
1843
- NewStakePoolEvent.reified = function () {
1844
- var _this = this;
1845
- return {
1846
- typeName: NewStakePoolEvent.$typeName,
1847
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewStakePoolEvent.$typeName], [], false)),
1848
- typeArgs: [],
1849
- reifiedTypeArgs: [],
1850
- fromFields: function (fields) { return NewStakePoolEvent.fromFields(fields); },
1851
- fromFieldsWithTypes: function (item) { return NewStakePoolEvent.fromFieldsWithTypes(item); },
1852
- fromBcs: function (data) { return NewStakePoolEvent.fromBcs(data); },
1853
- bcs: NewStakePoolEvent.bcs,
1854
- fromJSONField: function (field) { return NewStakePoolEvent.fromJSONField(field); },
1855
- fromJSON: function (json) { return NewStakePoolEvent.fromJSON(json); },
1856
- fromSuiParsedData: function (content) { return NewStakePoolEvent.fromSuiParsedData(content); },
1857
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1858
- return [2 /*return*/, NewStakePoolEvent.fetch(client, id)];
1859
- }); }); },
1860
- new: function (fields) {
1861
- return new NewStakePoolEvent([], fields);
1862
- },
1863
- kind: "StructClassReified",
1864
- };
1865
- };
1866
- Object.defineProperty(NewStakePoolEvent, "r", {
1867
- get: function () {
1868
- return NewStakePoolEvent.reified();
1869
- },
1870
- enumerable: false,
1871
- configurable: true
1872
- });
1873
- NewStakePoolEvent.phantom = function () {
1874
- return (0, reified_1.phantom)(NewStakePoolEvent.reified());
1875
- };
1876
- Object.defineProperty(NewStakePoolEvent, "p", {
1877
- get: function () {
1878
- return NewStakePoolEvent.phantom();
1879
- },
1880
- enumerable: false,
1881
- configurable: true
1882
- });
1883
- Object.defineProperty(NewStakePoolEvent, "bcs", {
1884
- get: function () {
1885
- return bcs_1.bcs.struct("NewStakePoolEvent", {
1886
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
1887
- stake_pool_info: StakePoolInfo.bcs,
1888
- stake_pool_config: StakePoolConfig.bcs,
1889
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1890
- });
1891
- },
1892
- enumerable: false,
1893
- configurable: true
1894
- });
1895
- NewStakePoolEvent.fromFields = function (fields) {
1896
- return NewStakePoolEvent.reified().new({
1897
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
1898
- stakePoolInfo: (0, reified_1.decodeFromFields)(StakePoolInfo.reified(), fields.stake_pool_info),
1899
- stakePoolConfig: (0, reified_1.decodeFromFields)(StakePoolConfig.reified(), fields.stake_pool_config),
1900
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
1901
- });
1902
- };
1903
- NewStakePoolEvent.fromFieldsWithTypes = function (item) {
1904
- if (!isNewStakePoolEvent(item.type)) {
1905
- throw new Error("not a NewStakePoolEvent type");
1906
- }
1907
- return NewStakePoolEvent.reified().new({
1908
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
1909
- stakePoolInfo: (0, reified_1.decodeFromFieldsWithTypes)(StakePoolInfo.reified(), item.fields.stake_pool_info),
1910
- stakePoolConfig: (0, reified_1.decodeFromFieldsWithTypes)(StakePoolConfig.reified(), item.fields.stake_pool_config),
1911
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
1912
- });
1913
- };
1914
- NewStakePoolEvent.fromBcs = function (data) {
1915
- return NewStakePoolEvent.fromFields(NewStakePoolEvent.bcs.parse(data));
1916
- };
1917
- NewStakePoolEvent.prototype.toJSONField = function () {
1918
- return {
1919
- sender: this.sender,
1920
- stakePoolInfo: this.stakePoolInfo.toJSONField(),
1921
- stakePoolConfig: this.stakePoolConfig.toJSONField(),
1922
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
1923
- };
1924
- };
1925
- NewStakePoolEvent.prototype.toJSON = function () {
1926
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1927
- };
1928
- NewStakePoolEvent.fromJSONField = function (field) {
1929
- return NewStakePoolEvent.reified().new({
1930
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
1931
- stakePoolInfo: (0, reified_1.decodeFromJSONField)(StakePoolInfo.reified(), field.stakePoolInfo),
1932
- stakePoolConfig: (0, reified_1.decodeFromJSONField)(StakePoolConfig.reified(), field.stakePoolConfig),
1933
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
1934
- });
1935
- };
1936
- NewStakePoolEvent.fromJSON = function (json) {
1937
- if (json.$typeName !== NewStakePoolEvent.$typeName) {
1938
- throw new Error("not a WithTwoGenerics json object");
1939
- }
1940
- return NewStakePoolEvent.fromJSONField(json);
1941
- };
1942
- NewStakePoolEvent.fromSuiParsedData = function (content) {
1943
- if (content.dataType !== "moveObject") {
1944
- throw new Error("not an object");
1945
- }
1946
- if (!isNewStakePoolEvent(content.type)) {
1947
- throw new Error("object at ".concat(content.fields.id, " is not a NewStakePoolEvent object"));
1948
- }
1949
- return NewStakePoolEvent.fromFieldsWithTypes(content);
1950
- };
1951
- NewStakePoolEvent.fetch = function (client, id) {
1952
- return __awaiter(this, void 0, void 0, function () {
1953
- var res;
1954
- var _a, _b;
1955
- return __generator(this, function (_c) {
1956
- switch (_c.label) {
1957
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1958
- case 1:
1959
- res = _c.sent();
1960
- if (res.error) {
1961
- throw new Error("error fetching NewStakePoolEvent object at id ".concat(id, ": ").concat(res.error.code));
1962
- }
1963
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isNewStakePoolEvent(res.data.bcs.type)) {
1964
- throw new Error("object at id ".concat(id, " is not a NewStakePoolEvent object"));
1965
- }
1966
- return [2 /*return*/, NewStakePoolEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1967
- }
1968
- });
1969
- });
1970
- };
1971
- NewStakePoolEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::NewStakePoolEvent";
1972
- NewStakePoolEvent.$numTypeParams = 0;
1973
- return NewStakePoolEvent;
1974
- }());
1975
- exports.NewStakePoolEvent = NewStakePoolEvent;
1976
- /* ============================== RemoveIncentiveTokenEvent =============================== */
1977
- function isRemoveIncentiveTokenEvent(type) {
1978
- type = (0, util_1.compressSuiType)(type);
1979
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::RemoveIncentiveTokenEvent";
1980
- }
1981
- var RemoveIncentiveTokenEvent = /** @class */ (function () {
1982
- function RemoveIncentiveTokenEvent(typeArgs, fields) {
1983
- this.$typeName = RemoveIncentiveTokenEvent.$typeName;
1984
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemoveIncentiveTokenEvent.$typeName], __read(typeArgs), false));
1985
- this.$typeArgs = typeArgs;
1986
- this.sender = fields.sender;
1987
- this.index = fields.index;
1988
- this.incentiveToken = fields.incentiveToken;
1989
- this.incentiveBalanceValue = fields.incentiveBalanceValue;
1990
- this.u64Padding = fields.u64Padding;
1991
- }
1992
- RemoveIncentiveTokenEvent.reified = function () {
1993
- var _this = this;
1994
- return {
1995
- typeName: RemoveIncentiveTokenEvent.$typeName,
1996
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemoveIncentiveTokenEvent.$typeName], [], false)),
1997
- typeArgs: [],
1998
- reifiedTypeArgs: [],
1999
- fromFields: function (fields) { return RemoveIncentiveTokenEvent.fromFields(fields); },
2000
- fromFieldsWithTypes: function (item) { return RemoveIncentiveTokenEvent.fromFieldsWithTypes(item); },
2001
- fromBcs: function (data) { return RemoveIncentiveTokenEvent.fromBcs(data); },
2002
- bcs: RemoveIncentiveTokenEvent.bcs,
2003
- fromJSONField: function (field) { return RemoveIncentiveTokenEvent.fromJSONField(field); },
2004
- fromJSON: function (json) { return RemoveIncentiveTokenEvent.fromJSON(json); },
2005
- fromSuiParsedData: function (content) { return RemoveIncentiveTokenEvent.fromSuiParsedData(content); },
2006
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2007
- return [2 /*return*/, RemoveIncentiveTokenEvent.fetch(client, id)];
2008
- }); }); },
2009
- new: function (fields) {
2010
- return new RemoveIncentiveTokenEvent([], fields);
2011
- },
2012
- kind: "StructClassReified",
2013
- };
2014
- };
2015
- Object.defineProperty(RemoveIncentiveTokenEvent, "r", {
2016
- get: function () {
2017
- return RemoveIncentiveTokenEvent.reified();
2018
- },
2019
- enumerable: false,
2020
- configurable: true
2021
- });
2022
- RemoveIncentiveTokenEvent.phantom = function () {
2023
- return (0, reified_1.phantom)(RemoveIncentiveTokenEvent.reified());
2024
- };
2025
- Object.defineProperty(RemoveIncentiveTokenEvent, "p", {
2026
- get: function () {
2027
- return RemoveIncentiveTokenEvent.phantom();
2028
- },
2029
- enumerable: false,
2030
- configurable: true
2031
- });
2032
- Object.defineProperty(RemoveIncentiveTokenEvent, "bcs", {
2033
- get: function () {
2034
- return bcs_1.bcs.struct("RemoveIncentiveTokenEvent", {
2035
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
2036
- index: bcs_1.bcs.u64(),
2037
- incentive_token: structs_1.TypeName.bcs,
2038
- incentive_balance_value: bcs_1.bcs.u64(),
2039
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
2040
- });
2041
- },
2042
- enumerable: false,
2043
- configurable: true
2044
- });
2045
- RemoveIncentiveTokenEvent.fromFields = function (fields) {
2046
- return RemoveIncentiveTokenEvent.reified().new({
2047
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
2048
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
2049
- incentiveToken: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.incentive_token),
2050
- incentiveBalanceValue: (0, reified_1.decodeFromFields)("u64", fields.incentive_balance_value),
2051
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
2052
- });
2053
- };
2054
- RemoveIncentiveTokenEvent.fromFieldsWithTypes = function (item) {
2055
- if (!isRemoveIncentiveTokenEvent(item.type)) {
2056
- throw new Error("not a RemoveIncentiveTokenEvent type");
2057
- }
2058
- return RemoveIncentiveTokenEvent.reified().new({
2059
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
2060
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
2061
- incentiveToken: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.incentive_token),
2062
- incentiveBalanceValue: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.incentive_balance_value),
2063
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
2064
- });
2065
- };
2066
- RemoveIncentiveTokenEvent.fromBcs = function (data) {
2067
- return RemoveIncentiveTokenEvent.fromFields(RemoveIncentiveTokenEvent.bcs.parse(data));
2068
- };
2069
- RemoveIncentiveTokenEvent.prototype.toJSONField = function () {
2070
- return {
2071
- sender: this.sender,
2072
- index: this.index.toString(),
2073
- incentiveToken: this.incentiveToken.toJSONField(),
2074
- incentiveBalanceValue: this.incentiveBalanceValue.toString(),
2075
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
2076
- };
2077
- };
2078
- RemoveIncentiveTokenEvent.prototype.toJSON = function () {
2079
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
2080
- };
2081
- RemoveIncentiveTokenEvent.fromJSONField = function (field) {
2082
- return RemoveIncentiveTokenEvent.reified().new({
2083
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
2084
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
2085
- incentiveToken: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.incentiveToken),
2086
- incentiveBalanceValue: (0, reified_1.decodeFromJSONField)("u64", field.incentiveBalanceValue),
2087
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
2088
- });
2089
- };
2090
- RemoveIncentiveTokenEvent.fromJSON = function (json) {
2091
- if (json.$typeName !== RemoveIncentiveTokenEvent.$typeName) {
2092
- throw new Error("not a WithTwoGenerics json object");
2093
- }
2094
- return RemoveIncentiveTokenEvent.fromJSONField(json);
2095
- };
2096
- RemoveIncentiveTokenEvent.fromSuiParsedData = function (content) {
2097
- if (content.dataType !== "moveObject") {
2098
- throw new Error("not an object");
2099
- }
2100
- if (!isRemoveIncentiveTokenEvent(content.type)) {
2101
- throw new Error("object at ".concat(content.fields.id, " is not a RemoveIncentiveTokenEvent object"));
2102
- }
2103
- return RemoveIncentiveTokenEvent.fromFieldsWithTypes(content);
2104
- };
2105
- RemoveIncentiveTokenEvent.fetch = function (client, id) {
2106
- return __awaiter(this, void 0, void 0, function () {
2107
- var res;
2108
- var _a, _b;
2109
- return __generator(this, function (_c) {
2110
- switch (_c.label) {
2111
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2112
- case 1:
2113
- res = _c.sent();
2114
- if (res.error) {
2115
- throw new Error("error fetching RemoveIncentiveTokenEvent object at id ".concat(id, ": ").concat(res.error.code));
2116
- }
2117
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRemoveIncentiveTokenEvent(res.data.bcs.type)) {
2118
- throw new Error("object at id ".concat(id, " is not a RemoveIncentiveTokenEvent object"));
2119
- }
2120
- return [2 /*return*/, RemoveIncentiveTokenEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2121
- }
2122
- });
2123
- });
2124
- };
2125
- RemoveIncentiveTokenEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::RemoveIncentiveTokenEvent";
2126
- RemoveIncentiveTokenEvent.$numTypeParams = 0;
2127
- return RemoveIncentiveTokenEvent;
2128
- }());
2129
- exports.RemoveIncentiveTokenEvent = RemoveIncentiveTokenEvent;
2130
- /* ============================== StakeEvent =============================== */
2131
- function isStakeEvent(type) {
2132
- type = (0, util_1.compressSuiType)(type);
2133
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakeEvent";
2134
- }
2135
- var StakeEvent = /** @class */ (function () {
2136
- function StakeEvent(typeArgs, fields) {
2137
- this.$typeName = StakeEvent.$typeName;
2138
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StakeEvent.$typeName], __read(typeArgs), false));
2139
- this.$typeArgs = typeArgs;
2140
- this.sender = fields.sender;
2141
- this.index = fields.index;
2142
- this.lpTokenType = fields.lpTokenType;
2143
- this.stakeAmount = fields.stakeAmount;
2144
- this.userShareId = fields.userShareId;
2145
- this.stakeTsMs = fields.stakeTsMs;
2146
- this.lastIncentivePriceIndex = fields.lastIncentivePriceIndex;
2147
- this.u64Padding = fields.u64Padding;
2148
- }
2149
- StakeEvent.reified = function () {
2150
- var _this = this;
2151
- return {
2152
- typeName: StakeEvent.$typeName,
2153
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StakeEvent.$typeName], [], false)),
2154
- typeArgs: [],
2155
- reifiedTypeArgs: [],
2156
- fromFields: function (fields) { return StakeEvent.fromFields(fields); },
2157
- fromFieldsWithTypes: function (item) { return StakeEvent.fromFieldsWithTypes(item); },
2158
- fromBcs: function (data) { return StakeEvent.fromBcs(data); },
2159
- bcs: StakeEvent.bcs,
2160
- fromJSONField: function (field) { return StakeEvent.fromJSONField(field); },
2161
- fromJSON: function (json) { return StakeEvent.fromJSON(json); },
2162
- fromSuiParsedData: function (content) { return StakeEvent.fromSuiParsedData(content); },
2163
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2164
- return [2 /*return*/, StakeEvent.fetch(client, id)];
2165
- }); }); },
2166
- new: function (fields) {
2167
- return new StakeEvent([], fields);
2168
- },
2169
- kind: "StructClassReified",
2170
- };
2171
- };
2172
- Object.defineProperty(StakeEvent, "r", {
2173
- get: function () {
2174
- return StakeEvent.reified();
2175
- },
2176
- enumerable: false,
2177
- configurable: true
2178
- });
2179
- StakeEvent.phantom = function () {
2180
- return (0, reified_1.phantom)(StakeEvent.reified());
2181
- };
2182
- Object.defineProperty(StakeEvent, "p", {
2183
- get: function () {
2184
- return StakeEvent.phantom();
2185
- },
2186
- enumerable: false,
2187
- configurable: true
2188
- });
2189
- Object.defineProperty(StakeEvent, "bcs", {
2190
- get: function () {
2191
- return bcs_1.bcs.struct("StakeEvent", {
2192
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
2193
- index: bcs_1.bcs.u64(),
2194
- lp_token_type: structs_1.TypeName.bcs,
2195
- stake_amount: bcs_1.bcs.u64(),
2196
- user_share_id: bcs_1.bcs.u64(),
2197
- stake_ts_ms: bcs_1.bcs.u64(),
2198
- last_incentive_price_index: structs_3.VecMap.bcs(structs_1.TypeName.bcs, bcs_1.bcs.u64()),
2199
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
2200
- });
2201
- },
2202
- enumerable: false,
2203
- configurable: true
2204
- });
2205
- StakeEvent.fromFields = function (fields) {
2206
- return StakeEvent.reified().new({
2207
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
2208
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
2209
- lpTokenType: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.lp_token_type),
2210
- stakeAmount: (0, reified_1.decodeFromFields)("u64", fields.stake_amount),
2211
- userShareId: (0, reified_1.decodeFromFields)("u64", fields.user_share_id),
2212
- stakeTsMs: (0, reified_1.decodeFromFields)("u64", fields.stake_ts_ms),
2213
- lastIncentivePriceIndex: (0, reified_1.decodeFromFields)(structs_3.VecMap.reified(structs_1.TypeName.reified(), "u64"), fields.last_incentive_price_index),
2214
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
2215
- });
2216
- };
2217
- StakeEvent.fromFieldsWithTypes = function (item) {
2218
- if (!isStakeEvent(item.type)) {
2219
- throw new Error("not a StakeEvent type");
2220
- }
2221
- return StakeEvent.reified().new({
2222
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
2223
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
2224
- lpTokenType: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.lp_token_type),
2225
- stakeAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.stake_amount),
2226
- userShareId: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.user_share_id),
2227
- stakeTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.stake_ts_ms),
2228
- lastIncentivePriceIndex: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.VecMap.reified(structs_1.TypeName.reified(), "u64"), item.fields.last_incentive_price_index),
2229
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
2230
- });
2231
- };
2232
- StakeEvent.fromBcs = function (data) {
2233
- return StakeEvent.fromFields(StakeEvent.bcs.parse(data));
2234
- };
2235
- StakeEvent.prototype.toJSONField = function () {
2236
- return {
2237
- sender: this.sender,
2238
- index: this.index.toString(),
2239
- lpTokenType: this.lpTokenType.toJSONField(),
2240
- stakeAmount: this.stakeAmount.toString(),
2241
- userShareId: this.userShareId.toString(),
2242
- stakeTsMs: this.stakeTsMs.toString(),
2243
- lastIncentivePriceIndex: this.lastIncentivePriceIndex.toJSONField(),
2244
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
2245
- };
2246
- };
2247
- StakeEvent.prototype.toJSON = function () {
2248
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
2249
- };
2250
- StakeEvent.fromJSONField = function (field) {
2251
- return StakeEvent.reified().new({
2252
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
2253
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
2254
- lpTokenType: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.lpTokenType),
2255
- stakeAmount: (0, reified_1.decodeFromJSONField)("u64", field.stakeAmount),
2256
- userShareId: (0, reified_1.decodeFromJSONField)("u64", field.userShareId),
2257
- stakeTsMs: (0, reified_1.decodeFromJSONField)("u64", field.stakeTsMs),
2258
- lastIncentivePriceIndex: (0, reified_1.decodeFromJSONField)(structs_3.VecMap.reified(structs_1.TypeName.reified(), "u64"), field.lastIncentivePriceIndex),
2259
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
2260
- });
2261
- };
2262
- StakeEvent.fromJSON = function (json) {
2263
- if (json.$typeName !== StakeEvent.$typeName) {
2264
- throw new Error("not a WithTwoGenerics json object");
2265
- }
2266
- return StakeEvent.fromJSONField(json);
2267
- };
2268
- StakeEvent.fromSuiParsedData = function (content) {
2269
- if (content.dataType !== "moveObject") {
2270
- throw new Error("not an object");
2271
- }
2272
- if (!isStakeEvent(content.type)) {
2273
- throw new Error("object at ".concat(content.fields.id, " is not a StakeEvent object"));
2274
- }
2275
- return StakeEvent.fromFieldsWithTypes(content);
2276
- };
2277
- StakeEvent.fetch = function (client, id) {
2278
- return __awaiter(this, void 0, void 0, function () {
2279
- var res;
2280
- var _a, _b;
2281
- return __generator(this, function (_c) {
2282
- switch (_c.label) {
2283
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2284
- case 1:
2285
- res = _c.sent();
2286
- if (res.error) {
2287
- throw new Error("error fetching StakeEvent object at id ".concat(id, ": ").concat(res.error.code));
2288
- }
2289
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStakeEvent(res.data.bcs.type)) {
2290
- throw new Error("object at id ".concat(id, " is not a StakeEvent object"));
2291
- }
2292
- return [2 /*return*/, StakeEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2293
- }
2294
- });
2295
- });
2296
- };
2297
- StakeEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakeEvent";
2298
- StakeEvent.$numTypeParams = 0;
2299
- return StakeEvent;
2300
- }());
2301
- exports.StakeEvent = StakeEvent;
2302
- /* ============================== StakePool =============================== */
2303
- function isStakePool(type) {
2304
- type = (0, util_1.compressSuiType)(type);
2305
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakePool";
2306
- }
2307
- var StakePool = /** @class */ (function () {
2308
- function StakePool(typeArgs, fields) {
2309
- this.$typeName = StakePool.$typeName;
2310
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StakePool.$typeName], __read(typeArgs), false));
2311
- this.$typeArgs = typeArgs;
2312
- this.id = fields.id;
2313
- this.poolInfo = fields.poolInfo;
2314
- this.config = fields.config;
2315
- this.incentives = fields.incentives;
2316
- this.u64Padding = fields.u64Padding;
2317
- }
2318
- StakePool.reified = function () {
2319
- var _this = this;
2320
- return {
2321
- typeName: StakePool.$typeName,
2322
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StakePool.$typeName], [], false)),
2323
- typeArgs: [],
2324
- reifiedTypeArgs: [],
2325
- fromFields: function (fields) { return StakePool.fromFields(fields); },
2326
- fromFieldsWithTypes: function (item) { return StakePool.fromFieldsWithTypes(item); },
2327
- fromBcs: function (data) { return StakePool.fromBcs(data); },
2328
- bcs: StakePool.bcs,
2329
- fromJSONField: function (field) { return StakePool.fromJSONField(field); },
2330
- fromJSON: function (json) { return StakePool.fromJSON(json); },
2331
- fromSuiParsedData: function (content) { return StakePool.fromSuiParsedData(content); },
2332
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2333
- return [2 /*return*/, StakePool.fetch(client, id)];
2334
- }); }); },
2335
- new: function (fields) {
2336
- return new StakePool([], fields);
2337
- },
2338
- kind: "StructClassReified",
2339
- };
2340
- };
2341
- Object.defineProperty(StakePool, "r", {
2342
- get: function () {
2343
- return StakePool.reified();
2344
- },
2345
- enumerable: false,
2346
- configurable: true
2347
- });
2348
- StakePool.phantom = function () {
2349
- return (0, reified_1.phantom)(StakePool.reified());
2350
- };
2351
- Object.defineProperty(StakePool, "p", {
2352
- get: function () {
2353
- return StakePool.phantom();
2354
- },
2355
- enumerable: false,
2356
- configurable: true
2357
- });
2358
- Object.defineProperty(StakePool, "bcs", {
2359
- get: function () {
2360
- return bcs_1.bcs.struct("StakePool", {
2361
- id: structs_2.UID.bcs,
2362
- pool_info: StakePoolInfo.bcs,
2363
- config: StakePoolConfig.bcs,
2364
- incentives: bcs_1.bcs.vector(Incentive.bcs),
2365
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
2366
- });
2367
- },
2368
- enumerable: false,
2369
- configurable: true
2370
- });
2371
- StakePool.fromFields = function (fields) {
2372
- return StakePool.reified().new({
2373
- id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
2374
- poolInfo: (0, reified_1.decodeFromFields)(StakePoolInfo.reified(), fields.pool_info),
2375
- config: (0, reified_1.decodeFromFields)(StakePoolConfig.reified(), fields.config),
2376
- incentives: (0, reified_1.decodeFromFields)(reified.vector(Incentive.reified()), fields.incentives),
2377
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
2378
- });
2379
- };
2380
- StakePool.fromFieldsWithTypes = function (item) {
2381
- if (!isStakePool(item.type)) {
2382
- throw new Error("not a StakePool type");
2383
- }
2384
- return StakePool.reified().new({
2385
- id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
2386
- poolInfo: (0, reified_1.decodeFromFieldsWithTypes)(StakePoolInfo.reified(), item.fields.pool_info),
2387
- config: (0, reified_1.decodeFromFieldsWithTypes)(StakePoolConfig.reified(), item.fields.config),
2388
- incentives: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(Incentive.reified()), item.fields.incentives),
2389
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
2390
- });
2391
- };
2392
- StakePool.fromBcs = function (data) {
2393
- return StakePool.fromFields(StakePool.bcs.parse(data));
2394
- };
2395
- StakePool.prototype.toJSONField = function () {
2396
- return {
2397
- id: this.id,
2398
- poolInfo: this.poolInfo.toJSONField(),
2399
- config: this.config.toJSONField(),
2400
- incentives: (0, reified_1.fieldToJSON)("vector<0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::Incentive>", this.incentives),
2401
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
2402
- };
2403
- };
2404
- StakePool.prototype.toJSON = function () {
2405
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
2406
- };
2407
- StakePool.fromJSONField = function (field) {
2408
- return StakePool.reified().new({
2409
- id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
2410
- poolInfo: (0, reified_1.decodeFromJSONField)(StakePoolInfo.reified(), field.poolInfo),
2411
- config: (0, reified_1.decodeFromJSONField)(StakePoolConfig.reified(), field.config),
2412
- incentives: (0, reified_1.decodeFromJSONField)(reified.vector(Incentive.reified()), field.incentives),
2413
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
2414
- });
2415
- };
2416
- StakePool.fromJSON = function (json) {
2417
- if (json.$typeName !== StakePool.$typeName) {
2418
- throw new Error("not a WithTwoGenerics json object");
2419
- }
2420
- return StakePool.fromJSONField(json);
2421
- };
2422
- StakePool.fromSuiParsedData = function (content) {
2423
- if (content.dataType !== "moveObject") {
2424
- throw new Error("not an object");
2425
- }
2426
- if (!isStakePool(content.type)) {
2427
- throw new Error("object at ".concat(content.fields.id, " is not a StakePool object"));
2428
- }
2429
- return StakePool.fromFieldsWithTypes(content);
2430
- };
2431
- StakePool.fetch = function (client, id) {
2432
- return __awaiter(this, void 0, void 0, function () {
2433
- var res;
2434
- var _a, _b;
2435
- return __generator(this, function (_c) {
2436
- switch (_c.label) {
2437
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2438
- case 1:
2439
- res = _c.sent();
2440
- if (res.error) {
2441
- throw new Error("error fetching StakePool object at id ".concat(id, ": ").concat(res.error.code));
2442
- }
2443
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStakePool(res.data.bcs.type)) {
2444
- throw new Error("object at id ".concat(id, " is not a StakePool object"));
2445
- }
2446
- return [2 /*return*/, StakePool.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2447
- }
2448
- });
2449
- });
2450
- };
2451
- StakePool.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakePool";
2452
- StakePool.$numTypeParams = 0;
2453
- return StakePool;
2454
- }());
2455
- exports.StakePool = StakePool;
2456
- /* ============================== StakePoolConfig =============================== */
2457
- function isStakePoolConfig(type) {
2458
- type = (0, util_1.compressSuiType)(type);
2459
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakePoolConfig";
2460
- }
2461
- var StakePoolConfig = /** @class */ (function () {
2462
- function StakePoolConfig(typeArgs, fields) {
2463
- this.$typeName = StakePoolConfig.$typeName;
2464
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StakePoolConfig.$typeName], __read(typeArgs), false));
2465
- this.$typeArgs = typeArgs;
2466
- this.unlockCountdownTsMs = fields.unlockCountdownTsMs;
2467
- this.u64Padding = fields.u64Padding;
2468
- }
2469
- StakePoolConfig.reified = function () {
2470
- var _this = this;
2471
- return {
2472
- typeName: StakePoolConfig.$typeName,
2473
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StakePoolConfig.$typeName], [], false)),
2474
- typeArgs: [],
2475
- reifiedTypeArgs: [],
2476
- fromFields: function (fields) { return StakePoolConfig.fromFields(fields); },
2477
- fromFieldsWithTypes: function (item) { return StakePoolConfig.fromFieldsWithTypes(item); },
2478
- fromBcs: function (data) { return StakePoolConfig.fromBcs(data); },
2479
- bcs: StakePoolConfig.bcs,
2480
- fromJSONField: function (field) { return StakePoolConfig.fromJSONField(field); },
2481
- fromJSON: function (json) { return StakePoolConfig.fromJSON(json); },
2482
- fromSuiParsedData: function (content) { return StakePoolConfig.fromSuiParsedData(content); },
2483
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2484
- return [2 /*return*/, StakePoolConfig.fetch(client, id)];
2485
- }); }); },
2486
- new: function (fields) {
2487
- return new StakePoolConfig([], fields);
2488
- },
2489
- kind: "StructClassReified",
2490
- };
2491
- };
2492
- Object.defineProperty(StakePoolConfig, "r", {
2493
- get: function () {
2494
- return StakePoolConfig.reified();
2495
- },
2496
- enumerable: false,
2497
- configurable: true
2498
- });
2499
- StakePoolConfig.phantom = function () {
2500
- return (0, reified_1.phantom)(StakePoolConfig.reified());
2501
- };
2502
- Object.defineProperty(StakePoolConfig, "p", {
2503
- get: function () {
2504
- return StakePoolConfig.phantom();
2505
- },
2506
- enumerable: false,
2507
- configurable: true
2508
- });
2509
- Object.defineProperty(StakePoolConfig, "bcs", {
2510
- get: function () {
2511
- return bcs_1.bcs.struct("StakePoolConfig", {
2512
- unlock_countdown_ts_ms: bcs_1.bcs.u64(),
2513
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
2514
- });
2515
- },
2516
- enumerable: false,
2517
- configurable: true
2518
- });
2519
- StakePoolConfig.fromFields = function (fields) {
2520
- return StakePoolConfig.reified().new({
2521
- unlockCountdownTsMs: (0, reified_1.decodeFromFields)("u64", fields.unlock_countdown_ts_ms),
2522
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
2523
- });
2524
- };
2525
- StakePoolConfig.fromFieldsWithTypes = function (item) {
2526
- if (!isStakePoolConfig(item.type)) {
2527
- throw new Error("not a StakePoolConfig type");
2528
- }
2529
- return StakePoolConfig.reified().new({
2530
- unlockCountdownTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unlock_countdown_ts_ms),
2531
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
2532
- });
2533
- };
2534
- StakePoolConfig.fromBcs = function (data) {
2535
- return StakePoolConfig.fromFields(StakePoolConfig.bcs.parse(data));
2536
- };
2537
- StakePoolConfig.prototype.toJSONField = function () {
2538
- return {
2539
- unlockCountdownTsMs: this.unlockCountdownTsMs.toString(),
2540
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
2541
- };
2542
- };
2543
- StakePoolConfig.prototype.toJSON = function () {
2544
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
2545
- };
2546
- StakePoolConfig.fromJSONField = function (field) {
2547
- return StakePoolConfig.reified().new({
2548
- unlockCountdownTsMs: (0, reified_1.decodeFromJSONField)("u64", field.unlockCountdownTsMs),
2549
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
2550
- });
2551
- };
2552
- StakePoolConfig.fromJSON = function (json) {
2553
- if (json.$typeName !== StakePoolConfig.$typeName) {
2554
- throw new Error("not a WithTwoGenerics json object");
2555
- }
2556
- return StakePoolConfig.fromJSONField(json);
2557
- };
2558
- StakePoolConfig.fromSuiParsedData = function (content) {
2559
- if (content.dataType !== "moveObject") {
2560
- throw new Error("not an object");
2561
- }
2562
- if (!isStakePoolConfig(content.type)) {
2563
- throw new Error("object at ".concat(content.fields.id, " is not a StakePoolConfig object"));
2564
- }
2565
- return StakePoolConfig.fromFieldsWithTypes(content);
2566
- };
2567
- StakePoolConfig.fetch = function (client, id) {
2568
- return __awaiter(this, void 0, void 0, function () {
2569
- var res;
2570
- var _a, _b;
2571
- return __generator(this, function (_c) {
2572
- switch (_c.label) {
2573
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2574
- case 1:
2575
- res = _c.sent();
2576
- if (res.error) {
2577
- throw new Error("error fetching StakePoolConfig object at id ".concat(id, ": ").concat(res.error.code));
2578
- }
2579
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStakePoolConfig(res.data.bcs.type)) {
2580
- throw new Error("object at id ".concat(id, " is not a StakePoolConfig object"));
2581
- }
2582
- return [2 /*return*/, StakePoolConfig.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2583
- }
2584
- });
2585
- });
2586
- };
2587
- StakePoolConfig.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakePoolConfig";
2588
- StakePoolConfig.$numTypeParams = 0;
2589
- return StakePoolConfig;
2590
- }());
2591
- exports.StakePoolConfig = StakePoolConfig;
2592
- /* ============================== StakePoolInfo =============================== */
2593
- function isStakePoolInfo(type) {
2594
- type = (0, util_1.compressSuiType)(type);
2595
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakePoolInfo";
2596
- }
2597
- var StakePoolInfo = /** @class */ (function () {
2598
- function StakePoolInfo(typeArgs, fields) {
2599
- this.$typeName = StakePoolInfo.$typeName;
2600
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StakePoolInfo.$typeName], __read(typeArgs), false));
2601
- this.$typeArgs = typeArgs;
2602
- this.stakeToken = fields.stakeToken;
2603
- this.index = fields.index;
2604
- this.nextUserShareId = fields.nextUserShareId;
2605
- this.totalShare = fields.totalShare;
2606
- this.active = fields.active;
2607
- this.u64Padding = fields.u64Padding;
2608
- }
2609
- StakePoolInfo.reified = function () {
2610
- var _this = this;
2611
- return {
2612
- typeName: StakePoolInfo.$typeName,
2613
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StakePoolInfo.$typeName], [], false)),
2614
- typeArgs: [],
2615
- reifiedTypeArgs: [],
2616
- fromFields: function (fields) { return StakePoolInfo.fromFields(fields); },
2617
- fromFieldsWithTypes: function (item) { return StakePoolInfo.fromFieldsWithTypes(item); },
2618
- fromBcs: function (data) { return StakePoolInfo.fromBcs(data); },
2619
- bcs: StakePoolInfo.bcs,
2620
- fromJSONField: function (field) { return StakePoolInfo.fromJSONField(field); },
2621
- fromJSON: function (json) { return StakePoolInfo.fromJSON(json); },
2622
- fromSuiParsedData: function (content) { return StakePoolInfo.fromSuiParsedData(content); },
2623
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2624
- return [2 /*return*/, StakePoolInfo.fetch(client, id)];
2625
- }); }); },
2626
- new: function (fields) {
2627
- return new StakePoolInfo([], fields);
2628
- },
2629
- kind: "StructClassReified",
2630
- };
2631
- };
2632
- Object.defineProperty(StakePoolInfo, "r", {
2633
- get: function () {
2634
- return StakePoolInfo.reified();
2635
- },
2636
- enumerable: false,
2637
- configurable: true
2638
- });
2639
- StakePoolInfo.phantom = function () {
2640
- return (0, reified_1.phantom)(StakePoolInfo.reified());
2641
- };
2642
- Object.defineProperty(StakePoolInfo, "p", {
2643
- get: function () {
2644
- return StakePoolInfo.phantom();
2645
- },
2646
- enumerable: false,
2647
- configurable: true
2648
- });
2649
- Object.defineProperty(StakePoolInfo, "bcs", {
2650
- get: function () {
2651
- return bcs_1.bcs.struct("StakePoolInfo", {
2652
- stake_token: structs_1.TypeName.bcs,
2653
- index: bcs_1.bcs.u64(),
2654
- next_user_share_id: bcs_1.bcs.u64(),
2655
- total_share: bcs_1.bcs.u64(),
2656
- active: bcs_1.bcs.bool(),
2657
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
2658
- });
2659
- },
2660
- enumerable: false,
2661
- configurable: true
2662
- });
2663
- StakePoolInfo.fromFields = function (fields) {
2664
- return StakePoolInfo.reified().new({
2665
- stakeToken: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.stake_token),
2666
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
2667
- nextUserShareId: (0, reified_1.decodeFromFields)("u64", fields.next_user_share_id),
2668
- totalShare: (0, reified_1.decodeFromFields)("u64", fields.total_share),
2669
- active: (0, reified_1.decodeFromFields)("bool", fields.active),
2670
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
2671
- });
2672
- };
2673
- StakePoolInfo.fromFieldsWithTypes = function (item) {
2674
- if (!isStakePoolInfo(item.type)) {
2675
- throw new Error("not a StakePoolInfo type");
2676
- }
2677
- return StakePoolInfo.reified().new({
2678
- stakeToken: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.stake_token),
2679
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
2680
- nextUserShareId: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.next_user_share_id),
2681
- totalShare: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.total_share),
2682
- active: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.active),
2683
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
2684
- });
2685
- };
2686
- StakePoolInfo.fromBcs = function (data) {
2687
- return StakePoolInfo.fromFields(StakePoolInfo.bcs.parse(data));
2688
- };
2689
- StakePoolInfo.prototype.toJSONField = function () {
2690
- return {
2691
- stakeToken: this.stakeToken.toJSONField(),
2692
- index: this.index.toString(),
2693
- nextUserShareId: this.nextUserShareId.toString(),
2694
- totalShare: this.totalShare.toString(),
2695
- active: this.active,
2696
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
2697
- };
2698
- };
2699
- StakePoolInfo.prototype.toJSON = function () {
2700
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
2701
- };
2702
- StakePoolInfo.fromJSONField = function (field) {
2703
- return StakePoolInfo.reified().new({
2704
- stakeToken: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.stakeToken),
2705
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
2706
- nextUserShareId: (0, reified_1.decodeFromJSONField)("u64", field.nextUserShareId),
2707
- totalShare: (0, reified_1.decodeFromJSONField)("u64", field.totalShare),
2708
- active: (0, reified_1.decodeFromJSONField)("bool", field.active),
2709
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
2710
- });
2711
- };
2712
- StakePoolInfo.fromJSON = function (json) {
2713
- if (json.$typeName !== StakePoolInfo.$typeName) {
2714
- throw new Error("not a WithTwoGenerics json object");
2715
- }
2716
- return StakePoolInfo.fromJSONField(json);
2717
- };
2718
- StakePoolInfo.fromSuiParsedData = function (content) {
2719
- if (content.dataType !== "moveObject") {
2720
- throw new Error("not an object");
2721
- }
2722
- if (!isStakePoolInfo(content.type)) {
2723
- throw new Error("object at ".concat(content.fields.id, " is not a StakePoolInfo object"));
2724
- }
2725
- return StakePoolInfo.fromFieldsWithTypes(content);
2726
- };
2727
- StakePoolInfo.fetch = function (client, id) {
2728
- return __awaiter(this, void 0, void 0, function () {
2729
- var res;
2730
- var _a, _b;
2731
- return __generator(this, function (_c) {
2732
- switch (_c.label) {
2733
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2734
- case 1:
2735
- res = _c.sent();
2736
- if (res.error) {
2737
- throw new Error("error fetching StakePoolInfo object at id ".concat(id, ": ").concat(res.error.code));
2738
- }
2739
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStakePoolInfo(res.data.bcs.type)) {
2740
- throw new Error("object at id ".concat(id, " is not a StakePoolInfo object"));
2741
- }
2742
- return [2 /*return*/, StakePoolInfo.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2743
- }
2744
- });
2745
- });
2746
- };
2747
- StakePoolInfo.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakePoolInfo";
2748
- StakePoolInfo.$numTypeParams = 0;
2749
- return StakePoolInfo;
2750
- }());
2751
- exports.StakePoolInfo = StakePoolInfo;
2752
- /* ============================== StakePoolRegistry =============================== */
2753
- function isStakePoolRegistry(type) {
2754
- type = (0, util_1.compressSuiType)(type);
2755
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakePoolRegistry";
2756
- }
2757
- var StakePoolRegistry = /** @class */ (function () {
2758
- function StakePoolRegistry(typeArgs, fields) {
2759
- this.$typeName = StakePoolRegistry.$typeName;
2760
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StakePoolRegistry.$typeName], __read(typeArgs), false));
2761
- this.$typeArgs = typeArgs;
2762
- this.id = fields.id;
2763
- this.numPool = fields.numPool;
2764
- }
2765
- StakePoolRegistry.reified = function () {
2766
- var _this = this;
2767
- return {
2768
- typeName: StakePoolRegistry.$typeName,
2769
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StakePoolRegistry.$typeName], [], false)),
2770
- typeArgs: [],
2771
- reifiedTypeArgs: [],
2772
- fromFields: function (fields) { return StakePoolRegistry.fromFields(fields); },
2773
- fromFieldsWithTypes: function (item) { return StakePoolRegistry.fromFieldsWithTypes(item); },
2774
- fromBcs: function (data) { return StakePoolRegistry.fromBcs(data); },
2775
- bcs: StakePoolRegistry.bcs,
2776
- fromJSONField: function (field) { return StakePoolRegistry.fromJSONField(field); },
2777
- fromJSON: function (json) { return StakePoolRegistry.fromJSON(json); },
2778
- fromSuiParsedData: function (content) { return StakePoolRegistry.fromSuiParsedData(content); },
2779
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2780
- return [2 /*return*/, StakePoolRegistry.fetch(client, id)];
2781
- }); }); },
2782
- new: function (fields) {
2783
- return new StakePoolRegistry([], fields);
2784
- },
2785
- kind: "StructClassReified",
2786
- };
2787
- };
2788
- Object.defineProperty(StakePoolRegistry, "r", {
2789
- get: function () {
2790
- return StakePoolRegistry.reified();
2791
- },
2792
- enumerable: false,
2793
- configurable: true
2794
- });
2795
- StakePoolRegistry.phantom = function () {
2796
- return (0, reified_1.phantom)(StakePoolRegistry.reified());
2797
- };
2798
- Object.defineProperty(StakePoolRegistry, "p", {
2799
- get: function () {
2800
- return StakePoolRegistry.phantom();
2801
- },
2802
- enumerable: false,
2803
- configurable: true
2804
- });
2805
- Object.defineProperty(StakePoolRegistry, "bcs", {
2806
- get: function () {
2807
- return bcs_1.bcs.struct("StakePoolRegistry", {
2808
- id: structs_2.UID.bcs,
2809
- num_pool: bcs_1.bcs.u64(),
2810
- });
2811
- },
2812
- enumerable: false,
2813
- configurable: true
2814
- });
2815
- StakePoolRegistry.fromFields = function (fields) {
2816
- return StakePoolRegistry.reified().new({
2817
- id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
2818
- numPool: (0, reified_1.decodeFromFields)("u64", fields.num_pool),
2819
- });
2820
- };
2821
- StakePoolRegistry.fromFieldsWithTypes = function (item) {
2822
- if (!isStakePoolRegistry(item.type)) {
2823
- throw new Error("not a StakePoolRegistry type");
2824
- }
2825
- return StakePoolRegistry.reified().new({
2826
- id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
2827
- numPool: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.num_pool),
2828
- });
2829
- };
2830
- StakePoolRegistry.fromBcs = function (data) {
2831
- return StakePoolRegistry.fromFields(StakePoolRegistry.bcs.parse(data));
2832
- };
2833
- StakePoolRegistry.prototype.toJSONField = function () {
2834
- return {
2835
- id: this.id,
2836
- numPool: this.numPool.toString(),
2837
- };
2838
- };
2839
- StakePoolRegistry.prototype.toJSON = function () {
2840
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
2841
- };
2842
- StakePoolRegistry.fromJSONField = function (field) {
2843
- return StakePoolRegistry.reified().new({
2844
- id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
2845
- numPool: (0, reified_1.decodeFromJSONField)("u64", field.numPool),
2846
- });
2847
- };
2848
- StakePoolRegistry.fromJSON = function (json) {
2849
- if (json.$typeName !== StakePoolRegistry.$typeName) {
2850
- throw new Error("not a WithTwoGenerics json object");
2851
- }
2852
- return StakePoolRegistry.fromJSONField(json);
2853
- };
2854
- StakePoolRegistry.fromSuiParsedData = function (content) {
2855
- if (content.dataType !== "moveObject") {
2856
- throw new Error("not an object");
2857
- }
2858
- if (!isStakePoolRegistry(content.type)) {
2859
- throw new Error("object at ".concat(content.fields.id, " is not a StakePoolRegistry object"));
2860
- }
2861
- return StakePoolRegistry.fromFieldsWithTypes(content);
2862
- };
2863
- StakePoolRegistry.fetch = function (client, id) {
2864
- return __awaiter(this, void 0, void 0, function () {
2865
- var res;
2866
- var _a, _b;
2867
- return __generator(this, function (_c) {
2868
- switch (_c.label) {
2869
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2870
- case 1:
2871
- res = _c.sent();
2872
- if (res.error) {
2873
- throw new Error("error fetching StakePoolRegistry object at id ".concat(id, ": ").concat(res.error.code));
2874
- }
2875
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStakePoolRegistry(res.data.bcs.type)) {
2876
- throw new Error("object at id ".concat(id, " is not a StakePoolRegistry object"));
2877
- }
2878
- return [2 /*return*/, StakePoolRegistry.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2879
- }
2880
- });
2881
- });
2882
- };
2883
- StakePoolRegistry.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakePoolRegistry";
2884
- StakePoolRegistry.$numTypeParams = 0;
2885
- return StakePoolRegistry;
2886
- }());
2887
- exports.StakePoolRegistry = StakePoolRegistry;
2888
- /* ============================== UnstakeEvent =============================== */
2889
- function isUnstakeEvent(type) {
2890
- type = (0, util_1.compressSuiType)(type);
2891
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::UnstakeEvent";
2892
- }
2893
- var UnstakeEvent = /** @class */ (function () {
2894
- function UnstakeEvent(typeArgs, fields) {
2895
- this.$typeName = UnstakeEvent.$typeName;
2896
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UnstakeEvent.$typeName], __read(typeArgs), false));
2897
- this.$typeArgs = typeArgs;
2898
- this.sender = fields.sender;
2899
- this.index = fields.index;
2900
- this.lpTokenType = fields.lpTokenType;
2901
- this.userShareId = fields.userShareId;
2902
- this.unstakeAmount = fields.unstakeAmount;
2903
- this.unstakeTsMs = fields.unstakeTsMs;
2904
- this.u64Padding = fields.u64Padding;
2905
- }
2906
- UnstakeEvent.reified = function () {
2907
- var _this = this;
2908
- return {
2909
- typeName: UnstakeEvent.$typeName,
2910
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UnstakeEvent.$typeName], [], false)),
2911
- typeArgs: [],
2912
- reifiedTypeArgs: [],
2913
- fromFields: function (fields) { return UnstakeEvent.fromFields(fields); },
2914
- fromFieldsWithTypes: function (item) { return UnstakeEvent.fromFieldsWithTypes(item); },
2915
- fromBcs: function (data) { return UnstakeEvent.fromBcs(data); },
2916
- bcs: UnstakeEvent.bcs,
2917
- fromJSONField: function (field) { return UnstakeEvent.fromJSONField(field); },
2918
- fromJSON: function (json) { return UnstakeEvent.fromJSON(json); },
2919
- fromSuiParsedData: function (content) { return UnstakeEvent.fromSuiParsedData(content); },
2920
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2921
- return [2 /*return*/, UnstakeEvent.fetch(client, id)];
2922
- }); }); },
2923
- new: function (fields) {
2924
- return new UnstakeEvent([], fields);
2925
- },
2926
- kind: "StructClassReified",
2927
- };
2928
- };
2929
- Object.defineProperty(UnstakeEvent, "r", {
2930
- get: function () {
2931
- return UnstakeEvent.reified();
2932
- },
2933
- enumerable: false,
2934
- configurable: true
2935
- });
2936
- UnstakeEvent.phantom = function () {
2937
- return (0, reified_1.phantom)(UnstakeEvent.reified());
2938
- };
2939
- Object.defineProperty(UnstakeEvent, "p", {
2940
- get: function () {
2941
- return UnstakeEvent.phantom();
2942
- },
2943
- enumerable: false,
2944
- configurable: true
2945
- });
2946
- Object.defineProperty(UnstakeEvent, "bcs", {
2947
- get: function () {
2948
- return bcs_1.bcs.struct("UnstakeEvent", {
2949
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
2950
- index: bcs_1.bcs.u64(),
2951
- lp_token_type: structs_1.TypeName.bcs,
2952
- user_share_id: bcs_1.bcs.u64(),
2953
- unstake_amount: bcs_1.bcs.u64(),
2954
- unstake_ts_ms: bcs_1.bcs.u64(),
2955
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
2956
- });
2957
- },
2958
- enumerable: false,
2959
- configurable: true
2960
- });
2961
- UnstakeEvent.fromFields = function (fields) {
2962
- return UnstakeEvent.reified().new({
2963
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
2964
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
2965
- lpTokenType: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.lp_token_type),
2966
- userShareId: (0, reified_1.decodeFromFields)("u64", fields.user_share_id),
2967
- unstakeAmount: (0, reified_1.decodeFromFields)("u64", fields.unstake_amount),
2968
- unstakeTsMs: (0, reified_1.decodeFromFields)("u64", fields.unstake_ts_ms),
2969
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
2970
- });
2971
- };
2972
- UnstakeEvent.fromFieldsWithTypes = function (item) {
2973
- if (!isUnstakeEvent(item.type)) {
2974
- throw new Error("not a UnstakeEvent type");
2975
- }
2976
- return UnstakeEvent.reified().new({
2977
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
2978
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
2979
- lpTokenType: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.lp_token_type),
2980
- userShareId: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.user_share_id),
2981
- unstakeAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unstake_amount),
2982
- unstakeTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unstake_ts_ms),
2983
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
2984
- });
2985
- };
2986
- UnstakeEvent.fromBcs = function (data) {
2987
- return UnstakeEvent.fromFields(UnstakeEvent.bcs.parse(data));
2988
- };
2989
- UnstakeEvent.prototype.toJSONField = function () {
2990
- return {
2991
- sender: this.sender,
2992
- index: this.index.toString(),
2993
- lpTokenType: this.lpTokenType.toJSONField(),
2994
- userShareId: this.userShareId.toString(),
2995
- unstakeAmount: this.unstakeAmount.toString(),
2996
- unstakeTsMs: this.unstakeTsMs.toString(),
2997
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
2998
- };
2999
- };
3000
- UnstakeEvent.prototype.toJSON = function () {
3001
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
3002
- };
3003
- UnstakeEvent.fromJSONField = function (field) {
3004
- return UnstakeEvent.reified().new({
3005
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
3006
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
3007
- lpTokenType: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.lpTokenType),
3008
- userShareId: (0, reified_1.decodeFromJSONField)("u64", field.userShareId),
3009
- unstakeAmount: (0, reified_1.decodeFromJSONField)("u64", field.unstakeAmount),
3010
- unstakeTsMs: (0, reified_1.decodeFromJSONField)("u64", field.unstakeTsMs),
3011
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
3012
- });
3013
- };
3014
- UnstakeEvent.fromJSON = function (json) {
3015
- if (json.$typeName !== UnstakeEvent.$typeName) {
3016
- throw new Error("not a WithTwoGenerics json object");
3017
- }
3018
- return UnstakeEvent.fromJSONField(json);
3019
- };
3020
- UnstakeEvent.fromSuiParsedData = function (content) {
3021
- if (content.dataType !== "moveObject") {
3022
- throw new Error("not an object");
3023
- }
3024
- if (!isUnstakeEvent(content.type)) {
3025
- throw new Error("object at ".concat(content.fields.id, " is not a UnstakeEvent object"));
3026
- }
3027
- return UnstakeEvent.fromFieldsWithTypes(content);
3028
- };
3029
- UnstakeEvent.fetch = function (client, id) {
3030
- return __awaiter(this, void 0, void 0, function () {
3031
- var res;
3032
- var _a, _b;
3033
- return __generator(this, function (_c) {
3034
- switch (_c.label) {
3035
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
3036
- case 1:
3037
- res = _c.sent();
3038
- if (res.error) {
3039
- throw new Error("error fetching UnstakeEvent object at id ".concat(id, ": ").concat(res.error.code));
3040
- }
3041
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUnstakeEvent(res.data.bcs.type)) {
3042
- throw new Error("object at id ".concat(id, " is not a UnstakeEvent object"));
3043
- }
3044
- return [2 /*return*/, UnstakeEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
3045
- }
3046
- });
3047
- });
3048
- };
3049
- UnstakeEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::UnstakeEvent";
3050
- UnstakeEvent.$numTypeParams = 0;
3051
- return UnstakeEvent;
3052
- }());
3053
- exports.UnstakeEvent = UnstakeEvent;
3054
- /* ============================== UpdateIncentiveConfigEvent =============================== */
3055
- function isUpdateIncentiveConfigEvent(type) {
3056
- type = (0, util_1.compressSuiType)(type);
3057
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::UpdateIncentiveConfigEvent";
3058
- }
3059
- var UpdateIncentiveConfigEvent = /** @class */ (function () {
3060
- function UpdateIncentiveConfigEvent(typeArgs, fields) {
3061
- this.$typeName = UpdateIncentiveConfigEvent.$typeName;
3062
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateIncentiveConfigEvent.$typeName], __read(typeArgs), false));
3063
- this.$typeArgs = typeArgs;
3064
- this.sender = fields.sender;
3065
- this.index = fields.index;
3066
- this.previousIncentiveConfig = fields.previousIncentiveConfig;
3067
- this.newIncentiveConfig = fields.newIncentiveConfig;
3068
- this.u64Padding = fields.u64Padding;
3069
- }
3070
- UpdateIncentiveConfigEvent.reified = function () {
3071
- var _this = this;
3072
- return {
3073
- typeName: UpdateIncentiveConfigEvent.$typeName,
3074
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateIncentiveConfigEvent.$typeName], [], false)),
3075
- typeArgs: [],
3076
- reifiedTypeArgs: [],
3077
- fromFields: function (fields) { return UpdateIncentiveConfigEvent.fromFields(fields); },
3078
- fromFieldsWithTypes: function (item) { return UpdateIncentiveConfigEvent.fromFieldsWithTypes(item); },
3079
- fromBcs: function (data) { return UpdateIncentiveConfigEvent.fromBcs(data); },
3080
- bcs: UpdateIncentiveConfigEvent.bcs,
3081
- fromJSONField: function (field) { return UpdateIncentiveConfigEvent.fromJSONField(field); },
3082
- fromJSON: function (json) { return UpdateIncentiveConfigEvent.fromJSON(json); },
3083
- fromSuiParsedData: function (content) { return UpdateIncentiveConfigEvent.fromSuiParsedData(content); },
3084
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
3085
- return [2 /*return*/, UpdateIncentiveConfigEvent.fetch(client, id)];
3086
- }); }); },
3087
- new: function (fields) {
3088
- return new UpdateIncentiveConfigEvent([], fields);
3089
- },
3090
- kind: "StructClassReified",
3091
- };
3092
- };
3093
- Object.defineProperty(UpdateIncentiveConfigEvent, "r", {
3094
- get: function () {
3095
- return UpdateIncentiveConfigEvent.reified();
3096
- },
3097
- enumerable: false,
3098
- configurable: true
3099
- });
3100
- UpdateIncentiveConfigEvent.phantom = function () {
3101
- return (0, reified_1.phantom)(UpdateIncentiveConfigEvent.reified());
3102
- };
3103
- Object.defineProperty(UpdateIncentiveConfigEvent, "p", {
3104
- get: function () {
3105
- return UpdateIncentiveConfigEvent.phantom();
3106
- },
3107
- enumerable: false,
3108
- configurable: true
3109
- });
3110
- Object.defineProperty(UpdateIncentiveConfigEvent, "bcs", {
3111
- get: function () {
3112
- return bcs_1.bcs.struct("UpdateIncentiveConfigEvent", {
3113
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
3114
- index: bcs_1.bcs.u64(),
3115
- previous_incentive_config: IncentiveConfig.bcs,
3116
- new_incentive_config: IncentiveConfig.bcs,
3117
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
3118
- });
3119
- },
3120
- enumerable: false,
3121
- configurable: true
3122
- });
3123
- UpdateIncentiveConfigEvent.fromFields = function (fields) {
3124
- return UpdateIncentiveConfigEvent.reified().new({
3125
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
3126
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
3127
- previousIncentiveConfig: (0, reified_1.decodeFromFields)(IncentiveConfig.reified(), fields.previous_incentive_config),
3128
- newIncentiveConfig: (0, reified_1.decodeFromFields)(IncentiveConfig.reified(), fields.new_incentive_config),
3129
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
3130
- });
3131
- };
3132
- UpdateIncentiveConfigEvent.fromFieldsWithTypes = function (item) {
3133
- if (!isUpdateIncentiveConfigEvent(item.type)) {
3134
- throw new Error("not a UpdateIncentiveConfigEvent type");
3135
- }
3136
- return UpdateIncentiveConfigEvent.reified().new({
3137
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
3138
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
3139
- previousIncentiveConfig: (0, reified_1.decodeFromFieldsWithTypes)(IncentiveConfig.reified(), item.fields.previous_incentive_config),
3140
- newIncentiveConfig: (0, reified_1.decodeFromFieldsWithTypes)(IncentiveConfig.reified(), item.fields.new_incentive_config),
3141
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
3142
- });
3143
- };
3144
- UpdateIncentiveConfigEvent.fromBcs = function (data) {
3145
- return UpdateIncentiveConfigEvent.fromFields(UpdateIncentiveConfigEvent.bcs.parse(data));
3146
- };
3147
- UpdateIncentiveConfigEvent.prototype.toJSONField = function () {
3148
- return {
3149
- sender: this.sender,
3150
- index: this.index.toString(),
3151
- previousIncentiveConfig: this.previousIncentiveConfig.toJSONField(),
3152
- newIncentiveConfig: this.newIncentiveConfig.toJSONField(),
3153
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
3154
- };
3155
- };
3156
- UpdateIncentiveConfigEvent.prototype.toJSON = function () {
3157
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
3158
- };
3159
- UpdateIncentiveConfigEvent.fromJSONField = function (field) {
3160
- return UpdateIncentiveConfigEvent.reified().new({
3161
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
3162
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
3163
- previousIncentiveConfig: (0, reified_1.decodeFromJSONField)(IncentiveConfig.reified(), field.previousIncentiveConfig),
3164
- newIncentiveConfig: (0, reified_1.decodeFromJSONField)(IncentiveConfig.reified(), field.newIncentiveConfig),
3165
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
3166
- });
3167
- };
3168
- UpdateIncentiveConfigEvent.fromJSON = function (json) {
3169
- if (json.$typeName !== UpdateIncentiveConfigEvent.$typeName) {
3170
- throw new Error("not a WithTwoGenerics json object");
3171
- }
3172
- return UpdateIncentiveConfigEvent.fromJSONField(json);
3173
- };
3174
- UpdateIncentiveConfigEvent.fromSuiParsedData = function (content) {
3175
- if (content.dataType !== "moveObject") {
3176
- throw new Error("not an object");
3177
- }
3178
- if (!isUpdateIncentiveConfigEvent(content.type)) {
3179
- throw new Error("object at ".concat(content.fields.id, " is not a UpdateIncentiveConfigEvent object"));
3180
- }
3181
- return UpdateIncentiveConfigEvent.fromFieldsWithTypes(content);
3182
- };
3183
- UpdateIncentiveConfigEvent.fetch = function (client, id) {
3184
- return __awaiter(this, void 0, void 0, function () {
3185
- var res;
3186
- var _a, _b;
3187
- return __generator(this, function (_c) {
3188
- switch (_c.label) {
3189
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
3190
- case 1:
3191
- res = _c.sent();
3192
- if (res.error) {
3193
- throw new Error("error fetching UpdateIncentiveConfigEvent object at id ".concat(id, ": ").concat(res.error.code));
3194
- }
3195
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateIncentiveConfigEvent(res.data.bcs.type)) {
3196
- throw new Error("object at id ".concat(id, " is not a UpdateIncentiveConfigEvent object"));
3197
- }
3198
- return [2 /*return*/, UpdateIncentiveConfigEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
3199
- }
3200
- });
3201
- });
3202
- };
3203
- UpdateIncentiveConfigEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::UpdateIncentiveConfigEvent";
3204
- UpdateIncentiveConfigEvent.$numTypeParams = 0;
3205
- return UpdateIncentiveConfigEvent;
3206
- }());
3207
- exports.UpdateIncentiveConfigEvent = UpdateIncentiveConfigEvent;
3208
- /* ============================== UpdateUnlockCountdownTsMsEvent =============================== */
3209
- function isUpdateUnlockCountdownTsMsEvent(type) {
3210
- type = (0, util_1.compressSuiType)(type);
3211
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::UpdateUnlockCountdownTsMsEvent";
3212
- }
3213
- var UpdateUnlockCountdownTsMsEvent = /** @class */ (function () {
3214
- function UpdateUnlockCountdownTsMsEvent(typeArgs, fields) {
3215
- this.$typeName = UpdateUnlockCountdownTsMsEvent.$typeName;
3216
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateUnlockCountdownTsMsEvent.$typeName], __read(typeArgs), false));
3217
- this.$typeArgs = typeArgs;
3218
- this.sender = fields.sender;
3219
- this.index = fields.index;
3220
- this.previousUnlockCountdownTsMs = fields.previousUnlockCountdownTsMs;
3221
- this.newUnlockCountdownTsMs = fields.newUnlockCountdownTsMs;
3222
- this.u64Padding = fields.u64Padding;
3223
- }
3224
- UpdateUnlockCountdownTsMsEvent.reified = function () {
3225
- var _this = this;
3226
- return {
3227
- typeName: UpdateUnlockCountdownTsMsEvent.$typeName,
3228
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateUnlockCountdownTsMsEvent.$typeName], [], false)),
3229
- typeArgs: [],
3230
- reifiedTypeArgs: [],
3231
- fromFields: function (fields) { return UpdateUnlockCountdownTsMsEvent.fromFields(fields); },
3232
- fromFieldsWithTypes: function (item) { return UpdateUnlockCountdownTsMsEvent.fromFieldsWithTypes(item); },
3233
- fromBcs: function (data) { return UpdateUnlockCountdownTsMsEvent.fromBcs(data); },
3234
- bcs: UpdateUnlockCountdownTsMsEvent.bcs,
3235
- fromJSONField: function (field) { return UpdateUnlockCountdownTsMsEvent.fromJSONField(field); },
3236
- fromJSON: function (json) { return UpdateUnlockCountdownTsMsEvent.fromJSON(json); },
3237
- fromSuiParsedData: function (content) { return UpdateUnlockCountdownTsMsEvent.fromSuiParsedData(content); },
3238
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
3239
- return [2 /*return*/, UpdateUnlockCountdownTsMsEvent.fetch(client, id)];
3240
- }); }); },
3241
- new: function (fields) {
3242
- return new UpdateUnlockCountdownTsMsEvent([], fields);
3243
- },
3244
- kind: "StructClassReified",
3245
- };
3246
- };
3247
- Object.defineProperty(UpdateUnlockCountdownTsMsEvent, "r", {
3248
- get: function () {
3249
- return UpdateUnlockCountdownTsMsEvent.reified();
3250
- },
3251
- enumerable: false,
3252
- configurable: true
3253
- });
3254
- UpdateUnlockCountdownTsMsEvent.phantom = function () {
3255
- return (0, reified_1.phantom)(UpdateUnlockCountdownTsMsEvent.reified());
3256
- };
3257
- Object.defineProperty(UpdateUnlockCountdownTsMsEvent, "p", {
3258
- get: function () {
3259
- return UpdateUnlockCountdownTsMsEvent.phantom();
3260
- },
3261
- enumerable: false,
3262
- configurable: true
3263
- });
3264
- Object.defineProperty(UpdateUnlockCountdownTsMsEvent, "bcs", {
3265
- get: function () {
3266
- return bcs_1.bcs.struct("UpdateUnlockCountdownTsMsEvent", {
3267
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
3268
- index: bcs_1.bcs.u64(),
3269
- previous_unlock_countdown_ts_ms: bcs_1.bcs.u64(),
3270
- new_unlock_countdown_ts_ms: bcs_1.bcs.u64(),
3271
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
3272
- });
3273
- },
3274
- enumerable: false,
3275
- configurable: true
3276
- });
3277
- UpdateUnlockCountdownTsMsEvent.fromFields = function (fields) {
3278
- return UpdateUnlockCountdownTsMsEvent.reified().new({
3279
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
3280
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
3281
- previousUnlockCountdownTsMs: (0, reified_1.decodeFromFields)("u64", fields.previous_unlock_countdown_ts_ms),
3282
- newUnlockCountdownTsMs: (0, reified_1.decodeFromFields)("u64", fields.new_unlock_countdown_ts_ms),
3283
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
3284
- });
3285
- };
3286
- UpdateUnlockCountdownTsMsEvent.fromFieldsWithTypes = function (item) {
3287
- if (!isUpdateUnlockCountdownTsMsEvent(item.type)) {
3288
- throw new Error("not a UpdateUnlockCountdownTsMsEvent type");
3289
- }
3290
- return UpdateUnlockCountdownTsMsEvent.reified().new({
3291
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
3292
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
3293
- previousUnlockCountdownTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.previous_unlock_countdown_ts_ms),
3294
- newUnlockCountdownTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.new_unlock_countdown_ts_ms),
3295
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
3296
- });
3297
- };
3298
- UpdateUnlockCountdownTsMsEvent.fromBcs = function (data) {
3299
- return UpdateUnlockCountdownTsMsEvent.fromFields(UpdateUnlockCountdownTsMsEvent.bcs.parse(data));
3300
- };
3301
- UpdateUnlockCountdownTsMsEvent.prototype.toJSONField = function () {
3302
- return {
3303
- sender: this.sender,
3304
- index: this.index.toString(),
3305
- previousUnlockCountdownTsMs: this.previousUnlockCountdownTsMs.toString(),
3306
- newUnlockCountdownTsMs: this.newUnlockCountdownTsMs.toString(),
3307
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
3308
- };
3309
- };
3310
- UpdateUnlockCountdownTsMsEvent.prototype.toJSON = function () {
3311
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
3312
- };
3313
- UpdateUnlockCountdownTsMsEvent.fromJSONField = function (field) {
3314
- return UpdateUnlockCountdownTsMsEvent.reified().new({
3315
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
3316
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
3317
- previousUnlockCountdownTsMs: (0, reified_1.decodeFromJSONField)("u64", field.previousUnlockCountdownTsMs),
3318
- newUnlockCountdownTsMs: (0, reified_1.decodeFromJSONField)("u64", field.newUnlockCountdownTsMs),
3319
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
3320
- });
3321
- };
3322
- UpdateUnlockCountdownTsMsEvent.fromJSON = function (json) {
3323
- if (json.$typeName !== UpdateUnlockCountdownTsMsEvent.$typeName) {
3324
- throw new Error("not a WithTwoGenerics json object");
3325
- }
3326
- return UpdateUnlockCountdownTsMsEvent.fromJSONField(json);
3327
- };
3328
- UpdateUnlockCountdownTsMsEvent.fromSuiParsedData = function (content) {
3329
- if (content.dataType !== "moveObject") {
3330
- throw new Error("not an object");
3331
- }
3332
- if (!isUpdateUnlockCountdownTsMsEvent(content.type)) {
3333
- throw new Error("object at ".concat(content.fields.id, " is not a UpdateUnlockCountdownTsMsEvent object"));
3334
- }
3335
- return UpdateUnlockCountdownTsMsEvent.fromFieldsWithTypes(content);
3336
- };
3337
- UpdateUnlockCountdownTsMsEvent.fetch = function (client, id) {
3338
- return __awaiter(this, void 0, void 0, function () {
3339
- var res;
3340
- var _a, _b;
3341
- return __generator(this, function (_c) {
3342
- switch (_c.label) {
3343
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
3344
- case 1:
3345
- res = _c.sent();
3346
- if (res.error) {
3347
- throw new Error("error fetching UpdateUnlockCountdownTsMsEvent object at id ".concat(id, ": ").concat(res.error.code));
3348
- }
3349
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateUnlockCountdownTsMsEvent(res.data.bcs.type)) {
3350
- throw new Error("object at id ".concat(id, " is not a UpdateUnlockCountdownTsMsEvent object"));
3351
- }
3352
- return [2 /*return*/, UpdateUnlockCountdownTsMsEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
3353
- }
3354
- });
3355
- });
3356
- };
3357
- UpdateUnlockCountdownTsMsEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::UpdateUnlockCountdownTsMsEvent";
3358
- UpdateUnlockCountdownTsMsEvent.$numTypeParams = 0;
3359
- return UpdateUnlockCountdownTsMsEvent;
3360
- }());
3361
- exports.UpdateUnlockCountdownTsMsEvent = UpdateUnlockCountdownTsMsEvent;
3362
- /* ============================== WithdrawIncentiveEvent =============================== */
3363
- function isWithdrawIncentiveEvent(type) {
3364
- type = (0, util_1.compressSuiType)(type);
3365
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::WithdrawIncentiveEvent";
3366
- }
3367
- var WithdrawIncentiveEvent = /** @class */ (function () {
3368
- function WithdrawIncentiveEvent(typeArgs, fields) {
3369
- this.$typeName = WithdrawIncentiveEvent.$typeName;
3370
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawIncentiveEvent.$typeName], __read(typeArgs), false));
3371
- this.$typeArgs = typeArgs;
3372
- this.sender = fields.sender;
3373
- this.index = fields.index;
3374
- this.incentiveTokenType = fields.incentiveTokenType;
3375
- this.withdrawalAmount = fields.withdrawalAmount;
3376
- this.u64Padding = fields.u64Padding;
3377
- }
3378
- WithdrawIncentiveEvent.reified = function () {
3379
- var _this = this;
3380
- return {
3381
- typeName: WithdrawIncentiveEvent.$typeName,
3382
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawIncentiveEvent.$typeName], [], false)),
3383
- typeArgs: [],
3384
- reifiedTypeArgs: [],
3385
- fromFields: function (fields) { return WithdrawIncentiveEvent.fromFields(fields); },
3386
- fromFieldsWithTypes: function (item) { return WithdrawIncentiveEvent.fromFieldsWithTypes(item); },
3387
- fromBcs: function (data) { return WithdrawIncentiveEvent.fromBcs(data); },
3388
- bcs: WithdrawIncentiveEvent.bcs,
3389
- fromJSONField: function (field) { return WithdrawIncentiveEvent.fromJSONField(field); },
3390
- fromJSON: function (json) { return WithdrawIncentiveEvent.fromJSON(json); },
3391
- fromSuiParsedData: function (content) { return WithdrawIncentiveEvent.fromSuiParsedData(content); },
3392
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
3393
- return [2 /*return*/, WithdrawIncentiveEvent.fetch(client, id)];
3394
- }); }); },
3395
- new: function (fields) {
3396
- return new WithdrawIncentiveEvent([], fields);
3397
- },
3398
- kind: "StructClassReified",
3399
- };
3400
- };
3401
- Object.defineProperty(WithdrawIncentiveEvent, "r", {
3402
- get: function () {
3403
- return WithdrawIncentiveEvent.reified();
3404
- },
3405
- enumerable: false,
3406
- configurable: true
3407
- });
3408
- WithdrawIncentiveEvent.phantom = function () {
3409
- return (0, reified_1.phantom)(WithdrawIncentiveEvent.reified());
3410
- };
3411
- Object.defineProperty(WithdrawIncentiveEvent, "p", {
3412
- get: function () {
3413
- return WithdrawIncentiveEvent.phantom();
3414
- },
3415
- enumerable: false,
3416
- configurable: true
3417
- });
3418
- Object.defineProperty(WithdrawIncentiveEvent, "bcs", {
3419
- get: function () {
3420
- return bcs_1.bcs.struct("WithdrawIncentiveEvent", {
3421
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
3422
- index: bcs_1.bcs.u64(),
3423
- incentive_token_type: structs_1.TypeName.bcs,
3424
- withdrawal_amount: bcs_1.bcs.u64(),
3425
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
3426
- });
3427
- },
3428
- enumerable: false,
3429
- configurable: true
3430
- });
3431
- WithdrawIncentiveEvent.fromFields = function (fields) {
3432
- return WithdrawIncentiveEvent.reified().new({
3433
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
3434
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
3435
- incentiveTokenType: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.incentive_token_type),
3436
- withdrawalAmount: (0, reified_1.decodeFromFields)("u64", fields.withdrawal_amount),
3437
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
3438
- });
3439
- };
3440
- WithdrawIncentiveEvent.fromFieldsWithTypes = function (item) {
3441
- if (!isWithdrawIncentiveEvent(item.type)) {
3442
- throw new Error("not a WithdrawIncentiveEvent type");
3443
- }
3444
- return WithdrawIncentiveEvent.reified().new({
3445
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
3446
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
3447
- incentiveTokenType: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.incentive_token_type),
3448
- withdrawalAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.withdrawal_amount),
3449
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
3450
- });
3451
- };
3452
- WithdrawIncentiveEvent.fromBcs = function (data) {
3453
- return WithdrawIncentiveEvent.fromFields(WithdrawIncentiveEvent.bcs.parse(data));
3454
- };
3455
- WithdrawIncentiveEvent.prototype.toJSONField = function () {
3456
- return {
3457
- sender: this.sender,
3458
- index: this.index.toString(),
3459
- incentiveTokenType: this.incentiveTokenType.toJSONField(),
3460
- withdrawalAmount: this.withdrawalAmount.toString(),
3461
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
3462
- };
3463
- };
3464
- WithdrawIncentiveEvent.prototype.toJSON = function () {
3465
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
3466
- };
3467
- WithdrawIncentiveEvent.fromJSONField = function (field) {
3468
- return WithdrawIncentiveEvent.reified().new({
3469
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
3470
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
3471
- incentiveTokenType: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.incentiveTokenType),
3472
- withdrawalAmount: (0, reified_1.decodeFromJSONField)("u64", field.withdrawalAmount),
3473
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
3474
- });
3475
- };
3476
- WithdrawIncentiveEvent.fromJSON = function (json) {
3477
- if (json.$typeName !== WithdrawIncentiveEvent.$typeName) {
3478
- throw new Error("not a WithTwoGenerics json object");
3479
- }
3480
- return WithdrawIncentiveEvent.fromJSONField(json);
3481
- };
3482
- WithdrawIncentiveEvent.fromSuiParsedData = function (content) {
3483
- if (content.dataType !== "moveObject") {
3484
- throw new Error("not an object");
3485
- }
3486
- if (!isWithdrawIncentiveEvent(content.type)) {
3487
- throw new Error("object at ".concat(content.fields.id, " is not a WithdrawIncentiveEvent object"));
3488
- }
3489
- return WithdrawIncentiveEvent.fromFieldsWithTypes(content);
3490
- };
3491
- WithdrawIncentiveEvent.fetch = function (client, id) {
3492
- return __awaiter(this, void 0, void 0, function () {
3493
- var res;
3494
- var _a, _b;
3495
- return __generator(this, function (_c) {
3496
- switch (_c.label) {
3497
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
3498
- case 1:
3499
- res = _c.sent();
3500
- if (res.error) {
3501
- throw new Error("error fetching WithdrawIncentiveEvent object at id ".concat(id, ": ").concat(res.error.code));
3502
- }
3503
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isWithdrawIncentiveEvent(res.data.bcs.type)) {
3504
- throw new Error("object at id ".concat(id, " is not a WithdrawIncentiveEvent object"));
3505
- }
3506
- return [2 /*return*/, WithdrawIncentiveEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
3507
- }
3508
- });
3509
- });
3510
- };
3511
- WithdrawIncentiveEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::WithdrawIncentiveEvent";
3512
- WithdrawIncentiveEvent.$numTypeParams = 0;
3513
- return WithdrawIncentiveEvent;
3514
- }());
3515
- exports.WithdrawIncentiveEvent = WithdrawIncentiveEvent;