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