@typus/typus-sdk 1.5.4 → 1.5.5-a

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 (411) hide show
  1. package/dist/src/constants/token.d.ts +5 -53
  2. package/dist/src/constants/token.js +174 -104
  3. package/dist/src/typus-dov-single-v2/history/user-history.d.ts +2 -1
  4. package/dist/src/typus-launch/airdrop/authority-entry.js +2 -2
  5. package/package.json +2 -1
  6. package/dist/src/typus-perp/_dependencies/source/0x1/ascii/structs.d.ts +0 -92
  7. package/dist/src/typus-perp/_dependencies/source/0x1/ascii/structs.js +0 -406
  8. package/dist/src/typus-perp/_dependencies/source/0x1/bit-vector/structs.d.ts +0 -56
  9. package/dist/src/typus-perp/_dependencies/source/0x1/bit-vector/structs.js +0 -268
  10. package/dist/src/typus-perp/_dependencies/source/0x1/fixed-point32/structs.d.ts +0 -46
  11. package/dist/src/typus-perp/_dependencies/source/0x1/fixed-point32/structs.js +0 -228
  12. package/dist/src/typus-perp/_dependencies/source/0x1/index.d.ts +0 -3
  13. package/dist/src/typus-perp/_dependencies/source/0x1/index.js +0 -6
  14. package/dist/src/typus-perp/_dependencies/source/0x1/init.d.ts +0 -2
  15. package/dist/src/typus-perp/_dependencies/source/0x1/init.js +0 -55
  16. package/dist/src/typus-perp/_dependencies/source/0x1/option/structs.d.ts +0 -52
  17. package/dist/src/typus-perp/_dependencies/source/0x1/option/structs.js +0 -277
  18. package/dist/src/typus-perp/_dependencies/source/0x1/string/structs.d.ts +0 -50
  19. package/dist/src/typus-perp/_dependencies/source/0x1/string/structs.js +0 -262
  20. package/dist/src/typus-perp/_dependencies/source/0x1/type-name/structs.d.ts +0 -53
  21. package/dist/src/typus-perp/_dependencies/source/0x1/type-name/structs.js +0 -229
  22. package/dist/src/typus-perp/_dependencies/source/0x1/uq32-32/structs.d.ts +0 -46
  23. package/dist/src/typus-perp/_dependencies/source/0x1/uq32-32/structs.js +0 -228
  24. package/dist/src/typus-perp/_dependencies/source/0x1/uq64-64/structs.d.ts +0 -46
  25. package/dist/src/typus-perp/_dependencies/source/0x1/uq64-64/structs.js +0 -228
  26. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +0 -5
  27. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +0 -8
  28. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +0 -2
  29. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +0 -50
  30. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +0 -350
  31. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +0 -803
  32. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +0 -111
  33. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +0 -395
  34. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +0 -70
  35. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +0 -252
  36. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +0 -70
  37. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +0 -255
  38. package/dist/src/typus-perp/_dependencies/source/0x2/authenticator-state/structs.d.ts +0 -464
  39. package/dist/src/typus-perp/_dependencies/source/0x2/authenticator-state/structs.js +0 -904
  40. package/dist/src/typus-perp/_dependencies/source/0x2/bag/structs.d.ts +0 -61
  41. package/dist/src/typus-perp/_dependencies/source/0x2/bag/structs.js +0 -235
  42. package/dist/src/typus-perp/_dependencies/source/0x2/balance/structs.d.ts +0 -88
  43. package/dist/src/typus-perp/_dependencies/source/0x2/balance/structs.js +0 -398
  44. package/dist/src/typus-perp/_dependencies/source/0x2/bcs/structs.d.ts +0 -50
  45. package/dist/src/typus-perp/_dependencies/source/0x2/bcs/structs.js +0 -262
  46. package/dist/src/typus-perp/_dependencies/source/0x2/bls12381/structs.d.ts +0 -214
  47. package/dist/src/typus-perp/_dependencies/source/0x2/bls12381/structs.js +0 -820
  48. package/dist/src/typus-perp/_dependencies/source/0x2/borrow/structs.d.ts +0 -113
  49. package/dist/src/typus-perp/_dependencies/source/0x2/borrow/structs.js +0 -410
  50. package/dist/src/typus-perp/_dependencies/source/0x2/clock/structs.d.ts +0 -61
  51. package/dist/src/typus-perp/_dependencies/source/0x2/clock/structs.js +0 -235
  52. package/dist/src/typus-perp/_dependencies/source/0x2/coin/structs.d.ts +0 -460
  53. package/dist/src/typus-perp/_dependencies/source/0x2/coin/structs.js +0 -1259
  54. package/dist/src/typus-perp/_dependencies/source/0x2/config/structs.d.ts +0 -179
  55. package/dist/src/typus-perp/_dependencies/source/0x2/config/structs.js +0 -577
  56. package/dist/src/typus-perp/_dependencies/source/0x2/deny-list/structs.d.ts +0 -430
  57. package/dist/src/typus-perp/_dependencies/source/0x2/deny-list/structs.js +0 -1187
  58. package/dist/src/typus-perp/_dependencies/source/0x2/display/structs.d.ts +0 -241
  59. package/dist/src/typus-perp/_dependencies/source/0x2/display/structs.js +0 -584
  60. package/dist/src/typus-perp/_dependencies/source/0x2/dynamic-field/structs.d.ts +0 -68
  61. package/dist/src/typus-perp/_dependencies/source/0x2/dynamic-field/structs.js +0 -256
  62. package/dist/src/typus-perp/_dependencies/source/0x2/dynamic-object-field/structs.d.ts +0 -47
  63. package/dist/src/typus-perp/_dependencies/source/0x2/dynamic-object-field/structs.js +0 -242
  64. package/dist/src/typus-perp/_dependencies/source/0x2/groth16/structs.d.ts +0 -204
  65. package/dist/src/typus-perp/_dependencies/source/0x2/groth16/structs.js +0 -720
  66. package/dist/src/typus-perp/_dependencies/source/0x2/group-ops/structs.d.ts +0 -50
  67. package/dist/src/typus-perp/_dependencies/source/0x2/group-ops/structs.js +0 -273
  68. package/dist/src/typus-perp/_dependencies/source/0x2/index.d.ts +0 -3
  69. package/dist/src/typus-perp/_dependencies/source/0x2/index.js +0 -6
  70. package/dist/src/typus-perp/_dependencies/source/0x2/init.d.ts +0 -2
  71. package/dist/src/typus-perp/_dependencies/source/0x2/init.js +0 -171
  72. package/dist/src/typus-perp/_dependencies/source/0x2/kiosk/structs.d.ts +0 -606
  73. package/dist/src/typus-perp/_dependencies/source/0x2/kiosk/structs.js +0 -1734
  74. package/dist/src/typus-perp/_dependencies/source/0x2/kiosk-extension/structs.d.ts +0 -121
  75. package/dist/src/typus-perp/_dependencies/source/0x2/kiosk-extension/structs.js +0 -400
  76. package/dist/src/typus-perp/_dependencies/source/0x2/linked-table/structs.d.ts +0 -153
  77. package/dist/src/typus-perp/_dependencies/source/0x2/linked-table/structs.js +0 -438
  78. package/dist/src/typus-perp/_dependencies/source/0x2/object/structs.d.ts +0 -92
  79. package/dist/src/typus-perp/_dependencies/source/0x2/object/structs.js +0 -377
  80. package/dist/src/typus-perp/_dependencies/source/0x2/object-bag/structs.d.ts +0 -61
  81. package/dist/src/typus-perp/_dependencies/source/0x2/object-bag/structs.js +0 -235
  82. package/dist/src/typus-perp/_dependencies/source/0x2/object-table/structs.d.ts +0 -61
  83. package/dist/src/typus-perp/_dependencies/source/0x2/object-table/structs.js +0 -248
  84. package/dist/src/typus-perp/_dependencies/source/0x2/package/structs.d.ts +0 -280
  85. package/dist/src/typus-perp/_dependencies/source/0x2/package/structs.js +0 -762
  86. package/dist/src/typus-perp/_dependencies/source/0x2/priority-queue/structs.d.ts +0 -111
  87. package/dist/src/typus-perp/_dependencies/source/0x2/priority-queue/structs.js +0 -444
  88. package/dist/src/typus-perp/_dependencies/source/0x2/random/structs.d.ts +0 -204
  89. package/dist/src/typus-perp/_dependencies/source/0x2/random/structs.js +0 -596
  90. package/dist/src/typus-perp/_dependencies/source/0x2/sui/structs.d.ts +0 -46
  91. package/dist/src/typus-perp/_dependencies/source/0x2/sui/structs.js +0 -228
  92. package/dist/src/typus-perp/_dependencies/source/0x2/table/structs.d.ts +0 -61
  93. package/dist/src/typus-perp/_dependencies/source/0x2/table/structs.js +0 -248
  94. package/dist/src/typus-perp/_dependencies/source/0x2/table-vec/structs.d.ts +0 -68
  95. package/dist/src/typus-perp/_dependencies/source/0x2/table-vec/structs.js +0 -274
  96. package/dist/src/typus-perp/_dependencies/source/0x2/token/structs.d.ts +0 -449
  97. package/dist/src/typus-perp/_dependencies/source/0x2/token/structs.js +0 -1107
  98. package/dist/src/typus-perp/_dependencies/source/0x2/transfer/structs.d.ts +0 -57
  99. package/dist/src/typus-perp/_dependencies/source/0x2/transfer/structs.js +0 -246
  100. package/dist/src/typus-perp/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -370
  101. package/dist/src/typus-perp/_dependencies/source/0x2/transfer-policy/structs.js +0 -1109
  102. package/dist/src/typus-perp/_dependencies/source/0x2/tx-context/structs.d.ts +0 -74
  103. package/dist/src/typus-perp/_dependencies/source/0x2/tx-context/structs.js +0 -289
  104. package/dist/src/typus-perp/_dependencies/source/0x2/url/structs.d.ts +0 -53
  105. package/dist/src/typus-perp/_dependencies/source/0x2/url/structs.js +0 -229
  106. package/dist/src/typus-perp/_dependencies/source/0x2/vec-map/structs.d.ts +0 -111
  107. package/dist/src/typus-perp/_dependencies/source/0x2/vec-map/structs.js +0 -446
  108. package/dist/src/typus-perp/_dependencies/source/0x2/vec-set/structs.d.ts +0 -51
  109. package/dist/src/typus-perp/_dependencies/source/0x2/vec-set/structs.js +0 -276
  110. package/dist/src/typus-perp/_dependencies/source/0x2/versioned/structs.d.ts +0 -113
  111. package/dist/src/typus-perp/_dependencies/source/0x2/versioned/structs.js +0 -389
  112. package/dist/src/typus-perp/_dependencies/source/0x2/zklogin-verified-id/structs.d.ts +0 -110
  113. package/dist/src/typus-perp/_dependencies/source/0x2/zklogin-verified-id/structs.js +0 -263
  114. package/dist/src/typus-perp/_dependencies/source/0x2/zklogin-verified-issuer/structs.d.ts +0 -74
  115. package/dist/src/typus-perp/_dependencies/source/0x2/zklogin-verified-issuer/structs.js +0 -245
  116. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +0 -3
  117. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +0 -6
  118. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +0 -2
  119. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +0 -40
  120. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +0 -55
  121. package/dist/src/typus-perp/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +0 -229
  122. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +0 -4
  123. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +0 -7
  124. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +0 -2
  125. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +0 -43
  126. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +0 -46
  127. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +0 -228
  128. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +0 -121
  129. package/dist/src/typus-perp/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +0 -401
  130. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +0 -489
  131. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +0 -1102
  132. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +0 -147
  133. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +0 -456
  134. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +0 -239
  135. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +0 -653
  136. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +0 -405
  137. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +0 -908
  138. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +0 -8
  139. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +0 -11
  140. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +0 -2
  141. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +0 -102
  142. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/keyed-big-vector/structs.d.ts +0 -227
  143. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/keyed-big-vector/structs.js +0 -632
  144. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +0 -699
  145. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +0 -1486
  146. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.d.ts +0 -161
  147. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +0 -438
  148. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +0 -147
  149. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +0 -430
  150. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.d.ts +0 -1071
  151. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.js +0 -2285
  152. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +0 -279
  153. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +0 -742
  154. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +0 -328
  155. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +0 -910
  156. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +0 -628
  157. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +0 -1345
  158. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +0 -9
  159. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +0 -12
  160. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +0 -2
  161. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +0 -72
  162. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +0 -94
  163. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.js +0 -382
  164. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +0 -454
  165. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +0 -896
  166. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +0 -68
  167. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +0 -274
  168. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +0 -1117
  169. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +0 -2417
  170. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +0 -1524
  171. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +0 -3062
  172. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +0 -10
  173. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +0 -13
  174. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +0 -2
  175. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +0 -145
  176. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +0 -1267
  177. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +0 -2856
  178. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +0 -1412
  179. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +0 -1679
  180. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +0 -425
  181. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +0 -1259
  182. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +0 -1156
  183. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +0 -1879
  184. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +0 -82
  185. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +0 -264
  186. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +0 -5022
  187. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +0 -7690
  188. package/dist/src/typus-perp/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +0 -3
  189. package/dist/src/typus-perp/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +0 -6
  190. package/dist/src/typus-perp/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +0 -2
  191. package/dist/src/typus-perp/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +0 -4
  192. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +0 -88
  193. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +0 -266
  194. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +0 -347
  195. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +0 -591
  196. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +0 -73
  197. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +0 -258
  198. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +0 -876
  199. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +0 -1745
  200. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +0 -46
  201. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +0 -224
  202. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +0 -3
  203. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +0 -6
  204. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +0 -2
  205. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +0 -89
  206. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +0 -155
  207. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +0 -444
  208. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.d.ts +0 -2386
  209. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +0 -5024
  210. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +0 -745
  211. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +0 -1239
  212. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +0 -3
  213. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +0 -6
  214. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +0 -2
  215. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +0 -53
  216. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +0 -87
  217. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +0 -287
  218. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +0 -58
  219. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +0 -240
  220. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +0 -121
  221. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +0 -332
  222. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +0 -55
  223. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +0 -229
  224. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/batch-price-attestation/structs.d.ts +0 -289
  225. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/batch-price-attestation/structs.js +0 -453
  226. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/contract-upgrade/structs.d.ts +0 -114
  227. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/contract-upgrade/structs.js +0 -384
  228. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/data-source/structs.d.ts +0 -71
  229. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/data-source/structs.js +0 -235
  230. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/event/structs.d.ts +0 -209
  231. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/event/structs.js +0 -383
  232. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance/structs.d.ts +0 -73
  233. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance/structs.js +0 -275
  234. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-action/structs.d.ts +0 -46
  235. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-action/structs.js +0 -228
  236. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-instruction/structs.d.ts +0 -77
  237. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-instruction/structs.js +0 -281
  238. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/hot-potato-vector/structs.d.ts +0 -51
  239. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/hot-potato-vector/structs.js +0 -276
  240. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/i64/structs.d.ts +0 -52
  241. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/i64/structs.js +0 -234
  242. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.d.ts +0 -3
  243. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.js +0 -6
  244. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/init.d.ts +0 -2
  245. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/init.js +0 -95
  246. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/migrate/structs.d.ts +0 -51
  247. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/migrate/structs.js +0 -229
  248. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price/structs.d.ts +0 -89
  249. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price/structs.js +0 -247
  250. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-feed/structs.d.ts +0 -158
  251. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-feed/structs.js +0 -242
  252. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-identifier/structs.d.ts +0 -50
  253. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-identifier/structs.js +0 -262
  254. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-info/structs.d.ts +0 -360
  255. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-info/structs.js +0 -396
  256. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-status/structs.d.ts +0 -46
  257. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-status/structs.js +0 -228
  258. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set/structs.d.ts +0 -120
  259. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set/structs.js +0 -431
  260. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-data-sources/structs.d.ts +0 -81
  261. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-data-sources/structs.js +0 -263
  262. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-fee-recipient/structs.d.ts +0 -46
  263. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-fee-recipient/structs.js +0 -231
  264. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-governance-data-source/structs.d.ts +0 -77
  265. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-governance-data-source/structs.js +0 -241
  266. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-stale-price-threshold/structs.d.ts +0 -46
  267. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-stale-price-threshold/structs.js +0 -228
  268. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-update-fee/structs.d.ts +0 -52
  269. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-update-fee/structs.js +0 -234
  270. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/setup/structs.d.ts +0 -55
  271. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/setup/structs.js +0 -229
  272. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.d.ts +0 -282
  273. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.js +0 -573
  274. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.d.ts +0 -130
  275. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.js +0 -524
  276. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +0 -3
  277. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +0 -6
  278. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.d.ts +0 -2
  279. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +0 -46
  280. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +0 -88
  281. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +0 -376
  282. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +0 -94
  283. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.js +0 -382
  284. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +0 -46
  285. package/dist/src/typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +0 -239
  286. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes20/structs.d.ts +0 -50
  287. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes20/structs.js +0 -262
  288. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes32/structs.d.ts +0 -50
  289. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes32/structs.js +0 -262
  290. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed-vaas/structs.d.ts +0 -77
  291. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed-vaas/structs.js +0 -264
  292. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/cursor/structs.d.ts +0 -51
  293. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/cursor/structs.js +0 -276
  294. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.d.ts +0 -153
  295. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.js +0 -531
  296. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/external-address/structs.d.ts +0 -57
  297. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/external-address/structs.js +0 -229
  298. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/fee-collector/structs.d.ts +0 -63
  299. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/fee-collector/structs.js +0 -270
  300. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.d.ts +0 -168
  301. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.js +0 -470
  302. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian/structs.d.ts +0 -57
  303. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian/structs.js +0 -229
  304. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-set/structs.d.ts +0 -81
  305. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-set/structs.js +0 -275
  306. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-signature/structs.d.ts +0 -85
  307. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-signature/structs.js +0 -247
  308. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.d.ts +0 -3
  309. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.js +0 -6
  310. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/init.d.ts +0 -2
  311. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/init.js +0 -100
  312. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/migrate/structs.d.ts +0 -51
  313. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/migrate/structs.js +0 -229
  314. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.d.ts +0 -194
  315. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.js +0 -680
  316. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.d.ts +0 -151
  317. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.js +0 -459
  318. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set/structs.d.ts +0 -110
  319. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set/structs.js +0 -422
  320. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set-fee/structs.d.ts +0 -88
  321. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set-fee/structs.js +0 -376
  322. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/setup/structs.d.ts +0 -55
  323. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/setup/structs.js +0 -229
  324. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.d.ts +0 -278
  325. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.js +0 -465
  326. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/transfer-fee/structs.d.ts +0 -94
  327. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/transfer-fee/structs.js +0 -385
  328. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/update-guardian-set/structs.d.ts +0 -159
  329. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/update-guardian-set/structs.js +0 -565
  330. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.d.ts +0 -156
  331. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.js +0 -532
  332. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/vaa/structs.d.ts +0 -128
  333. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/vaa/structs.js +0 -312
  334. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/version-control/structs.d.ts +0 -88
  335. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/version-control/structs.js +0 -376
  336. package/dist/src/typus-perp/_framework/init-loader.d.ts +0 -2
  337. package/dist/src/typus-perp/_framework/init-loader.js +0 -73
  338. package/dist/src/typus-perp/_framework/loader.d.ts +0 -17
  339. package/dist/src/typus-perp/_framework/loader.js +0 -108
  340. package/dist/src/typus-perp/_framework/reified.d.ts +0 -108
  341. package/dist/src/typus-perp/_framework/reified.js +0 -237
  342. package/dist/src/typus-perp/_framework/util.d.ts +0 -35
  343. package/dist/src/typus-perp/_framework/util.js +0 -396
  344. package/dist/src/typus-perp/_framework/vector.d.ts +0 -35
  345. package/dist/src/typus-perp/_framework/vector.js +0 -112
  346. package/dist/src/typus-perp/fetch.d.ts +0 -17
  347. package/dist/src/typus-perp/fetch.js +0 -410
  348. package/dist/src/typus-perp/index.d.ts +0 -5
  349. package/dist/src/typus-perp/index.js +0 -29
  350. package/dist/src/typus-perp/readVec.d.ts +0 -3
  351. package/dist/src/typus-perp/readVec.js +0 -117
  352. package/dist/src/typus-perp/typus_perp/admin/functions.d.ts +0 -50
  353. package/dist/src/typus-perp/typus_perp/admin/functions.js +0 -116
  354. package/dist/src/typus-perp/typus_perp/admin/structs.d.ts +0 -447
  355. package/dist/src/typus-perp/typus_perp/admin/structs.js +0 -908
  356. package/dist/src/typus-perp/typus_perp/index.d.ts +0 -3
  357. package/dist/src/typus-perp/typus_perp/index.js +0 -6
  358. package/dist/src/typus-perp/typus_perp/init.d.ts +0 -2
  359. package/dist/src/typus-perp/typus_perp/init.js +0 -117
  360. package/dist/src/typus-perp/typus_perp/lp-pool/functions.d.ts +0 -342
  361. package/dist/src/typus-perp/typus_perp/lp-pool/functions.js +0 -517
  362. package/dist/src/typus-perp/typus_perp/lp-pool/structs.d.ts +0 -3088
  363. package/dist/src/typus-perp/typus_perp/lp-pool/structs.js +0 -4810
  364. package/dist/src/typus-perp/typus_perp/math/functions.d.ts +0 -18
  365. package/dist/src/typus-perp/typus_perp/math/functions.js +0 -49
  366. package/dist/src/typus-perp/typus_perp/oracle/functions.d.ts +0 -13
  367. package/dist/src/typus-perp/typus_perp/oracle/functions.js +0 -25
  368. package/dist/src/typus-perp/typus_perp/oracle/structs.d.ts +0 -111
  369. package/dist/src/typus-perp/typus_perp/oracle/structs.js +0 -395
  370. package/dist/src/typus-perp/typus_perp/position/functions.d.ts +0 -343
  371. package/dist/src/typus-perp/typus_perp/position/functions.js +0 -659
  372. package/dist/src/typus-perp/typus_perp/position/structs.d.ts +0 -1174
  373. package/dist/src/typus-perp/typus_perp/position/structs.js +0 -1634
  374. package/dist/src/typus-perp/typus_perp/symbol/functions.d.ts +0 -9
  375. package/dist/src/typus-perp/typus_perp/symbol/functions.js +0 -33
  376. package/dist/src/typus-perp/typus_perp/symbol/structs.d.ts +0 -81
  377. package/dist/src/typus-perp/typus_perp/symbol/structs.js +0 -235
  378. package/dist/src/typus-perp/typus_perp/tlp/functions.d.ts +0 -19
  379. package/dist/src/typus-perp/typus_perp/tlp/functions.js +0 -41
  380. package/dist/src/typus-perp/typus_perp/tlp/structs.d.ts +0 -97
  381. package/dist/src/typus-perp/typus_perp/tlp/structs.js +0 -377
  382. package/dist/src/typus-perp/typus_perp/token-interface/functions.d.ts +0 -11
  383. package/dist/src/typus-perp/typus_perp/token-interface/functions.js +0 -20
  384. package/dist/src/typus-perp/typus_perp/trading/functions.d.ts +0 -493
  385. package/dist/src/typus-perp/typus_perp/trading/functions.js +0 -711
  386. package/dist/src/typus-perp/typus_perp/trading/structs.d.ts +0 -2993
  387. package/dist/src/typus-perp/typus_perp/trading/structs.js +0 -5012
  388. package/dist/src/typus-perp/typus_perp/treasury-caps/functions.d.ts +0 -9
  389. package/dist/src/typus-perp/typus_perp/treasury-caps/functions.js +0 -35
  390. package/dist/src/typus-perp/typus_perp/treasury-caps/structs.d.ts +0 -55
  391. package/dist/src/typus-perp/typus_perp/treasury-caps/structs.js +0 -229
  392. package/dist/src/typus-perp/typus_stake_pool/admin/functions.d.ts +0 -50
  393. package/dist/src/typus-perp/typus_stake_pool/admin/functions.js +0 -116
  394. package/dist/src/typus-perp/typus_stake_pool/admin/structs.d.ts +0 -447
  395. package/dist/src/typus-perp/typus_stake_pool/admin/structs.js +0 -908
  396. package/dist/src/typus-perp/typus_stake_pool/index.d.ts +0 -3
  397. package/dist/src/typus-perp/typus_stake_pool/index.js +0 -6
  398. package/dist/src/typus-perp/typus_stake_pool/init.d.ts +0 -2
  399. package/dist/src/typus-perp/typus_stake_pool/init.js +0 -67
  400. package/dist/src/typus-perp/typus_stake_pool/stake-pool/functions.d.ts +0 -175
  401. package/dist/src/typus-perp/typus_stake_pool/stake-pool/functions.js +0 -275
  402. package/dist/src/typus-perp/typus_stake_pool/stake-pool/structs.d.ts +0 -2179
  403. package/dist/src/typus-perp/typus_stake_pool/stake-pool/structs.js +0 -3949
  404. package/dist/src/typus-perp/user/index.d.ts +0 -3
  405. package/dist/src/typus-perp/user/index.js +0 -19
  406. package/dist/src/typus-perp/user/order.d.ts +0 -29
  407. package/dist/src/typus-perp/user/order.js +0 -206
  408. package/dist/src/typus-perp/user/orderWithBidReceipt.d.ts +0 -22
  409. package/dist/src/typus-perp/user/orderWithBidReceipt.js +0 -144
  410. package/dist/src/typus-perp/user/tlp.d.ts +0 -32
  411. package/dist/src/typus-perp/user/tlp.js +0 -267
@@ -1,2417 +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.Whitelist = exports.Tails = exports.TYPUS_NFT = exports.RoyaltyUpdateEvent = exports.Royalty = exports.Pool = exports.NewManagerCapEvent = exports.MintEvent = exports.LevelUpEvent = exports.FirstDepositEvent = exports.FirstBidEvent = exports.ExpUpEvent = exports.ExpDownEvent = exports.ManagerCap = void 0;
109
- exports.isManagerCap = isManagerCap;
110
- exports.isExpDownEvent = isExpDownEvent;
111
- exports.isExpUpEvent = isExpUpEvent;
112
- exports.isFirstBidEvent = isFirstBidEvent;
113
- exports.isFirstDepositEvent = isFirstDepositEvent;
114
- exports.isLevelUpEvent = isLevelUpEvent;
115
- exports.isMintEvent = isMintEvent;
116
- exports.isNewManagerCapEvent = isNewManagerCapEvent;
117
- exports.isPool = isPool;
118
- exports.isRoyalty = isRoyalty;
119
- exports.isRoyaltyUpdateEvent = isRoyaltyUpdateEvent;
120
- exports.isTYPUS_NFT = isTYPUS_NFT;
121
- exports.isTails = isTails;
122
- exports.isWhitelist = isWhitelist;
123
- var reified = __importStar(require("../../../../_framework/reified"));
124
- var reified_1 = require("../../../../_framework/reified");
125
- var util_1 = require("../../../../_framework/util");
126
- var structs_1 = require("../../0x1/string/structs");
127
- var structs_2 = require("../../0x2/object/structs");
128
- var structs_3 = require("../../0x2/transfer-policy/structs");
129
- var structs_4 = require("../../0x2/url/structs");
130
- var structs_5 = require("../../0x2/vec-map/structs");
131
- var index_1 = require("../index");
132
- var structs_6 = require("../table-vec/structs");
133
- var bcs_1 = require("@mysten/sui/bcs");
134
- var utils_1 = require("@mysten/sui/utils");
135
- /* ============================== ManagerCap =============================== */
136
- function isManagerCap(type) {
137
- type = (0, util_1.compressSuiType)(type);
138
- return type === "".concat(index_1.PKG_V1, "::typus_nft::ManagerCap");
139
- }
140
- var ManagerCap = /** @class */ (function () {
141
- function ManagerCap(typeArgs, fields) {
142
- this.__StructClass = true;
143
- this.$typeName = ManagerCap.$typeName;
144
- this.$isPhantom = ManagerCap.$isPhantom;
145
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ManagerCap.$typeName], __read(typeArgs), false));
146
- this.$typeArgs = typeArgs;
147
- this.id = fields.id;
148
- }
149
- ManagerCap.reified = function () {
150
- var _this = this;
151
- return {
152
- typeName: ManagerCap.$typeName,
153
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ManagerCap.$typeName], [], false)),
154
- typeArgs: [],
155
- isPhantom: ManagerCap.$isPhantom,
156
- reifiedTypeArgs: [],
157
- fromFields: function (fields) { return ManagerCap.fromFields(fields); },
158
- fromFieldsWithTypes: function (item) { return ManagerCap.fromFieldsWithTypes(item); },
159
- fromBcs: function (data) { return ManagerCap.fromBcs(data); },
160
- bcs: ManagerCap.bcs,
161
- fromJSONField: function (field) { return ManagerCap.fromJSONField(field); },
162
- fromJSON: function (json) { return ManagerCap.fromJSON(json); },
163
- fromSuiParsedData: function (content) { return ManagerCap.fromSuiParsedData(content); },
164
- fromSuiObjectData: function (content) { return ManagerCap.fromSuiObjectData(content); },
165
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
166
- return [2 /*return*/, ManagerCap.fetch(client, id)];
167
- }); }); },
168
- new: function (fields) {
169
- return new ManagerCap([], fields);
170
- },
171
- kind: "StructClassReified",
172
- };
173
- };
174
- Object.defineProperty(ManagerCap, "r", {
175
- get: function () {
176
- return ManagerCap.reified();
177
- },
178
- enumerable: false,
179
- configurable: true
180
- });
181
- ManagerCap.phantom = function () {
182
- return (0, reified_1.phantom)(ManagerCap.reified());
183
- };
184
- Object.defineProperty(ManagerCap, "p", {
185
- get: function () {
186
- return ManagerCap.phantom();
187
- },
188
- enumerable: false,
189
- configurable: true
190
- });
191
- Object.defineProperty(ManagerCap, "bcs", {
192
- get: function () {
193
- return bcs_1.bcs.struct("ManagerCap", {
194
- id: structs_2.UID.bcs,
195
- });
196
- },
197
- enumerable: false,
198
- configurable: true
199
- });
200
- ManagerCap.fromFields = function (fields) {
201
- return ManagerCap.reified().new({
202
- id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
203
- });
204
- };
205
- ManagerCap.fromFieldsWithTypes = function (item) {
206
- if (!isManagerCap(item.type)) {
207
- throw new Error("not a ManagerCap type");
208
- }
209
- return ManagerCap.reified().new({
210
- id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
211
- });
212
- };
213
- ManagerCap.fromBcs = function (data) {
214
- return ManagerCap.fromFields(ManagerCap.bcs.parse(data));
215
- };
216
- ManagerCap.prototype.toJSONField = function () {
217
- return {
218
- id: this.id,
219
- };
220
- };
221
- ManagerCap.prototype.toJSON = function () {
222
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
223
- };
224
- ManagerCap.fromJSONField = function (field) {
225
- return ManagerCap.reified().new({
226
- id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
227
- });
228
- };
229
- ManagerCap.fromJSON = function (json) {
230
- if (json.$typeName !== ManagerCap.$typeName) {
231
- throw new Error("not a WithTwoGenerics json object");
232
- }
233
- return ManagerCap.fromJSONField(json);
234
- };
235
- ManagerCap.fromSuiParsedData = function (content) {
236
- if (content.dataType !== "moveObject") {
237
- throw new Error("not an object");
238
- }
239
- if (!isManagerCap(content.type)) {
240
- throw new Error("object at ".concat(content.fields.id, " is not a ManagerCap object"));
241
- }
242
- return ManagerCap.fromFieldsWithTypes(content);
243
- };
244
- ManagerCap.fromSuiObjectData = function (data) {
245
- if (data.bcs) {
246
- if (data.bcs.dataType !== "moveObject" || !isManagerCap(data.bcs.type)) {
247
- throw new Error("object at is not a ManagerCap object");
248
- }
249
- return ManagerCap.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
250
- }
251
- if (data.content) {
252
- return ManagerCap.fromSuiParsedData(data.content);
253
- }
254
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
255
- };
256
- ManagerCap.fetch = function (client, id) {
257
- return __awaiter(this, void 0, void 0, function () {
258
- var res;
259
- var _a, _b;
260
- return __generator(this, function (_c) {
261
- switch (_c.label) {
262
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
263
- case 1:
264
- res = _c.sent();
265
- if (res.error) {
266
- throw new Error("error fetching ManagerCap object at id ".concat(id, ": ").concat(res.error.code));
267
- }
268
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isManagerCap(res.data.bcs.type)) {
269
- throw new Error("object at id ".concat(id, " is not a ManagerCap object"));
270
- }
271
- return [2 /*return*/, ManagerCap.fromSuiObjectData(res.data)];
272
- }
273
- });
274
- });
275
- };
276
- ManagerCap.$typeName = "".concat(index_1.PKG_V1, "::typus_nft::ManagerCap");
277
- ManagerCap.$numTypeParams = 0;
278
- ManagerCap.$isPhantom = [];
279
- return ManagerCap;
280
- }());
281
- exports.ManagerCap = ManagerCap;
282
- /* ============================== ExpDownEvent =============================== */
283
- function isExpDownEvent(type) {
284
- type = (0, util_1.compressSuiType)(type);
285
- return type === "".concat(index_1.PKG_V17, "::typus_nft::ExpDownEvent");
286
- }
287
- var ExpDownEvent = /** @class */ (function () {
288
- function ExpDownEvent(typeArgs, fields) {
289
- this.__StructClass = true;
290
- this.$typeName = ExpDownEvent.$typeName;
291
- this.$isPhantom = ExpDownEvent.$isPhantom;
292
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ExpDownEvent.$typeName], __read(typeArgs), false));
293
- this.$typeArgs = typeArgs;
294
- this.nftId = fields.nftId;
295
- this.number = fields.number;
296
- this.expRemove = fields.expRemove;
297
- }
298
- ExpDownEvent.reified = function () {
299
- var _this = this;
300
- return {
301
- typeName: ExpDownEvent.$typeName,
302
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ExpDownEvent.$typeName], [], false)),
303
- typeArgs: [],
304
- isPhantom: ExpDownEvent.$isPhantom,
305
- reifiedTypeArgs: [],
306
- fromFields: function (fields) { return ExpDownEvent.fromFields(fields); },
307
- fromFieldsWithTypes: function (item) { return ExpDownEvent.fromFieldsWithTypes(item); },
308
- fromBcs: function (data) { return ExpDownEvent.fromBcs(data); },
309
- bcs: ExpDownEvent.bcs,
310
- fromJSONField: function (field) { return ExpDownEvent.fromJSONField(field); },
311
- fromJSON: function (json) { return ExpDownEvent.fromJSON(json); },
312
- fromSuiParsedData: function (content) { return ExpDownEvent.fromSuiParsedData(content); },
313
- fromSuiObjectData: function (content) { return ExpDownEvent.fromSuiObjectData(content); },
314
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
315
- return [2 /*return*/, ExpDownEvent.fetch(client, id)];
316
- }); }); },
317
- new: function (fields) {
318
- return new ExpDownEvent([], fields);
319
- },
320
- kind: "StructClassReified",
321
- };
322
- };
323
- Object.defineProperty(ExpDownEvent, "r", {
324
- get: function () {
325
- return ExpDownEvent.reified();
326
- },
327
- enumerable: false,
328
- configurable: true
329
- });
330
- ExpDownEvent.phantom = function () {
331
- return (0, reified_1.phantom)(ExpDownEvent.reified());
332
- };
333
- Object.defineProperty(ExpDownEvent, "p", {
334
- get: function () {
335
- return ExpDownEvent.phantom();
336
- },
337
- enumerable: false,
338
- configurable: true
339
- });
340
- Object.defineProperty(ExpDownEvent, "bcs", {
341
- get: function () {
342
- return bcs_1.bcs.struct("ExpDownEvent", {
343
- nft_id: structs_2.ID.bcs,
344
- number: bcs_1.bcs.u64(),
345
- exp_remove: bcs_1.bcs.u64(),
346
- });
347
- },
348
- enumerable: false,
349
- configurable: true
350
- });
351
- ExpDownEvent.fromFields = function (fields) {
352
- return ExpDownEvent.reified().new({
353
- nftId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.nft_id),
354
- number: (0, reified_1.decodeFromFields)("u64", fields.number),
355
- expRemove: (0, reified_1.decodeFromFields)("u64", fields.exp_remove),
356
- });
357
- };
358
- ExpDownEvent.fromFieldsWithTypes = function (item) {
359
- if (!isExpDownEvent(item.type)) {
360
- throw new Error("not a ExpDownEvent type");
361
- }
362
- return ExpDownEvent.reified().new({
363
- nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.nft_id),
364
- number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number),
365
- expRemove: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exp_remove),
366
- });
367
- };
368
- ExpDownEvent.fromBcs = function (data) {
369
- return ExpDownEvent.fromFields(ExpDownEvent.bcs.parse(data));
370
- };
371
- ExpDownEvent.prototype.toJSONField = function () {
372
- return {
373
- nftId: this.nftId,
374
- number: this.number.toString(),
375
- expRemove: this.expRemove.toString(),
376
- };
377
- };
378
- ExpDownEvent.prototype.toJSON = function () {
379
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
380
- };
381
- ExpDownEvent.fromJSONField = function (field) {
382
- return ExpDownEvent.reified().new({
383
- nftId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.nftId),
384
- number: (0, reified_1.decodeFromJSONField)("u64", field.number),
385
- expRemove: (0, reified_1.decodeFromJSONField)("u64", field.expRemove),
386
- });
387
- };
388
- ExpDownEvent.fromJSON = function (json) {
389
- if (json.$typeName !== ExpDownEvent.$typeName) {
390
- throw new Error("not a WithTwoGenerics json object");
391
- }
392
- return ExpDownEvent.fromJSONField(json);
393
- };
394
- ExpDownEvent.fromSuiParsedData = function (content) {
395
- if (content.dataType !== "moveObject") {
396
- throw new Error("not an object");
397
- }
398
- if (!isExpDownEvent(content.type)) {
399
- throw new Error("object at ".concat(content.fields.id, " is not a ExpDownEvent object"));
400
- }
401
- return ExpDownEvent.fromFieldsWithTypes(content);
402
- };
403
- ExpDownEvent.fromSuiObjectData = function (data) {
404
- if (data.bcs) {
405
- if (data.bcs.dataType !== "moveObject" || !isExpDownEvent(data.bcs.type)) {
406
- throw new Error("object at is not a ExpDownEvent object");
407
- }
408
- return ExpDownEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
409
- }
410
- if (data.content) {
411
- return ExpDownEvent.fromSuiParsedData(data.content);
412
- }
413
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
414
- };
415
- ExpDownEvent.fetch = function (client, id) {
416
- return __awaiter(this, void 0, void 0, function () {
417
- var res;
418
- var _a, _b;
419
- return __generator(this, function (_c) {
420
- switch (_c.label) {
421
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
422
- case 1:
423
- res = _c.sent();
424
- if (res.error) {
425
- throw new Error("error fetching ExpDownEvent object at id ".concat(id, ": ").concat(res.error.code));
426
- }
427
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isExpDownEvent(res.data.bcs.type)) {
428
- throw new Error("object at id ".concat(id, " is not a ExpDownEvent object"));
429
- }
430
- return [2 /*return*/, ExpDownEvent.fromSuiObjectData(res.data)];
431
- }
432
- });
433
- });
434
- };
435
- ExpDownEvent.$typeName = "".concat(index_1.PKG_V17, "::typus_nft::ExpDownEvent");
436
- ExpDownEvent.$numTypeParams = 0;
437
- ExpDownEvent.$isPhantom = [];
438
- return ExpDownEvent;
439
- }());
440
- exports.ExpDownEvent = ExpDownEvent;
441
- /* ============================== ExpUpEvent =============================== */
442
- function isExpUpEvent(type) {
443
- type = (0, util_1.compressSuiType)(type);
444
- return type === "".concat(index_1.PKG_V2, "::typus_nft::ExpUpEvent");
445
- }
446
- var ExpUpEvent = /** @class */ (function () {
447
- function ExpUpEvent(typeArgs, fields) {
448
- this.__StructClass = true;
449
- this.$typeName = ExpUpEvent.$typeName;
450
- this.$isPhantom = ExpUpEvent.$isPhantom;
451
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ExpUpEvent.$typeName], __read(typeArgs), false));
452
- this.$typeArgs = typeArgs;
453
- this.nftId = fields.nftId;
454
- this.number = fields.number;
455
- this.expEarn = fields.expEarn;
456
- }
457
- ExpUpEvent.reified = function () {
458
- var _this = this;
459
- return {
460
- typeName: ExpUpEvent.$typeName,
461
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ExpUpEvent.$typeName], [], false)),
462
- typeArgs: [],
463
- isPhantom: ExpUpEvent.$isPhantom,
464
- reifiedTypeArgs: [],
465
- fromFields: function (fields) { return ExpUpEvent.fromFields(fields); },
466
- fromFieldsWithTypes: function (item) { return ExpUpEvent.fromFieldsWithTypes(item); },
467
- fromBcs: function (data) { return ExpUpEvent.fromBcs(data); },
468
- bcs: ExpUpEvent.bcs,
469
- fromJSONField: function (field) { return ExpUpEvent.fromJSONField(field); },
470
- fromJSON: function (json) { return ExpUpEvent.fromJSON(json); },
471
- fromSuiParsedData: function (content) { return ExpUpEvent.fromSuiParsedData(content); },
472
- fromSuiObjectData: function (content) { return ExpUpEvent.fromSuiObjectData(content); },
473
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
474
- return [2 /*return*/, ExpUpEvent.fetch(client, id)];
475
- }); }); },
476
- new: function (fields) {
477
- return new ExpUpEvent([], fields);
478
- },
479
- kind: "StructClassReified",
480
- };
481
- };
482
- Object.defineProperty(ExpUpEvent, "r", {
483
- get: function () {
484
- return ExpUpEvent.reified();
485
- },
486
- enumerable: false,
487
- configurable: true
488
- });
489
- ExpUpEvent.phantom = function () {
490
- return (0, reified_1.phantom)(ExpUpEvent.reified());
491
- };
492
- Object.defineProperty(ExpUpEvent, "p", {
493
- get: function () {
494
- return ExpUpEvent.phantom();
495
- },
496
- enumerable: false,
497
- configurable: true
498
- });
499
- Object.defineProperty(ExpUpEvent, "bcs", {
500
- get: function () {
501
- return bcs_1.bcs.struct("ExpUpEvent", {
502
- nft_id: structs_2.ID.bcs,
503
- number: bcs_1.bcs.u64(),
504
- exp_earn: bcs_1.bcs.u64(),
505
- });
506
- },
507
- enumerable: false,
508
- configurable: true
509
- });
510
- ExpUpEvent.fromFields = function (fields) {
511
- return ExpUpEvent.reified().new({
512
- nftId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.nft_id),
513
- number: (0, reified_1.decodeFromFields)("u64", fields.number),
514
- expEarn: (0, reified_1.decodeFromFields)("u64", fields.exp_earn),
515
- });
516
- };
517
- ExpUpEvent.fromFieldsWithTypes = function (item) {
518
- if (!isExpUpEvent(item.type)) {
519
- throw new Error("not a ExpUpEvent type");
520
- }
521
- return ExpUpEvent.reified().new({
522
- nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.nft_id),
523
- number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number),
524
- expEarn: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exp_earn),
525
- });
526
- };
527
- ExpUpEvent.fromBcs = function (data) {
528
- return ExpUpEvent.fromFields(ExpUpEvent.bcs.parse(data));
529
- };
530
- ExpUpEvent.prototype.toJSONField = function () {
531
- return {
532
- nftId: this.nftId,
533
- number: this.number.toString(),
534
- expEarn: this.expEarn.toString(),
535
- };
536
- };
537
- ExpUpEvent.prototype.toJSON = function () {
538
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
539
- };
540
- ExpUpEvent.fromJSONField = function (field) {
541
- return ExpUpEvent.reified().new({
542
- nftId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.nftId),
543
- number: (0, reified_1.decodeFromJSONField)("u64", field.number),
544
- expEarn: (0, reified_1.decodeFromJSONField)("u64", field.expEarn),
545
- });
546
- };
547
- ExpUpEvent.fromJSON = function (json) {
548
- if (json.$typeName !== ExpUpEvent.$typeName) {
549
- throw new Error("not a WithTwoGenerics json object");
550
- }
551
- return ExpUpEvent.fromJSONField(json);
552
- };
553
- ExpUpEvent.fromSuiParsedData = function (content) {
554
- if (content.dataType !== "moveObject") {
555
- throw new Error("not an object");
556
- }
557
- if (!isExpUpEvent(content.type)) {
558
- throw new Error("object at ".concat(content.fields.id, " is not a ExpUpEvent object"));
559
- }
560
- return ExpUpEvent.fromFieldsWithTypes(content);
561
- };
562
- ExpUpEvent.fromSuiObjectData = function (data) {
563
- if (data.bcs) {
564
- if (data.bcs.dataType !== "moveObject" || !isExpUpEvent(data.bcs.type)) {
565
- throw new Error("object at is not a ExpUpEvent object");
566
- }
567
- return ExpUpEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
568
- }
569
- if (data.content) {
570
- return ExpUpEvent.fromSuiParsedData(data.content);
571
- }
572
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
573
- };
574
- ExpUpEvent.fetch = function (client, id) {
575
- return __awaiter(this, void 0, void 0, function () {
576
- var res;
577
- var _a, _b;
578
- return __generator(this, function (_c) {
579
- switch (_c.label) {
580
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
581
- case 1:
582
- res = _c.sent();
583
- if (res.error) {
584
- throw new Error("error fetching ExpUpEvent object at id ".concat(id, ": ").concat(res.error.code));
585
- }
586
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isExpUpEvent(res.data.bcs.type)) {
587
- throw new Error("object at id ".concat(id, " is not a ExpUpEvent object"));
588
- }
589
- return [2 /*return*/, ExpUpEvent.fromSuiObjectData(res.data)];
590
- }
591
- });
592
- });
593
- };
594
- ExpUpEvent.$typeName = "".concat(index_1.PKG_V2, "::typus_nft::ExpUpEvent");
595
- ExpUpEvent.$numTypeParams = 0;
596
- ExpUpEvent.$isPhantom = [];
597
- return ExpUpEvent;
598
- }());
599
- exports.ExpUpEvent = ExpUpEvent;
600
- /* ============================== FirstBidEvent =============================== */
601
- function isFirstBidEvent(type) {
602
- type = (0, util_1.compressSuiType)(type);
603
- return type === "".concat(index_1.PKG_V1, "::typus_nft::FirstBidEvent");
604
- }
605
- var FirstBidEvent = /** @class */ (function () {
606
- function FirstBidEvent(typeArgs, fields) {
607
- this.__StructClass = true;
608
- this.$typeName = FirstBidEvent.$typeName;
609
- this.$isPhantom = FirstBidEvent.$isPhantom;
610
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([FirstBidEvent.$typeName], __read(typeArgs), false));
611
- this.$typeArgs = typeArgs;
612
- this.nftId = fields.nftId;
613
- this.number = fields.number;
614
- this.expEarn = fields.expEarn;
615
- }
616
- FirstBidEvent.reified = function () {
617
- var _this = this;
618
- return {
619
- typeName: FirstBidEvent.$typeName,
620
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([FirstBidEvent.$typeName], [], false)),
621
- typeArgs: [],
622
- isPhantom: FirstBidEvent.$isPhantom,
623
- reifiedTypeArgs: [],
624
- fromFields: function (fields) { return FirstBidEvent.fromFields(fields); },
625
- fromFieldsWithTypes: function (item) { return FirstBidEvent.fromFieldsWithTypes(item); },
626
- fromBcs: function (data) { return FirstBidEvent.fromBcs(data); },
627
- bcs: FirstBidEvent.bcs,
628
- fromJSONField: function (field) { return FirstBidEvent.fromJSONField(field); },
629
- fromJSON: function (json) { return FirstBidEvent.fromJSON(json); },
630
- fromSuiParsedData: function (content) { return FirstBidEvent.fromSuiParsedData(content); },
631
- fromSuiObjectData: function (content) { return FirstBidEvent.fromSuiObjectData(content); },
632
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
633
- return [2 /*return*/, FirstBidEvent.fetch(client, id)];
634
- }); }); },
635
- new: function (fields) {
636
- return new FirstBidEvent([], fields);
637
- },
638
- kind: "StructClassReified",
639
- };
640
- };
641
- Object.defineProperty(FirstBidEvent, "r", {
642
- get: function () {
643
- return FirstBidEvent.reified();
644
- },
645
- enumerable: false,
646
- configurable: true
647
- });
648
- FirstBidEvent.phantom = function () {
649
- return (0, reified_1.phantom)(FirstBidEvent.reified());
650
- };
651
- Object.defineProperty(FirstBidEvent, "p", {
652
- get: function () {
653
- return FirstBidEvent.phantom();
654
- },
655
- enumerable: false,
656
- configurable: true
657
- });
658
- Object.defineProperty(FirstBidEvent, "bcs", {
659
- get: function () {
660
- return bcs_1.bcs.struct("FirstBidEvent", {
661
- nft_id: structs_2.ID.bcs,
662
- number: bcs_1.bcs.u64(),
663
- exp_earn: bcs_1.bcs.u64(),
664
- });
665
- },
666
- enumerable: false,
667
- configurable: true
668
- });
669
- FirstBidEvent.fromFields = function (fields) {
670
- return FirstBidEvent.reified().new({
671
- nftId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.nft_id),
672
- number: (0, reified_1.decodeFromFields)("u64", fields.number),
673
- expEarn: (0, reified_1.decodeFromFields)("u64", fields.exp_earn),
674
- });
675
- };
676
- FirstBidEvent.fromFieldsWithTypes = function (item) {
677
- if (!isFirstBidEvent(item.type)) {
678
- throw new Error("not a FirstBidEvent type");
679
- }
680
- return FirstBidEvent.reified().new({
681
- nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.nft_id),
682
- number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number),
683
- expEarn: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exp_earn),
684
- });
685
- };
686
- FirstBidEvent.fromBcs = function (data) {
687
- return FirstBidEvent.fromFields(FirstBidEvent.bcs.parse(data));
688
- };
689
- FirstBidEvent.prototype.toJSONField = function () {
690
- return {
691
- nftId: this.nftId,
692
- number: this.number.toString(),
693
- expEarn: this.expEarn.toString(),
694
- };
695
- };
696
- FirstBidEvent.prototype.toJSON = function () {
697
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
698
- };
699
- FirstBidEvent.fromJSONField = function (field) {
700
- return FirstBidEvent.reified().new({
701
- nftId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.nftId),
702
- number: (0, reified_1.decodeFromJSONField)("u64", field.number),
703
- expEarn: (0, reified_1.decodeFromJSONField)("u64", field.expEarn),
704
- });
705
- };
706
- FirstBidEvent.fromJSON = function (json) {
707
- if (json.$typeName !== FirstBidEvent.$typeName) {
708
- throw new Error("not a WithTwoGenerics json object");
709
- }
710
- return FirstBidEvent.fromJSONField(json);
711
- };
712
- FirstBidEvent.fromSuiParsedData = function (content) {
713
- if (content.dataType !== "moveObject") {
714
- throw new Error("not an object");
715
- }
716
- if (!isFirstBidEvent(content.type)) {
717
- throw new Error("object at ".concat(content.fields.id, " is not a FirstBidEvent object"));
718
- }
719
- return FirstBidEvent.fromFieldsWithTypes(content);
720
- };
721
- FirstBidEvent.fromSuiObjectData = function (data) {
722
- if (data.bcs) {
723
- if (data.bcs.dataType !== "moveObject" || !isFirstBidEvent(data.bcs.type)) {
724
- throw new Error("object at is not a FirstBidEvent object");
725
- }
726
- return FirstBidEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
727
- }
728
- if (data.content) {
729
- return FirstBidEvent.fromSuiParsedData(data.content);
730
- }
731
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
732
- };
733
- FirstBidEvent.fetch = function (client, id) {
734
- return __awaiter(this, void 0, void 0, function () {
735
- var res;
736
- var _a, _b;
737
- return __generator(this, function (_c) {
738
- switch (_c.label) {
739
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
740
- case 1:
741
- res = _c.sent();
742
- if (res.error) {
743
- throw new Error("error fetching FirstBidEvent object at id ".concat(id, ": ").concat(res.error.code));
744
- }
745
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isFirstBidEvent(res.data.bcs.type)) {
746
- throw new Error("object at id ".concat(id, " is not a FirstBidEvent object"));
747
- }
748
- return [2 /*return*/, FirstBidEvent.fromSuiObjectData(res.data)];
749
- }
750
- });
751
- });
752
- };
753
- FirstBidEvent.$typeName = "".concat(index_1.PKG_V1, "::typus_nft::FirstBidEvent");
754
- FirstBidEvent.$numTypeParams = 0;
755
- FirstBidEvent.$isPhantom = [];
756
- return FirstBidEvent;
757
- }());
758
- exports.FirstBidEvent = FirstBidEvent;
759
- /* ============================== FirstDepositEvent =============================== */
760
- function isFirstDepositEvent(type) {
761
- type = (0, util_1.compressSuiType)(type);
762
- return type === "".concat(index_1.PKG_V1, "::typus_nft::FirstDepositEvent");
763
- }
764
- var FirstDepositEvent = /** @class */ (function () {
765
- function FirstDepositEvent(typeArgs, fields) {
766
- this.__StructClass = true;
767
- this.$typeName = FirstDepositEvent.$typeName;
768
- this.$isPhantom = FirstDepositEvent.$isPhantom;
769
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([FirstDepositEvent.$typeName], __read(typeArgs), false));
770
- this.$typeArgs = typeArgs;
771
- this.nftId = fields.nftId;
772
- this.number = fields.number;
773
- this.expEarn = fields.expEarn;
774
- }
775
- FirstDepositEvent.reified = function () {
776
- var _this = this;
777
- return {
778
- typeName: FirstDepositEvent.$typeName,
779
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([FirstDepositEvent.$typeName], [], false)),
780
- typeArgs: [],
781
- isPhantom: FirstDepositEvent.$isPhantom,
782
- reifiedTypeArgs: [],
783
- fromFields: function (fields) { return FirstDepositEvent.fromFields(fields); },
784
- fromFieldsWithTypes: function (item) { return FirstDepositEvent.fromFieldsWithTypes(item); },
785
- fromBcs: function (data) { return FirstDepositEvent.fromBcs(data); },
786
- bcs: FirstDepositEvent.bcs,
787
- fromJSONField: function (field) { return FirstDepositEvent.fromJSONField(field); },
788
- fromJSON: function (json) { return FirstDepositEvent.fromJSON(json); },
789
- fromSuiParsedData: function (content) { return FirstDepositEvent.fromSuiParsedData(content); },
790
- fromSuiObjectData: function (content) { return FirstDepositEvent.fromSuiObjectData(content); },
791
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
792
- return [2 /*return*/, FirstDepositEvent.fetch(client, id)];
793
- }); }); },
794
- new: function (fields) {
795
- return new FirstDepositEvent([], fields);
796
- },
797
- kind: "StructClassReified",
798
- };
799
- };
800
- Object.defineProperty(FirstDepositEvent, "r", {
801
- get: function () {
802
- return FirstDepositEvent.reified();
803
- },
804
- enumerable: false,
805
- configurable: true
806
- });
807
- FirstDepositEvent.phantom = function () {
808
- return (0, reified_1.phantom)(FirstDepositEvent.reified());
809
- };
810
- Object.defineProperty(FirstDepositEvent, "p", {
811
- get: function () {
812
- return FirstDepositEvent.phantom();
813
- },
814
- enumerable: false,
815
- configurable: true
816
- });
817
- Object.defineProperty(FirstDepositEvent, "bcs", {
818
- get: function () {
819
- return bcs_1.bcs.struct("FirstDepositEvent", {
820
- nft_id: structs_2.ID.bcs,
821
- number: bcs_1.bcs.u64(),
822
- exp_earn: bcs_1.bcs.u64(),
823
- });
824
- },
825
- enumerable: false,
826
- configurable: true
827
- });
828
- FirstDepositEvent.fromFields = function (fields) {
829
- return FirstDepositEvent.reified().new({
830
- nftId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.nft_id),
831
- number: (0, reified_1.decodeFromFields)("u64", fields.number),
832
- expEarn: (0, reified_1.decodeFromFields)("u64", fields.exp_earn),
833
- });
834
- };
835
- FirstDepositEvent.fromFieldsWithTypes = function (item) {
836
- if (!isFirstDepositEvent(item.type)) {
837
- throw new Error("not a FirstDepositEvent type");
838
- }
839
- return FirstDepositEvent.reified().new({
840
- nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.nft_id),
841
- number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number),
842
- expEarn: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exp_earn),
843
- });
844
- };
845
- FirstDepositEvent.fromBcs = function (data) {
846
- return FirstDepositEvent.fromFields(FirstDepositEvent.bcs.parse(data));
847
- };
848
- FirstDepositEvent.prototype.toJSONField = function () {
849
- return {
850
- nftId: this.nftId,
851
- number: this.number.toString(),
852
- expEarn: this.expEarn.toString(),
853
- };
854
- };
855
- FirstDepositEvent.prototype.toJSON = function () {
856
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
857
- };
858
- FirstDepositEvent.fromJSONField = function (field) {
859
- return FirstDepositEvent.reified().new({
860
- nftId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.nftId),
861
- number: (0, reified_1.decodeFromJSONField)("u64", field.number),
862
- expEarn: (0, reified_1.decodeFromJSONField)("u64", field.expEarn),
863
- });
864
- };
865
- FirstDepositEvent.fromJSON = function (json) {
866
- if (json.$typeName !== FirstDepositEvent.$typeName) {
867
- throw new Error("not a WithTwoGenerics json object");
868
- }
869
- return FirstDepositEvent.fromJSONField(json);
870
- };
871
- FirstDepositEvent.fromSuiParsedData = function (content) {
872
- if (content.dataType !== "moveObject") {
873
- throw new Error("not an object");
874
- }
875
- if (!isFirstDepositEvent(content.type)) {
876
- throw new Error("object at ".concat(content.fields.id, " is not a FirstDepositEvent object"));
877
- }
878
- return FirstDepositEvent.fromFieldsWithTypes(content);
879
- };
880
- FirstDepositEvent.fromSuiObjectData = function (data) {
881
- if (data.bcs) {
882
- if (data.bcs.dataType !== "moveObject" || !isFirstDepositEvent(data.bcs.type)) {
883
- throw new Error("object at is not a FirstDepositEvent object");
884
- }
885
- return FirstDepositEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
886
- }
887
- if (data.content) {
888
- return FirstDepositEvent.fromSuiParsedData(data.content);
889
- }
890
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
891
- };
892
- FirstDepositEvent.fetch = function (client, id) {
893
- return __awaiter(this, void 0, void 0, function () {
894
- var res;
895
- var _a, _b;
896
- return __generator(this, function (_c) {
897
- switch (_c.label) {
898
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
899
- case 1:
900
- res = _c.sent();
901
- if (res.error) {
902
- throw new Error("error fetching FirstDepositEvent object at id ".concat(id, ": ").concat(res.error.code));
903
- }
904
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isFirstDepositEvent(res.data.bcs.type)) {
905
- throw new Error("object at id ".concat(id, " is not a FirstDepositEvent object"));
906
- }
907
- return [2 /*return*/, FirstDepositEvent.fromSuiObjectData(res.data)];
908
- }
909
- });
910
- });
911
- };
912
- FirstDepositEvent.$typeName = "".concat(index_1.PKG_V1, "::typus_nft::FirstDepositEvent");
913
- FirstDepositEvent.$numTypeParams = 0;
914
- FirstDepositEvent.$isPhantom = [];
915
- return FirstDepositEvent;
916
- }());
917
- exports.FirstDepositEvent = FirstDepositEvent;
918
- /* ============================== LevelUpEvent =============================== */
919
- function isLevelUpEvent(type) {
920
- type = (0, util_1.compressSuiType)(type);
921
- return type === "".concat(index_1.PKG_V1, "::typus_nft::LevelUpEvent");
922
- }
923
- var LevelUpEvent = /** @class */ (function () {
924
- function LevelUpEvent(typeArgs, fields) {
925
- this.__StructClass = true;
926
- this.$typeName = LevelUpEvent.$typeName;
927
- this.$isPhantom = LevelUpEvent.$isPhantom;
928
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([LevelUpEvent.$typeName], __read(typeArgs), false));
929
- this.$typeArgs = typeArgs;
930
- this.nftId = fields.nftId;
931
- this.level = fields.level;
932
- }
933
- LevelUpEvent.reified = function () {
934
- var _this = this;
935
- return {
936
- typeName: LevelUpEvent.$typeName,
937
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([LevelUpEvent.$typeName], [], false)),
938
- typeArgs: [],
939
- isPhantom: LevelUpEvent.$isPhantom,
940
- reifiedTypeArgs: [],
941
- fromFields: function (fields) { return LevelUpEvent.fromFields(fields); },
942
- fromFieldsWithTypes: function (item) { return LevelUpEvent.fromFieldsWithTypes(item); },
943
- fromBcs: function (data) { return LevelUpEvent.fromBcs(data); },
944
- bcs: LevelUpEvent.bcs,
945
- fromJSONField: function (field) { return LevelUpEvent.fromJSONField(field); },
946
- fromJSON: function (json) { return LevelUpEvent.fromJSON(json); },
947
- fromSuiParsedData: function (content) { return LevelUpEvent.fromSuiParsedData(content); },
948
- fromSuiObjectData: function (content) { return LevelUpEvent.fromSuiObjectData(content); },
949
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
950
- return [2 /*return*/, LevelUpEvent.fetch(client, id)];
951
- }); }); },
952
- new: function (fields) {
953
- return new LevelUpEvent([], fields);
954
- },
955
- kind: "StructClassReified",
956
- };
957
- };
958
- Object.defineProperty(LevelUpEvent, "r", {
959
- get: function () {
960
- return LevelUpEvent.reified();
961
- },
962
- enumerable: false,
963
- configurable: true
964
- });
965
- LevelUpEvent.phantom = function () {
966
- return (0, reified_1.phantom)(LevelUpEvent.reified());
967
- };
968
- Object.defineProperty(LevelUpEvent, "p", {
969
- get: function () {
970
- return LevelUpEvent.phantom();
971
- },
972
- enumerable: false,
973
- configurable: true
974
- });
975
- Object.defineProperty(LevelUpEvent, "bcs", {
976
- get: function () {
977
- return bcs_1.bcs.struct("LevelUpEvent", {
978
- nft_id: structs_2.ID.bcs,
979
- level: bcs_1.bcs.u64(),
980
- });
981
- },
982
- enumerable: false,
983
- configurable: true
984
- });
985
- LevelUpEvent.fromFields = function (fields) {
986
- return LevelUpEvent.reified().new({
987
- nftId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.nft_id),
988
- level: (0, reified_1.decodeFromFields)("u64", fields.level),
989
- });
990
- };
991
- LevelUpEvent.fromFieldsWithTypes = function (item) {
992
- if (!isLevelUpEvent(item.type)) {
993
- throw new Error("not a LevelUpEvent type");
994
- }
995
- return LevelUpEvent.reified().new({
996
- nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.nft_id),
997
- level: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.level),
998
- });
999
- };
1000
- LevelUpEvent.fromBcs = function (data) {
1001
- return LevelUpEvent.fromFields(LevelUpEvent.bcs.parse(data));
1002
- };
1003
- LevelUpEvent.prototype.toJSONField = function () {
1004
- return {
1005
- nftId: this.nftId,
1006
- level: this.level.toString(),
1007
- };
1008
- };
1009
- LevelUpEvent.prototype.toJSON = function () {
1010
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1011
- };
1012
- LevelUpEvent.fromJSONField = function (field) {
1013
- return LevelUpEvent.reified().new({
1014
- nftId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.nftId),
1015
- level: (0, reified_1.decodeFromJSONField)("u64", field.level),
1016
- });
1017
- };
1018
- LevelUpEvent.fromJSON = function (json) {
1019
- if (json.$typeName !== LevelUpEvent.$typeName) {
1020
- throw new Error("not a WithTwoGenerics json object");
1021
- }
1022
- return LevelUpEvent.fromJSONField(json);
1023
- };
1024
- LevelUpEvent.fromSuiParsedData = function (content) {
1025
- if (content.dataType !== "moveObject") {
1026
- throw new Error("not an object");
1027
- }
1028
- if (!isLevelUpEvent(content.type)) {
1029
- throw new Error("object at ".concat(content.fields.id, " is not a LevelUpEvent object"));
1030
- }
1031
- return LevelUpEvent.fromFieldsWithTypes(content);
1032
- };
1033
- LevelUpEvent.fromSuiObjectData = function (data) {
1034
- if (data.bcs) {
1035
- if (data.bcs.dataType !== "moveObject" || !isLevelUpEvent(data.bcs.type)) {
1036
- throw new Error("object at is not a LevelUpEvent object");
1037
- }
1038
- return LevelUpEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1039
- }
1040
- if (data.content) {
1041
- return LevelUpEvent.fromSuiParsedData(data.content);
1042
- }
1043
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1044
- };
1045
- LevelUpEvent.fetch = function (client, id) {
1046
- return __awaiter(this, void 0, void 0, function () {
1047
- var res;
1048
- var _a, _b;
1049
- return __generator(this, function (_c) {
1050
- switch (_c.label) {
1051
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1052
- case 1:
1053
- res = _c.sent();
1054
- if (res.error) {
1055
- throw new Error("error fetching LevelUpEvent object at id ".concat(id, ": ").concat(res.error.code));
1056
- }
1057
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isLevelUpEvent(res.data.bcs.type)) {
1058
- throw new Error("object at id ".concat(id, " is not a LevelUpEvent object"));
1059
- }
1060
- return [2 /*return*/, LevelUpEvent.fromSuiObjectData(res.data)];
1061
- }
1062
- });
1063
- });
1064
- };
1065
- LevelUpEvent.$typeName = "".concat(index_1.PKG_V1, "::typus_nft::LevelUpEvent");
1066
- LevelUpEvent.$numTypeParams = 0;
1067
- LevelUpEvent.$isPhantom = [];
1068
- return LevelUpEvent;
1069
- }());
1070
- exports.LevelUpEvent = LevelUpEvent;
1071
- /* ============================== MintEvent =============================== */
1072
- function isMintEvent(type) {
1073
- type = (0, util_1.compressSuiType)(type);
1074
- return type === "".concat(index_1.PKG_V1, "::typus_nft::MintEvent");
1075
- }
1076
- var MintEvent = /** @class */ (function () {
1077
- function MintEvent(typeArgs, fields) {
1078
- this.__StructClass = true;
1079
- this.$typeName = MintEvent.$typeName;
1080
- this.$isPhantom = MintEvent.$isPhantom;
1081
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([MintEvent.$typeName], __read(typeArgs), false));
1082
- this.$typeArgs = typeArgs;
1083
- this.id = fields.id;
1084
- this.name = fields.name;
1085
- this.description = fields.description;
1086
- this.number = fields.number;
1087
- this.url = fields.url;
1088
- this.attributes = fields.attributes;
1089
- this.sender = fields.sender;
1090
- }
1091
- MintEvent.reified = function () {
1092
- var _this = this;
1093
- return {
1094
- typeName: MintEvent.$typeName,
1095
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([MintEvent.$typeName], [], false)),
1096
- typeArgs: [],
1097
- isPhantom: MintEvent.$isPhantom,
1098
- reifiedTypeArgs: [],
1099
- fromFields: function (fields) { return MintEvent.fromFields(fields); },
1100
- fromFieldsWithTypes: function (item) { return MintEvent.fromFieldsWithTypes(item); },
1101
- fromBcs: function (data) { return MintEvent.fromBcs(data); },
1102
- bcs: MintEvent.bcs,
1103
- fromJSONField: function (field) { return MintEvent.fromJSONField(field); },
1104
- fromJSON: function (json) { return MintEvent.fromJSON(json); },
1105
- fromSuiParsedData: function (content) { return MintEvent.fromSuiParsedData(content); },
1106
- fromSuiObjectData: function (content) { return MintEvent.fromSuiObjectData(content); },
1107
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1108
- return [2 /*return*/, MintEvent.fetch(client, id)];
1109
- }); }); },
1110
- new: function (fields) {
1111
- return new MintEvent([], fields);
1112
- },
1113
- kind: "StructClassReified",
1114
- };
1115
- };
1116
- Object.defineProperty(MintEvent, "r", {
1117
- get: function () {
1118
- return MintEvent.reified();
1119
- },
1120
- enumerable: false,
1121
- configurable: true
1122
- });
1123
- MintEvent.phantom = function () {
1124
- return (0, reified_1.phantom)(MintEvent.reified());
1125
- };
1126
- Object.defineProperty(MintEvent, "p", {
1127
- get: function () {
1128
- return MintEvent.phantom();
1129
- },
1130
- enumerable: false,
1131
- configurable: true
1132
- });
1133
- Object.defineProperty(MintEvent, "bcs", {
1134
- get: function () {
1135
- return bcs_1.bcs.struct("MintEvent", {
1136
- id: structs_2.ID.bcs,
1137
- name: structs_1.String.bcs,
1138
- description: structs_1.String.bcs,
1139
- number: bcs_1.bcs.u64(),
1140
- url: structs_4.Url.bcs,
1141
- attributes: structs_5.VecMap.bcs(structs_1.String.bcs, structs_1.String.bcs),
1142
- sender: bcs_1.bcs.bytes(32).transform({
1143
- input: function (val) { return (0, utils_1.fromHEX)(val); },
1144
- output: function (val) { return (0, utils_1.toHEX)(val); },
1145
- }),
1146
- });
1147
- },
1148
- enumerable: false,
1149
- configurable: true
1150
- });
1151
- MintEvent.fromFields = function (fields) {
1152
- return MintEvent.reified().new({
1153
- id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id),
1154
- name: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.name),
1155
- description: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.description),
1156
- number: (0, reified_1.decodeFromFields)("u64", fields.number),
1157
- url: (0, reified_1.decodeFromFields)(structs_4.Url.reified(), fields.url),
1158
- attributes: (0, reified_1.decodeFromFields)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), fields.attributes),
1159
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
1160
- });
1161
- };
1162
- MintEvent.fromFieldsWithTypes = function (item) {
1163
- if (!isMintEvent(item.type)) {
1164
- throw new Error("not a MintEvent type");
1165
- }
1166
- return MintEvent.reified().new({
1167
- id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id),
1168
- name: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.name),
1169
- description: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.description),
1170
- number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number),
1171
- url: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.Url.reified(), item.fields.url),
1172
- attributes: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), item.fields.attributes),
1173
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
1174
- });
1175
- };
1176
- MintEvent.fromBcs = function (data) {
1177
- return MintEvent.fromFields(MintEvent.bcs.parse(data));
1178
- };
1179
- MintEvent.prototype.toJSONField = function () {
1180
- return {
1181
- id: this.id,
1182
- name: this.name,
1183
- description: this.description,
1184
- number: this.number.toString(),
1185
- url: this.url,
1186
- attributes: this.attributes.toJSONField(),
1187
- sender: this.sender,
1188
- };
1189
- };
1190
- MintEvent.prototype.toJSON = function () {
1191
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1192
- };
1193
- MintEvent.fromJSONField = function (field) {
1194
- return MintEvent.reified().new({
1195
- id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id),
1196
- name: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.name),
1197
- description: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.description),
1198
- number: (0, reified_1.decodeFromJSONField)("u64", field.number),
1199
- url: (0, reified_1.decodeFromJSONField)(structs_4.Url.reified(), field.url),
1200
- attributes: (0, reified_1.decodeFromJSONField)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), field.attributes),
1201
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
1202
- });
1203
- };
1204
- MintEvent.fromJSON = function (json) {
1205
- if (json.$typeName !== MintEvent.$typeName) {
1206
- throw new Error("not a WithTwoGenerics json object");
1207
- }
1208
- return MintEvent.fromJSONField(json);
1209
- };
1210
- MintEvent.fromSuiParsedData = function (content) {
1211
- if (content.dataType !== "moveObject") {
1212
- throw new Error("not an object");
1213
- }
1214
- if (!isMintEvent(content.type)) {
1215
- throw new Error("object at ".concat(content.fields.id, " is not a MintEvent object"));
1216
- }
1217
- return MintEvent.fromFieldsWithTypes(content);
1218
- };
1219
- MintEvent.fromSuiObjectData = function (data) {
1220
- if (data.bcs) {
1221
- if (data.bcs.dataType !== "moveObject" || !isMintEvent(data.bcs.type)) {
1222
- throw new Error("object at is not a MintEvent object");
1223
- }
1224
- return MintEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1225
- }
1226
- if (data.content) {
1227
- return MintEvent.fromSuiParsedData(data.content);
1228
- }
1229
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1230
- };
1231
- MintEvent.fetch = function (client, id) {
1232
- return __awaiter(this, void 0, void 0, function () {
1233
- var res;
1234
- var _a, _b;
1235
- return __generator(this, function (_c) {
1236
- switch (_c.label) {
1237
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1238
- case 1:
1239
- res = _c.sent();
1240
- if (res.error) {
1241
- throw new Error("error fetching MintEvent object at id ".concat(id, ": ").concat(res.error.code));
1242
- }
1243
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isMintEvent(res.data.bcs.type)) {
1244
- throw new Error("object at id ".concat(id, " is not a MintEvent object"));
1245
- }
1246
- return [2 /*return*/, MintEvent.fromSuiObjectData(res.data)];
1247
- }
1248
- });
1249
- });
1250
- };
1251
- MintEvent.$typeName = "".concat(index_1.PKG_V1, "::typus_nft::MintEvent");
1252
- MintEvent.$numTypeParams = 0;
1253
- MintEvent.$isPhantom = [];
1254
- return MintEvent;
1255
- }());
1256
- exports.MintEvent = MintEvent;
1257
- /* ============================== NewManagerCapEvent =============================== */
1258
- function isNewManagerCapEvent(type) {
1259
- type = (0, util_1.compressSuiType)(type);
1260
- return type === "".concat(index_1.PKG_V1, "::typus_nft::NewManagerCapEvent");
1261
- }
1262
- var NewManagerCapEvent = /** @class */ (function () {
1263
- function NewManagerCapEvent(typeArgs, fields) {
1264
- this.__StructClass = true;
1265
- this.$typeName = NewManagerCapEvent.$typeName;
1266
- this.$isPhantom = NewManagerCapEvent.$isPhantom;
1267
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewManagerCapEvent.$typeName], __read(typeArgs), false));
1268
- this.$typeArgs = typeArgs;
1269
- this.id = fields.id;
1270
- this.sender = fields.sender;
1271
- }
1272
- NewManagerCapEvent.reified = function () {
1273
- var _this = this;
1274
- return {
1275
- typeName: NewManagerCapEvent.$typeName,
1276
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewManagerCapEvent.$typeName], [], false)),
1277
- typeArgs: [],
1278
- isPhantom: NewManagerCapEvent.$isPhantom,
1279
- reifiedTypeArgs: [],
1280
- fromFields: function (fields) { return NewManagerCapEvent.fromFields(fields); },
1281
- fromFieldsWithTypes: function (item) { return NewManagerCapEvent.fromFieldsWithTypes(item); },
1282
- fromBcs: function (data) { return NewManagerCapEvent.fromBcs(data); },
1283
- bcs: NewManagerCapEvent.bcs,
1284
- fromJSONField: function (field) { return NewManagerCapEvent.fromJSONField(field); },
1285
- fromJSON: function (json) { return NewManagerCapEvent.fromJSON(json); },
1286
- fromSuiParsedData: function (content) { return NewManagerCapEvent.fromSuiParsedData(content); },
1287
- fromSuiObjectData: function (content) { return NewManagerCapEvent.fromSuiObjectData(content); },
1288
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1289
- return [2 /*return*/, NewManagerCapEvent.fetch(client, id)];
1290
- }); }); },
1291
- new: function (fields) {
1292
- return new NewManagerCapEvent([], fields);
1293
- },
1294
- kind: "StructClassReified",
1295
- };
1296
- };
1297
- Object.defineProperty(NewManagerCapEvent, "r", {
1298
- get: function () {
1299
- return NewManagerCapEvent.reified();
1300
- },
1301
- enumerable: false,
1302
- configurable: true
1303
- });
1304
- NewManagerCapEvent.phantom = function () {
1305
- return (0, reified_1.phantom)(NewManagerCapEvent.reified());
1306
- };
1307
- Object.defineProperty(NewManagerCapEvent, "p", {
1308
- get: function () {
1309
- return NewManagerCapEvent.phantom();
1310
- },
1311
- enumerable: false,
1312
- configurable: true
1313
- });
1314
- Object.defineProperty(NewManagerCapEvent, "bcs", {
1315
- get: function () {
1316
- return bcs_1.bcs.struct("NewManagerCapEvent", {
1317
- id: structs_2.ID.bcs,
1318
- sender: bcs_1.bcs.bytes(32).transform({
1319
- input: function (val) { return (0, utils_1.fromHEX)(val); },
1320
- output: function (val) { return (0, utils_1.toHEX)(val); },
1321
- }),
1322
- });
1323
- },
1324
- enumerable: false,
1325
- configurable: true
1326
- });
1327
- NewManagerCapEvent.fromFields = function (fields) {
1328
- return NewManagerCapEvent.reified().new({
1329
- id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id),
1330
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
1331
- });
1332
- };
1333
- NewManagerCapEvent.fromFieldsWithTypes = function (item) {
1334
- if (!isNewManagerCapEvent(item.type)) {
1335
- throw new Error("not a NewManagerCapEvent type");
1336
- }
1337
- return NewManagerCapEvent.reified().new({
1338
- id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id),
1339
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
1340
- });
1341
- };
1342
- NewManagerCapEvent.fromBcs = function (data) {
1343
- return NewManagerCapEvent.fromFields(NewManagerCapEvent.bcs.parse(data));
1344
- };
1345
- NewManagerCapEvent.prototype.toJSONField = function () {
1346
- return {
1347
- id: this.id,
1348
- sender: this.sender,
1349
- };
1350
- };
1351
- NewManagerCapEvent.prototype.toJSON = function () {
1352
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1353
- };
1354
- NewManagerCapEvent.fromJSONField = function (field) {
1355
- return NewManagerCapEvent.reified().new({
1356
- id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id),
1357
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
1358
- });
1359
- };
1360
- NewManagerCapEvent.fromJSON = function (json) {
1361
- if (json.$typeName !== NewManagerCapEvent.$typeName) {
1362
- throw new Error("not a WithTwoGenerics json object");
1363
- }
1364
- return NewManagerCapEvent.fromJSONField(json);
1365
- };
1366
- NewManagerCapEvent.fromSuiParsedData = function (content) {
1367
- if (content.dataType !== "moveObject") {
1368
- throw new Error("not an object");
1369
- }
1370
- if (!isNewManagerCapEvent(content.type)) {
1371
- throw new Error("object at ".concat(content.fields.id, " is not a NewManagerCapEvent object"));
1372
- }
1373
- return NewManagerCapEvent.fromFieldsWithTypes(content);
1374
- };
1375
- NewManagerCapEvent.fromSuiObjectData = function (data) {
1376
- if (data.bcs) {
1377
- if (data.bcs.dataType !== "moveObject" || !isNewManagerCapEvent(data.bcs.type)) {
1378
- throw new Error("object at is not a NewManagerCapEvent object");
1379
- }
1380
- return NewManagerCapEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1381
- }
1382
- if (data.content) {
1383
- return NewManagerCapEvent.fromSuiParsedData(data.content);
1384
- }
1385
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1386
- };
1387
- NewManagerCapEvent.fetch = function (client, id) {
1388
- return __awaiter(this, void 0, void 0, function () {
1389
- var res;
1390
- var _a, _b;
1391
- return __generator(this, function (_c) {
1392
- switch (_c.label) {
1393
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1394
- case 1:
1395
- res = _c.sent();
1396
- if (res.error) {
1397
- throw new Error("error fetching NewManagerCapEvent object at id ".concat(id, ": ").concat(res.error.code));
1398
- }
1399
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isNewManagerCapEvent(res.data.bcs.type)) {
1400
- throw new Error("object at id ".concat(id, " is not a NewManagerCapEvent object"));
1401
- }
1402
- return [2 /*return*/, NewManagerCapEvent.fromSuiObjectData(res.data)];
1403
- }
1404
- });
1405
- });
1406
- };
1407
- NewManagerCapEvent.$typeName = "".concat(index_1.PKG_V1, "::typus_nft::NewManagerCapEvent");
1408
- NewManagerCapEvent.$numTypeParams = 0;
1409
- NewManagerCapEvent.$isPhantom = [];
1410
- return NewManagerCapEvent;
1411
- }());
1412
- exports.NewManagerCapEvent = NewManagerCapEvent;
1413
- /* ============================== Pool =============================== */
1414
- function isPool(type) {
1415
- type = (0, util_1.compressSuiType)(type);
1416
- return type === "".concat(index_1.PKG_V1, "::typus_nft::Pool");
1417
- }
1418
- var Pool = /** @class */ (function () {
1419
- function Pool(typeArgs, fields) {
1420
- this.__StructClass = true;
1421
- this.$typeName = Pool.$typeName;
1422
- this.$isPhantom = Pool.$isPhantom;
1423
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Pool.$typeName], __read(typeArgs), false));
1424
- this.$typeArgs = typeArgs;
1425
- this.id = fields.id;
1426
- this.tails = fields.tails;
1427
- this.num = fields.num;
1428
- this.isLive = fields.isLive;
1429
- this.startMs = fields.startMs;
1430
- }
1431
- Pool.reified = function () {
1432
- var _this = this;
1433
- return {
1434
- typeName: Pool.$typeName,
1435
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Pool.$typeName], [], false)),
1436
- typeArgs: [],
1437
- isPhantom: Pool.$isPhantom,
1438
- reifiedTypeArgs: [],
1439
- fromFields: function (fields) { return Pool.fromFields(fields); },
1440
- fromFieldsWithTypes: function (item) { return Pool.fromFieldsWithTypes(item); },
1441
- fromBcs: function (data) { return Pool.fromBcs(data); },
1442
- bcs: Pool.bcs,
1443
- fromJSONField: function (field) { return Pool.fromJSONField(field); },
1444
- fromJSON: function (json) { return Pool.fromJSON(json); },
1445
- fromSuiParsedData: function (content) { return Pool.fromSuiParsedData(content); },
1446
- fromSuiObjectData: function (content) { return Pool.fromSuiObjectData(content); },
1447
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1448
- return [2 /*return*/, Pool.fetch(client, id)];
1449
- }); }); },
1450
- new: function (fields) {
1451
- return new Pool([], fields);
1452
- },
1453
- kind: "StructClassReified",
1454
- };
1455
- };
1456
- Object.defineProperty(Pool, "r", {
1457
- get: function () {
1458
- return Pool.reified();
1459
- },
1460
- enumerable: false,
1461
- configurable: true
1462
- });
1463
- Pool.phantom = function () {
1464
- return (0, reified_1.phantom)(Pool.reified());
1465
- };
1466
- Object.defineProperty(Pool, "p", {
1467
- get: function () {
1468
- return Pool.phantom();
1469
- },
1470
- enumerable: false,
1471
- configurable: true
1472
- });
1473
- Object.defineProperty(Pool, "bcs", {
1474
- get: function () {
1475
- return bcs_1.bcs.struct("Pool", {
1476
- id: structs_2.UID.bcs,
1477
- tails: structs_6.TableVec.bcs,
1478
- num: bcs_1.bcs.u64(),
1479
- is_live: bcs_1.bcs.bool(),
1480
- start_ms: bcs_1.bcs.u64(),
1481
- });
1482
- },
1483
- enumerable: false,
1484
- configurable: true
1485
- });
1486
- Pool.fromFields = function (fields) {
1487
- return Pool.reified().new({
1488
- id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
1489
- tails: (0, reified_1.decodeFromFields)(structs_6.TableVec.reified(reified.phantom(Tails.reified())), fields.tails),
1490
- num: (0, reified_1.decodeFromFields)("u64", fields.num),
1491
- isLive: (0, reified_1.decodeFromFields)("bool", fields.is_live),
1492
- startMs: (0, reified_1.decodeFromFields)("u64", fields.start_ms),
1493
- });
1494
- };
1495
- Pool.fromFieldsWithTypes = function (item) {
1496
- if (!isPool(item.type)) {
1497
- throw new Error("not a Pool type");
1498
- }
1499
- return Pool.reified().new({
1500
- id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
1501
- tails: (0, reified_1.decodeFromFieldsWithTypes)(structs_6.TableVec.reified(reified.phantom(Tails.reified())), item.fields.tails),
1502
- num: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.num),
1503
- isLive: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.is_live),
1504
- startMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.start_ms),
1505
- });
1506
- };
1507
- Pool.fromBcs = function (data) {
1508
- return Pool.fromFields(Pool.bcs.parse(data));
1509
- };
1510
- Pool.prototype.toJSONField = function () {
1511
- return {
1512
- id: this.id,
1513
- tails: this.tails.toJSONField(),
1514
- num: this.num.toString(),
1515
- isLive: this.isLive,
1516
- startMs: this.startMs.toString(),
1517
- };
1518
- };
1519
- Pool.prototype.toJSON = function () {
1520
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1521
- };
1522
- Pool.fromJSONField = function (field) {
1523
- return Pool.reified().new({
1524
- id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
1525
- tails: (0, reified_1.decodeFromJSONField)(structs_6.TableVec.reified(reified.phantom(Tails.reified())), field.tails),
1526
- num: (0, reified_1.decodeFromJSONField)("u64", field.num),
1527
- isLive: (0, reified_1.decodeFromJSONField)("bool", field.isLive),
1528
- startMs: (0, reified_1.decodeFromJSONField)("u64", field.startMs),
1529
- });
1530
- };
1531
- Pool.fromJSON = function (json) {
1532
- if (json.$typeName !== Pool.$typeName) {
1533
- throw new Error("not a WithTwoGenerics json object");
1534
- }
1535
- return Pool.fromJSONField(json);
1536
- };
1537
- Pool.fromSuiParsedData = function (content) {
1538
- if (content.dataType !== "moveObject") {
1539
- throw new Error("not an object");
1540
- }
1541
- if (!isPool(content.type)) {
1542
- throw new Error("object at ".concat(content.fields.id, " is not a Pool object"));
1543
- }
1544
- return Pool.fromFieldsWithTypes(content);
1545
- };
1546
- Pool.fromSuiObjectData = function (data) {
1547
- if (data.bcs) {
1548
- if (data.bcs.dataType !== "moveObject" || !isPool(data.bcs.type)) {
1549
- throw new Error("object at is not a Pool object");
1550
- }
1551
- return Pool.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1552
- }
1553
- if (data.content) {
1554
- return Pool.fromSuiParsedData(data.content);
1555
- }
1556
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1557
- };
1558
- Pool.fetch = function (client, id) {
1559
- return __awaiter(this, void 0, void 0, function () {
1560
- var res;
1561
- var _a, _b;
1562
- return __generator(this, function (_c) {
1563
- switch (_c.label) {
1564
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1565
- case 1:
1566
- res = _c.sent();
1567
- if (res.error) {
1568
- throw new Error("error fetching Pool object at id ".concat(id, ": ").concat(res.error.code));
1569
- }
1570
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isPool(res.data.bcs.type)) {
1571
- throw new Error("object at id ".concat(id, " is not a Pool object"));
1572
- }
1573
- return [2 /*return*/, Pool.fromSuiObjectData(res.data)];
1574
- }
1575
- });
1576
- });
1577
- };
1578
- Pool.$typeName = "".concat(index_1.PKG_V1, "::typus_nft::Pool");
1579
- Pool.$numTypeParams = 0;
1580
- Pool.$isPhantom = [];
1581
- return Pool;
1582
- }());
1583
- exports.Pool = Pool;
1584
- /* ============================== Royalty =============================== */
1585
- function isRoyalty(type) {
1586
- type = (0, util_1.compressSuiType)(type);
1587
- return type === "".concat(index_1.PKG_V1, "::typus_nft::Royalty");
1588
- }
1589
- var Royalty = /** @class */ (function () {
1590
- function Royalty(typeArgs, fields) {
1591
- this.__StructClass = true;
1592
- this.$typeName = Royalty.$typeName;
1593
- this.$isPhantom = Royalty.$isPhantom;
1594
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Royalty.$typeName], __read(typeArgs), false));
1595
- this.$typeArgs = typeArgs;
1596
- this.id = fields.id;
1597
- this.recipients = fields.recipients;
1598
- this.policyCap = fields.policyCap;
1599
- }
1600
- Royalty.reified = function () {
1601
- var _this = this;
1602
- return {
1603
- typeName: Royalty.$typeName,
1604
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Royalty.$typeName], [], false)),
1605
- typeArgs: [],
1606
- isPhantom: Royalty.$isPhantom,
1607
- reifiedTypeArgs: [],
1608
- fromFields: function (fields) { return Royalty.fromFields(fields); },
1609
- fromFieldsWithTypes: function (item) { return Royalty.fromFieldsWithTypes(item); },
1610
- fromBcs: function (data) { return Royalty.fromBcs(data); },
1611
- bcs: Royalty.bcs,
1612
- fromJSONField: function (field) { return Royalty.fromJSONField(field); },
1613
- fromJSON: function (json) { return Royalty.fromJSON(json); },
1614
- fromSuiParsedData: function (content) { return Royalty.fromSuiParsedData(content); },
1615
- fromSuiObjectData: function (content) { return Royalty.fromSuiObjectData(content); },
1616
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1617
- return [2 /*return*/, Royalty.fetch(client, id)];
1618
- }); }); },
1619
- new: function (fields) {
1620
- return new Royalty([], fields);
1621
- },
1622
- kind: "StructClassReified",
1623
- };
1624
- };
1625
- Object.defineProperty(Royalty, "r", {
1626
- get: function () {
1627
- return Royalty.reified();
1628
- },
1629
- enumerable: false,
1630
- configurable: true
1631
- });
1632
- Royalty.phantom = function () {
1633
- return (0, reified_1.phantom)(Royalty.reified());
1634
- };
1635
- Object.defineProperty(Royalty, "p", {
1636
- get: function () {
1637
- return Royalty.phantom();
1638
- },
1639
- enumerable: false,
1640
- configurable: true
1641
- });
1642
- Object.defineProperty(Royalty, "bcs", {
1643
- get: function () {
1644
- return bcs_1.bcs.struct("Royalty", {
1645
- id: structs_2.UID.bcs,
1646
- recipients: structs_5.VecMap.bcs(bcs_1.bcs.bytes(32).transform({
1647
- input: function (val) { return (0, utils_1.fromHEX)(val); },
1648
- output: function (val) { return (0, utils_1.toHEX)(val); },
1649
- }), bcs_1.bcs.u64()),
1650
- policy_cap: structs_3.TransferPolicyCap.bcs,
1651
- });
1652
- },
1653
- enumerable: false,
1654
- configurable: true
1655
- });
1656
- Royalty.fromFields = function (fields) {
1657
- return Royalty.reified().new({
1658
- id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
1659
- recipients: (0, reified_1.decodeFromFields)(structs_5.VecMap.reified("address", "u64"), fields.recipients),
1660
- policyCap: (0, reified_1.decodeFromFields)(structs_3.TransferPolicyCap.reified(reified.phantom(Tails.reified())), fields.policy_cap),
1661
- });
1662
- };
1663
- Royalty.fromFieldsWithTypes = function (item) {
1664
- if (!isRoyalty(item.type)) {
1665
- throw new Error("not a Royalty type");
1666
- }
1667
- return Royalty.reified().new({
1668
- id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
1669
- recipients: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecMap.reified("address", "u64"), item.fields.recipients),
1670
- policyCap: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.TransferPolicyCap.reified(reified.phantom(Tails.reified())), item.fields.policy_cap),
1671
- });
1672
- };
1673
- Royalty.fromBcs = function (data) {
1674
- return Royalty.fromFields(Royalty.bcs.parse(data));
1675
- };
1676
- Royalty.prototype.toJSONField = function () {
1677
- return {
1678
- id: this.id,
1679
- recipients: this.recipients.toJSONField(),
1680
- policyCap: this.policyCap.toJSONField(),
1681
- };
1682
- };
1683
- Royalty.prototype.toJSON = function () {
1684
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1685
- };
1686
- Royalty.fromJSONField = function (field) {
1687
- return Royalty.reified().new({
1688
- id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
1689
- recipients: (0, reified_1.decodeFromJSONField)(structs_5.VecMap.reified("address", "u64"), field.recipients),
1690
- policyCap: (0, reified_1.decodeFromJSONField)(structs_3.TransferPolicyCap.reified(reified.phantom(Tails.reified())), field.policyCap),
1691
- });
1692
- };
1693
- Royalty.fromJSON = function (json) {
1694
- if (json.$typeName !== Royalty.$typeName) {
1695
- throw new Error("not a WithTwoGenerics json object");
1696
- }
1697
- return Royalty.fromJSONField(json);
1698
- };
1699
- Royalty.fromSuiParsedData = function (content) {
1700
- if (content.dataType !== "moveObject") {
1701
- throw new Error("not an object");
1702
- }
1703
- if (!isRoyalty(content.type)) {
1704
- throw new Error("object at ".concat(content.fields.id, " is not a Royalty object"));
1705
- }
1706
- return Royalty.fromFieldsWithTypes(content);
1707
- };
1708
- Royalty.fromSuiObjectData = function (data) {
1709
- if (data.bcs) {
1710
- if (data.bcs.dataType !== "moveObject" || !isRoyalty(data.bcs.type)) {
1711
- throw new Error("object at is not a Royalty object");
1712
- }
1713
- return Royalty.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1714
- }
1715
- if (data.content) {
1716
- return Royalty.fromSuiParsedData(data.content);
1717
- }
1718
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1719
- };
1720
- Royalty.fetch = function (client, id) {
1721
- return __awaiter(this, void 0, void 0, function () {
1722
- var res;
1723
- var _a, _b;
1724
- return __generator(this, function (_c) {
1725
- switch (_c.label) {
1726
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1727
- case 1:
1728
- res = _c.sent();
1729
- if (res.error) {
1730
- throw new Error("error fetching Royalty object at id ".concat(id, ": ").concat(res.error.code));
1731
- }
1732
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRoyalty(res.data.bcs.type)) {
1733
- throw new Error("object at id ".concat(id, " is not a Royalty object"));
1734
- }
1735
- return [2 /*return*/, Royalty.fromSuiObjectData(res.data)];
1736
- }
1737
- });
1738
- });
1739
- };
1740
- Royalty.$typeName = "".concat(index_1.PKG_V1, "::typus_nft::Royalty");
1741
- Royalty.$numTypeParams = 0;
1742
- Royalty.$isPhantom = [];
1743
- return Royalty;
1744
- }());
1745
- exports.Royalty = Royalty;
1746
- /* ============================== RoyaltyUpdateEvent =============================== */
1747
- function isRoyaltyUpdateEvent(type) {
1748
- type = (0, util_1.compressSuiType)(type);
1749
- return type === "".concat(index_1.PKG_V1, "::typus_nft::RoyaltyUpdateEvent");
1750
- }
1751
- var RoyaltyUpdateEvent = /** @class */ (function () {
1752
- function RoyaltyUpdateEvent(typeArgs, fields) {
1753
- this.__StructClass = true;
1754
- this.$typeName = RoyaltyUpdateEvent.$typeName;
1755
- this.$isPhantom = RoyaltyUpdateEvent.$isPhantom;
1756
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RoyaltyUpdateEvent.$typeName], __read(typeArgs), false));
1757
- this.$typeArgs = typeArgs;
1758
- this.sender = fields.sender;
1759
- this.recipients = fields.recipients;
1760
- }
1761
- RoyaltyUpdateEvent.reified = function () {
1762
- var _this = this;
1763
- return {
1764
- typeName: RoyaltyUpdateEvent.$typeName,
1765
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RoyaltyUpdateEvent.$typeName], [], false)),
1766
- typeArgs: [],
1767
- isPhantom: RoyaltyUpdateEvent.$isPhantom,
1768
- reifiedTypeArgs: [],
1769
- fromFields: function (fields) { return RoyaltyUpdateEvent.fromFields(fields); },
1770
- fromFieldsWithTypes: function (item) { return RoyaltyUpdateEvent.fromFieldsWithTypes(item); },
1771
- fromBcs: function (data) { return RoyaltyUpdateEvent.fromBcs(data); },
1772
- bcs: RoyaltyUpdateEvent.bcs,
1773
- fromJSONField: function (field) { return RoyaltyUpdateEvent.fromJSONField(field); },
1774
- fromJSON: function (json) { return RoyaltyUpdateEvent.fromJSON(json); },
1775
- fromSuiParsedData: function (content) { return RoyaltyUpdateEvent.fromSuiParsedData(content); },
1776
- fromSuiObjectData: function (content) { return RoyaltyUpdateEvent.fromSuiObjectData(content); },
1777
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1778
- return [2 /*return*/, RoyaltyUpdateEvent.fetch(client, id)];
1779
- }); }); },
1780
- new: function (fields) {
1781
- return new RoyaltyUpdateEvent([], fields);
1782
- },
1783
- kind: "StructClassReified",
1784
- };
1785
- };
1786
- Object.defineProperty(RoyaltyUpdateEvent, "r", {
1787
- get: function () {
1788
- return RoyaltyUpdateEvent.reified();
1789
- },
1790
- enumerable: false,
1791
- configurable: true
1792
- });
1793
- RoyaltyUpdateEvent.phantom = function () {
1794
- return (0, reified_1.phantom)(RoyaltyUpdateEvent.reified());
1795
- };
1796
- Object.defineProperty(RoyaltyUpdateEvent, "p", {
1797
- get: function () {
1798
- return RoyaltyUpdateEvent.phantom();
1799
- },
1800
- enumerable: false,
1801
- configurable: true
1802
- });
1803
- Object.defineProperty(RoyaltyUpdateEvent, "bcs", {
1804
- get: function () {
1805
- return bcs_1.bcs.struct("RoyaltyUpdateEvent", {
1806
- sender: bcs_1.bcs.bytes(32).transform({
1807
- input: function (val) { return (0, utils_1.fromHEX)(val); },
1808
- output: function (val) { return (0, utils_1.toHEX)(val); },
1809
- }),
1810
- recipients: structs_5.VecMap.bcs(bcs_1.bcs.bytes(32).transform({
1811
- input: function (val) { return (0, utils_1.fromHEX)(val); },
1812
- output: function (val) { return (0, utils_1.toHEX)(val); },
1813
- }), bcs_1.bcs.u64()),
1814
- });
1815
- },
1816
- enumerable: false,
1817
- configurable: true
1818
- });
1819
- RoyaltyUpdateEvent.fromFields = function (fields) {
1820
- return RoyaltyUpdateEvent.reified().new({
1821
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
1822
- recipients: (0, reified_1.decodeFromFields)(structs_5.VecMap.reified("address", "u64"), fields.recipients),
1823
- });
1824
- };
1825
- RoyaltyUpdateEvent.fromFieldsWithTypes = function (item) {
1826
- if (!isRoyaltyUpdateEvent(item.type)) {
1827
- throw new Error("not a RoyaltyUpdateEvent type");
1828
- }
1829
- return RoyaltyUpdateEvent.reified().new({
1830
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
1831
- recipients: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecMap.reified("address", "u64"), item.fields.recipients),
1832
- });
1833
- };
1834
- RoyaltyUpdateEvent.fromBcs = function (data) {
1835
- return RoyaltyUpdateEvent.fromFields(RoyaltyUpdateEvent.bcs.parse(data));
1836
- };
1837
- RoyaltyUpdateEvent.prototype.toJSONField = function () {
1838
- return {
1839
- sender: this.sender,
1840
- recipients: this.recipients.toJSONField(),
1841
- };
1842
- };
1843
- RoyaltyUpdateEvent.prototype.toJSON = function () {
1844
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1845
- };
1846
- RoyaltyUpdateEvent.fromJSONField = function (field) {
1847
- return RoyaltyUpdateEvent.reified().new({
1848
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
1849
- recipients: (0, reified_1.decodeFromJSONField)(structs_5.VecMap.reified("address", "u64"), field.recipients),
1850
- });
1851
- };
1852
- RoyaltyUpdateEvent.fromJSON = function (json) {
1853
- if (json.$typeName !== RoyaltyUpdateEvent.$typeName) {
1854
- throw new Error("not a WithTwoGenerics json object");
1855
- }
1856
- return RoyaltyUpdateEvent.fromJSONField(json);
1857
- };
1858
- RoyaltyUpdateEvent.fromSuiParsedData = function (content) {
1859
- if (content.dataType !== "moveObject") {
1860
- throw new Error("not an object");
1861
- }
1862
- if (!isRoyaltyUpdateEvent(content.type)) {
1863
- throw new Error("object at ".concat(content.fields.id, " is not a RoyaltyUpdateEvent object"));
1864
- }
1865
- return RoyaltyUpdateEvent.fromFieldsWithTypes(content);
1866
- };
1867
- RoyaltyUpdateEvent.fromSuiObjectData = function (data) {
1868
- if (data.bcs) {
1869
- if (data.bcs.dataType !== "moveObject" || !isRoyaltyUpdateEvent(data.bcs.type)) {
1870
- throw new Error("object at is not a RoyaltyUpdateEvent object");
1871
- }
1872
- return RoyaltyUpdateEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1873
- }
1874
- if (data.content) {
1875
- return RoyaltyUpdateEvent.fromSuiParsedData(data.content);
1876
- }
1877
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1878
- };
1879
- RoyaltyUpdateEvent.fetch = function (client, id) {
1880
- return __awaiter(this, void 0, void 0, function () {
1881
- var res;
1882
- var _a, _b;
1883
- return __generator(this, function (_c) {
1884
- switch (_c.label) {
1885
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1886
- case 1:
1887
- res = _c.sent();
1888
- if (res.error) {
1889
- throw new Error("error fetching RoyaltyUpdateEvent object at id ".concat(id, ": ").concat(res.error.code));
1890
- }
1891
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRoyaltyUpdateEvent(res.data.bcs.type)) {
1892
- throw new Error("object at id ".concat(id, " is not a RoyaltyUpdateEvent object"));
1893
- }
1894
- return [2 /*return*/, RoyaltyUpdateEvent.fromSuiObjectData(res.data)];
1895
- }
1896
- });
1897
- });
1898
- };
1899
- RoyaltyUpdateEvent.$typeName = "".concat(index_1.PKG_V1, "::typus_nft::RoyaltyUpdateEvent");
1900
- RoyaltyUpdateEvent.$numTypeParams = 0;
1901
- RoyaltyUpdateEvent.$isPhantom = [];
1902
- return RoyaltyUpdateEvent;
1903
- }());
1904
- exports.RoyaltyUpdateEvent = RoyaltyUpdateEvent;
1905
- /* ============================== TYPUS_NFT =============================== */
1906
- function isTYPUS_NFT(type) {
1907
- type = (0, util_1.compressSuiType)(type);
1908
- return type === "".concat(index_1.PKG_V1, "::typus_nft::TYPUS_NFT");
1909
- }
1910
- var TYPUS_NFT = /** @class */ (function () {
1911
- function TYPUS_NFT(typeArgs, fields) {
1912
- this.__StructClass = true;
1913
- this.$typeName = TYPUS_NFT.$typeName;
1914
- this.$isPhantom = TYPUS_NFT.$isPhantom;
1915
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TYPUS_NFT.$typeName], __read(typeArgs), false));
1916
- this.$typeArgs = typeArgs;
1917
- this.dummyField = fields.dummyField;
1918
- }
1919
- TYPUS_NFT.reified = function () {
1920
- var _this = this;
1921
- return {
1922
- typeName: TYPUS_NFT.$typeName,
1923
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TYPUS_NFT.$typeName], [], false)),
1924
- typeArgs: [],
1925
- isPhantom: TYPUS_NFT.$isPhantom,
1926
- reifiedTypeArgs: [],
1927
- fromFields: function (fields) { return TYPUS_NFT.fromFields(fields); },
1928
- fromFieldsWithTypes: function (item) { return TYPUS_NFT.fromFieldsWithTypes(item); },
1929
- fromBcs: function (data) { return TYPUS_NFT.fromBcs(data); },
1930
- bcs: TYPUS_NFT.bcs,
1931
- fromJSONField: function (field) { return TYPUS_NFT.fromJSONField(field); },
1932
- fromJSON: function (json) { return TYPUS_NFT.fromJSON(json); },
1933
- fromSuiParsedData: function (content) { return TYPUS_NFT.fromSuiParsedData(content); },
1934
- fromSuiObjectData: function (content) { return TYPUS_NFT.fromSuiObjectData(content); },
1935
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1936
- return [2 /*return*/, TYPUS_NFT.fetch(client, id)];
1937
- }); }); },
1938
- new: function (fields) {
1939
- return new TYPUS_NFT([], fields);
1940
- },
1941
- kind: "StructClassReified",
1942
- };
1943
- };
1944
- Object.defineProperty(TYPUS_NFT, "r", {
1945
- get: function () {
1946
- return TYPUS_NFT.reified();
1947
- },
1948
- enumerable: false,
1949
- configurable: true
1950
- });
1951
- TYPUS_NFT.phantom = function () {
1952
- return (0, reified_1.phantom)(TYPUS_NFT.reified());
1953
- };
1954
- Object.defineProperty(TYPUS_NFT, "p", {
1955
- get: function () {
1956
- return TYPUS_NFT.phantom();
1957
- },
1958
- enumerable: false,
1959
- configurable: true
1960
- });
1961
- Object.defineProperty(TYPUS_NFT, "bcs", {
1962
- get: function () {
1963
- return bcs_1.bcs.struct("TYPUS_NFT", {
1964
- dummy_field: bcs_1.bcs.bool(),
1965
- });
1966
- },
1967
- enumerable: false,
1968
- configurable: true
1969
- });
1970
- TYPUS_NFT.fromFields = function (fields) {
1971
- return TYPUS_NFT.reified().new({
1972
- dummyField: (0, reified_1.decodeFromFields)("bool", fields.dummy_field),
1973
- });
1974
- };
1975
- TYPUS_NFT.fromFieldsWithTypes = function (item) {
1976
- if (!isTYPUS_NFT(item.type)) {
1977
- throw new Error("not a TYPUS_NFT type");
1978
- }
1979
- return TYPUS_NFT.reified().new({
1980
- dummyField: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.dummy_field),
1981
- });
1982
- };
1983
- TYPUS_NFT.fromBcs = function (data) {
1984
- return TYPUS_NFT.fromFields(TYPUS_NFT.bcs.parse(data));
1985
- };
1986
- TYPUS_NFT.prototype.toJSONField = function () {
1987
- return {
1988
- dummyField: this.dummyField,
1989
- };
1990
- };
1991
- TYPUS_NFT.prototype.toJSON = function () {
1992
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1993
- };
1994
- TYPUS_NFT.fromJSONField = function (field) {
1995
- return TYPUS_NFT.reified().new({
1996
- dummyField: (0, reified_1.decodeFromJSONField)("bool", field.dummyField),
1997
- });
1998
- };
1999
- TYPUS_NFT.fromJSON = function (json) {
2000
- if (json.$typeName !== TYPUS_NFT.$typeName) {
2001
- throw new Error("not a WithTwoGenerics json object");
2002
- }
2003
- return TYPUS_NFT.fromJSONField(json);
2004
- };
2005
- TYPUS_NFT.fromSuiParsedData = function (content) {
2006
- if (content.dataType !== "moveObject") {
2007
- throw new Error("not an object");
2008
- }
2009
- if (!isTYPUS_NFT(content.type)) {
2010
- throw new Error("object at ".concat(content.fields.id, " is not a TYPUS_NFT object"));
2011
- }
2012
- return TYPUS_NFT.fromFieldsWithTypes(content);
2013
- };
2014
- TYPUS_NFT.fromSuiObjectData = function (data) {
2015
- if (data.bcs) {
2016
- if (data.bcs.dataType !== "moveObject" || !isTYPUS_NFT(data.bcs.type)) {
2017
- throw new Error("object at is not a TYPUS_NFT object");
2018
- }
2019
- return TYPUS_NFT.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2020
- }
2021
- if (data.content) {
2022
- return TYPUS_NFT.fromSuiParsedData(data.content);
2023
- }
2024
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2025
- };
2026
- TYPUS_NFT.fetch = function (client, id) {
2027
- return __awaiter(this, void 0, void 0, function () {
2028
- var res;
2029
- var _a, _b;
2030
- return __generator(this, function (_c) {
2031
- switch (_c.label) {
2032
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2033
- case 1:
2034
- res = _c.sent();
2035
- if (res.error) {
2036
- throw new Error("error fetching TYPUS_NFT object at id ".concat(id, ": ").concat(res.error.code));
2037
- }
2038
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTYPUS_NFT(res.data.bcs.type)) {
2039
- throw new Error("object at id ".concat(id, " is not a TYPUS_NFT object"));
2040
- }
2041
- return [2 /*return*/, TYPUS_NFT.fromSuiObjectData(res.data)];
2042
- }
2043
- });
2044
- });
2045
- };
2046
- TYPUS_NFT.$typeName = "".concat(index_1.PKG_V1, "::typus_nft::TYPUS_NFT");
2047
- TYPUS_NFT.$numTypeParams = 0;
2048
- TYPUS_NFT.$isPhantom = [];
2049
- return TYPUS_NFT;
2050
- }());
2051
- exports.TYPUS_NFT = TYPUS_NFT;
2052
- /* ============================== Tails =============================== */
2053
- function isTails(type) {
2054
- type = (0, util_1.compressSuiType)(type);
2055
- return type === "".concat(index_1.PKG_V1, "::typus_nft::Tails");
2056
- }
2057
- var Tails = /** @class */ (function () {
2058
- function Tails(typeArgs, fields) {
2059
- this.__StructClass = true;
2060
- this.$typeName = Tails.$typeName;
2061
- this.$isPhantom = Tails.$isPhantom;
2062
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Tails.$typeName], __read(typeArgs), false));
2063
- this.$typeArgs = typeArgs;
2064
- this.id = fields.id;
2065
- this.name = fields.name;
2066
- this.description = fields.description;
2067
- this.number = fields.number;
2068
- this.url = fields.url;
2069
- this.attributes = fields.attributes;
2070
- this.level = fields.level;
2071
- this.exp = fields.exp;
2072
- this.firstBid = fields.firstBid;
2073
- this.firstDeposit = fields.firstDeposit;
2074
- this.firstDepositNft = fields.firstDepositNft;
2075
- this.u64Padding = fields.u64Padding;
2076
- }
2077
- Tails.reified = function () {
2078
- var _this = this;
2079
- return {
2080
- typeName: Tails.$typeName,
2081
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Tails.$typeName], [], false)),
2082
- typeArgs: [],
2083
- isPhantom: Tails.$isPhantom,
2084
- reifiedTypeArgs: [],
2085
- fromFields: function (fields) { return Tails.fromFields(fields); },
2086
- fromFieldsWithTypes: function (item) { return Tails.fromFieldsWithTypes(item); },
2087
- fromBcs: function (data) { return Tails.fromBcs(data); },
2088
- bcs: Tails.bcs,
2089
- fromJSONField: function (field) { return Tails.fromJSONField(field); },
2090
- fromJSON: function (json) { return Tails.fromJSON(json); },
2091
- fromSuiParsedData: function (content) { return Tails.fromSuiParsedData(content); },
2092
- fromSuiObjectData: function (content) { return Tails.fromSuiObjectData(content); },
2093
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2094
- return [2 /*return*/, Tails.fetch(client, id)];
2095
- }); }); },
2096
- new: function (fields) {
2097
- return new Tails([], fields);
2098
- },
2099
- kind: "StructClassReified",
2100
- };
2101
- };
2102
- Object.defineProperty(Tails, "r", {
2103
- get: function () {
2104
- return Tails.reified();
2105
- },
2106
- enumerable: false,
2107
- configurable: true
2108
- });
2109
- Tails.phantom = function () {
2110
- return (0, reified_1.phantom)(Tails.reified());
2111
- };
2112
- Object.defineProperty(Tails, "p", {
2113
- get: function () {
2114
- return Tails.phantom();
2115
- },
2116
- enumerable: false,
2117
- configurable: true
2118
- });
2119
- Object.defineProperty(Tails, "bcs", {
2120
- get: function () {
2121
- return bcs_1.bcs.struct("Tails", {
2122
- id: structs_2.UID.bcs,
2123
- name: structs_1.String.bcs,
2124
- description: structs_1.String.bcs,
2125
- number: bcs_1.bcs.u64(),
2126
- url: structs_4.Url.bcs,
2127
- attributes: structs_5.VecMap.bcs(structs_1.String.bcs, structs_1.String.bcs),
2128
- level: bcs_1.bcs.u64(),
2129
- exp: bcs_1.bcs.u64(),
2130
- first_bid: bcs_1.bcs.bool(),
2131
- first_deposit: bcs_1.bcs.bool(),
2132
- first_deposit_nft: bcs_1.bcs.bool(),
2133
- u64_padding: structs_5.VecMap.bcs(structs_1.String.bcs, bcs_1.bcs.u64()),
2134
- });
2135
- },
2136
- enumerable: false,
2137
- configurable: true
2138
- });
2139
- Tails.fromFields = function (fields) {
2140
- return Tails.reified().new({
2141
- id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
2142
- name: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.name),
2143
- description: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.description),
2144
- number: (0, reified_1.decodeFromFields)("u64", fields.number),
2145
- url: (0, reified_1.decodeFromFields)(structs_4.Url.reified(), fields.url),
2146
- attributes: (0, reified_1.decodeFromFields)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), fields.attributes),
2147
- level: (0, reified_1.decodeFromFields)("u64", fields.level),
2148
- exp: (0, reified_1.decodeFromFields)("u64", fields.exp),
2149
- firstBid: (0, reified_1.decodeFromFields)("bool", fields.first_bid),
2150
- firstDeposit: (0, reified_1.decodeFromFields)("bool", fields.first_deposit),
2151
- firstDepositNft: (0, reified_1.decodeFromFields)("bool", fields.first_deposit_nft),
2152
- u64Padding: (0, reified_1.decodeFromFields)(structs_5.VecMap.reified(structs_1.String.reified(), "u64"), fields.u64_padding),
2153
- });
2154
- };
2155
- Tails.fromFieldsWithTypes = function (item) {
2156
- if (!isTails(item.type)) {
2157
- throw new Error("not a Tails type");
2158
- }
2159
- return Tails.reified().new({
2160
- id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
2161
- name: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.name),
2162
- description: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.description),
2163
- number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number),
2164
- url: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.Url.reified(), item.fields.url),
2165
- attributes: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), item.fields.attributes),
2166
- level: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.level),
2167
- exp: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exp),
2168
- firstBid: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.first_bid),
2169
- firstDeposit: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.first_deposit),
2170
- firstDepositNft: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.first_deposit_nft),
2171
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecMap.reified(structs_1.String.reified(), "u64"), item.fields.u64_padding),
2172
- });
2173
- };
2174
- Tails.fromBcs = function (data) {
2175
- return Tails.fromFields(Tails.bcs.parse(data));
2176
- };
2177
- Tails.prototype.toJSONField = function () {
2178
- return {
2179
- id: this.id,
2180
- name: this.name,
2181
- description: this.description,
2182
- number: this.number.toString(),
2183
- url: this.url,
2184
- attributes: this.attributes.toJSONField(),
2185
- level: this.level.toString(),
2186
- exp: this.exp.toString(),
2187
- firstBid: this.firstBid,
2188
- firstDeposit: this.firstDeposit,
2189
- firstDepositNft: this.firstDepositNft,
2190
- u64Padding: this.u64Padding.toJSONField(),
2191
- };
2192
- };
2193
- Tails.prototype.toJSON = function () {
2194
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
2195
- };
2196
- Tails.fromJSONField = function (field) {
2197
- return Tails.reified().new({
2198
- id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
2199
- name: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.name),
2200
- description: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.description),
2201
- number: (0, reified_1.decodeFromJSONField)("u64", field.number),
2202
- url: (0, reified_1.decodeFromJSONField)(structs_4.Url.reified(), field.url),
2203
- attributes: (0, reified_1.decodeFromJSONField)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), field.attributes),
2204
- level: (0, reified_1.decodeFromJSONField)("u64", field.level),
2205
- exp: (0, reified_1.decodeFromJSONField)("u64", field.exp),
2206
- firstBid: (0, reified_1.decodeFromJSONField)("bool", field.firstBid),
2207
- firstDeposit: (0, reified_1.decodeFromJSONField)("bool", field.firstDeposit),
2208
- firstDepositNft: (0, reified_1.decodeFromJSONField)("bool", field.firstDepositNft),
2209
- u64Padding: (0, reified_1.decodeFromJSONField)(structs_5.VecMap.reified(structs_1.String.reified(), "u64"), field.u64Padding),
2210
- });
2211
- };
2212
- Tails.fromJSON = function (json) {
2213
- if (json.$typeName !== Tails.$typeName) {
2214
- throw new Error("not a WithTwoGenerics json object");
2215
- }
2216
- return Tails.fromJSONField(json);
2217
- };
2218
- Tails.fromSuiParsedData = function (content) {
2219
- if (content.dataType !== "moveObject") {
2220
- throw new Error("not an object");
2221
- }
2222
- if (!isTails(content.type)) {
2223
- throw new Error("object at ".concat(content.fields.id, " is not a Tails object"));
2224
- }
2225
- return Tails.fromFieldsWithTypes(content);
2226
- };
2227
- Tails.fromSuiObjectData = function (data) {
2228
- if (data.bcs) {
2229
- if (data.bcs.dataType !== "moveObject" || !isTails(data.bcs.type)) {
2230
- throw new Error("object at is not a Tails object");
2231
- }
2232
- return Tails.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2233
- }
2234
- if (data.content) {
2235
- return Tails.fromSuiParsedData(data.content);
2236
- }
2237
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2238
- };
2239
- Tails.fetch = function (client, id) {
2240
- return __awaiter(this, void 0, void 0, function () {
2241
- var res;
2242
- var _a, _b;
2243
- return __generator(this, function (_c) {
2244
- switch (_c.label) {
2245
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2246
- case 1:
2247
- res = _c.sent();
2248
- if (res.error) {
2249
- throw new Error("error fetching Tails object at id ".concat(id, ": ").concat(res.error.code));
2250
- }
2251
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTails(res.data.bcs.type)) {
2252
- throw new Error("object at id ".concat(id, " is not a Tails object"));
2253
- }
2254
- return [2 /*return*/, Tails.fromSuiObjectData(res.data)];
2255
- }
2256
- });
2257
- });
2258
- };
2259
- Tails.$typeName = "".concat(index_1.PKG_V1, "::typus_nft::Tails");
2260
- Tails.$numTypeParams = 0;
2261
- Tails.$isPhantom = [];
2262
- return Tails;
2263
- }());
2264
- exports.Tails = Tails;
2265
- /* ============================== Whitelist =============================== */
2266
- function isWhitelist(type) {
2267
- type = (0, util_1.compressSuiType)(type);
2268
- return type === "".concat(index_1.PKG_V1, "::typus_nft::Whitelist");
2269
- }
2270
- var Whitelist = /** @class */ (function () {
2271
- function Whitelist(typeArgs, fields) {
2272
- this.__StructClass = true;
2273
- this.$typeName = Whitelist.$typeName;
2274
- this.$isPhantom = Whitelist.$isPhantom;
2275
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Whitelist.$typeName], __read(typeArgs), false));
2276
- this.$typeArgs = typeArgs;
2277
- this.id = fields.id;
2278
- this.for = fields.for;
2279
- }
2280
- Whitelist.reified = function () {
2281
- var _this = this;
2282
- return {
2283
- typeName: Whitelist.$typeName,
2284
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Whitelist.$typeName], [], false)),
2285
- typeArgs: [],
2286
- isPhantom: Whitelist.$isPhantom,
2287
- reifiedTypeArgs: [],
2288
- fromFields: function (fields) { return Whitelist.fromFields(fields); },
2289
- fromFieldsWithTypes: function (item) { return Whitelist.fromFieldsWithTypes(item); },
2290
- fromBcs: function (data) { return Whitelist.fromBcs(data); },
2291
- bcs: Whitelist.bcs,
2292
- fromJSONField: function (field) { return Whitelist.fromJSONField(field); },
2293
- fromJSON: function (json) { return Whitelist.fromJSON(json); },
2294
- fromSuiParsedData: function (content) { return Whitelist.fromSuiParsedData(content); },
2295
- fromSuiObjectData: function (content) { return Whitelist.fromSuiObjectData(content); },
2296
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2297
- return [2 /*return*/, Whitelist.fetch(client, id)];
2298
- }); }); },
2299
- new: function (fields) {
2300
- return new Whitelist([], fields);
2301
- },
2302
- kind: "StructClassReified",
2303
- };
2304
- };
2305
- Object.defineProperty(Whitelist, "r", {
2306
- get: function () {
2307
- return Whitelist.reified();
2308
- },
2309
- enumerable: false,
2310
- configurable: true
2311
- });
2312
- Whitelist.phantom = function () {
2313
- return (0, reified_1.phantom)(Whitelist.reified());
2314
- };
2315
- Object.defineProperty(Whitelist, "p", {
2316
- get: function () {
2317
- return Whitelist.phantom();
2318
- },
2319
- enumerable: false,
2320
- configurable: true
2321
- });
2322
- Object.defineProperty(Whitelist, "bcs", {
2323
- get: function () {
2324
- return bcs_1.bcs.struct("Whitelist", {
2325
- id: structs_2.UID.bcs,
2326
- for: structs_2.ID.bcs,
2327
- });
2328
- },
2329
- enumerable: false,
2330
- configurable: true
2331
- });
2332
- Whitelist.fromFields = function (fields) {
2333
- return Whitelist.reified().new({
2334
- id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
2335
- for: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.for),
2336
- });
2337
- };
2338
- Whitelist.fromFieldsWithTypes = function (item) {
2339
- if (!isWhitelist(item.type)) {
2340
- throw new Error("not a Whitelist type");
2341
- }
2342
- return Whitelist.reified().new({
2343
- id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
2344
- for: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.for),
2345
- });
2346
- };
2347
- Whitelist.fromBcs = function (data) {
2348
- return Whitelist.fromFields(Whitelist.bcs.parse(data));
2349
- };
2350
- Whitelist.prototype.toJSONField = function () {
2351
- return {
2352
- id: this.id,
2353
- for: this.for,
2354
- };
2355
- };
2356
- Whitelist.prototype.toJSON = function () {
2357
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
2358
- };
2359
- Whitelist.fromJSONField = function (field) {
2360
- return Whitelist.reified().new({
2361
- id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
2362
- for: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.for),
2363
- });
2364
- };
2365
- Whitelist.fromJSON = function (json) {
2366
- if (json.$typeName !== Whitelist.$typeName) {
2367
- throw new Error("not a WithTwoGenerics json object");
2368
- }
2369
- return Whitelist.fromJSONField(json);
2370
- };
2371
- Whitelist.fromSuiParsedData = function (content) {
2372
- if (content.dataType !== "moveObject") {
2373
- throw new Error("not an object");
2374
- }
2375
- if (!isWhitelist(content.type)) {
2376
- throw new Error("object at ".concat(content.fields.id, " is not a Whitelist object"));
2377
- }
2378
- return Whitelist.fromFieldsWithTypes(content);
2379
- };
2380
- Whitelist.fromSuiObjectData = function (data) {
2381
- if (data.bcs) {
2382
- if (data.bcs.dataType !== "moveObject" || !isWhitelist(data.bcs.type)) {
2383
- throw new Error("object at is not a Whitelist object");
2384
- }
2385
- return Whitelist.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2386
- }
2387
- if (data.content) {
2388
- return Whitelist.fromSuiParsedData(data.content);
2389
- }
2390
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2391
- };
2392
- Whitelist.fetch = function (client, id) {
2393
- return __awaiter(this, void 0, void 0, function () {
2394
- var res;
2395
- var _a, _b;
2396
- return __generator(this, function (_c) {
2397
- switch (_c.label) {
2398
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2399
- case 1:
2400
- res = _c.sent();
2401
- if (res.error) {
2402
- throw new Error("error fetching Whitelist object at id ".concat(id, ": ").concat(res.error.code));
2403
- }
2404
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isWhitelist(res.data.bcs.type)) {
2405
- throw new Error("object at id ".concat(id, " is not a Whitelist object"));
2406
- }
2407
- return [2 /*return*/, Whitelist.fromSuiObjectData(res.data)];
2408
- }
2409
- });
2410
- });
2411
- };
2412
- Whitelist.$typeName = "".concat(index_1.PKG_V1, "::typus_nft::Whitelist");
2413
- Whitelist.$numTypeParams = 0;
2414
- Whitelist.$isPhantom = [];
2415
- return Whitelist;
2416
- }());
2417
- exports.Whitelist = Whitelist;