@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,706 +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.PublicProofInputs = exports.ProofPoints = exports.PreparedVerifyingKey = exports.Curve = void 0;
109
- exports.isCurve = isCurve;
110
- exports.isPreparedVerifyingKey = isPreparedVerifyingKey;
111
- exports.isProofPoints = isProofPoints;
112
- exports.isPublicProofInputs = isPublicProofInputs;
113
- var reified = __importStar(require("../../../../_framework/reified"));
114
- var reified_1 = require("../../../../_framework/reified");
115
- var util_1 = require("../../../../_framework/util");
116
- var index_1 = require("../index");
117
- var bcs_1 = require("@mysten/sui/bcs");
118
- var utils_1 = require("@mysten/sui/utils");
119
- /* ============================== Curve =============================== */
120
- function isCurve(type) {
121
- type = (0, util_1.compressSuiType)(type);
122
- return type === "".concat(index_1.PKG_V26, "::groth16::Curve");
123
- }
124
- var Curve = /** @class */ (function () {
125
- function Curve(typeArgs, fields) {
126
- this.__StructClass = true;
127
- this.$typeName = Curve.$typeName;
128
- this.$isPhantom = Curve.$isPhantom;
129
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Curve.$typeName], __read(typeArgs), false));
130
- this.$typeArgs = typeArgs;
131
- this.id = fields.id;
132
- }
133
- Curve.reified = function () {
134
- var _this = this;
135
- return {
136
- typeName: Curve.$typeName,
137
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Curve.$typeName], [], false)),
138
- typeArgs: [],
139
- isPhantom: Curve.$isPhantom,
140
- reifiedTypeArgs: [],
141
- fromFields: function (fields) { return Curve.fromFields(fields); },
142
- fromFieldsWithTypes: function (item) { return Curve.fromFieldsWithTypes(item); },
143
- fromBcs: function (data) { return Curve.fromBcs(data); },
144
- bcs: Curve.bcs,
145
- fromJSONField: function (field) { return Curve.fromJSONField(field); },
146
- fromJSON: function (json) { return Curve.fromJSON(json); },
147
- fromSuiParsedData: function (content) { return Curve.fromSuiParsedData(content); },
148
- fromSuiObjectData: function (content) { return Curve.fromSuiObjectData(content); },
149
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
150
- return [2 /*return*/, Curve.fetch(client, id)];
151
- }); }); },
152
- new: function (fields) {
153
- return new Curve([], fields);
154
- },
155
- kind: "StructClassReified",
156
- };
157
- };
158
- Object.defineProperty(Curve, "r", {
159
- get: function () {
160
- return Curve.reified();
161
- },
162
- enumerable: false,
163
- configurable: true
164
- });
165
- Curve.phantom = function () {
166
- return (0, reified_1.phantom)(Curve.reified());
167
- };
168
- Object.defineProperty(Curve, "p", {
169
- get: function () {
170
- return Curve.phantom();
171
- },
172
- enumerable: false,
173
- configurable: true
174
- });
175
- Object.defineProperty(Curve, "bcs", {
176
- get: function () {
177
- return bcs_1.bcs.struct("Curve", {
178
- id: bcs_1.bcs.u8(),
179
- });
180
- },
181
- enumerable: false,
182
- configurable: true
183
- });
184
- Curve.fromFields = function (fields) {
185
- return Curve.reified().new({ id: (0, reified_1.decodeFromFields)("u8", fields.id) });
186
- };
187
- Curve.fromFieldsWithTypes = function (item) {
188
- if (!isCurve(item.type)) {
189
- throw new Error("not a Curve type");
190
- }
191
- return Curve.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)("u8", item.fields.id) });
192
- };
193
- Curve.fromBcs = function (data) {
194
- return Curve.fromFields(Curve.bcs.parse(data));
195
- };
196
- Curve.prototype.toJSONField = function () {
197
- return {
198
- id: this.id,
199
- };
200
- };
201
- Curve.prototype.toJSON = function () {
202
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
203
- };
204
- Curve.fromJSONField = function (field) {
205
- return Curve.reified().new({ id: (0, reified_1.decodeFromJSONField)("u8", field.id) });
206
- };
207
- Curve.fromJSON = function (json) {
208
- if (json.$typeName !== Curve.$typeName) {
209
- throw new Error("not a WithTwoGenerics json object");
210
- }
211
- return Curve.fromJSONField(json);
212
- };
213
- Curve.fromSuiParsedData = function (content) {
214
- if (content.dataType !== "moveObject") {
215
- throw new Error("not an object");
216
- }
217
- if (!isCurve(content.type)) {
218
- throw new Error("object at ".concat(content.fields.id, " is not a Curve object"));
219
- }
220
- return Curve.fromFieldsWithTypes(content);
221
- };
222
- Curve.fromSuiObjectData = function (data) {
223
- if (data.bcs) {
224
- if (data.bcs.dataType !== "moveObject" || !isCurve(data.bcs.type)) {
225
- throw new Error("object at is not a Curve object");
226
- }
227
- return Curve.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
228
- }
229
- if (data.content) {
230
- return Curve.fromSuiParsedData(data.content);
231
- }
232
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
233
- };
234
- Curve.fetch = function (client, id) {
235
- return __awaiter(this, void 0, void 0, function () {
236
- var res;
237
- var _a, _b;
238
- return __generator(this, function (_c) {
239
- switch (_c.label) {
240
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
241
- case 1:
242
- res = _c.sent();
243
- if (res.error) {
244
- throw new Error("error fetching Curve object at id ".concat(id, ": ").concat(res.error.code));
245
- }
246
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isCurve(res.data.bcs.type)) {
247
- throw new Error("object at id ".concat(id, " is not a Curve object"));
248
- }
249
- return [2 /*return*/, Curve.fromSuiObjectData(res.data)];
250
- }
251
- });
252
- });
253
- };
254
- Curve.$typeName = "".concat(index_1.PKG_V26, "::groth16::Curve");
255
- Curve.$numTypeParams = 0;
256
- Curve.$isPhantom = [];
257
- return Curve;
258
- }());
259
- exports.Curve = Curve;
260
- /* ============================== PreparedVerifyingKey =============================== */
261
- function isPreparedVerifyingKey(type) {
262
- type = (0, util_1.compressSuiType)(type);
263
- return type === "".concat(index_1.PKG_V26, "::groth16::PreparedVerifyingKey");
264
- }
265
- var PreparedVerifyingKey = /** @class */ (function () {
266
- function PreparedVerifyingKey(typeArgs, fields) {
267
- this.__StructClass = true;
268
- this.$typeName = PreparedVerifyingKey.$typeName;
269
- this.$isPhantom = PreparedVerifyingKey.$isPhantom;
270
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([PreparedVerifyingKey.$typeName], __read(typeArgs), false));
271
- this.$typeArgs = typeArgs;
272
- this.vkGammaAbcG1Bytes = fields.vkGammaAbcG1Bytes;
273
- this.alphaG1BetaG2Bytes = fields.alphaG1BetaG2Bytes;
274
- this.gammaG2NegPcBytes = fields.gammaG2NegPcBytes;
275
- this.deltaG2NegPcBytes = fields.deltaG2NegPcBytes;
276
- }
277
- PreparedVerifyingKey.reified = function () {
278
- var _this = this;
279
- return {
280
- typeName: PreparedVerifyingKey.$typeName,
281
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([PreparedVerifyingKey.$typeName], [], false)),
282
- typeArgs: [],
283
- isPhantom: PreparedVerifyingKey.$isPhantom,
284
- reifiedTypeArgs: [],
285
- fromFields: function (fields) { return PreparedVerifyingKey.fromFields(fields); },
286
- fromFieldsWithTypes: function (item) { return PreparedVerifyingKey.fromFieldsWithTypes(item); },
287
- fromBcs: function (data) { return PreparedVerifyingKey.fromBcs(data); },
288
- bcs: PreparedVerifyingKey.bcs,
289
- fromJSONField: function (field) { return PreparedVerifyingKey.fromJSONField(field); },
290
- fromJSON: function (json) { return PreparedVerifyingKey.fromJSON(json); },
291
- fromSuiParsedData: function (content) { return PreparedVerifyingKey.fromSuiParsedData(content); },
292
- fromSuiObjectData: function (content) { return PreparedVerifyingKey.fromSuiObjectData(content); },
293
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
294
- return [2 /*return*/, PreparedVerifyingKey.fetch(client, id)];
295
- }); }); },
296
- new: function (fields) {
297
- return new PreparedVerifyingKey([], fields);
298
- },
299
- kind: "StructClassReified",
300
- };
301
- };
302
- Object.defineProperty(PreparedVerifyingKey, "r", {
303
- get: function () {
304
- return PreparedVerifyingKey.reified();
305
- },
306
- enumerable: false,
307
- configurable: true
308
- });
309
- PreparedVerifyingKey.phantom = function () {
310
- return (0, reified_1.phantom)(PreparedVerifyingKey.reified());
311
- };
312
- Object.defineProperty(PreparedVerifyingKey, "p", {
313
- get: function () {
314
- return PreparedVerifyingKey.phantom();
315
- },
316
- enumerable: false,
317
- configurable: true
318
- });
319
- Object.defineProperty(PreparedVerifyingKey, "bcs", {
320
- get: function () {
321
- return bcs_1.bcs.struct("PreparedVerifyingKey", {
322
- vk_gamma_abc_g1_bytes: bcs_1.bcs.vector(bcs_1.bcs.u8()),
323
- alpha_g1_beta_g2_bytes: bcs_1.bcs.vector(bcs_1.bcs.u8()),
324
- gamma_g2_neg_pc_bytes: bcs_1.bcs.vector(bcs_1.bcs.u8()),
325
- delta_g2_neg_pc_bytes: bcs_1.bcs.vector(bcs_1.bcs.u8()),
326
- });
327
- },
328
- enumerable: false,
329
- configurable: true
330
- });
331
- PreparedVerifyingKey.fromFields = function (fields) {
332
- return PreparedVerifyingKey.reified().new({
333
- vkGammaAbcG1Bytes: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.vk_gamma_abc_g1_bytes),
334
- alphaG1BetaG2Bytes: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.alpha_g1_beta_g2_bytes),
335
- gammaG2NegPcBytes: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.gamma_g2_neg_pc_bytes),
336
- deltaG2NegPcBytes: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.delta_g2_neg_pc_bytes),
337
- });
338
- };
339
- PreparedVerifyingKey.fromFieldsWithTypes = function (item) {
340
- if (!isPreparedVerifyingKey(item.type)) {
341
- throw new Error("not a PreparedVerifyingKey type");
342
- }
343
- return PreparedVerifyingKey.reified().new({
344
- vkGammaAbcG1Bytes: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.vk_gamma_abc_g1_bytes),
345
- alphaG1BetaG2Bytes: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.alpha_g1_beta_g2_bytes),
346
- gammaG2NegPcBytes: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.gamma_g2_neg_pc_bytes),
347
- deltaG2NegPcBytes: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.delta_g2_neg_pc_bytes),
348
- });
349
- };
350
- PreparedVerifyingKey.fromBcs = function (data) {
351
- return PreparedVerifyingKey.fromFields(PreparedVerifyingKey.bcs.parse(data));
352
- };
353
- PreparedVerifyingKey.prototype.toJSONField = function () {
354
- return {
355
- vkGammaAbcG1Bytes: (0, reified_1.fieldToJSON)("vector<u8>", this.vkGammaAbcG1Bytes),
356
- alphaG1BetaG2Bytes: (0, reified_1.fieldToJSON)("vector<u8>", this.alphaG1BetaG2Bytes),
357
- gammaG2NegPcBytes: (0, reified_1.fieldToJSON)("vector<u8>", this.gammaG2NegPcBytes),
358
- deltaG2NegPcBytes: (0, reified_1.fieldToJSON)("vector<u8>", this.deltaG2NegPcBytes),
359
- };
360
- };
361
- PreparedVerifyingKey.prototype.toJSON = function () {
362
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
363
- };
364
- PreparedVerifyingKey.fromJSONField = function (field) {
365
- return PreparedVerifyingKey.reified().new({
366
- vkGammaAbcG1Bytes: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.vkGammaAbcG1Bytes),
367
- alphaG1BetaG2Bytes: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.alphaG1BetaG2Bytes),
368
- gammaG2NegPcBytes: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.gammaG2NegPcBytes),
369
- deltaG2NegPcBytes: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.deltaG2NegPcBytes),
370
- });
371
- };
372
- PreparedVerifyingKey.fromJSON = function (json) {
373
- if (json.$typeName !== PreparedVerifyingKey.$typeName) {
374
- throw new Error("not a WithTwoGenerics json object");
375
- }
376
- return PreparedVerifyingKey.fromJSONField(json);
377
- };
378
- PreparedVerifyingKey.fromSuiParsedData = function (content) {
379
- if (content.dataType !== "moveObject") {
380
- throw new Error("not an object");
381
- }
382
- if (!isPreparedVerifyingKey(content.type)) {
383
- throw new Error("object at ".concat(content.fields.id, " is not a PreparedVerifyingKey object"));
384
- }
385
- return PreparedVerifyingKey.fromFieldsWithTypes(content);
386
- };
387
- PreparedVerifyingKey.fromSuiObjectData = function (data) {
388
- if (data.bcs) {
389
- if (data.bcs.dataType !== "moveObject" || !isPreparedVerifyingKey(data.bcs.type)) {
390
- throw new Error("object at is not a PreparedVerifyingKey object");
391
- }
392
- return PreparedVerifyingKey.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
393
- }
394
- if (data.content) {
395
- return PreparedVerifyingKey.fromSuiParsedData(data.content);
396
- }
397
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
398
- };
399
- PreparedVerifyingKey.fetch = function (client, id) {
400
- return __awaiter(this, void 0, void 0, function () {
401
- var res;
402
- var _a, _b;
403
- return __generator(this, function (_c) {
404
- switch (_c.label) {
405
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
406
- case 1:
407
- res = _c.sent();
408
- if (res.error) {
409
- throw new Error("error fetching PreparedVerifyingKey object at id ".concat(id, ": ").concat(res.error.code));
410
- }
411
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isPreparedVerifyingKey(res.data.bcs.type)) {
412
- throw new Error("object at id ".concat(id, " is not a PreparedVerifyingKey object"));
413
- }
414
- return [2 /*return*/, PreparedVerifyingKey.fromSuiObjectData(res.data)];
415
- }
416
- });
417
- });
418
- };
419
- PreparedVerifyingKey.$typeName = "".concat(index_1.PKG_V26, "::groth16::PreparedVerifyingKey");
420
- PreparedVerifyingKey.$numTypeParams = 0;
421
- PreparedVerifyingKey.$isPhantom = [];
422
- return PreparedVerifyingKey;
423
- }());
424
- exports.PreparedVerifyingKey = PreparedVerifyingKey;
425
- /* ============================== ProofPoints =============================== */
426
- function isProofPoints(type) {
427
- type = (0, util_1.compressSuiType)(type);
428
- return type === "".concat(index_1.PKG_V26, "::groth16::ProofPoints");
429
- }
430
- var ProofPoints = /** @class */ (function () {
431
- function ProofPoints(typeArgs, fields) {
432
- this.__StructClass = true;
433
- this.$typeName = ProofPoints.$typeName;
434
- this.$isPhantom = ProofPoints.$isPhantom;
435
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ProofPoints.$typeName], __read(typeArgs), false));
436
- this.$typeArgs = typeArgs;
437
- this.bytes = fields.bytes;
438
- }
439
- ProofPoints.reified = function () {
440
- var _this = this;
441
- return {
442
- typeName: ProofPoints.$typeName,
443
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ProofPoints.$typeName], [], false)),
444
- typeArgs: [],
445
- isPhantom: ProofPoints.$isPhantom,
446
- reifiedTypeArgs: [],
447
- fromFields: function (fields) { return ProofPoints.fromFields(fields); },
448
- fromFieldsWithTypes: function (item) { return ProofPoints.fromFieldsWithTypes(item); },
449
- fromBcs: function (data) { return ProofPoints.fromBcs(data); },
450
- bcs: ProofPoints.bcs,
451
- fromJSONField: function (field) { return ProofPoints.fromJSONField(field); },
452
- fromJSON: function (json) { return ProofPoints.fromJSON(json); },
453
- fromSuiParsedData: function (content) { return ProofPoints.fromSuiParsedData(content); },
454
- fromSuiObjectData: function (content) { return ProofPoints.fromSuiObjectData(content); },
455
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
456
- return [2 /*return*/, ProofPoints.fetch(client, id)];
457
- }); }); },
458
- new: function (fields) {
459
- return new ProofPoints([], fields);
460
- },
461
- kind: "StructClassReified",
462
- };
463
- };
464
- Object.defineProperty(ProofPoints, "r", {
465
- get: function () {
466
- return ProofPoints.reified();
467
- },
468
- enumerable: false,
469
- configurable: true
470
- });
471
- ProofPoints.phantom = function () {
472
- return (0, reified_1.phantom)(ProofPoints.reified());
473
- };
474
- Object.defineProperty(ProofPoints, "p", {
475
- get: function () {
476
- return ProofPoints.phantom();
477
- },
478
- enumerable: false,
479
- configurable: true
480
- });
481
- Object.defineProperty(ProofPoints, "bcs", {
482
- get: function () {
483
- return bcs_1.bcs.struct("ProofPoints", {
484
- bytes: bcs_1.bcs.vector(bcs_1.bcs.u8()),
485
- });
486
- },
487
- enumerable: false,
488
- configurable: true
489
- });
490
- ProofPoints.fromFields = function (fields) {
491
- return ProofPoints.reified().new({ bytes: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.bytes) });
492
- };
493
- ProofPoints.fromFieldsWithTypes = function (item) {
494
- if (!isProofPoints(item.type)) {
495
- throw new Error("not a ProofPoints type");
496
- }
497
- return ProofPoints.reified().new({ bytes: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.bytes) });
498
- };
499
- ProofPoints.fromBcs = function (data) {
500
- return ProofPoints.fromFields(ProofPoints.bcs.parse(data));
501
- };
502
- ProofPoints.prototype.toJSONField = function () {
503
- return {
504
- bytes: (0, reified_1.fieldToJSON)("vector<u8>", this.bytes),
505
- };
506
- };
507
- ProofPoints.prototype.toJSON = function () {
508
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
509
- };
510
- ProofPoints.fromJSONField = function (field) {
511
- return ProofPoints.reified().new({ bytes: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.bytes) });
512
- };
513
- ProofPoints.fromJSON = function (json) {
514
- if (json.$typeName !== ProofPoints.$typeName) {
515
- throw new Error("not a WithTwoGenerics json object");
516
- }
517
- return ProofPoints.fromJSONField(json);
518
- };
519
- ProofPoints.fromSuiParsedData = function (content) {
520
- if (content.dataType !== "moveObject") {
521
- throw new Error("not an object");
522
- }
523
- if (!isProofPoints(content.type)) {
524
- throw new Error("object at ".concat(content.fields.id, " is not a ProofPoints object"));
525
- }
526
- return ProofPoints.fromFieldsWithTypes(content);
527
- };
528
- ProofPoints.fromSuiObjectData = function (data) {
529
- if (data.bcs) {
530
- if (data.bcs.dataType !== "moveObject" || !isProofPoints(data.bcs.type)) {
531
- throw new Error("object at is not a ProofPoints object");
532
- }
533
- return ProofPoints.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
534
- }
535
- if (data.content) {
536
- return ProofPoints.fromSuiParsedData(data.content);
537
- }
538
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
539
- };
540
- ProofPoints.fetch = function (client, id) {
541
- return __awaiter(this, void 0, void 0, function () {
542
- var res;
543
- var _a, _b;
544
- return __generator(this, function (_c) {
545
- switch (_c.label) {
546
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
547
- case 1:
548
- res = _c.sent();
549
- if (res.error) {
550
- throw new Error("error fetching ProofPoints object at id ".concat(id, ": ").concat(res.error.code));
551
- }
552
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isProofPoints(res.data.bcs.type)) {
553
- throw new Error("object at id ".concat(id, " is not a ProofPoints object"));
554
- }
555
- return [2 /*return*/, ProofPoints.fromSuiObjectData(res.data)];
556
- }
557
- });
558
- });
559
- };
560
- ProofPoints.$typeName = "".concat(index_1.PKG_V26, "::groth16::ProofPoints");
561
- ProofPoints.$numTypeParams = 0;
562
- ProofPoints.$isPhantom = [];
563
- return ProofPoints;
564
- }());
565
- exports.ProofPoints = ProofPoints;
566
- /* ============================== PublicProofInputs =============================== */
567
- function isPublicProofInputs(type) {
568
- type = (0, util_1.compressSuiType)(type);
569
- return type === "".concat(index_1.PKG_V26, "::groth16::PublicProofInputs");
570
- }
571
- var PublicProofInputs = /** @class */ (function () {
572
- function PublicProofInputs(typeArgs, fields) {
573
- this.__StructClass = true;
574
- this.$typeName = PublicProofInputs.$typeName;
575
- this.$isPhantom = PublicProofInputs.$isPhantom;
576
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([PublicProofInputs.$typeName], __read(typeArgs), false));
577
- this.$typeArgs = typeArgs;
578
- this.bytes = fields.bytes;
579
- }
580
- PublicProofInputs.reified = function () {
581
- var _this = this;
582
- return {
583
- typeName: PublicProofInputs.$typeName,
584
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([PublicProofInputs.$typeName], [], false)),
585
- typeArgs: [],
586
- isPhantom: PublicProofInputs.$isPhantom,
587
- reifiedTypeArgs: [],
588
- fromFields: function (fields) { return PublicProofInputs.fromFields(fields); },
589
- fromFieldsWithTypes: function (item) { return PublicProofInputs.fromFieldsWithTypes(item); },
590
- fromBcs: function (data) { return PublicProofInputs.fromBcs(data); },
591
- bcs: PublicProofInputs.bcs,
592
- fromJSONField: function (field) { return PublicProofInputs.fromJSONField(field); },
593
- fromJSON: function (json) { return PublicProofInputs.fromJSON(json); },
594
- fromSuiParsedData: function (content) { return PublicProofInputs.fromSuiParsedData(content); },
595
- fromSuiObjectData: function (content) { return PublicProofInputs.fromSuiObjectData(content); },
596
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
597
- return [2 /*return*/, PublicProofInputs.fetch(client, id)];
598
- }); }); },
599
- new: function (fields) {
600
- return new PublicProofInputs([], fields);
601
- },
602
- kind: "StructClassReified",
603
- };
604
- };
605
- Object.defineProperty(PublicProofInputs, "r", {
606
- get: function () {
607
- return PublicProofInputs.reified();
608
- },
609
- enumerable: false,
610
- configurable: true
611
- });
612
- PublicProofInputs.phantom = function () {
613
- return (0, reified_1.phantom)(PublicProofInputs.reified());
614
- };
615
- Object.defineProperty(PublicProofInputs, "p", {
616
- get: function () {
617
- return PublicProofInputs.phantom();
618
- },
619
- enumerable: false,
620
- configurable: true
621
- });
622
- Object.defineProperty(PublicProofInputs, "bcs", {
623
- get: function () {
624
- return bcs_1.bcs.struct("PublicProofInputs", {
625
- bytes: bcs_1.bcs.vector(bcs_1.bcs.u8()),
626
- });
627
- },
628
- enumerable: false,
629
- configurable: true
630
- });
631
- PublicProofInputs.fromFields = function (fields) {
632
- return PublicProofInputs.reified().new({ bytes: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.bytes) });
633
- };
634
- PublicProofInputs.fromFieldsWithTypes = function (item) {
635
- if (!isPublicProofInputs(item.type)) {
636
- throw new Error("not a PublicProofInputs type");
637
- }
638
- return PublicProofInputs.reified().new({ bytes: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.bytes) });
639
- };
640
- PublicProofInputs.fromBcs = function (data) {
641
- return PublicProofInputs.fromFields(PublicProofInputs.bcs.parse(data));
642
- };
643
- PublicProofInputs.prototype.toJSONField = function () {
644
- return {
645
- bytes: (0, reified_1.fieldToJSON)("vector<u8>", this.bytes),
646
- };
647
- };
648
- PublicProofInputs.prototype.toJSON = function () {
649
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
650
- };
651
- PublicProofInputs.fromJSONField = function (field) {
652
- return PublicProofInputs.reified().new({ bytes: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.bytes) });
653
- };
654
- PublicProofInputs.fromJSON = function (json) {
655
- if (json.$typeName !== PublicProofInputs.$typeName) {
656
- throw new Error("not a WithTwoGenerics json object");
657
- }
658
- return PublicProofInputs.fromJSONField(json);
659
- };
660
- PublicProofInputs.fromSuiParsedData = function (content) {
661
- if (content.dataType !== "moveObject") {
662
- throw new Error("not an object");
663
- }
664
- if (!isPublicProofInputs(content.type)) {
665
- throw new Error("object at ".concat(content.fields.id, " is not a PublicProofInputs object"));
666
- }
667
- return PublicProofInputs.fromFieldsWithTypes(content);
668
- };
669
- PublicProofInputs.fromSuiObjectData = function (data) {
670
- if (data.bcs) {
671
- if (data.bcs.dataType !== "moveObject" || !isPublicProofInputs(data.bcs.type)) {
672
- throw new Error("object at is not a PublicProofInputs object");
673
- }
674
- return PublicProofInputs.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
675
- }
676
- if (data.content) {
677
- return PublicProofInputs.fromSuiParsedData(data.content);
678
- }
679
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
680
- };
681
- PublicProofInputs.fetch = function (client, id) {
682
- return __awaiter(this, void 0, void 0, function () {
683
- var res;
684
- var _a, _b;
685
- return __generator(this, function (_c) {
686
- switch (_c.label) {
687
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
688
- case 1:
689
- res = _c.sent();
690
- if (res.error) {
691
- throw new Error("error fetching PublicProofInputs object at id ".concat(id, ": ").concat(res.error.code));
692
- }
693
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isPublicProofInputs(res.data.bcs.type)) {
694
- throw new Error("object at id ".concat(id, " is not a PublicProofInputs object"));
695
- }
696
- return [2 /*return*/, PublicProofInputs.fromSuiObjectData(res.data)];
697
- }
698
- });
699
- });
700
- };
701
- PublicProofInputs.$typeName = "".concat(index_1.PKG_V26, "::groth16::PublicProofInputs");
702
- PublicProofInputs.$numTypeParams = 0;
703
- PublicProofInputs.$isPhantom = [];
704
- return PublicProofInputs;
705
- }());
706
- exports.PublicProofInputs = PublicProofInputs;