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