@typus/typus-sdk 1.4.84 → 1.5.1

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 (572) 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/token.js +3 -1
  32. package/dist/src/typus-dov-single-v2/history/user-history.d.ts +1 -1
  33. package/dist/src/typus-dov-single-v2/history/vault-history.d.ts +1 -2
  34. package/dist/src/typus-dov-single-v2/history/vault-history.js +1 -99
  35. package/dist/src/typus-dov-single-v2/token-user-entry.d.ts +13 -13
  36. package/dist/src/typus-dov-single-v2/token-user-entry.js +29 -29
  37. package/dist/src/typus-dov-single-v2/user-entry.d.ts +20 -20
  38. package/dist/src/typus-dov-single-v2/user-entry.js +61 -59
  39. package/dist/src/typus-dov-single-v2/view-function.js +55 -55
  40. package/dist/src/typus-launch/airdrop/authority-entry.d.ts +3 -3
  41. package/dist/src/typus-launch/airdrop/authority-entry.js +7 -7
  42. package/dist/src/typus-launch/airdrop/user-entry.d.ts +2 -2
  43. package/dist/src/typus-launch/airdrop/user-entry.js +2 -2
  44. package/dist/src/typus-launch/airdrop/view-function.d.ts +1 -0
  45. package/dist/src/typus-launch/airdrop/view-function.js +12 -10
  46. package/dist/src/typus-launch/auction/entry.d.ts +5 -5
  47. package/dist/src/typus-launch/auction/entry.js +4 -4
  48. package/dist/src/typus-launch/auction/view-function.js +17 -17
  49. package/dist/src/typus-launch/funding-vault/authority-entry.d.ts +11 -11
  50. package/dist/src/typus-launch/funding-vault/authority-entry.js +32 -24
  51. package/dist/src/typus-launch/funding-vault/user-entry.d.ts +3 -3
  52. package/dist/src/typus-launch/funding-vault/user-entry.js +6 -6
  53. package/dist/src/typus-launch/funding-vault/view-function.js +29 -29
  54. package/dist/src/typus-launch/improvement-proposal/authority-entry.d.ts +11 -9
  55. package/dist/src/typus-launch/improvement-proposal/authority-entry.js +23 -21
  56. package/dist/src/typus-launch/improvement-proposal/user-entry.d.ts +3 -3
  57. package/dist/src/typus-launch/improvement-proposal/user-entry.js +2 -2
  58. package/dist/src/typus-launch/improvement-proposal/view-function.d.ts +6 -1
  59. package/dist/src/typus-launch/improvement-proposal/view-function.js +51 -39
  60. package/dist/src/typus-launch/option-airdrop/authority-entry.d.ts +5 -5
  61. package/dist/src/typus-launch/option-airdrop/authority-entry.js +6 -6
  62. package/dist/src/typus-launch/ve-typus/authority-entry.d.ts +5 -5
  63. package/dist/src/typus-launch/ve-typus/authority-entry.js +10 -10
  64. package/dist/src/typus-launch/ve-typus/user-entry.d.ts +4 -4
  65. package/dist/src/typus-launch/ve-typus/user-entry.js +9 -6
  66. package/dist/src/typus-launch/ve-typus/view-function.js +20 -19
  67. package/dist/src/typus-nft/fetch.d.ts +2 -2
  68. package/dist/src/typus-nft/user-entry.d.ts +11 -11
  69. package/dist/src/typus-nft/user-entry.js +3 -3
  70. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/ascii/structs.d.ts +16 -6
  71. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/ascii/structs.js +161 -45
  72. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/bit-vector/structs.d.ts +10 -4
  73. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/bit-vector/structs.js +90 -25
  74. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/fixed-point32/structs.d.ts +8 -3
  75. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/fixed-point32/structs.js +84 -23
  76. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/index.d.ts +1 -0
  77. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/index.js +2 -1
  78. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/init.js +4 -0
  79. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/option/structs.d.ts +10 -4
  80. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/option/structs.js +94 -25
  81. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/string/structs.d.ts +10 -4
  82. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/string/structs.js +84 -23
  83. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/type-name/structs.d.ts +8 -3
  84. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/type-name/structs.js +84 -23
  85. package/dist/src/typus-perp/_dependencies/source/0x1/uq32-32/structs.d.ts +46 -0
  86. package/dist/src/typus-perp/_dependencies/source/0x1/uq32-32/structs.js +228 -0
  87. package/dist/src/typus-perp/_dependencies/source/0x1/uq64-64/structs.d.ts +46 -0
  88. package/dist/src/typus-perp/_dependencies/source/0x1/uq64-64/structs.js +228 -0
  89. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +5 -0
  90. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +8 -0
  91. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +1 -0
  92. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +86 -13
  93. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +793 -0
  94. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +14 -5
  95. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +52 -10
  96. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +8 -3
  97. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +105 -28
  98. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +8 -3
  99. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +108 -28
  100. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/authenticator-state/structs.d.ts +34 -12
  101. package/dist/src/typus-perp/_dependencies/source/0x2/authenticator-state/structs.js +894 -0
  102. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bag/structs.d.ts +8 -3
  103. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bag/structs.js +90 -25
  104. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/balance/structs.d.ts +14 -5
  105. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/balance/structs.js +183 -45
  106. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bcs/structs.d.ts +10 -4
  107. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bcs/structs.js +84 -23
  108. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bls12381/structs.d.ts +68 -9
  109. package/dist/src/typus-perp/_dependencies/source/0x2/bls12381/structs.js +820 -0
  110. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/borrow/structs.d.ts +13 -4
  111. package/dist/src/typus-perp/_dependencies/source/0x2/borrow/structs.js +410 -0
  112. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/clock/structs.d.ts +8 -3
  113. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/clock/structs.js +90 -25
  114. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/coin/structs.d.ts +94 -13
  115. package/dist/src/typus-perp/_dependencies/source/0x2/coin/structs.js +1259 -0
  116. package/dist/src/typus-perp/_dependencies/source/0x2/config/structs.d.ts +179 -0
  117. package/dist/src/typus-perp/_dependencies/source/0x2/config/structs.js +577 -0
  118. package/dist/src/typus-perp/_dependencies/source/0x2/deny-list/structs.d.ts +430 -0
  119. package/dist/src/typus-perp/_dependencies/source/0x2/deny-list/structs.js +1177 -0
  120. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/display/structs.d.ts +20 -7
  121. package/dist/src/typus-perp/_dependencies/source/0x2/display/structs.js +584 -0
  122. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/dynamic-field/structs.d.ts +12 -7
  123. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/dynamic-field/structs.js +110 -28
  124. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/dynamic-object-field/structs.d.ts +10 -5
  125. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/dynamic-object-field/structs.js +94 -24
  126. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/groth16/structs.d.ts +28 -10
  127. package/dist/src/typus-perp/_dependencies/source/0x2/groth16/structs.js +710 -0
  128. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/group-ops/structs.d.ts +10 -4
  129. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/group-ops/structs.js +93 -23
  130. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/index.d.ts +1 -0
  131. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/index.js +2 -1
  132. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/init.js +16 -5
  133. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/kiosk/structs.d.ts +62 -21
  134. package/dist/src/typus-perp/_dependencies/source/0x2/kiosk/structs.js +1724 -0
  135. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/kiosk-extension/structs.d.ts +14 -5
  136. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/kiosk-extension/structs.js +185 -48
  137. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/linked-table/structs.d.ts +15 -6
  138. package/dist/src/typus-perp/_dependencies/source/0x2/linked-table/structs.js +438 -0
  139. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object/structs.d.ts +14 -5
  140. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object/structs.js +166 -45
  141. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object-bag/structs.d.ts +8 -3
  142. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object-bag/structs.js +90 -25
  143. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object-table/structs.d.ts +8 -3
  144. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object-table/structs.js +101 -25
  145. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/package/structs.d.ts +28 -10
  146. package/dist/src/typus-perp/_dependencies/source/0x2/package/structs.js +752 -0
  147. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/priority-queue/structs.d.ts +19 -9
  148. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/priority-queue/structs.js +192 -50
  149. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/random/structs.d.ts +22 -8
  150. package/dist/src/typus-perp/_dependencies/source/0x2/random/structs.js +586 -0
  151. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/sui/structs.d.ts +8 -3
  152. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/sui/structs.js +84 -23
  153. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/table/structs.d.ts +8 -3
  154. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/table/structs.js +101 -25
  155. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/table-vec/structs.d.ts +8 -3
  156. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/table-vec/structs.js +93 -23
  157. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/token/structs.d.ts +38 -13
  158. package/dist/src/typus-perp/_dependencies/source/0x2/token/structs.js +1107 -0
  159. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/transfer/structs.d.ts +8 -3
  160. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/transfer/structs.js +99 -25
  161. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/transfer-policy/structs.d.ts +38 -13
  162. package/dist/src/typus-perp/_dependencies/source/0x2/transfer-policy/structs.js +1099 -0
  163. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/tx-context/structs.d.ts +10 -4
  164. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/tx-context/structs.js +108 -28
  165. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/url/structs.d.ts +8 -3
  166. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/url/structs.js +84 -23
  167. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/vec-map/structs.d.ts +23 -13
  168. package/dist/src/typus-perp/_dependencies/source/0x2/vec-map/structs.js +436 -0
  169. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/vec-set/structs.d.ts +10 -4
  170. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/vec-set/structs.js +94 -24
  171. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/versioned/structs.d.ts +14 -5
  172. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/versioned/structs.js +177 -49
  173. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/zklogin-verified-id/structs.d.ts +8 -3
  174. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/zklogin-verified-id/structs.js +113 -29
  175. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/zklogin-verified-issuer/structs.d.ts +8 -3
  176. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/zklogin-verified-issuer/structs.js +98 -26
  177. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +1 -0
  178. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +2 -1
  179. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +8 -3
  180. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +84 -23
  181. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +2 -0
  182. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +3 -1
  183. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +8 -3
  184. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +84 -23
  185. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +14 -5
  186. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +186 -50
  187. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +40 -14
  188. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +1092 -0
  189. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +15 -5
  190. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +52 -7
  191. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +20 -7
  192. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +643 -0
  193. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +34 -12
  194. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +898 -0
  195. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +8 -0
  196. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +11 -0
  197. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +20 -1
  198. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/keyed-big-vector/structs.d.ts +227 -0
  199. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/keyed-big-vector/structs.js +622 -0
  200. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +124 -16
  201. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +1476 -0
  202. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.d.ts +13 -4
  203. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +438 -0
  204. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +13 -4
  205. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +430 -0
  206. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.d.ts +1071 -0
  207. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.js +2275 -0
  208. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +68 -50
  209. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +732 -0
  210. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +34 -12
  211. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +900 -0
  212. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +46 -16
  213. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +1335 -0
  214. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +9 -0
  215. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +12 -0
  216. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +4 -3
  217. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +50 -41
  218. package/dist/src/{_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585 → typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828}/royalty-rule/structs.js +227 -103
  219. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +76 -55
  220. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +886 -0
  221. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +8 -3
  222. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +93 -23
  223. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +247 -136
  224. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +2407 -0
  225. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +100 -34
  226. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +3052 -0
  227. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +10 -0
  228. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +13 -0
  229. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +23 -17
  230. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +213 -147
  231. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +2846 -0
  232. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +58 -20
  233. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +1669 -0
  234. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +46 -16
  235. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +1249 -0
  236. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +244 -82
  237. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +1869 -0
  238. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +8 -3
  239. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +115 -30
  240. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +534 -74
  241. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +7680 -0
  242. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +1 -0
  243. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +2 -1
  244. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +8 -3
  245. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +87 -23
  246. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +22 -8
  247. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +581 -0
  248. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +8 -3
  249. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +109 -27
  250. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +50 -17
  251. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +1735 -0
  252. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +8 -3
  253. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +80 -23
  254. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +3 -0
  255. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +6 -0
  256. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +15 -6
  257. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +444 -0
  258. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.d.ts +172 -58
  259. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +5014 -0
  260. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +40 -14
  261. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +1229 -0
  262. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +1 -0
  263. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +2 -1
  264. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +10 -4
  265. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +105 -28
  266. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +8 -3
  267. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +95 -26
  268. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +10 -4
  269. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +322 -0
  270. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +8 -3
  271. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +84 -23
  272. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/batch-price-attestation/structs.d.ts +22 -12
  273. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/batch-price-attestation/structs.js +202 -54
  274. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/contract-upgrade/structs.d.ts +21 -12
  275. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/contract-upgrade/structs.js +172 -48
  276. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/data-source/structs.d.ts +12 -7
  277. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/data-source/structs.js +91 -26
  278. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/event/structs.d.ts +20 -11
  279. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/event/structs.js +171 -47
  280. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance/structs.d.ts +14 -8
  281. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance/structs.js +96 -27
  282. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance-action/structs.d.ts +11 -6
  283. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance-action/structs.js +84 -23
  284. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance-instruction/structs.d.ts +13 -7
  285. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance-instruction/structs.js +100 -27
  286. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/hot-potato-vector/structs.d.ts +12 -6
  287. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/hot-potato-vector/structs.js +94 -24
  288. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/i64/structs.d.ts +11 -6
  289. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/i64/structs.js +90 -25
  290. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.d.ts +3 -0
  291. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.js +6 -0
  292. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/init.js +1 -0
  293. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/migrate/structs.d.ts +11 -6
  294. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/migrate/structs.js +84 -23
  295. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price/structs.d.ts +11 -6
  296. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price/structs.js +100 -27
  297. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-feed/structs.d.ts +11 -6
  298. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-feed/structs.js +95 -26
  299. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-identifier/structs.d.ts +13 -7
  300. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-identifier/structs.js +84 -23
  301. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-info/structs.d.ts +20 -11
  302. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-info/structs.js +182 -50
  303. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-status/structs.d.ts +11 -6
  304. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-status/structs.js +84 -23
  305. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set/structs.d.ts +20 -10
  306. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set/structs.js +181 -48
  307. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-data-sources/structs.d.ts +13 -7
  308. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-data-sources/structs.js +85 -24
  309. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-fee-recipient/structs.d.ts +11 -6
  310. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-fee-recipient/structs.js +87 -23
  311. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-governance-data-source/structs.d.ts +12 -7
  312. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-governance-data-source/structs.js +96 -27
  313. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-stale-price-threshold/structs.d.ts +11 -6
  314. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-stale-price-threshold/structs.js +84 -23
  315. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-update-fee/structs.d.ts +11 -6
  316. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-update-fee/structs.js +90 -25
  317. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/setup/structs.d.ts +11 -6
  318. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/setup/structs.js +84 -23
  319. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/state/structs.d.ts +30 -17
  320. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.js +573 -0
  321. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.d.ts +130 -0
  322. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.js +524 -0
  323. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +1 -0
  324. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +2 -1
  325. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +48 -39
  326. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +217 -97
  327. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +50 -41
  328. package/dist/src/{_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828 → typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585}/royalty-rule/structs.js +227 -103
  329. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +8 -3
  330. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +93 -23
  331. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/bytes20/structs.d.ts +13 -7
  332. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/bytes20/structs.js +84 -23
  333. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/bytes32/structs.d.ts +13 -7
  334. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/bytes32/structs.js +84 -23
  335. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/consumed-vaas/structs.d.ts +11 -6
  336. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/consumed-vaas/structs.js +84 -23
  337. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/cursor/structs.d.ts +12 -6
  338. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/cursor/structs.js +94 -24
  339. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/emitter/structs.d.ts +29 -16
  340. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.js +531 -0
  341. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/external-address/structs.d.ts +11 -6
  342. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/external-address/structs.js +84 -23
  343. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/fee-collector/structs.d.ts +11 -6
  344. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/fee-collector/structs.js +90 -25
  345. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/governance-message/structs.d.ts +20 -10
  346. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.js +460 -0
  347. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian/structs.d.ts +11 -6
  348. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian/structs.js +84 -23
  349. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian-set/structs.d.ts +13 -7
  350. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian-set/structs.js +95 -26
  351. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian-signature/structs.d.ts +11 -6
  352. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian-signature/structs.js +100 -27
  353. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.d.ts +3 -0
  354. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.js +6 -0
  355. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/migrate/structs.d.ts +11 -6
  356. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/migrate/structs.js +84 -23
  357. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/package-utils/structs.d.ts +38 -21
  358. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.js +680 -0
  359. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/publish-message/structs.d.ts +22 -12
  360. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.js +449 -0
  361. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/set/structs.d.ts +52 -43
  362. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/set/structs.js +232 -103
  363. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/set-fee/structs.d.ts +20 -11
  364. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/set-fee/structs.js +165 -45
  365. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/setup/structs.d.ts +11 -6
  366. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/setup/structs.js +84 -23
  367. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/state/structs.d.ts +20 -11
  368. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.js +455 -0
  369. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/transfer-fee/structs.d.ts +20 -11
  370. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/transfer-fee/structs.js +174 -47
  371. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/update-guardian-set/structs.d.ts +31 -17
  372. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/update-guardian-set/structs.js +252 -69
  373. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/upgrade-contract/structs.d.ts +62 -49
  374. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.js +532 -0
  375. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/vaa/structs.d.ts +13 -7
  376. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/vaa/structs.js +125 -32
  377. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/version-control/structs.d.ts +20 -11
  378. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/version-control/structs.js +165 -45
  379. package/dist/src/typus-perp/_framework/init-loader.d.ts +2 -0
  380. package/dist/src/typus-perp/_framework/init-loader.js +63 -0
  381. package/dist/src/{_framework → typus-perp/_framework}/loader.d.ts +3 -3
  382. package/dist/src/{_framework → typus-perp/_framework}/loader.js +14 -5
  383. package/dist/src/{_framework → typus-perp/_framework}/reified.d.ts +28 -20
  384. package/dist/src/{_framework → typus-perp/_framework}/reified.js +11 -37
  385. package/dist/src/typus-perp/_framework/util.d.ts +35 -0
  386. package/dist/src/typus-perp/_framework/util.js +396 -0
  387. package/dist/src/typus-perp/_framework/vector.d.ts +35 -0
  388. package/dist/src/typus-perp/_framework/vector.js +112 -0
  389. package/dist/src/typus-perp/fetch.d.ts +5 -5
  390. package/dist/src/typus-perp/fetch.js +16 -16
  391. package/dist/src/typus-perp/index.d.ts +2 -4
  392. package/dist/src/typus-perp/index.js +5 -64
  393. package/dist/src/typus-perp/readVec.js +9 -9
  394. package/dist/src/typus-perp/typus_perp/admin/functions.d.ts +50 -0
  395. package/dist/src/typus-perp/typus_perp/admin/functions.js +116 -0
  396. package/dist/src/typus-perp/{admin → typus_perp/admin}/structs.d.ts +49 -27
  397. package/dist/src/typus-perp/{admin → typus_perp/admin}/structs.js +117 -21
  398. package/dist/src/typus-perp/typus_perp/index.d.ts +3 -0
  399. package/dist/src/typus-perp/typus_perp/index.js +6 -0
  400. package/dist/src/typus-perp/{init.js → typus_perp/init.js} +13 -26
  401. package/dist/src/typus-perp/typus_perp/lp-pool/functions.d.ts +342 -0
  402. package/dist/src/typus-perp/typus_perp/lp-pool/functions.js +517 -0
  403. package/dist/src/typus-perp/{lp-pool → typus_perp/lp-pool}/structs.d.ts +698 -148
  404. package/dist/src/typus-perp/{lp-pool → typus_perp/lp-pool}/structs.js +1457 -172
  405. package/dist/src/typus-perp/typus_perp/math/functions.d.ts +18 -0
  406. package/dist/src/typus-perp/typus_perp/math/functions.js +49 -0
  407. package/dist/src/typus-perp/typus_perp/oracle/functions.d.ts +13 -0
  408. package/dist/src/typus-perp/typus_perp/oracle/functions.js +25 -0
  409. package/dist/src/typus-perp/{oracle → typus_perp/oracle}/structs.d.ts +20 -11
  410. package/dist/src/typus-perp/{oracle → typus_perp/oracle}/structs.js +52 -10
  411. package/dist/src/typus-perp/typus_perp/position/functions.d.ts +343 -0
  412. package/dist/src/typus-perp/typus_perp/position/functions.js +659 -0
  413. package/dist/src/typus-perp/{position → typus_perp/position}/structs.d.ts +73 -43
  414. package/dist/src/typus-perp/{position → typus_perp/position}/structs.js +177 -38
  415. package/dist/src/typus-perp/typus_perp/symbol/functions.d.ts +9 -0
  416. package/dist/src/typus-perp/typus_perp/symbol/functions.js +33 -0
  417. package/dist/src/typus-perp/{symbol → typus_perp/symbol}/structs.d.ts +11 -6
  418. package/dist/src/typus-perp/{symbol → typus_perp/symbol}/structs.js +23 -4
  419. package/dist/src/typus-perp/typus_perp/tlp/functions.d.ts +19 -0
  420. package/dist/src/typus-perp/typus_perp/tlp/functions.js +41 -0
  421. package/dist/src/typus-perp/{tlp → typus_perp/tlp}/structs.d.ts +20 -11
  422. package/dist/src/typus-perp/{tlp → typus_perp/tlp}/structs.js +61 -13
  423. package/dist/src/typus-perp/typus_perp/token-interface/functions.d.ts +11 -0
  424. package/dist/src/typus-perp/{token-interface → typus_perp/token-interface}/functions.js +6 -6
  425. package/dist/src/typus-perp/typus_perp/trading/functions.d.ts +493 -0
  426. package/dist/src/typus-perp/typus_perp/trading/functions.js +711 -0
  427. package/dist/src/typus-perp/{trading → typus_perp/trading}/structs.d.ts +523 -161
  428. package/dist/src/typus-perp/{trading → typus_perp/trading}/structs.js +1042 -107
  429. package/dist/src/typus-perp/typus_perp/treasury-caps/functions.d.ts +9 -0
  430. package/dist/src/typus-perp/{treasury-caps → typus_perp/treasury-caps}/functions.js +14 -11
  431. package/dist/src/typus-perp/{treasury-caps → typus_perp/treasury-caps}/structs.d.ts +11 -6
  432. package/dist/src/typus-perp/{treasury-caps → typus_perp/treasury-caps}/structs.js +32 -7
  433. package/dist/src/typus-perp/typus_stake_pool/admin/functions.d.ts +50 -0
  434. package/dist/src/typus-perp/typus_stake_pool/admin/functions.js +116 -0
  435. package/dist/src/typus-perp/typus_stake_pool/admin/structs.d.ts +447 -0
  436. package/dist/src/typus-perp/typus_stake_pool/admin/structs.js +898 -0
  437. package/dist/src/typus-perp/typus_stake_pool/index.d.ts +3 -0
  438. package/dist/src/typus-perp/typus_stake_pool/index.js +6 -0
  439. package/dist/src/typus-perp/typus_stake_pool/init.d.ts +2 -0
  440. package/dist/src/typus-perp/typus_stake_pool/init.js +57 -0
  441. package/dist/src/typus-perp/typus_stake_pool/stake-pool/functions.d.ts +175 -0
  442. package/dist/src/typus-perp/typus_stake_pool/stake-pool/functions.js +275 -0
  443. package/dist/src/typus-perp/{stake-pool → typus_stake_pool/stake-pool}/structs.d.ts +293 -185
  444. package/dist/src/typus-perp/{stake-pool → typus_stake_pool/stake-pool}/structs.js +659 -235
  445. package/dist/src/typus-perp/user/order.d.ts +10 -10
  446. package/dist/src/typus-perp/user/order.js +6 -5
  447. package/dist/src/typus-perp/user/orderWithBidReceipt.d.ts +5 -5
  448. package/dist/src/typus-perp/user/orderWithBidReceipt.js +3 -3
  449. package/dist/src/typus-perp/user/tlp.d.ts +12 -12
  450. package/dist/src/typus-perp/user/tlp.js +13 -11
  451. package/dist/src/typus-safu/user-entry.d.ts +9 -9
  452. package/dist/src/typus-safu/user-entry.js +18 -18
  453. package/dist/src/typus-safu/user-history.d.ts +1 -1
  454. package/dist/src/typus-safu/user-history.js +1 -1
  455. package/dist/src/typus-safu/view-function.js +17 -17
  456. package/dist/src/utils/api/price.js +18 -2
  457. package/dist/src/utils/api/sentio/reward-generated.d.ts +1 -1
  458. package/dist/src/utils/mint.d.ts +2 -2
  459. package/dist/src/utils/mint.js +3 -3
  460. package/dist/src/utils/pyth/constant.d.ts +2 -0
  461. package/dist/src/utils/pyth/constant.js +2 -0
  462. package/dist/src/utils/pyth/pythClient.d.ts +3 -3
  463. package/dist/src/utils/typusConfig.d.ts +8 -2
  464. package/package.json +4 -5
  465. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +0 -2
  466. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +0 -5
  467. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +0 -377
  468. package/dist/src/_dependencies/source/0x2/authenticator-state/structs.js +0 -565
  469. package/dist/src/_dependencies/source/0x2/bls12381/structs.js +0 -434
  470. package/dist/src/_dependencies/source/0x2/borrow/structs.js +0 -267
  471. package/dist/src/_dependencies/source/0x2/coin/structs.js +0 -648
  472. package/dist/src/_dependencies/source/0x2/deny-list/structs.d.ts +0 -178
  473. package/dist/src/_dependencies/source/0x2/deny-list/structs.js +0 -290
  474. package/dist/src/_dependencies/source/0x2/display/structs.js +0 -362
  475. package/dist/src/_dependencies/source/0x2/groth16/structs.js +0 -464
  476. package/dist/src/_dependencies/source/0x2/kiosk/structs.js +0 -1033
  477. package/dist/src/_dependencies/source/0x2/linked-table/structs.js +0 -272
  478. package/dist/src/_dependencies/source/0x2/package/structs.js +0 -478
  479. package/dist/src/_dependencies/source/0x2/random/structs.js +0 -383
  480. package/dist/src/_dependencies/source/0x2/token/structs.js +0 -651
  481. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -665
  482. package/dist/src/_dependencies/source/0x2/vec-map/structs.js +0 -286
  483. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +0 -669
  484. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +0 -402
  485. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +0 -566
  486. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +0 -2
  487. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +0 -5
  488. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +0 -774
  489. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +0 -272
  490. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +0 -276
  491. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +0 -471
  492. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +0 -563
  493. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +0 -789
  494. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +0 -2
  495. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +0 -5
  496. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +0 -562
  497. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +0 -1331
  498. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +0 -1706
  499. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +0 -2
  500. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +0 -5
  501. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +0 -1643
  502. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +0 -971
  503. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +0 -750
  504. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +0 -933
  505. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +0 -3796
  506. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +0 -382
  507. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +0 -959
  508. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +0 -2
  509. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +0 -5
  510. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +0 -274
  511. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +0 -2830
  512. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +0 -711
  513. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +0 -212
  514. package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.js +0 -348
  515. package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.js +0 -298
  516. package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.d.ts +0 -2
  517. package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.js +0 -5
  518. package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.js +0 -438
  519. package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.js +0 -297
  520. package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.js +0 -303
  521. package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.js +0 -349
  522. package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.d.ts +0 -2
  523. package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.js +0 -5
  524. package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.js +0 -363
  525. package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.d.ts +0 -79
  526. package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.js +0 -256
  527. package/dist/src/_framework/init-source.d.ts +0 -1
  528. package/dist/src/_framework/init-source.js +0 -64
  529. package/dist/src/_framework/util.d.ts +0 -53
  530. package/dist/src/_framework/util.js +0 -251
  531. package/dist/src/typus-perp/admin/functions.d.ts +0 -51
  532. package/dist/src/typus-perp/admin/functions.js +0 -100
  533. package/dist/src/typus-perp/lp-pool/functions.d.ts +0 -283
  534. package/dist/src/typus-perp/lp-pool/functions.js +0 -418
  535. package/dist/src/typus-perp/math/functions.d.ts +0 -18
  536. package/dist/src/typus-perp/math/functions.js +0 -40
  537. package/dist/src/typus-perp/oracle/functions.d.ts +0 -14
  538. package/dist/src/typus-perp/oracle/functions.js +0 -22
  539. package/dist/src/typus-perp/position/functions.d.ts +0 -339
  540. package/dist/src/typus-perp/position/functions.js +0 -564
  541. package/dist/src/typus-perp/stake-pool/functions.d.ts +0 -169
  542. package/dist/src/typus-perp/stake-pool/functions.js +0 -258
  543. package/dist/src/typus-perp/symbol/functions.d.ts +0 -10
  544. package/dist/src/typus-perp/symbol/functions.js +0 -20
  545. package/dist/src/typus-perp/tlp/functions.d.ts +0 -20
  546. package/dist/src/typus-perp/tlp/functions.js +0 -35
  547. package/dist/src/typus-perp/token-interface/functions.d.ts +0 -12
  548. package/dist/src/typus-perp/trading/functions.d.ts +0 -427
  549. package/dist/src/typus-perp/trading/functions.js +0 -612
  550. package/dist/src/typus-perp/treasury-caps/functions.d.ts +0 -10
  551. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/init.d.ts +0 -0
  552. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +0 -0
  553. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/init.d.ts +0 -0
  554. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +0 -0
  555. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +0 -0
  556. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +0 -0
  557. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +0 -0
  558. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +0 -0
  559. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +0 -0
  560. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +0 -0
  561. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +0 -0
  562. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +0 -0
  563. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +0 -0
  564. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +0 -0
  565. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +0 -0
  566. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +0 -0
  567. package/dist/src/{_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/init.d.ts +0 -0
  568. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585}/init.d.ts +0 -0
  569. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +2 -2
  570. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/init.d.ts +0 -0
  571. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/init.js +4 -4
  572. /package/dist/src/typus-perp/{init.d.ts → typus_perp/init.d.ts} +0 -0
@@ -0,0 +1,1099 @@
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.TransferRequest = exports.TransferPolicyDestroyed = exports.TransferPolicyCreated = exports.TransferPolicyCap = exports.TransferPolicy = exports.RuleKey = void 0;
99
+ exports.isRuleKey = isRuleKey;
100
+ exports.isTransferPolicy = isTransferPolicy;
101
+ exports.isTransferPolicyCap = isTransferPolicyCap;
102
+ exports.isTransferPolicyCreated = isTransferPolicyCreated;
103
+ exports.isTransferPolicyDestroyed = isTransferPolicyDestroyed;
104
+ exports.isTransferRequest = isTransferRequest;
105
+ var reified = __importStar(require("../../../../_framework/reified"));
106
+ var reified_1 = require("../../../../_framework/reified");
107
+ var util_1 = require("../../../../_framework/util");
108
+ var structs_1 = require("../../0x1/type-name/structs");
109
+ var structs_2 = require("../balance/structs");
110
+ var index_1 = require("../index");
111
+ var structs_3 = require("../object/structs");
112
+ var structs_4 = require("../sui/structs");
113
+ var structs_5 = require("../vec-set/structs");
114
+ var bcs_1 = require("@mysten/sui/bcs");
115
+ var utils_1 = require("@mysten/sui/utils");
116
+ /* ============================== RuleKey =============================== */
117
+ function isRuleKey(type) {
118
+ type = (0, util_1.compressSuiType)(type);
119
+ return type.startsWith("".concat(index_1.PKG_V26, "::transfer_policy::RuleKey") + "<");
120
+ }
121
+ var RuleKey = /** @class */ (function () {
122
+ function RuleKey(typeArgs, fields) {
123
+ this.__StructClass = true;
124
+ this.$typeName = RuleKey.$typeName;
125
+ this.$isPhantom = RuleKey.$isPhantom;
126
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RuleKey.$typeName], __read(typeArgs), false));
127
+ this.$typeArgs = typeArgs;
128
+ this.dummyField = fields.dummyField;
129
+ }
130
+ RuleKey.reified = function (T) {
131
+ var _this = this;
132
+ return {
133
+ typeName: RuleKey.$typeName,
134
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RuleKey.$typeName], [(0, reified_1.extractType)(T)], false)),
135
+ typeArgs: [(0, reified_1.extractType)(T)],
136
+ isPhantom: RuleKey.$isPhantom,
137
+ reifiedTypeArgs: [T],
138
+ fromFields: function (fields) { return RuleKey.fromFields(T, fields); },
139
+ fromFieldsWithTypes: function (item) { return RuleKey.fromFieldsWithTypes(T, item); },
140
+ fromBcs: function (data) { return RuleKey.fromBcs(T, data); },
141
+ bcs: RuleKey.bcs,
142
+ fromJSONField: function (field) { return RuleKey.fromJSONField(T, field); },
143
+ fromJSON: function (json) { return RuleKey.fromJSON(T, json); },
144
+ fromSuiParsedData: function (content) { return RuleKey.fromSuiParsedData(T, content); },
145
+ fromSuiObjectData: function (content) { return RuleKey.fromSuiObjectData(T, content); },
146
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
147
+ return [2 /*return*/, RuleKey.fetch(client, T, id)];
148
+ }); }); },
149
+ new: function (fields) {
150
+ return new RuleKey([(0, reified_1.extractType)(T)], fields);
151
+ },
152
+ kind: "StructClassReified",
153
+ };
154
+ };
155
+ Object.defineProperty(RuleKey, "r", {
156
+ get: function () {
157
+ return RuleKey.reified;
158
+ },
159
+ enumerable: false,
160
+ configurable: true
161
+ });
162
+ RuleKey.phantom = function (T) {
163
+ return (0, reified_1.phantom)(RuleKey.reified(T));
164
+ };
165
+ Object.defineProperty(RuleKey, "p", {
166
+ get: function () {
167
+ return RuleKey.phantom;
168
+ },
169
+ enumerable: false,
170
+ configurable: true
171
+ });
172
+ Object.defineProperty(RuleKey, "bcs", {
173
+ get: function () {
174
+ return bcs_1.bcs.struct("RuleKey", {
175
+ dummy_field: bcs_1.bcs.bool(),
176
+ });
177
+ },
178
+ enumerable: false,
179
+ configurable: true
180
+ });
181
+ RuleKey.fromFields = function (typeArg, fields) {
182
+ return RuleKey.reified(typeArg).new({
183
+ dummyField: (0, reified_1.decodeFromFields)("bool", fields.dummy_field),
184
+ });
185
+ };
186
+ RuleKey.fromFieldsWithTypes = function (typeArg, item) {
187
+ if (!isRuleKey(item.type)) {
188
+ throw new Error("not a RuleKey type");
189
+ }
190
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
191
+ return RuleKey.reified(typeArg).new({
192
+ dummyField: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.dummy_field),
193
+ });
194
+ };
195
+ RuleKey.fromBcs = function (typeArg, data) {
196
+ return RuleKey.fromFields(typeArg, RuleKey.bcs.parse(data));
197
+ };
198
+ RuleKey.prototype.toJSONField = function () {
199
+ return {
200
+ dummyField: this.dummyField,
201
+ };
202
+ };
203
+ RuleKey.prototype.toJSON = function () {
204
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
205
+ };
206
+ RuleKey.fromJSONField = function (typeArg, field) {
207
+ return RuleKey.reified(typeArg).new({
208
+ dummyField: (0, reified_1.decodeFromJSONField)("bool", field.dummyField),
209
+ });
210
+ };
211
+ RuleKey.fromJSON = function (typeArg, json) {
212
+ if (json.$typeName !== RuleKey.$typeName) {
213
+ throw new Error("not a WithTwoGenerics json object");
214
+ }
215
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(RuleKey.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
216
+ return RuleKey.fromJSONField(typeArg, json);
217
+ };
218
+ RuleKey.fromSuiParsedData = function (typeArg, content) {
219
+ if (content.dataType !== "moveObject") {
220
+ throw new Error("not an object");
221
+ }
222
+ if (!isRuleKey(content.type)) {
223
+ throw new Error("object at ".concat(content.fields.id, " is not a RuleKey object"));
224
+ }
225
+ return RuleKey.fromFieldsWithTypes(typeArg, content);
226
+ };
227
+ RuleKey.fromSuiObjectData = function (typeArg, data) {
228
+ if (data.bcs) {
229
+ if (data.bcs.dataType !== "moveObject" || !isRuleKey(data.bcs.type)) {
230
+ throw new Error("object at is not a RuleKey object");
231
+ }
232
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
233
+ if (gotTypeArgs.length !== 1) {
234
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
235
+ }
236
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
237
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
238
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
239
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
240
+ }
241
+ return RuleKey.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
242
+ }
243
+ if (data.content) {
244
+ return RuleKey.fromSuiParsedData(typeArg, data.content);
245
+ }
246
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
247
+ };
248
+ RuleKey.fetch = function (client, typeArg, id) {
249
+ return __awaiter(this, void 0, void 0, function () {
250
+ var res;
251
+ var _a, _b;
252
+ return __generator(this, function (_c) {
253
+ switch (_c.label) {
254
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
255
+ case 1:
256
+ res = _c.sent();
257
+ if (res.error) {
258
+ throw new Error("error fetching RuleKey object at id ".concat(id, ": ").concat(res.error.code));
259
+ }
260
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRuleKey(res.data.bcs.type)) {
261
+ throw new Error("object at id ".concat(id, " is not a RuleKey object"));
262
+ }
263
+ return [2 /*return*/, RuleKey.fromSuiObjectData(typeArg, res.data)];
264
+ }
265
+ });
266
+ });
267
+ };
268
+ RuleKey.$typeName = "".concat(index_1.PKG_V26, "::transfer_policy::RuleKey");
269
+ RuleKey.$numTypeParams = 1;
270
+ RuleKey.$isPhantom = [true];
271
+ return RuleKey;
272
+ }());
273
+ exports.RuleKey = RuleKey;
274
+ /* ============================== TransferPolicy =============================== */
275
+ function isTransferPolicy(type) {
276
+ type = (0, util_1.compressSuiType)(type);
277
+ return type.startsWith("".concat(index_1.PKG_V26, "::transfer_policy::TransferPolicy") + "<");
278
+ }
279
+ var TransferPolicy = /** @class */ (function () {
280
+ function TransferPolicy(typeArgs, fields) {
281
+ this.__StructClass = true;
282
+ this.$typeName = TransferPolicy.$typeName;
283
+ this.$isPhantom = TransferPolicy.$isPhantom;
284
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TransferPolicy.$typeName], __read(typeArgs), false));
285
+ this.$typeArgs = typeArgs;
286
+ this.id = fields.id;
287
+ this.balance = fields.balance;
288
+ this.rules = fields.rules;
289
+ }
290
+ TransferPolicy.reified = function (T) {
291
+ var _this = this;
292
+ return {
293
+ typeName: TransferPolicy.$typeName,
294
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TransferPolicy.$typeName], [(0, reified_1.extractType)(T)], false)),
295
+ typeArgs: [(0, reified_1.extractType)(T)],
296
+ isPhantom: TransferPolicy.$isPhantom,
297
+ reifiedTypeArgs: [T],
298
+ fromFields: function (fields) { return TransferPolicy.fromFields(T, fields); },
299
+ fromFieldsWithTypes: function (item) { return TransferPolicy.fromFieldsWithTypes(T, item); },
300
+ fromBcs: function (data) { return TransferPolicy.fromBcs(T, data); },
301
+ bcs: TransferPolicy.bcs,
302
+ fromJSONField: function (field) { return TransferPolicy.fromJSONField(T, field); },
303
+ fromJSON: function (json) { return TransferPolicy.fromJSON(T, json); },
304
+ fromSuiParsedData: function (content) { return TransferPolicy.fromSuiParsedData(T, content); },
305
+ fromSuiObjectData: function (content) { return TransferPolicy.fromSuiObjectData(T, content); },
306
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
307
+ return [2 /*return*/, TransferPolicy.fetch(client, T, id)];
308
+ }); }); },
309
+ new: function (fields) {
310
+ return new TransferPolicy([(0, reified_1.extractType)(T)], fields);
311
+ },
312
+ kind: "StructClassReified",
313
+ };
314
+ };
315
+ Object.defineProperty(TransferPolicy, "r", {
316
+ get: function () {
317
+ return TransferPolicy.reified;
318
+ },
319
+ enumerable: false,
320
+ configurable: true
321
+ });
322
+ TransferPolicy.phantom = function (T) {
323
+ return (0, reified_1.phantom)(TransferPolicy.reified(T));
324
+ };
325
+ Object.defineProperty(TransferPolicy, "p", {
326
+ get: function () {
327
+ return TransferPolicy.phantom;
328
+ },
329
+ enumerable: false,
330
+ configurable: true
331
+ });
332
+ Object.defineProperty(TransferPolicy, "bcs", {
333
+ get: function () {
334
+ return bcs_1.bcs.struct("TransferPolicy", {
335
+ id: structs_3.UID.bcs,
336
+ balance: structs_2.Balance.bcs,
337
+ rules: structs_5.VecSet.bcs(structs_1.TypeName.bcs),
338
+ });
339
+ },
340
+ enumerable: false,
341
+ configurable: true
342
+ });
343
+ TransferPolicy.fromFields = function (typeArg, fields) {
344
+ return TransferPolicy.reified(typeArg).new({
345
+ id: (0, reified_1.decodeFromFields)(structs_3.UID.reified(), fields.id),
346
+ balance: (0, reified_1.decodeFromFields)(structs_2.Balance.reified(reified.phantom(structs_4.SUI.reified())), fields.balance),
347
+ rules: (0, reified_1.decodeFromFields)(structs_5.VecSet.reified(structs_1.TypeName.reified()), fields.rules),
348
+ });
349
+ };
350
+ TransferPolicy.fromFieldsWithTypes = function (typeArg, item) {
351
+ if (!isTransferPolicy(item.type)) {
352
+ throw new Error("not a TransferPolicy type");
353
+ }
354
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
355
+ return TransferPolicy.reified(typeArg).new({
356
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.UID.reified(), item.fields.id),
357
+ balance: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.Balance.reified(reified.phantom(structs_4.SUI.reified())), item.fields.balance),
358
+ rules: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecSet.reified(structs_1.TypeName.reified()), item.fields.rules),
359
+ });
360
+ };
361
+ TransferPolicy.fromBcs = function (typeArg, data) {
362
+ return TransferPolicy.fromFields(typeArg, TransferPolicy.bcs.parse(data));
363
+ };
364
+ TransferPolicy.prototype.toJSONField = function () {
365
+ return {
366
+ id: this.id,
367
+ balance: this.balance.toJSONField(),
368
+ rules: this.rules.toJSONField(),
369
+ };
370
+ };
371
+ TransferPolicy.prototype.toJSON = function () {
372
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
373
+ };
374
+ TransferPolicy.fromJSONField = function (typeArg, field) {
375
+ return TransferPolicy.reified(typeArg).new({
376
+ id: (0, reified_1.decodeFromJSONField)(structs_3.UID.reified(), field.id),
377
+ balance: (0, reified_1.decodeFromJSONField)(structs_2.Balance.reified(reified.phantom(structs_4.SUI.reified())), field.balance),
378
+ rules: (0, reified_1.decodeFromJSONField)(structs_5.VecSet.reified(structs_1.TypeName.reified()), field.rules),
379
+ });
380
+ };
381
+ TransferPolicy.fromJSON = function (typeArg, json) {
382
+ if (json.$typeName !== TransferPolicy.$typeName) {
383
+ throw new Error("not a WithTwoGenerics json object");
384
+ }
385
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(TransferPolicy.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
386
+ return TransferPolicy.fromJSONField(typeArg, json);
387
+ };
388
+ TransferPolicy.fromSuiParsedData = function (typeArg, content) {
389
+ if (content.dataType !== "moveObject") {
390
+ throw new Error("not an object");
391
+ }
392
+ if (!isTransferPolicy(content.type)) {
393
+ throw new Error("object at ".concat(content.fields.id, " is not a TransferPolicy object"));
394
+ }
395
+ return TransferPolicy.fromFieldsWithTypes(typeArg, content);
396
+ };
397
+ TransferPolicy.fromSuiObjectData = function (typeArg, data) {
398
+ if (data.bcs) {
399
+ if (data.bcs.dataType !== "moveObject" || !isTransferPolicy(data.bcs.type)) {
400
+ throw new Error("object at is not a TransferPolicy object");
401
+ }
402
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
403
+ if (gotTypeArgs.length !== 1) {
404
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
405
+ }
406
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
407
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
408
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
409
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
410
+ }
411
+ return TransferPolicy.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
412
+ }
413
+ if (data.content) {
414
+ return TransferPolicy.fromSuiParsedData(typeArg, data.content);
415
+ }
416
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
417
+ };
418
+ TransferPolicy.fetch = function (client, typeArg, id) {
419
+ return __awaiter(this, void 0, void 0, function () {
420
+ var res;
421
+ var _a, _b;
422
+ return __generator(this, function (_c) {
423
+ switch (_c.label) {
424
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
425
+ case 1:
426
+ res = _c.sent();
427
+ if (res.error) {
428
+ throw new Error("error fetching TransferPolicy object at id ".concat(id, ": ").concat(res.error.code));
429
+ }
430
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTransferPolicy(res.data.bcs.type)) {
431
+ throw new Error("object at id ".concat(id, " is not a TransferPolicy object"));
432
+ }
433
+ return [2 /*return*/, TransferPolicy.fromSuiObjectData(typeArg, res.data)];
434
+ }
435
+ });
436
+ });
437
+ };
438
+ TransferPolicy.$typeName = "".concat(index_1.PKG_V26, "::transfer_policy::TransferPolicy");
439
+ TransferPolicy.$numTypeParams = 1;
440
+ TransferPolicy.$isPhantom = [true];
441
+ return TransferPolicy;
442
+ }());
443
+ exports.TransferPolicy = TransferPolicy;
444
+ /* ============================== TransferPolicyCap =============================== */
445
+ function isTransferPolicyCap(type) {
446
+ type = (0, util_1.compressSuiType)(type);
447
+ return type.startsWith("".concat(index_1.PKG_V26, "::transfer_policy::TransferPolicyCap") + "<");
448
+ }
449
+ var TransferPolicyCap = /** @class */ (function () {
450
+ function TransferPolicyCap(typeArgs, fields) {
451
+ this.__StructClass = true;
452
+ this.$typeName = TransferPolicyCap.$typeName;
453
+ this.$isPhantom = TransferPolicyCap.$isPhantom;
454
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TransferPolicyCap.$typeName], __read(typeArgs), false));
455
+ this.$typeArgs = typeArgs;
456
+ this.id = fields.id;
457
+ this.policyId = fields.policyId;
458
+ }
459
+ TransferPolicyCap.reified = function (T) {
460
+ var _this = this;
461
+ return {
462
+ typeName: TransferPolicyCap.$typeName,
463
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TransferPolicyCap.$typeName], [(0, reified_1.extractType)(T)], false)),
464
+ typeArgs: [(0, reified_1.extractType)(T)],
465
+ isPhantom: TransferPolicyCap.$isPhantom,
466
+ reifiedTypeArgs: [T],
467
+ fromFields: function (fields) { return TransferPolicyCap.fromFields(T, fields); },
468
+ fromFieldsWithTypes: function (item) { return TransferPolicyCap.fromFieldsWithTypes(T, item); },
469
+ fromBcs: function (data) { return TransferPolicyCap.fromBcs(T, data); },
470
+ bcs: TransferPolicyCap.bcs,
471
+ fromJSONField: function (field) { return TransferPolicyCap.fromJSONField(T, field); },
472
+ fromJSON: function (json) { return TransferPolicyCap.fromJSON(T, json); },
473
+ fromSuiParsedData: function (content) { return TransferPolicyCap.fromSuiParsedData(T, content); },
474
+ fromSuiObjectData: function (content) { return TransferPolicyCap.fromSuiObjectData(T, content); },
475
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
476
+ return [2 /*return*/, TransferPolicyCap.fetch(client, T, id)];
477
+ }); }); },
478
+ new: function (fields) {
479
+ return new TransferPolicyCap([(0, reified_1.extractType)(T)], fields);
480
+ },
481
+ kind: "StructClassReified",
482
+ };
483
+ };
484
+ Object.defineProperty(TransferPolicyCap, "r", {
485
+ get: function () {
486
+ return TransferPolicyCap.reified;
487
+ },
488
+ enumerable: false,
489
+ configurable: true
490
+ });
491
+ TransferPolicyCap.phantom = function (T) {
492
+ return (0, reified_1.phantom)(TransferPolicyCap.reified(T));
493
+ };
494
+ Object.defineProperty(TransferPolicyCap, "p", {
495
+ get: function () {
496
+ return TransferPolicyCap.phantom;
497
+ },
498
+ enumerable: false,
499
+ configurable: true
500
+ });
501
+ Object.defineProperty(TransferPolicyCap, "bcs", {
502
+ get: function () {
503
+ return bcs_1.bcs.struct("TransferPolicyCap", {
504
+ id: structs_3.UID.bcs,
505
+ policy_id: structs_3.ID.bcs,
506
+ });
507
+ },
508
+ enumerable: false,
509
+ configurable: true
510
+ });
511
+ TransferPolicyCap.fromFields = function (typeArg, fields) {
512
+ return TransferPolicyCap.reified(typeArg).new({
513
+ id: (0, reified_1.decodeFromFields)(structs_3.UID.reified(), fields.id),
514
+ policyId: (0, reified_1.decodeFromFields)(structs_3.ID.reified(), fields.policy_id),
515
+ });
516
+ };
517
+ TransferPolicyCap.fromFieldsWithTypes = function (typeArg, item) {
518
+ if (!isTransferPolicyCap(item.type)) {
519
+ throw new Error("not a TransferPolicyCap type");
520
+ }
521
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
522
+ return TransferPolicyCap.reified(typeArg).new({
523
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.UID.reified(), item.fields.id),
524
+ policyId: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.ID.reified(), item.fields.policy_id),
525
+ });
526
+ };
527
+ TransferPolicyCap.fromBcs = function (typeArg, data) {
528
+ return TransferPolicyCap.fromFields(typeArg, TransferPolicyCap.bcs.parse(data));
529
+ };
530
+ TransferPolicyCap.prototype.toJSONField = function () {
531
+ return {
532
+ id: this.id,
533
+ policyId: this.policyId,
534
+ };
535
+ };
536
+ TransferPolicyCap.prototype.toJSON = function () {
537
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
538
+ };
539
+ TransferPolicyCap.fromJSONField = function (typeArg, field) {
540
+ return TransferPolicyCap.reified(typeArg).new({
541
+ id: (0, reified_1.decodeFromJSONField)(structs_3.UID.reified(), field.id),
542
+ policyId: (0, reified_1.decodeFromJSONField)(structs_3.ID.reified(), field.policyId),
543
+ });
544
+ };
545
+ TransferPolicyCap.fromJSON = function (typeArg, json) {
546
+ if (json.$typeName !== TransferPolicyCap.$typeName) {
547
+ throw new Error("not a WithTwoGenerics json object");
548
+ }
549
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(TransferPolicyCap.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
550
+ return TransferPolicyCap.fromJSONField(typeArg, json);
551
+ };
552
+ TransferPolicyCap.fromSuiParsedData = function (typeArg, content) {
553
+ if (content.dataType !== "moveObject") {
554
+ throw new Error("not an object");
555
+ }
556
+ if (!isTransferPolicyCap(content.type)) {
557
+ throw new Error("object at ".concat(content.fields.id, " is not a TransferPolicyCap object"));
558
+ }
559
+ return TransferPolicyCap.fromFieldsWithTypes(typeArg, content);
560
+ };
561
+ TransferPolicyCap.fromSuiObjectData = function (typeArg, data) {
562
+ if (data.bcs) {
563
+ if (data.bcs.dataType !== "moveObject" || !isTransferPolicyCap(data.bcs.type)) {
564
+ throw new Error("object at is not a TransferPolicyCap object");
565
+ }
566
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
567
+ if (gotTypeArgs.length !== 1) {
568
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
569
+ }
570
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
571
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
572
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
573
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
574
+ }
575
+ return TransferPolicyCap.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
576
+ }
577
+ if (data.content) {
578
+ return TransferPolicyCap.fromSuiParsedData(typeArg, data.content);
579
+ }
580
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
581
+ };
582
+ TransferPolicyCap.fetch = function (client, typeArg, id) {
583
+ return __awaiter(this, void 0, void 0, function () {
584
+ var res;
585
+ var _a, _b;
586
+ return __generator(this, function (_c) {
587
+ switch (_c.label) {
588
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
589
+ case 1:
590
+ res = _c.sent();
591
+ if (res.error) {
592
+ throw new Error("error fetching TransferPolicyCap object at id ".concat(id, ": ").concat(res.error.code));
593
+ }
594
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTransferPolicyCap(res.data.bcs.type)) {
595
+ throw new Error("object at id ".concat(id, " is not a TransferPolicyCap object"));
596
+ }
597
+ return [2 /*return*/, TransferPolicyCap.fromSuiObjectData(typeArg, res.data)];
598
+ }
599
+ });
600
+ });
601
+ };
602
+ TransferPolicyCap.$typeName = "".concat(index_1.PKG_V26, "::transfer_policy::TransferPolicyCap");
603
+ TransferPolicyCap.$numTypeParams = 1;
604
+ TransferPolicyCap.$isPhantom = [true];
605
+ return TransferPolicyCap;
606
+ }());
607
+ exports.TransferPolicyCap = TransferPolicyCap;
608
+ /* ============================== TransferPolicyCreated =============================== */
609
+ function isTransferPolicyCreated(type) {
610
+ type = (0, util_1.compressSuiType)(type);
611
+ return type.startsWith("".concat(index_1.PKG_V26, "::transfer_policy::TransferPolicyCreated") + "<");
612
+ }
613
+ var TransferPolicyCreated = /** @class */ (function () {
614
+ function TransferPolicyCreated(typeArgs, fields) {
615
+ this.__StructClass = true;
616
+ this.$typeName = TransferPolicyCreated.$typeName;
617
+ this.$isPhantom = TransferPolicyCreated.$isPhantom;
618
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TransferPolicyCreated.$typeName], __read(typeArgs), false));
619
+ this.$typeArgs = typeArgs;
620
+ this.id = fields.id;
621
+ }
622
+ TransferPolicyCreated.reified = function (T) {
623
+ var _this = this;
624
+ return {
625
+ typeName: TransferPolicyCreated.$typeName,
626
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TransferPolicyCreated.$typeName], [(0, reified_1.extractType)(T)], false)),
627
+ typeArgs: [(0, reified_1.extractType)(T)],
628
+ isPhantom: TransferPolicyCreated.$isPhantom,
629
+ reifiedTypeArgs: [T],
630
+ fromFields: function (fields) { return TransferPolicyCreated.fromFields(T, fields); },
631
+ fromFieldsWithTypes: function (item) { return TransferPolicyCreated.fromFieldsWithTypes(T, item); },
632
+ fromBcs: function (data) { return TransferPolicyCreated.fromBcs(T, data); },
633
+ bcs: TransferPolicyCreated.bcs,
634
+ fromJSONField: function (field) { return TransferPolicyCreated.fromJSONField(T, field); },
635
+ fromJSON: function (json) { return TransferPolicyCreated.fromJSON(T, json); },
636
+ fromSuiParsedData: function (content) { return TransferPolicyCreated.fromSuiParsedData(T, content); },
637
+ fromSuiObjectData: function (content) { return TransferPolicyCreated.fromSuiObjectData(T, content); },
638
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
639
+ return [2 /*return*/, TransferPolicyCreated.fetch(client, T, id)];
640
+ }); }); },
641
+ new: function (fields) {
642
+ return new TransferPolicyCreated([(0, reified_1.extractType)(T)], fields);
643
+ },
644
+ kind: "StructClassReified",
645
+ };
646
+ };
647
+ Object.defineProperty(TransferPolicyCreated, "r", {
648
+ get: function () {
649
+ return TransferPolicyCreated.reified;
650
+ },
651
+ enumerable: false,
652
+ configurable: true
653
+ });
654
+ TransferPolicyCreated.phantom = function (T) {
655
+ return (0, reified_1.phantom)(TransferPolicyCreated.reified(T));
656
+ };
657
+ Object.defineProperty(TransferPolicyCreated, "p", {
658
+ get: function () {
659
+ return TransferPolicyCreated.phantom;
660
+ },
661
+ enumerable: false,
662
+ configurable: true
663
+ });
664
+ Object.defineProperty(TransferPolicyCreated, "bcs", {
665
+ get: function () {
666
+ return bcs_1.bcs.struct("TransferPolicyCreated", {
667
+ id: structs_3.ID.bcs,
668
+ });
669
+ },
670
+ enumerable: false,
671
+ configurable: true
672
+ });
673
+ TransferPolicyCreated.fromFields = function (typeArg, fields) {
674
+ return TransferPolicyCreated.reified(typeArg).new({
675
+ id: (0, reified_1.decodeFromFields)(structs_3.ID.reified(), fields.id),
676
+ });
677
+ };
678
+ TransferPolicyCreated.fromFieldsWithTypes = function (typeArg, item) {
679
+ if (!isTransferPolicyCreated(item.type)) {
680
+ throw new Error("not a TransferPolicyCreated type");
681
+ }
682
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
683
+ return TransferPolicyCreated.reified(typeArg).new({
684
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.ID.reified(), item.fields.id),
685
+ });
686
+ };
687
+ TransferPolicyCreated.fromBcs = function (typeArg, data) {
688
+ return TransferPolicyCreated.fromFields(typeArg, TransferPolicyCreated.bcs.parse(data));
689
+ };
690
+ TransferPolicyCreated.prototype.toJSONField = function () {
691
+ return {
692
+ id: this.id,
693
+ };
694
+ };
695
+ TransferPolicyCreated.prototype.toJSON = function () {
696
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
697
+ };
698
+ TransferPolicyCreated.fromJSONField = function (typeArg, field) {
699
+ return TransferPolicyCreated.reified(typeArg).new({
700
+ id: (0, reified_1.decodeFromJSONField)(structs_3.ID.reified(), field.id),
701
+ });
702
+ };
703
+ TransferPolicyCreated.fromJSON = function (typeArg, json) {
704
+ if (json.$typeName !== TransferPolicyCreated.$typeName) {
705
+ throw new Error("not a WithTwoGenerics json object");
706
+ }
707
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(TransferPolicyCreated.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
708
+ return TransferPolicyCreated.fromJSONField(typeArg, json);
709
+ };
710
+ TransferPolicyCreated.fromSuiParsedData = function (typeArg, content) {
711
+ if (content.dataType !== "moveObject") {
712
+ throw new Error("not an object");
713
+ }
714
+ if (!isTransferPolicyCreated(content.type)) {
715
+ throw new Error("object at ".concat(content.fields.id, " is not a TransferPolicyCreated object"));
716
+ }
717
+ return TransferPolicyCreated.fromFieldsWithTypes(typeArg, content);
718
+ };
719
+ TransferPolicyCreated.fromSuiObjectData = function (typeArg, data) {
720
+ if (data.bcs) {
721
+ if (data.bcs.dataType !== "moveObject" || !isTransferPolicyCreated(data.bcs.type)) {
722
+ throw new Error("object at is not a TransferPolicyCreated object");
723
+ }
724
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
725
+ if (gotTypeArgs.length !== 1) {
726
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
727
+ }
728
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
729
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
730
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
731
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
732
+ }
733
+ return TransferPolicyCreated.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
734
+ }
735
+ if (data.content) {
736
+ return TransferPolicyCreated.fromSuiParsedData(typeArg, data.content);
737
+ }
738
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
739
+ };
740
+ TransferPolicyCreated.fetch = function (client, typeArg, id) {
741
+ return __awaiter(this, void 0, void 0, function () {
742
+ var res;
743
+ var _a, _b;
744
+ return __generator(this, function (_c) {
745
+ switch (_c.label) {
746
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
747
+ case 1:
748
+ res = _c.sent();
749
+ if (res.error) {
750
+ throw new Error("error fetching TransferPolicyCreated object at id ".concat(id, ": ").concat(res.error.code));
751
+ }
752
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTransferPolicyCreated(res.data.bcs.type)) {
753
+ throw new Error("object at id ".concat(id, " is not a TransferPolicyCreated object"));
754
+ }
755
+ return [2 /*return*/, TransferPolicyCreated.fromSuiObjectData(typeArg, res.data)];
756
+ }
757
+ });
758
+ });
759
+ };
760
+ TransferPolicyCreated.$typeName = "".concat(index_1.PKG_V26, "::transfer_policy::TransferPolicyCreated");
761
+ TransferPolicyCreated.$numTypeParams = 1;
762
+ TransferPolicyCreated.$isPhantom = [true];
763
+ return TransferPolicyCreated;
764
+ }());
765
+ exports.TransferPolicyCreated = TransferPolicyCreated;
766
+ /* ============================== TransferPolicyDestroyed =============================== */
767
+ function isTransferPolicyDestroyed(type) {
768
+ type = (0, util_1.compressSuiType)(type);
769
+ return type.startsWith("".concat(index_1.PKG_V26, "::transfer_policy::TransferPolicyDestroyed") + "<");
770
+ }
771
+ var TransferPolicyDestroyed = /** @class */ (function () {
772
+ function TransferPolicyDestroyed(typeArgs, fields) {
773
+ this.__StructClass = true;
774
+ this.$typeName = TransferPolicyDestroyed.$typeName;
775
+ this.$isPhantom = TransferPolicyDestroyed.$isPhantom;
776
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TransferPolicyDestroyed.$typeName], __read(typeArgs), false));
777
+ this.$typeArgs = typeArgs;
778
+ this.id = fields.id;
779
+ }
780
+ TransferPolicyDestroyed.reified = function (T) {
781
+ var _this = this;
782
+ return {
783
+ typeName: TransferPolicyDestroyed.$typeName,
784
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TransferPolicyDestroyed.$typeName], [(0, reified_1.extractType)(T)], false)),
785
+ typeArgs: [(0, reified_1.extractType)(T)],
786
+ isPhantom: TransferPolicyDestroyed.$isPhantom,
787
+ reifiedTypeArgs: [T],
788
+ fromFields: function (fields) { return TransferPolicyDestroyed.fromFields(T, fields); },
789
+ fromFieldsWithTypes: function (item) { return TransferPolicyDestroyed.fromFieldsWithTypes(T, item); },
790
+ fromBcs: function (data) { return TransferPolicyDestroyed.fromBcs(T, data); },
791
+ bcs: TransferPolicyDestroyed.bcs,
792
+ fromJSONField: function (field) { return TransferPolicyDestroyed.fromJSONField(T, field); },
793
+ fromJSON: function (json) { return TransferPolicyDestroyed.fromJSON(T, json); },
794
+ fromSuiParsedData: function (content) { return TransferPolicyDestroyed.fromSuiParsedData(T, content); },
795
+ fromSuiObjectData: function (content) { return TransferPolicyDestroyed.fromSuiObjectData(T, content); },
796
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
797
+ return [2 /*return*/, TransferPolicyDestroyed.fetch(client, T, id)];
798
+ }); }); },
799
+ new: function (fields) {
800
+ return new TransferPolicyDestroyed([(0, reified_1.extractType)(T)], fields);
801
+ },
802
+ kind: "StructClassReified",
803
+ };
804
+ };
805
+ Object.defineProperty(TransferPolicyDestroyed, "r", {
806
+ get: function () {
807
+ return TransferPolicyDestroyed.reified;
808
+ },
809
+ enumerable: false,
810
+ configurable: true
811
+ });
812
+ TransferPolicyDestroyed.phantom = function (T) {
813
+ return (0, reified_1.phantom)(TransferPolicyDestroyed.reified(T));
814
+ };
815
+ Object.defineProperty(TransferPolicyDestroyed, "p", {
816
+ get: function () {
817
+ return TransferPolicyDestroyed.phantom;
818
+ },
819
+ enumerable: false,
820
+ configurable: true
821
+ });
822
+ Object.defineProperty(TransferPolicyDestroyed, "bcs", {
823
+ get: function () {
824
+ return bcs_1.bcs.struct("TransferPolicyDestroyed", {
825
+ id: structs_3.ID.bcs,
826
+ });
827
+ },
828
+ enumerable: false,
829
+ configurable: true
830
+ });
831
+ TransferPolicyDestroyed.fromFields = function (typeArg, fields) {
832
+ return TransferPolicyDestroyed.reified(typeArg).new({
833
+ id: (0, reified_1.decodeFromFields)(structs_3.ID.reified(), fields.id),
834
+ });
835
+ };
836
+ TransferPolicyDestroyed.fromFieldsWithTypes = function (typeArg, item) {
837
+ if (!isTransferPolicyDestroyed(item.type)) {
838
+ throw new Error("not a TransferPolicyDestroyed type");
839
+ }
840
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
841
+ return TransferPolicyDestroyed.reified(typeArg).new({
842
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.ID.reified(), item.fields.id),
843
+ });
844
+ };
845
+ TransferPolicyDestroyed.fromBcs = function (typeArg, data) {
846
+ return TransferPolicyDestroyed.fromFields(typeArg, TransferPolicyDestroyed.bcs.parse(data));
847
+ };
848
+ TransferPolicyDestroyed.prototype.toJSONField = function () {
849
+ return {
850
+ id: this.id,
851
+ };
852
+ };
853
+ TransferPolicyDestroyed.prototype.toJSON = function () {
854
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
855
+ };
856
+ TransferPolicyDestroyed.fromJSONField = function (typeArg, field) {
857
+ return TransferPolicyDestroyed.reified(typeArg).new({
858
+ id: (0, reified_1.decodeFromJSONField)(structs_3.ID.reified(), field.id),
859
+ });
860
+ };
861
+ TransferPolicyDestroyed.fromJSON = function (typeArg, json) {
862
+ if (json.$typeName !== TransferPolicyDestroyed.$typeName) {
863
+ throw new Error("not a WithTwoGenerics json object");
864
+ }
865
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(TransferPolicyDestroyed.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
866
+ return TransferPolicyDestroyed.fromJSONField(typeArg, json);
867
+ };
868
+ TransferPolicyDestroyed.fromSuiParsedData = function (typeArg, content) {
869
+ if (content.dataType !== "moveObject") {
870
+ throw new Error("not an object");
871
+ }
872
+ if (!isTransferPolicyDestroyed(content.type)) {
873
+ throw new Error("object at ".concat(content.fields.id, " is not a TransferPolicyDestroyed object"));
874
+ }
875
+ return TransferPolicyDestroyed.fromFieldsWithTypes(typeArg, content);
876
+ };
877
+ TransferPolicyDestroyed.fromSuiObjectData = function (typeArg, data) {
878
+ if (data.bcs) {
879
+ if (data.bcs.dataType !== "moveObject" || !isTransferPolicyDestroyed(data.bcs.type)) {
880
+ throw new Error("object at is not a TransferPolicyDestroyed object");
881
+ }
882
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
883
+ if (gotTypeArgs.length !== 1) {
884
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
885
+ }
886
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
887
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
888
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
889
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
890
+ }
891
+ return TransferPolicyDestroyed.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
892
+ }
893
+ if (data.content) {
894
+ return TransferPolicyDestroyed.fromSuiParsedData(typeArg, data.content);
895
+ }
896
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
897
+ };
898
+ TransferPolicyDestroyed.fetch = function (client, typeArg, id) {
899
+ return __awaiter(this, void 0, void 0, function () {
900
+ var res;
901
+ var _a, _b;
902
+ return __generator(this, function (_c) {
903
+ switch (_c.label) {
904
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
905
+ case 1:
906
+ res = _c.sent();
907
+ if (res.error) {
908
+ throw new Error("error fetching TransferPolicyDestroyed object at id ".concat(id, ": ").concat(res.error.code));
909
+ }
910
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTransferPolicyDestroyed(res.data.bcs.type)) {
911
+ throw new Error("object at id ".concat(id, " is not a TransferPolicyDestroyed object"));
912
+ }
913
+ return [2 /*return*/, TransferPolicyDestroyed.fromSuiObjectData(typeArg, res.data)];
914
+ }
915
+ });
916
+ });
917
+ };
918
+ TransferPolicyDestroyed.$typeName = "".concat(index_1.PKG_V26, "::transfer_policy::TransferPolicyDestroyed");
919
+ TransferPolicyDestroyed.$numTypeParams = 1;
920
+ TransferPolicyDestroyed.$isPhantom = [true];
921
+ return TransferPolicyDestroyed;
922
+ }());
923
+ exports.TransferPolicyDestroyed = TransferPolicyDestroyed;
924
+ /* ============================== TransferRequest =============================== */
925
+ function isTransferRequest(type) {
926
+ type = (0, util_1.compressSuiType)(type);
927
+ return type.startsWith("".concat(index_1.PKG_V26, "::transfer_policy::TransferRequest") + "<");
928
+ }
929
+ var TransferRequest = /** @class */ (function () {
930
+ function TransferRequest(typeArgs, fields) {
931
+ this.__StructClass = true;
932
+ this.$typeName = TransferRequest.$typeName;
933
+ this.$isPhantom = TransferRequest.$isPhantom;
934
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TransferRequest.$typeName], __read(typeArgs), false));
935
+ this.$typeArgs = typeArgs;
936
+ this.item = fields.item;
937
+ this.paid = fields.paid;
938
+ this.from = fields.from;
939
+ this.receipts = fields.receipts;
940
+ }
941
+ TransferRequest.reified = function (T) {
942
+ var _this = this;
943
+ return {
944
+ typeName: TransferRequest.$typeName,
945
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TransferRequest.$typeName], [(0, reified_1.extractType)(T)], false)),
946
+ typeArgs: [(0, reified_1.extractType)(T)],
947
+ isPhantom: TransferRequest.$isPhantom,
948
+ reifiedTypeArgs: [T],
949
+ fromFields: function (fields) { return TransferRequest.fromFields(T, fields); },
950
+ fromFieldsWithTypes: function (item) { return TransferRequest.fromFieldsWithTypes(T, item); },
951
+ fromBcs: function (data) { return TransferRequest.fromBcs(T, data); },
952
+ bcs: TransferRequest.bcs,
953
+ fromJSONField: function (field) { return TransferRequest.fromJSONField(T, field); },
954
+ fromJSON: function (json) { return TransferRequest.fromJSON(T, json); },
955
+ fromSuiParsedData: function (content) { return TransferRequest.fromSuiParsedData(T, content); },
956
+ fromSuiObjectData: function (content) { return TransferRequest.fromSuiObjectData(T, content); },
957
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
958
+ return [2 /*return*/, TransferRequest.fetch(client, T, id)];
959
+ }); }); },
960
+ new: function (fields) {
961
+ return new TransferRequest([(0, reified_1.extractType)(T)], fields);
962
+ },
963
+ kind: "StructClassReified",
964
+ };
965
+ };
966
+ Object.defineProperty(TransferRequest, "r", {
967
+ get: function () {
968
+ return TransferRequest.reified;
969
+ },
970
+ enumerable: false,
971
+ configurable: true
972
+ });
973
+ TransferRequest.phantom = function (T) {
974
+ return (0, reified_1.phantom)(TransferRequest.reified(T));
975
+ };
976
+ Object.defineProperty(TransferRequest, "p", {
977
+ get: function () {
978
+ return TransferRequest.phantom;
979
+ },
980
+ enumerable: false,
981
+ configurable: true
982
+ });
983
+ Object.defineProperty(TransferRequest, "bcs", {
984
+ get: function () {
985
+ return bcs_1.bcs.struct("TransferRequest", {
986
+ item: structs_3.ID.bcs,
987
+ paid: bcs_1.bcs.u64(),
988
+ from: structs_3.ID.bcs,
989
+ receipts: structs_5.VecSet.bcs(structs_1.TypeName.bcs),
990
+ });
991
+ },
992
+ enumerable: false,
993
+ configurable: true
994
+ });
995
+ TransferRequest.fromFields = function (typeArg, fields) {
996
+ return TransferRequest.reified(typeArg).new({
997
+ item: (0, reified_1.decodeFromFields)(structs_3.ID.reified(), fields.item),
998
+ paid: (0, reified_1.decodeFromFields)("u64", fields.paid),
999
+ from: (0, reified_1.decodeFromFields)(structs_3.ID.reified(), fields.from),
1000
+ receipts: (0, reified_1.decodeFromFields)(structs_5.VecSet.reified(structs_1.TypeName.reified()), fields.receipts),
1001
+ });
1002
+ };
1003
+ TransferRequest.fromFieldsWithTypes = function (typeArg, item) {
1004
+ if (!isTransferRequest(item.type)) {
1005
+ throw new Error("not a TransferRequest type");
1006
+ }
1007
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
1008
+ return TransferRequest.reified(typeArg).new({
1009
+ item: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.ID.reified(), item.fields.item),
1010
+ paid: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.paid),
1011
+ from: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.ID.reified(), item.fields.from),
1012
+ receipts: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecSet.reified(structs_1.TypeName.reified()), item.fields.receipts),
1013
+ });
1014
+ };
1015
+ TransferRequest.fromBcs = function (typeArg, data) {
1016
+ return TransferRequest.fromFields(typeArg, TransferRequest.bcs.parse(data));
1017
+ };
1018
+ TransferRequest.prototype.toJSONField = function () {
1019
+ return {
1020
+ item: this.item,
1021
+ paid: this.paid.toString(),
1022
+ from: this.from,
1023
+ receipts: this.receipts.toJSONField(),
1024
+ };
1025
+ };
1026
+ TransferRequest.prototype.toJSON = function () {
1027
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1028
+ };
1029
+ TransferRequest.fromJSONField = function (typeArg, field) {
1030
+ return TransferRequest.reified(typeArg).new({
1031
+ item: (0, reified_1.decodeFromJSONField)(structs_3.ID.reified(), field.item),
1032
+ paid: (0, reified_1.decodeFromJSONField)("u64", field.paid),
1033
+ from: (0, reified_1.decodeFromJSONField)(structs_3.ID.reified(), field.from),
1034
+ receipts: (0, reified_1.decodeFromJSONField)(structs_5.VecSet.reified(structs_1.TypeName.reified()), field.receipts),
1035
+ });
1036
+ };
1037
+ TransferRequest.fromJSON = function (typeArg, json) {
1038
+ if (json.$typeName !== TransferRequest.$typeName) {
1039
+ throw new Error("not a WithTwoGenerics json object");
1040
+ }
1041
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(TransferRequest.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
1042
+ return TransferRequest.fromJSONField(typeArg, json);
1043
+ };
1044
+ TransferRequest.fromSuiParsedData = function (typeArg, content) {
1045
+ if (content.dataType !== "moveObject") {
1046
+ throw new Error("not an object");
1047
+ }
1048
+ if (!isTransferRequest(content.type)) {
1049
+ throw new Error("object at ".concat(content.fields.id, " is not a TransferRequest object"));
1050
+ }
1051
+ return TransferRequest.fromFieldsWithTypes(typeArg, content);
1052
+ };
1053
+ TransferRequest.fromSuiObjectData = function (typeArg, data) {
1054
+ if (data.bcs) {
1055
+ if (data.bcs.dataType !== "moveObject" || !isTransferRequest(data.bcs.type)) {
1056
+ throw new Error("object at is not a TransferRequest object");
1057
+ }
1058
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
1059
+ if (gotTypeArgs.length !== 1) {
1060
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
1061
+ }
1062
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
1063
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
1064
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
1065
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
1066
+ }
1067
+ return TransferRequest.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
1068
+ }
1069
+ if (data.content) {
1070
+ return TransferRequest.fromSuiParsedData(typeArg, data.content);
1071
+ }
1072
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1073
+ };
1074
+ TransferRequest.fetch = function (client, typeArg, id) {
1075
+ return __awaiter(this, void 0, void 0, function () {
1076
+ var res;
1077
+ var _a, _b;
1078
+ return __generator(this, function (_c) {
1079
+ switch (_c.label) {
1080
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1081
+ case 1:
1082
+ res = _c.sent();
1083
+ if (res.error) {
1084
+ throw new Error("error fetching TransferRequest object at id ".concat(id, ": ").concat(res.error.code));
1085
+ }
1086
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTransferRequest(res.data.bcs.type)) {
1087
+ throw new Error("object at id ".concat(id, " is not a TransferRequest object"));
1088
+ }
1089
+ return [2 /*return*/, TransferRequest.fromSuiObjectData(typeArg, res.data)];
1090
+ }
1091
+ });
1092
+ });
1093
+ };
1094
+ TransferRequest.$typeName = "".concat(index_1.PKG_V26, "::transfer_policy::TransferRequest");
1095
+ TransferRequest.$numTypeParams = 1;
1096
+ TransferRequest.$isPhantom = [true];
1097
+ return TransferRequest;
1098
+ }());
1099
+ exports.TransferRequest = TransferRequest;