@typus/typus-sdk 1.4.84 → 1.5.0

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