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