@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,2285 +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.UpdateTailsStakingRegistryConfigEvent = exports.UnstakeTailsEvent = exports.TransferTailsEvent = exports.TailsStakingRegistry = exports.StakingInfo = exports.StakeTailsEvent = exports.SetProfitSharingEvent = exports.RemoveProfitSharingEvent = exports.DailySignUpEvent = exports.ClaimProfitSharingEvent = exports.LevelUpEvent = exports.ExpUpEvent = exports.ExpDownEvent = void 0;
109
- exports.isExpDownEvent = isExpDownEvent;
110
- exports.isExpUpEvent = isExpUpEvent;
111
- exports.isLevelUpEvent = isLevelUpEvent;
112
- exports.isClaimProfitSharingEvent = isClaimProfitSharingEvent;
113
- exports.isDailySignUpEvent = isDailySignUpEvent;
114
- exports.isRemoveProfitSharingEvent = isRemoveProfitSharingEvent;
115
- exports.isSetProfitSharingEvent = isSetProfitSharingEvent;
116
- exports.isStakeTailsEvent = isStakeTailsEvent;
117
- exports.isStakingInfo = isStakingInfo;
118
- exports.isTailsStakingRegistry = isTailsStakingRegistry;
119
- exports.isTransferTailsEvent = isTransferTailsEvent;
120
- exports.isUnstakeTailsEvent = isUnstakeTailsEvent;
121
- exports.isUpdateTailsStakingRegistryConfigEvent = isUpdateTailsStakingRegistryConfigEvent;
122
- var reified = __importStar(require("../../../../_framework/reified"));
123
- var reified_1 = require("../../../../_framework/reified");
124
- var util_1 = require("../../../../_framework/util");
125
- var structs_1 = require("../../0x1/type-name/structs");
126
- var structs_2 = require("../../0x2/bag/structs");
127
- var structs_3 = require("../../0x2/object-table/structs");
128
- var structs_4 = require("../../0x2/object/structs");
129
- var structs_5 = require("../../0x2/transfer-policy/structs");
130
- var structs_6 = require("../../0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs");
131
- var structs_7 = require("../big-vector/structs");
132
- var index_1 = require("../index");
133
- var bcs_1 = require("@mysten/sui/bcs");
134
- var utils_1 = require("@mysten/sui/utils");
135
- /* ============================== ExpDownEvent =============================== */
136
- function isExpDownEvent(type) {
137
- type = (0, util_1.compressSuiType)(type);
138
- return type === "".concat(index_1.PKG_V11, "::tails_staking::ExpDownEvent");
139
- }
140
- var ExpDownEvent = /** @class */ (function () {
141
- function ExpDownEvent(typeArgs, fields) {
142
- this.__StructClass = true;
143
- this.$typeName = ExpDownEvent.$typeName;
144
- this.$isPhantom = ExpDownEvent.$isPhantom;
145
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ExpDownEvent.$typeName], __read(typeArgs), false));
146
- this.$typeArgs = typeArgs;
147
- this.tails = fields.tails;
148
- this.log = fields.log;
149
- this.bcsPadding = fields.bcsPadding;
150
- }
151
- ExpDownEvent.reified = function () {
152
- var _this = this;
153
- return {
154
- typeName: ExpDownEvent.$typeName,
155
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ExpDownEvent.$typeName], [], false)),
156
- typeArgs: [],
157
- isPhantom: ExpDownEvent.$isPhantom,
158
- reifiedTypeArgs: [],
159
- fromFields: function (fields) { return ExpDownEvent.fromFields(fields); },
160
- fromFieldsWithTypes: function (item) { return ExpDownEvent.fromFieldsWithTypes(item); },
161
- fromBcs: function (data) { return ExpDownEvent.fromBcs(data); },
162
- bcs: ExpDownEvent.bcs,
163
- fromJSONField: function (field) { return ExpDownEvent.fromJSONField(field); },
164
- fromJSON: function (json) { return ExpDownEvent.fromJSON(json); },
165
- fromSuiParsedData: function (content) { return ExpDownEvent.fromSuiParsedData(content); },
166
- fromSuiObjectData: function (content) { return ExpDownEvent.fromSuiObjectData(content); },
167
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
168
- return [2 /*return*/, ExpDownEvent.fetch(client, id)];
169
- }); }); },
170
- new: function (fields) {
171
- return new ExpDownEvent([], fields);
172
- },
173
- kind: "StructClassReified",
174
- };
175
- };
176
- Object.defineProperty(ExpDownEvent, "r", {
177
- get: function () {
178
- return ExpDownEvent.reified();
179
- },
180
- enumerable: false,
181
- configurable: true
182
- });
183
- ExpDownEvent.phantom = function () {
184
- return (0, reified_1.phantom)(ExpDownEvent.reified());
185
- };
186
- Object.defineProperty(ExpDownEvent, "p", {
187
- get: function () {
188
- return ExpDownEvent.phantom();
189
- },
190
- enumerable: false,
191
- configurable: true
192
- });
193
- Object.defineProperty(ExpDownEvent, "bcs", {
194
- get: function () {
195
- return bcs_1.bcs.struct("ExpDownEvent", {
196
- tails: bcs_1.bcs.bytes(32).transform({
197
- input: function (val) { return (0, utils_1.fromHEX)(val); },
198
- output: function (val) { return (0, utils_1.toHEX)(val); },
199
- }),
200
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
201
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
202
- });
203
- },
204
- enumerable: false,
205
- configurable: true
206
- });
207
- ExpDownEvent.fromFields = function (fields) {
208
- return ExpDownEvent.reified().new({
209
- tails: (0, reified_1.decodeFromFields)("address", fields.tails),
210
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
211
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
212
- });
213
- };
214
- ExpDownEvent.fromFieldsWithTypes = function (item) {
215
- if (!isExpDownEvent(item.type)) {
216
- throw new Error("not a ExpDownEvent type");
217
- }
218
- return ExpDownEvent.reified().new({
219
- tails: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.tails),
220
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
221
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
222
- });
223
- };
224
- ExpDownEvent.fromBcs = function (data) {
225
- return ExpDownEvent.fromFields(ExpDownEvent.bcs.parse(data));
226
- };
227
- ExpDownEvent.prototype.toJSONField = function () {
228
- return {
229
- tails: this.tails,
230
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
231
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
232
- };
233
- };
234
- ExpDownEvent.prototype.toJSON = function () {
235
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
236
- };
237
- ExpDownEvent.fromJSONField = function (field) {
238
- return ExpDownEvent.reified().new({
239
- tails: (0, reified_1.decodeFromJSONField)("address", field.tails),
240
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
241
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
242
- });
243
- };
244
- ExpDownEvent.fromJSON = function (json) {
245
- if (json.$typeName !== ExpDownEvent.$typeName) {
246
- throw new Error("not a WithTwoGenerics json object");
247
- }
248
- return ExpDownEvent.fromJSONField(json);
249
- };
250
- ExpDownEvent.fromSuiParsedData = function (content) {
251
- if (content.dataType !== "moveObject") {
252
- throw new Error("not an object");
253
- }
254
- if (!isExpDownEvent(content.type)) {
255
- throw new Error("object at ".concat(content.fields.id, " is not a ExpDownEvent object"));
256
- }
257
- return ExpDownEvent.fromFieldsWithTypes(content);
258
- };
259
- ExpDownEvent.fromSuiObjectData = function (data) {
260
- if (data.bcs) {
261
- if (data.bcs.dataType !== "moveObject" || !isExpDownEvent(data.bcs.type)) {
262
- throw new Error("object at is not a ExpDownEvent object");
263
- }
264
- return ExpDownEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
265
- }
266
- if (data.content) {
267
- return ExpDownEvent.fromSuiParsedData(data.content);
268
- }
269
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
270
- };
271
- ExpDownEvent.fetch = function (client, id) {
272
- return __awaiter(this, void 0, void 0, function () {
273
- var res;
274
- var _a, _b;
275
- return __generator(this, function (_c) {
276
- switch (_c.label) {
277
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
278
- case 1:
279
- res = _c.sent();
280
- if (res.error) {
281
- throw new Error("error fetching ExpDownEvent object at id ".concat(id, ": ").concat(res.error.code));
282
- }
283
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isExpDownEvent(res.data.bcs.type)) {
284
- throw new Error("object at id ".concat(id, " is not a ExpDownEvent object"));
285
- }
286
- return [2 /*return*/, ExpDownEvent.fromSuiObjectData(res.data)];
287
- }
288
- });
289
- });
290
- };
291
- ExpDownEvent.$typeName = "".concat(index_1.PKG_V11, "::tails_staking::ExpDownEvent");
292
- ExpDownEvent.$numTypeParams = 0;
293
- ExpDownEvent.$isPhantom = [];
294
- return ExpDownEvent;
295
- }());
296
- exports.ExpDownEvent = ExpDownEvent;
297
- /* ============================== ExpUpEvent =============================== */
298
- function isExpUpEvent(type) {
299
- type = (0, util_1.compressSuiType)(type);
300
- return type === "".concat(index_1.PKG_V6, "::tails_staking::ExpUpEvent");
301
- }
302
- var ExpUpEvent = /** @class */ (function () {
303
- function ExpUpEvent(typeArgs, fields) {
304
- this.__StructClass = true;
305
- this.$typeName = ExpUpEvent.$typeName;
306
- this.$isPhantom = ExpUpEvent.$isPhantom;
307
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ExpUpEvent.$typeName], __read(typeArgs), false));
308
- this.$typeArgs = typeArgs;
309
- this.tails = fields.tails;
310
- this.log = fields.log;
311
- this.bcsPadding = fields.bcsPadding;
312
- }
313
- ExpUpEvent.reified = function () {
314
- var _this = this;
315
- return {
316
- typeName: ExpUpEvent.$typeName,
317
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ExpUpEvent.$typeName], [], false)),
318
- typeArgs: [],
319
- isPhantom: ExpUpEvent.$isPhantom,
320
- reifiedTypeArgs: [],
321
- fromFields: function (fields) { return ExpUpEvent.fromFields(fields); },
322
- fromFieldsWithTypes: function (item) { return ExpUpEvent.fromFieldsWithTypes(item); },
323
- fromBcs: function (data) { return ExpUpEvent.fromBcs(data); },
324
- bcs: ExpUpEvent.bcs,
325
- fromJSONField: function (field) { return ExpUpEvent.fromJSONField(field); },
326
- fromJSON: function (json) { return ExpUpEvent.fromJSON(json); },
327
- fromSuiParsedData: function (content) { return ExpUpEvent.fromSuiParsedData(content); },
328
- fromSuiObjectData: function (content) { return ExpUpEvent.fromSuiObjectData(content); },
329
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
330
- return [2 /*return*/, ExpUpEvent.fetch(client, id)];
331
- }); }); },
332
- new: function (fields) {
333
- return new ExpUpEvent([], fields);
334
- },
335
- kind: "StructClassReified",
336
- };
337
- };
338
- Object.defineProperty(ExpUpEvent, "r", {
339
- get: function () {
340
- return ExpUpEvent.reified();
341
- },
342
- enumerable: false,
343
- configurable: true
344
- });
345
- ExpUpEvent.phantom = function () {
346
- return (0, reified_1.phantom)(ExpUpEvent.reified());
347
- };
348
- Object.defineProperty(ExpUpEvent, "p", {
349
- get: function () {
350
- return ExpUpEvent.phantom();
351
- },
352
- enumerable: false,
353
- configurable: true
354
- });
355
- Object.defineProperty(ExpUpEvent, "bcs", {
356
- get: function () {
357
- return bcs_1.bcs.struct("ExpUpEvent", {
358
- tails: bcs_1.bcs.bytes(32).transform({
359
- input: function (val) { return (0, utils_1.fromHEX)(val); },
360
- output: function (val) { return (0, utils_1.toHEX)(val); },
361
- }),
362
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
363
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
364
- });
365
- },
366
- enumerable: false,
367
- configurable: true
368
- });
369
- ExpUpEvent.fromFields = function (fields) {
370
- return ExpUpEvent.reified().new({
371
- tails: (0, reified_1.decodeFromFields)("address", fields.tails),
372
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
373
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
374
- });
375
- };
376
- ExpUpEvent.fromFieldsWithTypes = function (item) {
377
- if (!isExpUpEvent(item.type)) {
378
- throw new Error("not a ExpUpEvent type");
379
- }
380
- return ExpUpEvent.reified().new({
381
- tails: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.tails),
382
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
383
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
384
- });
385
- };
386
- ExpUpEvent.fromBcs = function (data) {
387
- return ExpUpEvent.fromFields(ExpUpEvent.bcs.parse(data));
388
- };
389
- ExpUpEvent.prototype.toJSONField = function () {
390
- return {
391
- tails: this.tails,
392
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
393
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
394
- };
395
- };
396
- ExpUpEvent.prototype.toJSON = function () {
397
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
398
- };
399
- ExpUpEvent.fromJSONField = function (field) {
400
- return ExpUpEvent.reified().new({
401
- tails: (0, reified_1.decodeFromJSONField)("address", field.tails),
402
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
403
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
404
- });
405
- };
406
- ExpUpEvent.fromJSON = function (json) {
407
- if (json.$typeName !== ExpUpEvent.$typeName) {
408
- throw new Error("not a WithTwoGenerics json object");
409
- }
410
- return ExpUpEvent.fromJSONField(json);
411
- };
412
- ExpUpEvent.fromSuiParsedData = function (content) {
413
- if (content.dataType !== "moveObject") {
414
- throw new Error("not an object");
415
- }
416
- if (!isExpUpEvent(content.type)) {
417
- throw new Error("object at ".concat(content.fields.id, " is not a ExpUpEvent object"));
418
- }
419
- return ExpUpEvent.fromFieldsWithTypes(content);
420
- };
421
- ExpUpEvent.fromSuiObjectData = function (data) {
422
- if (data.bcs) {
423
- if (data.bcs.dataType !== "moveObject" || !isExpUpEvent(data.bcs.type)) {
424
- throw new Error("object at is not a ExpUpEvent object");
425
- }
426
- return ExpUpEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
427
- }
428
- if (data.content) {
429
- return ExpUpEvent.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
- ExpUpEvent.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 ExpUpEvent 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" || !isExpUpEvent(res.data.bcs.type)) {
446
- throw new Error("object at id ".concat(id, " is not a ExpUpEvent object"));
447
- }
448
- return [2 /*return*/, ExpUpEvent.fromSuiObjectData(res.data)];
449
- }
450
- });
451
- });
452
- };
453
- ExpUpEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::ExpUpEvent");
454
- ExpUpEvent.$numTypeParams = 0;
455
- ExpUpEvent.$isPhantom = [];
456
- return ExpUpEvent;
457
- }());
458
- exports.ExpUpEvent = ExpUpEvent;
459
- /* ============================== LevelUpEvent =============================== */
460
- function isLevelUpEvent(type) {
461
- type = (0, util_1.compressSuiType)(type);
462
- return type === "".concat(index_1.PKG_V6, "::tails_staking::LevelUpEvent");
463
- }
464
- var LevelUpEvent = /** @class */ (function () {
465
- function LevelUpEvent(typeArgs, fields) {
466
- this.__StructClass = true;
467
- this.$typeName = LevelUpEvent.$typeName;
468
- this.$isPhantom = LevelUpEvent.$isPhantom;
469
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([LevelUpEvent.$typeName], __read(typeArgs), false));
470
- this.$typeArgs = typeArgs;
471
- this.tails = fields.tails;
472
- this.log = fields.log;
473
- this.bcsPadding = fields.bcsPadding;
474
- }
475
- LevelUpEvent.reified = function () {
476
- var _this = this;
477
- return {
478
- typeName: LevelUpEvent.$typeName,
479
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([LevelUpEvent.$typeName], [], false)),
480
- typeArgs: [],
481
- isPhantom: LevelUpEvent.$isPhantom,
482
- reifiedTypeArgs: [],
483
- fromFields: function (fields) { return LevelUpEvent.fromFields(fields); },
484
- fromFieldsWithTypes: function (item) { return LevelUpEvent.fromFieldsWithTypes(item); },
485
- fromBcs: function (data) { return LevelUpEvent.fromBcs(data); },
486
- bcs: LevelUpEvent.bcs,
487
- fromJSONField: function (field) { return LevelUpEvent.fromJSONField(field); },
488
- fromJSON: function (json) { return LevelUpEvent.fromJSON(json); },
489
- fromSuiParsedData: function (content) { return LevelUpEvent.fromSuiParsedData(content); },
490
- fromSuiObjectData: function (content) { return LevelUpEvent.fromSuiObjectData(content); },
491
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
492
- return [2 /*return*/, LevelUpEvent.fetch(client, id)];
493
- }); }); },
494
- new: function (fields) {
495
- return new LevelUpEvent([], fields);
496
- },
497
- kind: "StructClassReified",
498
- };
499
- };
500
- Object.defineProperty(LevelUpEvent, "r", {
501
- get: function () {
502
- return LevelUpEvent.reified();
503
- },
504
- enumerable: false,
505
- configurable: true
506
- });
507
- LevelUpEvent.phantom = function () {
508
- return (0, reified_1.phantom)(LevelUpEvent.reified());
509
- };
510
- Object.defineProperty(LevelUpEvent, "p", {
511
- get: function () {
512
- return LevelUpEvent.phantom();
513
- },
514
- enumerable: false,
515
- configurable: true
516
- });
517
- Object.defineProperty(LevelUpEvent, "bcs", {
518
- get: function () {
519
- return bcs_1.bcs.struct("LevelUpEvent", {
520
- tails: 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
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
525
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
526
- });
527
- },
528
- enumerable: false,
529
- configurable: true
530
- });
531
- LevelUpEvent.fromFields = function (fields) {
532
- return LevelUpEvent.reified().new({
533
- tails: (0, reified_1.decodeFromFields)("address", fields.tails),
534
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
535
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
536
- });
537
- };
538
- LevelUpEvent.fromFieldsWithTypes = function (item) {
539
- if (!isLevelUpEvent(item.type)) {
540
- throw new Error("not a LevelUpEvent type");
541
- }
542
- return LevelUpEvent.reified().new({
543
- tails: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.tails),
544
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
545
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
546
- });
547
- };
548
- LevelUpEvent.fromBcs = function (data) {
549
- return LevelUpEvent.fromFields(LevelUpEvent.bcs.parse(data));
550
- };
551
- LevelUpEvent.prototype.toJSONField = function () {
552
- return {
553
- tails: this.tails,
554
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
555
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
556
- };
557
- };
558
- LevelUpEvent.prototype.toJSON = function () {
559
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
560
- };
561
- LevelUpEvent.fromJSONField = function (field) {
562
- return LevelUpEvent.reified().new({
563
- tails: (0, reified_1.decodeFromJSONField)("address", field.tails),
564
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
565
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
566
- });
567
- };
568
- LevelUpEvent.fromJSON = function (json) {
569
- if (json.$typeName !== LevelUpEvent.$typeName) {
570
- throw new Error("not a WithTwoGenerics json object");
571
- }
572
- return LevelUpEvent.fromJSONField(json);
573
- };
574
- LevelUpEvent.fromSuiParsedData = function (content) {
575
- if (content.dataType !== "moveObject") {
576
- throw new Error("not an object");
577
- }
578
- if (!isLevelUpEvent(content.type)) {
579
- throw new Error("object at ".concat(content.fields.id, " is not a LevelUpEvent object"));
580
- }
581
- return LevelUpEvent.fromFieldsWithTypes(content);
582
- };
583
- LevelUpEvent.fromSuiObjectData = function (data) {
584
- if (data.bcs) {
585
- if (data.bcs.dataType !== "moveObject" || !isLevelUpEvent(data.bcs.type)) {
586
- throw new Error("object at is not a LevelUpEvent object");
587
- }
588
- return LevelUpEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
589
- }
590
- if (data.content) {
591
- return LevelUpEvent.fromSuiParsedData(data.content);
592
- }
593
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
594
- };
595
- LevelUpEvent.fetch = function (client, id) {
596
- return __awaiter(this, void 0, void 0, function () {
597
- var res;
598
- var _a, _b;
599
- return __generator(this, function (_c) {
600
- switch (_c.label) {
601
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
602
- case 1:
603
- res = _c.sent();
604
- if (res.error) {
605
- throw new Error("error fetching LevelUpEvent object at id ".concat(id, ": ").concat(res.error.code));
606
- }
607
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isLevelUpEvent(res.data.bcs.type)) {
608
- throw new Error("object at id ".concat(id, " is not a LevelUpEvent object"));
609
- }
610
- return [2 /*return*/, LevelUpEvent.fromSuiObjectData(res.data)];
611
- }
612
- });
613
- });
614
- };
615
- LevelUpEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::LevelUpEvent");
616
- LevelUpEvent.$numTypeParams = 0;
617
- LevelUpEvent.$isPhantom = [];
618
- return LevelUpEvent;
619
- }());
620
- exports.LevelUpEvent = LevelUpEvent;
621
- /* ============================== ClaimProfitSharingEvent =============================== */
622
- function isClaimProfitSharingEvent(type) {
623
- type = (0, util_1.compressSuiType)(type);
624
- return type === "".concat(index_1.PKG_V6, "::tails_staking::ClaimProfitSharingEvent");
625
- }
626
- var ClaimProfitSharingEvent = /** @class */ (function () {
627
- function ClaimProfitSharingEvent(typeArgs, fields) {
628
- this.__StructClass = true;
629
- this.$typeName = ClaimProfitSharingEvent.$typeName;
630
- this.$isPhantom = ClaimProfitSharingEvent.$isPhantom;
631
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ClaimProfitSharingEvent.$typeName], __read(typeArgs), false));
632
- this.$typeArgs = typeArgs;
633
- this.tails = fields.tails;
634
- this.profitAsset = fields.profitAsset;
635
- this.log = fields.log;
636
- this.bcsPadding = fields.bcsPadding;
637
- }
638
- ClaimProfitSharingEvent.reified = function () {
639
- var _this = this;
640
- return {
641
- typeName: ClaimProfitSharingEvent.$typeName,
642
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ClaimProfitSharingEvent.$typeName], [], false)),
643
- typeArgs: [],
644
- isPhantom: ClaimProfitSharingEvent.$isPhantom,
645
- reifiedTypeArgs: [],
646
- fromFields: function (fields) { return ClaimProfitSharingEvent.fromFields(fields); },
647
- fromFieldsWithTypes: function (item) { return ClaimProfitSharingEvent.fromFieldsWithTypes(item); },
648
- fromBcs: function (data) { return ClaimProfitSharingEvent.fromBcs(data); },
649
- bcs: ClaimProfitSharingEvent.bcs,
650
- fromJSONField: function (field) { return ClaimProfitSharingEvent.fromJSONField(field); },
651
- fromJSON: function (json) { return ClaimProfitSharingEvent.fromJSON(json); },
652
- fromSuiParsedData: function (content) { return ClaimProfitSharingEvent.fromSuiParsedData(content); },
653
- fromSuiObjectData: function (content) { return ClaimProfitSharingEvent.fromSuiObjectData(content); },
654
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
655
- return [2 /*return*/, ClaimProfitSharingEvent.fetch(client, id)];
656
- }); }); },
657
- new: function (fields) {
658
- return new ClaimProfitSharingEvent([], fields);
659
- },
660
- kind: "StructClassReified",
661
- };
662
- };
663
- Object.defineProperty(ClaimProfitSharingEvent, "r", {
664
- get: function () {
665
- return ClaimProfitSharingEvent.reified();
666
- },
667
- enumerable: false,
668
- configurable: true
669
- });
670
- ClaimProfitSharingEvent.phantom = function () {
671
- return (0, reified_1.phantom)(ClaimProfitSharingEvent.reified());
672
- };
673
- Object.defineProperty(ClaimProfitSharingEvent, "p", {
674
- get: function () {
675
- return ClaimProfitSharingEvent.phantom();
676
- },
677
- enumerable: false,
678
- configurable: true
679
- });
680
- Object.defineProperty(ClaimProfitSharingEvent, "bcs", {
681
- get: function () {
682
- return bcs_1.bcs.struct("ClaimProfitSharingEvent", {
683
- tails: bcs_1.bcs.vector(bcs_1.bcs.u64()),
684
- profit_asset: structs_1.TypeName.bcs,
685
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
686
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
687
- });
688
- },
689
- enumerable: false,
690
- configurable: true
691
- });
692
- ClaimProfitSharingEvent.fromFields = function (fields) {
693
- return ClaimProfitSharingEvent.reified().new({
694
- tails: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.tails),
695
- profitAsset: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.profit_asset),
696
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
697
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
698
- });
699
- };
700
- ClaimProfitSharingEvent.fromFieldsWithTypes = function (item) {
701
- if (!isClaimProfitSharingEvent(item.type)) {
702
- throw new Error("not a ClaimProfitSharingEvent type");
703
- }
704
- return ClaimProfitSharingEvent.reified().new({
705
- tails: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.tails),
706
- profitAsset: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.profit_asset),
707
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
708
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
709
- });
710
- };
711
- ClaimProfitSharingEvent.fromBcs = function (data) {
712
- return ClaimProfitSharingEvent.fromFields(ClaimProfitSharingEvent.bcs.parse(data));
713
- };
714
- ClaimProfitSharingEvent.prototype.toJSONField = function () {
715
- return {
716
- tails: (0, reified_1.fieldToJSON)("vector<u64>", this.tails),
717
- profitAsset: this.profitAsset.toJSONField(),
718
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
719
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
720
- };
721
- };
722
- ClaimProfitSharingEvent.prototype.toJSON = function () {
723
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
724
- };
725
- ClaimProfitSharingEvent.fromJSONField = function (field) {
726
- return ClaimProfitSharingEvent.reified().new({
727
- tails: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.tails),
728
- profitAsset: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.profitAsset),
729
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
730
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
731
- });
732
- };
733
- ClaimProfitSharingEvent.fromJSON = function (json) {
734
- if (json.$typeName !== ClaimProfitSharingEvent.$typeName) {
735
- throw new Error("not a WithTwoGenerics json object");
736
- }
737
- return ClaimProfitSharingEvent.fromJSONField(json);
738
- };
739
- ClaimProfitSharingEvent.fromSuiParsedData = function (content) {
740
- if (content.dataType !== "moveObject") {
741
- throw new Error("not an object");
742
- }
743
- if (!isClaimProfitSharingEvent(content.type)) {
744
- throw new Error("object at ".concat(content.fields.id, " is not a ClaimProfitSharingEvent object"));
745
- }
746
- return ClaimProfitSharingEvent.fromFieldsWithTypes(content);
747
- };
748
- ClaimProfitSharingEvent.fromSuiObjectData = function (data) {
749
- if (data.bcs) {
750
- if (data.bcs.dataType !== "moveObject" || !isClaimProfitSharingEvent(data.bcs.type)) {
751
- throw new Error("object at is not a ClaimProfitSharingEvent object");
752
- }
753
- return ClaimProfitSharingEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
754
- }
755
- if (data.content) {
756
- return ClaimProfitSharingEvent.fromSuiParsedData(data.content);
757
- }
758
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
759
- };
760
- ClaimProfitSharingEvent.fetch = function (client, id) {
761
- return __awaiter(this, void 0, void 0, function () {
762
- var res;
763
- var _a, _b;
764
- return __generator(this, function (_c) {
765
- switch (_c.label) {
766
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
767
- case 1:
768
- res = _c.sent();
769
- if (res.error) {
770
- throw new Error("error fetching ClaimProfitSharingEvent object at id ".concat(id, ": ").concat(res.error.code));
771
- }
772
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isClaimProfitSharingEvent(res.data.bcs.type)) {
773
- throw new Error("object at id ".concat(id, " is not a ClaimProfitSharingEvent object"));
774
- }
775
- return [2 /*return*/, ClaimProfitSharingEvent.fromSuiObjectData(res.data)];
776
- }
777
- });
778
- });
779
- };
780
- ClaimProfitSharingEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::ClaimProfitSharingEvent");
781
- ClaimProfitSharingEvent.$numTypeParams = 0;
782
- ClaimProfitSharingEvent.$isPhantom = [];
783
- return ClaimProfitSharingEvent;
784
- }());
785
- exports.ClaimProfitSharingEvent = ClaimProfitSharingEvent;
786
- /* ============================== DailySignUpEvent =============================== */
787
- function isDailySignUpEvent(type) {
788
- type = (0, util_1.compressSuiType)(type);
789
- return type === "".concat(index_1.PKG_V6, "::tails_staking::DailySignUpEvent");
790
- }
791
- var DailySignUpEvent = /** @class */ (function () {
792
- function DailySignUpEvent(typeArgs, fields) {
793
- this.__StructClass = true;
794
- this.$typeName = DailySignUpEvent.$typeName;
795
- this.$isPhantom = DailySignUpEvent.$isPhantom;
796
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DailySignUpEvent.$typeName], __read(typeArgs), false));
797
- this.$typeArgs = typeArgs;
798
- this.tails = fields.tails;
799
- this.log = fields.log;
800
- this.bcsPadding = fields.bcsPadding;
801
- }
802
- DailySignUpEvent.reified = function () {
803
- var _this = this;
804
- return {
805
- typeName: DailySignUpEvent.$typeName,
806
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DailySignUpEvent.$typeName], [], false)),
807
- typeArgs: [],
808
- isPhantom: DailySignUpEvent.$isPhantom,
809
- reifiedTypeArgs: [],
810
- fromFields: function (fields) { return DailySignUpEvent.fromFields(fields); },
811
- fromFieldsWithTypes: function (item) { return DailySignUpEvent.fromFieldsWithTypes(item); },
812
- fromBcs: function (data) { return DailySignUpEvent.fromBcs(data); },
813
- bcs: DailySignUpEvent.bcs,
814
- fromJSONField: function (field) { return DailySignUpEvent.fromJSONField(field); },
815
- fromJSON: function (json) { return DailySignUpEvent.fromJSON(json); },
816
- fromSuiParsedData: function (content) { return DailySignUpEvent.fromSuiParsedData(content); },
817
- fromSuiObjectData: function (content) { return DailySignUpEvent.fromSuiObjectData(content); },
818
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
819
- return [2 /*return*/, DailySignUpEvent.fetch(client, id)];
820
- }); }); },
821
- new: function (fields) {
822
- return new DailySignUpEvent([], fields);
823
- },
824
- kind: "StructClassReified",
825
- };
826
- };
827
- Object.defineProperty(DailySignUpEvent, "r", {
828
- get: function () {
829
- return DailySignUpEvent.reified();
830
- },
831
- enumerable: false,
832
- configurable: true
833
- });
834
- DailySignUpEvent.phantom = function () {
835
- return (0, reified_1.phantom)(DailySignUpEvent.reified());
836
- };
837
- Object.defineProperty(DailySignUpEvent, "p", {
838
- get: function () {
839
- return DailySignUpEvent.phantom();
840
- },
841
- enumerable: false,
842
- configurable: true
843
- });
844
- Object.defineProperty(DailySignUpEvent, "bcs", {
845
- get: function () {
846
- return bcs_1.bcs.struct("DailySignUpEvent", {
847
- tails: bcs_1.bcs.vector(bcs_1.bcs.u64()),
848
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
849
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
850
- });
851
- },
852
- enumerable: false,
853
- configurable: true
854
- });
855
- DailySignUpEvent.fromFields = function (fields) {
856
- return DailySignUpEvent.reified().new({
857
- tails: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.tails),
858
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
859
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
860
- });
861
- };
862
- DailySignUpEvent.fromFieldsWithTypes = function (item) {
863
- if (!isDailySignUpEvent(item.type)) {
864
- throw new Error("not a DailySignUpEvent type");
865
- }
866
- return DailySignUpEvent.reified().new({
867
- tails: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.tails),
868
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
869
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
870
- });
871
- };
872
- DailySignUpEvent.fromBcs = function (data) {
873
- return DailySignUpEvent.fromFields(DailySignUpEvent.bcs.parse(data));
874
- };
875
- DailySignUpEvent.prototype.toJSONField = function () {
876
- return {
877
- tails: (0, reified_1.fieldToJSON)("vector<u64>", this.tails),
878
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
879
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
880
- };
881
- };
882
- DailySignUpEvent.prototype.toJSON = function () {
883
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
884
- };
885
- DailySignUpEvent.fromJSONField = function (field) {
886
- return DailySignUpEvent.reified().new({
887
- tails: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.tails),
888
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
889
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
890
- });
891
- };
892
- DailySignUpEvent.fromJSON = function (json) {
893
- if (json.$typeName !== DailySignUpEvent.$typeName) {
894
- throw new Error("not a WithTwoGenerics json object");
895
- }
896
- return DailySignUpEvent.fromJSONField(json);
897
- };
898
- DailySignUpEvent.fromSuiParsedData = function (content) {
899
- if (content.dataType !== "moveObject") {
900
- throw new Error("not an object");
901
- }
902
- if (!isDailySignUpEvent(content.type)) {
903
- throw new Error("object at ".concat(content.fields.id, " is not a DailySignUpEvent object"));
904
- }
905
- return DailySignUpEvent.fromFieldsWithTypes(content);
906
- };
907
- DailySignUpEvent.fromSuiObjectData = function (data) {
908
- if (data.bcs) {
909
- if (data.bcs.dataType !== "moveObject" || !isDailySignUpEvent(data.bcs.type)) {
910
- throw new Error("object at is not a DailySignUpEvent object");
911
- }
912
- return DailySignUpEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
913
- }
914
- if (data.content) {
915
- return DailySignUpEvent.fromSuiParsedData(data.content);
916
- }
917
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
918
- };
919
- DailySignUpEvent.fetch = function (client, id) {
920
- return __awaiter(this, void 0, void 0, function () {
921
- var res;
922
- var _a, _b;
923
- return __generator(this, function (_c) {
924
- switch (_c.label) {
925
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
926
- case 1:
927
- res = _c.sent();
928
- if (res.error) {
929
- throw new Error("error fetching DailySignUpEvent object at id ".concat(id, ": ").concat(res.error.code));
930
- }
931
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDailySignUpEvent(res.data.bcs.type)) {
932
- throw new Error("object at id ".concat(id, " is not a DailySignUpEvent object"));
933
- }
934
- return [2 /*return*/, DailySignUpEvent.fromSuiObjectData(res.data)];
935
- }
936
- });
937
- });
938
- };
939
- DailySignUpEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::DailySignUpEvent");
940
- DailySignUpEvent.$numTypeParams = 0;
941
- DailySignUpEvent.$isPhantom = [];
942
- return DailySignUpEvent;
943
- }());
944
- exports.DailySignUpEvent = DailySignUpEvent;
945
- /* ============================== RemoveProfitSharingEvent =============================== */
946
- function isRemoveProfitSharingEvent(type) {
947
- type = (0, util_1.compressSuiType)(type);
948
- return type === "".concat(index_1.PKG_V6, "::tails_staking::RemoveProfitSharingEvent");
949
- }
950
- var RemoveProfitSharingEvent = /** @class */ (function () {
951
- function RemoveProfitSharingEvent(typeArgs, fields) {
952
- this.__StructClass = true;
953
- this.$typeName = RemoveProfitSharingEvent.$typeName;
954
- this.$isPhantom = RemoveProfitSharingEvent.$isPhantom;
955
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemoveProfitSharingEvent.$typeName], __read(typeArgs), false));
956
- this.$typeArgs = typeArgs;
957
- this.token = fields.token;
958
- this.log = fields.log;
959
- this.bcsPadding = fields.bcsPadding;
960
- }
961
- RemoveProfitSharingEvent.reified = function () {
962
- var _this = this;
963
- return {
964
- typeName: RemoveProfitSharingEvent.$typeName,
965
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemoveProfitSharingEvent.$typeName], [], false)),
966
- typeArgs: [],
967
- isPhantom: RemoveProfitSharingEvent.$isPhantom,
968
- reifiedTypeArgs: [],
969
- fromFields: function (fields) { return RemoveProfitSharingEvent.fromFields(fields); },
970
- fromFieldsWithTypes: function (item) { return RemoveProfitSharingEvent.fromFieldsWithTypes(item); },
971
- fromBcs: function (data) { return RemoveProfitSharingEvent.fromBcs(data); },
972
- bcs: RemoveProfitSharingEvent.bcs,
973
- fromJSONField: function (field) { return RemoveProfitSharingEvent.fromJSONField(field); },
974
- fromJSON: function (json) { return RemoveProfitSharingEvent.fromJSON(json); },
975
- fromSuiParsedData: function (content) { return RemoveProfitSharingEvent.fromSuiParsedData(content); },
976
- fromSuiObjectData: function (content) { return RemoveProfitSharingEvent.fromSuiObjectData(content); },
977
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
978
- return [2 /*return*/, RemoveProfitSharingEvent.fetch(client, id)];
979
- }); }); },
980
- new: function (fields) {
981
- return new RemoveProfitSharingEvent([], fields);
982
- },
983
- kind: "StructClassReified",
984
- };
985
- };
986
- Object.defineProperty(RemoveProfitSharingEvent, "r", {
987
- get: function () {
988
- return RemoveProfitSharingEvent.reified();
989
- },
990
- enumerable: false,
991
- configurable: true
992
- });
993
- RemoveProfitSharingEvent.phantom = function () {
994
- return (0, reified_1.phantom)(RemoveProfitSharingEvent.reified());
995
- };
996
- Object.defineProperty(RemoveProfitSharingEvent, "p", {
997
- get: function () {
998
- return RemoveProfitSharingEvent.phantom();
999
- },
1000
- enumerable: false,
1001
- configurable: true
1002
- });
1003
- Object.defineProperty(RemoveProfitSharingEvent, "bcs", {
1004
- get: function () {
1005
- return bcs_1.bcs.struct("RemoveProfitSharingEvent", {
1006
- token: structs_1.TypeName.bcs,
1007
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1008
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
1009
- });
1010
- },
1011
- enumerable: false,
1012
- configurable: true
1013
- });
1014
- RemoveProfitSharingEvent.fromFields = function (fields) {
1015
- return RemoveProfitSharingEvent.reified().new({
1016
- token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
1017
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
1018
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
1019
- });
1020
- };
1021
- RemoveProfitSharingEvent.fromFieldsWithTypes = function (item) {
1022
- if (!isRemoveProfitSharingEvent(item.type)) {
1023
- throw new Error("not a RemoveProfitSharingEvent type");
1024
- }
1025
- return RemoveProfitSharingEvent.reified().new({
1026
- token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
1027
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
1028
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
1029
- });
1030
- };
1031
- RemoveProfitSharingEvent.fromBcs = function (data) {
1032
- return RemoveProfitSharingEvent.fromFields(RemoveProfitSharingEvent.bcs.parse(data));
1033
- };
1034
- RemoveProfitSharingEvent.prototype.toJSONField = function () {
1035
- return {
1036
- token: this.token.toJSONField(),
1037
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
1038
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
1039
- };
1040
- };
1041
- RemoveProfitSharingEvent.prototype.toJSON = function () {
1042
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1043
- };
1044
- RemoveProfitSharingEvent.fromJSONField = function (field) {
1045
- return RemoveProfitSharingEvent.reified().new({
1046
- token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
1047
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
1048
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
1049
- });
1050
- };
1051
- RemoveProfitSharingEvent.fromJSON = function (json) {
1052
- if (json.$typeName !== RemoveProfitSharingEvent.$typeName) {
1053
- throw new Error("not a WithTwoGenerics json object");
1054
- }
1055
- return RemoveProfitSharingEvent.fromJSONField(json);
1056
- };
1057
- RemoveProfitSharingEvent.fromSuiParsedData = function (content) {
1058
- if (content.dataType !== "moveObject") {
1059
- throw new Error("not an object");
1060
- }
1061
- if (!isRemoveProfitSharingEvent(content.type)) {
1062
- throw new Error("object at ".concat(content.fields.id, " is not a RemoveProfitSharingEvent object"));
1063
- }
1064
- return RemoveProfitSharingEvent.fromFieldsWithTypes(content);
1065
- };
1066
- RemoveProfitSharingEvent.fromSuiObjectData = function (data) {
1067
- if (data.bcs) {
1068
- if (data.bcs.dataType !== "moveObject" || !isRemoveProfitSharingEvent(data.bcs.type)) {
1069
- throw new Error("object at is not a RemoveProfitSharingEvent object");
1070
- }
1071
- return RemoveProfitSharingEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1072
- }
1073
- if (data.content) {
1074
- return RemoveProfitSharingEvent.fromSuiParsedData(data.content);
1075
- }
1076
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1077
- };
1078
- RemoveProfitSharingEvent.fetch = function (client, id) {
1079
- return __awaiter(this, void 0, void 0, function () {
1080
- var res;
1081
- var _a, _b;
1082
- return __generator(this, function (_c) {
1083
- switch (_c.label) {
1084
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1085
- case 1:
1086
- res = _c.sent();
1087
- if (res.error) {
1088
- throw new Error("error fetching RemoveProfitSharingEvent object at id ".concat(id, ": ").concat(res.error.code));
1089
- }
1090
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRemoveProfitSharingEvent(res.data.bcs.type)) {
1091
- throw new Error("object at id ".concat(id, " is not a RemoveProfitSharingEvent object"));
1092
- }
1093
- return [2 /*return*/, RemoveProfitSharingEvent.fromSuiObjectData(res.data)];
1094
- }
1095
- });
1096
- });
1097
- };
1098
- RemoveProfitSharingEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::RemoveProfitSharingEvent");
1099
- RemoveProfitSharingEvent.$numTypeParams = 0;
1100
- RemoveProfitSharingEvent.$isPhantom = [];
1101
- return RemoveProfitSharingEvent;
1102
- }());
1103
- exports.RemoveProfitSharingEvent = RemoveProfitSharingEvent;
1104
- /* ============================== SetProfitSharingEvent =============================== */
1105
- function isSetProfitSharingEvent(type) {
1106
- type = (0, util_1.compressSuiType)(type);
1107
- return type === "".concat(index_1.PKG_V6, "::tails_staking::SetProfitSharingEvent");
1108
- }
1109
- var SetProfitSharingEvent = /** @class */ (function () {
1110
- function SetProfitSharingEvent(typeArgs, fields) {
1111
- this.__StructClass = true;
1112
- this.$typeName = SetProfitSharingEvent.$typeName;
1113
- this.$isPhantom = SetProfitSharingEvent.$isPhantom;
1114
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([SetProfitSharingEvent.$typeName], __read(typeArgs), false));
1115
- this.$typeArgs = typeArgs;
1116
- this.token = fields.token;
1117
- this.levelProfits = fields.levelProfits;
1118
- this.levelCounts = fields.levelCounts;
1119
- this.log = fields.log;
1120
- this.bcsPadding = fields.bcsPadding;
1121
- }
1122
- SetProfitSharingEvent.reified = function () {
1123
- var _this = this;
1124
- return {
1125
- typeName: SetProfitSharingEvent.$typeName,
1126
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([SetProfitSharingEvent.$typeName], [], false)),
1127
- typeArgs: [],
1128
- isPhantom: SetProfitSharingEvent.$isPhantom,
1129
- reifiedTypeArgs: [],
1130
- fromFields: function (fields) { return SetProfitSharingEvent.fromFields(fields); },
1131
- fromFieldsWithTypes: function (item) { return SetProfitSharingEvent.fromFieldsWithTypes(item); },
1132
- fromBcs: function (data) { return SetProfitSharingEvent.fromBcs(data); },
1133
- bcs: SetProfitSharingEvent.bcs,
1134
- fromJSONField: function (field) { return SetProfitSharingEvent.fromJSONField(field); },
1135
- fromJSON: function (json) { return SetProfitSharingEvent.fromJSON(json); },
1136
- fromSuiParsedData: function (content) { return SetProfitSharingEvent.fromSuiParsedData(content); },
1137
- fromSuiObjectData: function (content) { return SetProfitSharingEvent.fromSuiObjectData(content); },
1138
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1139
- return [2 /*return*/, SetProfitSharingEvent.fetch(client, id)];
1140
- }); }); },
1141
- new: function (fields) {
1142
- return new SetProfitSharingEvent([], fields);
1143
- },
1144
- kind: "StructClassReified",
1145
- };
1146
- };
1147
- Object.defineProperty(SetProfitSharingEvent, "r", {
1148
- get: function () {
1149
- return SetProfitSharingEvent.reified();
1150
- },
1151
- enumerable: false,
1152
- configurable: true
1153
- });
1154
- SetProfitSharingEvent.phantom = function () {
1155
- return (0, reified_1.phantom)(SetProfitSharingEvent.reified());
1156
- };
1157
- Object.defineProperty(SetProfitSharingEvent, "p", {
1158
- get: function () {
1159
- return SetProfitSharingEvent.phantom();
1160
- },
1161
- enumerable: false,
1162
- configurable: true
1163
- });
1164
- Object.defineProperty(SetProfitSharingEvent, "bcs", {
1165
- get: function () {
1166
- return bcs_1.bcs.struct("SetProfitSharingEvent", {
1167
- token: structs_1.TypeName.bcs,
1168
- level_profits: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1169
- level_counts: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1170
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1171
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
1172
- });
1173
- },
1174
- enumerable: false,
1175
- configurable: true
1176
- });
1177
- SetProfitSharingEvent.fromFields = function (fields) {
1178
- return SetProfitSharingEvent.reified().new({
1179
- token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
1180
- levelProfits: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.level_profits),
1181
- levelCounts: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.level_counts),
1182
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
1183
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
1184
- });
1185
- };
1186
- SetProfitSharingEvent.fromFieldsWithTypes = function (item) {
1187
- if (!isSetProfitSharingEvent(item.type)) {
1188
- throw new Error("not a SetProfitSharingEvent type");
1189
- }
1190
- return SetProfitSharingEvent.reified().new({
1191
- token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
1192
- levelProfits: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.level_profits),
1193
- levelCounts: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.level_counts),
1194
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
1195
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
1196
- });
1197
- };
1198
- SetProfitSharingEvent.fromBcs = function (data) {
1199
- return SetProfitSharingEvent.fromFields(SetProfitSharingEvent.bcs.parse(data));
1200
- };
1201
- SetProfitSharingEvent.prototype.toJSONField = function () {
1202
- return {
1203
- token: this.token.toJSONField(),
1204
- levelProfits: (0, reified_1.fieldToJSON)("vector<u64>", this.levelProfits),
1205
- levelCounts: (0, reified_1.fieldToJSON)("vector<u64>", this.levelCounts),
1206
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
1207
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
1208
- };
1209
- };
1210
- SetProfitSharingEvent.prototype.toJSON = function () {
1211
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1212
- };
1213
- SetProfitSharingEvent.fromJSONField = function (field) {
1214
- return SetProfitSharingEvent.reified().new({
1215
- token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
1216
- levelProfits: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.levelProfits),
1217
- levelCounts: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.levelCounts),
1218
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
1219
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
1220
- });
1221
- };
1222
- SetProfitSharingEvent.fromJSON = function (json) {
1223
- if (json.$typeName !== SetProfitSharingEvent.$typeName) {
1224
- throw new Error("not a WithTwoGenerics json object");
1225
- }
1226
- return SetProfitSharingEvent.fromJSONField(json);
1227
- };
1228
- SetProfitSharingEvent.fromSuiParsedData = function (content) {
1229
- if (content.dataType !== "moveObject") {
1230
- throw new Error("not an object");
1231
- }
1232
- if (!isSetProfitSharingEvent(content.type)) {
1233
- throw new Error("object at ".concat(content.fields.id, " is not a SetProfitSharingEvent object"));
1234
- }
1235
- return SetProfitSharingEvent.fromFieldsWithTypes(content);
1236
- };
1237
- SetProfitSharingEvent.fromSuiObjectData = function (data) {
1238
- if (data.bcs) {
1239
- if (data.bcs.dataType !== "moveObject" || !isSetProfitSharingEvent(data.bcs.type)) {
1240
- throw new Error("object at is not a SetProfitSharingEvent object");
1241
- }
1242
- return SetProfitSharingEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1243
- }
1244
- if (data.content) {
1245
- return SetProfitSharingEvent.fromSuiParsedData(data.content);
1246
- }
1247
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1248
- };
1249
- SetProfitSharingEvent.fetch = function (client, id) {
1250
- return __awaiter(this, void 0, void 0, function () {
1251
- var res;
1252
- var _a, _b;
1253
- return __generator(this, function (_c) {
1254
- switch (_c.label) {
1255
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1256
- case 1:
1257
- res = _c.sent();
1258
- if (res.error) {
1259
- throw new Error("error fetching SetProfitSharingEvent object at id ".concat(id, ": ").concat(res.error.code));
1260
- }
1261
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isSetProfitSharingEvent(res.data.bcs.type)) {
1262
- throw new Error("object at id ".concat(id, " is not a SetProfitSharingEvent object"));
1263
- }
1264
- return [2 /*return*/, SetProfitSharingEvent.fromSuiObjectData(res.data)];
1265
- }
1266
- });
1267
- });
1268
- };
1269
- SetProfitSharingEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::SetProfitSharingEvent");
1270
- SetProfitSharingEvent.$numTypeParams = 0;
1271
- SetProfitSharingEvent.$isPhantom = [];
1272
- return SetProfitSharingEvent;
1273
- }());
1274
- exports.SetProfitSharingEvent = SetProfitSharingEvent;
1275
- /* ============================== StakeTailsEvent =============================== */
1276
- function isStakeTailsEvent(type) {
1277
- type = (0, util_1.compressSuiType)(type);
1278
- return type === "".concat(index_1.PKG_V6, "::tails_staking::StakeTailsEvent");
1279
- }
1280
- var StakeTailsEvent = /** @class */ (function () {
1281
- function StakeTailsEvent(typeArgs, fields) {
1282
- this.__StructClass = true;
1283
- this.$typeName = StakeTailsEvent.$typeName;
1284
- this.$isPhantom = StakeTailsEvent.$isPhantom;
1285
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StakeTailsEvent.$typeName], __read(typeArgs), false));
1286
- this.$typeArgs = typeArgs;
1287
- this.tails = fields.tails;
1288
- this.log = fields.log;
1289
- this.bcsPadding = fields.bcsPadding;
1290
- }
1291
- StakeTailsEvent.reified = function () {
1292
- var _this = this;
1293
- return {
1294
- typeName: StakeTailsEvent.$typeName,
1295
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StakeTailsEvent.$typeName], [], false)),
1296
- typeArgs: [],
1297
- isPhantom: StakeTailsEvent.$isPhantom,
1298
- reifiedTypeArgs: [],
1299
- fromFields: function (fields) { return StakeTailsEvent.fromFields(fields); },
1300
- fromFieldsWithTypes: function (item) { return StakeTailsEvent.fromFieldsWithTypes(item); },
1301
- fromBcs: function (data) { return StakeTailsEvent.fromBcs(data); },
1302
- bcs: StakeTailsEvent.bcs,
1303
- fromJSONField: function (field) { return StakeTailsEvent.fromJSONField(field); },
1304
- fromJSON: function (json) { return StakeTailsEvent.fromJSON(json); },
1305
- fromSuiParsedData: function (content) { return StakeTailsEvent.fromSuiParsedData(content); },
1306
- fromSuiObjectData: function (content) { return StakeTailsEvent.fromSuiObjectData(content); },
1307
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1308
- return [2 /*return*/, StakeTailsEvent.fetch(client, id)];
1309
- }); }); },
1310
- new: function (fields) {
1311
- return new StakeTailsEvent([], fields);
1312
- },
1313
- kind: "StructClassReified",
1314
- };
1315
- };
1316
- Object.defineProperty(StakeTailsEvent, "r", {
1317
- get: function () {
1318
- return StakeTailsEvent.reified();
1319
- },
1320
- enumerable: false,
1321
- configurable: true
1322
- });
1323
- StakeTailsEvent.phantom = function () {
1324
- return (0, reified_1.phantom)(StakeTailsEvent.reified());
1325
- };
1326
- Object.defineProperty(StakeTailsEvent, "p", {
1327
- get: function () {
1328
- return StakeTailsEvent.phantom();
1329
- },
1330
- enumerable: false,
1331
- configurable: true
1332
- });
1333
- Object.defineProperty(StakeTailsEvent, "bcs", {
1334
- get: function () {
1335
- return bcs_1.bcs.struct("StakeTailsEvent", {
1336
- tails: bcs_1.bcs.bytes(32).transform({
1337
- input: function (val) { return (0, utils_1.fromHEX)(val); },
1338
- output: function (val) { return (0, utils_1.toHEX)(val); },
1339
- }),
1340
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1341
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
1342
- });
1343
- },
1344
- enumerable: false,
1345
- configurable: true
1346
- });
1347
- StakeTailsEvent.fromFields = function (fields) {
1348
- return StakeTailsEvent.reified().new({
1349
- tails: (0, reified_1.decodeFromFields)("address", fields.tails),
1350
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
1351
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
1352
- });
1353
- };
1354
- StakeTailsEvent.fromFieldsWithTypes = function (item) {
1355
- if (!isStakeTailsEvent(item.type)) {
1356
- throw new Error("not a StakeTailsEvent type");
1357
- }
1358
- return StakeTailsEvent.reified().new({
1359
- tails: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.tails),
1360
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
1361
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
1362
- });
1363
- };
1364
- StakeTailsEvent.fromBcs = function (data) {
1365
- return StakeTailsEvent.fromFields(StakeTailsEvent.bcs.parse(data));
1366
- };
1367
- StakeTailsEvent.prototype.toJSONField = function () {
1368
- return {
1369
- tails: this.tails,
1370
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
1371
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
1372
- };
1373
- };
1374
- StakeTailsEvent.prototype.toJSON = function () {
1375
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1376
- };
1377
- StakeTailsEvent.fromJSONField = function (field) {
1378
- return StakeTailsEvent.reified().new({
1379
- tails: (0, reified_1.decodeFromJSONField)("address", field.tails),
1380
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
1381
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
1382
- });
1383
- };
1384
- StakeTailsEvent.fromJSON = function (json) {
1385
- if (json.$typeName !== StakeTailsEvent.$typeName) {
1386
- throw new Error("not a WithTwoGenerics json object");
1387
- }
1388
- return StakeTailsEvent.fromJSONField(json);
1389
- };
1390
- StakeTailsEvent.fromSuiParsedData = function (content) {
1391
- if (content.dataType !== "moveObject") {
1392
- throw new Error("not an object");
1393
- }
1394
- if (!isStakeTailsEvent(content.type)) {
1395
- throw new Error("object at ".concat(content.fields.id, " is not a StakeTailsEvent object"));
1396
- }
1397
- return StakeTailsEvent.fromFieldsWithTypes(content);
1398
- };
1399
- StakeTailsEvent.fromSuiObjectData = function (data) {
1400
- if (data.bcs) {
1401
- if (data.bcs.dataType !== "moveObject" || !isStakeTailsEvent(data.bcs.type)) {
1402
- throw new Error("object at is not a StakeTailsEvent object");
1403
- }
1404
- return StakeTailsEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1405
- }
1406
- if (data.content) {
1407
- return StakeTailsEvent.fromSuiParsedData(data.content);
1408
- }
1409
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1410
- };
1411
- StakeTailsEvent.fetch = function (client, id) {
1412
- return __awaiter(this, void 0, void 0, function () {
1413
- var res;
1414
- var _a, _b;
1415
- return __generator(this, function (_c) {
1416
- switch (_c.label) {
1417
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1418
- case 1:
1419
- res = _c.sent();
1420
- if (res.error) {
1421
- throw new Error("error fetching StakeTailsEvent object at id ".concat(id, ": ").concat(res.error.code));
1422
- }
1423
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStakeTailsEvent(res.data.bcs.type)) {
1424
- throw new Error("object at id ".concat(id, " is not a StakeTailsEvent object"));
1425
- }
1426
- return [2 /*return*/, StakeTailsEvent.fromSuiObjectData(res.data)];
1427
- }
1428
- });
1429
- });
1430
- };
1431
- StakeTailsEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::StakeTailsEvent");
1432
- StakeTailsEvent.$numTypeParams = 0;
1433
- StakeTailsEvent.$isPhantom = [];
1434
- return StakeTailsEvent;
1435
- }());
1436
- exports.StakeTailsEvent = StakeTailsEvent;
1437
- /* ============================== StakingInfo =============================== */
1438
- function isStakingInfo(type) {
1439
- type = (0, util_1.compressSuiType)(type);
1440
- return type === "".concat(index_1.PKG_V6, "::tails_staking::StakingInfo");
1441
- }
1442
- var StakingInfo = /** @class */ (function () {
1443
- function StakingInfo(typeArgs, fields) {
1444
- this.__StructClass = true;
1445
- this.$typeName = StakingInfo.$typeName;
1446
- this.$isPhantom = StakingInfo.$isPhantom;
1447
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StakingInfo.$typeName], __read(typeArgs), false));
1448
- this.$typeArgs = typeArgs;
1449
- this.user = fields.user;
1450
- this.tails = fields.tails;
1451
- this.profits = fields.profits;
1452
- this.u64Padding = fields.u64Padding;
1453
- }
1454
- StakingInfo.reified = function () {
1455
- var _this = this;
1456
- return {
1457
- typeName: StakingInfo.$typeName,
1458
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StakingInfo.$typeName], [], false)),
1459
- typeArgs: [],
1460
- isPhantom: StakingInfo.$isPhantom,
1461
- reifiedTypeArgs: [],
1462
- fromFields: function (fields) { return StakingInfo.fromFields(fields); },
1463
- fromFieldsWithTypes: function (item) { return StakingInfo.fromFieldsWithTypes(item); },
1464
- fromBcs: function (data) { return StakingInfo.fromBcs(data); },
1465
- bcs: StakingInfo.bcs,
1466
- fromJSONField: function (field) { return StakingInfo.fromJSONField(field); },
1467
- fromJSON: function (json) { return StakingInfo.fromJSON(json); },
1468
- fromSuiParsedData: function (content) { return StakingInfo.fromSuiParsedData(content); },
1469
- fromSuiObjectData: function (content) { return StakingInfo.fromSuiObjectData(content); },
1470
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1471
- return [2 /*return*/, StakingInfo.fetch(client, id)];
1472
- }); }); },
1473
- new: function (fields) {
1474
- return new StakingInfo([], fields);
1475
- },
1476
- kind: "StructClassReified",
1477
- };
1478
- };
1479
- Object.defineProperty(StakingInfo, "r", {
1480
- get: function () {
1481
- return StakingInfo.reified();
1482
- },
1483
- enumerable: false,
1484
- configurable: true
1485
- });
1486
- StakingInfo.phantom = function () {
1487
- return (0, reified_1.phantom)(StakingInfo.reified());
1488
- };
1489
- Object.defineProperty(StakingInfo, "p", {
1490
- get: function () {
1491
- return StakingInfo.phantom();
1492
- },
1493
- enumerable: false,
1494
- configurable: true
1495
- });
1496
- Object.defineProperty(StakingInfo, "bcs", {
1497
- get: function () {
1498
- return bcs_1.bcs.struct("StakingInfo", {
1499
- user: bcs_1.bcs.bytes(32).transform({
1500
- input: function (val) { return (0, utils_1.fromHEX)(val); },
1501
- output: function (val) { return (0, utils_1.toHEX)(val); },
1502
- }),
1503
- tails: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1504
- profits: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1505
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1506
- });
1507
- },
1508
- enumerable: false,
1509
- configurable: true
1510
- });
1511
- StakingInfo.fromFields = function (fields) {
1512
- return StakingInfo.reified().new({
1513
- user: (0, reified_1.decodeFromFields)("address", fields.user),
1514
- tails: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.tails),
1515
- profits: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.profits),
1516
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
1517
- });
1518
- };
1519
- StakingInfo.fromFieldsWithTypes = function (item) {
1520
- if (!isStakingInfo(item.type)) {
1521
- throw new Error("not a StakingInfo type");
1522
- }
1523
- return StakingInfo.reified().new({
1524
- user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
1525
- tails: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.tails),
1526
- profits: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.profits),
1527
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
1528
- });
1529
- };
1530
- StakingInfo.fromBcs = function (data) {
1531
- return StakingInfo.fromFields(StakingInfo.bcs.parse(data));
1532
- };
1533
- StakingInfo.prototype.toJSONField = function () {
1534
- return {
1535
- user: this.user,
1536
- tails: (0, reified_1.fieldToJSON)("vector<u64>", this.tails),
1537
- profits: (0, reified_1.fieldToJSON)("vector<u64>", this.profits),
1538
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
1539
- };
1540
- };
1541
- StakingInfo.prototype.toJSON = function () {
1542
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1543
- };
1544
- StakingInfo.fromJSONField = function (field) {
1545
- return StakingInfo.reified().new({
1546
- user: (0, reified_1.decodeFromJSONField)("address", field.user),
1547
- tails: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.tails),
1548
- profits: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.profits),
1549
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
1550
- });
1551
- };
1552
- StakingInfo.fromJSON = function (json) {
1553
- if (json.$typeName !== StakingInfo.$typeName) {
1554
- throw new Error("not a WithTwoGenerics json object");
1555
- }
1556
- return StakingInfo.fromJSONField(json);
1557
- };
1558
- StakingInfo.fromSuiParsedData = function (content) {
1559
- if (content.dataType !== "moveObject") {
1560
- throw new Error("not an object");
1561
- }
1562
- if (!isStakingInfo(content.type)) {
1563
- throw new Error("object at ".concat(content.fields.id, " is not a StakingInfo object"));
1564
- }
1565
- return StakingInfo.fromFieldsWithTypes(content);
1566
- };
1567
- StakingInfo.fromSuiObjectData = function (data) {
1568
- if (data.bcs) {
1569
- if (data.bcs.dataType !== "moveObject" || !isStakingInfo(data.bcs.type)) {
1570
- throw new Error("object at is not a StakingInfo object");
1571
- }
1572
- return StakingInfo.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1573
- }
1574
- if (data.content) {
1575
- return StakingInfo.fromSuiParsedData(data.content);
1576
- }
1577
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1578
- };
1579
- StakingInfo.fetch = function (client, id) {
1580
- return __awaiter(this, void 0, void 0, function () {
1581
- var res;
1582
- var _a, _b;
1583
- return __generator(this, function (_c) {
1584
- switch (_c.label) {
1585
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1586
- case 1:
1587
- res = _c.sent();
1588
- if (res.error) {
1589
- throw new Error("error fetching StakingInfo object at id ".concat(id, ": ").concat(res.error.code));
1590
- }
1591
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStakingInfo(res.data.bcs.type)) {
1592
- throw new Error("object at id ".concat(id, " is not a StakingInfo object"));
1593
- }
1594
- return [2 /*return*/, StakingInfo.fromSuiObjectData(res.data)];
1595
- }
1596
- });
1597
- });
1598
- };
1599
- StakingInfo.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::StakingInfo");
1600
- StakingInfo.$numTypeParams = 0;
1601
- StakingInfo.$isPhantom = [];
1602
- return StakingInfo;
1603
- }());
1604
- exports.StakingInfo = StakingInfo;
1605
- /* ============================== TailsStakingRegistry =============================== */
1606
- function isTailsStakingRegistry(type) {
1607
- type = (0, util_1.compressSuiType)(type);
1608
- return type === "".concat(index_1.PKG_V6, "::tails_staking::TailsStakingRegistry");
1609
- }
1610
- var TailsStakingRegistry = /** @class */ (function () {
1611
- function TailsStakingRegistry(typeArgs, fields) {
1612
- this.__StructClass = true;
1613
- this.$typeName = TailsStakingRegistry.$typeName;
1614
- this.$isPhantom = TailsStakingRegistry.$isPhantom;
1615
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TailsStakingRegistry.$typeName], __read(typeArgs), false));
1616
- this.$typeArgs = typeArgs;
1617
- this.id = fields.id;
1618
- this.config = fields.config;
1619
- this.tailsManagerCap = fields.tailsManagerCap;
1620
- this.tails = fields.tails;
1621
- this.tailsMetadata = fields.tailsMetadata;
1622
- this.stakingInfos = fields.stakingInfos;
1623
- this.profitAssets = fields.profitAssets;
1624
- this.transferPolicy = fields.transferPolicy;
1625
- }
1626
- TailsStakingRegistry.reified = function () {
1627
- var _this = this;
1628
- return {
1629
- typeName: TailsStakingRegistry.$typeName,
1630
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TailsStakingRegistry.$typeName], [], false)),
1631
- typeArgs: [],
1632
- isPhantom: TailsStakingRegistry.$isPhantom,
1633
- reifiedTypeArgs: [],
1634
- fromFields: function (fields) { return TailsStakingRegistry.fromFields(fields); },
1635
- fromFieldsWithTypes: function (item) { return TailsStakingRegistry.fromFieldsWithTypes(item); },
1636
- fromBcs: function (data) { return TailsStakingRegistry.fromBcs(data); },
1637
- bcs: TailsStakingRegistry.bcs,
1638
- fromJSONField: function (field) { return TailsStakingRegistry.fromJSONField(field); },
1639
- fromJSON: function (json) { return TailsStakingRegistry.fromJSON(json); },
1640
- fromSuiParsedData: function (content) { return TailsStakingRegistry.fromSuiParsedData(content); },
1641
- fromSuiObjectData: function (content) { return TailsStakingRegistry.fromSuiObjectData(content); },
1642
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1643
- return [2 /*return*/, TailsStakingRegistry.fetch(client, id)];
1644
- }); }); },
1645
- new: function (fields) {
1646
- return new TailsStakingRegistry([], fields);
1647
- },
1648
- kind: "StructClassReified",
1649
- };
1650
- };
1651
- Object.defineProperty(TailsStakingRegistry, "r", {
1652
- get: function () {
1653
- return TailsStakingRegistry.reified();
1654
- },
1655
- enumerable: false,
1656
- configurable: true
1657
- });
1658
- TailsStakingRegistry.phantom = function () {
1659
- return (0, reified_1.phantom)(TailsStakingRegistry.reified());
1660
- };
1661
- Object.defineProperty(TailsStakingRegistry, "p", {
1662
- get: function () {
1663
- return TailsStakingRegistry.phantom();
1664
- },
1665
- enumerable: false,
1666
- configurable: true
1667
- });
1668
- Object.defineProperty(TailsStakingRegistry, "bcs", {
1669
- get: function () {
1670
- return bcs_1.bcs.struct("TailsStakingRegistry", {
1671
- id: structs_4.UID.bcs,
1672
- config: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1673
- tails_manager_cap: structs_6.ManagerCap.bcs,
1674
- tails: structs_3.ObjectTable.bcs,
1675
- tails_metadata: structs_2.Bag.bcs,
1676
- staking_infos: structs_7.BigVector.bcs,
1677
- profit_assets: bcs_1.bcs.vector(structs_1.TypeName.bcs),
1678
- transfer_policy: structs_5.TransferPolicy.bcs,
1679
- });
1680
- },
1681
- enumerable: false,
1682
- configurable: true
1683
- });
1684
- TailsStakingRegistry.fromFields = function (fields) {
1685
- return TailsStakingRegistry.reified().new({
1686
- id: (0, reified_1.decodeFromFields)(structs_4.UID.reified(), fields.id),
1687
- config: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.config),
1688
- tailsManagerCap: (0, reified_1.decodeFromFields)(structs_6.ManagerCap.reified(), fields.tails_manager_cap),
1689
- tails: (0, reified_1.decodeFromFields)(structs_3.ObjectTable.reified(reified.phantom("address"), reified.phantom(structs_6.Tails.reified())), fields.tails),
1690
- tailsMetadata: (0, reified_1.decodeFromFields)(structs_2.Bag.reified(), fields.tails_metadata),
1691
- stakingInfos: (0, reified_1.decodeFromFields)(structs_7.BigVector.reified(), fields.staking_infos),
1692
- profitAssets: (0, reified_1.decodeFromFields)(reified.vector(structs_1.TypeName.reified()), fields.profit_assets),
1693
- transferPolicy: (0, reified_1.decodeFromFields)(structs_5.TransferPolicy.reified(reified.phantom(structs_6.Tails.reified())), fields.transfer_policy),
1694
- });
1695
- };
1696
- TailsStakingRegistry.fromFieldsWithTypes = function (item) {
1697
- if (!isTailsStakingRegistry(item.type)) {
1698
- throw new Error("not a TailsStakingRegistry type");
1699
- }
1700
- return TailsStakingRegistry.reified().new({
1701
- id: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.UID.reified(), item.fields.id),
1702
- config: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.config),
1703
- tailsManagerCap: (0, reified_1.decodeFromFieldsWithTypes)(structs_6.ManagerCap.reified(), item.fields.tails_manager_cap),
1704
- tails: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.ObjectTable.reified(reified.phantom("address"), reified.phantom(structs_6.Tails.reified())), item.fields.tails),
1705
- tailsMetadata: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.Bag.reified(), item.fields.tails_metadata),
1706
- stakingInfos: (0, reified_1.decodeFromFieldsWithTypes)(structs_7.BigVector.reified(), item.fields.staking_infos),
1707
- profitAssets: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(structs_1.TypeName.reified()), item.fields.profit_assets),
1708
- transferPolicy: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.TransferPolicy.reified(reified.phantom(structs_6.Tails.reified())), item.fields.transfer_policy),
1709
- });
1710
- };
1711
- TailsStakingRegistry.fromBcs = function (data) {
1712
- return TailsStakingRegistry.fromFields(TailsStakingRegistry.bcs.parse(data));
1713
- };
1714
- TailsStakingRegistry.prototype.toJSONField = function () {
1715
- return {
1716
- id: this.id,
1717
- config: (0, reified_1.fieldToJSON)("vector<u64>", this.config),
1718
- tailsManagerCap: this.tailsManagerCap.toJSONField(),
1719
- tails: this.tails.toJSONField(),
1720
- tailsMetadata: this.tailsMetadata.toJSONField(),
1721
- stakingInfos: this.stakingInfos.toJSONField(),
1722
- profitAssets: (0, reified_1.fieldToJSON)("vector<".concat(structs_1.TypeName.$typeName, ">"), this.profitAssets),
1723
- transferPolicy: this.transferPolicy.toJSONField(),
1724
- };
1725
- };
1726
- TailsStakingRegistry.prototype.toJSON = function () {
1727
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1728
- };
1729
- TailsStakingRegistry.fromJSONField = function (field) {
1730
- return TailsStakingRegistry.reified().new({
1731
- id: (0, reified_1.decodeFromJSONField)(structs_4.UID.reified(), field.id),
1732
- config: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.config),
1733
- tailsManagerCap: (0, reified_1.decodeFromJSONField)(structs_6.ManagerCap.reified(), field.tailsManagerCap),
1734
- tails: (0, reified_1.decodeFromJSONField)(structs_3.ObjectTable.reified(reified.phantom("address"), reified.phantom(structs_6.Tails.reified())), field.tails),
1735
- tailsMetadata: (0, reified_1.decodeFromJSONField)(structs_2.Bag.reified(), field.tailsMetadata),
1736
- stakingInfos: (0, reified_1.decodeFromJSONField)(structs_7.BigVector.reified(), field.stakingInfos),
1737
- profitAssets: (0, reified_1.decodeFromJSONField)(reified.vector(structs_1.TypeName.reified()), field.profitAssets),
1738
- transferPolicy: (0, reified_1.decodeFromJSONField)(structs_5.TransferPolicy.reified(reified.phantom(structs_6.Tails.reified())), field.transferPolicy),
1739
- });
1740
- };
1741
- TailsStakingRegistry.fromJSON = function (json) {
1742
- if (json.$typeName !== TailsStakingRegistry.$typeName) {
1743
- throw new Error("not a WithTwoGenerics json object");
1744
- }
1745
- return TailsStakingRegistry.fromJSONField(json);
1746
- };
1747
- TailsStakingRegistry.fromSuiParsedData = function (content) {
1748
- if (content.dataType !== "moveObject") {
1749
- throw new Error("not an object");
1750
- }
1751
- if (!isTailsStakingRegistry(content.type)) {
1752
- throw new Error("object at ".concat(content.fields.id, " is not a TailsStakingRegistry object"));
1753
- }
1754
- return TailsStakingRegistry.fromFieldsWithTypes(content);
1755
- };
1756
- TailsStakingRegistry.fromSuiObjectData = function (data) {
1757
- if (data.bcs) {
1758
- if (data.bcs.dataType !== "moveObject" || !isTailsStakingRegistry(data.bcs.type)) {
1759
- throw new Error("object at is not a TailsStakingRegistry object");
1760
- }
1761
- return TailsStakingRegistry.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1762
- }
1763
- if (data.content) {
1764
- return TailsStakingRegistry.fromSuiParsedData(data.content);
1765
- }
1766
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1767
- };
1768
- TailsStakingRegistry.fetch = function (client, id) {
1769
- return __awaiter(this, void 0, void 0, function () {
1770
- var res;
1771
- var _a, _b;
1772
- return __generator(this, function (_c) {
1773
- switch (_c.label) {
1774
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1775
- case 1:
1776
- res = _c.sent();
1777
- if (res.error) {
1778
- throw new Error("error fetching TailsStakingRegistry object at id ".concat(id, ": ").concat(res.error.code));
1779
- }
1780
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTailsStakingRegistry(res.data.bcs.type)) {
1781
- throw new Error("object at id ".concat(id, " is not a TailsStakingRegistry object"));
1782
- }
1783
- return [2 /*return*/, TailsStakingRegistry.fromSuiObjectData(res.data)];
1784
- }
1785
- });
1786
- });
1787
- };
1788
- TailsStakingRegistry.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::TailsStakingRegistry");
1789
- TailsStakingRegistry.$numTypeParams = 0;
1790
- TailsStakingRegistry.$isPhantom = [];
1791
- return TailsStakingRegistry;
1792
- }());
1793
- exports.TailsStakingRegistry = TailsStakingRegistry;
1794
- /* ============================== TransferTailsEvent =============================== */
1795
- function isTransferTailsEvent(type) {
1796
- type = (0, util_1.compressSuiType)(type);
1797
- return type === "".concat(index_1.PKG_V6, "::tails_staking::TransferTailsEvent");
1798
- }
1799
- var TransferTailsEvent = /** @class */ (function () {
1800
- function TransferTailsEvent(typeArgs, fields) {
1801
- this.__StructClass = true;
1802
- this.$typeName = TransferTailsEvent.$typeName;
1803
- this.$isPhantom = TransferTailsEvent.$isPhantom;
1804
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TransferTailsEvent.$typeName], __read(typeArgs), false));
1805
- this.$typeArgs = typeArgs;
1806
- this.tails = fields.tails;
1807
- this.recipient = fields.recipient;
1808
- this.log = fields.log;
1809
- this.bcsPadding = fields.bcsPadding;
1810
- }
1811
- TransferTailsEvent.reified = function () {
1812
- var _this = this;
1813
- return {
1814
- typeName: TransferTailsEvent.$typeName,
1815
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TransferTailsEvent.$typeName], [], false)),
1816
- typeArgs: [],
1817
- isPhantom: TransferTailsEvent.$isPhantom,
1818
- reifiedTypeArgs: [],
1819
- fromFields: function (fields) { return TransferTailsEvent.fromFields(fields); },
1820
- fromFieldsWithTypes: function (item) { return TransferTailsEvent.fromFieldsWithTypes(item); },
1821
- fromBcs: function (data) { return TransferTailsEvent.fromBcs(data); },
1822
- bcs: TransferTailsEvent.bcs,
1823
- fromJSONField: function (field) { return TransferTailsEvent.fromJSONField(field); },
1824
- fromJSON: function (json) { return TransferTailsEvent.fromJSON(json); },
1825
- fromSuiParsedData: function (content) { return TransferTailsEvent.fromSuiParsedData(content); },
1826
- fromSuiObjectData: function (content) { return TransferTailsEvent.fromSuiObjectData(content); },
1827
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1828
- return [2 /*return*/, TransferTailsEvent.fetch(client, id)];
1829
- }); }); },
1830
- new: function (fields) {
1831
- return new TransferTailsEvent([], fields);
1832
- },
1833
- kind: "StructClassReified",
1834
- };
1835
- };
1836
- Object.defineProperty(TransferTailsEvent, "r", {
1837
- get: function () {
1838
- return TransferTailsEvent.reified();
1839
- },
1840
- enumerable: false,
1841
- configurable: true
1842
- });
1843
- TransferTailsEvent.phantom = function () {
1844
- return (0, reified_1.phantom)(TransferTailsEvent.reified());
1845
- };
1846
- Object.defineProperty(TransferTailsEvent, "p", {
1847
- get: function () {
1848
- return TransferTailsEvent.phantom();
1849
- },
1850
- enumerable: false,
1851
- configurable: true
1852
- });
1853
- Object.defineProperty(TransferTailsEvent, "bcs", {
1854
- get: function () {
1855
- return bcs_1.bcs.struct("TransferTailsEvent", {
1856
- tails: bcs_1.bcs.bytes(32).transform({
1857
- input: function (val) { return (0, utils_1.fromHEX)(val); },
1858
- output: function (val) { return (0, utils_1.toHEX)(val); },
1859
- }),
1860
- recipient: bcs_1.bcs.bytes(32).transform({
1861
- input: function (val) { return (0, utils_1.fromHEX)(val); },
1862
- output: function (val) { return (0, utils_1.toHEX)(val); },
1863
- }),
1864
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1865
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
1866
- });
1867
- },
1868
- enumerable: false,
1869
- configurable: true
1870
- });
1871
- TransferTailsEvent.fromFields = function (fields) {
1872
- return TransferTailsEvent.reified().new({
1873
- tails: (0, reified_1.decodeFromFields)("address", fields.tails),
1874
- recipient: (0, reified_1.decodeFromFields)("address", fields.recipient),
1875
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
1876
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
1877
- });
1878
- };
1879
- TransferTailsEvent.fromFieldsWithTypes = function (item) {
1880
- if (!isTransferTailsEvent(item.type)) {
1881
- throw new Error("not a TransferTailsEvent type");
1882
- }
1883
- return TransferTailsEvent.reified().new({
1884
- tails: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.tails),
1885
- recipient: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.recipient),
1886
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
1887
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
1888
- });
1889
- };
1890
- TransferTailsEvent.fromBcs = function (data) {
1891
- return TransferTailsEvent.fromFields(TransferTailsEvent.bcs.parse(data));
1892
- };
1893
- TransferTailsEvent.prototype.toJSONField = function () {
1894
- return {
1895
- tails: this.tails,
1896
- recipient: this.recipient,
1897
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
1898
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
1899
- };
1900
- };
1901
- TransferTailsEvent.prototype.toJSON = function () {
1902
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1903
- };
1904
- TransferTailsEvent.fromJSONField = function (field) {
1905
- return TransferTailsEvent.reified().new({
1906
- tails: (0, reified_1.decodeFromJSONField)("address", field.tails),
1907
- recipient: (0, reified_1.decodeFromJSONField)("address", field.recipient),
1908
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
1909
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
1910
- });
1911
- };
1912
- TransferTailsEvent.fromJSON = function (json) {
1913
- if (json.$typeName !== TransferTailsEvent.$typeName) {
1914
- throw new Error("not a WithTwoGenerics json object");
1915
- }
1916
- return TransferTailsEvent.fromJSONField(json);
1917
- };
1918
- TransferTailsEvent.fromSuiParsedData = function (content) {
1919
- if (content.dataType !== "moveObject") {
1920
- throw new Error("not an object");
1921
- }
1922
- if (!isTransferTailsEvent(content.type)) {
1923
- throw new Error("object at ".concat(content.fields.id, " is not a TransferTailsEvent object"));
1924
- }
1925
- return TransferTailsEvent.fromFieldsWithTypes(content);
1926
- };
1927
- TransferTailsEvent.fromSuiObjectData = function (data) {
1928
- if (data.bcs) {
1929
- if (data.bcs.dataType !== "moveObject" || !isTransferTailsEvent(data.bcs.type)) {
1930
- throw new Error("object at is not a TransferTailsEvent object");
1931
- }
1932
- return TransferTailsEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1933
- }
1934
- if (data.content) {
1935
- return TransferTailsEvent.fromSuiParsedData(data.content);
1936
- }
1937
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1938
- };
1939
- TransferTailsEvent.fetch = function (client, id) {
1940
- return __awaiter(this, void 0, void 0, function () {
1941
- var res;
1942
- var _a, _b;
1943
- return __generator(this, function (_c) {
1944
- switch (_c.label) {
1945
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1946
- case 1:
1947
- res = _c.sent();
1948
- if (res.error) {
1949
- throw new Error("error fetching TransferTailsEvent object at id ".concat(id, ": ").concat(res.error.code));
1950
- }
1951
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTransferTailsEvent(res.data.bcs.type)) {
1952
- throw new Error("object at id ".concat(id, " is not a TransferTailsEvent object"));
1953
- }
1954
- return [2 /*return*/, TransferTailsEvent.fromSuiObjectData(res.data)];
1955
- }
1956
- });
1957
- });
1958
- };
1959
- TransferTailsEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::TransferTailsEvent");
1960
- TransferTailsEvent.$numTypeParams = 0;
1961
- TransferTailsEvent.$isPhantom = [];
1962
- return TransferTailsEvent;
1963
- }());
1964
- exports.TransferTailsEvent = TransferTailsEvent;
1965
- /* ============================== UnstakeTailsEvent =============================== */
1966
- function isUnstakeTailsEvent(type) {
1967
- type = (0, util_1.compressSuiType)(type);
1968
- return type === "".concat(index_1.PKG_V6, "::tails_staking::UnstakeTailsEvent");
1969
- }
1970
- var UnstakeTailsEvent = /** @class */ (function () {
1971
- function UnstakeTailsEvent(typeArgs, fields) {
1972
- this.__StructClass = true;
1973
- this.$typeName = UnstakeTailsEvent.$typeName;
1974
- this.$isPhantom = UnstakeTailsEvent.$isPhantom;
1975
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UnstakeTailsEvent.$typeName], __read(typeArgs), false));
1976
- this.$typeArgs = typeArgs;
1977
- this.tails = fields.tails;
1978
- this.log = fields.log;
1979
- this.bcsPadding = fields.bcsPadding;
1980
- }
1981
- UnstakeTailsEvent.reified = function () {
1982
- var _this = this;
1983
- return {
1984
- typeName: UnstakeTailsEvent.$typeName,
1985
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UnstakeTailsEvent.$typeName], [], false)),
1986
- typeArgs: [],
1987
- isPhantom: UnstakeTailsEvent.$isPhantom,
1988
- reifiedTypeArgs: [],
1989
- fromFields: function (fields) { return UnstakeTailsEvent.fromFields(fields); },
1990
- fromFieldsWithTypes: function (item) { return UnstakeTailsEvent.fromFieldsWithTypes(item); },
1991
- fromBcs: function (data) { return UnstakeTailsEvent.fromBcs(data); },
1992
- bcs: UnstakeTailsEvent.bcs,
1993
- fromJSONField: function (field) { return UnstakeTailsEvent.fromJSONField(field); },
1994
- fromJSON: function (json) { return UnstakeTailsEvent.fromJSON(json); },
1995
- fromSuiParsedData: function (content) { return UnstakeTailsEvent.fromSuiParsedData(content); },
1996
- fromSuiObjectData: function (content) { return UnstakeTailsEvent.fromSuiObjectData(content); },
1997
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1998
- return [2 /*return*/, UnstakeTailsEvent.fetch(client, id)];
1999
- }); }); },
2000
- new: function (fields) {
2001
- return new UnstakeTailsEvent([], fields);
2002
- },
2003
- kind: "StructClassReified",
2004
- };
2005
- };
2006
- Object.defineProperty(UnstakeTailsEvent, "r", {
2007
- get: function () {
2008
- return UnstakeTailsEvent.reified();
2009
- },
2010
- enumerable: false,
2011
- configurable: true
2012
- });
2013
- UnstakeTailsEvent.phantom = function () {
2014
- return (0, reified_1.phantom)(UnstakeTailsEvent.reified());
2015
- };
2016
- Object.defineProperty(UnstakeTailsEvent, "p", {
2017
- get: function () {
2018
- return UnstakeTailsEvent.phantom();
2019
- },
2020
- enumerable: false,
2021
- configurable: true
2022
- });
2023
- Object.defineProperty(UnstakeTailsEvent, "bcs", {
2024
- get: function () {
2025
- return bcs_1.bcs.struct("UnstakeTailsEvent", {
2026
- tails: bcs_1.bcs.bytes(32).transform({
2027
- input: function (val) { return (0, utils_1.fromHEX)(val); },
2028
- output: function (val) { return (0, utils_1.toHEX)(val); },
2029
- }),
2030
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
2031
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
2032
- });
2033
- },
2034
- enumerable: false,
2035
- configurable: true
2036
- });
2037
- UnstakeTailsEvent.fromFields = function (fields) {
2038
- return UnstakeTailsEvent.reified().new({
2039
- tails: (0, reified_1.decodeFromFields)("address", fields.tails),
2040
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
2041
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
2042
- });
2043
- };
2044
- UnstakeTailsEvent.fromFieldsWithTypes = function (item) {
2045
- if (!isUnstakeTailsEvent(item.type)) {
2046
- throw new Error("not a UnstakeTailsEvent type");
2047
- }
2048
- return UnstakeTailsEvent.reified().new({
2049
- tails: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.tails),
2050
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
2051
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
2052
- });
2053
- };
2054
- UnstakeTailsEvent.fromBcs = function (data) {
2055
- return UnstakeTailsEvent.fromFields(UnstakeTailsEvent.bcs.parse(data));
2056
- };
2057
- UnstakeTailsEvent.prototype.toJSONField = function () {
2058
- return {
2059
- tails: this.tails,
2060
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
2061
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
2062
- };
2063
- };
2064
- UnstakeTailsEvent.prototype.toJSON = function () {
2065
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
2066
- };
2067
- UnstakeTailsEvent.fromJSONField = function (field) {
2068
- return UnstakeTailsEvent.reified().new({
2069
- tails: (0, reified_1.decodeFromJSONField)("address", field.tails),
2070
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
2071
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
2072
- });
2073
- };
2074
- UnstakeTailsEvent.fromJSON = function (json) {
2075
- if (json.$typeName !== UnstakeTailsEvent.$typeName) {
2076
- throw new Error("not a WithTwoGenerics json object");
2077
- }
2078
- return UnstakeTailsEvent.fromJSONField(json);
2079
- };
2080
- UnstakeTailsEvent.fromSuiParsedData = function (content) {
2081
- if (content.dataType !== "moveObject") {
2082
- throw new Error("not an object");
2083
- }
2084
- if (!isUnstakeTailsEvent(content.type)) {
2085
- throw new Error("object at ".concat(content.fields.id, " is not a UnstakeTailsEvent object"));
2086
- }
2087
- return UnstakeTailsEvent.fromFieldsWithTypes(content);
2088
- };
2089
- UnstakeTailsEvent.fromSuiObjectData = function (data) {
2090
- if (data.bcs) {
2091
- if (data.bcs.dataType !== "moveObject" || !isUnstakeTailsEvent(data.bcs.type)) {
2092
- throw new Error("object at is not a UnstakeTailsEvent object");
2093
- }
2094
- return UnstakeTailsEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2095
- }
2096
- if (data.content) {
2097
- return UnstakeTailsEvent.fromSuiParsedData(data.content);
2098
- }
2099
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2100
- };
2101
- UnstakeTailsEvent.fetch = function (client, id) {
2102
- return __awaiter(this, void 0, void 0, function () {
2103
- var res;
2104
- var _a, _b;
2105
- return __generator(this, function (_c) {
2106
- switch (_c.label) {
2107
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2108
- case 1:
2109
- res = _c.sent();
2110
- if (res.error) {
2111
- throw new Error("error fetching UnstakeTailsEvent object at id ".concat(id, ": ").concat(res.error.code));
2112
- }
2113
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUnstakeTailsEvent(res.data.bcs.type)) {
2114
- throw new Error("object at id ".concat(id, " is not a UnstakeTailsEvent object"));
2115
- }
2116
- return [2 /*return*/, UnstakeTailsEvent.fromSuiObjectData(res.data)];
2117
- }
2118
- });
2119
- });
2120
- };
2121
- UnstakeTailsEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::UnstakeTailsEvent");
2122
- UnstakeTailsEvent.$numTypeParams = 0;
2123
- UnstakeTailsEvent.$isPhantom = [];
2124
- return UnstakeTailsEvent;
2125
- }());
2126
- exports.UnstakeTailsEvent = UnstakeTailsEvent;
2127
- /* ============================== UpdateTailsStakingRegistryConfigEvent =============================== */
2128
- function isUpdateTailsStakingRegistryConfigEvent(type) {
2129
- type = (0, util_1.compressSuiType)(type);
2130
- return type === "".concat(index_1.PKG_V6, "::tails_staking::UpdateTailsStakingRegistryConfigEvent");
2131
- }
2132
- var UpdateTailsStakingRegistryConfigEvent = /** @class */ (function () {
2133
- function UpdateTailsStakingRegistryConfigEvent(typeArgs, fields) {
2134
- this.__StructClass = true;
2135
- this.$typeName = UpdateTailsStakingRegistryConfigEvent.$typeName;
2136
- this.$isPhantom = UpdateTailsStakingRegistryConfigEvent.$isPhantom;
2137
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateTailsStakingRegistryConfigEvent.$typeName], __read(typeArgs), false));
2138
- this.$typeArgs = typeArgs;
2139
- this.index = fields.index;
2140
- this.log = fields.log;
2141
- this.bcsPadding = fields.bcsPadding;
2142
- }
2143
- UpdateTailsStakingRegistryConfigEvent.reified = function () {
2144
- var _this = this;
2145
- return {
2146
- typeName: UpdateTailsStakingRegistryConfigEvent.$typeName,
2147
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateTailsStakingRegistryConfigEvent.$typeName], [], false)),
2148
- typeArgs: [],
2149
- isPhantom: UpdateTailsStakingRegistryConfigEvent.$isPhantom,
2150
- reifiedTypeArgs: [],
2151
- fromFields: function (fields) { return UpdateTailsStakingRegistryConfigEvent.fromFields(fields); },
2152
- fromFieldsWithTypes: function (item) { return UpdateTailsStakingRegistryConfigEvent.fromFieldsWithTypes(item); },
2153
- fromBcs: function (data) { return UpdateTailsStakingRegistryConfigEvent.fromBcs(data); },
2154
- bcs: UpdateTailsStakingRegistryConfigEvent.bcs,
2155
- fromJSONField: function (field) { return UpdateTailsStakingRegistryConfigEvent.fromJSONField(field); },
2156
- fromJSON: function (json) { return UpdateTailsStakingRegistryConfigEvent.fromJSON(json); },
2157
- fromSuiParsedData: function (content) { return UpdateTailsStakingRegistryConfigEvent.fromSuiParsedData(content); },
2158
- fromSuiObjectData: function (content) { return UpdateTailsStakingRegistryConfigEvent.fromSuiObjectData(content); },
2159
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2160
- return [2 /*return*/, UpdateTailsStakingRegistryConfigEvent.fetch(client, id)];
2161
- }); }); },
2162
- new: function (fields) {
2163
- return new UpdateTailsStakingRegistryConfigEvent([], fields);
2164
- },
2165
- kind: "StructClassReified",
2166
- };
2167
- };
2168
- Object.defineProperty(UpdateTailsStakingRegistryConfigEvent, "r", {
2169
- get: function () {
2170
- return UpdateTailsStakingRegistryConfigEvent.reified();
2171
- },
2172
- enumerable: false,
2173
- configurable: true
2174
- });
2175
- UpdateTailsStakingRegistryConfigEvent.phantom = function () {
2176
- return (0, reified_1.phantom)(UpdateTailsStakingRegistryConfigEvent.reified());
2177
- };
2178
- Object.defineProperty(UpdateTailsStakingRegistryConfigEvent, "p", {
2179
- get: function () {
2180
- return UpdateTailsStakingRegistryConfigEvent.phantom();
2181
- },
2182
- enumerable: false,
2183
- configurable: true
2184
- });
2185
- Object.defineProperty(UpdateTailsStakingRegistryConfigEvent, "bcs", {
2186
- get: function () {
2187
- return bcs_1.bcs.struct("UpdateTailsStakingRegistryConfigEvent", {
2188
- index: bcs_1.bcs.u64(),
2189
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
2190
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
2191
- });
2192
- },
2193
- enumerable: false,
2194
- configurable: true
2195
- });
2196
- UpdateTailsStakingRegistryConfigEvent.fromFields = function (fields) {
2197
- return UpdateTailsStakingRegistryConfigEvent.reified().new({
2198
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
2199
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
2200
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
2201
- });
2202
- };
2203
- UpdateTailsStakingRegistryConfigEvent.fromFieldsWithTypes = function (item) {
2204
- if (!isUpdateTailsStakingRegistryConfigEvent(item.type)) {
2205
- throw new Error("not a UpdateTailsStakingRegistryConfigEvent type");
2206
- }
2207
- return UpdateTailsStakingRegistryConfigEvent.reified().new({
2208
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
2209
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
2210
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
2211
- });
2212
- };
2213
- UpdateTailsStakingRegistryConfigEvent.fromBcs = function (data) {
2214
- return UpdateTailsStakingRegistryConfigEvent.fromFields(UpdateTailsStakingRegistryConfigEvent.bcs.parse(data));
2215
- };
2216
- UpdateTailsStakingRegistryConfigEvent.prototype.toJSONField = function () {
2217
- return {
2218
- index: this.index.toString(),
2219
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
2220
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
2221
- };
2222
- };
2223
- UpdateTailsStakingRegistryConfigEvent.prototype.toJSON = function () {
2224
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
2225
- };
2226
- UpdateTailsStakingRegistryConfigEvent.fromJSONField = function (field) {
2227
- return UpdateTailsStakingRegistryConfigEvent.reified().new({
2228
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
2229
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
2230
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
2231
- });
2232
- };
2233
- UpdateTailsStakingRegistryConfigEvent.fromJSON = function (json) {
2234
- if (json.$typeName !== UpdateTailsStakingRegistryConfigEvent.$typeName) {
2235
- throw new Error("not a WithTwoGenerics json object");
2236
- }
2237
- return UpdateTailsStakingRegistryConfigEvent.fromJSONField(json);
2238
- };
2239
- UpdateTailsStakingRegistryConfigEvent.fromSuiParsedData = function (content) {
2240
- if (content.dataType !== "moveObject") {
2241
- throw new Error("not an object");
2242
- }
2243
- if (!isUpdateTailsStakingRegistryConfigEvent(content.type)) {
2244
- throw new Error("object at ".concat(content.fields.id, " is not a UpdateTailsStakingRegistryConfigEvent object"));
2245
- }
2246
- return UpdateTailsStakingRegistryConfigEvent.fromFieldsWithTypes(content);
2247
- };
2248
- UpdateTailsStakingRegistryConfigEvent.fromSuiObjectData = function (data) {
2249
- if (data.bcs) {
2250
- if (data.bcs.dataType !== "moveObject" || !isUpdateTailsStakingRegistryConfigEvent(data.bcs.type)) {
2251
- throw new Error("object at is not a UpdateTailsStakingRegistryConfigEvent object");
2252
- }
2253
- return UpdateTailsStakingRegistryConfigEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2254
- }
2255
- if (data.content) {
2256
- return UpdateTailsStakingRegistryConfigEvent.fromSuiParsedData(data.content);
2257
- }
2258
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2259
- };
2260
- UpdateTailsStakingRegistryConfigEvent.fetch = function (client, id) {
2261
- return __awaiter(this, void 0, void 0, function () {
2262
- var res;
2263
- var _a, _b;
2264
- return __generator(this, function (_c) {
2265
- switch (_c.label) {
2266
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2267
- case 1:
2268
- res = _c.sent();
2269
- if (res.error) {
2270
- throw new Error("error fetching UpdateTailsStakingRegistryConfigEvent object at id ".concat(id, ": ").concat(res.error.code));
2271
- }
2272
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateTailsStakingRegistryConfigEvent(res.data.bcs.type)) {
2273
- throw new Error("object at id ".concat(id, " is not a UpdateTailsStakingRegistryConfigEvent object"));
2274
- }
2275
- return [2 /*return*/, UpdateTailsStakingRegistryConfigEvent.fromSuiObjectData(res.data)];
2276
- }
2277
- });
2278
- });
2279
- };
2280
- UpdateTailsStakingRegistryConfigEvent.$typeName = "".concat(index_1.PKG_V6, "::tails_staking::UpdateTailsStakingRegistryConfigEvent");
2281
- UpdateTailsStakingRegistryConfigEvent.$numTypeParams = 0;
2282
- UpdateTailsStakingRegistryConfigEvent.$isPhantom = [];
2283
- return UpdateTailsStakingRegistryConfigEvent;
2284
- }());
2285
- exports.UpdateTailsStakingRegistryConfigEvent = UpdateTailsStakingRegistryConfigEvent;