@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,1259 +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.TakeSharedFeeEvent = exports.TakeFeeEvent = exports.RemoveSharedFeePoolAuthorizedUserEvent = exports.RemoveFeePoolAuthorizedUserEvent = exports.AddSharedFeePoolAuthorizedUserEvent = exports.AddFeePoolAuthorizedUserEvent = exports.SendFeeEvent = void 0;
109
- exports.isSendFeeEvent = isSendFeeEvent;
110
- exports.isAddFeePoolAuthorizedUserEvent = isAddFeePoolAuthorizedUserEvent;
111
- exports.isAddSharedFeePoolAuthorizedUserEvent = isAddSharedFeePoolAuthorizedUserEvent;
112
- exports.isRemoveFeePoolAuthorizedUserEvent = isRemoveFeePoolAuthorizedUserEvent;
113
- exports.isRemoveSharedFeePoolAuthorizedUserEvent = isRemoveSharedFeePoolAuthorizedUserEvent;
114
- exports.isTakeFeeEvent = isTakeFeeEvent;
115
- exports.isTakeSharedFeeEvent = isTakeSharedFeeEvent;
116
- var reified = __importStar(require("../../../../_framework/reified"));
117
- var reified_1 = require("../../../../_framework/reified");
118
- var util_1 = require("../../../../_framework/util");
119
- var structs_1 = require("../../0x1/type-name/structs");
120
- var index_1 = require("../index");
121
- var bcs_1 = require("@mysten/sui/bcs");
122
- var utils_1 = require("@mysten/sui/utils");
123
- /* ============================== SendFeeEvent =============================== */
124
- function isSendFeeEvent(type) {
125
- type = (0, util_1.compressSuiType)(type);
126
- return type === "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::SendFeeEvent");
127
- }
128
- var SendFeeEvent = /** @class */ (function () {
129
- function SendFeeEvent(typeArgs, fields) {
130
- this.__StructClass = true;
131
- this.$typeName = SendFeeEvent.$typeName;
132
- this.$isPhantom = SendFeeEvent.$isPhantom;
133
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([SendFeeEvent.$typeName], __read(typeArgs), false));
134
- this.$typeArgs = typeArgs;
135
- this.signer = fields.signer;
136
- this.token = fields.token;
137
- this.amount = fields.amount;
138
- this.recipient = fields.recipient;
139
- }
140
- SendFeeEvent.reified = function () {
141
- var _this = this;
142
- return {
143
- typeName: SendFeeEvent.$typeName,
144
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([SendFeeEvent.$typeName], [], false)),
145
- typeArgs: [],
146
- isPhantom: SendFeeEvent.$isPhantom,
147
- reifiedTypeArgs: [],
148
- fromFields: function (fields) { return SendFeeEvent.fromFields(fields); },
149
- fromFieldsWithTypes: function (item) { return SendFeeEvent.fromFieldsWithTypes(item); },
150
- fromBcs: function (data) { return SendFeeEvent.fromBcs(data); },
151
- bcs: SendFeeEvent.bcs,
152
- fromJSONField: function (field) { return SendFeeEvent.fromJSONField(field); },
153
- fromJSON: function (json) { return SendFeeEvent.fromJSON(json); },
154
- fromSuiParsedData: function (content) { return SendFeeEvent.fromSuiParsedData(content); },
155
- fromSuiObjectData: function (content) { return SendFeeEvent.fromSuiObjectData(content); },
156
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
157
- return [2 /*return*/, SendFeeEvent.fetch(client, id)];
158
- }); }); },
159
- new: function (fields) {
160
- return new SendFeeEvent([], fields);
161
- },
162
- kind: "StructClassReified",
163
- };
164
- };
165
- Object.defineProperty(SendFeeEvent, "r", {
166
- get: function () {
167
- return SendFeeEvent.reified();
168
- },
169
- enumerable: false,
170
- configurable: true
171
- });
172
- SendFeeEvent.phantom = function () {
173
- return (0, reified_1.phantom)(SendFeeEvent.reified());
174
- };
175
- Object.defineProperty(SendFeeEvent, "p", {
176
- get: function () {
177
- return SendFeeEvent.phantom();
178
- },
179
- enumerable: false,
180
- configurable: true
181
- });
182
- Object.defineProperty(SendFeeEvent, "bcs", {
183
- get: function () {
184
- return bcs_1.bcs.struct("SendFeeEvent", {
185
- signer: bcs_1.bcs.bytes(32).transform({
186
- input: function (val) { return (0, utils_1.fromHEX)(val); },
187
- output: function (val) { return (0, utils_1.toHEX)(val); },
188
- }),
189
- token: structs_1.TypeName.bcs,
190
- amount: bcs_1.bcs.u64(),
191
- recipient: bcs_1.bcs.bytes(32).transform({
192
- input: function (val) { return (0, utils_1.fromHEX)(val); },
193
- output: function (val) { return (0, utils_1.toHEX)(val); },
194
- }),
195
- });
196
- },
197
- enumerable: false,
198
- configurable: true
199
- });
200
- SendFeeEvent.fromFields = function (fields) {
201
- return SendFeeEvent.reified().new({
202
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
203
- token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
204
- amount: (0, reified_1.decodeFromFields)("u64", fields.amount),
205
- recipient: (0, reified_1.decodeFromFields)("address", fields.recipient),
206
- });
207
- };
208
- SendFeeEvent.fromFieldsWithTypes = function (item) {
209
- if (!isSendFeeEvent(item.type)) {
210
- throw new Error("not a SendFeeEvent type");
211
- }
212
- return SendFeeEvent.reified().new({
213
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
214
- token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
215
- amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount),
216
- recipient: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.recipient),
217
- });
218
- };
219
- SendFeeEvent.fromBcs = function (data) {
220
- return SendFeeEvent.fromFields(SendFeeEvent.bcs.parse(data));
221
- };
222
- SendFeeEvent.prototype.toJSONField = function () {
223
- return {
224
- signer: this.signer,
225
- token: this.token.toJSONField(),
226
- amount: this.amount.toString(),
227
- recipient: this.recipient,
228
- };
229
- };
230
- SendFeeEvent.prototype.toJSON = function () {
231
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
232
- };
233
- SendFeeEvent.fromJSONField = function (field) {
234
- return SendFeeEvent.reified().new({
235
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
236
- token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
237
- amount: (0, reified_1.decodeFromJSONField)("u64", field.amount),
238
- recipient: (0, reified_1.decodeFromJSONField)("address", field.recipient),
239
- });
240
- };
241
- SendFeeEvent.fromJSON = function (json) {
242
- if (json.$typeName !== SendFeeEvent.$typeName) {
243
- throw new Error("not a WithTwoGenerics json object");
244
- }
245
- return SendFeeEvent.fromJSONField(json);
246
- };
247
- SendFeeEvent.fromSuiParsedData = function (content) {
248
- if (content.dataType !== "moveObject") {
249
- throw new Error("not an object");
250
- }
251
- if (!isSendFeeEvent(content.type)) {
252
- throw new Error("object at ".concat(content.fields.id, " is not a SendFeeEvent object"));
253
- }
254
- return SendFeeEvent.fromFieldsWithTypes(content);
255
- };
256
- SendFeeEvent.fromSuiObjectData = function (data) {
257
- if (data.bcs) {
258
- if (data.bcs.dataType !== "moveObject" || !isSendFeeEvent(data.bcs.type)) {
259
- throw new Error("object at is not a SendFeeEvent object");
260
- }
261
- return SendFeeEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
262
- }
263
- if (data.content) {
264
- return SendFeeEvent.fromSuiParsedData(data.content);
265
- }
266
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
267
- };
268
- SendFeeEvent.fetch = function (client, id) {
269
- return __awaiter(this, void 0, void 0, function () {
270
- var res;
271
- var _a, _b;
272
- return __generator(this, function (_c) {
273
- switch (_c.label) {
274
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
275
- case 1:
276
- res = _c.sent();
277
- if (res.error) {
278
- throw new Error("error fetching SendFeeEvent object at id ".concat(id, ": ").concat(res.error.code));
279
- }
280
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isSendFeeEvent(res.data.bcs.type)) {
281
- throw new Error("object at id ".concat(id, " is not a SendFeeEvent object"));
282
- }
283
- return [2 /*return*/, SendFeeEvent.fromSuiObjectData(res.data)];
284
- }
285
- });
286
- });
287
- };
288
- SendFeeEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::SendFeeEvent");
289
- SendFeeEvent.$numTypeParams = 0;
290
- SendFeeEvent.$isPhantom = [];
291
- return SendFeeEvent;
292
- }());
293
- exports.SendFeeEvent = SendFeeEvent;
294
- /* ============================== AddFeePoolAuthorizedUserEvent =============================== */
295
- function isAddFeePoolAuthorizedUserEvent(type) {
296
- type = (0, util_1.compressSuiType)(type);
297
- return type === "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::AddFeePoolAuthorizedUserEvent");
298
- }
299
- var AddFeePoolAuthorizedUserEvent = /** @class */ (function () {
300
- function AddFeePoolAuthorizedUserEvent(typeArgs, fields) {
301
- this.__StructClass = true;
302
- this.$typeName = AddFeePoolAuthorizedUserEvent.$typeName;
303
- this.$isPhantom = AddFeePoolAuthorizedUserEvent.$isPhantom;
304
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AddFeePoolAuthorizedUserEvent.$typeName], __read(typeArgs), false));
305
- this.$typeArgs = typeArgs;
306
- this.signer = fields.signer;
307
- this.users = fields.users;
308
- }
309
- AddFeePoolAuthorizedUserEvent.reified = function () {
310
- var _this = this;
311
- return {
312
- typeName: AddFeePoolAuthorizedUserEvent.$typeName,
313
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AddFeePoolAuthorizedUserEvent.$typeName], [], false)),
314
- typeArgs: [],
315
- isPhantom: AddFeePoolAuthorizedUserEvent.$isPhantom,
316
- reifiedTypeArgs: [],
317
- fromFields: function (fields) { return AddFeePoolAuthorizedUserEvent.fromFields(fields); },
318
- fromFieldsWithTypes: function (item) { return AddFeePoolAuthorizedUserEvent.fromFieldsWithTypes(item); },
319
- fromBcs: function (data) { return AddFeePoolAuthorizedUserEvent.fromBcs(data); },
320
- bcs: AddFeePoolAuthorizedUserEvent.bcs,
321
- fromJSONField: function (field) { return AddFeePoolAuthorizedUserEvent.fromJSONField(field); },
322
- fromJSON: function (json) { return AddFeePoolAuthorizedUserEvent.fromJSON(json); },
323
- fromSuiParsedData: function (content) { return AddFeePoolAuthorizedUserEvent.fromSuiParsedData(content); },
324
- fromSuiObjectData: function (content) { return AddFeePoolAuthorizedUserEvent.fromSuiObjectData(content); },
325
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
326
- return [2 /*return*/, AddFeePoolAuthorizedUserEvent.fetch(client, id)];
327
- }); }); },
328
- new: function (fields) {
329
- return new AddFeePoolAuthorizedUserEvent([], fields);
330
- },
331
- kind: "StructClassReified",
332
- };
333
- };
334
- Object.defineProperty(AddFeePoolAuthorizedUserEvent, "r", {
335
- get: function () {
336
- return AddFeePoolAuthorizedUserEvent.reified();
337
- },
338
- enumerable: false,
339
- configurable: true
340
- });
341
- AddFeePoolAuthorizedUserEvent.phantom = function () {
342
- return (0, reified_1.phantom)(AddFeePoolAuthorizedUserEvent.reified());
343
- };
344
- Object.defineProperty(AddFeePoolAuthorizedUserEvent, "p", {
345
- get: function () {
346
- return AddFeePoolAuthorizedUserEvent.phantom();
347
- },
348
- enumerable: false,
349
- configurable: true
350
- });
351
- Object.defineProperty(AddFeePoolAuthorizedUserEvent, "bcs", {
352
- get: function () {
353
- return bcs_1.bcs.struct("AddFeePoolAuthorizedUserEvent", {
354
- signer: bcs_1.bcs.bytes(32).transform({
355
- input: function (val) { return (0, utils_1.fromHEX)(val); },
356
- output: function (val) { return (0, utils_1.toHEX)(val); },
357
- }),
358
- users: bcs_1.bcs.vector(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
- });
363
- },
364
- enumerable: false,
365
- configurable: true
366
- });
367
- AddFeePoolAuthorizedUserEvent.fromFields = function (fields) {
368
- return AddFeePoolAuthorizedUserEvent.reified().new({
369
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
370
- users: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.users),
371
- });
372
- };
373
- AddFeePoolAuthorizedUserEvent.fromFieldsWithTypes = function (item) {
374
- if (!isAddFeePoolAuthorizedUserEvent(item.type)) {
375
- throw new Error("not a AddFeePoolAuthorizedUserEvent type");
376
- }
377
- return AddFeePoolAuthorizedUserEvent.reified().new({
378
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
379
- users: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.users),
380
- });
381
- };
382
- AddFeePoolAuthorizedUserEvent.fromBcs = function (data) {
383
- return AddFeePoolAuthorizedUserEvent.fromFields(AddFeePoolAuthorizedUserEvent.bcs.parse(data));
384
- };
385
- AddFeePoolAuthorizedUserEvent.prototype.toJSONField = function () {
386
- return {
387
- signer: this.signer,
388
- users: (0, reified_1.fieldToJSON)("vector<address>", this.users),
389
- };
390
- };
391
- AddFeePoolAuthorizedUserEvent.prototype.toJSON = function () {
392
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
393
- };
394
- AddFeePoolAuthorizedUserEvent.fromJSONField = function (field) {
395
- return AddFeePoolAuthorizedUserEvent.reified().new({
396
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
397
- users: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.users),
398
- });
399
- };
400
- AddFeePoolAuthorizedUserEvent.fromJSON = function (json) {
401
- if (json.$typeName !== AddFeePoolAuthorizedUserEvent.$typeName) {
402
- throw new Error("not a WithTwoGenerics json object");
403
- }
404
- return AddFeePoolAuthorizedUserEvent.fromJSONField(json);
405
- };
406
- AddFeePoolAuthorizedUserEvent.fromSuiParsedData = function (content) {
407
- if (content.dataType !== "moveObject") {
408
- throw new Error("not an object");
409
- }
410
- if (!isAddFeePoolAuthorizedUserEvent(content.type)) {
411
- throw new Error("object at ".concat(content.fields.id, " is not a AddFeePoolAuthorizedUserEvent object"));
412
- }
413
- return AddFeePoolAuthorizedUserEvent.fromFieldsWithTypes(content);
414
- };
415
- AddFeePoolAuthorizedUserEvent.fromSuiObjectData = function (data) {
416
- if (data.bcs) {
417
- if (data.bcs.dataType !== "moveObject" || !isAddFeePoolAuthorizedUserEvent(data.bcs.type)) {
418
- throw new Error("object at is not a AddFeePoolAuthorizedUserEvent object");
419
- }
420
- return AddFeePoolAuthorizedUserEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
421
- }
422
- if (data.content) {
423
- return AddFeePoolAuthorizedUserEvent.fromSuiParsedData(data.content);
424
- }
425
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
426
- };
427
- AddFeePoolAuthorizedUserEvent.fetch = function (client, id) {
428
- return __awaiter(this, void 0, void 0, function () {
429
- var res;
430
- var _a, _b;
431
- return __generator(this, function (_c) {
432
- switch (_c.label) {
433
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
434
- case 1:
435
- res = _c.sent();
436
- if (res.error) {
437
- throw new Error("error fetching AddFeePoolAuthorizedUserEvent object at id ".concat(id, ": ").concat(res.error.code));
438
- }
439
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAddFeePoolAuthorizedUserEvent(res.data.bcs.type)) {
440
- throw new Error("object at id ".concat(id, " is not a AddFeePoolAuthorizedUserEvent object"));
441
- }
442
- return [2 /*return*/, AddFeePoolAuthorizedUserEvent.fromSuiObjectData(res.data)];
443
- }
444
- });
445
- });
446
- };
447
- AddFeePoolAuthorizedUserEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::AddFeePoolAuthorizedUserEvent");
448
- AddFeePoolAuthorizedUserEvent.$numTypeParams = 0;
449
- AddFeePoolAuthorizedUserEvent.$isPhantom = [];
450
- return AddFeePoolAuthorizedUserEvent;
451
- }());
452
- exports.AddFeePoolAuthorizedUserEvent = AddFeePoolAuthorizedUserEvent;
453
- /* ============================== AddSharedFeePoolAuthorizedUserEvent =============================== */
454
- function isAddSharedFeePoolAuthorizedUserEvent(type) {
455
- type = (0, util_1.compressSuiType)(type);
456
- return type === "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::AddSharedFeePoolAuthorizedUserEvent");
457
- }
458
- var AddSharedFeePoolAuthorizedUserEvent = /** @class */ (function () {
459
- function AddSharedFeePoolAuthorizedUserEvent(typeArgs, fields) {
460
- this.__StructClass = true;
461
- this.$typeName = AddSharedFeePoolAuthorizedUserEvent.$typeName;
462
- this.$isPhantom = AddSharedFeePoolAuthorizedUserEvent.$isPhantom;
463
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AddSharedFeePoolAuthorizedUserEvent.$typeName], __read(typeArgs), false));
464
- this.$typeArgs = typeArgs;
465
- this.signer = fields.signer;
466
- this.users = fields.users;
467
- }
468
- AddSharedFeePoolAuthorizedUserEvent.reified = function () {
469
- var _this = this;
470
- return {
471
- typeName: AddSharedFeePoolAuthorizedUserEvent.$typeName,
472
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AddSharedFeePoolAuthorizedUserEvent.$typeName], [], false)),
473
- typeArgs: [],
474
- isPhantom: AddSharedFeePoolAuthorizedUserEvent.$isPhantom,
475
- reifiedTypeArgs: [],
476
- fromFields: function (fields) { return AddSharedFeePoolAuthorizedUserEvent.fromFields(fields); },
477
- fromFieldsWithTypes: function (item) { return AddSharedFeePoolAuthorizedUserEvent.fromFieldsWithTypes(item); },
478
- fromBcs: function (data) { return AddSharedFeePoolAuthorizedUserEvent.fromBcs(data); },
479
- bcs: AddSharedFeePoolAuthorizedUserEvent.bcs,
480
- fromJSONField: function (field) { return AddSharedFeePoolAuthorizedUserEvent.fromJSONField(field); },
481
- fromJSON: function (json) { return AddSharedFeePoolAuthorizedUserEvent.fromJSON(json); },
482
- fromSuiParsedData: function (content) { return AddSharedFeePoolAuthorizedUserEvent.fromSuiParsedData(content); },
483
- fromSuiObjectData: function (content) { return AddSharedFeePoolAuthorizedUserEvent.fromSuiObjectData(content); },
484
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
485
- return [2 /*return*/, AddSharedFeePoolAuthorizedUserEvent.fetch(client, id)];
486
- }); }); },
487
- new: function (fields) {
488
- return new AddSharedFeePoolAuthorizedUserEvent([], fields);
489
- },
490
- kind: "StructClassReified",
491
- };
492
- };
493
- Object.defineProperty(AddSharedFeePoolAuthorizedUserEvent, "r", {
494
- get: function () {
495
- return AddSharedFeePoolAuthorizedUserEvent.reified();
496
- },
497
- enumerable: false,
498
- configurable: true
499
- });
500
- AddSharedFeePoolAuthorizedUserEvent.phantom = function () {
501
- return (0, reified_1.phantom)(AddSharedFeePoolAuthorizedUserEvent.reified());
502
- };
503
- Object.defineProperty(AddSharedFeePoolAuthorizedUserEvent, "p", {
504
- get: function () {
505
- return AddSharedFeePoolAuthorizedUserEvent.phantom();
506
- },
507
- enumerable: false,
508
- configurable: true
509
- });
510
- Object.defineProperty(AddSharedFeePoolAuthorizedUserEvent, "bcs", {
511
- get: function () {
512
- return bcs_1.bcs.struct("AddSharedFeePoolAuthorizedUserEvent", {
513
- signer: bcs_1.bcs.bytes(32).transform({
514
- input: function (val) { return (0, utils_1.fromHEX)(val); },
515
- output: function (val) { return (0, utils_1.toHEX)(val); },
516
- }),
517
- users: bcs_1.bcs.vector(bcs_1.bcs.bytes(32).transform({
518
- input: function (val) { return (0, utils_1.fromHEX)(val); },
519
- output: function (val) { return (0, utils_1.toHEX)(val); },
520
- })),
521
- });
522
- },
523
- enumerable: false,
524
- configurable: true
525
- });
526
- AddSharedFeePoolAuthorizedUserEvent.fromFields = function (fields) {
527
- return AddSharedFeePoolAuthorizedUserEvent.reified().new({
528
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
529
- users: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.users),
530
- });
531
- };
532
- AddSharedFeePoolAuthorizedUserEvent.fromFieldsWithTypes = function (item) {
533
- if (!isAddSharedFeePoolAuthorizedUserEvent(item.type)) {
534
- throw new Error("not a AddSharedFeePoolAuthorizedUserEvent type");
535
- }
536
- return AddSharedFeePoolAuthorizedUserEvent.reified().new({
537
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
538
- users: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.users),
539
- });
540
- };
541
- AddSharedFeePoolAuthorizedUserEvent.fromBcs = function (data) {
542
- return AddSharedFeePoolAuthorizedUserEvent.fromFields(AddSharedFeePoolAuthorizedUserEvent.bcs.parse(data));
543
- };
544
- AddSharedFeePoolAuthorizedUserEvent.prototype.toJSONField = function () {
545
- return {
546
- signer: this.signer,
547
- users: (0, reified_1.fieldToJSON)("vector<address>", this.users),
548
- };
549
- };
550
- AddSharedFeePoolAuthorizedUserEvent.prototype.toJSON = function () {
551
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
552
- };
553
- AddSharedFeePoolAuthorizedUserEvent.fromJSONField = function (field) {
554
- return AddSharedFeePoolAuthorizedUserEvent.reified().new({
555
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
556
- users: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.users),
557
- });
558
- };
559
- AddSharedFeePoolAuthorizedUserEvent.fromJSON = function (json) {
560
- if (json.$typeName !== AddSharedFeePoolAuthorizedUserEvent.$typeName) {
561
- throw new Error("not a WithTwoGenerics json object");
562
- }
563
- return AddSharedFeePoolAuthorizedUserEvent.fromJSONField(json);
564
- };
565
- AddSharedFeePoolAuthorizedUserEvent.fromSuiParsedData = function (content) {
566
- if (content.dataType !== "moveObject") {
567
- throw new Error("not an object");
568
- }
569
- if (!isAddSharedFeePoolAuthorizedUserEvent(content.type)) {
570
- throw new Error("object at ".concat(content.fields.id, " is not a AddSharedFeePoolAuthorizedUserEvent object"));
571
- }
572
- return AddSharedFeePoolAuthorizedUserEvent.fromFieldsWithTypes(content);
573
- };
574
- AddSharedFeePoolAuthorizedUserEvent.fromSuiObjectData = function (data) {
575
- if (data.bcs) {
576
- if (data.bcs.dataType !== "moveObject" || !isAddSharedFeePoolAuthorizedUserEvent(data.bcs.type)) {
577
- throw new Error("object at is not a AddSharedFeePoolAuthorizedUserEvent object");
578
- }
579
- return AddSharedFeePoolAuthorizedUserEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
580
- }
581
- if (data.content) {
582
- return AddSharedFeePoolAuthorizedUserEvent.fromSuiParsedData(data.content);
583
- }
584
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
585
- };
586
- AddSharedFeePoolAuthorizedUserEvent.fetch = function (client, id) {
587
- return __awaiter(this, void 0, void 0, function () {
588
- var res;
589
- var _a, _b;
590
- return __generator(this, function (_c) {
591
- switch (_c.label) {
592
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
593
- case 1:
594
- res = _c.sent();
595
- if (res.error) {
596
- throw new Error("error fetching AddSharedFeePoolAuthorizedUserEvent object at id ".concat(id, ": ").concat(res.error.code));
597
- }
598
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAddSharedFeePoolAuthorizedUserEvent(res.data.bcs.type)) {
599
- throw new Error("object at id ".concat(id, " is not a AddSharedFeePoolAuthorizedUserEvent object"));
600
- }
601
- return [2 /*return*/, AddSharedFeePoolAuthorizedUserEvent.fromSuiObjectData(res.data)];
602
- }
603
- });
604
- });
605
- };
606
- AddSharedFeePoolAuthorizedUserEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::AddSharedFeePoolAuthorizedUserEvent");
607
- AddSharedFeePoolAuthorizedUserEvent.$numTypeParams = 0;
608
- AddSharedFeePoolAuthorizedUserEvent.$isPhantom = [];
609
- return AddSharedFeePoolAuthorizedUserEvent;
610
- }());
611
- exports.AddSharedFeePoolAuthorizedUserEvent = AddSharedFeePoolAuthorizedUserEvent;
612
- /* ============================== RemoveFeePoolAuthorizedUserEvent =============================== */
613
- function isRemoveFeePoolAuthorizedUserEvent(type) {
614
- type = (0, util_1.compressSuiType)(type);
615
- return type === "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::RemoveFeePoolAuthorizedUserEvent");
616
- }
617
- var RemoveFeePoolAuthorizedUserEvent = /** @class */ (function () {
618
- function RemoveFeePoolAuthorizedUserEvent(typeArgs, fields) {
619
- this.__StructClass = true;
620
- this.$typeName = RemoveFeePoolAuthorizedUserEvent.$typeName;
621
- this.$isPhantom = RemoveFeePoolAuthorizedUserEvent.$isPhantom;
622
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemoveFeePoolAuthorizedUserEvent.$typeName], __read(typeArgs), false));
623
- this.$typeArgs = typeArgs;
624
- this.signer = fields.signer;
625
- this.users = fields.users;
626
- }
627
- RemoveFeePoolAuthorizedUserEvent.reified = function () {
628
- var _this = this;
629
- return {
630
- typeName: RemoveFeePoolAuthorizedUserEvent.$typeName,
631
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemoveFeePoolAuthorizedUserEvent.$typeName], [], false)),
632
- typeArgs: [],
633
- isPhantom: RemoveFeePoolAuthorizedUserEvent.$isPhantom,
634
- reifiedTypeArgs: [],
635
- fromFields: function (fields) { return RemoveFeePoolAuthorizedUserEvent.fromFields(fields); },
636
- fromFieldsWithTypes: function (item) { return RemoveFeePoolAuthorizedUserEvent.fromFieldsWithTypes(item); },
637
- fromBcs: function (data) { return RemoveFeePoolAuthorizedUserEvent.fromBcs(data); },
638
- bcs: RemoveFeePoolAuthorizedUserEvent.bcs,
639
- fromJSONField: function (field) { return RemoveFeePoolAuthorizedUserEvent.fromJSONField(field); },
640
- fromJSON: function (json) { return RemoveFeePoolAuthorizedUserEvent.fromJSON(json); },
641
- fromSuiParsedData: function (content) { return RemoveFeePoolAuthorizedUserEvent.fromSuiParsedData(content); },
642
- fromSuiObjectData: function (content) { return RemoveFeePoolAuthorizedUserEvent.fromSuiObjectData(content); },
643
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
644
- return [2 /*return*/, RemoveFeePoolAuthorizedUserEvent.fetch(client, id)];
645
- }); }); },
646
- new: function (fields) {
647
- return new RemoveFeePoolAuthorizedUserEvent([], fields);
648
- },
649
- kind: "StructClassReified",
650
- };
651
- };
652
- Object.defineProperty(RemoveFeePoolAuthorizedUserEvent, "r", {
653
- get: function () {
654
- return RemoveFeePoolAuthorizedUserEvent.reified();
655
- },
656
- enumerable: false,
657
- configurable: true
658
- });
659
- RemoveFeePoolAuthorizedUserEvent.phantom = function () {
660
- return (0, reified_1.phantom)(RemoveFeePoolAuthorizedUserEvent.reified());
661
- };
662
- Object.defineProperty(RemoveFeePoolAuthorizedUserEvent, "p", {
663
- get: function () {
664
- return RemoveFeePoolAuthorizedUserEvent.phantom();
665
- },
666
- enumerable: false,
667
- configurable: true
668
- });
669
- Object.defineProperty(RemoveFeePoolAuthorizedUserEvent, "bcs", {
670
- get: function () {
671
- return bcs_1.bcs.struct("RemoveFeePoolAuthorizedUserEvent", {
672
- signer: bcs_1.bcs.bytes(32).transform({
673
- input: function (val) { return (0, utils_1.fromHEX)(val); },
674
- output: function (val) { return (0, utils_1.toHEX)(val); },
675
- }),
676
- users: bcs_1.bcs.vector(bcs_1.bcs.bytes(32).transform({
677
- input: function (val) { return (0, utils_1.fromHEX)(val); },
678
- output: function (val) { return (0, utils_1.toHEX)(val); },
679
- })),
680
- });
681
- },
682
- enumerable: false,
683
- configurable: true
684
- });
685
- RemoveFeePoolAuthorizedUserEvent.fromFields = function (fields) {
686
- return RemoveFeePoolAuthorizedUserEvent.reified().new({
687
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
688
- users: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.users),
689
- });
690
- };
691
- RemoveFeePoolAuthorizedUserEvent.fromFieldsWithTypes = function (item) {
692
- if (!isRemoveFeePoolAuthorizedUserEvent(item.type)) {
693
- throw new Error("not a RemoveFeePoolAuthorizedUserEvent type");
694
- }
695
- return RemoveFeePoolAuthorizedUserEvent.reified().new({
696
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
697
- users: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.users),
698
- });
699
- };
700
- RemoveFeePoolAuthorizedUserEvent.fromBcs = function (data) {
701
- return RemoveFeePoolAuthorizedUserEvent.fromFields(RemoveFeePoolAuthorizedUserEvent.bcs.parse(data));
702
- };
703
- RemoveFeePoolAuthorizedUserEvent.prototype.toJSONField = function () {
704
- return {
705
- signer: this.signer,
706
- users: (0, reified_1.fieldToJSON)("vector<address>", this.users),
707
- };
708
- };
709
- RemoveFeePoolAuthorizedUserEvent.prototype.toJSON = function () {
710
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
711
- };
712
- RemoveFeePoolAuthorizedUserEvent.fromJSONField = function (field) {
713
- return RemoveFeePoolAuthorizedUserEvent.reified().new({
714
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
715
- users: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.users),
716
- });
717
- };
718
- RemoveFeePoolAuthorizedUserEvent.fromJSON = function (json) {
719
- if (json.$typeName !== RemoveFeePoolAuthorizedUserEvent.$typeName) {
720
- throw new Error("not a WithTwoGenerics json object");
721
- }
722
- return RemoveFeePoolAuthorizedUserEvent.fromJSONField(json);
723
- };
724
- RemoveFeePoolAuthorizedUserEvent.fromSuiParsedData = function (content) {
725
- if (content.dataType !== "moveObject") {
726
- throw new Error("not an object");
727
- }
728
- if (!isRemoveFeePoolAuthorizedUserEvent(content.type)) {
729
- throw new Error("object at ".concat(content.fields.id, " is not a RemoveFeePoolAuthorizedUserEvent object"));
730
- }
731
- return RemoveFeePoolAuthorizedUserEvent.fromFieldsWithTypes(content);
732
- };
733
- RemoveFeePoolAuthorizedUserEvent.fromSuiObjectData = function (data) {
734
- if (data.bcs) {
735
- if (data.bcs.dataType !== "moveObject" || !isRemoveFeePoolAuthorizedUserEvent(data.bcs.type)) {
736
- throw new Error("object at is not a RemoveFeePoolAuthorizedUserEvent object");
737
- }
738
- return RemoveFeePoolAuthorizedUserEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
739
- }
740
- if (data.content) {
741
- return RemoveFeePoolAuthorizedUserEvent.fromSuiParsedData(data.content);
742
- }
743
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
744
- };
745
- RemoveFeePoolAuthorizedUserEvent.fetch = function (client, id) {
746
- return __awaiter(this, void 0, void 0, function () {
747
- var res;
748
- var _a, _b;
749
- return __generator(this, function (_c) {
750
- switch (_c.label) {
751
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
752
- case 1:
753
- res = _c.sent();
754
- if (res.error) {
755
- throw new Error("error fetching RemoveFeePoolAuthorizedUserEvent object at id ".concat(id, ": ").concat(res.error.code));
756
- }
757
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRemoveFeePoolAuthorizedUserEvent(res.data.bcs.type)) {
758
- throw new Error("object at id ".concat(id, " is not a RemoveFeePoolAuthorizedUserEvent object"));
759
- }
760
- return [2 /*return*/, RemoveFeePoolAuthorizedUserEvent.fromSuiObjectData(res.data)];
761
- }
762
- });
763
- });
764
- };
765
- RemoveFeePoolAuthorizedUserEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::RemoveFeePoolAuthorizedUserEvent");
766
- RemoveFeePoolAuthorizedUserEvent.$numTypeParams = 0;
767
- RemoveFeePoolAuthorizedUserEvent.$isPhantom = [];
768
- return RemoveFeePoolAuthorizedUserEvent;
769
- }());
770
- exports.RemoveFeePoolAuthorizedUserEvent = RemoveFeePoolAuthorizedUserEvent;
771
- /* ============================== RemoveSharedFeePoolAuthorizedUserEvent =============================== */
772
- function isRemoveSharedFeePoolAuthorizedUserEvent(type) {
773
- type = (0, util_1.compressSuiType)(type);
774
- return type === "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::RemoveSharedFeePoolAuthorizedUserEvent");
775
- }
776
- var RemoveSharedFeePoolAuthorizedUserEvent = /** @class */ (function () {
777
- function RemoveSharedFeePoolAuthorizedUserEvent(typeArgs, fields) {
778
- this.__StructClass = true;
779
- this.$typeName = RemoveSharedFeePoolAuthorizedUserEvent.$typeName;
780
- this.$isPhantom = RemoveSharedFeePoolAuthorizedUserEvent.$isPhantom;
781
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemoveSharedFeePoolAuthorizedUserEvent.$typeName], __read(typeArgs), false));
782
- this.$typeArgs = typeArgs;
783
- this.signer = fields.signer;
784
- this.users = fields.users;
785
- }
786
- RemoveSharedFeePoolAuthorizedUserEvent.reified = function () {
787
- var _this = this;
788
- return {
789
- typeName: RemoveSharedFeePoolAuthorizedUserEvent.$typeName,
790
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemoveSharedFeePoolAuthorizedUserEvent.$typeName], [], false)),
791
- typeArgs: [],
792
- isPhantom: RemoveSharedFeePoolAuthorizedUserEvent.$isPhantom,
793
- reifiedTypeArgs: [],
794
- fromFields: function (fields) { return RemoveSharedFeePoolAuthorizedUserEvent.fromFields(fields); },
795
- fromFieldsWithTypes: function (item) { return RemoveSharedFeePoolAuthorizedUserEvent.fromFieldsWithTypes(item); },
796
- fromBcs: function (data) { return RemoveSharedFeePoolAuthorizedUserEvent.fromBcs(data); },
797
- bcs: RemoveSharedFeePoolAuthorizedUserEvent.bcs,
798
- fromJSONField: function (field) { return RemoveSharedFeePoolAuthorizedUserEvent.fromJSONField(field); },
799
- fromJSON: function (json) { return RemoveSharedFeePoolAuthorizedUserEvent.fromJSON(json); },
800
- fromSuiParsedData: function (content) { return RemoveSharedFeePoolAuthorizedUserEvent.fromSuiParsedData(content); },
801
- fromSuiObjectData: function (content) { return RemoveSharedFeePoolAuthorizedUserEvent.fromSuiObjectData(content); },
802
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
803
- return [2 /*return*/, RemoveSharedFeePoolAuthorizedUserEvent.fetch(client, id)];
804
- }); }); },
805
- new: function (fields) {
806
- return new RemoveSharedFeePoolAuthorizedUserEvent([], fields);
807
- },
808
- kind: "StructClassReified",
809
- };
810
- };
811
- Object.defineProperty(RemoveSharedFeePoolAuthorizedUserEvent, "r", {
812
- get: function () {
813
- return RemoveSharedFeePoolAuthorizedUserEvent.reified();
814
- },
815
- enumerable: false,
816
- configurable: true
817
- });
818
- RemoveSharedFeePoolAuthorizedUserEvent.phantom = function () {
819
- return (0, reified_1.phantom)(RemoveSharedFeePoolAuthorizedUserEvent.reified());
820
- };
821
- Object.defineProperty(RemoveSharedFeePoolAuthorizedUserEvent, "p", {
822
- get: function () {
823
- return RemoveSharedFeePoolAuthorizedUserEvent.phantom();
824
- },
825
- enumerable: false,
826
- configurable: true
827
- });
828
- Object.defineProperty(RemoveSharedFeePoolAuthorizedUserEvent, "bcs", {
829
- get: function () {
830
- return bcs_1.bcs.struct("RemoveSharedFeePoolAuthorizedUserEvent", {
831
- signer: bcs_1.bcs.bytes(32).transform({
832
- input: function (val) { return (0, utils_1.fromHEX)(val); },
833
- output: function (val) { return (0, utils_1.toHEX)(val); },
834
- }),
835
- users: bcs_1.bcs.vector(bcs_1.bcs.bytes(32).transform({
836
- input: function (val) { return (0, utils_1.fromHEX)(val); },
837
- output: function (val) { return (0, utils_1.toHEX)(val); },
838
- })),
839
- });
840
- },
841
- enumerable: false,
842
- configurable: true
843
- });
844
- RemoveSharedFeePoolAuthorizedUserEvent.fromFields = function (fields) {
845
- return RemoveSharedFeePoolAuthorizedUserEvent.reified().new({
846
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
847
- users: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.users),
848
- });
849
- };
850
- RemoveSharedFeePoolAuthorizedUserEvent.fromFieldsWithTypes = function (item) {
851
- if (!isRemoveSharedFeePoolAuthorizedUserEvent(item.type)) {
852
- throw new Error("not a RemoveSharedFeePoolAuthorizedUserEvent type");
853
- }
854
- return RemoveSharedFeePoolAuthorizedUserEvent.reified().new({
855
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
856
- users: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.users),
857
- });
858
- };
859
- RemoveSharedFeePoolAuthorizedUserEvent.fromBcs = function (data) {
860
- return RemoveSharedFeePoolAuthorizedUserEvent.fromFields(RemoveSharedFeePoolAuthorizedUserEvent.bcs.parse(data));
861
- };
862
- RemoveSharedFeePoolAuthorizedUserEvent.prototype.toJSONField = function () {
863
- return {
864
- signer: this.signer,
865
- users: (0, reified_1.fieldToJSON)("vector<address>", this.users),
866
- };
867
- };
868
- RemoveSharedFeePoolAuthorizedUserEvent.prototype.toJSON = function () {
869
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
870
- };
871
- RemoveSharedFeePoolAuthorizedUserEvent.fromJSONField = function (field) {
872
- return RemoveSharedFeePoolAuthorizedUserEvent.reified().new({
873
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
874
- users: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.users),
875
- });
876
- };
877
- RemoveSharedFeePoolAuthorizedUserEvent.fromJSON = function (json) {
878
- if (json.$typeName !== RemoveSharedFeePoolAuthorizedUserEvent.$typeName) {
879
- throw new Error("not a WithTwoGenerics json object");
880
- }
881
- return RemoveSharedFeePoolAuthorizedUserEvent.fromJSONField(json);
882
- };
883
- RemoveSharedFeePoolAuthorizedUserEvent.fromSuiParsedData = function (content) {
884
- if (content.dataType !== "moveObject") {
885
- throw new Error("not an object");
886
- }
887
- if (!isRemoveSharedFeePoolAuthorizedUserEvent(content.type)) {
888
- throw new Error("object at ".concat(content.fields.id, " is not a RemoveSharedFeePoolAuthorizedUserEvent object"));
889
- }
890
- return RemoveSharedFeePoolAuthorizedUserEvent.fromFieldsWithTypes(content);
891
- };
892
- RemoveSharedFeePoolAuthorizedUserEvent.fromSuiObjectData = function (data) {
893
- if (data.bcs) {
894
- if (data.bcs.dataType !== "moveObject" || !isRemoveSharedFeePoolAuthorizedUserEvent(data.bcs.type)) {
895
- throw new Error("object at is not a RemoveSharedFeePoolAuthorizedUserEvent object");
896
- }
897
- return RemoveSharedFeePoolAuthorizedUserEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
898
- }
899
- if (data.content) {
900
- return RemoveSharedFeePoolAuthorizedUserEvent.fromSuiParsedData(data.content);
901
- }
902
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
903
- };
904
- RemoveSharedFeePoolAuthorizedUserEvent.fetch = function (client, id) {
905
- return __awaiter(this, void 0, void 0, function () {
906
- var res;
907
- var _a, _b;
908
- return __generator(this, function (_c) {
909
- switch (_c.label) {
910
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
911
- case 1:
912
- res = _c.sent();
913
- if (res.error) {
914
- throw new Error("error fetching RemoveSharedFeePoolAuthorizedUserEvent object at id ".concat(id, ": ").concat(res.error.code));
915
- }
916
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRemoveSharedFeePoolAuthorizedUserEvent(res.data.bcs.type)) {
917
- throw new Error("object at id ".concat(id, " is not a RemoveSharedFeePoolAuthorizedUserEvent object"));
918
- }
919
- return [2 /*return*/, RemoveSharedFeePoolAuthorizedUserEvent.fromSuiObjectData(res.data)];
920
- }
921
- });
922
- });
923
- };
924
- RemoveSharedFeePoolAuthorizedUserEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::RemoveSharedFeePoolAuthorizedUserEvent");
925
- RemoveSharedFeePoolAuthorizedUserEvent.$numTypeParams = 0;
926
- RemoveSharedFeePoolAuthorizedUserEvent.$isPhantom = [];
927
- return RemoveSharedFeePoolAuthorizedUserEvent;
928
- }());
929
- exports.RemoveSharedFeePoolAuthorizedUserEvent = RemoveSharedFeePoolAuthorizedUserEvent;
930
- /* ============================== TakeFeeEvent =============================== */
931
- function isTakeFeeEvent(type) {
932
- type = (0, util_1.compressSuiType)(type);
933
- return type === "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::TakeFeeEvent");
934
- }
935
- var TakeFeeEvent = /** @class */ (function () {
936
- function TakeFeeEvent(typeArgs, fields) {
937
- this.__StructClass = true;
938
- this.$typeName = TakeFeeEvent.$typeName;
939
- this.$isPhantom = TakeFeeEvent.$isPhantom;
940
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TakeFeeEvent.$typeName], __read(typeArgs), false));
941
- this.$typeArgs = typeArgs;
942
- this.signer = fields.signer;
943
- this.token = fields.token;
944
- this.amount = fields.amount;
945
- }
946
- TakeFeeEvent.reified = function () {
947
- var _this = this;
948
- return {
949
- typeName: TakeFeeEvent.$typeName,
950
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TakeFeeEvent.$typeName], [], false)),
951
- typeArgs: [],
952
- isPhantom: TakeFeeEvent.$isPhantom,
953
- reifiedTypeArgs: [],
954
- fromFields: function (fields) { return TakeFeeEvent.fromFields(fields); },
955
- fromFieldsWithTypes: function (item) { return TakeFeeEvent.fromFieldsWithTypes(item); },
956
- fromBcs: function (data) { return TakeFeeEvent.fromBcs(data); },
957
- bcs: TakeFeeEvent.bcs,
958
- fromJSONField: function (field) { return TakeFeeEvent.fromJSONField(field); },
959
- fromJSON: function (json) { return TakeFeeEvent.fromJSON(json); },
960
- fromSuiParsedData: function (content) { return TakeFeeEvent.fromSuiParsedData(content); },
961
- fromSuiObjectData: function (content) { return TakeFeeEvent.fromSuiObjectData(content); },
962
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
963
- return [2 /*return*/, TakeFeeEvent.fetch(client, id)];
964
- }); }); },
965
- new: function (fields) {
966
- return new TakeFeeEvent([], fields);
967
- },
968
- kind: "StructClassReified",
969
- };
970
- };
971
- Object.defineProperty(TakeFeeEvent, "r", {
972
- get: function () {
973
- return TakeFeeEvent.reified();
974
- },
975
- enumerable: false,
976
- configurable: true
977
- });
978
- TakeFeeEvent.phantom = function () {
979
- return (0, reified_1.phantom)(TakeFeeEvent.reified());
980
- };
981
- Object.defineProperty(TakeFeeEvent, "p", {
982
- get: function () {
983
- return TakeFeeEvent.phantom();
984
- },
985
- enumerable: false,
986
- configurable: true
987
- });
988
- Object.defineProperty(TakeFeeEvent, "bcs", {
989
- get: function () {
990
- return bcs_1.bcs.struct("TakeFeeEvent", {
991
- signer: bcs_1.bcs.bytes(32).transform({
992
- input: function (val) { return (0, utils_1.fromHEX)(val); },
993
- output: function (val) { return (0, utils_1.toHEX)(val); },
994
- }),
995
- token: structs_1.TypeName.bcs,
996
- amount: bcs_1.bcs.u64(),
997
- });
998
- },
999
- enumerable: false,
1000
- configurable: true
1001
- });
1002
- TakeFeeEvent.fromFields = function (fields) {
1003
- return TakeFeeEvent.reified().new({
1004
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1005
- token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
1006
- amount: (0, reified_1.decodeFromFields)("u64", fields.amount),
1007
- });
1008
- };
1009
- TakeFeeEvent.fromFieldsWithTypes = function (item) {
1010
- if (!isTakeFeeEvent(item.type)) {
1011
- throw new Error("not a TakeFeeEvent type");
1012
- }
1013
- return TakeFeeEvent.reified().new({
1014
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1015
- token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
1016
- amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount),
1017
- });
1018
- };
1019
- TakeFeeEvent.fromBcs = function (data) {
1020
- return TakeFeeEvent.fromFields(TakeFeeEvent.bcs.parse(data));
1021
- };
1022
- TakeFeeEvent.prototype.toJSONField = function () {
1023
- return {
1024
- signer: this.signer,
1025
- token: this.token.toJSONField(),
1026
- amount: this.amount.toString(),
1027
- };
1028
- };
1029
- TakeFeeEvent.prototype.toJSON = function () {
1030
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1031
- };
1032
- TakeFeeEvent.fromJSONField = function (field) {
1033
- return TakeFeeEvent.reified().new({
1034
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1035
- token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
1036
- amount: (0, reified_1.decodeFromJSONField)("u64", field.amount),
1037
- });
1038
- };
1039
- TakeFeeEvent.fromJSON = function (json) {
1040
- if (json.$typeName !== TakeFeeEvent.$typeName) {
1041
- throw new Error("not a WithTwoGenerics json object");
1042
- }
1043
- return TakeFeeEvent.fromJSONField(json);
1044
- };
1045
- TakeFeeEvent.fromSuiParsedData = function (content) {
1046
- if (content.dataType !== "moveObject") {
1047
- throw new Error("not an object");
1048
- }
1049
- if (!isTakeFeeEvent(content.type)) {
1050
- throw new Error("object at ".concat(content.fields.id, " is not a TakeFeeEvent object"));
1051
- }
1052
- return TakeFeeEvent.fromFieldsWithTypes(content);
1053
- };
1054
- TakeFeeEvent.fromSuiObjectData = function (data) {
1055
- if (data.bcs) {
1056
- if (data.bcs.dataType !== "moveObject" || !isTakeFeeEvent(data.bcs.type)) {
1057
- throw new Error("object at is not a TakeFeeEvent object");
1058
- }
1059
- return TakeFeeEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1060
- }
1061
- if (data.content) {
1062
- return TakeFeeEvent.fromSuiParsedData(data.content);
1063
- }
1064
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1065
- };
1066
- TakeFeeEvent.fetch = function (client, id) {
1067
- return __awaiter(this, void 0, void 0, function () {
1068
- var res;
1069
- var _a, _b;
1070
- return __generator(this, function (_c) {
1071
- switch (_c.label) {
1072
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1073
- case 1:
1074
- res = _c.sent();
1075
- if (res.error) {
1076
- throw new Error("error fetching TakeFeeEvent object at id ".concat(id, ": ").concat(res.error.code));
1077
- }
1078
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTakeFeeEvent(res.data.bcs.type)) {
1079
- throw new Error("object at id ".concat(id, " is not a TakeFeeEvent object"));
1080
- }
1081
- return [2 /*return*/, TakeFeeEvent.fromSuiObjectData(res.data)];
1082
- }
1083
- });
1084
- });
1085
- };
1086
- TakeFeeEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::TakeFeeEvent");
1087
- TakeFeeEvent.$numTypeParams = 0;
1088
- TakeFeeEvent.$isPhantom = [];
1089
- return TakeFeeEvent;
1090
- }());
1091
- exports.TakeFeeEvent = TakeFeeEvent;
1092
- /* ============================== TakeSharedFeeEvent =============================== */
1093
- function isTakeSharedFeeEvent(type) {
1094
- type = (0, util_1.compressSuiType)(type);
1095
- return type === "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::TakeSharedFeeEvent");
1096
- }
1097
- var TakeSharedFeeEvent = /** @class */ (function () {
1098
- function TakeSharedFeeEvent(typeArgs, fields) {
1099
- this.__StructClass = true;
1100
- this.$typeName = TakeSharedFeeEvent.$typeName;
1101
- this.$isPhantom = TakeSharedFeeEvent.$isPhantom;
1102
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TakeSharedFeeEvent.$typeName], __read(typeArgs), false));
1103
- this.$typeArgs = typeArgs;
1104
- this.signer = fields.signer;
1105
- this.key = fields.key;
1106
- this.token = fields.token;
1107
- this.amount = fields.amount;
1108
- }
1109
- TakeSharedFeeEvent.reified = function () {
1110
- var _this = this;
1111
- return {
1112
- typeName: TakeSharedFeeEvent.$typeName,
1113
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TakeSharedFeeEvent.$typeName], [], false)),
1114
- typeArgs: [],
1115
- isPhantom: TakeSharedFeeEvent.$isPhantom,
1116
- reifiedTypeArgs: [],
1117
- fromFields: function (fields) { return TakeSharedFeeEvent.fromFields(fields); },
1118
- fromFieldsWithTypes: function (item) { return TakeSharedFeeEvent.fromFieldsWithTypes(item); },
1119
- fromBcs: function (data) { return TakeSharedFeeEvent.fromBcs(data); },
1120
- bcs: TakeSharedFeeEvent.bcs,
1121
- fromJSONField: function (field) { return TakeSharedFeeEvent.fromJSONField(field); },
1122
- fromJSON: function (json) { return TakeSharedFeeEvent.fromJSON(json); },
1123
- fromSuiParsedData: function (content) { return TakeSharedFeeEvent.fromSuiParsedData(content); },
1124
- fromSuiObjectData: function (content) { return TakeSharedFeeEvent.fromSuiObjectData(content); },
1125
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1126
- return [2 /*return*/, TakeSharedFeeEvent.fetch(client, id)];
1127
- }); }); },
1128
- new: function (fields) {
1129
- return new TakeSharedFeeEvent([], fields);
1130
- },
1131
- kind: "StructClassReified",
1132
- };
1133
- };
1134
- Object.defineProperty(TakeSharedFeeEvent, "r", {
1135
- get: function () {
1136
- return TakeSharedFeeEvent.reified();
1137
- },
1138
- enumerable: false,
1139
- configurable: true
1140
- });
1141
- TakeSharedFeeEvent.phantom = function () {
1142
- return (0, reified_1.phantom)(TakeSharedFeeEvent.reified());
1143
- };
1144
- Object.defineProperty(TakeSharedFeeEvent, "p", {
1145
- get: function () {
1146
- return TakeSharedFeeEvent.phantom();
1147
- },
1148
- enumerable: false,
1149
- configurable: true
1150
- });
1151
- Object.defineProperty(TakeSharedFeeEvent, "bcs", {
1152
- get: function () {
1153
- return bcs_1.bcs.struct("TakeSharedFeeEvent", {
1154
- signer: bcs_1.bcs.bytes(32).transform({
1155
- input: function (val) { return (0, utils_1.fromHEX)(val); },
1156
- output: function (val) { return (0, utils_1.toHEX)(val); },
1157
- }),
1158
- key: bcs_1.bcs.vector(bcs_1.bcs.u8()),
1159
- token: structs_1.TypeName.bcs,
1160
- amount: bcs_1.bcs.u64(),
1161
- });
1162
- },
1163
- enumerable: false,
1164
- configurable: true
1165
- });
1166
- TakeSharedFeeEvent.fromFields = function (fields) {
1167
- return TakeSharedFeeEvent.reified().new({
1168
- signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1169
- key: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.key),
1170
- token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
1171
- amount: (0, reified_1.decodeFromFields)("u64", fields.amount),
1172
- });
1173
- };
1174
- TakeSharedFeeEvent.fromFieldsWithTypes = function (item) {
1175
- if (!isTakeSharedFeeEvent(item.type)) {
1176
- throw new Error("not a TakeSharedFeeEvent type");
1177
- }
1178
- return TakeSharedFeeEvent.reified().new({
1179
- signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1180
- key: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.key),
1181
- token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
1182
- amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount),
1183
- });
1184
- };
1185
- TakeSharedFeeEvent.fromBcs = function (data) {
1186
- return TakeSharedFeeEvent.fromFields(TakeSharedFeeEvent.bcs.parse(data));
1187
- };
1188
- TakeSharedFeeEvent.prototype.toJSONField = function () {
1189
- return {
1190
- signer: this.signer,
1191
- key: (0, reified_1.fieldToJSON)("vector<u8>", this.key),
1192
- token: this.token.toJSONField(),
1193
- amount: this.amount.toString(),
1194
- };
1195
- };
1196
- TakeSharedFeeEvent.prototype.toJSON = function () {
1197
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1198
- };
1199
- TakeSharedFeeEvent.fromJSONField = function (field) {
1200
- return TakeSharedFeeEvent.reified().new({
1201
- signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1202
- key: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.key),
1203
- token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
1204
- amount: (0, reified_1.decodeFromJSONField)("u64", field.amount),
1205
- });
1206
- };
1207
- TakeSharedFeeEvent.fromJSON = function (json) {
1208
- if (json.$typeName !== TakeSharedFeeEvent.$typeName) {
1209
- throw new Error("not a WithTwoGenerics json object");
1210
- }
1211
- return TakeSharedFeeEvent.fromJSONField(json);
1212
- };
1213
- TakeSharedFeeEvent.fromSuiParsedData = function (content) {
1214
- if (content.dataType !== "moveObject") {
1215
- throw new Error("not an object");
1216
- }
1217
- if (!isTakeSharedFeeEvent(content.type)) {
1218
- throw new Error("object at ".concat(content.fields.id, " is not a TakeSharedFeeEvent object"));
1219
- }
1220
- return TakeSharedFeeEvent.fromFieldsWithTypes(content);
1221
- };
1222
- TakeSharedFeeEvent.fromSuiObjectData = function (data) {
1223
- if (data.bcs) {
1224
- if (data.bcs.dataType !== "moveObject" || !isTakeSharedFeeEvent(data.bcs.type)) {
1225
- throw new Error("object at is not a TakeSharedFeeEvent object");
1226
- }
1227
- return TakeSharedFeeEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1228
- }
1229
- if (data.content) {
1230
- return TakeSharedFeeEvent.fromSuiParsedData(data.content);
1231
- }
1232
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1233
- };
1234
- TakeSharedFeeEvent.fetch = function (client, id) {
1235
- return __awaiter(this, void 0, void 0, function () {
1236
- var res;
1237
- var _a, _b;
1238
- return __generator(this, function (_c) {
1239
- switch (_c.label) {
1240
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1241
- case 1:
1242
- res = _c.sent();
1243
- if (res.error) {
1244
- throw new Error("error fetching TakeSharedFeeEvent object at id ".concat(id, ": ").concat(res.error.code));
1245
- }
1246
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTakeSharedFeeEvent(res.data.bcs.type)) {
1247
- throw new Error("object at id ".concat(id, " is not a TakeSharedFeeEvent object"));
1248
- }
1249
- return [2 /*return*/, TakeSharedFeeEvent.fromSuiObjectData(res.data)];
1250
- }
1251
- });
1252
- });
1253
- };
1254
- TakeSharedFeeEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_fee_pool_entry::TakeSharedFeeEvent");
1255
- TakeSharedFeeEvent.$numTypeParams = 0;
1256
- TakeSharedFeeEvent.$isPhantom = [];
1257
- return TakeSharedFeeEvent;
1258
- }());
1259
- exports.TakeSharedFeeEvent = TakeSharedFeeEvent;