@typus/typus-perp-sdk 1.0.0 → 1.0.3

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