@typus/typus-sdk 1.5.3 → 1.5.5-a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (446) hide show
  1. package/dist/src/auto-bid/view-function.js +2 -2
  2. package/dist/src/constants/token.d.ts +5 -53
  3. package/dist/src/constants/token.js +174 -104
  4. package/dist/src/dice/api.js +2 -2
  5. package/dist/src/dice/fetch.js +2 -2
  6. package/dist/src/dice/user-entry.js +2 -2
  7. package/dist/src/typus/airdrop/authority-entry.js +2 -2
  8. package/dist/src/typus/airdrop/view-function.js +2 -2
  9. package/dist/src/typus/leaderboard/authority-entry.js +2 -2
  10. package/dist/src/typus/leaderboard/view-function.js +2 -2
  11. package/dist/src/typus/tails-staking/view-function.js +2 -2
  12. package/dist/src/typus/user/view-function.js +2 -2
  13. package/dist/src/typus-dov-single-v2/authority-entry.js +2 -2
  14. package/dist/src/typus-dov-single-v2/function/bidding.js +2 -2
  15. package/dist/src/typus-dov-single-v2/history/user-history.d.ts +3 -1
  16. package/dist/src/typus-dov-single-v2/history/user-history.js +35 -2
  17. package/dist/src/typus-dov-single-v2/history/vault-history.js +2 -2
  18. package/dist/src/typus-dov-single-v2/view-function.js +2 -2
  19. package/dist/src/typus-launch/airdrop/authority-entry.js +4 -4
  20. package/dist/src/typus-launch/airdrop/view-function.js +2 -2
  21. package/dist/src/typus-launch/auction/view-function.js +2 -2
  22. package/dist/src/typus-launch/funding-vault/view-function.js +2 -2
  23. package/dist/src/typus-launch/improvement-proposal/authority-entry.js +2 -2
  24. package/dist/src/typus-launch/improvement-proposal/view-function.js +2 -2
  25. package/dist/src/typus-launch/ve-typus/view-function.d.ts +7 -0
  26. package/dist/src/typus-launch/ve-typus/view-function.js +34 -2
  27. package/dist/src/typus-nft/fetch.js +2 -2
  28. package/dist/src/typus-nft/user-entry.js +2 -2
  29. package/dist/src/typus-safu/user-history.js +2 -2
  30. package/dist/src/typus-safu/view-function.js +2 -2
  31. package/dist/src/utils/api/defillama/tvl.js +2 -2
  32. package/dist/src/utils/api/price.js +2 -2
  33. package/dist/src/utils/api/sentio/events.js +2 -2
  34. package/dist/src/utils/api/sentio/leader-board.js +2 -2
  35. package/dist/src/utils/api/sentio/reward-generated.js +2 -2
  36. package/dist/src/utils/api/sentio/vault-history.js +2 -2
  37. package/dist/src/utils/mint.js +2 -2
  38. package/dist/src/utils/pyth/pythClient.js +2 -2
  39. package/dist/src/utils/typusConfig.js +26 -13
  40. package/package.json +6 -54
  41. package/dist/src/typus-perp/_dependencies/source/0x1/ascii/structs.d.ts +0 -92
  42. package/dist/src/typus-perp/_dependencies/source/0x1/ascii/structs.js +0 -396
  43. package/dist/src/typus-perp/_dependencies/source/0x1/bit-vector/structs.d.ts +0 -56
  44. package/dist/src/typus-perp/_dependencies/source/0x1/bit-vector/structs.js +0 -258
  45. package/dist/src/typus-perp/_dependencies/source/0x1/fixed-point32/structs.d.ts +0 -46
  46. package/dist/src/typus-perp/_dependencies/source/0x1/fixed-point32/structs.js +0 -228
  47. package/dist/src/typus-perp/_dependencies/source/0x1/index.d.ts +0 -3
  48. package/dist/src/typus-perp/_dependencies/source/0x1/index.js +0 -6
  49. package/dist/src/typus-perp/_dependencies/source/0x1/init.d.ts +0 -2
  50. package/dist/src/typus-perp/_dependencies/source/0x1/init.js +0 -45
  51. package/dist/src/typus-perp/_dependencies/source/0x1/option/structs.d.ts +0 -52
  52. package/dist/src/typus-perp/_dependencies/source/0x1/option/structs.js +0 -267
  53. package/dist/src/typus-perp/_dependencies/source/0x1/string/structs.d.ts +0 -50
  54. package/dist/src/typus-perp/_dependencies/source/0x1/string/structs.js +0 -252
  55. package/dist/src/typus-perp/_dependencies/source/0x1/type-name/structs.d.ts +0 -53
  56. package/dist/src/typus-perp/_dependencies/source/0x1/type-name/structs.js +0 -229
  57. package/dist/src/typus-perp/_dependencies/source/0x1/uq32-32/structs.d.ts +0 -46
  58. package/dist/src/typus-perp/_dependencies/source/0x1/uq32-32/structs.js +0 -228
  59. package/dist/src/typus-perp/_dependencies/source/0x1/uq64-64/structs.d.ts +0 -46
  60. package/dist/src/typus-perp/_dependencies/source/0x1/uq64-64/structs.js +0 -228
  61. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +0 -5
  62. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +0 -8
  63. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +0 -2
  64. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +0 -40
  65. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +0 -350
  66. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +0 -793
  67. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +0 -111
  68. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +0 -395
  69. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +0 -70
  70. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +0 -252
  71. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +0 -70
  72. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +0 -255
  73. package/dist/src/typus-perp/_dependencies/source/0x2/authenticator-state/structs.d.ts +0 -464
  74. package/dist/src/typus-perp/_dependencies/source/0x2/authenticator-state/structs.js +0 -894
  75. package/dist/src/typus-perp/_dependencies/source/0x2/bag/structs.d.ts +0 -61
  76. package/dist/src/typus-perp/_dependencies/source/0x2/bag/structs.js +0 -235
  77. package/dist/src/typus-perp/_dependencies/source/0x2/balance/structs.d.ts +0 -88
  78. package/dist/src/typus-perp/_dependencies/source/0x2/balance/structs.js +0 -398
  79. package/dist/src/typus-perp/_dependencies/source/0x2/bcs/structs.d.ts +0 -50
  80. package/dist/src/typus-perp/_dependencies/source/0x2/bcs/structs.js +0 -252
  81. package/dist/src/typus-perp/_dependencies/source/0x2/bls12381/structs.d.ts +0 -214
  82. package/dist/src/typus-perp/_dependencies/source/0x2/bls12381/structs.js +0 -820
  83. package/dist/src/typus-perp/_dependencies/source/0x2/borrow/structs.d.ts +0 -113
  84. package/dist/src/typus-perp/_dependencies/source/0x2/borrow/structs.js +0 -410
  85. package/dist/src/typus-perp/_dependencies/source/0x2/clock/structs.d.ts +0 -61
  86. package/dist/src/typus-perp/_dependencies/source/0x2/clock/structs.js +0 -235
  87. package/dist/src/typus-perp/_dependencies/source/0x2/coin/structs.d.ts +0 -460
  88. package/dist/src/typus-perp/_dependencies/source/0x2/coin/structs.js +0 -1259
  89. package/dist/src/typus-perp/_dependencies/source/0x2/config/structs.d.ts +0 -179
  90. package/dist/src/typus-perp/_dependencies/source/0x2/config/structs.js +0 -577
  91. package/dist/src/typus-perp/_dependencies/source/0x2/deny-list/structs.d.ts +0 -430
  92. package/dist/src/typus-perp/_dependencies/source/0x2/deny-list/structs.js +0 -1177
  93. package/dist/src/typus-perp/_dependencies/source/0x2/display/structs.d.ts +0 -241
  94. package/dist/src/typus-perp/_dependencies/source/0x2/display/structs.js +0 -584
  95. package/dist/src/typus-perp/_dependencies/source/0x2/dynamic-field/structs.d.ts +0 -68
  96. package/dist/src/typus-perp/_dependencies/source/0x2/dynamic-field/structs.js +0 -256
  97. package/dist/src/typus-perp/_dependencies/source/0x2/dynamic-object-field/structs.d.ts +0 -47
  98. package/dist/src/typus-perp/_dependencies/source/0x2/dynamic-object-field/structs.js +0 -242
  99. package/dist/src/typus-perp/_dependencies/source/0x2/groth16/structs.d.ts +0 -204
  100. package/dist/src/typus-perp/_dependencies/source/0x2/groth16/structs.js +0 -710
  101. package/dist/src/typus-perp/_dependencies/source/0x2/group-ops/structs.d.ts +0 -50
  102. package/dist/src/typus-perp/_dependencies/source/0x2/group-ops/structs.js +0 -263
  103. package/dist/src/typus-perp/_dependencies/source/0x2/index.d.ts +0 -3
  104. package/dist/src/typus-perp/_dependencies/source/0x2/index.js +0 -6
  105. package/dist/src/typus-perp/_dependencies/source/0x2/init.d.ts +0 -2
  106. package/dist/src/typus-perp/_dependencies/source/0x2/init.js +0 -161
  107. package/dist/src/typus-perp/_dependencies/source/0x2/kiosk/structs.d.ts +0 -606
  108. package/dist/src/typus-perp/_dependencies/source/0x2/kiosk/structs.js +0 -1724
  109. package/dist/src/typus-perp/_dependencies/source/0x2/kiosk-extension/structs.d.ts +0 -121
  110. package/dist/src/typus-perp/_dependencies/source/0x2/kiosk-extension/structs.js +0 -400
  111. package/dist/src/typus-perp/_dependencies/source/0x2/linked-table/structs.d.ts +0 -153
  112. package/dist/src/typus-perp/_dependencies/source/0x2/linked-table/structs.js +0 -438
  113. package/dist/src/typus-perp/_dependencies/source/0x2/object/structs.d.ts +0 -92
  114. package/dist/src/typus-perp/_dependencies/source/0x2/object/structs.js +0 -377
  115. package/dist/src/typus-perp/_dependencies/source/0x2/object-bag/structs.d.ts +0 -61
  116. package/dist/src/typus-perp/_dependencies/source/0x2/object-bag/structs.js +0 -235
  117. package/dist/src/typus-perp/_dependencies/source/0x2/object-table/structs.d.ts +0 -61
  118. package/dist/src/typus-perp/_dependencies/source/0x2/object-table/structs.js +0 -248
  119. package/dist/src/typus-perp/_dependencies/source/0x2/package/structs.d.ts +0 -280
  120. package/dist/src/typus-perp/_dependencies/source/0x2/package/structs.js +0 -752
  121. package/dist/src/typus-perp/_dependencies/source/0x2/priority-queue/structs.d.ts +0 -111
  122. package/dist/src/typus-perp/_dependencies/source/0x2/priority-queue/structs.js +0 -434
  123. package/dist/src/typus-perp/_dependencies/source/0x2/random/structs.d.ts +0 -204
  124. package/dist/src/typus-perp/_dependencies/source/0x2/random/structs.js +0 -586
  125. package/dist/src/typus-perp/_dependencies/source/0x2/sui/structs.d.ts +0 -46
  126. package/dist/src/typus-perp/_dependencies/source/0x2/sui/structs.js +0 -228
  127. package/dist/src/typus-perp/_dependencies/source/0x2/table/structs.d.ts +0 -61
  128. package/dist/src/typus-perp/_dependencies/source/0x2/table/structs.js +0 -248
  129. package/dist/src/typus-perp/_dependencies/source/0x2/table-vec/structs.d.ts +0 -68
  130. package/dist/src/typus-perp/_dependencies/source/0x2/table-vec/structs.js +0 -264
  131. package/dist/src/typus-perp/_dependencies/source/0x2/token/structs.d.ts +0 -449
  132. package/dist/src/typus-perp/_dependencies/source/0x2/token/structs.js +0 -1107
  133. package/dist/src/typus-perp/_dependencies/source/0x2/transfer/structs.d.ts +0 -57
  134. package/dist/src/typus-perp/_dependencies/source/0x2/transfer/structs.js +0 -246
  135. package/dist/src/typus-perp/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -370
  136. package/dist/src/typus-perp/_dependencies/source/0x2/transfer-policy/structs.js +0 -1099
  137. package/dist/src/typus-perp/_dependencies/source/0x2/tx-context/structs.d.ts +0 -74
  138. package/dist/src/typus-perp/_dependencies/source/0x2/tx-context/structs.js +0 -279
  139. package/dist/src/typus-perp/_dependencies/source/0x2/url/structs.d.ts +0 -53
  140. package/dist/src/typus-perp/_dependencies/source/0x2/url/structs.js +0 -229
  141. package/dist/src/typus-perp/_dependencies/source/0x2/vec-map/structs.d.ts +0 -111
  142. package/dist/src/typus-perp/_dependencies/source/0x2/vec-map/structs.js +0 -436
  143. package/dist/src/typus-perp/_dependencies/source/0x2/vec-set/structs.d.ts +0 -51
  144. package/dist/src/typus-perp/_dependencies/source/0x2/vec-set/structs.js +0 -266
  145. package/dist/src/typus-perp/_dependencies/source/0x2/versioned/structs.d.ts +0 -113
  146. package/dist/src/typus-perp/_dependencies/source/0x2/versioned/structs.js +0 -389
  147. package/dist/src/typus-perp/_dependencies/source/0x2/zklogin-verified-id/structs.d.ts +0 -110
  148. package/dist/src/typus-perp/_dependencies/source/0x2/zklogin-verified-id/structs.js +0 -263
  149. package/dist/src/typus-perp/_dependencies/source/0x2/zklogin-verified-issuer/structs.d.ts +0 -74
  150. package/dist/src/typus-perp/_dependencies/source/0x2/zklogin-verified-issuer/structs.js +0 -245
  151. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +0 -3
  152. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +0 -6
  153. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +0 -2
  154. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +0 -30
  155. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +0 -55
  156. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +0 -229
  157. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +0 -4
  158. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +0 -7
  159. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +0 -2
  160. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +0 -33
  161. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +0 -46
  162. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +0 -228
  163. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +0 -121
  164. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +0 -401
  165. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +0 -489
  166. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +0 -1092
  167. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +0 -147
  168. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +0 -446
  169. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +0 -239
  170. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +0 -643
  171. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +0 -405
  172. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +0 -898
  173. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +0 -8
  174. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +0 -11
  175. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +0 -2
  176. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +0 -92
  177. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/keyed-big-vector/structs.d.ts +0 -227
  178. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/keyed-big-vector/structs.js +0 -622
  179. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +0 -699
  180. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +0 -1476
  181. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.d.ts +0 -161
  182. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +0 -438
  183. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +0 -147
  184. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +0 -430
  185. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.d.ts +0 -1071
  186. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.js +0 -2275
  187. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +0 -279
  188. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +0 -732
  189. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +0 -328
  190. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +0 -900
  191. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +0 -628
  192. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +0 -1335
  193. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +0 -9
  194. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +0 -12
  195. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +0 -2
  196. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +0 -62
  197. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +0 -94
  198. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.js +0 -382
  199. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +0 -454
  200. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +0 -886
  201. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +0 -68
  202. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +0 -264
  203. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +0 -1117
  204. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +0 -2407
  205. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +0 -1524
  206. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +0 -3052
  207. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +0 -10
  208. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +0 -13
  209. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +0 -2
  210. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +0 -135
  211. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +0 -1267
  212. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +0 -2846
  213. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +0 -1412
  214. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +0 -1669
  215. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +0 -425
  216. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +0 -1249
  217. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +0 -1156
  218. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +0 -1869
  219. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +0 -82
  220. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +0 -264
  221. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +0 -5022
  222. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +0 -7680
  223. package/dist/src/typus-perp/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +0 -3
  224. package/dist/src/typus-perp/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +0 -6
  225. package/dist/src/typus-perp/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +0 -2
  226. package/dist/src/typus-perp/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +0 -4
  227. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +0 -88
  228. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +0 -256
  229. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +0 -347
  230. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +0 -581
  231. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +0 -73
  232. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +0 -258
  233. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +0 -876
  234. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +0 -1735
  235. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +0 -46
  236. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +0 -224
  237. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +0 -3
  238. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +0 -6
  239. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +0 -2
  240. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +0 -79
  241. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +0 -155
  242. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +0 -444
  243. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.d.ts +0 -2386
  244. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +0 -5014
  245. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +0 -745
  246. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +0 -1229
  247. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +0 -3
  248. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +0 -6
  249. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +0 -2
  250. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +0 -43
  251. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +0 -87
  252. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +0 -277
  253. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +0 -58
  254. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +0 -240
  255. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +0 -121
  256. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +0 -322
  257. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +0 -55
  258. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +0 -229
  259. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/batch-price-attestation/structs.d.ts +0 -289
  260. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/batch-price-attestation/structs.js +0 -443
  261. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/contract-upgrade/structs.d.ts +0 -114
  262. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/contract-upgrade/structs.js +0 -384
  263. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/data-source/structs.d.ts +0 -71
  264. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/data-source/structs.js +0 -235
  265. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/event/structs.d.ts +0 -209
  266. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/event/structs.js +0 -383
  267. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance/structs.d.ts +0 -73
  268. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance/structs.js +0 -265
  269. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-action/structs.d.ts +0 -46
  270. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-action/structs.js +0 -228
  271. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-instruction/structs.d.ts +0 -77
  272. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-instruction/structs.js +0 -271
  273. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/hot-potato-vector/structs.d.ts +0 -51
  274. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/hot-potato-vector/structs.js +0 -266
  275. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/i64/structs.d.ts +0 -52
  276. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/i64/structs.js +0 -234
  277. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.d.ts +0 -3
  278. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.js +0 -6
  279. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/init.d.ts +0 -2
  280. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/init.js +0 -85
  281. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/migrate/structs.d.ts +0 -51
  282. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/migrate/structs.js +0 -229
  283. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price/structs.d.ts +0 -89
  284. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price/structs.js +0 -247
  285. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-feed/structs.d.ts +0 -158
  286. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-feed/structs.js +0 -242
  287. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-identifier/structs.d.ts +0 -50
  288. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-identifier/structs.js +0 -252
  289. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-info/structs.d.ts +0 -360
  290. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-info/structs.js +0 -396
  291. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-status/structs.d.ts +0 -46
  292. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-status/structs.js +0 -228
  293. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set/structs.d.ts +0 -120
  294. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set/structs.js +0 -421
  295. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-data-sources/structs.d.ts +0 -81
  296. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-data-sources/structs.js +0 -253
  297. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-fee-recipient/structs.d.ts +0 -46
  298. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-fee-recipient/structs.js +0 -231
  299. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-governance-data-source/structs.d.ts +0 -77
  300. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-governance-data-source/structs.js +0 -241
  301. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-stale-price-threshold/structs.d.ts +0 -46
  302. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-stale-price-threshold/structs.js +0 -228
  303. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-update-fee/structs.d.ts +0 -52
  304. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-update-fee/structs.js +0 -234
  305. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/setup/structs.d.ts +0 -55
  306. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/setup/structs.js +0 -229
  307. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.d.ts +0 -282
  308. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.js +0 -573
  309. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.d.ts +0 -130
  310. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.js +0 -524
  311. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +0 -3
  312. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +0 -6
  313. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.d.ts +0 -2
  314. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +0 -36
  315. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +0 -88
  316. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +0 -376
  317. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +0 -94
  318. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.js +0 -382
  319. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +0 -46
  320. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +0 -239
  321. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes20/structs.d.ts +0 -50
  322. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes20/structs.js +0 -252
  323. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes32/structs.d.ts +0 -50
  324. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes32/structs.js +0 -252
  325. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed-vaas/structs.d.ts +0 -77
  326. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed-vaas/structs.js +0 -254
  327. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/cursor/structs.d.ts +0 -51
  328. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/cursor/structs.js +0 -266
  329. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.d.ts +0 -153
  330. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.js +0 -531
  331. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/external-address/structs.d.ts +0 -57
  332. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/external-address/structs.js +0 -229
  333. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/fee-collector/structs.d.ts +0 -63
  334. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/fee-collector/structs.js +0 -260
  335. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.d.ts +0 -168
  336. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.js +0 -460
  337. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian/structs.d.ts +0 -57
  338. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian/structs.js +0 -229
  339. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-set/structs.d.ts +0 -81
  340. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-set/structs.js +0 -265
  341. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-signature/structs.d.ts +0 -85
  342. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-signature/structs.js +0 -247
  343. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.d.ts +0 -3
  344. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.js +0 -6
  345. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/init.d.ts +0 -2
  346. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/init.js +0 -90
  347. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/migrate/structs.d.ts +0 -51
  348. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/migrate/structs.js +0 -229
  349. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.d.ts +0 -194
  350. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.js +0 -680
  351. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.d.ts +0 -151
  352. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.js +0 -449
  353. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set/structs.d.ts +0 -110
  354. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set/structs.js +0 -412
  355. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set-fee/structs.d.ts +0 -88
  356. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set-fee/structs.js +0 -376
  357. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/setup/structs.d.ts +0 -55
  358. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/setup/structs.js +0 -229
  359. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.d.ts +0 -278
  360. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.js +0 -455
  361. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/transfer-fee/structs.d.ts +0 -94
  362. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/transfer-fee/structs.js +0 -385
  363. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/update-guardian-set/structs.d.ts +0 -159
  364. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/update-guardian-set/structs.js +0 -555
  365. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.d.ts +0 -156
  366. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.js +0 -532
  367. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/vaa/structs.d.ts +0 -128
  368. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/vaa/structs.js +0 -302
  369. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/version-control/structs.d.ts +0 -88
  370. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/version-control/structs.js +0 -376
  371. package/dist/src/typus-perp/_framework/init-loader.d.ts +0 -2
  372. package/dist/src/typus-perp/_framework/init-loader.js +0 -63
  373. package/dist/src/typus-perp/_framework/loader.d.ts +0 -17
  374. package/dist/src/typus-perp/_framework/loader.js +0 -108
  375. package/dist/src/typus-perp/_framework/reified.d.ts +0 -108
  376. package/dist/src/typus-perp/_framework/reified.js +0 -237
  377. package/dist/src/typus-perp/_framework/util.d.ts +0 -35
  378. package/dist/src/typus-perp/_framework/util.js +0 -396
  379. package/dist/src/typus-perp/_framework/vector.d.ts +0 -35
  380. package/dist/src/typus-perp/_framework/vector.js +0 -112
  381. package/dist/src/typus-perp/fetch.d.ts +0 -17
  382. package/dist/src/typus-perp/fetch.js +0 -410
  383. package/dist/src/typus-perp/index.d.ts +0 -5
  384. package/dist/src/typus-perp/index.js +0 -29
  385. package/dist/src/typus-perp/readVec.d.ts +0 -3
  386. package/dist/src/typus-perp/readVec.js +0 -117
  387. package/dist/src/typus-perp/typus_perp/admin/functions.d.ts +0 -50
  388. package/dist/src/typus-perp/typus_perp/admin/functions.js +0 -116
  389. package/dist/src/typus-perp/typus_perp/admin/structs.d.ts +0 -447
  390. package/dist/src/typus-perp/typus_perp/admin/structs.js +0 -898
  391. package/dist/src/typus-perp/typus_perp/index.d.ts +0 -3
  392. package/dist/src/typus-perp/typus_perp/index.js +0 -6
  393. package/dist/src/typus-perp/typus_perp/init.d.ts +0 -2
  394. package/dist/src/typus-perp/typus_perp/init.js +0 -107
  395. package/dist/src/typus-perp/typus_perp/lp-pool/functions.d.ts +0 -342
  396. package/dist/src/typus-perp/typus_perp/lp-pool/functions.js +0 -517
  397. package/dist/src/typus-perp/typus_perp/lp-pool/structs.d.ts +0 -3088
  398. package/dist/src/typus-perp/typus_perp/lp-pool/structs.js +0 -4800
  399. package/dist/src/typus-perp/typus_perp/math/functions.d.ts +0 -18
  400. package/dist/src/typus-perp/typus_perp/math/functions.js +0 -49
  401. package/dist/src/typus-perp/typus_perp/oracle/functions.d.ts +0 -13
  402. package/dist/src/typus-perp/typus_perp/oracle/functions.js +0 -25
  403. package/dist/src/typus-perp/typus_perp/oracle/structs.d.ts +0 -111
  404. package/dist/src/typus-perp/typus_perp/oracle/structs.js +0 -395
  405. package/dist/src/typus-perp/typus_perp/position/functions.d.ts +0 -343
  406. package/dist/src/typus-perp/typus_perp/position/functions.js +0 -659
  407. package/dist/src/typus-perp/typus_perp/position/structs.d.ts +0 -1174
  408. package/dist/src/typus-perp/typus_perp/position/structs.js +0 -1624
  409. package/dist/src/typus-perp/typus_perp/symbol/functions.d.ts +0 -9
  410. package/dist/src/typus-perp/typus_perp/symbol/functions.js +0 -33
  411. package/dist/src/typus-perp/typus_perp/symbol/structs.d.ts +0 -81
  412. package/dist/src/typus-perp/typus_perp/symbol/structs.js +0 -235
  413. package/dist/src/typus-perp/typus_perp/tlp/functions.d.ts +0 -19
  414. package/dist/src/typus-perp/typus_perp/tlp/functions.js +0 -41
  415. package/dist/src/typus-perp/typus_perp/tlp/structs.d.ts +0 -97
  416. package/dist/src/typus-perp/typus_perp/tlp/structs.js +0 -377
  417. package/dist/src/typus-perp/typus_perp/token-interface/functions.d.ts +0 -11
  418. package/dist/src/typus-perp/typus_perp/token-interface/functions.js +0 -20
  419. package/dist/src/typus-perp/typus_perp/trading/functions.d.ts +0 -493
  420. package/dist/src/typus-perp/typus_perp/trading/functions.js +0 -711
  421. package/dist/src/typus-perp/typus_perp/trading/structs.d.ts +0 -2993
  422. package/dist/src/typus-perp/typus_perp/trading/structs.js +0 -5002
  423. package/dist/src/typus-perp/typus_perp/treasury-caps/functions.d.ts +0 -9
  424. package/dist/src/typus-perp/typus_perp/treasury-caps/functions.js +0 -35
  425. package/dist/src/typus-perp/typus_perp/treasury-caps/structs.d.ts +0 -55
  426. package/dist/src/typus-perp/typus_perp/treasury-caps/structs.js +0 -229
  427. package/dist/src/typus-perp/typus_stake_pool/admin/functions.d.ts +0 -50
  428. package/dist/src/typus-perp/typus_stake_pool/admin/functions.js +0 -116
  429. package/dist/src/typus-perp/typus_stake_pool/admin/structs.d.ts +0 -447
  430. package/dist/src/typus-perp/typus_stake_pool/admin/structs.js +0 -898
  431. package/dist/src/typus-perp/typus_stake_pool/index.d.ts +0 -3
  432. package/dist/src/typus-perp/typus_stake_pool/index.js +0 -6
  433. package/dist/src/typus-perp/typus_stake_pool/init.d.ts +0 -2
  434. package/dist/src/typus-perp/typus_stake_pool/init.js +0 -57
  435. package/dist/src/typus-perp/typus_stake_pool/stake-pool/functions.d.ts +0 -175
  436. package/dist/src/typus-perp/typus_stake_pool/stake-pool/functions.js +0 -275
  437. package/dist/src/typus-perp/typus_stake_pool/stake-pool/structs.d.ts +0 -2179
  438. package/dist/src/typus-perp/typus_stake_pool/stake-pool/structs.js +0 -3939
  439. package/dist/src/typus-perp/user/index.d.ts +0 -3
  440. package/dist/src/typus-perp/user/index.js +0 -19
  441. package/dist/src/typus-perp/user/order.d.ts +0 -29
  442. package/dist/src/typus-perp/user/order.js +0 -206
  443. package/dist/src/typus-perp/user/orderWithBidReceipt.d.ts +0 -22
  444. package/dist/src/typus-perp/user/orderWithBidReceipt.js +0 -144
  445. package/dist/src/typus-perp/user/tlp.d.ts +0 -32
  446. package/dist/src/typus-perp/user/tlp.js +0 -267
@@ -1,1249 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
- return new (P || (P = Promise))(function (resolve, reject) {
39
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
- step((generator = generator.apply(thisArg, _arguments || [])).next());
43
- });
44
- };
45
- var __generator = (this && this.__generator) || function (thisArg, body) {
46
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
47
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
48
- function verb(n) { return function (v) { return step([n, v]); }; }
49
- function step(op) {
50
- if (f) throw new TypeError("Generator is already executing.");
51
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
52
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
53
- if (y = 0, t) op = [op[0] & 2, t.value];
54
- switch (op[0]) {
55
- case 0: case 1: t = op; break;
56
- case 4: _.label++; return { value: op[1], done: false };
57
- case 5: _.label++; y = op[1]; op = [0]; continue;
58
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
59
- default:
60
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
61
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
62
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
63
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
64
- if (t[2]) _.ops.pop();
65
- _.trys.pop(); continue;
66
- }
67
- op = body.call(thisArg, _);
68
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
69
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
70
- }
71
- };
72
- var __read = (this && this.__read) || function (o, n) {
73
- var m = typeof Symbol === "function" && o[Symbol.iterator];
74
- if (!m) return o;
75
- var i = m.call(o), r, ar = [], e;
76
- try {
77
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
78
- }
79
- catch (error) { e = { error: error }; }
80
- finally {
81
- try {
82
- if (r && !r.done && (m = i["return"])) m.call(i);
83
- }
84
- finally { if (e) throw e.error; }
85
- }
86
- return ar;
87
- };
88
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
89
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
90
- if (ar || !(i in from)) {
91
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
92
- ar[i] = from[i];
93
- }
94
- }
95
- return to.concat(ar || Array.prototype.slice.call(from));
96
- };
97
- Object.defineProperty(exports, "__esModule", { value: true });
98
- exports.TakeSharedFeeEvent = exports.TakeFeeEvent = exports.RemoveSharedFeePoolAuthorizedUserEvent = exports.RemoveFeePoolAuthorizedUserEvent = exports.AddSharedFeePoolAuthorizedUserEvent = exports.AddFeePoolAuthorizedUserEvent = exports.SendFeeEvent = void 0;
99
- exports.isSendFeeEvent = isSendFeeEvent;
100
- exports.isAddFeePoolAuthorizedUserEvent = isAddFeePoolAuthorizedUserEvent;
101
- exports.isAddSharedFeePoolAuthorizedUserEvent = isAddSharedFeePoolAuthorizedUserEvent;
102
- exports.isRemoveFeePoolAuthorizedUserEvent = isRemoveFeePoolAuthorizedUserEvent;
103
- exports.isRemoveSharedFeePoolAuthorizedUserEvent = isRemoveSharedFeePoolAuthorizedUserEvent;
104
- exports.isTakeFeeEvent = isTakeFeeEvent;
105
- exports.isTakeSharedFeeEvent = isTakeSharedFeeEvent;
106
- var reified = __importStar(require("../../../../_framework/reified"));
107
- var reified_1 = require("../../../../_framework/reified");
108
- var util_1 = require("../../../../_framework/util");
109
- var structs_1 = require("../../0x1/type-name/structs");
110
- var index_1 = require("../index");
111
- var bcs_1 = require("@mysten/sui/bcs");
112
- var utils_1 = require("@mysten/sui/utils");
113
- /* ============================== SendFeeEvent =============================== */
114
- function isSendFeeEvent(type) {
115
- type = (0, util_1.compressSuiType)(type);
116
- return type === "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::SendFeeEvent");
117
- }
118
- var SendFeeEvent = /** @class */ (function () {
119
- function SendFeeEvent(typeArgs, fields) {
120
- this.__StructClass = true;
121
- this.$typeName = SendFeeEvent.$typeName;
122
- this.$isPhantom = SendFeeEvent.$isPhantom;
123
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([SendFeeEvent.$typeName], __read(typeArgs), false));
124
- this.$typeArgs = typeArgs;
125
- this.signer = fields.signer;
126
- this.token = fields.token;
127
- this.amount = fields.amount;
128
- this.recipient = fields.recipient;
129
- }
130
- SendFeeEvent.reified = function () {
131
- var _this = this;
132
- return {
133
- typeName: SendFeeEvent.$typeName,
134
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([SendFeeEvent.$typeName], [], false)),
135
- typeArgs: [],
136
- isPhantom: SendFeeEvent.$isPhantom,
137
- reifiedTypeArgs: [],
138
- fromFields: function (fields) { return SendFeeEvent.fromFields(fields); },
139
- fromFieldsWithTypes: function (item) { return SendFeeEvent.fromFieldsWithTypes(item); },
140
- fromBcs: function (data) { return SendFeeEvent.fromBcs(data); },
141
- bcs: SendFeeEvent.bcs,
142
- fromJSONField: function (field) { return SendFeeEvent.fromJSONField(field); },
143
- fromJSON: function (json) { return SendFeeEvent.fromJSON(json); },
144
- fromSuiParsedData: function (content) { return SendFeeEvent.fromSuiParsedData(content); },
145
- fromSuiObjectData: function (content) { return SendFeeEvent.fromSuiObjectData(content); },
146
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
147
- return [2 /*return*/, SendFeeEvent.fetch(client, id)];
148
- }); }); },
149
- new: function (fields) {
150
- return new SendFeeEvent([], fields);
151
- },
152
- kind: "StructClassReified",
153
- };
154
- };
155
- Object.defineProperty(SendFeeEvent, "r", {
156
- get: function () {
157
- return SendFeeEvent.reified();
158
- },
159
- enumerable: false,
160
- configurable: true
161
- });
162
- SendFeeEvent.phantom = function () {
163
- return (0, reified_1.phantom)(SendFeeEvent.reified());
164
- };
165
- Object.defineProperty(SendFeeEvent, "p", {
166
- get: function () {
167
- return SendFeeEvent.phantom();
168
- },
169
- enumerable: false,
170
- configurable: true
171
- });
172
- Object.defineProperty(SendFeeEvent, "bcs", {
173
- get: function () {
174
- return bcs_1.bcs.struct("SendFeeEvent", {
175
- signer: bcs_1.bcs.bytes(32).transform({
176
- input: function (val) { return (0, utils_1.fromHEX)(val); },
177
- output: function (val) { return (0, utils_1.toHEX)(val); },
178
- }),
179
- token: structs_1.TypeName.bcs,
180
- amount: bcs_1.bcs.u64(),
181
- recipient: bcs_1.bcs.bytes(32).transform({
182
- input: function (val) { return (0, utils_1.fromHEX)(val); },
183
- output: function (val) { return (0, utils_1.toHEX)(val); },
184
- }),
185
- });
186
- },
187
- enumerable: false,
188
- configurable: true
189
- });
190
- SendFeeEvent.fromFields = function (fields) {
191
- return SendFeeEvent.reified().new({
192
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
193
- token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
194
- amount: (0, reified_1.decodeFromFields)("u64", fields.amount),
195
- recipient: (0, reified_1.decodeFromFields)("address", fields.recipient),
196
- });
197
- };
198
- SendFeeEvent.fromFieldsWithTypes = function (item) {
199
- if (!isSendFeeEvent(item.type)) {
200
- throw new Error("not a SendFeeEvent type");
201
- }
202
- return SendFeeEvent.reified().new({
203
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
204
- token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
205
- amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount),
206
- recipient: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.recipient),
207
- });
208
- };
209
- SendFeeEvent.fromBcs = function (data) {
210
- return SendFeeEvent.fromFields(SendFeeEvent.bcs.parse(data));
211
- };
212
- SendFeeEvent.prototype.toJSONField = function () {
213
- return {
214
- signer: this.signer,
215
- token: this.token.toJSONField(),
216
- amount: this.amount.toString(),
217
- recipient: this.recipient,
218
- };
219
- };
220
- SendFeeEvent.prototype.toJSON = function () {
221
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
222
- };
223
- SendFeeEvent.fromJSONField = function (field) {
224
- return SendFeeEvent.reified().new({
225
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
226
- token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
227
- amount: (0, reified_1.decodeFromJSONField)("u64", field.amount),
228
- recipient: (0, reified_1.decodeFromJSONField)("address", field.recipient),
229
- });
230
- };
231
- SendFeeEvent.fromJSON = function (json) {
232
- if (json.$typeName !== SendFeeEvent.$typeName) {
233
- throw new Error("not a WithTwoGenerics json object");
234
- }
235
- return SendFeeEvent.fromJSONField(json);
236
- };
237
- SendFeeEvent.fromSuiParsedData = function (content) {
238
- if (content.dataType !== "moveObject") {
239
- throw new Error("not an object");
240
- }
241
- if (!isSendFeeEvent(content.type)) {
242
- throw new Error("object at ".concat(content.fields.id, " is not a SendFeeEvent object"));
243
- }
244
- return SendFeeEvent.fromFieldsWithTypes(content);
245
- };
246
- SendFeeEvent.fromSuiObjectData = function (data) {
247
- if (data.bcs) {
248
- if (data.bcs.dataType !== "moveObject" || !isSendFeeEvent(data.bcs.type)) {
249
- throw new Error("object at is not a SendFeeEvent object");
250
- }
251
- return SendFeeEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
252
- }
253
- if (data.content) {
254
- return SendFeeEvent.fromSuiParsedData(data.content);
255
- }
256
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
257
- };
258
- SendFeeEvent.fetch = function (client, id) {
259
- return __awaiter(this, void 0, void 0, function () {
260
- var res;
261
- var _a, _b;
262
- return __generator(this, function (_c) {
263
- switch (_c.label) {
264
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
265
- case 1:
266
- res = _c.sent();
267
- if (res.error) {
268
- throw new Error("error fetching SendFeeEvent object at id ".concat(id, ": ").concat(res.error.code));
269
- }
270
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isSendFeeEvent(res.data.bcs.type)) {
271
- throw new Error("object at id ".concat(id, " is not a SendFeeEvent object"));
272
- }
273
- return [2 /*return*/, SendFeeEvent.fromSuiObjectData(res.data)];
274
- }
275
- });
276
- });
277
- };
278
- SendFeeEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::SendFeeEvent");
279
- SendFeeEvent.$numTypeParams = 0;
280
- SendFeeEvent.$isPhantom = [];
281
- return SendFeeEvent;
282
- }());
283
- exports.SendFeeEvent = SendFeeEvent;
284
- /* ============================== AddFeePoolAuthorizedUserEvent =============================== */
285
- function isAddFeePoolAuthorizedUserEvent(type) {
286
- type = (0, util_1.compressSuiType)(type);
287
- return type === "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::AddFeePoolAuthorizedUserEvent");
288
- }
289
- var AddFeePoolAuthorizedUserEvent = /** @class */ (function () {
290
- function AddFeePoolAuthorizedUserEvent(typeArgs, fields) {
291
- this.__StructClass = true;
292
- this.$typeName = AddFeePoolAuthorizedUserEvent.$typeName;
293
- this.$isPhantom = AddFeePoolAuthorizedUserEvent.$isPhantom;
294
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AddFeePoolAuthorizedUserEvent.$typeName], __read(typeArgs), false));
295
- this.$typeArgs = typeArgs;
296
- this.signer = fields.signer;
297
- this.users = fields.users;
298
- }
299
- AddFeePoolAuthorizedUserEvent.reified = function () {
300
- var _this = this;
301
- return {
302
- typeName: AddFeePoolAuthorizedUserEvent.$typeName,
303
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AddFeePoolAuthorizedUserEvent.$typeName], [], false)),
304
- typeArgs: [],
305
- isPhantom: AddFeePoolAuthorizedUserEvent.$isPhantom,
306
- reifiedTypeArgs: [],
307
- fromFields: function (fields) { return AddFeePoolAuthorizedUserEvent.fromFields(fields); },
308
- fromFieldsWithTypes: function (item) { return AddFeePoolAuthorizedUserEvent.fromFieldsWithTypes(item); },
309
- fromBcs: function (data) { return AddFeePoolAuthorizedUserEvent.fromBcs(data); },
310
- bcs: AddFeePoolAuthorizedUserEvent.bcs,
311
- fromJSONField: function (field) { return AddFeePoolAuthorizedUserEvent.fromJSONField(field); },
312
- fromJSON: function (json) { return AddFeePoolAuthorizedUserEvent.fromJSON(json); },
313
- fromSuiParsedData: function (content) { return AddFeePoolAuthorizedUserEvent.fromSuiParsedData(content); },
314
- fromSuiObjectData: function (content) { return AddFeePoolAuthorizedUserEvent.fromSuiObjectData(content); },
315
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
316
- return [2 /*return*/, AddFeePoolAuthorizedUserEvent.fetch(client, id)];
317
- }); }); },
318
- new: function (fields) {
319
- return new AddFeePoolAuthorizedUserEvent([], fields);
320
- },
321
- kind: "StructClassReified",
322
- };
323
- };
324
- Object.defineProperty(AddFeePoolAuthorizedUserEvent, "r", {
325
- get: function () {
326
- return AddFeePoolAuthorizedUserEvent.reified();
327
- },
328
- enumerable: false,
329
- configurable: true
330
- });
331
- AddFeePoolAuthorizedUserEvent.phantom = function () {
332
- return (0, reified_1.phantom)(AddFeePoolAuthorizedUserEvent.reified());
333
- };
334
- Object.defineProperty(AddFeePoolAuthorizedUserEvent, "p", {
335
- get: function () {
336
- return AddFeePoolAuthorizedUserEvent.phantom();
337
- },
338
- enumerable: false,
339
- configurable: true
340
- });
341
- Object.defineProperty(AddFeePoolAuthorizedUserEvent, "bcs", {
342
- get: function () {
343
- return bcs_1.bcs.struct("AddFeePoolAuthorizedUserEvent", {
344
- signer: bcs_1.bcs.bytes(32).transform({
345
- input: function (val) { return (0, utils_1.fromHEX)(val); },
346
- output: function (val) { return (0, utils_1.toHEX)(val); },
347
- }),
348
- users: bcs_1.bcs.vector(bcs_1.bcs.bytes(32).transform({
349
- input: function (val) { return (0, utils_1.fromHEX)(val); },
350
- output: function (val) { return (0, utils_1.toHEX)(val); },
351
- })),
352
- });
353
- },
354
- enumerable: false,
355
- configurable: true
356
- });
357
- AddFeePoolAuthorizedUserEvent.fromFields = function (fields) {
358
- return AddFeePoolAuthorizedUserEvent.reified().new({
359
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
360
- users: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.users),
361
- });
362
- };
363
- AddFeePoolAuthorizedUserEvent.fromFieldsWithTypes = function (item) {
364
- if (!isAddFeePoolAuthorizedUserEvent(item.type)) {
365
- throw new Error("not a AddFeePoolAuthorizedUserEvent type");
366
- }
367
- return AddFeePoolAuthorizedUserEvent.reified().new({
368
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
369
- users: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.users),
370
- });
371
- };
372
- AddFeePoolAuthorizedUserEvent.fromBcs = function (data) {
373
- return AddFeePoolAuthorizedUserEvent.fromFields(AddFeePoolAuthorizedUserEvent.bcs.parse(data));
374
- };
375
- AddFeePoolAuthorizedUserEvent.prototype.toJSONField = function () {
376
- return {
377
- signer: this.signer,
378
- users: (0, reified_1.fieldToJSON)("vector<address>", this.users),
379
- };
380
- };
381
- AddFeePoolAuthorizedUserEvent.prototype.toJSON = function () {
382
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
383
- };
384
- AddFeePoolAuthorizedUserEvent.fromJSONField = function (field) {
385
- return AddFeePoolAuthorizedUserEvent.reified().new({
386
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
387
- users: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.users),
388
- });
389
- };
390
- AddFeePoolAuthorizedUserEvent.fromJSON = function (json) {
391
- if (json.$typeName !== AddFeePoolAuthorizedUserEvent.$typeName) {
392
- throw new Error("not a WithTwoGenerics json object");
393
- }
394
- return AddFeePoolAuthorizedUserEvent.fromJSONField(json);
395
- };
396
- AddFeePoolAuthorizedUserEvent.fromSuiParsedData = function (content) {
397
- if (content.dataType !== "moveObject") {
398
- throw new Error("not an object");
399
- }
400
- if (!isAddFeePoolAuthorizedUserEvent(content.type)) {
401
- throw new Error("object at ".concat(content.fields.id, " is not a AddFeePoolAuthorizedUserEvent object"));
402
- }
403
- return AddFeePoolAuthorizedUserEvent.fromFieldsWithTypes(content);
404
- };
405
- AddFeePoolAuthorizedUserEvent.fromSuiObjectData = function (data) {
406
- if (data.bcs) {
407
- if (data.bcs.dataType !== "moveObject" || !isAddFeePoolAuthorizedUserEvent(data.bcs.type)) {
408
- throw new Error("object at is not a AddFeePoolAuthorizedUserEvent object");
409
- }
410
- return AddFeePoolAuthorizedUserEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
411
- }
412
- if (data.content) {
413
- return AddFeePoolAuthorizedUserEvent.fromSuiParsedData(data.content);
414
- }
415
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
416
- };
417
- AddFeePoolAuthorizedUserEvent.fetch = function (client, id) {
418
- return __awaiter(this, void 0, void 0, function () {
419
- var res;
420
- var _a, _b;
421
- return __generator(this, function (_c) {
422
- switch (_c.label) {
423
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
424
- case 1:
425
- res = _c.sent();
426
- if (res.error) {
427
- throw new Error("error fetching AddFeePoolAuthorizedUserEvent object at id ".concat(id, ": ").concat(res.error.code));
428
- }
429
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAddFeePoolAuthorizedUserEvent(res.data.bcs.type)) {
430
- throw new Error("object at id ".concat(id, " is not a AddFeePoolAuthorizedUserEvent object"));
431
- }
432
- return [2 /*return*/, AddFeePoolAuthorizedUserEvent.fromSuiObjectData(res.data)];
433
- }
434
- });
435
- });
436
- };
437
- AddFeePoolAuthorizedUserEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::AddFeePoolAuthorizedUserEvent");
438
- AddFeePoolAuthorizedUserEvent.$numTypeParams = 0;
439
- AddFeePoolAuthorizedUserEvent.$isPhantom = [];
440
- return AddFeePoolAuthorizedUserEvent;
441
- }());
442
- exports.AddFeePoolAuthorizedUserEvent = AddFeePoolAuthorizedUserEvent;
443
- /* ============================== AddSharedFeePoolAuthorizedUserEvent =============================== */
444
- function isAddSharedFeePoolAuthorizedUserEvent(type) {
445
- type = (0, util_1.compressSuiType)(type);
446
- return type === "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::AddSharedFeePoolAuthorizedUserEvent");
447
- }
448
- var AddSharedFeePoolAuthorizedUserEvent = /** @class */ (function () {
449
- function AddSharedFeePoolAuthorizedUserEvent(typeArgs, fields) {
450
- this.__StructClass = true;
451
- this.$typeName = AddSharedFeePoolAuthorizedUserEvent.$typeName;
452
- this.$isPhantom = AddSharedFeePoolAuthorizedUserEvent.$isPhantom;
453
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AddSharedFeePoolAuthorizedUserEvent.$typeName], __read(typeArgs), false));
454
- this.$typeArgs = typeArgs;
455
- this.signer = fields.signer;
456
- this.users = fields.users;
457
- }
458
- AddSharedFeePoolAuthorizedUserEvent.reified = function () {
459
- var _this = this;
460
- return {
461
- typeName: AddSharedFeePoolAuthorizedUserEvent.$typeName,
462
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AddSharedFeePoolAuthorizedUserEvent.$typeName], [], false)),
463
- typeArgs: [],
464
- isPhantom: AddSharedFeePoolAuthorizedUserEvent.$isPhantom,
465
- reifiedTypeArgs: [],
466
- fromFields: function (fields) { return AddSharedFeePoolAuthorizedUserEvent.fromFields(fields); },
467
- fromFieldsWithTypes: function (item) { return AddSharedFeePoolAuthorizedUserEvent.fromFieldsWithTypes(item); },
468
- fromBcs: function (data) { return AddSharedFeePoolAuthorizedUserEvent.fromBcs(data); },
469
- bcs: AddSharedFeePoolAuthorizedUserEvent.bcs,
470
- fromJSONField: function (field) { return AddSharedFeePoolAuthorizedUserEvent.fromJSONField(field); },
471
- fromJSON: function (json) { return AddSharedFeePoolAuthorizedUserEvent.fromJSON(json); },
472
- fromSuiParsedData: function (content) { return AddSharedFeePoolAuthorizedUserEvent.fromSuiParsedData(content); },
473
- fromSuiObjectData: function (content) { return AddSharedFeePoolAuthorizedUserEvent.fromSuiObjectData(content); },
474
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
475
- return [2 /*return*/, AddSharedFeePoolAuthorizedUserEvent.fetch(client, id)];
476
- }); }); },
477
- new: function (fields) {
478
- return new AddSharedFeePoolAuthorizedUserEvent([], fields);
479
- },
480
- kind: "StructClassReified",
481
- };
482
- };
483
- Object.defineProperty(AddSharedFeePoolAuthorizedUserEvent, "r", {
484
- get: function () {
485
- return AddSharedFeePoolAuthorizedUserEvent.reified();
486
- },
487
- enumerable: false,
488
- configurable: true
489
- });
490
- AddSharedFeePoolAuthorizedUserEvent.phantom = function () {
491
- return (0, reified_1.phantom)(AddSharedFeePoolAuthorizedUserEvent.reified());
492
- };
493
- Object.defineProperty(AddSharedFeePoolAuthorizedUserEvent, "p", {
494
- get: function () {
495
- return AddSharedFeePoolAuthorizedUserEvent.phantom();
496
- },
497
- enumerable: false,
498
- configurable: true
499
- });
500
- Object.defineProperty(AddSharedFeePoolAuthorizedUserEvent, "bcs", {
501
- get: function () {
502
- return bcs_1.bcs.struct("AddSharedFeePoolAuthorizedUserEvent", {
503
- signer: bcs_1.bcs.bytes(32).transform({
504
- input: function (val) { return (0, utils_1.fromHEX)(val); },
505
- output: function (val) { return (0, utils_1.toHEX)(val); },
506
- }),
507
- users: bcs_1.bcs.vector(bcs_1.bcs.bytes(32).transform({
508
- input: function (val) { return (0, utils_1.fromHEX)(val); },
509
- output: function (val) { return (0, utils_1.toHEX)(val); },
510
- })),
511
- });
512
- },
513
- enumerable: false,
514
- configurable: true
515
- });
516
- AddSharedFeePoolAuthorizedUserEvent.fromFields = function (fields) {
517
- return AddSharedFeePoolAuthorizedUserEvent.reified().new({
518
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
519
- users: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.users),
520
- });
521
- };
522
- AddSharedFeePoolAuthorizedUserEvent.fromFieldsWithTypes = function (item) {
523
- if (!isAddSharedFeePoolAuthorizedUserEvent(item.type)) {
524
- throw new Error("not a AddSharedFeePoolAuthorizedUserEvent type");
525
- }
526
- return AddSharedFeePoolAuthorizedUserEvent.reified().new({
527
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
528
- users: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.users),
529
- });
530
- };
531
- AddSharedFeePoolAuthorizedUserEvent.fromBcs = function (data) {
532
- return AddSharedFeePoolAuthorizedUserEvent.fromFields(AddSharedFeePoolAuthorizedUserEvent.bcs.parse(data));
533
- };
534
- AddSharedFeePoolAuthorizedUserEvent.prototype.toJSONField = function () {
535
- return {
536
- signer: this.signer,
537
- users: (0, reified_1.fieldToJSON)("vector<address>", this.users),
538
- };
539
- };
540
- AddSharedFeePoolAuthorizedUserEvent.prototype.toJSON = function () {
541
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
542
- };
543
- AddSharedFeePoolAuthorizedUserEvent.fromJSONField = function (field) {
544
- return AddSharedFeePoolAuthorizedUserEvent.reified().new({
545
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
546
- users: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.users),
547
- });
548
- };
549
- AddSharedFeePoolAuthorizedUserEvent.fromJSON = function (json) {
550
- if (json.$typeName !== AddSharedFeePoolAuthorizedUserEvent.$typeName) {
551
- throw new Error("not a WithTwoGenerics json object");
552
- }
553
- return AddSharedFeePoolAuthorizedUserEvent.fromJSONField(json);
554
- };
555
- AddSharedFeePoolAuthorizedUserEvent.fromSuiParsedData = function (content) {
556
- if (content.dataType !== "moveObject") {
557
- throw new Error("not an object");
558
- }
559
- if (!isAddSharedFeePoolAuthorizedUserEvent(content.type)) {
560
- throw new Error("object at ".concat(content.fields.id, " is not a AddSharedFeePoolAuthorizedUserEvent object"));
561
- }
562
- return AddSharedFeePoolAuthorizedUserEvent.fromFieldsWithTypes(content);
563
- };
564
- AddSharedFeePoolAuthorizedUserEvent.fromSuiObjectData = function (data) {
565
- if (data.bcs) {
566
- if (data.bcs.dataType !== "moveObject" || !isAddSharedFeePoolAuthorizedUserEvent(data.bcs.type)) {
567
- throw new Error("object at is not a AddSharedFeePoolAuthorizedUserEvent object");
568
- }
569
- return AddSharedFeePoolAuthorizedUserEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
570
- }
571
- if (data.content) {
572
- return AddSharedFeePoolAuthorizedUserEvent.fromSuiParsedData(data.content);
573
- }
574
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
575
- };
576
- AddSharedFeePoolAuthorizedUserEvent.fetch = function (client, id) {
577
- return __awaiter(this, void 0, void 0, function () {
578
- var res;
579
- var _a, _b;
580
- return __generator(this, function (_c) {
581
- switch (_c.label) {
582
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
583
- case 1:
584
- res = _c.sent();
585
- if (res.error) {
586
- throw new Error("error fetching AddSharedFeePoolAuthorizedUserEvent object at id ".concat(id, ": ").concat(res.error.code));
587
- }
588
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAddSharedFeePoolAuthorizedUserEvent(res.data.bcs.type)) {
589
- throw new Error("object at id ".concat(id, " is not a AddSharedFeePoolAuthorizedUserEvent object"));
590
- }
591
- return [2 /*return*/, AddSharedFeePoolAuthorizedUserEvent.fromSuiObjectData(res.data)];
592
- }
593
- });
594
- });
595
- };
596
- AddSharedFeePoolAuthorizedUserEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::AddSharedFeePoolAuthorizedUserEvent");
597
- AddSharedFeePoolAuthorizedUserEvent.$numTypeParams = 0;
598
- AddSharedFeePoolAuthorizedUserEvent.$isPhantom = [];
599
- return AddSharedFeePoolAuthorizedUserEvent;
600
- }());
601
- exports.AddSharedFeePoolAuthorizedUserEvent = AddSharedFeePoolAuthorizedUserEvent;
602
- /* ============================== RemoveFeePoolAuthorizedUserEvent =============================== */
603
- function isRemoveFeePoolAuthorizedUserEvent(type) {
604
- type = (0, util_1.compressSuiType)(type);
605
- return type === "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::RemoveFeePoolAuthorizedUserEvent");
606
- }
607
- var RemoveFeePoolAuthorizedUserEvent = /** @class */ (function () {
608
- function RemoveFeePoolAuthorizedUserEvent(typeArgs, fields) {
609
- this.__StructClass = true;
610
- this.$typeName = RemoveFeePoolAuthorizedUserEvent.$typeName;
611
- this.$isPhantom = RemoveFeePoolAuthorizedUserEvent.$isPhantom;
612
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemoveFeePoolAuthorizedUserEvent.$typeName], __read(typeArgs), false));
613
- this.$typeArgs = typeArgs;
614
- this.signer = fields.signer;
615
- this.users = fields.users;
616
- }
617
- RemoveFeePoolAuthorizedUserEvent.reified = function () {
618
- var _this = this;
619
- return {
620
- typeName: RemoveFeePoolAuthorizedUserEvent.$typeName,
621
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemoveFeePoolAuthorizedUserEvent.$typeName], [], false)),
622
- typeArgs: [],
623
- isPhantom: RemoveFeePoolAuthorizedUserEvent.$isPhantom,
624
- reifiedTypeArgs: [],
625
- fromFields: function (fields) { return RemoveFeePoolAuthorizedUserEvent.fromFields(fields); },
626
- fromFieldsWithTypes: function (item) { return RemoveFeePoolAuthorizedUserEvent.fromFieldsWithTypes(item); },
627
- fromBcs: function (data) { return RemoveFeePoolAuthorizedUserEvent.fromBcs(data); },
628
- bcs: RemoveFeePoolAuthorizedUserEvent.bcs,
629
- fromJSONField: function (field) { return RemoveFeePoolAuthorizedUserEvent.fromJSONField(field); },
630
- fromJSON: function (json) { return RemoveFeePoolAuthorizedUserEvent.fromJSON(json); },
631
- fromSuiParsedData: function (content) { return RemoveFeePoolAuthorizedUserEvent.fromSuiParsedData(content); },
632
- fromSuiObjectData: function (content) { return RemoveFeePoolAuthorizedUserEvent.fromSuiObjectData(content); },
633
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
634
- return [2 /*return*/, RemoveFeePoolAuthorizedUserEvent.fetch(client, id)];
635
- }); }); },
636
- new: function (fields) {
637
- return new RemoveFeePoolAuthorizedUserEvent([], fields);
638
- },
639
- kind: "StructClassReified",
640
- };
641
- };
642
- Object.defineProperty(RemoveFeePoolAuthorizedUserEvent, "r", {
643
- get: function () {
644
- return RemoveFeePoolAuthorizedUserEvent.reified();
645
- },
646
- enumerable: false,
647
- configurable: true
648
- });
649
- RemoveFeePoolAuthorizedUserEvent.phantom = function () {
650
- return (0, reified_1.phantom)(RemoveFeePoolAuthorizedUserEvent.reified());
651
- };
652
- Object.defineProperty(RemoveFeePoolAuthorizedUserEvent, "p", {
653
- get: function () {
654
- return RemoveFeePoolAuthorizedUserEvent.phantom();
655
- },
656
- enumerable: false,
657
- configurable: true
658
- });
659
- Object.defineProperty(RemoveFeePoolAuthorizedUserEvent, "bcs", {
660
- get: function () {
661
- return bcs_1.bcs.struct("RemoveFeePoolAuthorizedUserEvent", {
662
- signer: bcs_1.bcs.bytes(32).transform({
663
- input: function (val) { return (0, utils_1.fromHEX)(val); },
664
- output: function (val) { return (0, utils_1.toHEX)(val); },
665
- }),
666
- users: bcs_1.bcs.vector(bcs_1.bcs.bytes(32).transform({
667
- input: function (val) { return (0, utils_1.fromHEX)(val); },
668
- output: function (val) { return (0, utils_1.toHEX)(val); },
669
- })),
670
- });
671
- },
672
- enumerable: false,
673
- configurable: true
674
- });
675
- RemoveFeePoolAuthorizedUserEvent.fromFields = function (fields) {
676
- return RemoveFeePoolAuthorizedUserEvent.reified().new({
677
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
678
- users: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.users),
679
- });
680
- };
681
- RemoveFeePoolAuthorizedUserEvent.fromFieldsWithTypes = function (item) {
682
- if (!isRemoveFeePoolAuthorizedUserEvent(item.type)) {
683
- throw new Error("not a RemoveFeePoolAuthorizedUserEvent type");
684
- }
685
- return RemoveFeePoolAuthorizedUserEvent.reified().new({
686
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
687
- users: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.users),
688
- });
689
- };
690
- RemoveFeePoolAuthorizedUserEvent.fromBcs = function (data) {
691
- return RemoveFeePoolAuthorizedUserEvent.fromFields(RemoveFeePoolAuthorizedUserEvent.bcs.parse(data));
692
- };
693
- RemoveFeePoolAuthorizedUserEvent.prototype.toJSONField = function () {
694
- return {
695
- signer: this.signer,
696
- users: (0, reified_1.fieldToJSON)("vector<address>", this.users),
697
- };
698
- };
699
- RemoveFeePoolAuthorizedUserEvent.prototype.toJSON = function () {
700
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
701
- };
702
- RemoveFeePoolAuthorizedUserEvent.fromJSONField = function (field) {
703
- return RemoveFeePoolAuthorizedUserEvent.reified().new({
704
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
705
- users: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.users),
706
- });
707
- };
708
- RemoveFeePoolAuthorizedUserEvent.fromJSON = function (json) {
709
- if (json.$typeName !== RemoveFeePoolAuthorizedUserEvent.$typeName) {
710
- throw new Error("not a WithTwoGenerics json object");
711
- }
712
- return RemoveFeePoolAuthorizedUserEvent.fromJSONField(json);
713
- };
714
- RemoveFeePoolAuthorizedUserEvent.fromSuiParsedData = function (content) {
715
- if (content.dataType !== "moveObject") {
716
- throw new Error("not an object");
717
- }
718
- if (!isRemoveFeePoolAuthorizedUserEvent(content.type)) {
719
- throw new Error("object at ".concat(content.fields.id, " is not a RemoveFeePoolAuthorizedUserEvent object"));
720
- }
721
- return RemoveFeePoolAuthorizedUserEvent.fromFieldsWithTypes(content);
722
- };
723
- RemoveFeePoolAuthorizedUserEvent.fromSuiObjectData = function (data) {
724
- if (data.bcs) {
725
- if (data.bcs.dataType !== "moveObject" || !isRemoveFeePoolAuthorizedUserEvent(data.bcs.type)) {
726
- throw new Error("object at is not a RemoveFeePoolAuthorizedUserEvent object");
727
- }
728
- return RemoveFeePoolAuthorizedUserEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
729
- }
730
- if (data.content) {
731
- return RemoveFeePoolAuthorizedUserEvent.fromSuiParsedData(data.content);
732
- }
733
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
734
- };
735
- RemoveFeePoolAuthorizedUserEvent.fetch = function (client, id) {
736
- return __awaiter(this, void 0, void 0, function () {
737
- var res;
738
- var _a, _b;
739
- return __generator(this, function (_c) {
740
- switch (_c.label) {
741
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
742
- case 1:
743
- res = _c.sent();
744
- if (res.error) {
745
- throw new Error("error fetching RemoveFeePoolAuthorizedUserEvent object at id ".concat(id, ": ").concat(res.error.code));
746
- }
747
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRemoveFeePoolAuthorizedUserEvent(res.data.bcs.type)) {
748
- throw new Error("object at id ".concat(id, " is not a RemoveFeePoolAuthorizedUserEvent object"));
749
- }
750
- return [2 /*return*/, RemoveFeePoolAuthorizedUserEvent.fromSuiObjectData(res.data)];
751
- }
752
- });
753
- });
754
- };
755
- RemoveFeePoolAuthorizedUserEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::RemoveFeePoolAuthorizedUserEvent");
756
- RemoveFeePoolAuthorizedUserEvent.$numTypeParams = 0;
757
- RemoveFeePoolAuthorizedUserEvent.$isPhantom = [];
758
- return RemoveFeePoolAuthorizedUserEvent;
759
- }());
760
- exports.RemoveFeePoolAuthorizedUserEvent = RemoveFeePoolAuthorizedUserEvent;
761
- /* ============================== RemoveSharedFeePoolAuthorizedUserEvent =============================== */
762
- function isRemoveSharedFeePoolAuthorizedUserEvent(type) {
763
- type = (0, util_1.compressSuiType)(type);
764
- return type === "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::RemoveSharedFeePoolAuthorizedUserEvent");
765
- }
766
- var RemoveSharedFeePoolAuthorizedUserEvent = /** @class */ (function () {
767
- function RemoveSharedFeePoolAuthorizedUserEvent(typeArgs, fields) {
768
- this.__StructClass = true;
769
- this.$typeName = RemoveSharedFeePoolAuthorizedUserEvent.$typeName;
770
- this.$isPhantom = RemoveSharedFeePoolAuthorizedUserEvent.$isPhantom;
771
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemoveSharedFeePoolAuthorizedUserEvent.$typeName], __read(typeArgs), false));
772
- this.$typeArgs = typeArgs;
773
- this.signer = fields.signer;
774
- this.users = fields.users;
775
- }
776
- RemoveSharedFeePoolAuthorizedUserEvent.reified = function () {
777
- var _this = this;
778
- return {
779
- typeName: RemoveSharedFeePoolAuthorizedUserEvent.$typeName,
780
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemoveSharedFeePoolAuthorizedUserEvent.$typeName], [], false)),
781
- typeArgs: [],
782
- isPhantom: RemoveSharedFeePoolAuthorizedUserEvent.$isPhantom,
783
- reifiedTypeArgs: [],
784
- fromFields: function (fields) { return RemoveSharedFeePoolAuthorizedUserEvent.fromFields(fields); },
785
- fromFieldsWithTypes: function (item) { return RemoveSharedFeePoolAuthorizedUserEvent.fromFieldsWithTypes(item); },
786
- fromBcs: function (data) { return RemoveSharedFeePoolAuthorizedUserEvent.fromBcs(data); },
787
- bcs: RemoveSharedFeePoolAuthorizedUserEvent.bcs,
788
- fromJSONField: function (field) { return RemoveSharedFeePoolAuthorizedUserEvent.fromJSONField(field); },
789
- fromJSON: function (json) { return RemoveSharedFeePoolAuthorizedUserEvent.fromJSON(json); },
790
- fromSuiParsedData: function (content) { return RemoveSharedFeePoolAuthorizedUserEvent.fromSuiParsedData(content); },
791
- fromSuiObjectData: function (content) { return RemoveSharedFeePoolAuthorizedUserEvent.fromSuiObjectData(content); },
792
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
793
- return [2 /*return*/, RemoveSharedFeePoolAuthorizedUserEvent.fetch(client, id)];
794
- }); }); },
795
- new: function (fields) {
796
- return new RemoveSharedFeePoolAuthorizedUserEvent([], fields);
797
- },
798
- kind: "StructClassReified",
799
- };
800
- };
801
- Object.defineProperty(RemoveSharedFeePoolAuthorizedUserEvent, "r", {
802
- get: function () {
803
- return RemoveSharedFeePoolAuthorizedUserEvent.reified();
804
- },
805
- enumerable: false,
806
- configurable: true
807
- });
808
- RemoveSharedFeePoolAuthorizedUserEvent.phantom = function () {
809
- return (0, reified_1.phantom)(RemoveSharedFeePoolAuthorizedUserEvent.reified());
810
- };
811
- Object.defineProperty(RemoveSharedFeePoolAuthorizedUserEvent, "p", {
812
- get: function () {
813
- return RemoveSharedFeePoolAuthorizedUserEvent.phantom();
814
- },
815
- enumerable: false,
816
- configurable: true
817
- });
818
- Object.defineProperty(RemoveSharedFeePoolAuthorizedUserEvent, "bcs", {
819
- get: function () {
820
- return bcs_1.bcs.struct("RemoveSharedFeePoolAuthorizedUserEvent", {
821
- signer: bcs_1.bcs.bytes(32).transform({
822
- input: function (val) { return (0, utils_1.fromHEX)(val); },
823
- output: function (val) { return (0, utils_1.toHEX)(val); },
824
- }),
825
- users: bcs_1.bcs.vector(bcs_1.bcs.bytes(32).transform({
826
- input: function (val) { return (0, utils_1.fromHEX)(val); },
827
- output: function (val) { return (0, utils_1.toHEX)(val); },
828
- })),
829
- });
830
- },
831
- enumerable: false,
832
- configurable: true
833
- });
834
- RemoveSharedFeePoolAuthorizedUserEvent.fromFields = function (fields) {
835
- return RemoveSharedFeePoolAuthorizedUserEvent.reified().new({
836
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
837
- users: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.users),
838
- });
839
- };
840
- RemoveSharedFeePoolAuthorizedUserEvent.fromFieldsWithTypes = function (item) {
841
- if (!isRemoveSharedFeePoolAuthorizedUserEvent(item.type)) {
842
- throw new Error("not a RemoveSharedFeePoolAuthorizedUserEvent type");
843
- }
844
- return RemoveSharedFeePoolAuthorizedUserEvent.reified().new({
845
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
846
- users: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.users),
847
- });
848
- };
849
- RemoveSharedFeePoolAuthorizedUserEvent.fromBcs = function (data) {
850
- return RemoveSharedFeePoolAuthorizedUserEvent.fromFields(RemoveSharedFeePoolAuthorizedUserEvent.bcs.parse(data));
851
- };
852
- RemoveSharedFeePoolAuthorizedUserEvent.prototype.toJSONField = function () {
853
- return {
854
- signer: this.signer,
855
- users: (0, reified_1.fieldToJSON)("vector<address>", this.users),
856
- };
857
- };
858
- RemoveSharedFeePoolAuthorizedUserEvent.prototype.toJSON = function () {
859
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
860
- };
861
- RemoveSharedFeePoolAuthorizedUserEvent.fromJSONField = function (field) {
862
- return RemoveSharedFeePoolAuthorizedUserEvent.reified().new({
863
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
864
- users: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.users),
865
- });
866
- };
867
- RemoveSharedFeePoolAuthorizedUserEvent.fromJSON = function (json) {
868
- if (json.$typeName !== RemoveSharedFeePoolAuthorizedUserEvent.$typeName) {
869
- throw new Error("not a WithTwoGenerics json object");
870
- }
871
- return RemoveSharedFeePoolAuthorizedUserEvent.fromJSONField(json);
872
- };
873
- RemoveSharedFeePoolAuthorizedUserEvent.fromSuiParsedData = function (content) {
874
- if (content.dataType !== "moveObject") {
875
- throw new Error("not an object");
876
- }
877
- if (!isRemoveSharedFeePoolAuthorizedUserEvent(content.type)) {
878
- throw new Error("object at ".concat(content.fields.id, " is not a RemoveSharedFeePoolAuthorizedUserEvent object"));
879
- }
880
- return RemoveSharedFeePoolAuthorizedUserEvent.fromFieldsWithTypes(content);
881
- };
882
- RemoveSharedFeePoolAuthorizedUserEvent.fromSuiObjectData = function (data) {
883
- if (data.bcs) {
884
- if (data.bcs.dataType !== "moveObject" || !isRemoveSharedFeePoolAuthorizedUserEvent(data.bcs.type)) {
885
- throw new Error("object at is not a RemoveSharedFeePoolAuthorizedUserEvent object");
886
- }
887
- return RemoveSharedFeePoolAuthorizedUserEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
888
- }
889
- if (data.content) {
890
- return RemoveSharedFeePoolAuthorizedUserEvent.fromSuiParsedData(data.content);
891
- }
892
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
893
- };
894
- RemoveSharedFeePoolAuthorizedUserEvent.fetch = function (client, id) {
895
- return __awaiter(this, void 0, void 0, function () {
896
- var res;
897
- var _a, _b;
898
- return __generator(this, function (_c) {
899
- switch (_c.label) {
900
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
901
- case 1:
902
- res = _c.sent();
903
- if (res.error) {
904
- throw new Error("error fetching RemoveSharedFeePoolAuthorizedUserEvent object at id ".concat(id, ": ").concat(res.error.code));
905
- }
906
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRemoveSharedFeePoolAuthorizedUserEvent(res.data.bcs.type)) {
907
- throw new Error("object at id ".concat(id, " is not a RemoveSharedFeePoolAuthorizedUserEvent object"));
908
- }
909
- return [2 /*return*/, RemoveSharedFeePoolAuthorizedUserEvent.fromSuiObjectData(res.data)];
910
- }
911
- });
912
- });
913
- };
914
- RemoveSharedFeePoolAuthorizedUserEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::RemoveSharedFeePoolAuthorizedUserEvent");
915
- RemoveSharedFeePoolAuthorizedUserEvent.$numTypeParams = 0;
916
- RemoveSharedFeePoolAuthorizedUserEvent.$isPhantom = [];
917
- return RemoveSharedFeePoolAuthorizedUserEvent;
918
- }());
919
- exports.RemoveSharedFeePoolAuthorizedUserEvent = RemoveSharedFeePoolAuthorizedUserEvent;
920
- /* ============================== TakeFeeEvent =============================== */
921
- function isTakeFeeEvent(type) {
922
- type = (0, util_1.compressSuiType)(type);
923
- return type === "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::TakeFeeEvent");
924
- }
925
- var TakeFeeEvent = /** @class */ (function () {
926
- function TakeFeeEvent(typeArgs, fields) {
927
- this.__StructClass = true;
928
- this.$typeName = TakeFeeEvent.$typeName;
929
- this.$isPhantom = TakeFeeEvent.$isPhantom;
930
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TakeFeeEvent.$typeName], __read(typeArgs), false));
931
- this.$typeArgs = typeArgs;
932
- this.signer = fields.signer;
933
- this.token = fields.token;
934
- this.amount = fields.amount;
935
- }
936
- TakeFeeEvent.reified = function () {
937
- var _this = this;
938
- return {
939
- typeName: TakeFeeEvent.$typeName,
940
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TakeFeeEvent.$typeName], [], false)),
941
- typeArgs: [],
942
- isPhantom: TakeFeeEvent.$isPhantom,
943
- reifiedTypeArgs: [],
944
- fromFields: function (fields) { return TakeFeeEvent.fromFields(fields); },
945
- fromFieldsWithTypes: function (item) { return TakeFeeEvent.fromFieldsWithTypes(item); },
946
- fromBcs: function (data) { return TakeFeeEvent.fromBcs(data); },
947
- bcs: TakeFeeEvent.bcs,
948
- fromJSONField: function (field) { return TakeFeeEvent.fromJSONField(field); },
949
- fromJSON: function (json) { return TakeFeeEvent.fromJSON(json); },
950
- fromSuiParsedData: function (content) { return TakeFeeEvent.fromSuiParsedData(content); },
951
- fromSuiObjectData: function (content) { return TakeFeeEvent.fromSuiObjectData(content); },
952
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
953
- return [2 /*return*/, TakeFeeEvent.fetch(client, id)];
954
- }); }); },
955
- new: function (fields) {
956
- return new TakeFeeEvent([], fields);
957
- },
958
- kind: "StructClassReified",
959
- };
960
- };
961
- Object.defineProperty(TakeFeeEvent, "r", {
962
- get: function () {
963
- return TakeFeeEvent.reified();
964
- },
965
- enumerable: false,
966
- configurable: true
967
- });
968
- TakeFeeEvent.phantom = function () {
969
- return (0, reified_1.phantom)(TakeFeeEvent.reified());
970
- };
971
- Object.defineProperty(TakeFeeEvent, "p", {
972
- get: function () {
973
- return TakeFeeEvent.phantom();
974
- },
975
- enumerable: false,
976
- configurable: true
977
- });
978
- Object.defineProperty(TakeFeeEvent, "bcs", {
979
- get: function () {
980
- return bcs_1.bcs.struct("TakeFeeEvent", {
981
- signer: bcs_1.bcs.bytes(32).transform({
982
- input: function (val) { return (0, utils_1.fromHEX)(val); },
983
- output: function (val) { return (0, utils_1.toHEX)(val); },
984
- }),
985
- token: structs_1.TypeName.bcs,
986
- amount: bcs_1.bcs.u64(),
987
- });
988
- },
989
- enumerable: false,
990
- configurable: true
991
- });
992
- TakeFeeEvent.fromFields = function (fields) {
993
- return TakeFeeEvent.reified().new({
994
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
995
- token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
996
- amount: (0, reified_1.decodeFromFields)("u64", fields.amount),
997
- });
998
- };
999
- TakeFeeEvent.fromFieldsWithTypes = function (item) {
1000
- if (!isTakeFeeEvent(item.type)) {
1001
- throw new Error("not a TakeFeeEvent type");
1002
- }
1003
- return TakeFeeEvent.reified().new({
1004
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1005
- token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
1006
- amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount),
1007
- });
1008
- };
1009
- TakeFeeEvent.fromBcs = function (data) {
1010
- return TakeFeeEvent.fromFields(TakeFeeEvent.bcs.parse(data));
1011
- };
1012
- TakeFeeEvent.prototype.toJSONField = function () {
1013
- return {
1014
- signer: this.signer,
1015
- token: this.token.toJSONField(),
1016
- amount: this.amount.toString(),
1017
- };
1018
- };
1019
- TakeFeeEvent.prototype.toJSON = function () {
1020
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1021
- };
1022
- TakeFeeEvent.fromJSONField = function (field) {
1023
- return TakeFeeEvent.reified().new({
1024
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1025
- token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
1026
- amount: (0, reified_1.decodeFromJSONField)("u64", field.amount),
1027
- });
1028
- };
1029
- TakeFeeEvent.fromJSON = function (json) {
1030
- if (json.$typeName !== TakeFeeEvent.$typeName) {
1031
- throw new Error("not a WithTwoGenerics json object");
1032
- }
1033
- return TakeFeeEvent.fromJSONField(json);
1034
- };
1035
- TakeFeeEvent.fromSuiParsedData = function (content) {
1036
- if (content.dataType !== "moveObject") {
1037
- throw new Error("not an object");
1038
- }
1039
- if (!isTakeFeeEvent(content.type)) {
1040
- throw new Error("object at ".concat(content.fields.id, " is not a TakeFeeEvent object"));
1041
- }
1042
- return TakeFeeEvent.fromFieldsWithTypes(content);
1043
- };
1044
- TakeFeeEvent.fromSuiObjectData = function (data) {
1045
- if (data.bcs) {
1046
- if (data.bcs.dataType !== "moveObject" || !isTakeFeeEvent(data.bcs.type)) {
1047
- throw new Error("object at is not a TakeFeeEvent object");
1048
- }
1049
- return TakeFeeEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1050
- }
1051
- if (data.content) {
1052
- return TakeFeeEvent.fromSuiParsedData(data.content);
1053
- }
1054
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1055
- };
1056
- TakeFeeEvent.fetch = function (client, id) {
1057
- return __awaiter(this, void 0, void 0, function () {
1058
- var res;
1059
- var _a, _b;
1060
- return __generator(this, function (_c) {
1061
- switch (_c.label) {
1062
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1063
- case 1:
1064
- res = _c.sent();
1065
- if (res.error) {
1066
- throw new Error("error fetching TakeFeeEvent object at id ".concat(id, ": ").concat(res.error.code));
1067
- }
1068
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTakeFeeEvent(res.data.bcs.type)) {
1069
- throw new Error("object at id ".concat(id, " is not a TakeFeeEvent object"));
1070
- }
1071
- return [2 /*return*/, TakeFeeEvent.fromSuiObjectData(res.data)];
1072
- }
1073
- });
1074
- });
1075
- };
1076
- TakeFeeEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::TakeFeeEvent");
1077
- TakeFeeEvent.$numTypeParams = 0;
1078
- TakeFeeEvent.$isPhantom = [];
1079
- return TakeFeeEvent;
1080
- }());
1081
- exports.TakeFeeEvent = TakeFeeEvent;
1082
- /* ============================== TakeSharedFeeEvent =============================== */
1083
- function isTakeSharedFeeEvent(type) {
1084
- type = (0, util_1.compressSuiType)(type);
1085
- return type === "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::TakeSharedFeeEvent");
1086
- }
1087
- var TakeSharedFeeEvent = /** @class */ (function () {
1088
- function TakeSharedFeeEvent(typeArgs, fields) {
1089
- this.__StructClass = true;
1090
- this.$typeName = TakeSharedFeeEvent.$typeName;
1091
- this.$isPhantom = TakeSharedFeeEvent.$isPhantom;
1092
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TakeSharedFeeEvent.$typeName], __read(typeArgs), false));
1093
- this.$typeArgs = typeArgs;
1094
- this.signer = fields.signer;
1095
- this.key = fields.key;
1096
- this.token = fields.token;
1097
- this.amount = fields.amount;
1098
- }
1099
- TakeSharedFeeEvent.reified = function () {
1100
- var _this = this;
1101
- return {
1102
- typeName: TakeSharedFeeEvent.$typeName,
1103
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TakeSharedFeeEvent.$typeName], [], false)),
1104
- typeArgs: [],
1105
- isPhantom: TakeSharedFeeEvent.$isPhantom,
1106
- reifiedTypeArgs: [],
1107
- fromFields: function (fields) { return TakeSharedFeeEvent.fromFields(fields); },
1108
- fromFieldsWithTypes: function (item) { return TakeSharedFeeEvent.fromFieldsWithTypes(item); },
1109
- fromBcs: function (data) { return TakeSharedFeeEvent.fromBcs(data); },
1110
- bcs: TakeSharedFeeEvent.bcs,
1111
- fromJSONField: function (field) { return TakeSharedFeeEvent.fromJSONField(field); },
1112
- fromJSON: function (json) { return TakeSharedFeeEvent.fromJSON(json); },
1113
- fromSuiParsedData: function (content) { return TakeSharedFeeEvent.fromSuiParsedData(content); },
1114
- fromSuiObjectData: function (content) { return TakeSharedFeeEvent.fromSuiObjectData(content); },
1115
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1116
- return [2 /*return*/, TakeSharedFeeEvent.fetch(client, id)];
1117
- }); }); },
1118
- new: function (fields) {
1119
- return new TakeSharedFeeEvent([], fields);
1120
- },
1121
- kind: "StructClassReified",
1122
- };
1123
- };
1124
- Object.defineProperty(TakeSharedFeeEvent, "r", {
1125
- get: function () {
1126
- return TakeSharedFeeEvent.reified();
1127
- },
1128
- enumerable: false,
1129
- configurable: true
1130
- });
1131
- TakeSharedFeeEvent.phantom = function () {
1132
- return (0, reified_1.phantom)(TakeSharedFeeEvent.reified());
1133
- };
1134
- Object.defineProperty(TakeSharedFeeEvent, "p", {
1135
- get: function () {
1136
- return TakeSharedFeeEvent.phantom();
1137
- },
1138
- enumerable: false,
1139
- configurable: true
1140
- });
1141
- Object.defineProperty(TakeSharedFeeEvent, "bcs", {
1142
- get: function () {
1143
- return bcs_1.bcs.struct("TakeSharedFeeEvent", {
1144
- signer: bcs_1.bcs.bytes(32).transform({
1145
- input: function (val) { return (0, utils_1.fromHEX)(val); },
1146
- output: function (val) { return (0, utils_1.toHEX)(val); },
1147
- }),
1148
- key: bcs_1.bcs.vector(bcs_1.bcs.u8()),
1149
- token: structs_1.TypeName.bcs,
1150
- amount: bcs_1.bcs.u64(),
1151
- });
1152
- },
1153
- enumerable: false,
1154
- configurable: true
1155
- });
1156
- TakeSharedFeeEvent.fromFields = function (fields) {
1157
- return TakeSharedFeeEvent.reified().new({
1158
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1159
- key: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.key),
1160
- token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
1161
- amount: (0, reified_1.decodeFromFields)("u64", fields.amount),
1162
- });
1163
- };
1164
- TakeSharedFeeEvent.fromFieldsWithTypes = function (item) {
1165
- if (!isTakeSharedFeeEvent(item.type)) {
1166
- throw new Error("not a TakeSharedFeeEvent type");
1167
- }
1168
- return TakeSharedFeeEvent.reified().new({
1169
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1170
- key: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.key),
1171
- token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
1172
- amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount),
1173
- });
1174
- };
1175
- TakeSharedFeeEvent.fromBcs = function (data) {
1176
- return TakeSharedFeeEvent.fromFields(TakeSharedFeeEvent.bcs.parse(data));
1177
- };
1178
- TakeSharedFeeEvent.prototype.toJSONField = function () {
1179
- return {
1180
- signer: this.signer,
1181
- key: (0, reified_1.fieldToJSON)("vector<u8>", this.key),
1182
- token: this.token.toJSONField(),
1183
- amount: this.amount.toString(),
1184
- };
1185
- };
1186
- TakeSharedFeeEvent.prototype.toJSON = function () {
1187
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1188
- };
1189
- TakeSharedFeeEvent.fromJSONField = function (field) {
1190
- return TakeSharedFeeEvent.reified().new({
1191
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1192
- key: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.key),
1193
- token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
1194
- amount: (0, reified_1.decodeFromJSONField)("u64", field.amount),
1195
- });
1196
- };
1197
- TakeSharedFeeEvent.fromJSON = function (json) {
1198
- if (json.$typeName !== TakeSharedFeeEvent.$typeName) {
1199
- throw new Error("not a WithTwoGenerics json object");
1200
- }
1201
- return TakeSharedFeeEvent.fromJSONField(json);
1202
- };
1203
- TakeSharedFeeEvent.fromSuiParsedData = function (content) {
1204
- if (content.dataType !== "moveObject") {
1205
- throw new Error("not an object");
1206
- }
1207
- if (!isTakeSharedFeeEvent(content.type)) {
1208
- throw new Error("object at ".concat(content.fields.id, " is not a TakeSharedFeeEvent object"));
1209
- }
1210
- return TakeSharedFeeEvent.fromFieldsWithTypes(content);
1211
- };
1212
- TakeSharedFeeEvent.fromSuiObjectData = function (data) {
1213
- if (data.bcs) {
1214
- if (data.bcs.dataType !== "moveObject" || !isTakeSharedFeeEvent(data.bcs.type)) {
1215
- throw new Error("object at is not a TakeSharedFeeEvent object");
1216
- }
1217
- return TakeSharedFeeEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1218
- }
1219
- if (data.content) {
1220
- return TakeSharedFeeEvent.fromSuiParsedData(data.content);
1221
- }
1222
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1223
- };
1224
- TakeSharedFeeEvent.fetch = function (client, id) {
1225
- return __awaiter(this, void 0, void 0, function () {
1226
- var res;
1227
- var _a, _b;
1228
- return __generator(this, function (_c) {
1229
- switch (_c.label) {
1230
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1231
- case 1:
1232
- res = _c.sent();
1233
- if (res.error) {
1234
- throw new Error("error fetching TakeSharedFeeEvent object at id ".concat(id, ": ").concat(res.error.code));
1235
- }
1236
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTakeSharedFeeEvent(res.data.bcs.type)) {
1237
- throw new Error("object at id ".concat(id, " is not a TakeSharedFeeEvent object"));
1238
- }
1239
- return [2 /*return*/, TakeSharedFeeEvent.fromSuiObjectData(res.data)];
1240
- }
1241
- });
1242
- });
1243
- };
1244
- TakeSharedFeeEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::TakeSharedFeeEvent");
1245
- TakeSharedFeeEvent.$numTypeParams = 0;
1246
- TakeSharedFeeEvent.$isPhantom = [];
1247
- return TakeSharedFeeEvent;
1248
- }());
1249
- exports.TakeSharedFeeEvent = TakeSharedFeeEvent;