@typus/typus-perp-sdk 1.0.0 → 1.0.2

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 (329) hide show
  1. package/dist/src/_framework/init-loader.js +4 -32
  2. package/dist/src/fetch.d.ts +8 -4
  3. package/dist/src/fetch.js +107 -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 +4 -4
  7. package/dist/src/typus_perp/error/functions.d.ts +3 -0
  8. package/dist/src/typus_perp/error/functions.js +12 -0
  9. package/dist/src/typus_perp/escrow/structs.d.ts +1 -1
  10. package/dist/src/typus_perp/index.js +4 -4
  11. package/dist/src/typus_perp/init.js +0 -1
  12. package/dist/src/typus_perp/lp-pool/structs.d.ts +26 -26
  13. package/dist/src/typus_perp/oracle/structs.d.ts +2 -2
  14. package/dist/src/typus_perp/position/structs.d.ts +25 -7
  15. package/dist/src/typus_perp/position/structs.js +12 -0
  16. package/dist/src/typus_perp/symbol/structs.d.ts +1 -1
  17. package/dist/src/typus_perp/tlp/structs.d.ts +2 -2
  18. package/dist/src/typus_perp/trading/structs.d.ts +35 -139
  19. package/dist/src/typus_perp/trading/structs.js +7 -173
  20. package/dist/src/typus_perp/treasury-caps/structs.d.ts +1 -1
  21. package/dist/src/typus_stake_pool/admin/structs.d.ts +4 -4
  22. package/dist/src/typus_stake_pool/index.js +4 -4
  23. package/dist/src/typus_stake_pool/init.js +2 -2
  24. package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +16 -16
  25. package/dist/src/typus_stake_pool/stake-pool/functions.js +28 -28
  26. package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +202 -202
  27. package/dist/src/typus_stake_pool/stake-pool/structs.js +404 -404
  28. package/dist/src/user/history.js +4 -4
  29. package/package.json +1 -1
  30. package/dist/src/_dependencies/source/0x1/bit-vector/structs.d.ts +0 -56
  31. package/dist/src/_dependencies/source/0x1/bit-vector/structs.js +0 -268
  32. package/dist/src/_dependencies/source/0x1/fixed-point32/structs.d.ts +0 -46
  33. package/dist/src/_dependencies/source/0x1/fixed-point32/structs.js +0 -222
  34. package/dist/src/_dependencies/source/0x1/init.d.ts +0 -2
  35. package/dist/src/_dependencies/source/0x1/init.js +0 -55
  36. package/dist/src/_dependencies/source/0x1/uq32-32/structs.d.ts +0 -46
  37. package/dist/src/_dependencies/source/0x1/uq32-32/structs.js +0 -222
  38. package/dist/src/_dependencies/source/0x1/uq64-64/structs.d.ts +0 -46
  39. package/dist/src/_dependencies/source/0x1/uq64-64/structs.js +0 -222
  40. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +0 -5
  41. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +0 -8
  42. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +0 -2
  43. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +0 -50
  44. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +0 -350
  45. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +0 -794
  46. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +0 -111
  47. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +0 -389
  48. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +0 -70
  49. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +0 -252
  50. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +0 -70
  51. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +0 -252
  52. package/dist/src/_dependencies/source/0x2/authenticator-state/structs.d.ts +0 -464
  53. package/dist/src/_dependencies/source/0x2/authenticator-state/structs.js +0 -904
  54. package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +0 -61
  55. package/dist/src/_dependencies/source/0x2/bag/structs.js +0 -229
  56. package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +0 -88
  57. package/dist/src/_dependencies/source/0x2/balance/structs.js +0 -386
  58. package/dist/src/_dependencies/source/0x2/bcs/structs.d.ts +0 -50
  59. package/dist/src/_dependencies/source/0x2/bcs/structs.js +0 -256
  60. package/dist/src/_dependencies/source/0x2/bls12381/structs.d.ts +0 -214
  61. package/dist/src/_dependencies/source/0x2/bls12381/structs.js +0 -790
  62. package/dist/src/_dependencies/source/0x2/borrow/structs.d.ts +0 -113
  63. package/dist/src/_dependencies/source/0x2/borrow/structs.js +0 -398
  64. package/dist/src/_dependencies/source/0x2/clock/structs.d.ts +0 -61
  65. package/dist/src/_dependencies/source/0x2/clock/structs.js +0 -235
  66. package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +0 -460
  67. package/dist/src/_dependencies/source/0x2/coin/structs.js +0 -1247
  68. package/dist/src/_dependencies/source/0x2/config/structs.d.ts +0 -179
  69. package/dist/src/_dependencies/source/0x2/config/structs.js +0 -567
  70. package/dist/src/_dependencies/source/0x2/deny-list/structs.d.ts +0 -430
  71. package/dist/src/_dependencies/source/0x2/deny-list/structs.js +0 -1166
  72. package/dist/src/_dependencies/source/0x2/display/structs.d.ts +0 -241
  73. package/dist/src/_dependencies/source/0x2/display/structs.js +0 -578
  74. package/dist/src/_dependencies/source/0x2/dynamic-field/structs.d.ts +0 -68
  75. package/dist/src/_dependencies/source/0x2/dynamic-field/structs.js +0 -256
  76. package/dist/src/_dependencies/source/0x2/dynamic-object-field/structs.d.ts +0 -47
  77. package/dist/src/_dependencies/source/0x2/dynamic-object-field/structs.js +0 -236
  78. package/dist/src/_dependencies/source/0x2/groth16/structs.d.ts +0 -204
  79. package/dist/src/_dependencies/source/0x2/groth16/structs.js +0 -706
  80. package/dist/src/_dependencies/source/0x2/group-ops/structs.d.ts +0 -50
  81. package/dist/src/_dependencies/source/0x2/group-ops/structs.js +0 -267
  82. package/dist/src/_dependencies/source/0x2/init.d.ts +0 -2
  83. package/dist/src/_dependencies/source/0x2/init.js +0 -171
  84. package/dist/src/_dependencies/source/0x2/kiosk/structs.d.ts +0 -606
  85. package/dist/src/_dependencies/source/0x2/kiosk/structs.js +0 -1719
  86. package/dist/src/_dependencies/source/0x2/kiosk-extension/structs.d.ts +0 -121
  87. package/dist/src/_dependencies/source/0x2/kiosk-extension/structs.js +0 -394
  88. package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +0 -153
  89. package/dist/src/_dependencies/source/0x2/linked-table/structs.js +0 -438
  90. package/dist/src/_dependencies/source/0x2/object-bag/structs.d.ts +0 -61
  91. package/dist/src/_dependencies/source/0x2/object-bag/structs.js +0 -229
  92. package/dist/src/_dependencies/source/0x2/package/structs.d.ts +0 -280
  93. package/dist/src/_dependencies/source/0x2/package/structs.js +0 -762
  94. package/dist/src/_dependencies/source/0x2/priority-queue/structs.d.ts +0 -111
  95. package/dist/src/_dependencies/source/0x2/priority-queue/structs.js +0 -440
  96. package/dist/src/_dependencies/source/0x2/random/structs.d.ts +0 -204
  97. package/dist/src/_dependencies/source/0x2/random/structs.js +0 -596
  98. package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +0 -46
  99. package/dist/src/_dependencies/source/0x2/sui/structs.js +0 -222
  100. package/dist/src/_dependencies/source/0x2/table/structs.d.ts +0 -61
  101. package/dist/src/_dependencies/source/0x2/table/structs.js +0 -248
  102. package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +0 -68
  103. package/dist/src/_dependencies/source/0x2/table-vec/structs.js +0 -274
  104. package/dist/src/_dependencies/source/0x2/token/structs.d.ts +0 -449
  105. package/dist/src/_dependencies/source/0x2/token/structs.js +0 -1095
  106. package/dist/src/_dependencies/source/0x2/transfer/structs.d.ts +0 -57
  107. package/dist/src/_dependencies/source/0x2/transfer/structs.js +0 -246
  108. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -370
  109. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -1091
  110. package/dist/src/_dependencies/source/0x2/tx-context/structs.d.ts +0 -74
  111. package/dist/src/_dependencies/source/0x2/tx-context/structs.js +0 -286
  112. package/dist/src/_dependencies/source/0x2/url/structs.d.ts +0 -53
  113. package/dist/src/_dependencies/source/0x2/url/structs.js +0 -223
  114. package/dist/src/_dependencies/source/0x2/versioned/structs.d.ts +0 -113
  115. package/dist/src/_dependencies/source/0x2/versioned/structs.js +0 -389
  116. package/dist/src/_dependencies/source/0x2/zklogin-verified-id/structs.d.ts +0 -110
  117. package/dist/src/_dependencies/source/0x2/zklogin-verified-id/structs.js +0 -260
  118. package/dist/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.d.ts +0 -74
  119. package/dist/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.js +0 -242
  120. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +0 -3
  121. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +0 -6
  122. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +0 -2
  123. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +0 -40
  124. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +0 -55
  125. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +0 -223
  126. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +0 -4
  127. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +0 -7
  128. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +0 -2
  129. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +0 -43
  130. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +0 -46
  131. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +0 -222
  132. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +0 -121
  133. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +0 -395
  134. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +0 -489
  135. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +0 -1084
  136. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +0 -147
  137. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +0 -456
  138. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +0 -239
  139. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +0 -653
  140. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +0 -405
  141. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +0 -899
  142. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +0 -2
  143. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +0 -102
  144. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +0 -699
  145. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +0 -1459
  146. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +0 -147
  147. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +0 -430
  148. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.d.ts +0 -1071
  149. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.js +0 -2261
  150. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +0 -279
  151. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +0 -733
  152. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +0 -328
  153. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +0 -892
  154. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +0 -628
  155. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +0 -1324
  156. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +0 -9
  157. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +0 -12
  158. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +0 -2
  159. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +0 -72
  160. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +0 -94
  161. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.js +0 -376
  162. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +0 -454
  163. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +0 -881
  164. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +0 -68
  165. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +0 -274
  166. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +0 -1117
  167. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +0 -2387
  168. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +0 -1524
  169. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +0 -3008
  170. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +0 -10
  171. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +0 -13
  172. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +0 -2
  173. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +0 -145
  174. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +0 -1267
  175. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +0 -2820
  176. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +0 -1412
  177. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +0 -1646
  178. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +0 -425
  179. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +0 -1223
  180. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +0 -1156
  181. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +0 -1828
  182. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +0 -82
  183. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +0 -264
  184. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +0 -5022
  185. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +0 -7585
  186. package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +0 -3
  187. package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +0 -6
  188. package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +0 -2
  189. package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +0 -4
  190. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +0 -88
  191. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +0 -263
  192. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +0 -347
  193. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +0 -591
  194. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +0 -73
  195. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +0 -258
  196. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +0 -876
  197. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +0 -1721
  198. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +0 -46
  199. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +0 -222
  200. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +0 -2
  201. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +0 -89
  202. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +0 -155
  203. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +0 -444
  204. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +0 -745
  205. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +0 -1221
  206. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +0 -2
  207. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +0 -53
  208. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +0 -87
  209. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +0 -287
  210. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +0 -58
  211. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +0 -240
  212. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +0 -121
  213. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +0 -323
  214. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +0 -55
  215. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +0 -223
  216. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/batch-price-attestation/structs.d.ts +0 -289
  217. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/batch-price-attestation/structs.js +0 -453
  218. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/contract-upgrade/structs.d.ts +0 -114
  219. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/contract-upgrade/structs.js +0 -378
  220. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/data-source/structs.d.ts +0 -71
  221. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/data-source/structs.js +0 -235
  222. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/event/structs.d.ts +0 -209
  223. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/event/structs.js +0 -377
  224. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance/structs.d.ts +0 -73
  225. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance/structs.js +0 -275
  226. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-action/structs.d.ts +0 -46
  227. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-action/structs.js +0 -222
  228. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-instruction/structs.d.ts +0 -77
  229. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-instruction/structs.js +0 -281
  230. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/hot-potato-vector/structs.d.ts +0 -51
  231. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/hot-potato-vector/structs.js +0 -270
  232. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/i64/structs.d.ts +0 -52
  233. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/i64/structs.js +0 -234
  234. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.d.ts +0 -3
  235. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.js +0 -6
  236. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/init.d.ts +0 -2
  237. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/init.js +0 -95
  238. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/migrate/structs.d.ts +0 -51
  239. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/migrate/structs.js +0 -223
  240. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price/structs.d.ts +0 -89
  241. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price/structs.js +0 -247
  242. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-feed/structs.d.ts +0 -158
  243. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-feed/structs.js +0 -242
  244. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-identifier/structs.d.ts +0 -50
  245. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-identifier/structs.js +0 -256
  246. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-info/structs.d.ts +0 -360
  247. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-info/structs.js +0 -396
  248. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-status/structs.d.ts +0 -46
  249. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-status/structs.js +0 -222
  250. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set/structs.d.ts +0 -120
  251. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set/structs.js +0 -425
  252. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-data-sources/structs.d.ts +0 -81
  253. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-data-sources/structs.js +0 -257
  254. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-fee-recipient/structs.d.ts +0 -46
  255. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-fee-recipient/structs.js +0 -222
  256. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-governance-data-source/structs.d.ts +0 -77
  257. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-governance-data-source/structs.js +0 -241
  258. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-stale-price-threshold/structs.d.ts +0 -46
  259. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-stale-price-threshold/structs.js +0 -222
  260. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-update-fee/structs.d.ts +0 -52
  261. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-update-fee/structs.js +0 -234
  262. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/setup/structs.d.ts +0 -55
  263. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/setup/structs.js +0 -223
  264. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.d.ts +0 -282
  265. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.js +0 -560
  266. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.d.ts +0 -130
  267. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.js +0 -506
  268. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +0 -3
  269. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +0 -6
  270. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.d.ts +0 -2
  271. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +0 -46
  272. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +0 -88
  273. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +0 -364
  274. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +0 -94
  275. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.js +0 -376
  276. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +0 -46
  277. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +0 -233
  278. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes20/structs.d.ts +0 -50
  279. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes20/structs.js +0 -256
  280. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes32/structs.d.ts +0 -50
  281. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes32/structs.js +0 -256
  282. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed-vaas/structs.d.ts +0 -77
  283. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed-vaas/structs.js +0 -260
  284. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/cursor/structs.d.ts +0 -51
  285. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/cursor/structs.js +0 -270
  286. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.d.ts +0 -153
  287. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.js +0 -519
  288. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/external-address/structs.d.ts +0 -57
  289. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/external-address/structs.js +0 -223
  290. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/fee-collector/structs.d.ts +0 -63
  291. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/fee-collector/structs.js +0 -270
  292. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.d.ts +0 -168
  293. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.js +0 -470
  294. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian/structs.d.ts +0 -57
  295. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian/structs.js +0 -223
  296. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-set/structs.d.ts +0 -81
  297. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-set/structs.js +0 -275
  298. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-signature/structs.d.ts +0 -85
  299. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-signature/structs.js +0 -247
  300. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.d.ts +0 -3
  301. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.js +0 -6
  302. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/init.d.ts +0 -2
  303. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/init.js +0 -100
  304. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/migrate/structs.d.ts +0 -51
  305. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/migrate/structs.js +0 -223
  306. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.d.ts +0 -194
  307. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.js +0 -662
  308. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.d.ts +0 -151
  309. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.js +0 -459
  310. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set/structs.d.ts +0 -110
  311. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set/structs.js +0 -416
  312. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set-fee/structs.d.ts +0 -88
  313. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set-fee/structs.js +0 -364
  314. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/setup/structs.d.ts +0 -55
  315. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/setup/structs.js +0 -223
  316. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.d.ts +0 -278
  317. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.js +0 -459
  318. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/transfer-fee/structs.d.ts +0 -94
  319. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/transfer-fee/structs.js +0 -376
  320. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/update-guardian-set/structs.d.ts +0 -159
  321. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/update-guardian-set/structs.js +0 -553
  322. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.d.ts +0 -156
  323. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.js +0 -520
  324. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/vaa/structs.d.ts +0 -128
  325. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/vaa/structs.js +0 -312
  326. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/version-control/structs.d.ts +0 -88
  327. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/version-control/structs.js +0 -364
  328. package/dist/src/readVec.d.ts +0 -3
  329. package/dist/src/readVec.js +0 -118
@@ -1,1646 +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 () {
30
- var ownKeys = function(o) {
31
- ownKeys = Object.getOwnPropertyNames || function (o) {
32
- var ar = [];
33
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
- return ar;
35
- };
36
- return ownKeys(o);
37
- };
38
- return function (mod) {
39
- if (mod && mod.__esModule) return mod;
40
- var result = {};
41
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
- __setModuleDefault(result, mod);
43
- return result;
44
- };
45
- })();
46
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
47
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
48
- return new (P || (P = Promise))(function (resolve, reject) {
49
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
50
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
51
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
52
- step((generator = generator.apply(thisArg, _arguments || [])).next());
53
- });
54
- };
55
- var __generator = (this && this.__generator) || function (thisArg, body) {
56
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
57
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
58
- function verb(n) { return function (v) { return step([n, v]); }; }
59
- function step(op) {
60
- if (f) throw new TypeError("Generator is already executing.");
61
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
62
- 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;
63
- if (y = 0, t) op = [op[0] & 2, t.value];
64
- switch (op[0]) {
65
- case 0: case 1: t = op; break;
66
- case 4: _.label++; return { value: op[1], done: false };
67
- case 5: _.label++; y = op[1]; op = [0]; continue;
68
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
69
- default:
70
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
71
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
72
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
73
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
74
- if (t[2]) _.ops.pop();
75
- _.trys.pop(); continue;
76
- }
77
- op = body.call(thisArg, _);
78
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
79
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
80
- }
81
- };
82
- var __read = (this && this.__read) || function (o, n) {
83
- var m = typeof Symbol === "function" && o[Symbol.iterator];
84
- if (!m) return o;
85
- var i = m.call(o), r, ar = [], e;
86
- try {
87
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
88
- }
89
- catch (error) { e = { error: error }; }
90
- finally {
91
- try {
92
- if (r && !r.done && (m = i["return"])) m.call(i);
93
- }
94
- finally { if (e) throw e.error; }
95
- }
96
- return ar;
97
- };
98
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
99
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
100
- if (ar || !(i in from)) {
101
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
102
- ar[i] = from[i];
103
- }
104
- }
105
- return to.concat(ar || Array.prototype.slice.call(from));
106
- };
107
- Object.defineProperty(exports, "__esModule", { value: true });
108
- exports.WithdrawFixedIncentiveEvent = exports.UpdateWarmupVaultConfigEvent = exports.UpdateStrikeEvent = exports.UpdateConfigEvent = exports.UpdateAuctionConfigEvent = exports.UpdateActiveVaultConfigEvent = exports.RemovePortfolioVaultAuthorizedUserEvent = exports.FixedIncentiviseEvent = exports.AddPortfolioVaultAuthorizedUserEvent = void 0;
109
- exports.isAddPortfolioVaultAuthorizedUserEvent = isAddPortfolioVaultAuthorizedUserEvent;
110
- exports.isFixedIncentiviseEvent = isFixedIncentiviseEvent;
111
- exports.isRemovePortfolioVaultAuthorizedUserEvent = isRemovePortfolioVaultAuthorizedUserEvent;
112
- exports.isUpdateActiveVaultConfigEvent = isUpdateActiveVaultConfigEvent;
113
- exports.isUpdateAuctionConfigEvent = isUpdateAuctionConfigEvent;
114
- exports.isUpdateConfigEvent = isUpdateConfigEvent;
115
- exports.isUpdateStrikeEvent = isUpdateStrikeEvent;
116
- exports.isUpdateWarmupVaultConfigEvent = isUpdateWarmupVaultConfigEvent;
117
- exports.isWithdrawFixedIncentiveEvent = isWithdrawFixedIncentiveEvent;
118
- var reified = __importStar(require("../../../../_framework/reified"));
119
- var reified_1 = require("../../../../_framework/reified");
120
- var util_1 = require("../../../../_framework/util");
121
- var structs_1 = require("../../0x1/type-name/structs");
122
- var index_1 = require("../index");
123
- var structs_2 = require("../typus-dov-single/structs");
124
- var bcs_1 = require("@mysten/sui/bcs");
125
- var utils_1 = require("@mysten/sui/utils");
126
- /* ============================== AddPortfolioVaultAuthorizedUserEvent =============================== */
127
- function isAddPortfolioVaultAuthorizedUserEvent(type) {
128
- type = (0, util_1.compressSuiType)(type);
129
- return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::AddPortfolioVaultAuthorizedUserEvent");
130
- }
131
- var AddPortfolioVaultAuthorizedUserEvent = /** @class */ (function () {
132
- function AddPortfolioVaultAuthorizedUserEvent(typeArgs, fields) {
133
- this.__StructClass = true;
134
- this.$typeName = AddPortfolioVaultAuthorizedUserEvent.$typeName;
135
- this.$isPhantom = AddPortfolioVaultAuthorizedUserEvent.$isPhantom;
136
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AddPortfolioVaultAuthorizedUserEvent.$typeName], __read(typeArgs), false));
137
- this.$typeArgs = typeArgs;
138
- this.signer = fields.signer;
139
- this.index = fields.index;
140
- this.users = fields.users;
141
- }
142
- AddPortfolioVaultAuthorizedUserEvent.reified = function () {
143
- var _this = this;
144
- return {
145
- typeName: AddPortfolioVaultAuthorizedUserEvent.$typeName,
146
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AddPortfolioVaultAuthorizedUserEvent.$typeName], [], false)),
147
- typeArgs: [],
148
- isPhantom: AddPortfolioVaultAuthorizedUserEvent.$isPhantom,
149
- reifiedTypeArgs: [],
150
- fromFields: function (fields) { return AddPortfolioVaultAuthorizedUserEvent.fromFields(fields); },
151
- fromFieldsWithTypes: function (item) { return AddPortfolioVaultAuthorizedUserEvent.fromFieldsWithTypes(item); },
152
- fromBcs: function (data) { return AddPortfolioVaultAuthorizedUserEvent.fromBcs(data); },
153
- bcs: AddPortfolioVaultAuthorizedUserEvent.bcs,
154
- fromJSONField: function (field) { return AddPortfolioVaultAuthorizedUserEvent.fromJSONField(field); },
155
- fromJSON: function (json) { return AddPortfolioVaultAuthorizedUserEvent.fromJSON(json); },
156
- fromSuiParsedData: function (content) { return AddPortfolioVaultAuthorizedUserEvent.fromSuiParsedData(content); },
157
- fromSuiObjectData: function (content) { return AddPortfolioVaultAuthorizedUserEvent.fromSuiObjectData(content); },
158
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
159
- return [2 /*return*/, AddPortfolioVaultAuthorizedUserEvent.fetch(client, id)];
160
- }); }); },
161
- new: function (fields) {
162
- return new AddPortfolioVaultAuthorizedUserEvent([], fields);
163
- },
164
- kind: "StructClassReified",
165
- };
166
- };
167
- Object.defineProperty(AddPortfolioVaultAuthorizedUserEvent, "r", {
168
- get: function () {
169
- return AddPortfolioVaultAuthorizedUserEvent.reified();
170
- },
171
- enumerable: false,
172
- configurable: true
173
- });
174
- AddPortfolioVaultAuthorizedUserEvent.phantom = function () {
175
- return (0, reified_1.phantom)(AddPortfolioVaultAuthorizedUserEvent.reified());
176
- };
177
- Object.defineProperty(AddPortfolioVaultAuthorizedUserEvent, "p", {
178
- get: function () {
179
- return AddPortfolioVaultAuthorizedUserEvent.phantom();
180
- },
181
- enumerable: false,
182
- configurable: true
183
- });
184
- Object.defineProperty(AddPortfolioVaultAuthorizedUserEvent, "bcs", {
185
- get: function () {
186
- return bcs_1.bcs.struct("AddPortfolioVaultAuthorizedUserEvent", {
187
- signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
188
- index: bcs_1.bcs.u64(),
189
- users: bcs_1.bcs.vector(bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } })),
190
- });
191
- },
192
- enumerable: false,
193
- configurable: true
194
- });
195
- AddPortfolioVaultAuthorizedUserEvent.fromFields = function (fields) {
196
- return AddPortfolioVaultAuthorizedUserEvent.reified().new({
197
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
198
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
199
- users: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.users),
200
- });
201
- };
202
- AddPortfolioVaultAuthorizedUserEvent.fromFieldsWithTypes = function (item) {
203
- if (!isAddPortfolioVaultAuthorizedUserEvent(item.type)) {
204
- throw new Error("not a AddPortfolioVaultAuthorizedUserEvent type");
205
- }
206
- return AddPortfolioVaultAuthorizedUserEvent.reified().new({
207
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
208
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
209
- users: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.users),
210
- });
211
- };
212
- AddPortfolioVaultAuthorizedUserEvent.fromBcs = function (data) {
213
- return AddPortfolioVaultAuthorizedUserEvent.fromFields(AddPortfolioVaultAuthorizedUserEvent.bcs.parse(data));
214
- };
215
- AddPortfolioVaultAuthorizedUserEvent.prototype.toJSONField = function () {
216
- return {
217
- signer: this.signer,
218
- index: this.index.toString(),
219
- users: (0, reified_1.fieldToJSON)("vector<address>", this.users),
220
- };
221
- };
222
- AddPortfolioVaultAuthorizedUserEvent.prototype.toJSON = function () {
223
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
224
- };
225
- AddPortfolioVaultAuthorizedUserEvent.fromJSONField = function (field) {
226
- return AddPortfolioVaultAuthorizedUserEvent.reified().new({
227
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
228
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
229
- users: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.users),
230
- });
231
- };
232
- AddPortfolioVaultAuthorizedUserEvent.fromJSON = function (json) {
233
- if (json.$typeName !== AddPortfolioVaultAuthorizedUserEvent.$typeName) {
234
- throw new Error("not a WithTwoGenerics json object");
235
- }
236
- return AddPortfolioVaultAuthorizedUserEvent.fromJSONField(json);
237
- };
238
- AddPortfolioVaultAuthorizedUserEvent.fromSuiParsedData = function (content) {
239
- if (content.dataType !== "moveObject") {
240
- throw new Error("not an object");
241
- }
242
- if (!isAddPortfolioVaultAuthorizedUserEvent(content.type)) {
243
- throw new Error("object at ".concat(content.fields.id, " is not a AddPortfolioVaultAuthorizedUserEvent object"));
244
- }
245
- return AddPortfolioVaultAuthorizedUserEvent.fromFieldsWithTypes(content);
246
- };
247
- AddPortfolioVaultAuthorizedUserEvent.fromSuiObjectData = function (data) {
248
- if (data.bcs) {
249
- if (data.bcs.dataType !== "moveObject" || !isAddPortfolioVaultAuthorizedUserEvent(data.bcs.type)) {
250
- throw new Error("object at is not a AddPortfolioVaultAuthorizedUserEvent object");
251
- }
252
- return AddPortfolioVaultAuthorizedUserEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
253
- }
254
- if (data.content) {
255
- return AddPortfolioVaultAuthorizedUserEvent.fromSuiParsedData(data.content);
256
- }
257
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
258
- };
259
- AddPortfolioVaultAuthorizedUserEvent.fetch = function (client, id) {
260
- return __awaiter(this, void 0, void 0, function () {
261
- var res;
262
- var _a, _b;
263
- return __generator(this, function (_c) {
264
- switch (_c.label) {
265
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
266
- case 1:
267
- res = _c.sent();
268
- if (res.error) {
269
- throw new Error("error fetching AddPortfolioVaultAuthorizedUserEvent object at id ".concat(id, ": ").concat(res.error.code));
270
- }
271
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAddPortfolioVaultAuthorizedUserEvent(res.data.bcs.type)) {
272
- throw new Error("object at id ".concat(id, " is not a AddPortfolioVaultAuthorizedUserEvent object"));
273
- }
274
- return [2 /*return*/, AddPortfolioVaultAuthorizedUserEvent.fromSuiObjectData(res.data)];
275
- }
276
- });
277
- });
278
- };
279
- AddPortfolioVaultAuthorizedUserEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::AddPortfolioVaultAuthorizedUserEvent");
280
- AddPortfolioVaultAuthorizedUserEvent.$numTypeParams = 0;
281
- AddPortfolioVaultAuthorizedUserEvent.$isPhantom = [];
282
- return AddPortfolioVaultAuthorizedUserEvent;
283
- }());
284
- exports.AddPortfolioVaultAuthorizedUserEvent = AddPortfolioVaultAuthorizedUserEvent;
285
- /* ============================== FixedIncentiviseEvent =============================== */
286
- function isFixedIncentiviseEvent(type) {
287
- type = (0, util_1.compressSuiType)(type);
288
- return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::FixedIncentiviseEvent");
289
- }
290
- var FixedIncentiviseEvent = /** @class */ (function () {
291
- function FixedIncentiviseEvent(typeArgs, fields) {
292
- this.__StructClass = true;
293
- this.$typeName = FixedIncentiviseEvent.$typeName;
294
- this.$isPhantom = FixedIncentiviseEvent.$isPhantom;
295
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([FixedIncentiviseEvent.$typeName], __read(typeArgs), false));
296
- this.$typeArgs = typeArgs;
297
- this.signer = fields.signer;
298
- this.token = fields.token;
299
- this.amount = fields.amount;
300
- this.fixedIncentiveAmount = fields.fixedIncentiveAmount;
301
- }
302
- FixedIncentiviseEvent.reified = function () {
303
- var _this = this;
304
- return {
305
- typeName: FixedIncentiviseEvent.$typeName,
306
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([FixedIncentiviseEvent.$typeName], [], false)),
307
- typeArgs: [],
308
- isPhantom: FixedIncentiviseEvent.$isPhantom,
309
- reifiedTypeArgs: [],
310
- fromFields: function (fields) { return FixedIncentiviseEvent.fromFields(fields); },
311
- fromFieldsWithTypes: function (item) { return FixedIncentiviseEvent.fromFieldsWithTypes(item); },
312
- fromBcs: function (data) { return FixedIncentiviseEvent.fromBcs(data); },
313
- bcs: FixedIncentiviseEvent.bcs,
314
- fromJSONField: function (field) { return FixedIncentiviseEvent.fromJSONField(field); },
315
- fromJSON: function (json) { return FixedIncentiviseEvent.fromJSON(json); },
316
- fromSuiParsedData: function (content) { return FixedIncentiviseEvent.fromSuiParsedData(content); },
317
- fromSuiObjectData: function (content) { return FixedIncentiviseEvent.fromSuiObjectData(content); },
318
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
319
- return [2 /*return*/, FixedIncentiviseEvent.fetch(client, id)];
320
- }); }); },
321
- new: function (fields) {
322
- return new FixedIncentiviseEvent([], fields);
323
- },
324
- kind: "StructClassReified",
325
- };
326
- };
327
- Object.defineProperty(FixedIncentiviseEvent, "r", {
328
- get: function () {
329
- return FixedIncentiviseEvent.reified();
330
- },
331
- enumerable: false,
332
- configurable: true
333
- });
334
- FixedIncentiviseEvent.phantom = function () {
335
- return (0, reified_1.phantom)(FixedIncentiviseEvent.reified());
336
- };
337
- Object.defineProperty(FixedIncentiviseEvent, "p", {
338
- get: function () {
339
- return FixedIncentiviseEvent.phantom();
340
- },
341
- enumerable: false,
342
- configurable: true
343
- });
344
- Object.defineProperty(FixedIncentiviseEvent, "bcs", {
345
- get: function () {
346
- return bcs_1.bcs.struct("FixedIncentiviseEvent", {
347
- signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
348
- token: structs_1.TypeName.bcs,
349
- amount: bcs_1.bcs.u64(),
350
- fixed_incentive_amount: bcs_1.bcs.u64(),
351
- });
352
- },
353
- enumerable: false,
354
- configurable: true
355
- });
356
- FixedIncentiviseEvent.fromFields = function (fields) {
357
- return FixedIncentiviseEvent.reified().new({
358
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
359
- token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
360
- amount: (0, reified_1.decodeFromFields)("u64", fields.amount),
361
- fixedIncentiveAmount: (0, reified_1.decodeFromFields)("u64", fields.fixed_incentive_amount),
362
- });
363
- };
364
- FixedIncentiviseEvent.fromFieldsWithTypes = function (item) {
365
- if (!isFixedIncentiviseEvent(item.type)) {
366
- throw new Error("not a FixedIncentiviseEvent type");
367
- }
368
- return FixedIncentiviseEvent.reified().new({
369
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
370
- token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
371
- amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount),
372
- fixedIncentiveAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.fixed_incentive_amount),
373
- });
374
- };
375
- FixedIncentiviseEvent.fromBcs = function (data) {
376
- return FixedIncentiviseEvent.fromFields(FixedIncentiviseEvent.bcs.parse(data));
377
- };
378
- FixedIncentiviseEvent.prototype.toJSONField = function () {
379
- return {
380
- signer: this.signer,
381
- token: this.token.toJSONField(),
382
- amount: this.amount.toString(),
383
- fixedIncentiveAmount: this.fixedIncentiveAmount.toString(),
384
- };
385
- };
386
- FixedIncentiviseEvent.prototype.toJSON = function () {
387
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
388
- };
389
- FixedIncentiviseEvent.fromJSONField = function (field) {
390
- return FixedIncentiviseEvent.reified().new({
391
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
392
- token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
393
- amount: (0, reified_1.decodeFromJSONField)("u64", field.amount),
394
- fixedIncentiveAmount: (0, reified_1.decodeFromJSONField)("u64", field.fixedIncentiveAmount),
395
- });
396
- };
397
- FixedIncentiviseEvent.fromJSON = function (json) {
398
- if (json.$typeName !== FixedIncentiviseEvent.$typeName) {
399
- throw new Error("not a WithTwoGenerics json object");
400
- }
401
- return FixedIncentiviseEvent.fromJSONField(json);
402
- };
403
- FixedIncentiviseEvent.fromSuiParsedData = function (content) {
404
- if (content.dataType !== "moveObject") {
405
- throw new Error("not an object");
406
- }
407
- if (!isFixedIncentiviseEvent(content.type)) {
408
- throw new Error("object at ".concat(content.fields.id, " is not a FixedIncentiviseEvent object"));
409
- }
410
- return FixedIncentiviseEvent.fromFieldsWithTypes(content);
411
- };
412
- FixedIncentiviseEvent.fromSuiObjectData = function (data) {
413
- if (data.bcs) {
414
- if (data.bcs.dataType !== "moveObject" || !isFixedIncentiviseEvent(data.bcs.type)) {
415
- throw new Error("object at is not a FixedIncentiviseEvent object");
416
- }
417
- return FixedIncentiviseEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
418
- }
419
- if (data.content) {
420
- return FixedIncentiviseEvent.fromSuiParsedData(data.content);
421
- }
422
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
423
- };
424
- FixedIncentiviseEvent.fetch = function (client, id) {
425
- return __awaiter(this, void 0, void 0, function () {
426
- var res;
427
- var _a, _b;
428
- return __generator(this, function (_c) {
429
- switch (_c.label) {
430
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
431
- case 1:
432
- res = _c.sent();
433
- if (res.error) {
434
- throw new Error("error fetching FixedIncentiviseEvent object at id ".concat(id, ": ").concat(res.error.code));
435
- }
436
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isFixedIncentiviseEvent(res.data.bcs.type)) {
437
- throw new Error("object at id ".concat(id, " is not a FixedIncentiviseEvent object"));
438
- }
439
- return [2 /*return*/, FixedIncentiviseEvent.fromSuiObjectData(res.data)];
440
- }
441
- });
442
- });
443
- };
444
- FixedIncentiviseEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::FixedIncentiviseEvent");
445
- FixedIncentiviseEvent.$numTypeParams = 0;
446
- FixedIncentiviseEvent.$isPhantom = [];
447
- return FixedIncentiviseEvent;
448
- }());
449
- exports.FixedIncentiviseEvent = FixedIncentiviseEvent;
450
- /* ============================== RemovePortfolioVaultAuthorizedUserEvent =============================== */
451
- function isRemovePortfolioVaultAuthorizedUserEvent(type) {
452
- type = (0, util_1.compressSuiType)(type);
453
- return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::RemovePortfolioVaultAuthorizedUserEvent");
454
- }
455
- var RemovePortfolioVaultAuthorizedUserEvent = /** @class */ (function () {
456
- function RemovePortfolioVaultAuthorizedUserEvent(typeArgs, fields) {
457
- this.__StructClass = true;
458
- this.$typeName = RemovePortfolioVaultAuthorizedUserEvent.$typeName;
459
- this.$isPhantom = RemovePortfolioVaultAuthorizedUserEvent.$isPhantom;
460
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemovePortfolioVaultAuthorizedUserEvent.$typeName], __read(typeArgs), false));
461
- this.$typeArgs = typeArgs;
462
- this.signer = fields.signer;
463
- this.index = fields.index;
464
- this.users = fields.users;
465
- }
466
- RemovePortfolioVaultAuthorizedUserEvent.reified = function () {
467
- var _this = this;
468
- return {
469
- typeName: RemovePortfolioVaultAuthorizedUserEvent.$typeName,
470
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemovePortfolioVaultAuthorizedUserEvent.$typeName], [], false)),
471
- typeArgs: [],
472
- isPhantom: RemovePortfolioVaultAuthorizedUserEvent.$isPhantom,
473
- reifiedTypeArgs: [],
474
- fromFields: function (fields) { return RemovePortfolioVaultAuthorizedUserEvent.fromFields(fields); },
475
- fromFieldsWithTypes: function (item) { return RemovePortfolioVaultAuthorizedUserEvent.fromFieldsWithTypes(item); },
476
- fromBcs: function (data) { return RemovePortfolioVaultAuthorizedUserEvent.fromBcs(data); },
477
- bcs: RemovePortfolioVaultAuthorizedUserEvent.bcs,
478
- fromJSONField: function (field) { return RemovePortfolioVaultAuthorizedUserEvent.fromJSONField(field); },
479
- fromJSON: function (json) { return RemovePortfolioVaultAuthorizedUserEvent.fromJSON(json); },
480
- fromSuiParsedData: function (content) { return RemovePortfolioVaultAuthorizedUserEvent.fromSuiParsedData(content); },
481
- fromSuiObjectData: function (content) { return RemovePortfolioVaultAuthorizedUserEvent.fromSuiObjectData(content); },
482
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
483
- return [2 /*return*/, RemovePortfolioVaultAuthorizedUserEvent.fetch(client, id)];
484
- }); }); },
485
- new: function (fields) {
486
- return new RemovePortfolioVaultAuthorizedUserEvent([], fields);
487
- },
488
- kind: "StructClassReified",
489
- };
490
- };
491
- Object.defineProperty(RemovePortfolioVaultAuthorizedUserEvent, "r", {
492
- get: function () {
493
- return RemovePortfolioVaultAuthorizedUserEvent.reified();
494
- },
495
- enumerable: false,
496
- configurable: true
497
- });
498
- RemovePortfolioVaultAuthorizedUserEvent.phantom = function () {
499
- return (0, reified_1.phantom)(RemovePortfolioVaultAuthorizedUserEvent.reified());
500
- };
501
- Object.defineProperty(RemovePortfolioVaultAuthorizedUserEvent, "p", {
502
- get: function () {
503
- return RemovePortfolioVaultAuthorizedUserEvent.phantom();
504
- },
505
- enumerable: false,
506
- configurable: true
507
- });
508
- Object.defineProperty(RemovePortfolioVaultAuthorizedUserEvent, "bcs", {
509
- get: function () {
510
- return bcs_1.bcs.struct("RemovePortfolioVaultAuthorizedUserEvent", {
511
- signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
512
- index: bcs_1.bcs.u64(),
513
- users: bcs_1.bcs.vector(bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } })),
514
- });
515
- },
516
- enumerable: false,
517
- configurable: true
518
- });
519
- RemovePortfolioVaultAuthorizedUserEvent.fromFields = function (fields) {
520
- return RemovePortfolioVaultAuthorizedUserEvent.reified().new({
521
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
522
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
523
- users: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.users),
524
- });
525
- };
526
- RemovePortfolioVaultAuthorizedUserEvent.fromFieldsWithTypes = function (item) {
527
- if (!isRemovePortfolioVaultAuthorizedUserEvent(item.type)) {
528
- throw new Error("not a RemovePortfolioVaultAuthorizedUserEvent type");
529
- }
530
- return RemovePortfolioVaultAuthorizedUserEvent.reified().new({
531
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
532
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
533
- users: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.users),
534
- });
535
- };
536
- RemovePortfolioVaultAuthorizedUserEvent.fromBcs = function (data) {
537
- return RemovePortfolioVaultAuthorizedUserEvent.fromFields(RemovePortfolioVaultAuthorizedUserEvent.bcs.parse(data));
538
- };
539
- RemovePortfolioVaultAuthorizedUserEvent.prototype.toJSONField = function () {
540
- return {
541
- signer: this.signer,
542
- index: this.index.toString(),
543
- users: (0, reified_1.fieldToJSON)("vector<address>", this.users),
544
- };
545
- };
546
- RemovePortfolioVaultAuthorizedUserEvent.prototype.toJSON = function () {
547
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
548
- };
549
- RemovePortfolioVaultAuthorizedUserEvent.fromJSONField = function (field) {
550
- return RemovePortfolioVaultAuthorizedUserEvent.reified().new({
551
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
552
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
553
- users: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.users),
554
- });
555
- };
556
- RemovePortfolioVaultAuthorizedUserEvent.fromJSON = function (json) {
557
- if (json.$typeName !== RemovePortfolioVaultAuthorizedUserEvent.$typeName) {
558
- throw new Error("not a WithTwoGenerics json object");
559
- }
560
- return RemovePortfolioVaultAuthorizedUserEvent.fromJSONField(json);
561
- };
562
- RemovePortfolioVaultAuthorizedUserEvent.fromSuiParsedData = function (content) {
563
- if (content.dataType !== "moveObject") {
564
- throw new Error("not an object");
565
- }
566
- if (!isRemovePortfolioVaultAuthorizedUserEvent(content.type)) {
567
- throw new Error("object at ".concat(content.fields.id, " is not a RemovePortfolioVaultAuthorizedUserEvent object"));
568
- }
569
- return RemovePortfolioVaultAuthorizedUserEvent.fromFieldsWithTypes(content);
570
- };
571
- RemovePortfolioVaultAuthorizedUserEvent.fromSuiObjectData = function (data) {
572
- if (data.bcs) {
573
- if (data.bcs.dataType !== "moveObject" || !isRemovePortfolioVaultAuthorizedUserEvent(data.bcs.type)) {
574
- throw new Error("object at is not a RemovePortfolioVaultAuthorizedUserEvent object");
575
- }
576
- return RemovePortfolioVaultAuthorizedUserEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
577
- }
578
- if (data.content) {
579
- return RemovePortfolioVaultAuthorizedUserEvent.fromSuiParsedData(data.content);
580
- }
581
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
582
- };
583
- RemovePortfolioVaultAuthorizedUserEvent.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 RemovePortfolioVaultAuthorizedUserEvent 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" || !isRemovePortfolioVaultAuthorizedUserEvent(res.data.bcs.type)) {
596
- throw new Error("object at id ".concat(id, " is not a RemovePortfolioVaultAuthorizedUserEvent object"));
597
- }
598
- return [2 /*return*/, RemovePortfolioVaultAuthorizedUserEvent.fromSuiObjectData(res.data)];
599
- }
600
- });
601
- });
602
- };
603
- RemovePortfolioVaultAuthorizedUserEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::RemovePortfolioVaultAuthorizedUserEvent");
604
- RemovePortfolioVaultAuthorizedUserEvent.$numTypeParams = 0;
605
- RemovePortfolioVaultAuthorizedUserEvent.$isPhantom = [];
606
- return RemovePortfolioVaultAuthorizedUserEvent;
607
- }());
608
- exports.RemovePortfolioVaultAuthorizedUserEvent = RemovePortfolioVaultAuthorizedUserEvent;
609
- /* ============================== UpdateActiveVaultConfigEvent =============================== */
610
- function isUpdateActiveVaultConfigEvent(type) {
611
- type = (0, util_1.compressSuiType)(type);
612
- return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateActiveVaultConfigEvent");
613
- }
614
- var UpdateActiveVaultConfigEvent = /** @class */ (function () {
615
- function UpdateActiveVaultConfigEvent(typeArgs, fields) {
616
- this.__StructClass = true;
617
- this.$typeName = UpdateActiveVaultConfigEvent.$typeName;
618
- this.$isPhantom = UpdateActiveVaultConfigEvent.$isPhantom;
619
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateActiveVaultConfigEvent.$typeName], __read(typeArgs), false));
620
- this.$typeArgs = typeArgs;
621
- this.signer = fields.signer;
622
- this.index = fields.index;
623
- this.previous = fields.previous;
624
- this.current = fields.current;
625
- }
626
- UpdateActiveVaultConfigEvent.reified = function () {
627
- var _this = this;
628
- return {
629
- typeName: UpdateActiveVaultConfigEvent.$typeName,
630
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateActiveVaultConfigEvent.$typeName], [], false)),
631
- typeArgs: [],
632
- isPhantom: UpdateActiveVaultConfigEvent.$isPhantom,
633
- reifiedTypeArgs: [],
634
- fromFields: function (fields) { return UpdateActiveVaultConfigEvent.fromFields(fields); },
635
- fromFieldsWithTypes: function (item) { return UpdateActiveVaultConfigEvent.fromFieldsWithTypes(item); },
636
- fromBcs: function (data) { return UpdateActiveVaultConfigEvent.fromBcs(data); },
637
- bcs: UpdateActiveVaultConfigEvent.bcs,
638
- fromJSONField: function (field) { return UpdateActiveVaultConfigEvent.fromJSONField(field); },
639
- fromJSON: function (json) { return UpdateActiveVaultConfigEvent.fromJSON(json); },
640
- fromSuiParsedData: function (content) { return UpdateActiveVaultConfigEvent.fromSuiParsedData(content); },
641
- fromSuiObjectData: function (content) { return UpdateActiveVaultConfigEvent.fromSuiObjectData(content); },
642
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
643
- return [2 /*return*/, UpdateActiveVaultConfigEvent.fetch(client, id)];
644
- }); }); },
645
- new: function (fields) {
646
- return new UpdateActiveVaultConfigEvent([], fields);
647
- },
648
- kind: "StructClassReified",
649
- };
650
- };
651
- Object.defineProperty(UpdateActiveVaultConfigEvent, "r", {
652
- get: function () {
653
- return UpdateActiveVaultConfigEvent.reified();
654
- },
655
- enumerable: false,
656
- configurable: true
657
- });
658
- UpdateActiveVaultConfigEvent.phantom = function () {
659
- return (0, reified_1.phantom)(UpdateActiveVaultConfigEvent.reified());
660
- };
661
- Object.defineProperty(UpdateActiveVaultConfigEvent, "p", {
662
- get: function () {
663
- return UpdateActiveVaultConfigEvent.phantom();
664
- },
665
- enumerable: false,
666
- configurable: true
667
- });
668
- Object.defineProperty(UpdateActiveVaultConfigEvent, "bcs", {
669
- get: function () {
670
- return bcs_1.bcs.struct("UpdateActiveVaultConfigEvent", {
671
- signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
672
- index: bcs_1.bcs.u64(),
673
- previous: structs_2.VaultConfig.bcs,
674
- current: structs_2.VaultConfig.bcs,
675
- });
676
- },
677
- enumerable: false,
678
- configurable: true
679
- });
680
- UpdateActiveVaultConfigEvent.fromFields = function (fields) {
681
- return UpdateActiveVaultConfigEvent.reified().new({
682
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
683
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
684
- previous: (0, reified_1.decodeFromFields)(structs_2.VaultConfig.reified(), fields.previous),
685
- current: (0, reified_1.decodeFromFields)(structs_2.VaultConfig.reified(), fields.current),
686
- });
687
- };
688
- UpdateActiveVaultConfigEvent.fromFieldsWithTypes = function (item) {
689
- if (!isUpdateActiveVaultConfigEvent(item.type)) {
690
- throw new Error("not a UpdateActiveVaultConfigEvent type");
691
- }
692
- return UpdateActiveVaultConfigEvent.reified().new({
693
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
694
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
695
- previous: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.VaultConfig.reified(), item.fields.previous),
696
- current: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.VaultConfig.reified(), item.fields.current),
697
- });
698
- };
699
- UpdateActiveVaultConfigEvent.fromBcs = function (data) {
700
- return UpdateActiveVaultConfigEvent.fromFields(UpdateActiveVaultConfigEvent.bcs.parse(data));
701
- };
702
- UpdateActiveVaultConfigEvent.prototype.toJSONField = function () {
703
- return {
704
- signer: this.signer,
705
- index: this.index.toString(),
706
- previous: this.previous.toJSONField(),
707
- current: this.current.toJSONField(),
708
- };
709
- };
710
- UpdateActiveVaultConfigEvent.prototype.toJSON = function () {
711
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
712
- };
713
- UpdateActiveVaultConfigEvent.fromJSONField = function (field) {
714
- return UpdateActiveVaultConfigEvent.reified().new({
715
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
716
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
717
- previous: (0, reified_1.decodeFromJSONField)(structs_2.VaultConfig.reified(), field.previous),
718
- current: (0, reified_1.decodeFromJSONField)(structs_2.VaultConfig.reified(), field.current),
719
- });
720
- };
721
- UpdateActiveVaultConfigEvent.fromJSON = function (json) {
722
- if (json.$typeName !== UpdateActiveVaultConfigEvent.$typeName) {
723
- throw new Error("not a WithTwoGenerics json object");
724
- }
725
- return UpdateActiveVaultConfigEvent.fromJSONField(json);
726
- };
727
- UpdateActiveVaultConfigEvent.fromSuiParsedData = function (content) {
728
- if (content.dataType !== "moveObject") {
729
- throw new Error("not an object");
730
- }
731
- if (!isUpdateActiveVaultConfigEvent(content.type)) {
732
- throw new Error("object at ".concat(content.fields.id, " is not a UpdateActiveVaultConfigEvent object"));
733
- }
734
- return UpdateActiveVaultConfigEvent.fromFieldsWithTypes(content);
735
- };
736
- UpdateActiveVaultConfigEvent.fromSuiObjectData = function (data) {
737
- if (data.bcs) {
738
- if (data.bcs.dataType !== "moveObject" || !isUpdateActiveVaultConfigEvent(data.bcs.type)) {
739
- throw new Error("object at is not a UpdateActiveVaultConfigEvent object");
740
- }
741
- return UpdateActiveVaultConfigEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
742
- }
743
- if (data.content) {
744
- return UpdateActiveVaultConfigEvent.fromSuiParsedData(data.content);
745
- }
746
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
747
- };
748
- UpdateActiveVaultConfigEvent.fetch = function (client, id) {
749
- return __awaiter(this, void 0, void 0, function () {
750
- var res;
751
- var _a, _b;
752
- return __generator(this, function (_c) {
753
- switch (_c.label) {
754
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
755
- case 1:
756
- res = _c.sent();
757
- if (res.error) {
758
- throw new Error("error fetching UpdateActiveVaultConfigEvent object at id ".concat(id, ": ").concat(res.error.code));
759
- }
760
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateActiveVaultConfigEvent(res.data.bcs.type)) {
761
- throw new Error("object at id ".concat(id, " is not a UpdateActiveVaultConfigEvent object"));
762
- }
763
- return [2 /*return*/, UpdateActiveVaultConfigEvent.fromSuiObjectData(res.data)];
764
- }
765
- });
766
- });
767
- };
768
- UpdateActiveVaultConfigEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateActiveVaultConfigEvent");
769
- UpdateActiveVaultConfigEvent.$numTypeParams = 0;
770
- UpdateActiveVaultConfigEvent.$isPhantom = [];
771
- return UpdateActiveVaultConfigEvent;
772
- }());
773
- exports.UpdateActiveVaultConfigEvent = UpdateActiveVaultConfigEvent;
774
- /* ============================== UpdateAuctionConfigEvent =============================== */
775
- function isUpdateAuctionConfigEvent(type) {
776
- type = (0, util_1.compressSuiType)(type);
777
- return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateAuctionConfigEvent");
778
- }
779
- var UpdateAuctionConfigEvent = /** @class */ (function () {
780
- function UpdateAuctionConfigEvent(typeArgs, fields) {
781
- this.__StructClass = true;
782
- this.$typeName = UpdateAuctionConfigEvent.$typeName;
783
- this.$isPhantom = UpdateAuctionConfigEvent.$isPhantom;
784
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateAuctionConfigEvent.$typeName], __read(typeArgs), false));
785
- this.$typeArgs = typeArgs;
786
- this.signer = fields.signer;
787
- this.index = fields.index;
788
- this.startTsMs = fields.startTsMs;
789
- this.endTsMs = fields.endTsMs;
790
- this.decaySpeed = fields.decaySpeed;
791
- this.initialPrice = fields.initialPrice;
792
- this.finalPrice = fields.finalPrice;
793
- this.feeBp = fields.feeBp;
794
- this.incentiveBp = fields.incentiveBp;
795
- this.tokenDecimal = fields.tokenDecimal;
796
- this.sizeDecimal = fields.sizeDecimal;
797
- this.ableToRemoveBid = fields.ableToRemoveBid;
798
- }
799
- UpdateAuctionConfigEvent.reified = function () {
800
- var _this = this;
801
- return {
802
- typeName: UpdateAuctionConfigEvent.$typeName,
803
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateAuctionConfigEvent.$typeName], [], false)),
804
- typeArgs: [],
805
- isPhantom: UpdateAuctionConfigEvent.$isPhantom,
806
- reifiedTypeArgs: [],
807
- fromFields: function (fields) { return UpdateAuctionConfigEvent.fromFields(fields); },
808
- fromFieldsWithTypes: function (item) { return UpdateAuctionConfigEvent.fromFieldsWithTypes(item); },
809
- fromBcs: function (data) { return UpdateAuctionConfigEvent.fromBcs(data); },
810
- bcs: UpdateAuctionConfigEvent.bcs,
811
- fromJSONField: function (field) { return UpdateAuctionConfigEvent.fromJSONField(field); },
812
- fromJSON: function (json) { return UpdateAuctionConfigEvent.fromJSON(json); },
813
- fromSuiParsedData: function (content) { return UpdateAuctionConfigEvent.fromSuiParsedData(content); },
814
- fromSuiObjectData: function (content) { return UpdateAuctionConfigEvent.fromSuiObjectData(content); },
815
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
816
- return [2 /*return*/, UpdateAuctionConfigEvent.fetch(client, id)];
817
- }); }); },
818
- new: function (fields) {
819
- return new UpdateAuctionConfigEvent([], fields);
820
- },
821
- kind: "StructClassReified",
822
- };
823
- };
824
- Object.defineProperty(UpdateAuctionConfigEvent, "r", {
825
- get: function () {
826
- return UpdateAuctionConfigEvent.reified();
827
- },
828
- enumerable: false,
829
- configurable: true
830
- });
831
- UpdateAuctionConfigEvent.phantom = function () {
832
- return (0, reified_1.phantom)(UpdateAuctionConfigEvent.reified());
833
- };
834
- Object.defineProperty(UpdateAuctionConfigEvent, "p", {
835
- get: function () {
836
- return UpdateAuctionConfigEvent.phantom();
837
- },
838
- enumerable: false,
839
- configurable: true
840
- });
841
- Object.defineProperty(UpdateAuctionConfigEvent, "bcs", {
842
- get: function () {
843
- return bcs_1.bcs.struct("UpdateAuctionConfigEvent", {
844
- signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
845
- index: bcs_1.bcs.u64(),
846
- start_ts_ms: bcs_1.bcs.u64(),
847
- end_ts_ms: bcs_1.bcs.u64(),
848
- decay_speed: bcs_1.bcs.u64(),
849
- initial_price: bcs_1.bcs.u64(),
850
- final_price: bcs_1.bcs.u64(),
851
- fee_bp: bcs_1.bcs.u64(),
852
- incentive_bp: bcs_1.bcs.u64(),
853
- token_decimal: bcs_1.bcs.u64(),
854
- size_decimal: bcs_1.bcs.u64(),
855
- able_to_remove_bid: bcs_1.bcs.bool(),
856
- });
857
- },
858
- enumerable: false,
859
- configurable: true
860
- });
861
- UpdateAuctionConfigEvent.fromFields = function (fields) {
862
- return UpdateAuctionConfigEvent.reified().new({
863
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
864
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
865
- startTsMs: (0, reified_1.decodeFromFields)("u64", fields.start_ts_ms),
866
- endTsMs: (0, reified_1.decodeFromFields)("u64", fields.end_ts_ms),
867
- decaySpeed: (0, reified_1.decodeFromFields)("u64", fields.decay_speed),
868
- initialPrice: (0, reified_1.decodeFromFields)("u64", fields.initial_price),
869
- finalPrice: (0, reified_1.decodeFromFields)("u64", fields.final_price),
870
- feeBp: (0, reified_1.decodeFromFields)("u64", fields.fee_bp),
871
- incentiveBp: (0, reified_1.decodeFromFields)("u64", fields.incentive_bp),
872
- tokenDecimal: (0, reified_1.decodeFromFields)("u64", fields.token_decimal),
873
- sizeDecimal: (0, reified_1.decodeFromFields)("u64", fields.size_decimal),
874
- ableToRemoveBid: (0, reified_1.decodeFromFields)("bool", fields.able_to_remove_bid),
875
- });
876
- };
877
- UpdateAuctionConfigEvent.fromFieldsWithTypes = function (item) {
878
- if (!isUpdateAuctionConfigEvent(item.type)) {
879
- throw new Error("not a UpdateAuctionConfigEvent type");
880
- }
881
- return UpdateAuctionConfigEvent.reified().new({
882
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
883
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
884
- startTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.start_ts_ms),
885
- endTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.end_ts_ms),
886
- decaySpeed: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.decay_speed),
887
- initialPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.initial_price),
888
- finalPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.final_price),
889
- feeBp: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.fee_bp),
890
- incentiveBp: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.incentive_bp),
891
- tokenDecimal: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.token_decimal),
892
- sizeDecimal: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size_decimal),
893
- ableToRemoveBid: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.able_to_remove_bid),
894
- });
895
- };
896
- UpdateAuctionConfigEvent.fromBcs = function (data) {
897
- return UpdateAuctionConfigEvent.fromFields(UpdateAuctionConfigEvent.bcs.parse(data));
898
- };
899
- UpdateAuctionConfigEvent.prototype.toJSONField = function () {
900
- return {
901
- signer: this.signer,
902
- index: this.index.toString(),
903
- startTsMs: this.startTsMs.toString(),
904
- endTsMs: this.endTsMs.toString(),
905
- decaySpeed: this.decaySpeed.toString(),
906
- initialPrice: this.initialPrice.toString(),
907
- finalPrice: this.finalPrice.toString(),
908
- feeBp: this.feeBp.toString(),
909
- incentiveBp: this.incentiveBp.toString(),
910
- tokenDecimal: this.tokenDecimal.toString(),
911
- sizeDecimal: this.sizeDecimal.toString(),
912
- ableToRemoveBid: this.ableToRemoveBid,
913
- };
914
- };
915
- UpdateAuctionConfigEvent.prototype.toJSON = function () {
916
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
917
- };
918
- UpdateAuctionConfigEvent.fromJSONField = function (field) {
919
- return UpdateAuctionConfigEvent.reified().new({
920
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
921
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
922
- startTsMs: (0, reified_1.decodeFromJSONField)("u64", field.startTsMs),
923
- endTsMs: (0, reified_1.decodeFromJSONField)("u64", field.endTsMs),
924
- decaySpeed: (0, reified_1.decodeFromJSONField)("u64", field.decaySpeed),
925
- initialPrice: (0, reified_1.decodeFromJSONField)("u64", field.initialPrice),
926
- finalPrice: (0, reified_1.decodeFromJSONField)("u64", field.finalPrice),
927
- feeBp: (0, reified_1.decodeFromJSONField)("u64", field.feeBp),
928
- incentiveBp: (0, reified_1.decodeFromJSONField)("u64", field.incentiveBp),
929
- tokenDecimal: (0, reified_1.decodeFromJSONField)("u64", field.tokenDecimal),
930
- sizeDecimal: (0, reified_1.decodeFromJSONField)("u64", field.sizeDecimal),
931
- ableToRemoveBid: (0, reified_1.decodeFromJSONField)("bool", field.ableToRemoveBid),
932
- });
933
- };
934
- UpdateAuctionConfigEvent.fromJSON = function (json) {
935
- if (json.$typeName !== UpdateAuctionConfigEvent.$typeName) {
936
- throw new Error("not a WithTwoGenerics json object");
937
- }
938
- return UpdateAuctionConfigEvent.fromJSONField(json);
939
- };
940
- UpdateAuctionConfigEvent.fromSuiParsedData = function (content) {
941
- if (content.dataType !== "moveObject") {
942
- throw new Error("not an object");
943
- }
944
- if (!isUpdateAuctionConfigEvent(content.type)) {
945
- throw new Error("object at ".concat(content.fields.id, " is not a UpdateAuctionConfigEvent object"));
946
- }
947
- return UpdateAuctionConfigEvent.fromFieldsWithTypes(content);
948
- };
949
- UpdateAuctionConfigEvent.fromSuiObjectData = function (data) {
950
- if (data.bcs) {
951
- if (data.bcs.dataType !== "moveObject" || !isUpdateAuctionConfigEvent(data.bcs.type)) {
952
- throw new Error("object at is not a UpdateAuctionConfigEvent object");
953
- }
954
- return UpdateAuctionConfigEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
955
- }
956
- if (data.content) {
957
- return UpdateAuctionConfigEvent.fromSuiParsedData(data.content);
958
- }
959
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
960
- };
961
- UpdateAuctionConfigEvent.fetch = function (client, id) {
962
- return __awaiter(this, void 0, void 0, function () {
963
- var res;
964
- var _a, _b;
965
- return __generator(this, function (_c) {
966
- switch (_c.label) {
967
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
968
- case 1:
969
- res = _c.sent();
970
- if (res.error) {
971
- throw new Error("error fetching UpdateAuctionConfigEvent object at id ".concat(id, ": ").concat(res.error.code));
972
- }
973
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateAuctionConfigEvent(res.data.bcs.type)) {
974
- throw new Error("object at id ".concat(id, " is not a UpdateAuctionConfigEvent object"));
975
- }
976
- return [2 /*return*/, UpdateAuctionConfigEvent.fromSuiObjectData(res.data)];
977
- }
978
- });
979
- });
980
- };
981
- UpdateAuctionConfigEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateAuctionConfigEvent");
982
- UpdateAuctionConfigEvent.$numTypeParams = 0;
983
- UpdateAuctionConfigEvent.$isPhantom = [];
984
- return UpdateAuctionConfigEvent;
985
- }());
986
- exports.UpdateAuctionConfigEvent = UpdateAuctionConfigEvent;
987
- /* ============================== UpdateConfigEvent =============================== */
988
- function isUpdateConfigEvent(type) {
989
- type = (0, util_1.compressSuiType)(type);
990
- return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateConfigEvent");
991
- }
992
- var UpdateConfigEvent = /** @class */ (function () {
993
- function UpdateConfigEvent(typeArgs, fields) {
994
- this.__StructClass = true;
995
- this.$typeName = UpdateConfigEvent.$typeName;
996
- this.$isPhantom = UpdateConfigEvent.$isPhantom;
997
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateConfigEvent.$typeName], __read(typeArgs), false));
998
- this.$typeArgs = typeArgs;
999
- this.signer = fields.signer;
1000
- this.index = fields.index;
1001
- this.previous = fields.previous;
1002
- this.current = fields.current;
1003
- }
1004
- UpdateConfigEvent.reified = function () {
1005
- var _this = this;
1006
- return {
1007
- typeName: UpdateConfigEvent.$typeName,
1008
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateConfigEvent.$typeName], [], false)),
1009
- typeArgs: [],
1010
- isPhantom: UpdateConfigEvent.$isPhantom,
1011
- reifiedTypeArgs: [],
1012
- fromFields: function (fields) { return UpdateConfigEvent.fromFields(fields); },
1013
- fromFieldsWithTypes: function (item) { return UpdateConfigEvent.fromFieldsWithTypes(item); },
1014
- fromBcs: function (data) { return UpdateConfigEvent.fromBcs(data); },
1015
- bcs: UpdateConfigEvent.bcs,
1016
- fromJSONField: function (field) { return UpdateConfigEvent.fromJSONField(field); },
1017
- fromJSON: function (json) { return UpdateConfigEvent.fromJSON(json); },
1018
- fromSuiParsedData: function (content) { return UpdateConfigEvent.fromSuiParsedData(content); },
1019
- fromSuiObjectData: function (content) { return UpdateConfigEvent.fromSuiObjectData(content); },
1020
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1021
- return [2 /*return*/, UpdateConfigEvent.fetch(client, id)];
1022
- }); }); },
1023
- new: function (fields) {
1024
- return new UpdateConfigEvent([], fields);
1025
- },
1026
- kind: "StructClassReified",
1027
- };
1028
- };
1029
- Object.defineProperty(UpdateConfigEvent, "r", {
1030
- get: function () {
1031
- return UpdateConfigEvent.reified();
1032
- },
1033
- enumerable: false,
1034
- configurable: true
1035
- });
1036
- UpdateConfigEvent.phantom = function () {
1037
- return (0, reified_1.phantom)(UpdateConfigEvent.reified());
1038
- };
1039
- Object.defineProperty(UpdateConfigEvent, "p", {
1040
- get: function () {
1041
- return UpdateConfigEvent.phantom();
1042
- },
1043
- enumerable: false,
1044
- configurable: true
1045
- });
1046
- Object.defineProperty(UpdateConfigEvent, "bcs", {
1047
- get: function () {
1048
- return bcs_1.bcs.struct("UpdateConfigEvent", {
1049
- signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
1050
- index: bcs_1.bcs.u64(),
1051
- previous: structs_2.Config.bcs,
1052
- current: structs_2.Config.bcs,
1053
- });
1054
- },
1055
- enumerable: false,
1056
- configurable: true
1057
- });
1058
- UpdateConfigEvent.fromFields = function (fields) {
1059
- return UpdateConfigEvent.reified().new({
1060
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1061
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
1062
- previous: (0, reified_1.decodeFromFields)(structs_2.Config.reified(), fields.previous),
1063
- current: (0, reified_1.decodeFromFields)(structs_2.Config.reified(), fields.current),
1064
- });
1065
- };
1066
- UpdateConfigEvent.fromFieldsWithTypes = function (item) {
1067
- if (!isUpdateConfigEvent(item.type)) {
1068
- throw new Error("not a UpdateConfigEvent type");
1069
- }
1070
- return UpdateConfigEvent.reified().new({
1071
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1072
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
1073
- previous: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.Config.reified(), item.fields.previous),
1074
- current: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.Config.reified(), item.fields.current),
1075
- });
1076
- };
1077
- UpdateConfigEvent.fromBcs = function (data) {
1078
- return UpdateConfigEvent.fromFields(UpdateConfigEvent.bcs.parse(data));
1079
- };
1080
- UpdateConfigEvent.prototype.toJSONField = function () {
1081
- return {
1082
- signer: this.signer,
1083
- index: this.index.toString(),
1084
- previous: this.previous.toJSONField(),
1085
- current: this.current.toJSONField(),
1086
- };
1087
- };
1088
- UpdateConfigEvent.prototype.toJSON = function () {
1089
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1090
- };
1091
- UpdateConfigEvent.fromJSONField = function (field) {
1092
- return UpdateConfigEvent.reified().new({
1093
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1094
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
1095
- previous: (0, reified_1.decodeFromJSONField)(structs_2.Config.reified(), field.previous),
1096
- current: (0, reified_1.decodeFromJSONField)(structs_2.Config.reified(), field.current),
1097
- });
1098
- };
1099
- UpdateConfigEvent.fromJSON = function (json) {
1100
- if (json.$typeName !== UpdateConfigEvent.$typeName) {
1101
- throw new Error("not a WithTwoGenerics json object");
1102
- }
1103
- return UpdateConfigEvent.fromJSONField(json);
1104
- };
1105
- UpdateConfigEvent.fromSuiParsedData = function (content) {
1106
- if (content.dataType !== "moveObject") {
1107
- throw new Error("not an object");
1108
- }
1109
- if (!isUpdateConfigEvent(content.type)) {
1110
- throw new Error("object at ".concat(content.fields.id, " is not a UpdateConfigEvent object"));
1111
- }
1112
- return UpdateConfigEvent.fromFieldsWithTypes(content);
1113
- };
1114
- UpdateConfigEvent.fromSuiObjectData = function (data) {
1115
- if (data.bcs) {
1116
- if (data.bcs.dataType !== "moveObject" || !isUpdateConfigEvent(data.bcs.type)) {
1117
- throw new Error("object at is not a UpdateConfigEvent object");
1118
- }
1119
- return UpdateConfigEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1120
- }
1121
- if (data.content) {
1122
- return UpdateConfigEvent.fromSuiParsedData(data.content);
1123
- }
1124
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1125
- };
1126
- UpdateConfigEvent.fetch = function (client, id) {
1127
- return __awaiter(this, void 0, void 0, function () {
1128
- var res;
1129
- var _a, _b;
1130
- return __generator(this, function (_c) {
1131
- switch (_c.label) {
1132
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1133
- case 1:
1134
- res = _c.sent();
1135
- if (res.error) {
1136
- throw new Error("error fetching UpdateConfigEvent object at id ".concat(id, ": ").concat(res.error.code));
1137
- }
1138
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateConfigEvent(res.data.bcs.type)) {
1139
- throw new Error("object at id ".concat(id, " is not a UpdateConfigEvent object"));
1140
- }
1141
- return [2 /*return*/, UpdateConfigEvent.fromSuiObjectData(res.data)];
1142
- }
1143
- });
1144
- });
1145
- };
1146
- UpdateConfigEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateConfigEvent");
1147
- UpdateConfigEvent.$numTypeParams = 0;
1148
- UpdateConfigEvent.$isPhantom = [];
1149
- return UpdateConfigEvent;
1150
- }());
1151
- exports.UpdateConfigEvent = UpdateConfigEvent;
1152
- /* ============================== UpdateStrikeEvent =============================== */
1153
- function isUpdateStrikeEvent(type) {
1154
- type = (0, util_1.compressSuiType)(type);
1155
- return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateStrikeEvent");
1156
- }
1157
- var UpdateStrikeEvent = /** @class */ (function () {
1158
- function UpdateStrikeEvent(typeArgs, fields) {
1159
- this.__StructClass = true;
1160
- this.$typeName = UpdateStrikeEvent.$typeName;
1161
- this.$isPhantom = UpdateStrikeEvent.$isPhantom;
1162
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateStrikeEvent.$typeName], __read(typeArgs), false));
1163
- this.$typeArgs = typeArgs;
1164
- this.signer = fields.signer;
1165
- this.index = fields.index;
1166
- this.oraclePrice = fields.oraclePrice;
1167
- this.oraclePriceDecimal = fields.oraclePriceDecimal;
1168
- this.vaultConfig = fields.vaultConfig;
1169
- }
1170
- UpdateStrikeEvent.reified = function () {
1171
- var _this = this;
1172
- return {
1173
- typeName: UpdateStrikeEvent.$typeName,
1174
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateStrikeEvent.$typeName], [], false)),
1175
- typeArgs: [],
1176
- isPhantom: UpdateStrikeEvent.$isPhantom,
1177
- reifiedTypeArgs: [],
1178
- fromFields: function (fields) { return UpdateStrikeEvent.fromFields(fields); },
1179
- fromFieldsWithTypes: function (item) { return UpdateStrikeEvent.fromFieldsWithTypes(item); },
1180
- fromBcs: function (data) { return UpdateStrikeEvent.fromBcs(data); },
1181
- bcs: UpdateStrikeEvent.bcs,
1182
- fromJSONField: function (field) { return UpdateStrikeEvent.fromJSONField(field); },
1183
- fromJSON: function (json) { return UpdateStrikeEvent.fromJSON(json); },
1184
- fromSuiParsedData: function (content) { return UpdateStrikeEvent.fromSuiParsedData(content); },
1185
- fromSuiObjectData: function (content) { return UpdateStrikeEvent.fromSuiObjectData(content); },
1186
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1187
- return [2 /*return*/, UpdateStrikeEvent.fetch(client, id)];
1188
- }); }); },
1189
- new: function (fields) {
1190
- return new UpdateStrikeEvent([], fields);
1191
- },
1192
- kind: "StructClassReified",
1193
- };
1194
- };
1195
- Object.defineProperty(UpdateStrikeEvent, "r", {
1196
- get: function () {
1197
- return UpdateStrikeEvent.reified();
1198
- },
1199
- enumerable: false,
1200
- configurable: true
1201
- });
1202
- UpdateStrikeEvent.phantom = function () {
1203
- return (0, reified_1.phantom)(UpdateStrikeEvent.reified());
1204
- };
1205
- Object.defineProperty(UpdateStrikeEvent, "p", {
1206
- get: function () {
1207
- return UpdateStrikeEvent.phantom();
1208
- },
1209
- enumerable: false,
1210
- configurable: true
1211
- });
1212
- Object.defineProperty(UpdateStrikeEvent, "bcs", {
1213
- get: function () {
1214
- return bcs_1.bcs.struct("UpdateStrikeEvent", {
1215
- signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
1216
- index: bcs_1.bcs.u64(),
1217
- oracle_price: bcs_1.bcs.u64(),
1218
- oracle_price_decimal: bcs_1.bcs.u64(),
1219
- vault_config: structs_2.VaultConfig.bcs,
1220
- });
1221
- },
1222
- enumerable: false,
1223
- configurable: true
1224
- });
1225
- UpdateStrikeEvent.fromFields = function (fields) {
1226
- return UpdateStrikeEvent.reified().new({
1227
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1228
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
1229
- oraclePrice: (0, reified_1.decodeFromFields)("u64", fields.oracle_price),
1230
- oraclePriceDecimal: (0, reified_1.decodeFromFields)("u64", fields.oracle_price_decimal),
1231
- vaultConfig: (0, reified_1.decodeFromFields)(structs_2.VaultConfig.reified(), fields.vault_config),
1232
- });
1233
- };
1234
- UpdateStrikeEvent.fromFieldsWithTypes = function (item) {
1235
- if (!isUpdateStrikeEvent(item.type)) {
1236
- throw new Error("not a UpdateStrikeEvent type");
1237
- }
1238
- return UpdateStrikeEvent.reified().new({
1239
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1240
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
1241
- oraclePrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.oracle_price),
1242
- oraclePriceDecimal: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.oracle_price_decimal),
1243
- vaultConfig: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.VaultConfig.reified(), item.fields.vault_config),
1244
- });
1245
- };
1246
- UpdateStrikeEvent.fromBcs = function (data) {
1247
- return UpdateStrikeEvent.fromFields(UpdateStrikeEvent.bcs.parse(data));
1248
- };
1249
- UpdateStrikeEvent.prototype.toJSONField = function () {
1250
- return {
1251
- signer: this.signer,
1252
- index: this.index.toString(),
1253
- oraclePrice: this.oraclePrice.toString(),
1254
- oraclePriceDecimal: this.oraclePriceDecimal.toString(),
1255
- vaultConfig: this.vaultConfig.toJSONField(),
1256
- };
1257
- };
1258
- UpdateStrikeEvent.prototype.toJSON = function () {
1259
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1260
- };
1261
- UpdateStrikeEvent.fromJSONField = function (field) {
1262
- return UpdateStrikeEvent.reified().new({
1263
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1264
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
1265
- oraclePrice: (0, reified_1.decodeFromJSONField)("u64", field.oraclePrice),
1266
- oraclePriceDecimal: (0, reified_1.decodeFromJSONField)("u64", field.oraclePriceDecimal),
1267
- vaultConfig: (0, reified_1.decodeFromJSONField)(structs_2.VaultConfig.reified(), field.vaultConfig),
1268
- });
1269
- };
1270
- UpdateStrikeEvent.fromJSON = function (json) {
1271
- if (json.$typeName !== UpdateStrikeEvent.$typeName) {
1272
- throw new Error("not a WithTwoGenerics json object");
1273
- }
1274
- return UpdateStrikeEvent.fromJSONField(json);
1275
- };
1276
- UpdateStrikeEvent.fromSuiParsedData = function (content) {
1277
- if (content.dataType !== "moveObject") {
1278
- throw new Error("not an object");
1279
- }
1280
- if (!isUpdateStrikeEvent(content.type)) {
1281
- throw new Error("object at ".concat(content.fields.id, " is not a UpdateStrikeEvent object"));
1282
- }
1283
- return UpdateStrikeEvent.fromFieldsWithTypes(content);
1284
- };
1285
- UpdateStrikeEvent.fromSuiObjectData = function (data) {
1286
- if (data.bcs) {
1287
- if (data.bcs.dataType !== "moveObject" || !isUpdateStrikeEvent(data.bcs.type)) {
1288
- throw new Error("object at is not a UpdateStrikeEvent object");
1289
- }
1290
- return UpdateStrikeEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1291
- }
1292
- if (data.content) {
1293
- return UpdateStrikeEvent.fromSuiParsedData(data.content);
1294
- }
1295
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1296
- };
1297
- UpdateStrikeEvent.fetch = function (client, id) {
1298
- return __awaiter(this, void 0, void 0, function () {
1299
- var res;
1300
- var _a, _b;
1301
- return __generator(this, function (_c) {
1302
- switch (_c.label) {
1303
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1304
- case 1:
1305
- res = _c.sent();
1306
- if (res.error) {
1307
- throw new Error("error fetching UpdateStrikeEvent object at id ".concat(id, ": ").concat(res.error.code));
1308
- }
1309
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateStrikeEvent(res.data.bcs.type)) {
1310
- throw new Error("object at id ".concat(id, " is not a UpdateStrikeEvent object"));
1311
- }
1312
- return [2 /*return*/, UpdateStrikeEvent.fromSuiObjectData(res.data)];
1313
- }
1314
- });
1315
- });
1316
- };
1317
- UpdateStrikeEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateStrikeEvent");
1318
- UpdateStrikeEvent.$numTypeParams = 0;
1319
- UpdateStrikeEvent.$isPhantom = [];
1320
- return UpdateStrikeEvent;
1321
- }());
1322
- exports.UpdateStrikeEvent = UpdateStrikeEvent;
1323
- /* ============================== UpdateWarmupVaultConfigEvent =============================== */
1324
- function isUpdateWarmupVaultConfigEvent(type) {
1325
- type = (0, util_1.compressSuiType)(type);
1326
- return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateWarmupVaultConfigEvent");
1327
- }
1328
- var UpdateWarmupVaultConfigEvent = /** @class */ (function () {
1329
- function UpdateWarmupVaultConfigEvent(typeArgs, fields) {
1330
- this.__StructClass = true;
1331
- this.$typeName = UpdateWarmupVaultConfigEvent.$typeName;
1332
- this.$isPhantom = UpdateWarmupVaultConfigEvent.$isPhantom;
1333
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateWarmupVaultConfigEvent.$typeName], __read(typeArgs), false));
1334
- this.$typeArgs = typeArgs;
1335
- this.signer = fields.signer;
1336
- this.index = fields.index;
1337
- this.previous = fields.previous;
1338
- this.current = fields.current;
1339
- }
1340
- UpdateWarmupVaultConfigEvent.reified = function () {
1341
- var _this = this;
1342
- return {
1343
- typeName: UpdateWarmupVaultConfigEvent.$typeName,
1344
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateWarmupVaultConfigEvent.$typeName], [], false)),
1345
- typeArgs: [],
1346
- isPhantom: UpdateWarmupVaultConfigEvent.$isPhantom,
1347
- reifiedTypeArgs: [],
1348
- fromFields: function (fields) { return UpdateWarmupVaultConfigEvent.fromFields(fields); },
1349
- fromFieldsWithTypes: function (item) { return UpdateWarmupVaultConfigEvent.fromFieldsWithTypes(item); },
1350
- fromBcs: function (data) { return UpdateWarmupVaultConfigEvent.fromBcs(data); },
1351
- bcs: UpdateWarmupVaultConfigEvent.bcs,
1352
- fromJSONField: function (field) { return UpdateWarmupVaultConfigEvent.fromJSONField(field); },
1353
- fromJSON: function (json) { return UpdateWarmupVaultConfigEvent.fromJSON(json); },
1354
- fromSuiParsedData: function (content) { return UpdateWarmupVaultConfigEvent.fromSuiParsedData(content); },
1355
- fromSuiObjectData: function (content) { return UpdateWarmupVaultConfigEvent.fromSuiObjectData(content); },
1356
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1357
- return [2 /*return*/, UpdateWarmupVaultConfigEvent.fetch(client, id)];
1358
- }); }); },
1359
- new: function (fields) {
1360
- return new UpdateWarmupVaultConfigEvent([], fields);
1361
- },
1362
- kind: "StructClassReified",
1363
- };
1364
- };
1365
- Object.defineProperty(UpdateWarmupVaultConfigEvent, "r", {
1366
- get: function () {
1367
- return UpdateWarmupVaultConfigEvent.reified();
1368
- },
1369
- enumerable: false,
1370
- configurable: true
1371
- });
1372
- UpdateWarmupVaultConfigEvent.phantom = function () {
1373
- return (0, reified_1.phantom)(UpdateWarmupVaultConfigEvent.reified());
1374
- };
1375
- Object.defineProperty(UpdateWarmupVaultConfigEvent, "p", {
1376
- get: function () {
1377
- return UpdateWarmupVaultConfigEvent.phantom();
1378
- },
1379
- enumerable: false,
1380
- configurable: true
1381
- });
1382
- Object.defineProperty(UpdateWarmupVaultConfigEvent, "bcs", {
1383
- get: function () {
1384
- return bcs_1.bcs.struct("UpdateWarmupVaultConfigEvent", {
1385
- signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
1386
- index: bcs_1.bcs.u64(),
1387
- previous: structs_2.VaultConfig.bcs,
1388
- current: structs_2.VaultConfig.bcs,
1389
- });
1390
- },
1391
- enumerable: false,
1392
- configurable: true
1393
- });
1394
- UpdateWarmupVaultConfigEvent.fromFields = function (fields) {
1395
- return UpdateWarmupVaultConfigEvent.reified().new({
1396
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1397
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
1398
- previous: (0, reified_1.decodeFromFields)(structs_2.VaultConfig.reified(), fields.previous),
1399
- current: (0, reified_1.decodeFromFields)(structs_2.VaultConfig.reified(), fields.current),
1400
- });
1401
- };
1402
- UpdateWarmupVaultConfigEvent.fromFieldsWithTypes = function (item) {
1403
- if (!isUpdateWarmupVaultConfigEvent(item.type)) {
1404
- throw new Error("not a UpdateWarmupVaultConfigEvent type");
1405
- }
1406
- return UpdateWarmupVaultConfigEvent.reified().new({
1407
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1408
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
1409
- previous: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.VaultConfig.reified(), item.fields.previous),
1410
- current: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.VaultConfig.reified(), item.fields.current),
1411
- });
1412
- };
1413
- UpdateWarmupVaultConfigEvent.fromBcs = function (data) {
1414
- return UpdateWarmupVaultConfigEvent.fromFields(UpdateWarmupVaultConfigEvent.bcs.parse(data));
1415
- };
1416
- UpdateWarmupVaultConfigEvent.prototype.toJSONField = function () {
1417
- return {
1418
- signer: this.signer,
1419
- index: this.index.toString(),
1420
- previous: this.previous.toJSONField(),
1421
- current: this.current.toJSONField(),
1422
- };
1423
- };
1424
- UpdateWarmupVaultConfigEvent.prototype.toJSON = function () {
1425
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1426
- };
1427
- UpdateWarmupVaultConfigEvent.fromJSONField = function (field) {
1428
- return UpdateWarmupVaultConfigEvent.reified().new({
1429
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1430
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
1431
- previous: (0, reified_1.decodeFromJSONField)(structs_2.VaultConfig.reified(), field.previous),
1432
- current: (0, reified_1.decodeFromJSONField)(structs_2.VaultConfig.reified(), field.current),
1433
- });
1434
- };
1435
- UpdateWarmupVaultConfigEvent.fromJSON = function (json) {
1436
- if (json.$typeName !== UpdateWarmupVaultConfigEvent.$typeName) {
1437
- throw new Error("not a WithTwoGenerics json object");
1438
- }
1439
- return UpdateWarmupVaultConfigEvent.fromJSONField(json);
1440
- };
1441
- UpdateWarmupVaultConfigEvent.fromSuiParsedData = function (content) {
1442
- if (content.dataType !== "moveObject") {
1443
- throw new Error("not an object");
1444
- }
1445
- if (!isUpdateWarmupVaultConfigEvent(content.type)) {
1446
- throw new Error("object at ".concat(content.fields.id, " is not a UpdateWarmupVaultConfigEvent object"));
1447
- }
1448
- return UpdateWarmupVaultConfigEvent.fromFieldsWithTypes(content);
1449
- };
1450
- UpdateWarmupVaultConfigEvent.fromSuiObjectData = function (data) {
1451
- if (data.bcs) {
1452
- if (data.bcs.dataType !== "moveObject" || !isUpdateWarmupVaultConfigEvent(data.bcs.type)) {
1453
- throw new Error("object at is not a UpdateWarmupVaultConfigEvent object");
1454
- }
1455
- return UpdateWarmupVaultConfigEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1456
- }
1457
- if (data.content) {
1458
- return UpdateWarmupVaultConfigEvent.fromSuiParsedData(data.content);
1459
- }
1460
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1461
- };
1462
- UpdateWarmupVaultConfigEvent.fetch = function (client, id) {
1463
- return __awaiter(this, void 0, void 0, function () {
1464
- var res;
1465
- var _a, _b;
1466
- return __generator(this, function (_c) {
1467
- switch (_c.label) {
1468
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1469
- case 1:
1470
- res = _c.sent();
1471
- if (res.error) {
1472
- throw new Error("error fetching UpdateWarmupVaultConfigEvent object at id ".concat(id, ": ").concat(res.error.code));
1473
- }
1474
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateWarmupVaultConfigEvent(res.data.bcs.type)) {
1475
- throw new Error("object at id ".concat(id, " is not a UpdateWarmupVaultConfigEvent object"));
1476
- }
1477
- return [2 /*return*/, UpdateWarmupVaultConfigEvent.fromSuiObjectData(res.data)];
1478
- }
1479
- });
1480
- });
1481
- };
1482
- UpdateWarmupVaultConfigEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateWarmupVaultConfigEvent");
1483
- UpdateWarmupVaultConfigEvent.$numTypeParams = 0;
1484
- UpdateWarmupVaultConfigEvent.$isPhantom = [];
1485
- return UpdateWarmupVaultConfigEvent;
1486
- }());
1487
- exports.UpdateWarmupVaultConfigEvent = UpdateWarmupVaultConfigEvent;
1488
- /* ============================== WithdrawFixedIncentiveEvent =============================== */
1489
- function isWithdrawFixedIncentiveEvent(type) {
1490
- type = (0, util_1.compressSuiType)(type);
1491
- return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::WithdrawFixedIncentiveEvent");
1492
- }
1493
- var WithdrawFixedIncentiveEvent = /** @class */ (function () {
1494
- function WithdrawFixedIncentiveEvent(typeArgs, fields) {
1495
- this.__StructClass = true;
1496
- this.$typeName = WithdrawFixedIncentiveEvent.$typeName;
1497
- this.$isPhantom = WithdrawFixedIncentiveEvent.$isPhantom;
1498
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawFixedIncentiveEvent.$typeName], __read(typeArgs), false));
1499
- this.$typeArgs = typeArgs;
1500
- this.signer = fields.signer;
1501
- this.token = fields.token;
1502
- this.amount = fields.amount;
1503
- }
1504
- WithdrawFixedIncentiveEvent.reified = function () {
1505
- var _this = this;
1506
- return {
1507
- typeName: WithdrawFixedIncentiveEvent.$typeName,
1508
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawFixedIncentiveEvent.$typeName], [], false)),
1509
- typeArgs: [],
1510
- isPhantom: WithdrawFixedIncentiveEvent.$isPhantom,
1511
- reifiedTypeArgs: [],
1512
- fromFields: function (fields) { return WithdrawFixedIncentiveEvent.fromFields(fields); },
1513
- fromFieldsWithTypes: function (item) { return WithdrawFixedIncentiveEvent.fromFieldsWithTypes(item); },
1514
- fromBcs: function (data) { return WithdrawFixedIncentiveEvent.fromBcs(data); },
1515
- bcs: WithdrawFixedIncentiveEvent.bcs,
1516
- fromJSONField: function (field) { return WithdrawFixedIncentiveEvent.fromJSONField(field); },
1517
- fromJSON: function (json) { return WithdrawFixedIncentiveEvent.fromJSON(json); },
1518
- fromSuiParsedData: function (content) { return WithdrawFixedIncentiveEvent.fromSuiParsedData(content); },
1519
- fromSuiObjectData: function (content) { return WithdrawFixedIncentiveEvent.fromSuiObjectData(content); },
1520
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1521
- return [2 /*return*/, WithdrawFixedIncentiveEvent.fetch(client, id)];
1522
- }); }); },
1523
- new: function (fields) {
1524
- return new WithdrawFixedIncentiveEvent([], fields);
1525
- },
1526
- kind: "StructClassReified",
1527
- };
1528
- };
1529
- Object.defineProperty(WithdrawFixedIncentiveEvent, "r", {
1530
- get: function () {
1531
- return WithdrawFixedIncentiveEvent.reified();
1532
- },
1533
- enumerable: false,
1534
- configurable: true
1535
- });
1536
- WithdrawFixedIncentiveEvent.phantom = function () {
1537
- return (0, reified_1.phantom)(WithdrawFixedIncentiveEvent.reified());
1538
- };
1539
- Object.defineProperty(WithdrawFixedIncentiveEvent, "p", {
1540
- get: function () {
1541
- return WithdrawFixedIncentiveEvent.phantom();
1542
- },
1543
- enumerable: false,
1544
- configurable: true
1545
- });
1546
- Object.defineProperty(WithdrawFixedIncentiveEvent, "bcs", {
1547
- get: function () {
1548
- return bcs_1.bcs.struct("WithdrawFixedIncentiveEvent", {
1549
- signer: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
1550
- token: structs_1.TypeName.bcs,
1551
- amount: bcs_1.bcs.u64(),
1552
- });
1553
- },
1554
- enumerable: false,
1555
- configurable: true
1556
- });
1557
- WithdrawFixedIncentiveEvent.fromFields = function (fields) {
1558
- return WithdrawFixedIncentiveEvent.reified().new({
1559
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1560
- token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
1561
- amount: (0, reified_1.decodeFromFields)("u64", fields.amount),
1562
- });
1563
- };
1564
- WithdrawFixedIncentiveEvent.fromFieldsWithTypes = function (item) {
1565
- if (!isWithdrawFixedIncentiveEvent(item.type)) {
1566
- throw new Error("not a WithdrawFixedIncentiveEvent type");
1567
- }
1568
- return WithdrawFixedIncentiveEvent.reified().new({
1569
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1570
- token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
1571
- amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount),
1572
- });
1573
- };
1574
- WithdrawFixedIncentiveEvent.fromBcs = function (data) {
1575
- return WithdrawFixedIncentiveEvent.fromFields(WithdrawFixedIncentiveEvent.bcs.parse(data));
1576
- };
1577
- WithdrawFixedIncentiveEvent.prototype.toJSONField = function () {
1578
- return {
1579
- signer: this.signer,
1580
- token: this.token.toJSONField(),
1581
- amount: this.amount.toString(),
1582
- };
1583
- };
1584
- WithdrawFixedIncentiveEvent.prototype.toJSON = function () {
1585
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1586
- };
1587
- WithdrawFixedIncentiveEvent.fromJSONField = function (field) {
1588
- return WithdrawFixedIncentiveEvent.reified().new({
1589
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1590
- token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
1591
- amount: (0, reified_1.decodeFromJSONField)("u64", field.amount),
1592
- });
1593
- };
1594
- WithdrawFixedIncentiveEvent.fromJSON = function (json) {
1595
- if (json.$typeName !== WithdrawFixedIncentiveEvent.$typeName) {
1596
- throw new Error("not a WithTwoGenerics json object");
1597
- }
1598
- return WithdrawFixedIncentiveEvent.fromJSONField(json);
1599
- };
1600
- WithdrawFixedIncentiveEvent.fromSuiParsedData = function (content) {
1601
- if (content.dataType !== "moveObject") {
1602
- throw new Error("not an object");
1603
- }
1604
- if (!isWithdrawFixedIncentiveEvent(content.type)) {
1605
- throw new Error("object at ".concat(content.fields.id, " is not a WithdrawFixedIncentiveEvent object"));
1606
- }
1607
- return WithdrawFixedIncentiveEvent.fromFieldsWithTypes(content);
1608
- };
1609
- WithdrawFixedIncentiveEvent.fromSuiObjectData = function (data) {
1610
- if (data.bcs) {
1611
- if (data.bcs.dataType !== "moveObject" || !isWithdrawFixedIncentiveEvent(data.bcs.type)) {
1612
- throw new Error("object at is not a WithdrawFixedIncentiveEvent object");
1613
- }
1614
- return WithdrawFixedIncentiveEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1615
- }
1616
- if (data.content) {
1617
- return WithdrawFixedIncentiveEvent.fromSuiParsedData(data.content);
1618
- }
1619
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1620
- };
1621
- WithdrawFixedIncentiveEvent.fetch = function (client, id) {
1622
- return __awaiter(this, void 0, void 0, function () {
1623
- var res;
1624
- var _a, _b;
1625
- return __generator(this, function (_c) {
1626
- switch (_c.label) {
1627
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1628
- case 1:
1629
- res = _c.sent();
1630
- if (res.error) {
1631
- throw new Error("error fetching WithdrawFixedIncentiveEvent object at id ".concat(id, ": ").concat(res.error.code));
1632
- }
1633
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isWithdrawFixedIncentiveEvent(res.data.bcs.type)) {
1634
- throw new Error("object at id ".concat(id, " is not a WithdrawFixedIncentiveEvent object"));
1635
- }
1636
- return [2 /*return*/, WithdrawFixedIncentiveEvent.fromSuiObjectData(res.data)];
1637
- }
1638
- });
1639
- });
1640
- };
1641
- WithdrawFixedIncentiveEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::WithdrawFixedIncentiveEvent");
1642
- WithdrawFixedIncentiveEvent.$numTypeParams = 0;
1643
- WithdrawFixedIncentiveEvent.$isPhantom = [];
1644
- return WithdrawFixedIncentiveEvent;
1645
- }());
1646
- exports.WithdrawFixedIncentiveEvent = WithdrawFixedIncentiveEvent;