@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,1084 +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.TypusAirdropRegistry = exports.SetAirdropEvent = exports.RemoveAirdropEvent = exports.ClaimAirdropEvent = exports.AirdropInfo = exports.Airdrop = void 0;
109
- exports.isAirdrop = isAirdrop;
110
- exports.isAirdropInfo = isAirdropInfo;
111
- exports.isClaimAirdropEvent = isClaimAirdropEvent;
112
- exports.isRemoveAirdropEvent = isRemoveAirdropEvent;
113
- exports.isSetAirdropEvent = isSetAirdropEvent;
114
- exports.isTypusAirdropRegistry = isTypusAirdropRegistry;
115
- var reified = __importStar(require("../../../../_framework/reified"));
116
- var reified_1 = require("../../../../_framework/reified");
117
- var util_1 = require("../../../../_framework/util");
118
- var structs_1 = require("../../0x1/ascii/structs");
119
- var structs_2 = require("../../0x1/type-name/structs");
120
- var structs_3 = require("../../0x2/balance/structs");
121
- var structs_4 = require("../../0x2/object/structs");
122
- var structs_5 = require("../big-vector/structs");
123
- var index_1 = require("../index");
124
- var bcs_1 = require("@mysten/sui/bcs");
125
- var utils_1 = require("@mysten/sui/utils");
126
- /* ============================== Airdrop =============================== */
127
- function isAirdrop(type) {
128
- type = (0, util_1.compressSuiType)(type);
129
- return type === "".concat(index_1.PKG_V1, "::airdrop::Airdrop");
130
- }
131
- var Airdrop = /** @class */ (function () {
132
- function Airdrop(typeArgs, fields) {
133
- this.__StructClass = true;
134
- this.$typeName = Airdrop.$typeName;
135
- this.$isPhantom = Airdrop.$isPhantom;
136
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Airdrop.$typeName], __read(typeArgs), false));
137
- this.$typeArgs = typeArgs;
138
- this.user = fields.user;
139
- this.value = fields.value;
140
- }
141
- Airdrop.reified = function () {
142
- var _this = this;
143
- return {
144
- typeName: Airdrop.$typeName,
145
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Airdrop.$typeName], [], false)),
146
- typeArgs: [],
147
- isPhantom: Airdrop.$isPhantom,
148
- reifiedTypeArgs: [],
149
- fromFields: function (fields) { return Airdrop.fromFields(fields); },
150
- fromFieldsWithTypes: function (item) { return Airdrop.fromFieldsWithTypes(item); },
151
- fromBcs: function (data) { return Airdrop.fromBcs(data); },
152
- bcs: Airdrop.bcs,
153
- fromJSONField: function (field) { return Airdrop.fromJSONField(field); },
154
- fromJSON: function (json) { return Airdrop.fromJSON(json); },
155
- fromSuiParsedData: function (content) { return Airdrop.fromSuiParsedData(content); },
156
- fromSuiObjectData: function (content) { return Airdrop.fromSuiObjectData(content); },
157
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
158
- return [2 /*return*/, Airdrop.fetch(client, id)];
159
- }); }); },
160
- new: function (fields) {
161
- return new Airdrop([], fields);
162
- },
163
- kind: "StructClassReified",
164
- };
165
- };
166
- Object.defineProperty(Airdrop, "r", {
167
- get: function () {
168
- return Airdrop.reified();
169
- },
170
- enumerable: false,
171
- configurable: true
172
- });
173
- Airdrop.phantom = function () {
174
- return (0, reified_1.phantom)(Airdrop.reified());
175
- };
176
- Object.defineProperty(Airdrop, "p", {
177
- get: function () {
178
- return Airdrop.phantom();
179
- },
180
- enumerable: false,
181
- configurable: true
182
- });
183
- Object.defineProperty(Airdrop, "bcs", {
184
- get: function () {
185
- return bcs_1.bcs.struct("Airdrop", {
186
- 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); } }),
187
- value: bcs_1.bcs.u64(),
188
- });
189
- },
190
- enumerable: false,
191
- configurable: true
192
- });
193
- Airdrop.fromFields = function (fields) {
194
- return Airdrop.reified().new({ user: (0, reified_1.decodeFromFields)("address", fields.user), value: (0, reified_1.decodeFromFields)("u64", fields.value) });
195
- };
196
- Airdrop.fromFieldsWithTypes = function (item) {
197
- if (!isAirdrop(item.type)) {
198
- throw new Error("not a Airdrop type");
199
- }
200
- return Airdrop.reified().new({
201
- user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
202
- value: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.value),
203
- });
204
- };
205
- Airdrop.fromBcs = function (data) {
206
- return Airdrop.fromFields(Airdrop.bcs.parse(data));
207
- };
208
- Airdrop.prototype.toJSONField = function () {
209
- return {
210
- user: this.user,
211
- value: this.value.toString(),
212
- };
213
- };
214
- Airdrop.prototype.toJSON = function () {
215
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
216
- };
217
- Airdrop.fromJSONField = function (field) {
218
- return Airdrop.reified().new({ user: (0, reified_1.decodeFromJSONField)("address", field.user), value: (0, reified_1.decodeFromJSONField)("u64", field.value) });
219
- };
220
- Airdrop.fromJSON = function (json) {
221
- if (json.$typeName !== Airdrop.$typeName) {
222
- throw new Error("not a WithTwoGenerics json object");
223
- }
224
- return Airdrop.fromJSONField(json);
225
- };
226
- Airdrop.fromSuiParsedData = function (content) {
227
- if (content.dataType !== "moveObject") {
228
- throw new Error("not an object");
229
- }
230
- if (!isAirdrop(content.type)) {
231
- throw new Error("object at ".concat(content.fields.id, " is not a Airdrop object"));
232
- }
233
- return Airdrop.fromFieldsWithTypes(content);
234
- };
235
- Airdrop.fromSuiObjectData = function (data) {
236
- if (data.bcs) {
237
- if (data.bcs.dataType !== "moveObject" || !isAirdrop(data.bcs.type)) {
238
- throw new Error("object at is not a Airdrop object");
239
- }
240
- return Airdrop.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
241
- }
242
- if (data.content) {
243
- return Airdrop.fromSuiParsedData(data.content);
244
- }
245
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
246
- };
247
- Airdrop.fetch = function (client, id) {
248
- return __awaiter(this, void 0, void 0, function () {
249
- var res;
250
- var _a, _b;
251
- return __generator(this, function (_c) {
252
- switch (_c.label) {
253
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
254
- case 1:
255
- res = _c.sent();
256
- if (res.error) {
257
- throw new Error("error fetching Airdrop object at id ".concat(id, ": ").concat(res.error.code));
258
- }
259
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAirdrop(res.data.bcs.type)) {
260
- throw new Error("object at id ".concat(id, " is not a Airdrop object"));
261
- }
262
- return [2 /*return*/, Airdrop.fromSuiObjectData(res.data)];
263
- }
264
- });
265
- });
266
- };
267
- Airdrop.$typeName = "".concat(index_1.PKG_V1, "::airdrop::Airdrop");
268
- Airdrop.$numTypeParams = 0;
269
- Airdrop.$isPhantom = [];
270
- return Airdrop;
271
- }());
272
- exports.Airdrop = Airdrop;
273
- /* ============================== AirdropInfo =============================== */
274
- function isAirdropInfo(type) {
275
- type = (0, util_1.compressSuiType)(type);
276
- return type.startsWith("".concat(index_1.PKG_V1, "::airdrop::AirdropInfo") + "<");
277
- }
278
- var AirdropInfo = /** @class */ (function () {
279
- function AirdropInfo(typeArgs, fields) {
280
- this.__StructClass = true;
281
- this.$typeName = AirdropInfo.$typeName;
282
- this.$isPhantom = AirdropInfo.$isPhantom;
283
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AirdropInfo.$typeName], __read(typeArgs), false));
284
- this.$typeArgs = typeArgs;
285
- this.id = fields.id;
286
- this.balance = fields.balance;
287
- this.airdrops = fields.airdrops;
288
- }
289
- AirdropInfo.reified = function (TOKEN) {
290
- var _this = this;
291
- return {
292
- typeName: AirdropInfo.$typeName,
293
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AirdropInfo.$typeName], [(0, reified_1.extractType)(TOKEN)], false)),
294
- typeArgs: [(0, reified_1.extractType)(TOKEN)],
295
- isPhantom: AirdropInfo.$isPhantom,
296
- reifiedTypeArgs: [TOKEN],
297
- fromFields: function (fields) { return AirdropInfo.fromFields(TOKEN, fields); },
298
- fromFieldsWithTypes: function (item) { return AirdropInfo.fromFieldsWithTypes(TOKEN, item); },
299
- fromBcs: function (data) { return AirdropInfo.fromBcs(TOKEN, data); },
300
- bcs: AirdropInfo.bcs,
301
- fromJSONField: function (field) { return AirdropInfo.fromJSONField(TOKEN, field); },
302
- fromJSON: function (json) { return AirdropInfo.fromJSON(TOKEN, json); },
303
- fromSuiParsedData: function (content) { return AirdropInfo.fromSuiParsedData(TOKEN, content); },
304
- fromSuiObjectData: function (content) { return AirdropInfo.fromSuiObjectData(TOKEN, content); },
305
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
306
- return [2 /*return*/, AirdropInfo.fetch(client, TOKEN, id)];
307
- }); }); },
308
- new: function (fields) {
309
- return new AirdropInfo([(0, reified_1.extractType)(TOKEN)], fields);
310
- },
311
- kind: "StructClassReified",
312
- };
313
- };
314
- Object.defineProperty(AirdropInfo, "r", {
315
- get: function () {
316
- return AirdropInfo.reified;
317
- },
318
- enumerable: false,
319
- configurable: true
320
- });
321
- AirdropInfo.phantom = function (TOKEN) {
322
- return (0, reified_1.phantom)(AirdropInfo.reified(TOKEN));
323
- };
324
- Object.defineProperty(AirdropInfo, "p", {
325
- get: function () {
326
- return AirdropInfo.phantom;
327
- },
328
- enumerable: false,
329
- configurable: true
330
- });
331
- Object.defineProperty(AirdropInfo, "bcs", {
332
- get: function () {
333
- return bcs_1.bcs.struct("AirdropInfo", {
334
- id: structs_4.UID.bcs,
335
- balance: structs_3.Balance.bcs,
336
- airdrops: structs_5.BigVector.bcs,
337
- });
338
- },
339
- enumerable: false,
340
- configurable: true
341
- });
342
- AirdropInfo.fromFields = function (typeArg, fields) {
343
- return AirdropInfo.reified(typeArg).new({
344
- id: (0, reified_1.decodeFromFields)(structs_4.UID.reified(), fields.id),
345
- balance: (0, reified_1.decodeFromFields)(structs_3.Balance.reified(typeArg), fields.balance),
346
- airdrops: (0, reified_1.decodeFromFields)(structs_5.BigVector.reified(), fields.airdrops),
347
- });
348
- };
349
- AirdropInfo.fromFieldsWithTypes = function (typeArg, item) {
350
- if (!isAirdropInfo(item.type)) {
351
- throw new Error("not a AirdropInfo type");
352
- }
353
- (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
354
- return AirdropInfo.reified(typeArg).new({
355
- id: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.UID.reified(), item.fields.id),
356
- balance: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.Balance.reified(typeArg), item.fields.balance),
357
- airdrops: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.BigVector.reified(), item.fields.airdrops),
358
- });
359
- };
360
- AirdropInfo.fromBcs = function (typeArg, data) {
361
- return AirdropInfo.fromFields(typeArg, AirdropInfo.bcs.parse(data));
362
- };
363
- AirdropInfo.prototype.toJSONField = function () {
364
- return {
365
- id: this.id,
366
- balance: this.balance.toJSONField(),
367
- airdrops: this.airdrops.toJSONField(),
368
- };
369
- };
370
- AirdropInfo.prototype.toJSON = function () {
371
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
372
- };
373
- AirdropInfo.fromJSONField = function (typeArg, field) {
374
- return AirdropInfo.reified(typeArg).new({
375
- id: (0, reified_1.decodeFromJSONField)(structs_4.UID.reified(), field.id),
376
- balance: (0, reified_1.decodeFromJSONField)(structs_3.Balance.reified(typeArg), field.balance),
377
- airdrops: (0, reified_1.decodeFromJSONField)(structs_5.BigVector.reified(), field.airdrops),
378
- });
379
- };
380
- AirdropInfo.fromJSON = function (typeArg, json) {
381
- if (json.$typeName !== AirdropInfo.$typeName) {
382
- throw new Error("not a WithTwoGenerics json object");
383
- }
384
- (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(AirdropInfo.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
385
- return AirdropInfo.fromJSONField(typeArg, json);
386
- };
387
- AirdropInfo.fromSuiParsedData = function (typeArg, content) {
388
- if (content.dataType !== "moveObject") {
389
- throw new Error("not an object");
390
- }
391
- if (!isAirdropInfo(content.type)) {
392
- throw new Error("object at ".concat(content.fields.id, " is not a AirdropInfo object"));
393
- }
394
- return AirdropInfo.fromFieldsWithTypes(typeArg, content);
395
- };
396
- AirdropInfo.fromSuiObjectData = function (typeArg, data) {
397
- if (data.bcs) {
398
- if (data.bcs.dataType !== "moveObject" || !isAirdropInfo(data.bcs.type)) {
399
- throw new Error("object at is not a AirdropInfo object");
400
- }
401
- var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
402
- if (gotTypeArgs.length !== 1) {
403
- throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
404
- }
405
- var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
406
- var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
407
- if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
408
- throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
409
- }
410
- return AirdropInfo.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
411
- }
412
- if (data.content) {
413
- return AirdropInfo.fromSuiParsedData(typeArg, data.content);
414
- }
415
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
416
- };
417
- AirdropInfo.fetch = function (client, typeArg, id) {
418
- return __awaiter(this, void 0, void 0, function () {
419
- var res;
420
- var _a, _b;
421
- return __generator(this, function (_c) {
422
- switch (_c.label) {
423
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
424
- case 1:
425
- res = _c.sent();
426
- if (res.error) {
427
- throw new Error("error fetching AirdropInfo object at id ".concat(id, ": ").concat(res.error.code));
428
- }
429
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAirdropInfo(res.data.bcs.type)) {
430
- throw new Error("object at id ".concat(id, " is not a AirdropInfo object"));
431
- }
432
- return [2 /*return*/, AirdropInfo.fromSuiObjectData(typeArg, res.data)];
433
- }
434
- });
435
- });
436
- };
437
- AirdropInfo.$typeName = "".concat(index_1.PKG_V1, "::airdrop::AirdropInfo");
438
- AirdropInfo.$numTypeParams = 1;
439
- AirdropInfo.$isPhantom = [true];
440
- return AirdropInfo;
441
- }());
442
- exports.AirdropInfo = AirdropInfo;
443
- /* ============================== ClaimAirdropEvent =============================== */
444
- function isClaimAirdropEvent(type) {
445
- type = (0, util_1.compressSuiType)(type);
446
- return type === "".concat(index_1.PKG_V1, "::airdrop::ClaimAirdropEvent");
447
- }
448
- var ClaimAirdropEvent = /** @class */ (function () {
449
- function ClaimAirdropEvent(typeArgs, fields) {
450
- this.__StructClass = true;
451
- this.$typeName = ClaimAirdropEvent.$typeName;
452
- this.$isPhantom = ClaimAirdropEvent.$isPhantom;
453
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ClaimAirdropEvent.$typeName], __read(typeArgs), false));
454
- this.$typeArgs = typeArgs;
455
- this.token = fields.token;
456
- this.key = fields.key;
457
- this.user = fields.user;
458
- this.log = fields.log;
459
- this.bcsPadding = fields.bcsPadding;
460
- }
461
- ClaimAirdropEvent.reified = function () {
462
- var _this = this;
463
- return {
464
- typeName: ClaimAirdropEvent.$typeName,
465
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ClaimAirdropEvent.$typeName], [], false)),
466
- typeArgs: [],
467
- isPhantom: ClaimAirdropEvent.$isPhantom,
468
- reifiedTypeArgs: [],
469
- fromFields: function (fields) { return ClaimAirdropEvent.fromFields(fields); },
470
- fromFieldsWithTypes: function (item) { return ClaimAirdropEvent.fromFieldsWithTypes(item); },
471
- fromBcs: function (data) { return ClaimAirdropEvent.fromBcs(data); },
472
- bcs: ClaimAirdropEvent.bcs,
473
- fromJSONField: function (field) { return ClaimAirdropEvent.fromJSONField(field); },
474
- fromJSON: function (json) { return ClaimAirdropEvent.fromJSON(json); },
475
- fromSuiParsedData: function (content) { return ClaimAirdropEvent.fromSuiParsedData(content); },
476
- fromSuiObjectData: function (content) { return ClaimAirdropEvent.fromSuiObjectData(content); },
477
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
478
- return [2 /*return*/, ClaimAirdropEvent.fetch(client, id)];
479
- }); }); },
480
- new: function (fields) {
481
- return new ClaimAirdropEvent([], fields);
482
- },
483
- kind: "StructClassReified",
484
- };
485
- };
486
- Object.defineProperty(ClaimAirdropEvent, "r", {
487
- get: function () {
488
- return ClaimAirdropEvent.reified();
489
- },
490
- enumerable: false,
491
- configurable: true
492
- });
493
- ClaimAirdropEvent.phantom = function () {
494
- return (0, reified_1.phantom)(ClaimAirdropEvent.reified());
495
- };
496
- Object.defineProperty(ClaimAirdropEvent, "p", {
497
- get: function () {
498
- return ClaimAirdropEvent.phantom();
499
- },
500
- enumerable: false,
501
- configurable: true
502
- });
503
- Object.defineProperty(ClaimAirdropEvent, "bcs", {
504
- get: function () {
505
- return bcs_1.bcs.struct("ClaimAirdropEvent", {
506
- token: structs_2.TypeName.bcs,
507
- key: structs_1.String.bcs,
508
- 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); } }),
509
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
510
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
511
- });
512
- },
513
- enumerable: false,
514
- configurable: true
515
- });
516
- ClaimAirdropEvent.fromFields = function (fields) {
517
- return ClaimAirdropEvent.reified().new({
518
- token: (0, reified_1.decodeFromFields)(structs_2.TypeName.reified(), fields.token),
519
- key: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.key),
520
- user: (0, reified_1.decodeFromFields)("address", fields.user),
521
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
522
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
523
- });
524
- };
525
- ClaimAirdropEvent.fromFieldsWithTypes = function (item) {
526
- if (!isClaimAirdropEvent(item.type)) {
527
- throw new Error("not a ClaimAirdropEvent type");
528
- }
529
- return ClaimAirdropEvent.reified().new({
530
- token: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.TypeName.reified(), item.fields.token),
531
- key: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.key),
532
- user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
533
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
534
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
535
- });
536
- };
537
- ClaimAirdropEvent.fromBcs = function (data) {
538
- return ClaimAirdropEvent.fromFields(ClaimAirdropEvent.bcs.parse(data));
539
- };
540
- ClaimAirdropEvent.prototype.toJSONField = function () {
541
- return {
542
- token: this.token.toJSONField(),
543
- key: this.key,
544
- user: this.user,
545
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
546
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
547
- };
548
- };
549
- ClaimAirdropEvent.prototype.toJSON = function () {
550
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
551
- };
552
- ClaimAirdropEvent.fromJSONField = function (field) {
553
- return ClaimAirdropEvent.reified().new({
554
- token: (0, reified_1.decodeFromJSONField)(structs_2.TypeName.reified(), field.token),
555
- key: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.key),
556
- user: (0, reified_1.decodeFromJSONField)("address", field.user),
557
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
558
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
559
- });
560
- };
561
- ClaimAirdropEvent.fromJSON = function (json) {
562
- if (json.$typeName !== ClaimAirdropEvent.$typeName) {
563
- throw new Error("not a WithTwoGenerics json object");
564
- }
565
- return ClaimAirdropEvent.fromJSONField(json);
566
- };
567
- ClaimAirdropEvent.fromSuiParsedData = function (content) {
568
- if (content.dataType !== "moveObject") {
569
- throw new Error("not an object");
570
- }
571
- if (!isClaimAirdropEvent(content.type)) {
572
- throw new Error("object at ".concat(content.fields.id, " is not a ClaimAirdropEvent object"));
573
- }
574
- return ClaimAirdropEvent.fromFieldsWithTypes(content);
575
- };
576
- ClaimAirdropEvent.fromSuiObjectData = function (data) {
577
- if (data.bcs) {
578
- if (data.bcs.dataType !== "moveObject" || !isClaimAirdropEvent(data.bcs.type)) {
579
- throw new Error("object at is not a ClaimAirdropEvent object");
580
- }
581
- return ClaimAirdropEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
582
- }
583
- if (data.content) {
584
- return ClaimAirdropEvent.fromSuiParsedData(data.content);
585
- }
586
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
587
- };
588
- ClaimAirdropEvent.fetch = function (client, id) {
589
- return __awaiter(this, void 0, void 0, function () {
590
- var res;
591
- var _a, _b;
592
- return __generator(this, function (_c) {
593
- switch (_c.label) {
594
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
595
- case 1:
596
- res = _c.sent();
597
- if (res.error) {
598
- throw new Error("error fetching ClaimAirdropEvent object at id ".concat(id, ": ").concat(res.error.code));
599
- }
600
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isClaimAirdropEvent(res.data.bcs.type)) {
601
- throw new Error("object at id ".concat(id, " is not a ClaimAirdropEvent object"));
602
- }
603
- return [2 /*return*/, ClaimAirdropEvent.fromSuiObjectData(res.data)];
604
- }
605
- });
606
- });
607
- };
608
- ClaimAirdropEvent.$typeName = "".concat(index_1.PKG_V1, "::airdrop::ClaimAirdropEvent");
609
- ClaimAirdropEvent.$numTypeParams = 0;
610
- ClaimAirdropEvent.$isPhantom = [];
611
- return ClaimAirdropEvent;
612
- }());
613
- exports.ClaimAirdropEvent = ClaimAirdropEvent;
614
- /* ============================== RemoveAirdropEvent =============================== */
615
- function isRemoveAirdropEvent(type) {
616
- type = (0, util_1.compressSuiType)(type);
617
- return type === "".concat(index_1.PKG_V1, "::airdrop::RemoveAirdropEvent");
618
- }
619
- var RemoveAirdropEvent = /** @class */ (function () {
620
- function RemoveAirdropEvent(typeArgs, fields) {
621
- this.__StructClass = true;
622
- this.$typeName = RemoveAirdropEvent.$typeName;
623
- this.$isPhantom = RemoveAirdropEvent.$isPhantom;
624
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemoveAirdropEvent.$typeName], __read(typeArgs), false));
625
- this.$typeArgs = typeArgs;
626
- this.token = fields.token;
627
- this.key = fields.key;
628
- this.log = fields.log;
629
- this.bcsPadding = fields.bcsPadding;
630
- }
631
- RemoveAirdropEvent.reified = function () {
632
- var _this = this;
633
- return {
634
- typeName: RemoveAirdropEvent.$typeName,
635
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemoveAirdropEvent.$typeName], [], false)),
636
- typeArgs: [],
637
- isPhantom: RemoveAirdropEvent.$isPhantom,
638
- reifiedTypeArgs: [],
639
- fromFields: function (fields) { return RemoveAirdropEvent.fromFields(fields); },
640
- fromFieldsWithTypes: function (item) { return RemoveAirdropEvent.fromFieldsWithTypes(item); },
641
- fromBcs: function (data) { return RemoveAirdropEvent.fromBcs(data); },
642
- bcs: RemoveAirdropEvent.bcs,
643
- fromJSONField: function (field) { return RemoveAirdropEvent.fromJSONField(field); },
644
- fromJSON: function (json) { return RemoveAirdropEvent.fromJSON(json); },
645
- fromSuiParsedData: function (content) { return RemoveAirdropEvent.fromSuiParsedData(content); },
646
- fromSuiObjectData: function (content) { return RemoveAirdropEvent.fromSuiObjectData(content); },
647
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
648
- return [2 /*return*/, RemoveAirdropEvent.fetch(client, id)];
649
- }); }); },
650
- new: function (fields) {
651
- return new RemoveAirdropEvent([], fields);
652
- },
653
- kind: "StructClassReified",
654
- };
655
- };
656
- Object.defineProperty(RemoveAirdropEvent, "r", {
657
- get: function () {
658
- return RemoveAirdropEvent.reified();
659
- },
660
- enumerable: false,
661
- configurable: true
662
- });
663
- RemoveAirdropEvent.phantom = function () {
664
- return (0, reified_1.phantom)(RemoveAirdropEvent.reified());
665
- };
666
- Object.defineProperty(RemoveAirdropEvent, "p", {
667
- get: function () {
668
- return RemoveAirdropEvent.phantom();
669
- },
670
- enumerable: false,
671
- configurable: true
672
- });
673
- Object.defineProperty(RemoveAirdropEvent, "bcs", {
674
- get: function () {
675
- return bcs_1.bcs.struct("RemoveAirdropEvent", {
676
- token: structs_2.TypeName.bcs,
677
- key: structs_1.String.bcs,
678
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
679
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
680
- });
681
- },
682
- enumerable: false,
683
- configurable: true
684
- });
685
- RemoveAirdropEvent.fromFields = function (fields) {
686
- return RemoveAirdropEvent.reified().new({
687
- token: (0, reified_1.decodeFromFields)(structs_2.TypeName.reified(), fields.token),
688
- key: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.key),
689
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
690
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
691
- });
692
- };
693
- RemoveAirdropEvent.fromFieldsWithTypes = function (item) {
694
- if (!isRemoveAirdropEvent(item.type)) {
695
- throw new Error("not a RemoveAirdropEvent type");
696
- }
697
- return RemoveAirdropEvent.reified().new({
698
- token: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.TypeName.reified(), item.fields.token),
699
- key: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.key),
700
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
701
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
702
- });
703
- };
704
- RemoveAirdropEvent.fromBcs = function (data) {
705
- return RemoveAirdropEvent.fromFields(RemoveAirdropEvent.bcs.parse(data));
706
- };
707
- RemoveAirdropEvent.prototype.toJSONField = function () {
708
- return {
709
- token: this.token.toJSONField(),
710
- key: this.key,
711
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
712
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
713
- };
714
- };
715
- RemoveAirdropEvent.prototype.toJSON = function () {
716
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
717
- };
718
- RemoveAirdropEvent.fromJSONField = function (field) {
719
- return RemoveAirdropEvent.reified().new({
720
- token: (0, reified_1.decodeFromJSONField)(structs_2.TypeName.reified(), field.token),
721
- key: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.key),
722
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
723
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
724
- });
725
- };
726
- RemoveAirdropEvent.fromJSON = function (json) {
727
- if (json.$typeName !== RemoveAirdropEvent.$typeName) {
728
- throw new Error("not a WithTwoGenerics json object");
729
- }
730
- return RemoveAirdropEvent.fromJSONField(json);
731
- };
732
- RemoveAirdropEvent.fromSuiParsedData = function (content) {
733
- if (content.dataType !== "moveObject") {
734
- throw new Error("not an object");
735
- }
736
- if (!isRemoveAirdropEvent(content.type)) {
737
- throw new Error("object at ".concat(content.fields.id, " is not a RemoveAirdropEvent object"));
738
- }
739
- return RemoveAirdropEvent.fromFieldsWithTypes(content);
740
- };
741
- RemoveAirdropEvent.fromSuiObjectData = function (data) {
742
- if (data.bcs) {
743
- if (data.bcs.dataType !== "moveObject" || !isRemoveAirdropEvent(data.bcs.type)) {
744
- throw new Error("object at is not a RemoveAirdropEvent object");
745
- }
746
- return RemoveAirdropEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
747
- }
748
- if (data.content) {
749
- return RemoveAirdropEvent.fromSuiParsedData(data.content);
750
- }
751
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
752
- };
753
- RemoveAirdropEvent.fetch = function (client, id) {
754
- return __awaiter(this, void 0, void 0, function () {
755
- var res;
756
- var _a, _b;
757
- return __generator(this, function (_c) {
758
- switch (_c.label) {
759
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
760
- case 1:
761
- res = _c.sent();
762
- if (res.error) {
763
- throw new Error("error fetching RemoveAirdropEvent object at id ".concat(id, ": ").concat(res.error.code));
764
- }
765
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRemoveAirdropEvent(res.data.bcs.type)) {
766
- throw new Error("object at id ".concat(id, " is not a RemoveAirdropEvent object"));
767
- }
768
- return [2 /*return*/, RemoveAirdropEvent.fromSuiObjectData(res.data)];
769
- }
770
- });
771
- });
772
- };
773
- RemoveAirdropEvent.$typeName = "".concat(index_1.PKG_V1, "::airdrop::RemoveAirdropEvent");
774
- RemoveAirdropEvent.$numTypeParams = 0;
775
- RemoveAirdropEvent.$isPhantom = [];
776
- return RemoveAirdropEvent;
777
- }());
778
- exports.RemoveAirdropEvent = RemoveAirdropEvent;
779
- /* ============================== SetAirdropEvent =============================== */
780
- function isSetAirdropEvent(type) {
781
- type = (0, util_1.compressSuiType)(type);
782
- return type === "".concat(index_1.PKG_V1, "::airdrop::SetAirdropEvent");
783
- }
784
- var SetAirdropEvent = /** @class */ (function () {
785
- function SetAirdropEvent(typeArgs, fields) {
786
- this.__StructClass = true;
787
- this.$typeName = SetAirdropEvent.$typeName;
788
- this.$isPhantom = SetAirdropEvent.$isPhantom;
789
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([SetAirdropEvent.$typeName], __read(typeArgs), false));
790
- this.$typeArgs = typeArgs;
791
- this.token = fields.token;
792
- this.key = fields.key;
793
- this.log = fields.log;
794
- this.bcsPadding = fields.bcsPadding;
795
- }
796
- SetAirdropEvent.reified = function () {
797
- var _this = this;
798
- return {
799
- typeName: SetAirdropEvent.$typeName,
800
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([SetAirdropEvent.$typeName], [], false)),
801
- typeArgs: [],
802
- isPhantom: SetAirdropEvent.$isPhantom,
803
- reifiedTypeArgs: [],
804
- fromFields: function (fields) { return SetAirdropEvent.fromFields(fields); },
805
- fromFieldsWithTypes: function (item) { return SetAirdropEvent.fromFieldsWithTypes(item); },
806
- fromBcs: function (data) { return SetAirdropEvent.fromBcs(data); },
807
- bcs: SetAirdropEvent.bcs,
808
- fromJSONField: function (field) { return SetAirdropEvent.fromJSONField(field); },
809
- fromJSON: function (json) { return SetAirdropEvent.fromJSON(json); },
810
- fromSuiParsedData: function (content) { return SetAirdropEvent.fromSuiParsedData(content); },
811
- fromSuiObjectData: function (content) { return SetAirdropEvent.fromSuiObjectData(content); },
812
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
813
- return [2 /*return*/, SetAirdropEvent.fetch(client, id)];
814
- }); }); },
815
- new: function (fields) {
816
- return new SetAirdropEvent([], fields);
817
- },
818
- kind: "StructClassReified",
819
- };
820
- };
821
- Object.defineProperty(SetAirdropEvent, "r", {
822
- get: function () {
823
- return SetAirdropEvent.reified();
824
- },
825
- enumerable: false,
826
- configurable: true
827
- });
828
- SetAirdropEvent.phantom = function () {
829
- return (0, reified_1.phantom)(SetAirdropEvent.reified());
830
- };
831
- Object.defineProperty(SetAirdropEvent, "p", {
832
- get: function () {
833
- return SetAirdropEvent.phantom();
834
- },
835
- enumerable: false,
836
- configurable: true
837
- });
838
- Object.defineProperty(SetAirdropEvent, "bcs", {
839
- get: function () {
840
- return bcs_1.bcs.struct("SetAirdropEvent", {
841
- token: structs_2.TypeName.bcs,
842
- key: structs_1.String.bcs,
843
- log: bcs_1.bcs.vector(bcs_1.bcs.u64()),
844
- bcs_padding: bcs_1.bcs.vector(bcs_1.bcs.vector(bcs_1.bcs.u8())),
845
- });
846
- },
847
- enumerable: false,
848
- configurable: true
849
- });
850
- SetAirdropEvent.fromFields = function (fields) {
851
- return SetAirdropEvent.reified().new({
852
- token: (0, reified_1.decodeFromFields)(structs_2.TypeName.reified(), fields.token),
853
- key: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.key),
854
- log: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.log),
855
- bcsPadding: (0, reified_1.decodeFromFields)(reified.vector(reified.vector("u8")), fields.bcs_padding),
856
- });
857
- };
858
- SetAirdropEvent.fromFieldsWithTypes = function (item) {
859
- if (!isSetAirdropEvent(item.type)) {
860
- throw new Error("not a SetAirdropEvent type");
861
- }
862
- return SetAirdropEvent.reified().new({
863
- token: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.TypeName.reified(), item.fields.token),
864
- key: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.key),
865
- log: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.log),
866
- bcsPadding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(reified.vector("u8")), item.fields.bcs_padding),
867
- });
868
- };
869
- SetAirdropEvent.fromBcs = function (data) {
870
- return SetAirdropEvent.fromFields(SetAirdropEvent.bcs.parse(data));
871
- };
872
- SetAirdropEvent.prototype.toJSONField = function () {
873
- return {
874
- token: this.token.toJSONField(),
875
- key: this.key,
876
- log: (0, reified_1.fieldToJSON)("vector<u64>", this.log),
877
- bcsPadding: (0, reified_1.fieldToJSON)("vector<vector<u8>>", this.bcsPadding),
878
- };
879
- };
880
- SetAirdropEvent.prototype.toJSON = function () {
881
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
882
- };
883
- SetAirdropEvent.fromJSONField = function (field) {
884
- return SetAirdropEvent.reified().new({
885
- token: (0, reified_1.decodeFromJSONField)(structs_2.TypeName.reified(), field.token),
886
- key: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.key),
887
- log: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.log),
888
- bcsPadding: (0, reified_1.decodeFromJSONField)(reified.vector(reified.vector("u8")), field.bcsPadding),
889
- });
890
- };
891
- SetAirdropEvent.fromJSON = function (json) {
892
- if (json.$typeName !== SetAirdropEvent.$typeName) {
893
- throw new Error("not a WithTwoGenerics json object");
894
- }
895
- return SetAirdropEvent.fromJSONField(json);
896
- };
897
- SetAirdropEvent.fromSuiParsedData = function (content) {
898
- if (content.dataType !== "moveObject") {
899
- throw new Error("not an object");
900
- }
901
- if (!isSetAirdropEvent(content.type)) {
902
- throw new Error("object at ".concat(content.fields.id, " is not a SetAirdropEvent object"));
903
- }
904
- return SetAirdropEvent.fromFieldsWithTypes(content);
905
- };
906
- SetAirdropEvent.fromSuiObjectData = function (data) {
907
- if (data.bcs) {
908
- if (data.bcs.dataType !== "moveObject" || !isSetAirdropEvent(data.bcs.type)) {
909
- throw new Error("object at is not a SetAirdropEvent object");
910
- }
911
- return SetAirdropEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
912
- }
913
- if (data.content) {
914
- return SetAirdropEvent.fromSuiParsedData(data.content);
915
- }
916
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
917
- };
918
- SetAirdropEvent.fetch = function (client, id) {
919
- return __awaiter(this, void 0, void 0, function () {
920
- var res;
921
- var _a, _b;
922
- return __generator(this, function (_c) {
923
- switch (_c.label) {
924
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
925
- case 1:
926
- res = _c.sent();
927
- if (res.error) {
928
- throw new Error("error fetching SetAirdropEvent object at id ".concat(id, ": ").concat(res.error.code));
929
- }
930
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isSetAirdropEvent(res.data.bcs.type)) {
931
- throw new Error("object at id ".concat(id, " is not a SetAirdropEvent object"));
932
- }
933
- return [2 /*return*/, SetAirdropEvent.fromSuiObjectData(res.data)];
934
- }
935
- });
936
- });
937
- };
938
- SetAirdropEvent.$typeName = "".concat(index_1.PKG_V1, "::airdrop::SetAirdropEvent");
939
- SetAirdropEvent.$numTypeParams = 0;
940
- SetAirdropEvent.$isPhantom = [];
941
- return SetAirdropEvent;
942
- }());
943
- exports.SetAirdropEvent = SetAirdropEvent;
944
- /* ============================== TypusAirdropRegistry =============================== */
945
- function isTypusAirdropRegistry(type) {
946
- type = (0, util_1.compressSuiType)(type);
947
- return type === "".concat(index_1.PKG_V1, "::airdrop::TypusAirdropRegistry");
948
- }
949
- var TypusAirdropRegistry = /** @class */ (function () {
950
- function TypusAirdropRegistry(typeArgs, fields) {
951
- this.__StructClass = true;
952
- this.$typeName = TypusAirdropRegistry.$typeName;
953
- this.$isPhantom = TypusAirdropRegistry.$isPhantom;
954
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TypusAirdropRegistry.$typeName], __read(typeArgs), false));
955
- this.$typeArgs = typeArgs;
956
- this.id = fields.id;
957
- }
958
- TypusAirdropRegistry.reified = function () {
959
- var _this = this;
960
- return {
961
- typeName: TypusAirdropRegistry.$typeName,
962
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TypusAirdropRegistry.$typeName], [], false)),
963
- typeArgs: [],
964
- isPhantom: TypusAirdropRegistry.$isPhantom,
965
- reifiedTypeArgs: [],
966
- fromFields: function (fields) { return TypusAirdropRegistry.fromFields(fields); },
967
- fromFieldsWithTypes: function (item) { return TypusAirdropRegistry.fromFieldsWithTypes(item); },
968
- fromBcs: function (data) { return TypusAirdropRegistry.fromBcs(data); },
969
- bcs: TypusAirdropRegistry.bcs,
970
- fromJSONField: function (field) { return TypusAirdropRegistry.fromJSONField(field); },
971
- fromJSON: function (json) { return TypusAirdropRegistry.fromJSON(json); },
972
- fromSuiParsedData: function (content) { return TypusAirdropRegistry.fromSuiParsedData(content); },
973
- fromSuiObjectData: function (content) { return TypusAirdropRegistry.fromSuiObjectData(content); },
974
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
975
- return [2 /*return*/, TypusAirdropRegistry.fetch(client, id)];
976
- }); }); },
977
- new: function (fields) {
978
- return new TypusAirdropRegistry([], fields);
979
- },
980
- kind: "StructClassReified",
981
- };
982
- };
983
- Object.defineProperty(TypusAirdropRegistry, "r", {
984
- get: function () {
985
- return TypusAirdropRegistry.reified();
986
- },
987
- enumerable: false,
988
- configurable: true
989
- });
990
- TypusAirdropRegistry.phantom = function () {
991
- return (0, reified_1.phantom)(TypusAirdropRegistry.reified());
992
- };
993
- Object.defineProperty(TypusAirdropRegistry, "p", {
994
- get: function () {
995
- return TypusAirdropRegistry.phantom();
996
- },
997
- enumerable: false,
998
- configurable: true
999
- });
1000
- Object.defineProperty(TypusAirdropRegistry, "bcs", {
1001
- get: function () {
1002
- return bcs_1.bcs.struct("TypusAirdropRegistry", {
1003
- id: structs_4.UID.bcs,
1004
- });
1005
- },
1006
- enumerable: false,
1007
- configurable: true
1008
- });
1009
- TypusAirdropRegistry.fromFields = function (fields) {
1010
- return TypusAirdropRegistry.reified().new({ id: (0, reified_1.decodeFromFields)(structs_4.UID.reified(), fields.id) });
1011
- };
1012
- TypusAirdropRegistry.fromFieldsWithTypes = function (item) {
1013
- if (!isTypusAirdropRegistry(item.type)) {
1014
- throw new Error("not a TypusAirdropRegistry type");
1015
- }
1016
- return TypusAirdropRegistry.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.UID.reified(), item.fields.id) });
1017
- };
1018
- TypusAirdropRegistry.fromBcs = function (data) {
1019
- return TypusAirdropRegistry.fromFields(TypusAirdropRegistry.bcs.parse(data));
1020
- };
1021
- TypusAirdropRegistry.prototype.toJSONField = function () {
1022
- return {
1023
- id: this.id,
1024
- };
1025
- };
1026
- TypusAirdropRegistry.prototype.toJSON = function () {
1027
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1028
- };
1029
- TypusAirdropRegistry.fromJSONField = function (field) {
1030
- return TypusAirdropRegistry.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_4.UID.reified(), field.id) });
1031
- };
1032
- TypusAirdropRegistry.fromJSON = function (json) {
1033
- if (json.$typeName !== TypusAirdropRegistry.$typeName) {
1034
- throw new Error("not a WithTwoGenerics json object");
1035
- }
1036
- return TypusAirdropRegistry.fromJSONField(json);
1037
- };
1038
- TypusAirdropRegistry.fromSuiParsedData = function (content) {
1039
- if (content.dataType !== "moveObject") {
1040
- throw new Error("not an object");
1041
- }
1042
- if (!isTypusAirdropRegistry(content.type)) {
1043
- throw new Error("object at ".concat(content.fields.id, " is not a TypusAirdropRegistry object"));
1044
- }
1045
- return TypusAirdropRegistry.fromFieldsWithTypes(content);
1046
- };
1047
- TypusAirdropRegistry.fromSuiObjectData = function (data) {
1048
- if (data.bcs) {
1049
- if (data.bcs.dataType !== "moveObject" || !isTypusAirdropRegistry(data.bcs.type)) {
1050
- throw new Error("object at is not a TypusAirdropRegistry object");
1051
- }
1052
- return TypusAirdropRegistry.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1053
- }
1054
- if (data.content) {
1055
- return TypusAirdropRegistry.fromSuiParsedData(data.content);
1056
- }
1057
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1058
- };
1059
- TypusAirdropRegistry.fetch = function (client, id) {
1060
- return __awaiter(this, void 0, void 0, function () {
1061
- var res;
1062
- var _a, _b;
1063
- return __generator(this, function (_c) {
1064
- switch (_c.label) {
1065
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1066
- case 1:
1067
- res = _c.sent();
1068
- if (res.error) {
1069
- throw new Error("error fetching TypusAirdropRegistry object at id ".concat(id, ": ").concat(res.error.code));
1070
- }
1071
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTypusAirdropRegistry(res.data.bcs.type)) {
1072
- throw new Error("object at id ".concat(id, " is not a TypusAirdropRegistry object"));
1073
- }
1074
- return [2 /*return*/, TypusAirdropRegistry.fromSuiObjectData(res.data)];
1075
- }
1076
- });
1077
- });
1078
- };
1079
- TypusAirdropRegistry.$typeName = "".concat(index_1.PKG_V1, "::airdrop::TypusAirdropRegistry");
1080
- TypusAirdropRegistry.$numTypeParams = 0;
1081
- TypusAirdropRegistry.$isPhantom = [];
1082
- return TypusAirdropRegistry;
1083
- }());
1084
- exports.TypusAirdropRegistry = TypusAirdropRegistry;