@typus/typus-perp-sdk 1.0.0 → 1.0.2

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