@typus/typus-perp-sdk 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/dist/src/_framework/init-loader.js +4 -32
  2. package/dist/src/fetch.d.ts +8 -4
  3. package/dist/src/fetch.js +107 -110
  4. package/dist/src/index.d.ts +0 -2
  5. package/dist/src/index.js +0 -2
  6. package/dist/src/typus_perp/admin/structs.d.ts +4 -4
  7. package/dist/src/typus_perp/error/functions.d.ts +3 -0
  8. package/dist/src/typus_perp/error/functions.js +12 -0
  9. package/dist/src/typus_perp/escrow/structs.d.ts +1 -1
  10. package/dist/src/typus_perp/index.js +4 -4
  11. package/dist/src/typus_perp/init.js +0 -1
  12. package/dist/src/typus_perp/lp-pool/structs.d.ts +26 -26
  13. package/dist/src/typus_perp/oracle/structs.d.ts +2 -2
  14. package/dist/src/typus_perp/position/structs.d.ts +25 -7
  15. package/dist/src/typus_perp/position/structs.js +12 -0
  16. package/dist/src/typus_perp/symbol/structs.d.ts +1 -1
  17. package/dist/src/typus_perp/tlp/structs.d.ts +2 -2
  18. package/dist/src/typus_perp/trading/structs.d.ts +35 -139
  19. package/dist/src/typus_perp/trading/structs.js +7 -173
  20. package/dist/src/typus_perp/treasury-caps/structs.d.ts +1 -1
  21. package/dist/src/typus_stake_pool/admin/structs.d.ts +4 -4
  22. package/dist/src/typus_stake_pool/index.js +4 -4
  23. package/dist/src/typus_stake_pool/init.js +2 -2
  24. package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +16 -16
  25. package/dist/src/typus_stake_pool/stake-pool/functions.js +28 -28
  26. package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +202 -202
  27. package/dist/src/typus_stake_pool/stake-pool/structs.js +404 -404
  28. package/dist/src/user/history.js +4 -4
  29. package/package.json +1 -1
  30. package/dist/src/_dependencies/source/0x1/bit-vector/structs.d.ts +0 -56
  31. package/dist/src/_dependencies/source/0x1/bit-vector/structs.js +0 -268
  32. package/dist/src/_dependencies/source/0x1/fixed-point32/structs.d.ts +0 -46
  33. package/dist/src/_dependencies/source/0x1/fixed-point32/structs.js +0 -222
  34. package/dist/src/_dependencies/source/0x1/init.d.ts +0 -2
  35. package/dist/src/_dependencies/source/0x1/init.js +0 -55
  36. package/dist/src/_dependencies/source/0x1/uq32-32/structs.d.ts +0 -46
  37. package/dist/src/_dependencies/source/0x1/uq32-32/structs.js +0 -222
  38. package/dist/src/_dependencies/source/0x1/uq64-64/structs.d.ts +0 -46
  39. package/dist/src/_dependencies/source/0x1/uq64-64/structs.js +0 -222
  40. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +0 -5
  41. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +0 -8
  42. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +0 -2
  43. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +0 -50
  44. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +0 -350
  45. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +0 -794
  46. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +0 -111
  47. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +0 -389
  48. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +0 -70
  49. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +0 -252
  50. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +0 -70
  51. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +0 -252
  52. package/dist/src/_dependencies/source/0x2/authenticator-state/structs.d.ts +0 -464
  53. package/dist/src/_dependencies/source/0x2/authenticator-state/structs.js +0 -904
  54. package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +0 -61
  55. package/dist/src/_dependencies/source/0x2/bag/structs.js +0 -229
  56. package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +0 -88
  57. package/dist/src/_dependencies/source/0x2/balance/structs.js +0 -386
  58. package/dist/src/_dependencies/source/0x2/bcs/structs.d.ts +0 -50
  59. package/dist/src/_dependencies/source/0x2/bcs/structs.js +0 -256
  60. package/dist/src/_dependencies/source/0x2/bls12381/structs.d.ts +0 -214
  61. package/dist/src/_dependencies/source/0x2/bls12381/structs.js +0 -790
  62. package/dist/src/_dependencies/source/0x2/borrow/structs.d.ts +0 -113
  63. package/dist/src/_dependencies/source/0x2/borrow/structs.js +0 -398
  64. package/dist/src/_dependencies/source/0x2/clock/structs.d.ts +0 -61
  65. package/dist/src/_dependencies/source/0x2/clock/structs.js +0 -235
  66. package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +0 -460
  67. package/dist/src/_dependencies/source/0x2/coin/structs.js +0 -1247
  68. package/dist/src/_dependencies/source/0x2/config/structs.d.ts +0 -179
  69. package/dist/src/_dependencies/source/0x2/config/structs.js +0 -567
  70. package/dist/src/_dependencies/source/0x2/deny-list/structs.d.ts +0 -430
  71. package/dist/src/_dependencies/source/0x2/deny-list/structs.js +0 -1166
  72. package/dist/src/_dependencies/source/0x2/display/structs.d.ts +0 -241
  73. package/dist/src/_dependencies/source/0x2/display/structs.js +0 -578
  74. package/dist/src/_dependencies/source/0x2/dynamic-field/structs.d.ts +0 -68
  75. package/dist/src/_dependencies/source/0x2/dynamic-field/structs.js +0 -256
  76. package/dist/src/_dependencies/source/0x2/dynamic-object-field/structs.d.ts +0 -47
  77. package/dist/src/_dependencies/source/0x2/dynamic-object-field/structs.js +0 -236
  78. package/dist/src/_dependencies/source/0x2/groth16/structs.d.ts +0 -204
  79. package/dist/src/_dependencies/source/0x2/groth16/structs.js +0 -706
  80. package/dist/src/_dependencies/source/0x2/group-ops/structs.d.ts +0 -50
  81. package/dist/src/_dependencies/source/0x2/group-ops/structs.js +0 -267
  82. package/dist/src/_dependencies/source/0x2/init.d.ts +0 -2
  83. package/dist/src/_dependencies/source/0x2/init.js +0 -171
  84. package/dist/src/_dependencies/source/0x2/kiosk/structs.d.ts +0 -606
  85. package/dist/src/_dependencies/source/0x2/kiosk/structs.js +0 -1719
  86. package/dist/src/_dependencies/source/0x2/kiosk-extension/structs.d.ts +0 -121
  87. package/dist/src/_dependencies/source/0x2/kiosk-extension/structs.js +0 -394
  88. package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +0 -153
  89. package/dist/src/_dependencies/source/0x2/linked-table/structs.js +0 -438
  90. package/dist/src/_dependencies/source/0x2/object-bag/structs.d.ts +0 -61
  91. package/dist/src/_dependencies/source/0x2/object-bag/structs.js +0 -229
  92. package/dist/src/_dependencies/source/0x2/package/structs.d.ts +0 -280
  93. package/dist/src/_dependencies/source/0x2/package/structs.js +0 -762
  94. package/dist/src/_dependencies/source/0x2/priority-queue/structs.d.ts +0 -111
  95. package/dist/src/_dependencies/source/0x2/priority-queue/structs.js +0 -440
  96. package/dist/src/_dependencies/source/0x2/random/structs.d.ts +0 -204
  97. package/dist/src/_dependencies/source/0x2/random/structs.js +0 -596
  98. package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +0 -46
  99. package/dist/src/_dependencies/source/0x2/sui/structs.js +0 -222
  100. package/dist/src/_dependencies/source/0x2/table/structs.d.ts +0 -61
  101. package/dist/src/_dependencies/source/0x2/table/structs.js +0 -248
  102. package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +0 -68
  103. package/dist/src/_dependencies/source/0x2/table-vec/structs.js +0 -274
  104. package/dist/src/_dependencies/source/0x2/token/structs.d.ts +0 -449
  105. package/dist/src/_dependencies/source/0x2/token/structs.js +0 -1095
  106. package/dist/src/_dependencies/source/0x2/transfer/structs.d.ts +0 -57
  107. package/dist/src/_dependencies/source/0x2/transfer/structs.js +0 -246
  108. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -370
  109. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -1091
  110. package/dist/src/_dependencies/source/0x2/tx-context/structs.d.ts +0 -74
  111. package/dist/src/_dependencies/source/0x2/tx-context/structs.js +0 -286
  112. package/dist/src/_dependencies/source/0x2/url/structs.d.ts +0 -53
  113. package/dist/src/_dependencies/source/0x2/url/structs.js +0 -223
  114. package/dist/src/_dependencies/source/0x2/versioned/structs.d.ts +0 -113
  115. package/dist/src/_dependencies/source/0x2/versioned/structs.js +0 -389
  116. package/dist/src/_dependencies/source/0x2/zklogin-verified-id/structs.d.ts +0 -110
  117. package/dist/src/_dependencies/source/0x2/zklogin-verified-id/structs.js +0 -260
  118. package/dist/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.d.ts +0 -74
  119. package/dist/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.js +0 -242
  120. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +0 -3
  121. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +0 -6
  122. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +0 -2
  123. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +0 -40
  124. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +0 -55
  125. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +0 -223
  126. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +0 -4
  127. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +0 -7
  128. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +0 -2
  129. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +0 -43
  130. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +0 -46
  131. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +0 -222
  132. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +0 -121
  133. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +0 -395
  134. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +0 -489
  135. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +0 -1084
  136. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +0 -147
  137. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +0 -456
  138. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +0 -239
  139. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +0 -653
  140. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +0 -405
  141. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +0 -899
  142. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +0 -2
  143. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +0 -102
  144. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +0 -699
  145. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +0 -1459
  146. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +0 -147
  147. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +0 -430
  148. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.d.ts +0 -1071
  149. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.js +0 -2261
  150. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +0 -279
  151. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +0 -733
  152. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +0 -328
  153. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +0 -892
  154. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +0 -628
  155. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +0 -1324
  156. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +0 -9
  157. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +0 -12
  158. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +0 -2
  159. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +0 -72
  160. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +0 -94
  161. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.js +0 -376
  162. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +0 -454
  163. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +0 -881
  164. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +0 -68
  165. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +0 -274
  166. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +0 -1117
  167. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +0 -2387
  168. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +0 -1524
  169. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +0 -3008
  170. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +0 -10
  171. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +0 -13
  172. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +0 -2
  173. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +0 -145
  174. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +0 -1267
  175. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +0 -2820
  176. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +0 -1412
  177. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +0 -1646
  178. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +0 -425
  179. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +0 -1223
  180. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +0 -1156
  181. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +0 -1828
  182. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +0 -82
  183. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +0 -264
  184. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +0 -5022
  185. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +0 -7585
  186. package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +0 -3
  187. package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +0 -6
  188. package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +0 -2
  189. package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +0 -4
  190. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +0 -88
  191. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +0 -263
  192. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +0 -347
  193. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +0 -591
  194. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +0 -73
  195. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +0 -258
  196. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +0 -876
  197. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +0 -1721
  198. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +0 -46
  199. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +0 -222
  200. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +0 -2
  201. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +0 -89
  202. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +0 -155
  203. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +0 -444
  204. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +0 -745
  205. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +0 -1221
  206. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +0 -2
  207. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +0 -53
  208. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +0 -87
  209. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +0 -287
  210. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +0 -58
  211. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +0 -240
  212. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +0 -121
  213. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +0 -323
  214. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +0 -55
  215. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +0 -223
  216. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/batch-price-attestation/structs.d.ts +0 -289
  217. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/batch-price-attestation/structs.js +0 -453
  218. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/contract-upgrade/structs.d.ts +0 -114
  219. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/contract-upgrade/structs.js +0 -378
  220. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/data-source/structs.d.ts +0 -71
  221. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/data-source/structs.js +0 -235
  222. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/event/structs.d.ts +0 -209
  223. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/event/structs.js +0 -377
  224. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance/structs.d.ts +0 -73
  225. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance/structs.js +0 -275
  226. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-action/structs.d.ts +0 -46
  227. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-action/structs.js +0 -222
  228. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-instruction/structs.d.ts +0 -77
  229. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-instruction/structs.js +0 -281
  230. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/hot-potato-vector/structs.d.ts +0 -51
  231. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/hot-potato-vector/structs.js +0 -270
  232. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/i64/structs.d.ts +0 -52
  233. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/i64/structs.js +0 -234
  234. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.d.ts +0 -3
  235. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.js +0 -6
  236. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/init.d.ts +0 -2
  237. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/init.js +0 -95
  238. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/migrate/structs.d.ts +0 -51
  239. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/migrate/structs.js +0 -223
  240. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price/structs.d.ts +0 -89
  241. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price/structs.js +0 -247
  242. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-feed/structs.d.ts +0 -158
  243. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-feed/structs.js +0 -242
  244. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-identifier/structs.d.ts +0 -50
  245. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-identifier/structs.js +0 -256
  246. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-info/structs.d.ts +0 -360
  247. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-info/structs.js +0 -396
  248. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-status/structs.d.ts +0 -46
  249. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-status/structs.js +0 -222
  250. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set/structs.d.ts +0 -120
  251. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set/structs.js +0 -425
  252. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-data-sources/structs.d.ts +0 -81
  253. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-data-sources/structs.js +0 -257
  254. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-fee-recipient/structs.d.ts +0 -46
  255. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-fee-recipient/structs.js +0 -222
  256. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-governance-data-source/structs.d.ts +0 -77
  257. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-governance-data-source/structs.js +0 -241
  258. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-stale-price-threshold/structs.d.ts +0 -46
  259. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-stale-price-threshold/structs.js +0 -222
  260. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-update-fee/structs.d.ts +0 -52
  261. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-update-fee/structs.js +0 -234
  262. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/setup/structs.d.ts +0 -55
  263. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/setup/structs.js +0 -223
  264. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.d.ts +0 -282
  265. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.js +0 -560
  266. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.d.ts +0 -130
  267. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.js +0 -506
  268. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +0 -3
  269. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +0 -6
  270. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.d.ts +0 -2
  271. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +0 -46
  272. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +0 -88
  273. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +0 -364
  274. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +0 -94
  275. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.js +0 -376
  276. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +0 -46
  277. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +0 -233
  278. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes20/structs.d.ts +0 -50
  279. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes20/structs.js +0 -256
  280. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes32/structs.d.ts +0 -50
  281. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes32/structs.js +0 -256
  282. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed-vaas/structs.d.ts +0 -77
  283. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed-vaas/structs.js +0 -260
  284. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/cursor/structs.d.ts +0 -51
  285. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/cursor/structs.js +0 -270
  286. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.d.ts +0 -153
  287. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.js +0 -519
  288. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/external-address/structs.d.ts +0 -57
  289. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/external-address/structs.js +0 -223
  290. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/fee-collector/structs.d.ts +0 -63
  291. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/fee-collector/structs.js +0 -270
  292. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.d.ts +0 -168
  293. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.js +0 -470
  294. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian/structs.d.ts +0 -57
  295. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian/structs.js +0 -223
  296. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-set/structs.d.ts +0 -81
  297. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-set/structs.js +0 -275
  298. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-signature/structs.d.ts +0 -85
  299. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-signature/structs.js +0 -247
  300. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.d.ts +0 -3
  301. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.js +0 -6
  302. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/init.d.ts +0 -2
  303. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/init.js +0 -100
  304. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/migrate/structs.d.ts +0 -51
  305. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/migrate/structs.js +0 -223
  306. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.d.ts +0 -194
  307. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.js +0 -662
  308. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.d.ts +0 -151
  309. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.js +0 -459
  310. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set/structs.d.ts +0 -110
  311. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set/structs.js +0 -416
  312. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set-fee/structs.d.ts +0 -88
  313. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set-fee/structs.js +0 -364
  314. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/setup/structs.d.ts +0 -55
  315. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/setup/structs.js +0 -223
  316. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.d.ts +0 -278
  317. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.js +0 -459
  318. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/transfer-fee/structs.d.ts +0 -94
  319. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/transfer-fee/structs.js +0 -376
  320. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/update-guardian-set/structs.d.ts +0 -159
  321. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/update-guardian-set/structs.js +0 -553
  322. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.d.ts +0 -156
  323. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.js +0 -520
  324. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/vaa/structs.d.ts +0 -128
  325. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/vaa/structs.js +0 -312
  326. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/version-control/structs.d.ts +0 -88
  327. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/version-control/structs.js +0 -364
  328. package/dist/src/readVec.d.ts +0 -3
  329. package/dist/src/readVec.js +0 -118
@@ -1,892 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || (function () {
30
- var ownKeys = function(o) {
31
- ownKeys = Object.getOwnPropertyNames || function (o) {
32
- var ar = [];
33
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
- return ar;
35
- };
36
- return ownKeys(o);
37
- };
38
- return function (mod) {
39
- if (mod && mod.__esModule) return mod;
40
- var result = {};
41
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
- __setModuleDefault(result, mod);
43
- return result;
44
- };
45
- })();
46
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
47
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
48
- return new (P || (P = Promise))(function (resolve, reject) {
49
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
50
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
51
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
52
- step((generator = generator.apply(thisArg, _arguments || [])).next());
53
- });
54
- };
55
- var __generator = (this && this.__generator) || function (thisArg, body) {
56
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
57
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
58
- function verb(n) { return function (v) { return step([n, v]); }; }
59
- function step(op) {
60
- if (f) throw new TypeError("Generator is already executing.");
61
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
62
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
63
- if (y = 0, t) op = [op[0] & 2, t.value];
64
- switch (op[0]) {
65
- case 0: case 1: t = op; break;
66
- case 4: _.label++; return { value: op[1], done: false };
67
- case 5: _.label++; y = op[1]; op = [0]; continue;
68
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
69
- default:
70
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
71
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
72
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
73
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
74
- if (t[2]) _.ops.pop();
75
- _.trys.pop(); continue;
76
- }
77
- op = body.call(thisArg, _);
78
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
79
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
80
- }
81
- };
82
- var __read = (this && this.__read) || function (o, n) {
83
- var m = typeof Symbol === "function" && o[Symbol.iterator];
84
- if (!m) return o;
85
- var i = m.call(o), r, ar = [], e;
86
- try {
87
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
88
- }
89
- catch (error) { e = { error: error }; }
90
- finally {
91
- try {
92
- if (r && !r.done && (m = i["return"])) m.call(i);
93
- }
94
- finally { if (e) throw e.error; }
95
- }
96
- return ar;
97
- };
98
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
99
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
100
- if (ar || !(i in from)) {
101
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
102
- ar[i] = from[i];
103
- }
104
- }
105
- return to.concat(ar || Array.prototype.slice.call(from));
106
- };
107
- Object.defineProperty(exports, "__esModule", { value: true });
108
- exports.TypusUserRegistry = exports.RemoveTailsExpAmount = exports.Metadata = exports.AddTailsExpAmount = exports.AddAccumulatedTgldAmount = void 0;
109
- exports.isAddAccumulatedTgldAmount = isAddAccumulatedTgldAmount;
110
- exports.isAddTailsExpAmount = isAddTailsExpAmount;
111
- exports.isMetadata = isMetadata;
112
- exports.isRemoveTailsExpAmount = isRemoveTailsExpAmount;
113
- exports.isTypusUserRegistry = isTypusUserRegistry;
114
- var reified = __importStar(require("../../../../_framework/reified"));
115
- var reified_1 = require("../../../../_framework/reified");
116
- var util_1 = require("../../../../_framework/util");
117
- var structs_1 = require("../../0x2/linked-table/structs");
118
- var structs_2 = require("../../0x2/object/structs");
119
- var index_1 = require("../index");
120
- var bcs_1 = require("@mysten/sui/bcs");
121
- var utils_1 = require("@mysten/sui/utils");
122
- /* ============================== AddAccumulatedTgldAmount =============================== */
123
- function isAddAccumulatedTgldAmount(type) {
124
- type = (0, util_1.compressSuiType)(type);
125
- return type === "".concat(index_1.PKG_V1, "::user::AddAccumulatedTgldAmount");
126
- }
127
- var AddAccumulatedTgldAmount = /** @class */ (function () {
128
- function AddAccumulatedTgldAmount(typeArgs, fields) {
129
- this.__StructClass = true;
130
- this.$typeName = AddAccumulatedTgldAmount.$typeName;
131
- this.$isPhantom = AddAccumulatedTgldAmount.$isPhantom;
132
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AddAccumulatedTgldAmount.$typeName], __read(typeArgs), false));
133
- this.$typeArgs = typeArgs;
134
- this.user = fields.user;
135
- this.log = fields.log;
136
- this.bcsPadding = fields.bcsPadding;
137
- }
138
- AddAccumulatedTgldAmount.reified = function () {
139
- var _this = this;
140
- return {
141
- typeName: AddAccumulatedTgldAmount.$typeName,
142
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AddAccumulatedTgldAmount.$typeName], [], false)),
143
- typeArgs: [],
144
- isPhantom: AddAccumulatedTgldAmount.$isPhantom,
145
- reifiedTypeArgs: [],
146
- fromFields: function (fields) { return AddAccumulatedTgldAmount.fromFields(fields); },
147
- fromFieldsWithTypes: function (item) { return AddAccumulatedTgldAmount.fromFieldsWithTypes(item); },
148
- fromBcs: function (data) { return AddAccumulatedTgldAmount.fromBcs(data); },
149
- bcs: AddAccumulatedTgldAmount.bcs,
150
- fromJSONField: function (field) { return AddAccumulatedTgldAmount.fromJSONField(field); },
151
- fromJSON: function (json) { return AddAccumulatedTgldAmount.fromJSON(json); },
152
- fromSuiParsedData: function (content) { return AddAccumulatedTgldAmount.fromSuiParsedData(content); },
153
- fromSuiObjectData: function (content) { return AddAccumulatedTgldAmount.fromSuiObjectData(content); },
154
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
155
- return [2 /*return*/, AddAccumulatedTgldAmount.fetch(client, id)];
156
- }); }); },
157
- new: function (fields) {
158
- return new AddAccumulatedTgldAmount([], fields);
159
- },
160
- kind: "StructClassReified",
161
- };
162
- };
163
- Object.defineProperty(AddAccumulatedTgldAmount, "r", {
164
- get: function () {
165
- return AddAccumulatedTgldAmount.reified();
166
- },
167
- enumerable: false,
168
- configurable: true
169
- });
170
- AddAccumulatedTgldAmount.phantom = function () {
171
- return (0, reified_1.phantom)(AddAccumulatedTgldAmount.reified());
172
- };
173
- Object.defineProperty(AddAccumulatedTgldAmount, "p", {
174
- get: function () {
175
- return AddAccumulatedTgldAmount.phantom();
176
- },
177
- enumerable: false,
178
- configurable: true
179
- });
180
- Object.defineProperty(AddAccumulatedTgldAmount, "bcs", {
181
- get: function () {
182
- return bcs_1.bcs.struct("AddAccumulatedTgldAmount", {
183
- user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
184
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
185
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
186
- });
187
- },
188
- enumerable: false,
189
- configurable: true
190
- });
191
- AddAccumulatedTgldAmount.fromFields = function (fields) {
192
- return AddAccumulatedTgldAmount.reified().new({
193
- user: (0, reified_1.decodeFromFields)("address", fields.user),
194
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
195
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
196
- });
197
- };
198
- AddAccumulatedTgldAmount.fromFieldsWithTypes = function (item) {
199
- if (!isAddAccumulatedTgldAmount(item.type)) {
200
- throw new Error("not a AddAccumulatedTgldAmount type");
201
- }
202
- return AddAccumulatedTgldAmount.reified().new({
203
- user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
204
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
205
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
206
- });
207
- };
208
- AddAccumulatedTgldAmount.fromBcs = function (data) {
209
- return AddAccumulatedTgldAmount.fromFields(AddAccumulatedTgldAmount.bcs.parse(data));
210
- };
211
- AddAccumulatedTgldAmount.prototype.toJSONField = function () {
212
- return {
213
- user: this.user,
214
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
215
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
216
- };
217
- };
218
- AddAccumulatedTgldAmount.prototype.toJSON = function () {
219
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
220
- };
221
- AddAccumulatedTgldAmount.fromJSONField = function (field) {
222
- return AddAccumulatedTgldAmount.reified().new({
223
- user: (0, reified_1.decodeFromJSONField)("address", field.user),
224
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
225
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
226
- });
227
- };
228
- AddAccumulatedTgldAmount.fromJSON = function (json) {
229
- if (json.$typeName !== AddAccumulatedTgldAmount.$typeName) {
230
- throw new Error("not a WithTwoGenerics json object");
231
- }
232
- return AddAccumulatedTgldAmount.fromJSONField(json);
233
- };
234
- AddAccumulatedTgldAmount.fromSuiParsedData = function (content) {
235
- if (content.dataType !== "moveObject") {
236
- throw new Error("not an object");
237
- }
238
- if (!isAddAccumulatedTgldAmount(content.type)) {
239
- throw new Error("object at ".concat(content.fields.id, " is not a AddAccumulatedTgldAmount object"));
240
- }
241
- return AddAccumulatedTgldAmount.fromFieldsWithTypes(content);
242
- };
243
- AddAccumulatedTgldAmount.fromSuiObjectData = function (data) {
244
- if (data.bcs) {
245
- if (data.bcs.dataType !== "moveObject" || !isAddAccumulatedTgldAmount(data.bcs.type)) {
246
- throw new Error("object at is not a AddAccumulatedTgldAmount object");
247
- }
248
- return AddAccumulatedTgldAmount.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
249
- }
250
- if (data.content) {
251
- return AddAccumulatedTgldAmount.fromSuiParsedData(data.content);
252
- }
253
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
254
- };
255
- AddAccumulatedTgldAmount.fetch = function (client, id) {
256
- return __awaiter(this, void 0, void 0, function () {
257
- var res;
258
- var _a, _b;
259
- return __generator(this, function (_c) {
260
- switch (_c.label) {
261
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
262
- case 1:
263
- res = _c.sent();
264
- if (res.error) {
265
- throw new Error("error fetching AddAccumulatedTgldAmount object at id ".concat(id, ": ").concat(res.error.code));
266
- }
267
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAddAccumulatedTgldAmount(res.data.bcs.type)) {
268
- throw new Error("object at id ".concat(id, " is not a AddAccumulatedTgldAmount object"));
269
- }
270
- return [2 /*return*/, AddAccumulatedTgldAmount.fromSuiObjectData(res.data)];
271
- }
272
- });
273
- });
274
- };
275
- AddAccumulatedTgldAmount.$typeName = "".concat(index_1.PKG_V1, "::user::AddAccumulatedTgldAmount");
276
- AddAccumulatedTgldAmount.$numTypeParams = 0;
277
- AddAccumulatedTgldAmount.$isPhantom = [];
278
- return AddAccumulatedTgldAmount;
279
- }());
280
- exports.AddAccumulatedTgldAmount = AddAccumulatedTgldAmount;
281
- /* ============================== AddTailsExpAmount =============================== */
282
- function isAddTailsExpAmount(type) {
283
- type = (0, util_1.compressSuiType)(type);
284
- return type === "".concat(index_1.PKG_V5, "::user::AddTailsExpAmount");
285
- }
286
- var AddTailsExpAmount = /** @class */ (function () {
287
- function AddTailsExpAmount(typeArgs, fields) {
288
- this.__StructClass = true;
289
- this.$typeName = AddTailsExpAmount.$typeName;
290
- this.$isPhantom = AddTailsExpAmount.$isPhantom;
291
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AddTailsExpAmount.$typeName], __read(typeArgs), false));
292
- this.$typeArgs = typeArgs;
293
- this.user = fields.user;
294
- this.log = fields.log;
295
- this.bcsPadding = fields.bcsPadding;
296
- }
297
- AddTailsExpAmount.reified = function () {
298
- var _this = this;
299
- return {
300
- typeName: AddTailsExpAmount.$typeName,
301
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AddTailsExpAmount.$typeName], [], false)),
302
- typeArgs: [],
303
- isPhantom: AddTailsExpAmount.$isPhantom,
304
- reifiedTypeArgs: [],
305
- fromFields: function (fields) { return AddTailsExpAmount.fromFields(fields); },
306
- fromFieldsWithTypes: function (item) { return AddTailsExpAmount.fromFieldsWithTypes(item); },
307
- fromBcs: function (data) { return AddTailsExpAmount.fromBcs(data); },
308
- bcs: AddTailsExpAmount.bcs,
309
- fromJSONField: function (field) { return AddTailsExpAmount.fromJSONField(field); },
310
- fromJSON: function (json) { return AddTailsExpAmount.fromJSON(json); },
311
- fromSuiParsedData: function (content) { return AddTailsExpAmount.fromSuiParsedData(content); },
312
- fromSuiObjectData: function (content) { return AddTailsExpAmount.fromSuiObjectData(content); },
313
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
314
- return [2 /*return*/, AddTailsExpAmount.fetch(client, id)];
315
- }); }); },
316
- new: function (fields) {
317
- return new AddTailsExpAmount([], fields);
318
- },
319
- kind: "StructClassReified",
320
- };
321
- };
322
- Object.defineProperty(AddTailsExpAmount, "r", {
323
- get: function () {
324
- return AddTailsExpAmount.reified();
325
- },
326
- enumerable: false,
327
- configurable: true
328
- });
329
- AddTailsExpAmount.phantom = function () {
330
- return (0, reified_1.phantom)(AddTailsExpAmount.reified());
331
- };
332
- Object.defineProperty(AddTailsExpAmount, "p", {
333
- get: function () {
334
- return AddTailsExpAmount.phantom();
335
- },
336
- enumerable: false,
337
- configurable: true
338
- });
339
- Object.defineProperty(AddTailsExpAmount, "bcs", {
340
- get: function () {
341
- return bcs_1.bcs.struct("AddTailsExpAmount", {
342
- user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
343
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
344
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
345
- });
346
- },
347
- enumerable: false,
348
- configurable: true
349
- });
350
- AddTailsExpAmount.fromFields = function (fields) {
351
- return AddTailsExpAmount.reified().new({
352
- user: (0, reified_1.decodeFromFields)("address", fields.user),
353
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
354
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
355
- });
356
- };
357
- AddTailsExpAmount.fromFieldsWithTypes = function (item) {
358
- if (!isAddTailsExpAmount(item.type)) {
359
- throw new Error("not a AddTailsExpAmount type");
360
- }
361
- return AddTailsExpAmount.reified().new({
362
- user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
363
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
364
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
365
- });
366
- };
367
- AddTailsExpAmount.fromBcs = function (data) {
368
- return AddTailsExpAmount.fromFields(AddTailsExpAmount.bcs.parse(data));
369
- };
370
- AddTailsExpAmount.prototype.toJSONField = function () {
371
- return {
372
- user: this.user,
373
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
374
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
375
- };
376
- };
377
- AddTailsExpAmount.prototype.toJSON = function () {
378
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
379
- };
380
- AddTailsExpAmount.fromJSONField = function (field) {
381
- return AddTailsExpAmount.reified().new({
382
- user: (0, reified_1.decodeFromJSONField)("address", field.user),
383
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
384
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
385
- });
386
- };
387
- AddTailsExpAmount.fromJSON = function (json) {
388
- if (json.$typeName !== AddTailsExpAmount.$typeName) {
389
- throw new Error("not a WithTwoGenerics json object");
390
- }
391
- return AddTailsExpAmount.fromJSONField(json);
392
- };
393
- AddTailsExpAmount.fromSuiParsedData = function (content) {
394
- if (content.dataType !== "moveObject") {
395
- throw new Error("not an object");
396
- }
397
- if (!isAddTailsExpAmount(content.type)) {
398
- throw new Error("object at ".concat(content.fields.id, " is not a AddTailsExpAmount object"));
399
- }
400
- return AddTailsExpAmount.fromFieldsWithTypes(content);
401
- };
402
- AddTailsExpAmount.fromSuiObjectData = function (data) {
403
- if (data.bcs) {
404
- if (data.bcs.dataType !== "moveObject" || !isAddTailsExpAmount(data.bcs.type)) {
405
- throw new Error("object at is not a AddTailsExpAmount object");
406
- }
407
- return AddTailsExpAmount.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
408
- }
409
- if (data.content) {
410
- return AddTailsExpAmount.fromSuiParsedData(data.content);
411
- }
412
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
413
- };
414
- AddTailsExpAmount.fetch = function (client, id) {
415
- return __awaiter(this, void 0, void 0, function () {
416
- var res;
417
- var _a, _b;
418
- return __generator(this, function (_c) {
419
- switch (_c.label) {
420
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
421
- case 1:
422
- res = _c.sent();
423
- if (res.error) {
424
- throw new Error("error fetching AddTailsExpAmount object at id ".concat(id, ": ").concat(res.error.code));
425
- }
426
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAddTailsExpAmount(res.data.bcs.type)) {
427
- throw new Error("object at id ".concat(id, " is not a AddTailsExpAmount object"));
428
- }
429
- return [2 /*return*/, AddTailsExpAmount.fromSuiObjectData(res.data)];
430
- }
431
- });
432
- });
433
- };
434
- AddTailsExpAmount.$typeName = "".concat(index_1.PKG_V5, "::user::AddTailsExpAmount");
435
- AddTailsExpAmount.$numTypeParams = 0;
436
- AddTailsExpAmount.$isPhantom = [];
437
- return AddTailsExpAmount;
438
- }());
439
- exports.AddTailsExpAmount = AddTailsExpAmount;
440
- /* ============================== Metadata =============================== */
441
- function isMetadata(type) {
442
- type = (0, util_1.compressSuiType)(type);
443
- return type === "".concat(index_1.PKG_V1, "::user::Metadata");
444
- }
445
- var Metadata = /** @class */ (function () {
446
- function Metadata(typeArgs, fields) {
447
- this.__StructClass = true;
448
- this.$typeName = Metadata.$typeName;
449
- this.$isPhantom = Metadata.$isPhantom;
450
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Metadata.$typeName], __read(typeArgs), false));
451
- this.$typeArgs = typeArgs;
452
- this.content = fields.content;
453
- }
454
- Metadata.reified = function () {
455
- var _this = this;
456
- return {
457
- typeName: Metadata.$typeName,
458
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Metadata.$typeName], [], false)),
459
- typeArgs: [],
460
- isPhantom: Metadata.$isPhantom,
461
- reifiedTypeArgs: [],
462
- fromFields: function (fields) { return Metadata.fromFields(fields); },
463
- fromFieldsWithTypes: function (item) { return Metadata.fromFieldsWithTypes(item); },
464
- fromBcs: function (data) { return Metadata.fromBcs(data); },
465
- bcs: Metadata.bcs,
466
- fromJSONField: function (field) { return Metadata.fromJSONField(field); },
467
- fromJSON: function (json) { return Metadata.fromJSON(json); },
468
- fromSuiParsedData: function (content) { return Metadata.fromSuiParsedData(content); },
469
- fromSuiObjectData: function (content) { return Metadata.fromSuiObjectData(content); },
470
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
471
- return [2 /*return*/, Metadata.fetch(client, id)];
472
- }); }); },
473
- new: function (fields) {
474
- return new Metadata([], fields);
475
- },
476
- kind: "StructClassReified",
477
- };
478
- };
479
- Object.defineProperty(Metadata, "r", {
480
- get: function () {
481
- return Metadata.reified();
482
- },
483
- enumerable: false,
484
- configurable: true
485
- });
486
- Metadata.phantom = function () {
487
- return (0, reified_1.phantom)(Metadata.reified());
488
- };
489
- Object.defineProperty(Metadata, "p", {
490
- get: function () {
491
- return Metadata.phantom();
492
- },
493
- enumerable: false,
494
- configurable: true
495
- });
496
- Object.defineProperty(Metadata, "bcs", {
497
- get: function () {
498
- return bcs_1.bcs.struct("Metadata", {
499
- content: bcs_1.bcs.vector(bcs_1.bcs.u64()),
500
- });
501
- },
502
- enumerable: false,
503
- configurable: true
504
- });
505
- Metadata.fromFields = function (fields) {
506
- return Metadata.reified().new({ content: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.content) });
507
- };
508
- Metadata.fromFieldsWithTypes = function (item) {
509
- if (!isMetadata(item.type)) {
510
- throw new Error("not a Metadata type");
511
- }
512
- return Metadata.reified().new({ content: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.content) });
513
- };
514
- Metadata.fromBcs = function (data) {
515
- return Metadata.fromFields(Metadata.bcs.parse(data));
516
- };
517
- Metadata.prototype.toJSONField = function () {
518
- return {
519
- content: (0, reified_1.fieldToJSON)("vector<u64>", this.content),
520
- };
521
- };
522
- Metadata.prototype.toJSON = function () {
523
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
524
- };
525
- Metadata.fromJSONField = function (field) {
526
- return Metadata.reified().new({ content: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.content) });
527
- };
528
- Metadata.fromJSON = function (json) {
529
- if (json.$typeName !== Metadata.$typeName) {
530
- throw new Error("not a WithTwoGenerics json object");
531
- }
532
- return Metadata.fromJSONField(json);
533
- };
534
- Metadata.fromSuiParsedData = function (content) {
535
- if (content.dataType !== "moveObject") {
536
- throw new Error("not an object");
537
- }
538
- if (!isMetadata(content.type)) {
539
- throw new Error("object at ".concat(content.fields.id, " is not a Metadata object"));
540
- }
541
- return Metadata.fromFieldsWithTypes(content);
542
- };
543
- Metadata.fromSuiObjectData = function (data) {
544
- if (data.bcs) {
545
- if (data.bcs.dataType !== "moveObject" || !isMetadata(data.bcs.type)) {
546
- throw new Error("object at is not a Metadata object");
547
- }
548
- return Metadata.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
549
- }
550
- if (data.content) {
551
- return Metadata.fromSuiParsedData(data.content);
552
- }
553
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
554
- };
555
- Metadata.fetch = function (client, id) {
556
- return __awaiter(this, void 0, void 0, function () {
557
- var res;
558
- var _a, _b;
559
- return __generator(this, function (_c) {
560
- switch (_c.label) {
561
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
562
- case 1:
563
- res = _c.sent();
564
- if (res.error) {
565
- throw new Error("error fetching Metadata object at id ".concat(id, ": ").concat(res.error.code));
566
- }
567
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isMetadata(res.data.bcs.type)) {
568
- throw new Error("object at id ".concat(id, " is not a Metadata object"));
569
- }
570
- return [2 /*return*/, Metadata.fromSuiObjectData(res.data)];
571
- }
572
- });
573
- });
574
- };
575
- Metadata.$typeName = "".concat(index_1.PKG_V1, "::user::Metadata");
576
- Metadata.$numTypeParams = 0;
577
- Metadata.$isPhantom = [];
578
- return Metadata;
579
- }());
580
- exports.Metadata = Metadata;
581
- /* ============================== RemoveTailsExpAmount =============================== */
582
- function isRemoveTailsExpAmount(type) {
583
- type = (0, util_1.compressSuiType)(type);
584
- return type === "".concat(index_1.PKG_V5, "::user::RemoveTailsExpAmount");
585
- }
586
- var RemoveTailsExpAmount = /** @class */ (function () {
587
- function RemoveTailsExpAmount(typeArgs, fields) {
588
- this.__StructClass = true;
589
- this.$typeName = RemoveTailsExpAmount.$typeName;
590
- this.$isPhantom = RemoveTailsExpAmount.$isPhantom;
591
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemoveTailsExpAmount.$typeName], __read(typeArgs), false));
592
- this.$typeArgs = typeArgs;
593
- this.user = fields.user;
594
- this.log = fields.log;
595
- this.bcsPadding = fields.bcsPadding;
596
- }
597
- RemoveTailsExpAmount.reified = function () {
598
- var _this = this;
599
- return {
600
- typeName: RemoveTailsExpAmount.$typeName,
601
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemoveTailsExpAmount.$typeName], [], false)),
602
- typeArgs: [],
603
- isPhantom: RemoveTailsExpAmount.$isPhantom,
604
- reifiedTypeArgs: [],
605
- fromFields: function (fields) { return RemoveTailsExpAmount.fromFields(fields); },
606
- fromFieldsWithTypes: function (item) { return RemoveTailsExpAmount.fromFieldsWithTypes(item); },
607
- fromBcs: function (data) { return RemoveTailsExpAmount.fromBcs(data); },
608
- bcs: RemoveTailsExpAmount.bcs,
609
- fromJSONField: function (field) { return RemoveTailsExpAmount.fromJSONField(field); },
610
- fromJSON: function (json) { return RemoveTailsExpAmount.fromJSON(json); },
611
- fromSuiParsedData: function (content) { return RemoveTailsExpAmount.fromSuiParsedData(content); },
612
- fromSuiObjectData: function (content) { return RemoveTailsExpAmount.fromSuiObjectData(content); },
613
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
614
- return [2 /*return*/, RemoveTailsExpAmount.fetch(client, id)];
615
- }); }); },
616
- new: function (fields) {
617
- return new RemoveTailsExpAmount([], fields);
618
- },
619
- kind: "StructClassReified",
620
- };
621
- };
622
- Object.defineProperty(RemoveTailsExpAmount, "r", {
623
- get: function () {
624
- return RemoveTailsExpAmount.reified();
625
- },
626
- enumerable: false,
627
- configurable: true
628
- });
629
- RemoveTailsExpAmount.phantom = function () {
630
- return (0, reified_1.phantom)(RemoveTailsExpAmount.reified());
631
- };
632
- Object.defineProperty(RemoveTailsExpAmount, "p", {
633
- get: function () {
634
- return RemoveTailsExpAmount.phantom();
635
- },
636
- enumerable: false,
637
- configurable: true
638
- });
639
- Object.defineProperty(RemoveTailsExpAmount, "bcs", {
640
- get: function () {
641
- return bcs_1.bcs.struct("RemoveTailsExpAmount", {
642
- user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
643
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
644
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
645
- });
646
- },
647
- enumerable: false,
648
- configurable: true
649
- });
650
- RemoveTailsExpAmount.fromFields = function (fields) {
651
- return RemoveTailsExpAmount.reified().new({
652
- user: (0, reified_1.decodeFromFields)("address", fields.user),
653
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
654
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
655
- });
656
- };
657
- RemoveTailsExpAmount.fromFieldsWithTypes = function (item) {
658
- if (!isRemoveTailsExpAmount(item.type)) {
659
- throw new Error("not a RemoveTailsExpAmount type");
660
- }
661
- return RemoveTailsExpAmount.reified().new({
662
- user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
663
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
664
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
665
- });
666
- };
667
- RemoveTailsExpAmount.fromBcs = function (data) {
668
- return RemoveTailsExpAmount.fromFields(RemoveTailsExpAmount.bcs.parse(data));
669
- };
670
- RemoveTailsExpAmount.prototype.toJSONField = function () {
671
- return {
672
- user: this.user,
673
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
674
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
675
- };
676
- };
677
- RemoveTailsExpAmount.prototype.toJSON = function () {
678
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
679
- };
680
- RemoveTailsExpAmount.fromJSONField = function (field) {
681
- return RemoveTailsExpAmount.reified().new({
682
- user: (0, reified_1.decodeFromJSONField)("address", field.user),
683
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
684
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
685
- });
686
- };
687
- RemoveTailsExpAmount.fromJSON = function (json) {
688
- if (json.$typeName !== RemoveTailsExpAmount.$typeName) {
689
- throw new Error("not a WithTwoGenerics json object");
690
- }
691
- return RemoveTailsExpAmount.fromJSONField(json);
692
- };
693
- RemoveTailsExpAmount.fromSuiParsedData = function (content) {
694
- if (content.dataType !== "moveObject") {
695
- throw new Error("not an object");
696
- }
697
- if (!isRemoveTailsExpAmount(content.type)) {
698
- throw new Error("object at ".concat(content.fields.id, " is not a RemoveTailsExpAmount object"));
699
- }
700
- return RemoveTailsExpAmount.fromFieldsWithTypes(content);
701
- };
702
- RemoveTailsExpAmount.fromSuiObjectData = function (data) {
703
- if (data.bcs) {
704
- if (data.bcs.dataType !== "moveObject" || !isRemoveTailsExpAmount(data.bcs.type)) {
705
- throw new Error("object at is not a RemoveTailsExpAmount object");
706
- }
707
- return RemoveTailsExpAmount.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
708
- }
709
- if (data.content) {
710
- return RemoveTailsExpAmount.fromSuiParsedData(data.content);
711
- }
712
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
713
- };
714
- RemoveTailsExpAmount.fetch = function (client, id) {
715
- return __awaiter(this, void 0, void 0, function () {
716
- var res;
717
- var _a, _b;
718
- return __generator(this, function (_c) {
719
- switch (_c.label) {
720
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
721
- case 1:
722
- res = _c.sent();
723
- if (res.error) {
724
- throw new Error("error fetching RemoveTailsExpAmount object at id ".concat(id, ": ").concat(res.error.code));
725
- }
726
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRemoveTailsExpAmount(res.data.bcs.type)) {
727
- throw new Error("object at id ".concat(id, " is not a RemoveTailsExpAmount object"));
728
- }
729
- return [2 /*return*/, RemoveTailsExpAmount.fromSuiObjectData(res.data)];
730
- }
731
- });
732
- });
733
- };
734
- RemoveTailsExpAmount.$typeName = "".concat(index_1.PKG_V5, "::user::RemoveTailsExpAmount");
735
- RemoveTailsExpAmount.$numTypeParams = 0;
736
- RemoveTailsExpAmount.$isPhantom = [];
737
- return RemoveTailsExpAmount;
738
- }());
739
- exports.RemoveTailsExpAmount = RemoveTailsExpAmount;
740
- /* ============================== TypusUserRegistry =============================== */
741
- function isTypusUserRegistry(type) {
742
- type = (0, util_1.compressSuiType)(type);
743
- return type === "".concat(index_1.PKG_V1, "::user::TypusUserRegistry");
744
- }
745
- var TypusUserRegistry = /** @class */ (function () {
746
- function TypusUserRegistry(typeArgs, fields) {
747
- this.__StructClass = true;
748
- this.$typeName = TypusUserRegistry.$typeName;
749
- this.$isPhantom = TypusUserRegistry.$isPhantom;
750
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TypusUserRegistry.$typeName], __read(typeArgs), false));
751
- this.$typeArgs = typeArgs;
752
- this.id = fields.id;
753
- this.metadata = fields.metadata;
754
- }
755
- TypusUserRegistry.reified = function () {
756
- var _this = this;
757
- return {
758
- typeName: TypusUserRegistry.$typeName,
759
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TypusUserRegistry.$typeName], [], false)),
760
- typeArgs: [],
761
- isPhantom: TypusUserRegistry.$isPhantom,
762
- reifiedTypeArgs: [],
763
- fromFields: function (fields) { return TypusUserRegistry.fromFields(fields); },
764
- fromFieldsWithTypes: function (item) { return TypusUserRegistry.fromFieldsWithTypes(item); },
765
- fromBcs: function (data) { return TypusUserRegistry.fromBcs(data); },
766
- bcs: TypusUserRegistry.bcs,
767
- fromJSONField: function (field) { return TypusUserRegistry.fromJSONField(field); },
768
- fromJSON: function (json) { return TypusUserRegistry.fromJSON(json); },
769
- fromSuiParsedData: function (content) { return TypusUserRegistry.fromSuiParsedData(content); },
770
- fromSuiObjectData: function (content) { return TypusUserRegistry.fromSuiObjectData(content); },
771
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
772
- return [2 /*return*/, TypusUserRegistry.fetch(client, id)];
773
- }); }); },
774
- new: function (fields) {
775
- return new TypusUserRegistry([], fields);
776
- },
777
- kind: "StructClassReified",
778
- };
779
- };
780
- Object.defineProperty(TypusUserRegistry, "r", {
781
- get: function () {
782
- return TypusUserRegistry.reified();
783
- },
784
- enumerable: false,
785
- configurable: true
786
- });
787
- TypusUserRegistry.phantom = function () {
788
- return (0, reified_1.phantom)(TypusUserRegistry.reified());
789
- };
790
- Object.defineProperty(TypusUserRegistry, "p", {
791
- get: function () {
792
- return TypusUserRegistry.phantom();
793
- },
794
- enumerable: false,
795
- configurable: true
796
- });
797
- Object.defineProperty(TypusUserRegistry, "bcs", {
798
- get: function () {
799
- return bcs_1.bcs.struct("TypusUserRegistry", {
800
- id: structs_2.UID.bcs,
801
- metadata: structs_1.LinkedTable.bcs(bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } })),
802
- });
803
- },
804
- enumerable: false,
805
- configurable: true
806
- });
807
- TypusUserRegistry.fromFields = function (fields) {
808
- return TypusUserRegistry.reified().new({
809
- id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
810
- metadata: (0, reified_1.decodeFromFields)(structs_1.LinkedTable.reified("address", reified.phantom(Metadata.reified())), fields.metadata),
811
- });
812
- };
813
- TypusUserRegistry.fromFieldsWithTypes = function (item) {
814
- if (!isTypusUserRegistry(item.type)) {
815
- throw new Error("not a TypusUserRegistry type");
816
- }
817
- return TypusUserRegistry.reified().new({
818
- id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
819
- metadata: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.LinkedTable.reified("address", reified.phantom(Metadata.reified())), item.fields.metadata),
820
- });
821
- };
822
- TypusUserRegistry.fromBcs = function (data) {
823
- return TypusUserRegistry.fromFields(TypusUserRegistry.bcs.parse(data));
824
- };
825
- TypusUserRegistry.prototype.toJSONField = function () {
826
- return {
827
- id: this.id,
828
- metadata: this.metadata.toJSONField(),
829
- };
830
- };
831
- TypusUserRegistry.prototype.toJSON = function () {
832
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
833
- };
834
- TypusUserRegistry.fromJSONField = function (field) {
835
- return TypusUserRegistry.reified().new({
836
- id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
837
- metadata: (0, reified_1.decodeFromJSONField)(structs_1.LinkedTable.reified("address", reified.phantom(Metadata.reified())), field.metadata),
838
- });
839
- };
840
- TypusUserRegistry.fromJSON = function (json) {
841
- if (json.$typeName !== TypusUserRegistry.$typeName) {
842
- throw new Error("not a WithTwoGenerics json object");
843
- }
844
- return TypusUserRegistry.fromJSONField(json);
845
- };
846
- TypusUserRegistry.fromSuiParsedData = function (content) {
847
- if (content.dataType !== "moveObject") {
848
- throw new Error("not an object");
849
- }
850
- if (!isTypusUserRegistry(content.type)) {
851
- throw new Error("object at ".concat(content.fields.id, " is not a TypusUserRegistry object"));
852
- }
853
- return TypusUserRegistry.fromFieldsWithTypes(content);
854
- };
855
- TypusUserRegistry.fromSuiObjectData = function (data) {
856
- if (data.bcs) {
857
- if (data.bcs.dataType !== "moveObject" || !isTypusUserRegistry(data.bcs.type)) {
858
- throw new Error("object at is not a TypusUserRegistry object");
859
- }
860
- return TypusUserRegistry.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
861
- }
862
- if (data.content) {
863
- return TypusUserRegistry.fromSuiParsedData(data.content);
864
- }
865
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
866
- };
867
- TypusUserRegistry.fetch = function (client, id) {
868
- return __awaiter(this, void 0, void 0, function () {
869
- var res;
870
- var _a, _b;
871
- return __generator(this, function (_c) {
872
- switch (_c.label) {
873
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
874
- case 1:
875
- res = _c.sent();
876
- if (res.error) {
877
- throw new Error("error fetching TypusUserRegistry object at id ".concat(id, ": ").concat(res.error.code));
878
- }
879
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTypusUserRegistry(res.data.bcs.type)) {
880
- throw new Error("object at id ".concat(id, " is not a TypusUserRegistry object"));
881
- }
882
- return [2 /*return*/, TypusUserRegistry.fromSuiObjectData(res.data)];
883
- }
884
- });
885
- });
886
- };
887
- TypusUserRegistry.$typeName = "".concat(index_1.PKG_V1, "::user::TypusUserRegistry");
888
- TypusUserRegistry.$numTypeParams = 0;
889
- TypusUserRegistry.$isPhantom = [];
890
- return TypusUserRegistry;
891
- }());
892
- exports.TypusUserRegistry = TypusUserRegistry;