@typus/typus-perp-sdk 1.0.0 → 1.0.3

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 (335) hide show
  1. package/dist/src/_framework/init-loader.js +4 -32
  2. package/dist/src/fetch.d.ts +10 -4
  3. package/dist/src/fetch.js +122 -110
  4. package/dist/src/index.d.ts +0 -2
  5. package/dist/src/index.js +0 -2
  6. package/dist/src/typus_perp/admin/structs.d.ts +66 -4
  7. package/dist/src/typus_perp/admin/structs.js +155 -1
  8. package/dist/src/typus_perp/error/functions.d.ts +4 -0
  9. package/dist/src/typus_perp/error/functions.js +16 -0
  10. package/dist/src/typus_perp/escrow/structs.d.ts +1 -1
  11. package/dist/src/typus_perp/index.js +4 -4
  12. package/dist/src/typus_perp/init.js +2 -2
  13. package/dist/src/typus_perp/lp-pool/structs.d.ts +26 -26
  14. package/dist/src/typus_perp/oracle/structs.d.ts +2 -2
  15. package/dist/src/typus_perp/position/functions.d.ts +3 -0
  16. package/dist/src/typus_perp/position/functions.js +7 -1
  17. package/dist/src/typus_perp/position/structs.d.ts +42 -164
  18. package/dist/src/typus_perp/position/structs.js +31 -209
  19. package/dist/src/typus_perp/symbol/structs.d.ts +1 -1
  20. package/dist/src/typus_perp/tlp/structs.d.ts +2 -2
  21. package/dist/src/typus_perp/trading/structs.d.ts +179 -139
  22. package/dist/src/typus_perp/trading/structs.js +227 -173
  23. package/dist/src/typus_perp/treasury-caps/structs.d.ts +1 -1
  24. package/dist/src/typus_stake_pool/admin/structs.d.ts +4 -4
  25. package/dist/src/typus_stake_pool/index.js +4 -4
  26. package/dist/src/typus_stake_pool/init.js +2 -2
  27. package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +16 -16
  28. package/dist/src/typus_stake_pool/stake-pool/functions.js +28 -28
  29. package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +202 -202
  30. package/dist/src/typus_stake_pool/stake-pool/structs.js +404 -404
  31. package/dist/src/user/history.js +98 -18
  32. package/dist/src/user/order.js +6 -0
  33. package/dist/src/user/orderWithBidReceipt.d.ts +2 -4
  34. package/dist/src/user/orderWithBidReceipt.js +3 -14
  35. package/package.json +2 -1
  36. package/dist/src/_dependencies/source/0x1/bit-vector/structs.d.ts +0 -56
  37. package/dist/src/_dependencies/source/0x1/bit-vector/structs.js +0 -268
  38. package/dist/src/_dependencies/source/0x1/fixed-point32/structs.d.ts +0 -46
  39. package/dist/src/_dependencies/source/0x1/fixed-point32/structs.js +0 -222
  40. package/dist/src/_dependencies/source/0x1/init.d.ts +0 -2
  41. package/dist/src/_dependencies/source/0x1/init.js +0 -55
  42. package/dist/src/_dependencies/source/0x1/uq32-32/structs.d.ts +0 -46
  43. package/dist/src/_dependencies/source/0x1/uq32-32/structs.js +0 -222
  44. package/dist/src/_dependencies/source/0x1/uq64-64/structs.d.ts +0 -46
  45. package/dist/src/_dependencies/source/0x1/uq64-64/structs.js +0 -222
  46. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +0 -5
  47. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +0 -8
  48. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +0 -2
  49. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +0 -50
  50. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +0 -350
  51. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +0 -794
  52. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +0 -111
  53. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +0 -389
  54. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +0 -70
  55. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +0 -252
  56. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +0 -70
  57. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +0 -252
  58. package/dist/src/_dependencies/source/0x2/authenticator-state/structs.d.ts +0 -464
  59. package/dist/src/_dependencies/source/0x2/authenticator-state/structs.js +0 -904
  60. package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +0 -61
  61. package/dist/src/_dependencies/source/0x2/bag/structs.js +0 -229
  62. package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +0 -88
  63. package/dist/src/_dependencies/source/0x2/balance/structs.js +0 -386
  64. package/dist/src/_dependencies/source/0x2/bcs/structs.d.ts +0 -50
  65. package/dist/src/_dependencies/source/0x2/bcs/structs.js +0 -256
  66. package/dist/src/_dependencies/source/0x2/bls12381/structs.d.ts +0 -214
  67. package/dist/src/_dependencies/source/0x2/bls12381/structs.js +0 -790
  68. package/dist/src/_dependencies/source/0x2/borrow/structs.d.ts +0 -113
  69. package/dist/src/_dependencies/source/0x2/borrow/structs.js +0 -398
  70. package/dist/src/_dependencies/source/0x2/clock/structs.d.ts +0 -61
  71. package/dist/src/_dependencies/source/0x2/clock/structs.js +0 -235
  72. package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +0 -460
  73. package/dist/src/_dependencies/source/0x2/coin/structs.js +0 -1247
  74. package/dist/src/_dependencies/source/0x2/config/structs.d.ts +0 -179
  75. package/dist/src/_dependencies/source/0x2/config/structs.js +0 -567
  76. package/dist/src/_dependencies/source/0x2/deny-list/structs.d.ts +0 -430
  77. package/dist/src/_dependencies/source/0x2/deny-list/structs.js +0 -1166
  78. package/dist/src/_dependencies/source/0x2/display/structs.d.ts +0 -241
  79. package/dist/src/_dependencies/source/0x2/display/structs.js +0 -578
  80. package/dist/src/_dependencies/source/0x2/dynamic-field/structs.d.ts +0 -68
  81. package/dist/src/_dependencies/source/0x2/dynamic-field/structs.js +0 -256
  82. package/dist/src/_dependencies/source/0x2/dynamic-object-field/structs.d.ts +0 -47
  83. package/dist/src/_dependencies/source/0x2/dynamic-object-field/structs.js +0 -236
  84. package/dist/src/_dependencies/source/0x2/groth16/structs.d.ts +0 -204
  85. package/dist/src/_dependencies/source/0x2/groth16/structs.js +0 -706
  86. package/dist/src/_dependencies/source/0x2/group-ops/structs.d.ts +0 -50
  87. package/dist/src/_dependencies/source/0x2/group-ops/structs.js +0 -267
  88. package/dist/src/_dependencies/source/0x2/init.d.ts +0 -2
  89. package/dist/src/_dependencies/source/0x2/init.js +0 -171
  90. package/dist/src/_dependencies/source/0x2/kiosk/structs.d.ts +0 -606
  91. package/dist/src/_dependencies/source/0x2/kiosk/structs.js +0 -1719
  92. package/dist/src/_dependencies/source/0x2/kiosk-extension/structs.d.ts +0 -121
  93. package/dist/src/_dependencies/source/0x2/kiosk-extension/structs.js +0 -394
  94. package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +0 -153
  95. package/dist/src/_dependencies/source/0x2/linked-table/structs.js +0 -438
  96. package/dist/src/_dependencies/source/0x2/object-bag/structs.d.ts +0 -61
  97. package/dist/src/_dependencies/source/0x2/object-bag/structs.js +0 -229
  98. package/dist/src/_dependencies/source/0x2/package/structs.d.ts +0 -280
  99. package/dist/src/_dependencies/source/0x2/package/structs.js +0 -762
  100. package/dist/src/_dependencies/source/0x2/priority-queue/structs.d.ts +0 -111
  101. package/dist/src/_dependencies/source/0x2/priority-queue/structs.js +0 -440
  102. package/dist/src/_dependencies/source/0x2/random/structs.d.ts +0 -204
  103. package/dist/src/_dependencies/source/0x2/random/structs.js +0 -596
  104. package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +0 -46
  105. package/dist/src/_dependencies/source/0x2/sui/structs.js +0 -222
  106. package/dist/src/_dependencies/source/0x2/table/structs.d.ts +0 -61
  107. package/dist/src/_dependencies/source/0x2/table/structs.js +0 -248
  108. package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +0 -68
  109. package/dist/src/_dependencies/source/0x2/table-vec/structs.js +0 -274
  110. package/dist/src/_dependencies/source/0x2/token/structs.d.ts +0 -449
  111. package/dist/src/_dependencies/source/0x2/token/structs.js +0 -1095
  112. package/dist/src/_dependencies/source/0x2/transfer/structs.d.ts +0 -57
  113. package/dist/src/_dependencies/source/0x2/transfer/structs.js +0 -246
  114. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -370
  115. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -1091
  116. package/dist/src/_dependencies/source/0x2/tx-context/structs.d.ts +0 -74
  117. package/dist/src/_dependencies/source/0x2/tx-context/structs.js +0 -286
  118. package/dist/src/_dependencies/source/0x2/url/structs.d.ts +0 -53
  119. package/dist/src/_dependencies/source/0x2/url/structs.js +0 -223
  120. package/dist/src/_dependencies/source/0x2/versioned/structs.d.ts +0 -113
  121. package/dist/src/_dependencies/source/0x2/versioned/structs.js +0 -389
  122. package/dist/src/_dependencies/source/0x2/zklogin-verified-id/structs.d.ts +0 -110
  123. package/dist/src/_dependencies/source/0x2/zklogin-verified-id/structs.js +0 -260
  124. package/dist/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.d.ts +0 -74
  125. package/dist/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.js +0 -242
  126. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +0 -3
  127. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +0 -6
  128. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +0 -2
  129. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +0 -40
  130. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +0 -55
  131. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +0 -223
  132. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +0 -4
  133. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +0 -7
  134. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +0 -2
  135. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +0 -43
  136. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +0 -46
  137. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +0 -222
  138. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +0 -121
  139. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +0 -395
  140. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +0 -489
  141. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +0 -1084
  142. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +0 -147
  143. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +0 -456
  144. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +0 -239
  145. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +0 -653
  146. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +0 -405
  147. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +0 -899
  148. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +0 -2
  149. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +0 -102
  150. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +0 -699
  151. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +0 -1459
  152. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +0 -147
  153. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +0 -430
  154. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.d.ts +0 -1071
  155. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.js +0 -2261
  156. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +0 -279
  157. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +0 -733
  158. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +0 -328
  159. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +0 -892
  160. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +0 -628
  161. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +0 -1324
  162. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +0 -9
  163. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +0 -12
  164. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +0 -2
  165. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +0 -72
  166. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +0 -94
  167. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.js +0 -376
  168. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +0 -454
  169. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +0 -881
  170. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +0 -68
  171. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +0 -274
  172. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +0 -1117
  173. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +0 -2387
  174. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +0 -1524
  175. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +0 -3008
  176. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +0 -10
  177. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +0 -13
  178. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +0 -2
  179. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +0 -145
  180. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +0 -1267
  181. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +0 -2820
  182. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +0 -1412
  183. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +0 -1646
  184. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +0 -425
  185. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +0 -1223
  186. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +0 -1156
  187. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +0 -1828
  188. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +0 -82
  189. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +0 -264
  190. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +0 -5022
  191. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +0 -7585
  192. package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +0 -3
  193. package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +0 -6
  194. package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +0 -2
  195. package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +0 -4
  196. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +0 -88
  197. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +0 -263
  198. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +0 -347
  199. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +0 -591
  200. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +0 -73
  201. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +0 -258
  202. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +0 -876
  203. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +0 -1721
  204. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +0 -46
  205. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +0 -222
  206. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +0 -2
  207. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +0 -89
  208. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +0 -155
  209. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +0 -444
  210. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +0 -745
  211. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +0 -1221
  212. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +0 -2
  213. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +0 -53
  214. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +0 -87
  215. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +0 -287
  216. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +0 -58
  217. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +0 -240
  218. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +0 -121
  219. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +0 -323
  220. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +0 -55
  221. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +0 -223
  222. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/batch-price-attestation/structs.d.ts +0 -289
  223. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/batch-price-attestation/structs.js +0 -453
  224. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/contract-upgrade/structs.d.ts +0 -114
  225. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/contract-upgrade/structs.js +0 -378
  226. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/data-source/structs.d.ts +0 -71
  227. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/data-source/structs.js +0 -235
  228. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/event/structs.d.ts +0 -209
  229. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/event/structs.js +0 -377
  230. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance/structs.d.ts +0 -73
  231. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance/structs.js +0 -275
  232. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-action/structs.d.ts +0 -46
  233. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-action/structs.js +0 -222
  234. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-instruction/structs.d.ts +0 -77
  235. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-instruction/structs.js +0 -281
  236. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/hot-potato-vector/structs.d.ts +0 -51
  237. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/hot-potato-vector/structs.js +0 -270
  238. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/i64/structs.d.ts +0 -52
  239. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/i64/structs.js +0 -234
  240. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.d.ts +0 -3
  241. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.js +0 -6
  242. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/init.d.ts +0 -2
  243. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/init.js +0 -95
  244. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/migrate/structs.d.ts +0 -51
  245. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/migrate/structs.js +0 -223
  246. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price/structs.d.ts +0 -89
  247. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price/structs.js +0 -247
  248. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-feed/structs.d.ts +0 -158
  249. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-feed/structs.js +0 -242
  250. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-identifier/structs.d.ts +0 -50
  251. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-identifier/structs.js +0 -256
  252. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-info/structs.d.ts +0 -360
  253. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-info/structs.js +0 -396
  254. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-status/structs.d.ts +0 -46
  255. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-status/structs.js +0 -222
  256. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set/structs.d.ts +0 -120
  257. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set/structs.js +0 -425
  258. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-data-sources/structs.d.ts +0 -81
  259. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-data-sources/structs.js +0 -257
  260. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-fee-recipient/structs.d.ts +0 -46
  261. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-fee-recipient/structs.js +0 -222
  262. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-governance-data-source/structs.d.ts +0 -77
  263. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-governance-data-source/structs.js +0 -241
  264. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-stale-price-threshold/structs.d.ts +0 -46
  265. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-stale-price-threshold/structs.js +0 -222
  266. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-update-fee/structs.d.ts +0 -52
  267. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-update-fee/structs.js +0 -234
  268. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/setup/structs.d.ts +0 -55
  269. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/setup/structs.js +0 -223
  270. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.d.ts +0 -282
  271. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.js +0 -560
  272. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.d.ts +0 -130
  273. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.js +0 -506
  274. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +0 -3
  275. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +0 -6
  276. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.d.ts +0 -2
  277. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +0 -46
  278. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +0 -88
  279. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +0 -364
  280. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +0 -94
  281. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.js +0 -376
  282. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +0 -46
  283. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +0 -233
  284. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes20/structs.d.ts +0 -50
  285. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes20/structs.js +0 -256
  286. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes32/structs.d.ts +0 -50
  287. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes32/structs.js +0 -256
  288. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed-vaas/structs.d.ts +0 -77
  289. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed-vaas/structs.js +0 -260
  290. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/cursor/structs.d.ts +0 -51
  291. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/cursor/structs.js +0 -270
  292. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.d.ts +0 -153
  293. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.js +0 -519
  294. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/external-address/structs.d.ts +0 -57
  295. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/external-address/structs.js +0 -223
  296. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/fee-collector/structs.d.ts +0 -63
  297. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/fee-collector/structs.js +0 -270
  298. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.d.ts +0 -168
  299. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.js +0 -470
  300. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian/structs.d.ts +0 -57
  301. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian/structs.js +0 -223
  302. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-set/structs.d.ts +0 -81
  303. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-set/structs.js +0 -275
  304. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-signature/structs.d.ts +0 -85
  305. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-signature/structs.js +0 -247
  306. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.d.ts +0 -3
  307. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.js +0 -6
  308. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/init.d.ts +0 -2
  309. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/init.js +0 -100
  310. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/migrate/structs.d.ts +0 -51
  311. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/migrate/structs.js +0 -223
  312. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.d.ts +0 -194
  313. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.js +0 -662
  314. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.d.ts +0 -151
  315. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.js +0 -459
  316. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set/structs.d.ts +0 -110
  317. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set/structs.js +0 -416
  318. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set-fee/structs.d.ts +0 -88
  319. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set-fee/structs.js +0 -364
  320. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/setup/structs.d.ts +0 -55
  321. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/setup/structs.js +0 -223
  322. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.d.ts +0 -278
  323. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.js +0 -459
  324. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/transfer-fee/structs.d.ts +0 -94
  325. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/transfer-fee/structs.js +0 -376
  326. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/update-guardian-set/structs.d.ts +0 -159
  327. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/update-guardian-set/structs.js +0 -553
  328. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.d.ts +0 -156
  329. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.js +0 -520
  330. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/vaa/structs.d.ts +0 -128
  331. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/vaa/structs.js +0 -312
  332. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/version-control/structs.d.ts +0 -88
  333. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/version-control/structs.js +0 -364
  334. package/dist/src/readVec.d.ts +0 -3
  335. package/dist/src/readVec.js +0 -118
@@ -105,7 +105,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
105
105
  return to.concat(ar || Array.prototype.slice.call(from));
106
106
  };
107
107
  Object.defineProperty(exports, "__esModule", { value: true });
108
- exports.WithdrawIncentiveEvent = exports.UpdateUnlockCountdownTsMsEvent = exports.UpdateIncentiveConfigEvent = exports.UnsubscribeEvent = 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 = void 0;
108
+ 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.WithdrawIncentiveEvent = exports.UnsubscribeEvent = void 0;
109
+ exports.isUnsubscribeEvent = isUnsubscribeEvent;
110
+ exports.isWithdrawIncentiveEvent = isWithdrawIncentiveEvent;
109
111
  exports.isActivateIncentiveTokenEvent = isActivateIncentiveTokenEvent;
110
112
  exports.isAddIncentiveTokenEvent = isAddIncentiveTokenEvent;
111
113
  exports.isDeactivateIncentiveTokenEvent = isDeactivateIncentiveTokenEvent;
@@ -124,10 +126,8 @@ exports.isStakePoolConfig = isStakePoolConfig;
124
126
  exports.isStakePoolInfo = isStakePoolInfo;
125
127
  exports.isStakePoolRegistry = isStakePoolRegistry;
126
128
  exports.isUnstakeEvent = isUnstakeEvent;
127
- exports.isUnsubscribeEvent = isUnsubscribeEvent;
128
129
  exports.isUpdateIncentiveConfigEvent = isUpdateIncentiveConfigEvent;
129
130
  exports.isUpdateUnlockCountdownTsMsEvent = isUpdateUnlockCountdownTsMsEvent;
130
- exports.isWithdrawIncentiveEvent = isWithdrawIncentiveEvent;
131
131
  var reified = __importStar(require("../../_framework/reified"));
132
132
  var structs_1 = require("../../_dependencies/source/0x1/type-name/structs");
133
133
  var structs_2 = require("../../_dependencies/source/0x2/object/structs");
@@ -137,6 +137,366 @@ var util_1 = require("../../_framework/util");
137
137
  var index_1 = require("../index");
138
138
  var bcs_1 = require("@mysten/sui/bcs");
139
139
  var utils_1 = require("@mysten/sui/utils");
140
+ /* ============================== UnsubscribeEvent =============================== */
141
+ function isUnsubscribeEvent(type) {
142
+ type = (0, util_1.compressSuiType)(type);
143
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::UnsubscribeEvent");
144
+ }
145
+ var UnsubscribeEvent = /** @class */ (function () {
146
+ function UnsubscribeEvent(typeArgs, fields) {
147
+ this.__StructClass = true;
148
+ this.$typeName = UnsubscribeEvent.$typeName;
149
+ this.$isPhantom = UnsubscribeEvent.$isPhantom;
150
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UnsubscribeEvent.$typeName], __read(typeArgs), false));
151
+ this.$typeArgs = typeArgs;
152
+ this.sender = fields.sender;
153
+ this.index = fields.index;
154
+ this.lpTokenType = fields.lpTokenType;
155
+ this.userShareId = fields.userShareId;
156
+ this.unsubscribedShares = fields.unsubscribedShares;
157
+ this.unsubscribeTsMs = fields.unsubscribeTsMs;
158
+ this.unlockedTsMs = fields.unlockedTsMs;
159
+ this.u64Padding = fields.u64Padding;
160
+ }
161
+ UnsubscribeEvent.reified = function () {
162
+ var _this = this;
163
+ return {
164
+ typeName: UnsubscribeEvent.$typeName,
165
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UnsubscribeEvent.$typeName], [], false)),
166
+ typeArgs: [],
167
+ isPhantom: UnsubscribeEvent.$isPhantom,
168
+ reifiedTypeArgs: [],
169
+ fromFields: function (fields) { return UnsubscribeEvent.fromFields(fields); },
170
+ fromFieldsWithTypes: function (item) { return UnsubscribeEvent.fromFieldsWithTypes(item); },
171
+ fromBcs: function (data) { return UnsubscribeEvent.fromBcs(data); },
172
+ bcs: UnsubscribeEvent.bcs,
173
+ fromJSONField: function (field) { return UnsubscribeEvent.fromJSONField(field); },
174
+ fromJSON: function (json) { return UnsubscribeEvent.fromJSON(json); },
175
+ fromSuiParsedData: function (content) { return UnsubscribeEvent.fromSuiParsedData(content); },
176
+ fromSuiObjectData: function (content) { return UnsubscribeEvent.fromSuiObjectData(content); },
177
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
178
+ return [2 /*return*/, UnsubscribeEvent.fetch(client, id)];
179
+ }); }); },
180
+ new: function (fields) {
181
+ return new UnsubscribeEvent([], fields);
182
+ },
183
+ kind: "StructClassReified",
184
+ };
185
+ };
186
+ Object.defineProperty(UnsubscribeEvent, "r", {
187
+ get: function () {
188
+ return UnsubscribeEvent.reified();
189
+ },
190
+ enumerable: false,
191
+ configurable: true
192
+ });
193
+ UnsubscribeEvent.phantom = function () {
194
+ return (0, reified_1.phantom)(UnsubscribeEvent.reified());
195
+ };
196
+ Object.defineProperty(UnsubscribeEvent, "p", {
197
+ get: function () {
198
+ return UnsubscribeEvent.phantom();
199
+ },
200
+ enumerable: false,
201
+ configurable: true
202
+ });
203
+ Object.defineProperty(UnsubscribeEvent, "bcs", {
204
+ get: function () {
205
+ return bcs_1.bcs.struct("UnsubscribeEvent", {
206
+ sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
207
+ index: bcs_1.bcs.u64(),
208
+ lp_token_type: structs_1.TypeName.bcs,
209
+ user_share_id: bcs_1.bcs.u64(),
210
+ unsubscribed_shares: bcs_1.bcs.u64(),
211
+ unsubscribe_ts_ms: bcs_1.bcs.u64(),
212
+ unlocked_ts_ms: bcs_1.bcs.u64(),
213
+ u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
214
+ });
215
+ },
216
+ enumerable: false,
217
+ configurable: true
218
+ });
219
+ UnsubscribeEvent.fromFields = function (fields) {
220
+ return UnsubscribeEvent.reified().new({
221
+ sender: (0, reified_1.decodeFromFields)("address", fields.sender),
222
+ index: (0, reified_1.decodeFromFields)("u64", fields.index),
223
+ lpTokenType: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.lp_token_type),
224
+ userShareId: (0, reified_1.decodeFromFields)("u64", fields.user_share_id),
225
+ unsubscribedShares: (0, reified_1.decodeFromFields)("u64", fields.unsubscribed_shares),
226
+ unsubscribeTsMs: (0, reified_1.decodeFromFields)("u64", fields.unsubscribe_ts_ms),
227
+ unlockedTsMs: (0, reified_1.decodeFromFields)("u64", fields.unlocked_ts_ms),
228
+ u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
229
+ });
230
+ };
231
+ UnsubscribeEvent.fromFieldsWithTypes = function (item) {
232
+ if (!isUnsubscribeEvent(item.type)) {
233
+ throw new Error("not a UnsubscribeEvent type");
234
+ }
235
+ return UnsubscribeEvent.reified().new({
236
+ sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
237
+ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
238
+ lpTokenType: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.lp_token_type),
239
+ userShareId: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.user_share_id),
240
+ unsubscribedShares: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unsubscribed_shares),
241
+ unsubscribeTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unsubscribe_ts_ms),
242
+ unlockedTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unlocked_ts_ms),
243
+ u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
244
+ });
245
+ };
246
+ UnsubscribeEvent.fromBcs = function (data) {
247
+ return UnsubscribeEvent.fromFields(UnsubscribeEvent.bcs.parse(data));
248
+ };
249
+ UnsubscribeEvent.prototype.toJSONField = function () {
250
+ return {
251
+ sender: this.sender,
252
+ index: this.index.toString(),
253
+ lpTokenType: this.lpTokenType.toJSONField(),
254
+ userShareId: this.userShareId.toString(),
255
+ unsubscribedShares: this.unsubscribedShares.toString(),
256
+ unsubscribeTsMs: this.unsubscribeTsMs.toString(),
257
+ unlockedTsMs: this.unlockedTsMs.toString(),
258
+ u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
259
+ };
260
+ };
261
+ UnsubscribeEvent.prototype.toJSON = function () {
262
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
263
+ };
264
+ UnsubscribeEvent.fromJSONField = function (field) {
265
+ return UnsubscribeEvent.reified().new({
266
+ sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
267
+ index: (0, reified_1.decodeFromJSONField)("u64", field.index),
268
+ lpTokenType: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.lpTokenType),
269
+ userShareId: (0, reified_1.decodeFromJSONField)("u64", field.userShareId),
270
+ unsubscribedShares: (0, reified_1.decodeFromJSONField)("u64", field.unsubscribedShares),
271
+ unsubscribeTsMs: (0, reified_1.decodeFromJSONField)("u64", field.unsubscribeTsMs),
272
+ unlockedTsMs: (0, reified_1.decodeFromJSONField)("u64", field.unlockedTsMs),
273
+ u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
274
+ });
275
+ };
276
+ UnsubscribeEvent.fromJSON = function (json) {
277
+ if (json.$typeName !== UnsubscribeEvent.$typeName) {
278
+ throw new Error("not a WithTwoGenerics json object");
279
+ }
280
+ return UnsubscribeEvent.fromJSONField(json);
281
+ };
282
+ UnsubscribeEvent.fromSuiParsedData = function (content) {
283
+ if (content.dataType !== "moveObject") {
284
+ throw new Error("not an object");
285
+ }
286
+ if (!isUnsubscribeEvent(content.type)) {
287
+ throw new Error("object at ".concat(content.fields.id, " is not a UnsubscribeEvent object"));
288
+ }
289
+ return UnsubscribeEvent.fromFieldsWithTypes(content);
290
+ };
291
+ UnsubscribeEvent.fromSuiObjectData = function (data) {
292
+ if (data.bcs) {
293
+ if (data.bcs.dataType !== "moveObject" || !isUnsubscribeEvent(data.bcs.type)) {
294
+ throw new Error("object at is not a UnsubscribeEvent object");
295
+ }
296
+ return UnsubscribeEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
297
+ }
298
+ if (data.content) {
299
+ return UnsubscribeEvent.fromSuiParsedData(data.content);
300
+ }
301
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
302
+ };
303
+ UnsubscribeEvent.fetch = function (client, id) {
304
+ return __awaiter(this, void 0, void 0, function () {
305
+ var res;
306
+ var _a, _b;
307
+ return __generator(this, function (_c) {
308
+ switch (_c.label) {
309
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
310
+ case 1:
311
+ res = _c.sent();
312
+ if (res.error) {
313
+ throw new Error("error fetching UnsubscribeEvent object at id ".concat(id, ": ").concat(res.error.code));
314
+ }
315
+ 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)) {
316
+ throw new Error("object at id ".concat(id, " is not a UnsubscribeEvent object"));
317
+ }
318
+ return [2 /*return*/, UnsubscribeEvent.fromSuiObjectData(res.data)];
319
+ }
320
+ });
321
+ });
322
+ };
323
+ UnsubscribeEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::UnsubscribeEvent");
324
+ UnsubscribeEvent.$numTypeParams = 0;
325
+ UnsubscribeEvent.$isPhantom = [];
326
+ return UnsubscribeEvent;
327
+ }());
328
+ exports.UnsubscribeEvent = UnsubscribeEvent;
329
+ /* ============================== WithdrawIncentiveEvent =============================== */
330
+ function isWithdrawIncentiveEvent(type) {
331
+ type = (0, util_1.compressSuiType)(type);
332
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::WithdrawIncentiveEvent");
333
+ }
334
+ var WithdrawIncentiveEvent = /** @class */ (function () {
335
+ function WithdrawIncentiveEvent(typeArgs, fields) {
336
+ this.__StructClass = true;
337
+ this.$typeName = WithdrawIncentiveEvent.$typeName;
338
+ this.$isPhantom = WithdrawIncentiveEvent.$isPhantom;
339
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawIncentiveEvent.$typeName], __read(typeArgs), false));
340
+ this.$typeArgs = typeArgs;
341
+ this.sender = fields.sender;
342
+ this.index = fields.index;
343
+ this.incentiveTokenType = fields.incentiveTokenType;
344
+ this.withdrawalAmount = fields.withdrawalAmount;
345
+ this.u64Padding = fields.u64Padding;
346
+ }
347
+ WithdrawIncentiveEvent.reified = function () {
348
+ var _this = this;
349
+ return {
350
+ typeName: WithdrawIncentiveEvent.$typeName,
351
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawIncentiveEvent.$typeName], [], false)),
352
+ typeArgs: [],
353
+ isPhantom: WithdrawIncentiveEvent.$isPhantom,
354
+ reifiedTypeArgs: [],
355
+ fromFields: function (fields) { return WithdrawIncentiveEvent.fromFields(fields); },
356
+ fromFieldsWithTypes: function (item) { return WithdrawIncentiveEvent.fromFieldsWithTypes(item); },
357
+ fromBcs: function (data) { return WithdrawIncentiveEvent.fromBcs(data); },
358
+ bcs: WithdrawIncentiveEvent.bcs,
359
+ fromJSONField: function (field) { return WithdrawIncentiveEvent.fromJSONField(field); },
360
+ fromJSON: function (json) { return WithdrawIncentiveEvent.fromJSON(json); },
361
+ fromSuiParsedData: function (content) { return WithdrawIncentiveEvent.fromSuiParsedData(content); },
362
+ fromSuiObjectData: function (content) { return WithdrawIncentiveEvent.fromSuiObjectData(content); },
363
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
364
+ return [2 /*return*/, WithdrawIncentiveEvent.fetch(client, id)];
365
+ }); }); },
366
+ new: function (fields) {
367
+ return new WithdrawIncentiveEvent([], fields);
368
+ },
369
+ kind: "StructClassReified",
370
+ };
371
+ };
372
+ Object.defineProperty(WithdrawIncentiveEvent, "r", {
373
+ get: function () {
374
+ return WithdrawIncentiveEvent.reified();
375
+ },
376
+ enumerable: false,
377
+ configurable: true
378
+ });
379
+ WithdrawIncentiveEvent.phantom = function () {
380
+ return (0, reified_1.phantom)(WithdrawIncentiveEvent.reified());
381
+ };
382
+ Object.defineProperty(WithdrawIncentiveEvent, "p", {
383
+ get: function () {
384
+ return WithdrawIncentiveEvent.phantom();
385
+ },
386
+ enumerable: false,
387
+ configurable: true
388
+ });
389
+ Object.defineProperty(WithdrawIncentiveEvent, "bcs", {
390
+ get: function () {
391
+ return bcs_1.bcs.struct("WithdrawIncentiveEvent", {
392
+ sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
393
+ index: bcs_1.bcs.u64(),
394
+ incentive_token_type: structs_1.TypeName.bcs,
395
+ withdrawal_amount: bcs_1.bcs.u64(),
396
+ u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
397
+ });
398
+ },
399
+ enumerable: false,
400
+ configurable: true
401
+ });
402
+ WithdrawIncentiveEvent.fromFields = function (fields) {
403
+ return WithdrawIncentiveEvent.reified().new({
404
+ sender: (0, reified_1.decodeFromFields)("address", fields.sender),
405
+ index: (0, reified_1.decodeFromFields)("u64", fields.index),
406
+ incentiveTokenType: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.incentive_token_type),
407
+ withdrawalAmount: (0, reified_1.decodeFromFields)("u64", fields.withdrawal_amount),
408
+ u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
409
+ });
410
+ };
411
+ WithdrawIncentiveEvent.fromFieldsWithTypes = function (item) {
412
+ if (!isWithdrawIncentiveEvent(item.type)) {
413
+ throw new Error("not a WithdrawIncentiveEvent type");
414
+ }
415
+ return WithdrawIncentiveEvent.reified().new({
416
+ sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
417
+ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
418
+ incentiveTokenType: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.incentive_token_type),
419
+ withdrawalAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.withdrawal_amount),
420
+ u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
421
+ });
422
+ };
423
+ WithdrawIncentiveEvent.fromBcs = function (data) {
424
+ return WithdrawIncentiveEvent.fromFields(WithdrawIncentiveEvent.bcs.parse(data));
425
+ };
426
+ WithdrawIncentiveEvent.prototype.toJSONField = function () {
427
+ return {
428
+ sender: this.sender,
429
+ index: this.index.toString(),
430
+ incentiveTokenType: this.incentiveTokenType.toJSONField(),
431
+ withdrawalAmount: this.withdrawalAmount.toString(),
432
+ u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
433
+ };
434
+ };
435
+ WithdrawIncentiveEvent.prototype.toJSON = function () {
436
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
437
+ };
438
+ WithdrawIncentiveEvent.fromJSONField = function (field) {
439
+ return WithdrawIncentiveEvent.reified().new({
440
+ sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
441
+ index: (0, reified_1.decodeFromJSONField)("u64", field.index),
442
+ incentiveTokenType: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.incentiveTokenType),
443
+ withdrawalAmount: (0, reified_1.decodeFromJSONField)("u64", field.withdrawalAmount),
444
+ u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
445
+ });
446
+ };
447
+ WithdrawIncentiveEvent.fromJSON = function (json) {
448
+ if (json.$typeName !== WithdrawIncentiveEvent.$typeName) {
449
+ throw new Error("not a WithTwoGenerics json object");
450
+ }
451
+ return WithdrawIncentiveEvent.fromJSONField(json);
452
+ };
453
+ WithdrawIncentiveEvent.fromSuiParsedData = function (content) {
454
+ if (content.dataType !== "moveObject") {
455
+ throw new Error("not an object");
456
+ }
457
+ if (!isWithdrawIncentiveEvent(content.type)) {
458
+ throw new Error("object at ".concat(content.fields.id, " is not a WithdrawIncentiveEvent object"));
459
+ }
460
+ return WithdrawIncentiveEvent.fromFieldsWithTypes(content);
461
+ };
462
+ WithdrawIncentiveEvent.fromSuiObjectData = function (data) {
463
+ if (data.bcs) {
464
+ if (data.bcs.dataType !== "moveObject" || !isWithdrawIncentiveEvent(data.bcs.type)) {
465
+ throw new Error("object at is not a WithdrawIncentiveEvent object");
466
+ }
467
+ return WithdrawIncentiveEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
468
+ }
469
+ if (data.content) {
470
+ return WithdrawIncentiveEvent.fromSuiParsedData(data.content);
471
+ }
472
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
473
+ };
474
+ WithdrawIncentiveEvent.fetch = function (client, id) {
475
+ return __awaiter(this, void 0, void 0, function () {
476
+ var res;
477
+ var _a, _b;
478
+ return __generator(this, function (_c) {
479
+ switch (_c.label) {
480
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
481
+ case 1:
482
+ res = _c.sent();
483
+ if (res.error) {
484
+ throw new Error("error fetching WithdrawIncentiveEvent object at id ".concat(id, ": ").concat(res.error.code));
485
+ }
486
+ 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)) {
487
+ throw new Error("object at id ".concat(id, " is not a WithdrawIncentiveEvent object"));
488
+ }
489
+ return [2 /*return*/, WithdrawIncentiveEvent.fromSuiObjectData(res.data)];
490
+ }
491
+ });
492
+ });
493
+ };
494
+ WithdrawIncentiveEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::WithdrawIncentiveEvent");
495
+ WithdrawIncentiveEvent.$numTypeParams = 0;
496
+ WithdrawIncentiveEvent.$isPhantom = [];
497
+ return WithdrawIncentiveEvent;
498
+ }());
499
+ exports.WithdrawIncentiveEvent = WithdrawIncentiveEvent;
140
500
  /* ============================== ActivateIncentiveTokenEvent =============================== */
141
501
  function isActivateIncentiveTokenEvent(type) {
142
502
  type = (0, util_1.compressSuiType)(type);
@@ -3098,275 +3458,86 @@ var UnstakeEvent = /** @class */ (function () {
3098
3458
  configurable: true
3099
3459
  });
3100
3460
  UnstakeEvent.fromFields = function (fields) {
3101
- return UnstakeEvent.reified().new({
3102
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
3103
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
3104
- lpTokenType: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.lp_token_type),
3105
- userShareId: (0, reified_1.decodeFromFields)("u64", fields.user_share_id),
3106
- unstakeAmount: (0, reified_1.decodeFromFields)("u64", fields.unstake_amount),
3107
- unstakeTsMs: (0, reified_1.decodeFromFields)("u64", fields.unstake_ts_ms),
3108
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
3109
- });
3110
- };
3111
- UnstakeEvent.fromFieldsWithTypes = function (item) {
3112
- if (!isUnstakeEvent(item.type)) {
3113
- throw new Error("not a UnstakeEvent type");
3114
- }
3115
- return UnstakeEvent.reified().new({
3116
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
3117
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
3118
- lpTokenType: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.lp_token_type),
3119
- userShareId: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.user_share_id),
3120
- unstakeAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unstake_amount),
3121
- unstakeTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unstake_ts_ms),
3122
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
3123
- });
3124
- };
3125
- UnstakeEvent.fromBcs = function (data) {
3126
- return UnstakeEvent.fromFields(UnstakeEvent.bcs.parse(data));
3127
- };
3128
- UnstakeEvent.prototype.toJSONField = function () {
3129
- return {
3130
- sender: this.sender,
3131
- index: this.index.toString(),
3132
- lpTokenType: this.lpTokenType.toJSONField(),
3133
- userShareId: this.userShareId.toString(),
3134
- unstakeAmount: this.unstakeAmount.toString(),
3135
- unstakeTsMs: this.unstakeTsMs.toString(),
3136
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
3137
- };
3138
- };
3139
- UnstakeEvent.prototype.toJSON = function () {
3140
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
3141
- };
3142
- UnstakeEvent.fromJSONField = function (field) {
3143
- return UnstakeEvent.reified().new({
3144
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
3145
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
3146
- lpTokenType: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.lpTokenType),
3147
- userShareId: (0, reified_1.decodeFromJSONField)("u64", field.userShareId),
3148
- unstakeAmount: (0, reified_1.decodeFromJSONField)("u64", field.unstakeAmount),
3149
- unstakeTsMs: (0, reified_1.decodeFromJSONField)("u64", field.unstakeTsMs),
3150
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
3151
- });
3152
- };
3153
- UnstakeEvent.fromJSON = function (json) {
3154
- if (json.$typeName !== UnstakeEvent.$typeName) {
3155
- throw new Error("not a WithTwoGenerics json object");
3156
- }
3157
- return UnstakeEvent.fromJSONField(json);
3158
- };
3159
- UnstakeEvent.fromSuiParsedData = function (content) {
3160
- if (content.dataType !== "moveObject") {
3161
- throw new Error("not an object");
3162
- }
3163
- if (!isUnstakeEvent(content.type)) {
3164
- throw new Error("object at ".concat(content.fields.id, " is not a UnstakeEvent object"));
3165
- }
3166
- return UnstakeEvent.fromFieldsWithTypes(content);
3167
- };
3168
- UnstakeEvent.fromSuiObjectData = function (data) {
3169
- if (data.bcs) {
3170
- if (data.bcs.dataType !== "moveObject" || !isUnstakeEvent(data.bcs.type)) {
3171
- throw new Error("object at is not a UnstakeEvent object");
3172
- }
3173
- return UnstakeEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
3174
- }
3175
- if (data.content) {
3176
- return UnstakeEvent.fromSuiParsedData(data.content);
3177
- }
3178
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
3179
- };
3180
- UnstakeEvent.fetch = function (client, id) {
3181
- return __awaiter(this, void 0, void 0, function () {
3182
- var res;
3183
- var _a, _b;
3184
- return __generator(this, function (_c) {
3185
- switch (_c.label) {
3186
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
3187
- case 1:
3188
- res = _c.sent();
3189
- if (res.error) {
3190
- throw new Error("error fetching UnstakeEvent object at id ".concat(id, ": ").concat(res.error.code));
3191
- }
3192
- 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)) {
3193
- throw new Error("object at id ".concat(id, " is not a UnstakeEvent object"));
3194
- }
3195
- return [2 /*return*/, UnstakeEvent.fromSuiObjectData(res.data)];
3196
- }
3197
- });
3198
- });
3199
- };
3200
- UnstakeEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::UnstakeEvent");
3201
- UnstakeEvent.$numTypeParams = 0;
3202
- UnstakeEvent.$isPhantom = [];
3203
- return UnstakeEvent;
3204
- }());
3205
- exports.UnstakeEvent = UnstakeEvent;
3206
- /* ============================== UnsubscribeEvent =============================== */
3207
- function isUnsubscribeEvent(type) {
3208
- type = (0, util_1.compressSuiType)(type);
3209
- return type === "".concat(index_1.PKG_V1, "::stake_pool::UnsubscribeEvent");
3210
- }
3211
- var UnsubscribeEvent = /** @class */ (function () {
3212
- function UnsubscribeEvent(typeArgs, fields) {
3213
- this.__StructClass = true;
3214
- this.$typeName = UnsubscribeEvent.$typeName;
3215
- this.$isPhantom = UnsubscribeEvent.$isPhantom;
3216
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UnsubscribeEvent.$typeName], __read(typeArgs), false));
3217
- this.$typeArgs = typeArgs;
3218
- this.sender = fields.sender;
3219
- this.index = fields.index;
3220
- this.lpTokenType = fields.lpTokenType;
3221
- this.userShareId = fields.userShareId;
3222
- this.unsubscribedShares = fields.unsubscribedShares;
3223
- this.unsubscribeTsMs = fields.unsubscribeTsMs;
3224
- this.unlockedTsMs = fields.unlockedTsMs;
3225
- this.u64Padding = fields.u64Padding;
3226
- }
3227
- UnsubscribeEvent.reified = function () {
3228
- var _this = this;
3229
- return {
3230
- typeName: UnsubscribeEvent.$typeName,
3231
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UnsubscribeEvent.$typeName], [], false)),
3232
- typeArgs: [],
3233
- isPhantom: UnsubscribeEvent.$isPhantom,
3234
- reifiedTypeArgs: [],
3235
- fromFields: function (fields) { return UnsubscribeEvent.fromFields(fields); },
3236
- fromFieldsWithTypes: function (item) { return UnsubscribeEvent.fromFieldsWithTypes(item); },
3237
- fromBcs: function (data) { return UnsubscribeEvent.fromBcs(data); },
3238
- bcs: UnsubscribeEvent.bcs,
3239
- fromJSONField: function (field) { return UnsubscribeEvent.fromJSONField(field); },
3240
- fromJSON: function (json) { return UnsubscribeEvent.fromJSON(json); },
3241
- fromSuiParsedData: function (content) { return UnsubscribeEvent.fromSuiParsedData(content); },
3242
- fromSuiObjectData: function (content) { return UnsubscribeEvent.fromSuiObjectData(content); },
3243
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
3244
- return [2 /*return*/, UnsubscribeEvent.fetch(client, id)];
3245
- }); }); },
3246
- new: function (fields) {
3247
- return new UnsubscribeEvent([], fields);
3248
- },
3249
- kind: "StructClassReified",
3250
- };
3251
- };
3252
- Object.defineProperty(UnsubscribeEvent, "r", {
3253
- get: function () {
3254
- return UnsubscribeEvent.reified();
3255
- },
3256
- enumerable: false,
3257
- configurable: true
3258
- });
3259
- UnsubscribeEvent.phantom = function () {
3260
- return (0, reified_1.phantom)(UnsubscribeEvent.reified());
3261
- };
3262
- Object.defineProperty(UnsubscribeEvent, "p", {
3263
- get: function () {
3264
- return UnsubscribeEvent.phantom();
3265
- },
3266
- enumerable: false,
3267
- configurable: true
3268
- });
3269
- Object.defineProperty(UnsubscribeEvent, "bcs", {
3270
- get: function () {
3271
- return bcs_1.bcs.struct("UnsubscribeEvent", {
3272
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
3273
- index: bcs_1.bcs.u64(),
3274
- lp_token_type: structs_1.TypeName.bcs,
3275
- user_share_id: bcs_1.bcs.u64(),
3276
- unsubscribed_shares: bcs_1.bcs.u64(),
3277
- unsubscribe_ts_ms: bcs_1.bcs.u64(),
3278
- unlocked_ts_ms: bcs_1.bcs.u64(),
3279
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
3280
- });
3281
- },
3282
- enumerable: false,
3283
- configurable: true
3284
- });
3285
- UnsubscribeEvent.fromFields = function (fields) {
3286
- return UnsubscribeEvent.reified().new({
3461
+ return UnstakeEvent.reified().new({
3287
3462
  sender: (0, reified_1.decodeFromFields)("address", fields.sender),
3288
3463
  index: (0, reified_1.decodeFromFields)("u64", fields.index),
3289
3464
  lpTokenType: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.lp_token_type),
3290
3465
  userShareId: (0, reified_1.decodeFromFields)("u64", fields.user_share_id),
3291
- unsubscribedShares: (0, reified_1.decodeFromFields)("u64", fields.unsubscribed_shares),
3292
- unsubscribeTsMs: (0, reified_1.decodeFromFields)("u64", fields.unsubscribe_ts_ms),
3293
- unlockedTsMs: (0, reified_1.decodeFromFields)("u64", fields.unlocked_ts_ms),
3466
+ unstakeAmount: (0, reified_1.decodeFromFields)("u64", fields.unstake_amount),
3467
+ unstakeTsMs: (0, reified_1.decodeFromFields)("u64", fields.unstake_ts_ms),
3294
3468
  u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
3295
3469
  });
3296
3470
  };
3297
- UnsubscribeEvent.fromFieldsWithTypes = function (item) {
3298
- if (!isUnsubscribeEvent(item.type)) {
3299
- throw new Error("not a UnsubscribeEvent type");
3471
+ UnstakeEvent.fromFieldsWithTypes = function (item) {
3472
+ if (!isUnstakeEvent(item.type)) {
3473
+ throw new Error("not a UnstakeEvent type");
3300
3474
  }
3301
- return UnsubscribeEvent.reified().new({
3475
+ return UnstakeEvent.reified().new({
3302
3476
  sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
3303
3477
  index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
3304
3478
  lpTokenType: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.lp_token_type),
3305
3479
  userShareId: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.user_share_id),
3306
- unsubscribedShares: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unsubscribed_shares),
3307
- unsubscribeTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unsubscribe_ts_ms),
3308
- unlockedTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unlocked_ts_ms),
3480
+ unstakeAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unstake_amount),
3481
+ unstakeTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unstake_ts_ms),
3309
3482
  u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
3310
3483
  });
3311
3484
  };
3312
- UnsubscribeEvent.fromBcs = function (data) {
3313
- return UnsubscribeEvent.fromFields(UnsubscribeEvent.bcs.parse(data));
3485
+ UnstakeEvent.fromBcs = function (data) {
3486
+ return UnstakeEvent.fromFields(UnstakeEvent.bcs.parse(data));
3314
3487
  };
3315
- UnsubscribeEvent.prototype.toJSONField = function () {
3488
+ UnstakeEvent.prototype.toJSONField = function () {
3316
3489
  return {
3317
3490
  sender: this.sender,
3318
3491
  index: this.index.toString(),
3319
3492
  lpTokenType: this.lpTokenType.toJSONField(),
3320
3493
  userShareId: this.userShareId.toString(),
3321
- unsubscribedShares: this.unsubscribedShares.toString(),
3322
- unsubscribeTsMs: this.unsubscribeTsMs.toString(),
3323
- unlockedTsMs: this.unlockedTsMs.toString(),
3494
+ unstakeAmount: this.unstakeAmount.toString(),
3495
+ unstakeTsMs: this.unstakeTsMs.toString(),
3324
3496
  u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
3325
3497
  };
3326
3498
  };
3327
- UnsubscribeEvent.prototype.toJSON = function () {
3499
+ UnstakeEvent.prototype.toJSON = function () {
3328
3500
  return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
3329
3501
  };
3330
- UnsubscribeEvent.fromJSONField = function (field) {
3331
- return UnsubscribeEvent.reified().new({
3502
+ UnstakeEvent.fromJSONField = function (field) {
3503
+ return UnstakeEvent.reified().new({
3332
3504
  sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
3333
3505
  index: (0, reified_1.decodeFromJSONField)("u64", field.index),
3334
3506
  lpTokenType: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.lpTokenType),
3335
3507
  userShareId: (0, reified_1.decodeFromJSONField)("u64", field.userShareId),
3336
- unsubscribedShares: (0, reified_1.decodeFromJSONField)("u64", field.unsubscribedShares),
3337
- unsubscribeTsMs: (0, reified_1.decodeFromJSONField)("u64", field.unsubscribeTsMs),
3338
- unlockedTsMs: (0, reified_1.decodeFromJSONField)("u64", field.unlockedTsMs),
3508
+ unstakeAmount: (0, reified_1.decodeFromJSONField)("u64", field.unstakeAmount),
3509
+ unstakeTsMs: (0, reified_1.decodeFromJSONField)("u64", field.unstakeTsMs),
3339
3510
  u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
3340
3511
  });
3341
3512
  };
3342
- UnsubscribeEvent.fromJSON = function (json) {
3343
- if (json.$typeName !== UnsubscribeEvent.$typeName) {
3513
+ UnstakeEvent.fromJSON = function (json) {
3514
+ if (json.$typeName !== UnstakeEvent.$typeName) {
3344
3515
  throw new Error("not a WithTwoGenerics json object");
3345
3516
  }
3346
- return UnsubscribeEvent.fromJSONField(json);
3517
+ return UnstakeEvent.fromJSONField(json);
3347
3518
  };
3348
- UnsubscribeEvent.fromSuiParsedData = function (content) {
3519
+ UnstakeEvent.fromSuiParsedData = function (content) {
3349
3520
  if (content.dataType !== "moveObject") {
3350
3521
  throw new Error("not an object");
3351
3522
  }
3352
- if (!isUnsubscribeEvent(content.type)) {
3353
- throw new Error("object at ".concat(content.fields.id, " is not a UnsubscribeEvent object"));
3523
+ if (!isUnstakeEvent(content.type)) {
3524
+ throw new Error("object at ".concat(content.fields.id, " is not a UnstakeEvent object"));
3354
3525
  }
3355
- return UnsubscribeEvent.fromFieldsWithTypes(content);
3526
+ return UnstakeEvent.fromFieldsWithTypes(content);
3356
3527
  };
3357
- UnsubscribeEvent.fromSuiObjectData = function (data) {
3528
+ UnstakeEvent.fromSuiObjectData = function (data) {
3358
3529
  if (data.bcs) {
3359
- if (data.bcs.dataType !== "moveObject" || !isUnsubscribeEvent(data.bcs.type)) {
3360
- throw new Error("object at is not a UnsubscribeEvent object");
3530
+ if (data.bcs.dataType !== "moveObject" || !isUnstakeEvent(data.bcs.type)) {
3531
+ throw new Error("object at is not a UnstakeEvent object");
3361
3532
  }
3362
- return UnsubscribeEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
3533
+ return UnstakeEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
3363
3534
  }
3364
3535
  if (data.content) {
3365
- return UnsubscribeEvent.fromSuiParsedData(data.content);
3536
+ return UnstakeEvent.fromSuiParsedData(data.content);
3366
3537
  }
3367
3538
  throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
3368
3539
  };
3369
- UnsubscribeEvent.fetch = function (client, id) {
3540
+ UnstakeEvent.fetch = function (client, id) {
3370
3541
  return __awaiter(this, void 0, void 0, function () {
3371
3542
  var res;
3372
3543
  var _a, _b;
@@ -3376,22 +3547,22 @@ var UnsubscribeEvent = /** @class */ (function () {
3376
3547
  case 1:
3377
3548
  res = _c.sent();
3378
3549
  if (res.error) {
3379
- throw new Error("error fetching UnsubscribeEvent object at id ".concat(id, ": ").concat(res.error.code));
3550
+ throw new Error("error fetching UnstakeEvent object at id ".concat(id, ": ").concat(res.error.code));
3380
3551
  }
3381
- 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)) {
3382
- throw new Error("object at id ".concat(id, " is not a UnsubscribeEvent object"));
3552
+ 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)) {
3553
+ throw new Error("object at id ".concat(id, " is not a UnstakeEvent object"));
3383
3554
  }
3384
- return [2 /*return*/, UnsubscribeEvent.fromSuiObjectData(res.data)];
3555
+ return [2 /*return*/, UnstakeEvent.fromSuiObjectData(res.data)];
3385
3556
  }
3386
3557
  });
3387
3558
  });
3388
3559
  };
3389
- UnsubscribeEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::UnsubscribeEvent");
3390
- UnsubscribeEvent.$numTypeParams = 0;
3391
- UnsubscribeEvent.$isPhantom = [];
3392
- return UnsubscribeEvent;
3560
+ UnstakeEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::UnstakeEvent");
3561
+ UnstakeEvent.$numTypeParams = 0;
3562
+ UnstakeEvent.$isPhantom = [];
3563
+ return UnstakeEvent;
3393
3564
  }());
3394
- exports.UnsubscribeEvent = UnsubscribeEvent;
3565
+ exports.UnstakeEvent = UnstakeEvent;
3395
3566
  /* ============================== UpdateIncentiveConfigEvent =============================== */
3396
3567
  function isUpdateIncentiveConfigEvent(type) {
3397
3568
  type = (0, util_1.compressSuiType)(type);
@@ -3734,174 +3905,3 @@ var UpdateUnlockCountdownTsMsEvent = /** @class */ (function () {
3734
3905
  return UpdateUnlockCountdownTsMsEvent;
3735
3906
  }());
3736
3907
  exports.UpdateUnlockCountdownTsMsEvent = UpdateUnlockCountdownTsMsEvent;
3737
- /* ============================== WithdrawIncentiveEvent =============================== */
3738
- function isWithdrawIncentiveEvent(type) {
3739
- type = (0, util_1.compressSuiType)(type);
3740
- return type === "".concat(index_1.PKG_V1, "::stake_pool::WithdrawIncentiveEvent");
3741
- }
3742
- var WithdrawIncentiveEvent = /** @class */ (function () {
3743
- function WithdrawIncentiveEvent(typeArgs, fields) {
3744
- this.__StructClass = true;
3745
- this.$typeName = WithdrawIncentiveEvent.$typeName;
3746
- this.$isPhantom = WithdrawIncentiveEvent.$isPhantom;
3747
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawIncentiveEvent.$typeName], __read(typeArgs), false));
3748
- this.$typeArgs = typeArgs;
3749
- this.sender = fields.sender;
3750
- this.index = fields.index;
3751
- this.incentiveTokenType = fields.incentiveTokenType;
3752
- this.withdrawalAmount = fields.withdrawalAmount;
3753
- this.u64Padding = fields.u64Padding;
3754
- }
3755
- WithdrawIncentiveEvent.reified = function () {
3756
- var _this = this;
3757
- return {
3758
- typeName: WithdrawIncentiveEvent.$typeName,
3759
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawIncentiveEvent.$typeName], [], false)),
3760
- typeArgs: [],
3761
- isPhantom: WithdrawIncentiveEvent.$isPhantom,
3762
- reifiedTypeArgs: [],
3763
- fromFields: function (fields) { return WithdrawIncentiveEvent.fromFields(fields); },
3764
- fromFieldsWithTypes: function (item) { return WithdrawIncentiveEvent.fromFieldsWithTypes(item); },
3765
- fromBcs: function (data) { return WithdrawIncentiveEvent.fromBcs(data); },
3766
- bcs: WithdrawIncentiveEvent.bcs,
3767
- fromJSONField: function (field) { return WithdrawIncentiveEvent.fromJSONField(field); },
3768
- fromJSON: function (json) { return WithdrawIncentiveEvent.fromJSON(json); },
3769
- fromSuiParsedData: function (content) { return WithdrawIncentiveEvent.fromSuiParsedData(content); },
3770
- fromSuiObjectData: function (content) { return WithdrawIncentiveEvent.fromSuiObjectData(content); },
3771
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
3772
- return [2 /*return*/, WithdrawIncentiveEvent.fetch(client, id)];
3773
- }); }); },
3774
- new: function (fields) {
3775
- return new WithdrawIncentiveEvent([], fields);
3776
- },
3777
- kind: "StructClassReified",
3778
- };
3779
- };
3780
- Object.defineProperty(WithdrawIncentiveEvent, "r", {
3781
- get: function () {
3782
- return WithdrawIncentiveEvent.reified();
3783
- },
3784
- enumerable: false,
3785
- configurable: true
3786
- });
3787
- WithdrawIncentiveEvent.phantom = function () {
3788
- return (0, reified_1.phantom)(WithdrawIncentiveEvent.reified());
3789
- };
3790
- Object.defineProperty(WithdrawIncentiveEvent, "p", {
3791
- get: function () {
3792
- return WithdrawIncentiveEvent.phantom();
3793
- },
3794
- enumerable: false,
3795
- configurable: true
3796
- });
3797
- Object.defineProperty(WithdrawIncentiveEvent, "bcs", {
3798
- get: function () {
3799
- return bcs_1.bcs.struct("WithdrawIncentiveEvent", {
3800
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
3801
- index: bcs_1.bcs.u64(),
3802
- incentive_token_type: structs_1.TypeName.bcs,
3803
- withdrawal_amount: bcs_1.bcs.u64(),
3804
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
3805
- });
3806
- },
3807
- enumerable: false,
3808
- configurable: true
3809
- });
3810
- WithdrawIncentiveEvent.fromFields = function (fields) {
3811
- return WithdrawIncentiveEvent.reified().new({
3812
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
3813
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
3814
- incentiveTokenType: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.incentive_token_type),
3815
- withdrawalAmount: (0, reified_1.decodeFromFields)("u64", fields.withdrawal_amount),
3816
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
3817
- });
3818
- };
3819
- WithdrawIncentiveEvent.fromFieldsWithTypes = function (item) {
3820
- if (!isWithdrawIncentiveEvent(item.type)) {
3821
- throw new Error("not a WithdrawIncentiveEvent type");
3822
- }
3823
- return WithdrawIncentiveEvent.reified().new({
3824
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
3825
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
3826
- incentiveTokenType: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.incentive_token_type),
3827
- withdrawalAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.withdrawal_amount),
3828
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
3829
- });
3830
- };
3831
- WithdrawIncentiveEvent.fromBcs = function (data) {
3832
- return WithdrawIncentiveEvent.fromFields(WithdrawIncentiveEvent.bcs.parse(data));
3833
- };
3834
- WithdrawIncentiveEvent.prototype.toJSONField = function () {
3835
- return {
3836
- sender: this.sender,
3837
- index: this.index.toString(),
3838
- incentiveTokenType: this.incentiveTokenType.toJSONField(),
3839
- withdrawalAmount: this.withdrawalAmount.toString(),
3840
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
3841
- };
3842
- };
3843
- WithdrawIncentiveEvent.prototype.toJSON = function () {
3844
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
3845
- };
3846
- WithdrawIncentiveEvent.fromJSONField = function (field) {
3847
- return WithdrawIncentiveEvent.reified().new({
3848
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
3849
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
3850
- incentiveTokenType: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.incentiveTokenType),
3851
- withdrawalAmount: (0, reified_1.decodeFromJSONField)("u64", field.withdrawalAmount),
3852
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
3853
- });
3854
- };
3855
- WithdrawIncentiveEvent.fromJSON = function (json) {
3856
- if (json.$typeName !== WithdrawIncentiveEvent.$typeName) {
3857
- throw new Error("not a WithTwoGenerics json object");
3858
- }
3859
- return WithdrawIncentiveEvent.fromJSONField(json);
3860
- };
3861
- WithdrawIncentiveEvent.fromSuiParsedData = function (content) {
3862
- if (content.dataType !== "moveObject") {
3863
- throw new Error("not an object");
3864
- }
3865
- if (!isWithdrawIncentiveEvent(content.type)) {
3866
- throw new Error("object at ".concat(content.fields.id, " is not a WithdrawIncentiveEvent object"));
3867
- }
3868
- return WithdrawIncentiveEvent.fromFieldsWithTypes(content);
3869
- };
3870
- WithdrawIncentiveEvent.fromSuiObjectData = function (data) {
3871
- if (data.bcs) {
3872
- if (data.bcs.dataType !== "moveObject" || !isWithdrawIncentiveEvent(data.bcs.type)) {
3873
- throw new Error("object at is not a WithdrawIncentiveEvent object");
3874
- }
3875
- return WithdrawIncentiveEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
3876
- }
3877
- if (data.content) {
3878
- return WithdrawIncentiveEvent.fromSuiParsedData(data.content);
3879
- }
3880
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
3881
- };
3882
- WithdrawIncentiveEvent.fetch = function (client, id) {
3883
- return __awaiter(this, void 0, void 0, function () {
3884
- var res;
3885
- var _a, _b;
3886
- return __generator(this, function (_c) {
3887
- switch (_c.label) {
3888
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
3889
- case 1:
3890
- res = _c.sent();
3891
- if (res.error) {
3892
- throw new Error("error fetching WithdrawIncentiveEvent object at id ".concat(id, ": ").concat(res.error.code));
3893
- }
3894
- 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)) {
3895
- throw new Error("object at id ".concat(id, " is not a WithdrawIncentiveEvent object"));
3896
- }
3897
- return [2 /*return*/, WithdrawIncentiveEvent.fromSuiObjectData(res.data)];
3898
- }
3899
- });
3900
- });
3901
- };
3902
- WithdrawIncentiveEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::WithdrawIncentiveEvent");
3903
- WithdrawIncentiveEvent.$numTypeParams = 0;
3904
- WithdrawIncentiveEvent.$isPhantom = [];
3905
- return WithdrawIncentiveEvent;
3906
- }());
3907
- exports.WithdrawIncentiveEvent = WithdrawIncentiveEvent;