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