@wowok/wowok 2.2.15 → 2.3.0

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 (1010) hide show
  1. package/LICENSE +19 -131
  2. package/dist/esm/Transaction-CnEnSz1Q.mjs +1 -0
  3. package/dist/esm/arb-CagzFZxJ.mjs +1 -0
  4. package/dist/esm/base-D8AaE_L_.mjs +1 -0
  5. package/dist/esm/bcs/index.d.mts +3 -0
  6. package/dist/esm/bcs/index.mjs +1 -0
  7. package/dist/esm/bcs-DDXHXJXy.mjs +1 -0
  8. package/dist/esm/cache-DTr3MtXv.d.mts +38 -0
  9. package/dist/esm/call-m4aejmaZ.mjs +1 -0
  10. package/dist/esm/chunk-D7D4PA-g.mjs +1 -0
  11. package/dist/esm/client/index.d.mts +3 -0
  12. package/dist/esm/client/index.mjs +1 -0
  13. package/dist/esm/client-CemVXFCQ.mjs +1 -0
  14. package/dist/esm/common-DAjh24WX.mjs +1 -0
  15. package/dist/esm/config-lfC3m3Qq.d.mts +22 -0
  16. package/dist/esm/cryptography/index.d.mts +2 -0
  17. package/dist/esm/cryptography/index.mjs +1 -0
  18. package/dist/esm/ed25519-Cr18BjHj.mjs +1 -0
  19. package/dist/esm/effects-lLpKpzCX.mjs +1 -0
  20. package/dist/esm/falcon512-B6ErgixE.mjs +1 -0
  21. package/dist/esm/faucet/index.d.mts +2 -0
  22. package/dist/esm/faucet/index.mjs +1 -0
  23. package/dist/esm/faucet-BhrCl1M5.mjs +1 -0
  24. package/dist/esm/graphql/index.d.mts +2 -0
  25. package/dist/esm/graphql/index.mjs +1 -0
  26. package/dist/esm/graphql/schema/index.d.mts +10 -0
  27. package/dist/esm/graphql/schema/index.mjs +1 -0
  28. package/dist/esm/graphql-BmTcxH0T.mjs +1 -0
  29. package/dist/esm/grpc/index.d.mts +2 -0
  30. package/dist/esm/grpc/index.mjs +1 -0
  31. package/dist/esm/grpc-CaNjTFmZ.mjs +1 -0
  32. package/dist/esm/index-BLNJgAaK.d.mts +19933 -0
  33. package/dist/esm/index-CGqMj3cG.d.mts +67 -0
  34. package/dist/esm/index-o_aMVwsK.d.mts +3059 -0
  35. package/dist/esm/index-uCW4oBx-.d.mts +24 -0
  36. package/dist/esm/index.d.mts +9 -0
  37. package/dist/esm/index.mjs +1 -0
  38. package/dist/esm/jsonRpc/index.d.mts +2 -0
  39. package/dist/esm/jsonRpc/index.mjs +1 -0
  40. package/dist/esm/jsonRpc-BpByny_f.mjs +1 -0
  41. package/dist/esm/keypair-pjdbzQn9.mjs +1 -0
  42. package/dist/esm/keypairs/ed25519/index.d.mts +2 -0
  43. package/dist/esm/keypairs/ed25519/index.mjs +1 -0
  44. package/dist/esm/keypairs/falcon512/index.d.mts +2 -0
  45. package/dist/esm/keypairs/falcon512/index.mjs +1 -0
  46. package/dist/esm/keypairs/passkey/index.d.mts +2 -0
  47. package/dist/esm/keypairs/passkey/index.mjs +1 -0
  48. package/dist/esm/keypairs/secp256k1/index.d.mts +2 -0
  49. package/dist/esm/keypairs/secp256k1/index.mjs +1 -0
  50. package/dist/esm/keypairs/secp256r1/index.d.mts +2 -0
  51. package/dist/esm/keypairs/secp256r1/index.mjs +1 -0
  52. package/dist/esm/local-CjihK7WF.mjs +1 -0
  53. package/dist/esm/local-CtSmnSPu.d.mts +101 -0
  54. package/dist/esm/messenger-BpPg0lCq.mjs +1 -0
  55. package/dist/esm/messenger-api-DARYcgg2.mjs +1 -0
  56. package/dist/esm/mnemonics-C6qlqegr.mjs +1 -0
  57. package/dist/esm/multisig/index.d.mts +2 -0
  58. package/dist/esm/multisig/index.mjs +1 -0
  59. package/dist/esm/network-DeigCh6J.mjs +1 -0
  60. package/dist/esm/object-C7vil_Yf.mjs +1 -0
  61. package/dist/esm/passkey-bvgZyTnX.mjs +1 -0
  62. package/dist/esm/pqxdh-CKkqzvPb.d.mts +42 -0
  63. package/dist/esm/proof-Ca-_jIfs.mjs +1 -0
  64. package/dist/esm/publickey-6O2imwxm.mjs +1 -0
  65. package/dist/esm/publickey-AyBlZ-hX.mjs +1 -0
  66. package/dist/esm/publickey-BPT9QiGv.mjs +1 -0
  67. package/dist/esm/publickey-C6fyN2VZ.mjs +1 -0
  68. package/dist/esm/publickey-CdxwYhbs.mjs +1 -0
  69. package/dist/esm/publickey-qLbcTInT.mjs +1 -0
  70. package/dist/esm/received-jO4cTTKx.mjs +1 -0
  71. package/dist/esm/secp256k1-De_NDSy_.mjs +1 -0
  72. package/dist/esm/secp256r1-B5M33SkY.mjs +1 -0
  73. package/dist/esm/service-c6cDIKSG.mjs +1 -0
  74. package/dist/esm/sui-types-CuBKFvrd.mjs +1 -0
  75. package/dist/esm/transactions/index.d.mts +2 -0
  76. package/dist/esm/transactions/index.mjs +1 -0
  77. package/dist/esm/transactions-D9q2j6ZA.mjs +1 -0
  78. package/dist/esm/type-tag-serializer-BOCNO96r.d.mts +68 -0
  79. package/dist/esm/types-CiFC9IV5.d.mts +74 -0
  80. package/dist/esm/util-CQWQwC9c.mjs +1 -0
  81. package/dist/esm/utils/index.d.mts +3 -0
  82. package/dist/esm/utils/index.mjs +1 -0
  83. package/dist/esm/utils-IlS3fpdQ.mjs +1 -0
  84. package/dist/esm/verify/index.d.mts +2 -0
  85. package/dist/esm/verify/index.mjs +1 -0
  86. package/dist/esm/w/call/allocation.d.mts +2 -0
  87. package/dist/esm/w/call/allocation.mjs +1 -0
  88. package/dist/esm/w/call/arbitration.d.mts +2 -0
  89. package/dist/esm/w/call/arbitration.mjs +1 -0
  90. package/dist/esm/w/call/base.d.mts +2 -0
  91. package/dist/esm/w/call/base.mjs +1 -0
  92. package/dist/esm/w/call/demand.d.mts +2 -0
  93. package/dist/esm/w/call/demand.mjs +1 -0
  94. package/dist/esm/w/call/guard.d.mts +2 -0
  95. package/dist/esm/w/call/guard.mjs +1 -0
  96. package/dist/esm/w/call/index.d.mts +2 -0
  97. package/dist/esm/w/call/index.mjs +1 -0
  98. package/dist/esm/w/call/machine.d.mts +2 -0
  99. package/dist/esm/w/call/machine.mjs +1 -0
  100. package/dist/esm/w/call/passport.d.mts +2 -0
  101. package/dist/esm/w/call/passport.mjs +1 -0
  102. package/dist/esm/w/call/payment.d.mts +2 -0
  103. package/dist/esm/w/call/payment.mjs +1 -0
  104. package/dist/esm/w/call/permission.d.mts +2 -0
  105. package/dist/esm/w/call/permission.mjs +1 -0
  106. package/dist/esm/w/call/progress.d.mts +2 -0
  107. package/dist/esm/w/call/progress.mjs +1 -0
  108. package/dist/esm/w/call/repository.d.mts +2 -0
  109. package/dist/esm/w/call/repository.mjs +1 -0
  110. package/dist/esm/w/call/reward.d.mts +2 -0
  111. package/dist/esm/w/call/reward.mjs +1 -0
  112. package/dist/esm/w/call/service.d.mts +2 -0
  113. package/dist/esm/w/call/service.mjs +1 -0
  114. package/dist/esm/w/call/treasury.d.mts +2 -0
  115. package/dist/esm/w/call/treasury.mjs +1 -0
  116. package/dist/esm/w/common.d.mts +2 -0
  117. package/dist/esm/w/common.mjs +1 -0
  118. package/dist/esm/w/index.d.mts +5 -0
  119. package/dist/esm/w/index.mjs +1 -0
  120. package/dist/esm/w/local/account.d.mts +2 -0
  121. package/dist/esm/w/local/account.mjs +1 -0
  122. package/dist/esm/w/local/cache.d.mts +2 -0
  123. package/dist/esm/w/local/cache.mjs +1 -0
  124. package/dist/esm/w/local/config.d.mts +2 -0
  125. package/dist/esm/w/local/config.mjs +1 -0
  126. package/dist/esm/w/local/index.d.mts +5 -0
  127. package/dist/esm/w/local/index.mjs +1 -0
  128. package/dist/esm/w/local/local.d.mts +2 -0
  129. package/dist/esm/w/local/local.mjs +1 -0
  130. package/dist/esm/w/local/storage.d.mts +53 -0
  131. package/dist/esm/w/local/storage.mjs +1 -0
  132. package/dist/esm/w/local/token.d.mts +2 -0
  133. package/dist/esm/w/local/token.mjs +1 -0
  134. package/dist/esm/w/local/util.d.mts +9 -0
  135. package/dist/esm/w/local/util.mjs +1 -0
  136. package/dist/esm/w/local/wip.d.mts +2 -0
  137. package/dist/esm/w/local/wip.mjs +1 -0
  138. package/dist/esm/w/messenger/crypto.d.mts +271 -0
  139. package/dist/esm/w/messenger/crypto.mjs +1 -0
  140. package/dist/esm/w/messenger/index.d.mts +2 -0
  141. package/dist/esm/w/messenger/index.mjs +1 -0
  142. package/dist/esm/w/messenger/messenger-api.d.mts +2 -0
  143. package/dist/esm/w/messenger/messenger-api.mjs +1 -0
  144. package/dist/esm/w/messenger/messenger.d.mts +2 -0
  145. package/dist/esm/w/messenger/messenger.mjs +1 -0
  146. package/dist/esm/w/messenger/pq/crypto.d.mts +43 -0
  147. package/dist/esm/w/messenger/pq/crypto.mjs +1 -0
  148. package/dist/esm/w/messenger/pq/erasure.d.mts +19 -0
  149. package/dist/esm/w/messenger/pq/erasure.mjs +1 -0
  150. package/dist/esm/w/messenger/pq/index.d.mts +10 -0
  151. package/dist/esm/w/messenger/pq/index.mjs +1 -0
  152. package/dist/esm/w/messenger/pq/keycombiner.d.mts +4 -0
  153. package/dist/esm/w/messenger/pq/keycombiner.mjs +1 -0
  154. package/dist/esm/w/messenger/pq/pqxdh.d.mts +2 -0
  155. package/dist/esm/w/messenger/pq/pqxdh.mjs +1 -0
  156. package/dist/esm/w/messenger/pq/ratchet.d.mts +16 -0
  157. package/dist/esm/w/messenger/pq/ratchet.mjs +1 -0
  158. package/dist/esm/w/messenger/pq/session.d.mts +46 -0
  159. package/dist/esm/w/messenger/pq/session.mjs +1 -0
  160. package/dist/esm/w/messenger/pq/spqr.d.mts +27 -0
  161. package/dist/esm/w/messenger/pq/spqr.mjs +1 -0
  162. package/dist/esm/w/messenger/pq/store-adapter.d.mts +35 -0
  163. package/dist/esm/w/messenger/pq/store-adapter.mjs +1 -0
  164. package/dist/esm/w/messenger/pq/types.d.mts +189 -0
  165. package/dist/esm/w/messenger/pq/types.mjs +1 -0
  166. package/dist/esm/w/messenger/storage.d.mts +256 -0
  167. package/dist/esm/w/messenger/storage.mjs +1 -0
  168. package/dist/esm/w/messenger/types.d.mts +2 -0
  169. package/dist/esm/w/messenger/types.mjs +1 -0
  170. package/dist/esm/w/query/index.d.mts +2 -0
  171. package/dist/esm/w/query/index.mjs +1 -0
  172. package/dist/esm/w/query/object.d.mts +2 -0
  173. package/dist/esm/w/query/object.mjs +1 -0
  174. package/dist/esm/wip-NbB1ChbI.d.mts +229 -0
  175. package/package.json +142 -154
  176. package/NOTICE +0 -114
  177. package/THIRD_PARTY_LICENSES/APACHE_LICENSE.txt +0 -196
  178. package/THIRD_PARTY_LICENSES/MIT_LICENSE.txt +0 -58
  179. package/dist/cjs/_deps/bcs/bcs-type.d.ts +0 -127
  180. package/dist/cjs/_deps/bcs/bcs-type.js +0 -1
  181. package/dist/cjs/_deps/bcs/bcs.d.ts +0 -49
  182. package/dist/cjs/_deps/bcs/bcs.js +0 -1
  183. package/dist/cjs/_deps/bcs/index.d.ts +0 -16
  184. package/dist/cjs/_deps/bcs/index.js +0 -1
  185. package/dist/cjs/_deps/bcs/reader.d.ts +0 -15
  186. package/dist/cjs/_deps/bcs/reader.js +0 -1
  187. package/dist/cjs/_deps/bcs/types.d.ts +0 -24
  188. package/dist/cjs/_deps/bcs/types.js +0 -1
  189. package/dist/cjs/_deps/bcs/uleb.d.ts +0 -5
  190. package/dist/cjs/_deps/bcs/uleb.js +0 -1
  191. package/dist/cjs/_deps/bcs/utils.d.ts +0 -4
  192. package/dist/cjs/_deps/bcs/utils.js +0 -1
  193. package/dist/cjs/_deps/bcs/writer.d.ts +0 -28
  194. package/dist/cjs/_deps/bcs/writer.js +0 -1
  195. package/dist/cjs/_deps/utils/b58.d.ts +0 -2
  196. package/dist/cjs/_deps/utils/b58.js +0 -1
  197. package/dist/cjs/_deps/utils/b64.d.ts +0 -2
  198. package/dist/cjs/_deps/utils/b64.js +0 -1
  199. package/dist/cjs/_deps/utils/chunk.d.ts +0 -1
  200. package/dist/cjs/_deps/utils/chunk.js +0 -1
  201. package/dist/cjs/_deps/utils/dataloader.d.ts +0 -43
  202. package/dist/cjs/_deps/utils/dataloader.js +0 -1
  203. package/dist/cjs/_deps/utils/hex.d.ts +0 -2
  204. package/dist/cjs/_deps/utils/hex.js +0 -1
  205. package/dist/cjs/_deps/utils/index.d.ts +0 -7
  206. package/dist/cjs/_deps/utils/index.js +0 -1
  207. package/dist/cjs/_deps/utils/types.d.ts +0 -4
  208. package/dist/cjs/_deps/utils/types.js +0 -1
  209. package/dist/cjs/_deps/utils/with-resolver.d.ts +0 -6
  210. package/dist/cjs/_deps/utils/with-resolver.js +0 -1
  211. package/dist/cjs/bcs/bcs.d.ts +0 -1927
  212. package/dist/cjs/bcs/bcs.js +0 -1
  213. package/dist/cjs/bcs/effects.d.ts +0 -579
  214. package/dist/cjs/bcs/effects.js +0 -1
  215. package/dist/cjs/bcs/index.d.ts +0 -6
  216. package/dist/cjs/bcs/index.js +0 -1
  217. package/dist/cjs/bcs/pure.d.ts +0 -22
  218. package/dist/cjs/bcs/pure.js +0 -1
  219. package/dist/cjs/bcs/type-tag-serializer.d.ts +0 -7
  220. package/dist/cjs/bcs/type-tag-serializer.js +0 -1
  221. package/dist/cjs/bcs/types.d.ts +0 -65
  222. package/dist/cjs/bcs/types.js +0 -1
  223. package/dist/cjs/client/index.d.ts +0 -5
  224. package/dist/cjs/client/index.js +0 -1
  225. package/dist/cjs/client/network.d.ts +0 -5
  226. package/dist/cjs/client/network.js +0 -1
  227. package/dist/cjs/cryptography/index.d.ts +0 -7
  228. package/dist/cjs/cryptography/index.js +0 -1
  229. package/dist/cjs/cryptography/intent.d.ts +0 -3
  230. package/dist/cjs/cryptography/intent.js +0 -1
  231. package/dist/cjs/cryptography/keypair.d.ts +0 -39
  232. package/dist/cjs/cryptography/keypair.js +0 -1
  233. package/dist/cjs/cryptography/mnemonics.d.ts +0 -4
  234. package/dist/cjs/cryptography/mnemonics.js +0 -1
  235. package/dist/cjs/cryptography/publickey.d.ts +0 -25
  236. package/dist/cjs/cryptography/publickey.js +0 -1
  237. package/dist/cjs/cryptography/signature-scheme.d.ts +0 -13
  238. package/dist/cjs/cryptography/signature-scheme.js +0 -1
  239. package/dist/cjs/cryptography/signature.d.ts +0 -21
  240. package/dist/cjs/cryptography/signature.js +0 -1
  241. package/dist/cjs/experimental/cache.d.ts +0 -12
  242. package/dist/cjs/experimental/cache.js +0 -1
  243. package/dist/cjs/experimental/client.d.ts +0 -12
  244. package/dist/cjs/experimental/client.js +0 -1
  245. package/dist/cjs/experimental/core.d.ts +0 -31
  246. package/dist/cjs/experimental/core.js +0 -1
  247. package/dist/cjs/experimental/errors.d.ts +0 -8
  248. package/dist/cjs/experimental/errors.js +0 -1
  249. package/dist/cjs/experimental/index.d.ts +0 -7
  250. package/dist/cjs/experimental/index.js +0 -1
  251. package/dist/cjs/experimental/persistent-storage.d.ts +0 -36
  252. package/dist/cjs/experimental/persistent-storage.js +0 -1
  253. package/dist/cjs/experimental/persistent-storage.test.d.ts +0 -1
  254. package/dist/cjs/experimental/persistent-storage.test.js +0 -1
  255. package/dist/cjs/experimental/transports/utils.d.ts +0 -3
  256. package/dist/cjs/experimental/transports/utils.js +0 -1
  257. package/dist/cjs/experimental/types.d.ts +0 -361
  258. package/dist/cjs/experimental/types.js +0 -1
  259. package/dist/cjs/faucet/faucet.d.ts +0 -57
  260. package/dist/cjs/faucet/faucet.js +0 -1
  261. package/dist/cjs/faucet/index.d.ts +0 -1
  262. package/dist/cjs/faucet/index.js +0 -1
  263. package/dist/cjs/grpc/client.d.ts +0 -30
  264. package/dist/cjs/grpc/client.js +0 -1
  265. package/dist/cjs/grpc/core.d.ts +0 -28
  266. package/dist/cjs/grpc/core.js +0 -1
  267. package/dist/cjs/grpc/index.d.ts +0 -4
  268. package/dist/cjs/grpc/index.js +0 -1
  269. package/dist/cjs/grpc/proto/google/protobuf/any.d.ts +0 -29
  270. package/dist/cjs/grpc/proto/google/protobuf/any.js +0 -1
  271. package/dist/cjs/grpc/proto/google/protobuf/duration.d.ts +0 -23
  272. package/dist/cjs/grpc/proto/google/protobuf/duration.js +0 -1
  273. package/dist/cjs/grpc/proto/google/protobuf/empty.d.ts +0 -16
  274. package/dist/cjs/grpc/proto/google/protobuf/empty.js +0 -1
  275. package/dist/cjs/grpc/proto/google/protobuf/field_mask.d.ts +0 -22
  276. package/dist/cjs/grpc/proto/google/protobuf/field_mask.js +0 -1
  277. package/dist/cjs/grpc/proto/google/protobuf/struct.d.ts +0 -72
  278. package/dist/cjs/grpc/proto/google/protobuf/struct.js +0 -1
  279. package/dist/cjs/grpc/proto/google/protobuf/timestamp.d.ts +0 -26
  280. package/dist/cjs/grpc/proto/google/protobuf/timestamp.js +0 -1
  281. package/dist/cjs/grpc/proto/google/rpc/error_details.d.ts +0 -166
  282. package/dist/cjs/grpc/proto/google/rpc/error_details.js +0 -1
  283. package/dist/cjs/grpc/proto/google/rpc/status.d.ts +0 -20
  284. package/dist/cjs/grpc/proto/google/rpc/status.js +0 -1
  285. package/dist/cjs/grpc/proto/sui/rpc/v2/argument.d.ts +0 -18
  286. package/dist/cjs/grpc/proto/sui/rpc/v2/argument.js +0 -1
  287. package/dist/cjs/grpc/proto/sui/rpc/v2/balance_change.d.ts +0 -11
  288. package/dist/cjs/grpc/proto/sui/rpc/v2/balance_change.js +0 -1
  289. package/dist/cjs/grpc/proto/sui/rpc/v2/bcs.d.ts +0 -10
  290. package/dist/cjs/grpc/proto/sui/rpc/v2/bcs.js +0 -1
  291. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint.d.ts +0 -20
  292. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint.js +0 -1
  293. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_contents.d.ts +0 -23
  294. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_contents.js +0 -1
  295. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_summary.d.ts +0 -46
  296. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_summary.js +0 -1
  297. package/dist/cjs/grpc/proto/sui/rpc/v2/effects.d.ts +0 -81
  298. package/dist/cjs/grpc/proto/sui/rpc/v2/effects.js +0 -1
  299. package/dist/cjs/grpc/proto/sui/rpc/v2/epoch.d.ts +0 -21
  300. package/dist/cjs/grpc/proto/sui/rpc/v2/epoch.js +0 -1
  301. package/dist/cjs/grpc/proto/sui/rpc/v2/error_reason.d.ts +0 -5
  302. package/dist/cjs/grpc/proto/sui/rpc/v2/error_reason.js +0 -1
  303. package/dist/cjs/grpc/proto/sui/rpc/v2/event.d.ts +0 -25
  304. package/dist/cjs/grpc/proto/sui/rpc/v2/event.js +0 -1
  305. package/dist/cjs/grpc/proto/sui/rpc/v2/executed_transaction.d.ts +0 -24
  306. package/dist/cjs/grpc/proto/sui/rpc/v2/executed_transaction.js +0 -1
  307. package/dist/cjs/grpc/proto/sui/rpc/v2/execution_status.d.ts +0 -220
  308. package/dist/cjs/grpc/proto/sui/rpc/v2/execution_status.js +0 -1
  309. package/dist/cjs/grpc/proto/sui/rpc/v2/gas_cost_summary.d.ts +0 -12
  310. package/dist/cjs/grpc/proto/sui/rpc/v2/gas_cost_summary.js +0 -1
  311. package/dist/cjs/grpc/proto/sui/rpc/v2/input.d.ts +0 -23
  312. package/dist/cjs/grpc/proto/sui/rpc/v2/input.js +0 -1
  313. package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.client.d.ts +0 -43
  314. package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.client.js +0 -1
  315. package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.d.ts +0 -160
  316. package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.js +0 -1
  317. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package.d.ts +0 -150
  318. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package.js +0 -1
  319. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.client.d.ts +0 -31
  320. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.client.js +0 -1
  321. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.d.ts +0 -78
  322. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.js +0 -1
  323. package/dist/cjs/grpc/proto/sui/rpc/v2/object.d.ts +0 -32
  324. package/dist/cjs/grpc/proto/sui/rpc/v2/object.js +0 -1
  325. package/dist/cjs/grpc/proto/sui/rpc/v2/object_reference.d.ts +0 -11
  326. package/dist/cjs/grpc/proto/sui/rpc/v2/object_reference.js +0 -1
  327. package/dist/cjs/grpc/proto/sui/rpc/v2/owner.d.ts +0 -19
  328. package/dist/cjs/grpc/proto/sui/rpc/v2/owner.js +0 -1
  329. package/dist/cjs/grpc/proto/sui/rpc/v2/protocol_config.d.ts +0 -15
  330. package/dist/cjs/grpc/proto/sui/rpc/v2/protocol_config.js +0 -1
  331. package/dist/cjs/grpc/proto/sui/rpc/v2/signature.d.ts +0 -105
  332. package/dist/cjs/grpc/proto/sui/rpc/v2/signature.js +0 -1
  333. package/dist/cjs/grpc/proto/sui/rpc/v2/signature_scheme.d.ts +0 -5
  334. package/dist/cjs/grpc/proto/sui/rpc/v2/signature_scheme.js +0 -1
  335. package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.ts +0 -19
  336. package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.client.js +0 -1
  337. package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.d.ts +0 -23
  338. package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.js +0 -1
  339. package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.client.d.ts +0 -35
  340. package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.client.js +0 -1
  341. package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.d.ts +0 -172
  342. package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.js +0 -1
  343. package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.client.d.ts +0 -19
  344. package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.client.js +0 -1
  345. package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.d.ts +0 -21
  346. package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.js +0 -1
  347. package/dist/cjs/grpc/proto/sui/rpc/v2/system_state.d.ts +0 -146
  348. package/dist/cjs/grpc/proto/sui/rpc/v2/system_state.js +0 -1
  349. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction.d.ts +0 -338
  350. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction.js +0 -1
  351. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.ts +0 -23
  352. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js +0 -1
  353. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.d.ts +0 -66
  354. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.js +0 -1
  355. package/dist/cjs/index.d.ts +0 -25
  356. package/dist/cjs/index.js +0 -1
  357. package/dist/cjs/jsonRpc/client.d.ts +0 -121
  358. package/dist/cjs/jsonRpc/client.js +0 -1
  359. package/dist/cjs/jsonRpc/core.d.ts +0 -87
  360. package/dist/cjs/jsonRpc/core.js +0 -1
  361. package/dist/cjs/jsonRpc/errors.d.ts +0 -12
  362. package/dist/cjs/jsonRpc/errors.js +0 -1
  363. package/dist/cjs/jsonRpc/http-transport.d.ts +0 -39
  364. package/dist/cjs/jsonRpc/http-transport.js +0 -1
  365. package/dist/cjs/jsonRpc/index.d.ts +0 -4
  366. package/dist/cjs/jsonRpc/index.js +0 -1
  367. package/dist/cjs/jsonRpc/json-rpc-resolver.d.ts +0 -4
  368. package/dist/cjs/jsonRpc/json-rpc-resolver.js +0 -1
  369. package/dist/cjs/jsonRpc/rpc-websocket-client.d.ts +0 -28
  370. package/dist/cjs/jsonRpc/rpc-websocket-client.js +0 -1
  371. package/dist/cjs/jsonRpc/types/chain.d.ts +0 -94
  372. package/dist/cjs/jsonRpc/types/chain.js +0 -1
  373. package/dist/cjs/jsonRpc/types/changes.d.ts +0 -19
  374. package/dist/cjs/jsonRpc/types/changes.js +0 -1
  375. package/dist/cjs/jsonRpc/types/coins.d.ts +0 -6
  376. package/dist/cjs/jsonRpc/types/coins.js +0 -1
  377. package/dist/cjs/jsonRpc/types/common.d.ts +0 -2
  378. package/dist/cjs/jsonRpc/types/common.js +0 -1
  379. package/dist/cjs/jsonRpc/types/generated.d.ts +0 -954
  380. package/dist/cjs/jsonRpc/types/generated.js +0 -1
  381. package/dist/cjs/jsonRpc/types/index.d.ts +0 -6
  382. package/dist/cjs/jsonRpc/types/index.js +0 -1
  383. package/dist/cjs/jsonRpc/types/params.d.ts +0 -303
  384. package/dist/cjs/jsonRpc/types/params.js +0 -1
  385. package/dist/cjs/keypairs/falcon512/index.d.ts +0 -2
  386. package/dist/cjs/keypairs/falcon512/index.js +0 -1
  387. package/dist/cjs/keypairs/falcon512/keypair.d.ts +0 -19
  388. package/dist/cjs/keypairs/falcon512/keypair.js +0 -1
  389. package/dist/cjs/keypairs/falcon512/publickey.d.ts +0 -11
  390. package/dist/cjs/keypairs/falcon512/publickey.js +0 -1
  391. package/dist/cjs/keypairs/index.d.ts +0 -1
  392. package/dist/cjs/keypairs/index.js +0 -1
  393. package/dist/cjs/multisig/index.d.ts +0 -2
  394. package/dist/cjs/multisig/index.js +0 -1
  395. package/dist/cjs/multisig/publickey.d.ts +0 -44
  396. package/dist/cjs/multisig/publickey.js +0 -1
  397. package/dist/cjs/multisig/signer.d.ts +0 -19
  398. package/dist/cjs/multisig/signer.js +0 -1
  399. package/dist/cjs/transactions/Arguments.d.ts +0 -57
  400. package/dist/cjs/transactions/Arguments.js +0 -1
  401. package/dist/cjs/transactions/Commands.d.ts +0 -54
  402. package/dist/cjs/transactions/Commands.js +0 -1
  403. package/dist/cjs/transactions/Inputs.d.ts +0 -22
  404. package/dist/cjs/transactions/Inputs.js +0 -1
  405. package/dist/cjs/transactions/ObjectCache.d.ts +0 -83
  406. package/dist/cjs/transactions/ObjectCache.js +0 -1
  407. package/dist/cjs/transactions/Transaction.d.ts +0 -654
  408. package/dist/cjs/transactions/Transaction.js +0 -1
  409. package/dist/cjs/transactions/TransactionData.d.ts +0 -67
  410. package/dist/cjs/transactions/TransactionData.js +0 -1
  411. package/dist/cjs/transactions/__tests__/Transaction.test.d.ts +0 -1
  412. package/dist/cjs/transactions/__tests__/Transaction.test.js +0 -1
  413. package/dist/cjs/transactions/__tests__/bcs.test.d.ts +0 -1
  414. package/dist/cjs/transactions/__tests__/bcs.test.js +0 -1
  415. package/dist/cjs/transactions/data/internal.d.ts +0 -1010
  416. package/dist/cjs/transactions/data/internal.js +0 -1
  417. package/dist/cjs/transactions/data/v1.d.ts +0 -312
  418. package/dist/cjs/transactions/data/v1.js +0 -1
  419. package/dist/cjs/transactions/data/v2.d.ts +0 -153
  420. package/dist/cjs/transactions/data/v2.js +0 -1
  421. package/dist/cjs/transactions/executor/caching.d.ts +0 -27
  422. package/dist/cjs/transactions/executor/caching.js +0 -1
  423. package/dist/cjs/transactions/executor/parallel.d.ts +0 -26
  424. package/dist/cjs/transactions/executor/parallel.js +0 -1
  425. package/dist/cjs/transactions/executor/queue.d.ts +0 -11
  426. package/dist/cjs/transactions/executor/queue.js +0 -1
  427. package/dist/cjs/transactions/executor/serial.d.ts +0 -30
  428. package/dist/cjs/transactions/executor/serial.js +0 -1
  429. package/dist/cjs/transactions/hash.d.ts +0 -1
  430. package/dist/cjs/transactions/hash.js +0 -1
  431. package/dist/cjs/transactions/index.d.ts +0 -20
  432. package/dist/cjs/transactions/index.js +0 -1
  433. package/dist/cjs/transactions/intents/CoinWithBalance.d.ts +0 -9
  434. package/dist/cjs/transactions/intents/CoinWithBalance.js +0 -1
  435. package/dist/cjs/transactions/object.d.ts +0 -24
  436. package/dist/cjs/transactions/object.js +0 -1
  437. package/dist/cjs/transactions/plugins/NamedPackagesPlugin.d.ts +0 -13
  438. package/dist/cjs/transactions/plugins/NamedPackagesPlugin.js +0 -1
  439. package/dist/cjs/transactions/pure.d.ts +0 -20
  440. package/dist/cjs/transactions/pure.js +0 -1
  441. package/dist/cjs/transactions/resolve.d.ts +0 -13
  442. package/dist/cjs/transactions/resolve.js +0 -1
  443. package/dist/cjs/transactions/serializer.d.ts +0 -7
  444. package/dist/cjs/transactions/serializer.js +0 -1
  445. package/dist/cjs/transactions/utils.d.ts +0 -10
  446. package/dist/cjs/transactions/utils.js +0 -1
  447. package/dist/cjs/utils/constants.d.ts +0 -11
  448. package/dist/cjs/utils/constants.js +0 -1
  449. package/dist/cjs/utils/derived-objects.d.ts +0 -2
  450. package/dist/cjs/utils/derived-objects.js +0 -1
  451. package/dist/cjs/utils/dynamic-fields.d.ts +0 -2
  452. package/dist/cjs/utils/dynamic-fields.js +0 -1
  453. package/dist/cjs/utils/format.d.ts +0 -2
  454. package/dist/cjs/utils/format.js +0 -1
  455. package/dist/cjs/utils/index.d.ts +0 -8
  456. package/dist/cjs/utils/index.js +0 -1
  457. package/dist/cjs/utils/move-registry.d.ts +0 -2
  458. package/dist/cjs/utils/move-registry.js +0 -1
  459. package/dist/cjs/utils/wow-types.d.ts +0 -14
  460. package/dist/cjs/utils/wow-types.js +0 -1
  461. package/dist/cjs/verify/index.d.ts +0 -1
  462. package/dist/cjs/verify/index.js +0 -1
  463. package/dist/cjs/verify/verify.d.ts +0 -16
  464. package/dist/cjs/verify/verify.js +0 -1
  465. package/dist/cjs/version.d.ts +0 -2
  466. package/dist/cjs/version.js +0 -1
  467. package/dist/cjs/w/call/allocation.d.ts +0 -35
  468. package/dist/cjs/w/call/allocation.js +0 -1
  469. package/dist/cjs/w/call/arb.d.ts +0 -17
  470. package/dist/cjs/w/call/arb.js +0 -1
  471. package/dist/cjs/w/call/arbitration.d.ts +0 -106
  472. package/dist/cjs/w/call/arbitration.js +0 -1
  473. package/dist/cjs/w/call/base.d.ts +0 -43
  474. package/dist/cjs/w/call/base.js +0 -1
  475. package/dist/cjs/w/call/contact.d.ts +0 -45
  476. package/dist/cjs/w/call/contact.js +0 -1
  477. package/dist/cjs/w/call/demand.d.ts +0 -79
  478. package/dist/cjs/w/call/demand.js +0 -1
  479. package/dist/cjs/w/call/entity.d.ts +0 -33
  480. package/dist/cjs/w/call/entity.js +0 -1
  481. package/dist/cjs/w/call/guard-ins.d.ts +0 -29
  482. package/dist/cjs/w/call/guard-ins.js +0 -1
  483. package/dist/cjs/w/call/guard.d.ts +0 -350
  484. package/dist/cjs/w/call/guard.js +0 -1
  485. package/dist/cjs/w/call/index.d.ts +0 -37
  486. package/dist/cjs/w/call/index.js +0 -1
  487. package/dist/cjs/w/call/machine.d.ts +0 -124
  488. package/dist/cjs/w/call/machine.js +0 -1
  489. package/dist/cjs/w/call/order.d.ts +0 -73
  490. package/dist/cjs/w/call/order.js +0 -1
  491. package/dist/cjs/w/call/passport.d.ts +0 -24
  492. package/dist/cjs/w/call/passport.js +0 -1
  493. package/dist/cjs/w/call/payment.d.ts +0 -27
  494. package/dist/cjs/w/call/payment.js +0 -1
  495. package/dist/cjs/w/call/permission.d.ts +0 -202
  496. package/dist/cjs/w/call/permission.js +0 -1
  497. package/dist/cjs/w/call/personal.d.ts +0 -51
  498. package/dist/cjs/w/call/personal.js +0 -1
  499. package/dist/cjs/w/call/progress.d.ts +0 -95
  500. package/dist/cjs/w/call/progress.js +0 -1
  501. package/dist/cjs/w/call/proof.d.ts +0 -27
  502. package/dist/cjs/w/call/proof.js +0 -1
  503. package/dist/cjs/w/call/repository.d.ts +0 -97
  504. package/dist/cjs/w/call/repository.js +0 -1
  505. package/dist/cjs/w/call/resource.d.ts +0 -27
  506. package/dist/cjs/w/call/resource.js +0 -1
  507. package/dist/cjs/w/call/reward.d.ts +0 -52
  508. package/dist/cjs/w/call/reward.js +0 -1
  509. package/dist/cjs/w/call/service.d.ts +0 -186
  510. package/dist/cjs/w/call/service.js +0 -1
  511. package/dist/cjs/w/call/treasury.d.ts +0 -77
  512. package/dist/cjs/w/call/treasury.js +0 -1
  513. package/dist/cjs/w/call/util.d.ts +0 -13
  514. package/dist/cjs/w/call/util.js +0 -1
  515. package/dist/cjs/w/common.d.ts +0 -344
  516. package/dist/cjs/w/common.js +0 -1
  517. package/dist/cjs/w/exception.d.ts +0 -83
  518. package/dist/cjs/w/exception.js +0 -1
  519. package/dist/cjs/w/index.d.ts +0 -8
  520. package/dist/cjs/w/index.js +0 -1
  521. package/dist/cjs/w/local/account.d.ts +0 -99
  522. package/dist/cjs/w/local/account.js +0 -1
  523. package/dist/cjs/w/local/cache.d.ts +0 -35
  524. package/dist/cjs/w/local/cache.js +0 -1
  525. package/dist/cjs/w/local/config.d.ts +0 -12
  526. package/dist/cjs/w/local/config.js +0 -1
  527. package/dist/cjs/w/local/index.d.ts +0 -199
  528. package/dist/cjs/w/local/index.js +0 -1
  529. package/dist/cjs/w/local/local.d.ts +0 -96
  530. package/dist/cjs/w/local/local.js +0 -1
  531. package/dist/cjs/w/local/storage.d.ts +0 -41
  532. package/dist/cjs/w/local/storage.js +0 -1
  533. package/dist/cjs/w/local/token.d.ts +0 -19
  534. package/dist/cjs/w/local/token.js +0 -1
  535. package/dist/cjs/w/local/util.d.ts +0 -1
  536. package/dist/cjs/w/local/util.js +0 -1
  537. package/dist/cjs/w/local/wip.d.ts +0 -135
  538. package/dist/cjs/w/local/wip.js +0 -1
  539. package/dist/cjs/w/messenger/crypto.d.ts +0 -88
  540. package/dist/cjs/w/messenger/crypto.js +0 -1
  541. package/dist/cjs/w/messenger/index.d.ts +0 -5
  542. package/dist/cjs/w/messenger/index.js +0 -1
  543. package/dist/cjs/w/messenger/messenger-api.d.ts +0 -140
  544. package/dist/cjs/w/messenger/messenger-api.js +0 -1
  545. package/dist/cjs/w/messenger/messenger-manager.d.ts +0 -85
  546. package/dist/cjs/w/messenger/messenger-manager.js +0 -1
  547. package/dist/cjs/w/messenger/messenger.d.ts +0 -92
  548. package/dist/cjs/w/messenger/messenger.js +0 -1
  549. package/dist/cjs/w/messenger/pq/crypto.d.ts +0 -39
  550. package/dist/cjs/w/messenger/pq/crypto.js +0 -1
  551. package/dist/cjs/w/messenger/pq/erasure.d.ts +0 -17
  552. package/dist/cjs/w/messenger/pq/erasure.js +0 -1
  553. package/dist/cjs/w/messenger/pq/index.d.ts +0 -9
  554. package/dist/cjs/w/messenger/pq/index.js +0 -1
  555. package/dist/cjs/w/messenger/pq/keycombiner.d.ts +0 -1
  556. package/dist/cjs/w/messenger/pq/keycombiner.js +0 -1
  557. package/dist/cjs/w/messenger/pq/pqxdh.d.ts +0 -38
  558. package/dist/cjs/w/messenger/pq/pqxdh.js +0 -1
  559. package/dist/cjs/w/messenger/pq/ratchet.d.ts +0 -12
  560. package/dist/cjs/w/messenger/pq/ratchet.js +0 -1
  561. package/dist/cjs/w/messenger/pq/session.d.ts +0 -41
  562. package/dist/cjs/w/messenger/pq/session.js +0 -1
  563. package/dist/cjs/w/messenger/pq/spqr.d.ts +0 -23
  564. package/dist/cjs/w/messenger/pq/spqr.js +0 -1
  565. package/dist/cjs/w/messenger/pq/store-adapter.d.ts +0 -31
  566. package/dist/cjs/w/messenger/pq/store-adapter.js +0 -1
  567. package/dist/cjs/w/messenger/pq/types.d.ts +0 -180
  568. package/dist/cjs/w/messenger/pq/types.js +0 -1
  569. package/dist/cjs/w/messenger/server.d.ts +0 -48
  570. package/dist/cjs/w/messenger/server.js +0 -1
  571. package/dist/cjs/w/messenger/session.d.ts +0 -65
  572. package/dist/cjs/w/messenger/session.js +0 -1
  573. package/dist/cjs/w/messenger/storage.d.ts +0 -110
  574. package/dist/cjs/w/messenger/storage.js +0 -1
  575. package/dist/cjs/w/messenger/templates/wts-html-template.d.ts +0 -30
  576. package/dist/cjs/w/messenger/templates/wts-html-template.js +0 -1
  577. package/dist/cjs/w/messenger/types.d.ts +0 -647
  578. package/dist/cjs/w/messenger/types.js +0 -1
  579. package/dist/cjs/w/messenger/utils.d.ts +0 -1
  580. package/dist/cjs/w/messenger/utils.js +0 -1
  581. package/dist/cjs/w/query/bult-in.d.ts +0 -62
  582. package/dist/cjs/w/query/bult-in.js +0 -1
  583. package/dist/cjs/w/query/event.d.ts +0 -76
  584. package/dist/cjs/w/query/event.js +0 -1
  585. package/dist/cjs/w/query/index.d.ts +0 -5
  586. package/dist/cjs/w/query/index.js +0 -1
  587. package/dist/cjs/w/query/object.d.ts +0 -626
  588. package/dist/cjs/w/query/object.js +0 -1
  589. package/dist/cjs/w/query/received.d.ts +0 -30
  590. package/dist/cjs/w/query/received.js +0 -1
  591. package/dist/cjs/w/query/util.d.ts +0 -4
  592. package/dist/cjs/w/query/util.js +0 -1
  593. package/dist/cjs/w/util.d.ts +0 -16
  594. package/dist/cjs/w/util.js +0 -1
  595. package/dist/esm/_deps/bcs/bcs-type.d.ts +0 -127
  596. package/dist/esm/_deps/bcs/bcs-type.js +0 -1
  597. package/dist/esm/_deps/bcs/bcs.d.ts +0 -49
  598. package/dist/esm/_deps/bcs/bcs.js +0 -1
  599. package/dist/esm/_deps/bcs/index.d.ts +0 -16
  600. package/dist/esm/_deps/bcs/index.js +0 -1
  601. package/dist/esm/_deps/bcs/reader.d.ts +0 -15
  602. package/dist/esm/_deps/bcs/reader.js +0 -1
  603. package/dist/esm/_deps/bcs/types.d.ts +0 -24
  604. package/dist/esm/_deps/bcs/types.js +0 -1
  605. package/dist/esm/_deps/bcs/uleb.d.ts +0 -5
  606. package/dist/esm/_deps/bcs/uleb.js +0 -1
  607. package/dist/esm/_deps/bcs/utils.d.ts +0 -4
  608. package/dist/esm/_deps/bcs/utils.js +0 -1
  609. package/dist/esm/_deps/bcs/writer.d.ts +0 -28
  610. package/dist/esm/_deps/bcs/writer.js +0 -1
  611. package/dist/esm/_deps/utils/b58.d.ts +0 -2
  612. package/dist/esm/_deps/utils/b58.js +0 -1
  613. package/dist/esm/_deps/utils/b64.d.ts +0 -2
  614. package/dist/esm/_deps/utils/b64.js +0 -1
  615. package/dist/esm/_deps/utils/chunk.d.ts +0 -1
  616. package/dist/esm/_deps/utils/chunk.js +0 -1
  617. package/dist/esm/_deps/utils/dataloader.d.ts +0 -43
  618. package/dist/esm/_deps/utils/dataloader.js +0 -1
  619. package/dist/esm/_deps/utils/hex.d.ts +0 -2
  620. package/dist/esm/_deps/utils/hex.js +0 -1
  621. package/dist/esm/_deps/utils/index.d.ts +0 -7
  622. package/dist/esm/_deps/utils/index.js +0 -1
  623. package/dist/esm/_deps/utils/types.d.ts +0 -4
  624. package/dist/esm/_deps/utils/types.js +0 -1
  625. package/dist/esm/_deps/utils/with-resolver.d.ts +0 -6
  626. package/dist/esm/_deps/utils/with-resolver.js +0 -1
  627. package/dist/esm/bcs/bcs.d.ts +0 -1927
  628. package/dist/esm/bcs/bcs.js +0 -1
  629. package/dist/esm/bcs/effects.d.ts +0 -579
  630. package/dist/esm/bcs/effects.js +0 -1
  631. package/dist/esm/bcs/index.d.ts +0 -6
  632. package/dist/esm/bcs/index.js +0 -1
  633. package/dist/esm/bcs/pure.d.ts +0 -22
  634. package/dist/esm/bcs/pure.js +0 -1
  635. package/dist/esm/bcs/type-tag-serializer.d.ts +0 -7
  636. package/dist/esm/bcs/type-tag-serializer.js +0 -1
  637. package/dist/esm/bcs/types.d.ts +0 -65
  638. package/dist/esm/bcs/types.js +0 -1
  639. package/dist/esm/client/index.d.ts +0 -5
  640. package/dist/esm/client/index.js +0 -1
  641. package/dist/esm/client/network.d.ts +0 -5
  642. package/dist/esm/client/network.js +0 -1
  643. package/dist/esm/cryptography/index.d.ts +0 -7
  644. package/dist/esm/cryptography/index.js +0 -1
  645. package/dist/esm/cryptography/intent.d.ts +0 -3
  646. package/dist/esm/cryptography/intent.js +0 -1
  647. package/dist/esm/cryptography/keypair.d.ts +0 -39
  648. package/dist/esm/cryptography/keypair.js +0 -1
  649. package/dist/esm/cryptography/mnemonics.d.ts +0 -4
  650. package/dist/esm/cryptography/mnemonics.js +0 -1
  651. package/dist/esm/cryptography/publickey.d.ts +0 -25
  652. package/dist/esm/cryptography/publickey.js +0 -1
  653. package/dist/esm/cryptography/signature-scheme.d.ts +0 -13
  654. package/dist/esm/cryptography/signature-scheme.js +0 -1
  655. package/dist/esm/cryptography/signature.d.ts +0 -21
  656. package/dist/esm/cryptography/signature.js +0 -1
  657. package/dist/esm/experimental/cache.d.ts +0 -12
  658. package/dist/esm/experimental/cache.js +0 -1
  659. package/dist/esm/experimental/client.d.ts +0 -12
  660. package/dist/esm/experimental/client.js +0 -1
  661. package/dist/esm/experimental/core.d.ts +0 -31
  662. package/dist/esm/experimental/core.js +0 -1
  663. package/dist/esm/experimental/errors.d.ts +0 -8
  664. package/dist/esm/experimental/errors.js +0 -1
  665. package/dist/esm/experimental/index.d.ts +0 -7
  666. package/dist/esm/experimental/index.js +0 -1
  667. package/dist/esm/experimental/persistent-storage.d.ts +0 -36
  668. package/dist/esm/experimental/persistent-storage.js +0 -1
  669. package/dist/esm/experimental/persistent-storage.test.d.ts +0 -1
  670. package/dist/esm/experimental/persistent-storage.test.js +0 -1
  671. package/dist/esm/experimental/transports/utils.d.ts +0 -3
  672. package/dist/esm/experimental/transports/utils.js +0 -1
  673. package/dist/esm/experimental/types.d.ts +0 -361
  674. package/dist/esm/experimental/types.js +0 -1
  675. package/dist/esm/faucet/faucet.d.ts +0 -57
  676. package/dist/esm/faucet/faucet.js +0 -1
  677. package/dist/esm/faucet/index.d.ts +0 -1
  678. package/dist/esm/faucet/index.js +0 -1
  679. package/dist/esm/grpc/client.d.ts +0 -30
  680. package/dist/esm/grpc/client.js +0 -1
  681. package/dist/esm/grpc/core.d.ts +0 -28
  682. package/dist/esm/grpc/core.js +0 -1
  683. package/dist/esm/grpc/index.d.ts +0 -4
  684. package/dist/esm/grpc/index.js +0 -1
  685. package/dist/esm/grpc/proto/google/protobuf/any.d.ts +0 -29
  686. package/dist/esm/grpc/proto/google/protobuf/any.js +0 -1
  687. package/dist/esm/grpc/proto/google/protobuf/duration.d.ts +0 -23
  688. package/dist/esm/grpc/proto/google/protobuf/duration.js +0 -1
  689. package/dist/esm/grpc/proto/google/protobuf/empty.d.ts +0 -16
  690. package/dist/esm/grpc/proto/google/protobuf/empty.js +0 -1
  691. package/dist/esm/grpc/proto/google/protobuf/field_mask.d.ts +0 -22
  692. package/dist/esm/grpc/proto/google/protobuf/field_mask.js +0 -1
  693. package/dist/esm/grpc/proto/google/protobuf/struct.d.ts +0 -72
  694. package/dist/esm/grpc/proto/google/protobuf/struct.js +0 -1
  695. package/dist/esm/grpc/proto/google/protobuf/timestamp.d.ts +0 -26
  696. package/dist/esm/grpc/proto/google/protobuf/timestamp.js +0 -1
  697. package/dist/esm/grpc/proto/google/rpc/error_details.d.ts +0 -166
  698. package/dist/esm/grpc/proto/google/rpc/error_details.js +0 -1
  699. package/dist/esm/grpc/proto/google/rpc/status.d.ts +0 -20
  700. package/dist/esm/grpc/proto/google/rpc/status.js +0 -1
  701. package/dist/esm/grpc/proto/sui/rpc/v2/argument.d.ts +0 -18
  702. package/dist/esm/grpc/proto/sui/rpc/v2/argument.js +0 -1
  703. package/dist/esm/grpc/proto/sui/rpc/v2/balance_change.d.ts +0 -11
  704. package/dist/esm/grpc/proto/sui/rpc/v2/balance_change.js +0 -1
  705. package/dist/esm/grpc/proto/sui/rpc/v2/bcs.d.ts +0 -10
  706. package/dist/esm/grpc/proto/sui/rpc/v2/bcs.js +0 -1
  707. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.d.ts +0 -20
  708. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.js +0 -1
  709. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.d.ts +0 -23
  710. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.js +0 -1
  711. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.d.ts +0 -46
  712. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.js +0 -1
  713. package/dist/esm/grpc/proto/sui/rpc/v2/effects.d.ts +0 -81
  714. package/dist/esm/grpc/proto/sui/rpc/v2/effects.js +0 -1
  715. package/dist/esm/grpc/proto/sui/rpc/v2/epoch.d.ts +0 -21
  716. package/dist/esm/grpc/proto/sui/rpc/v2/epoch.js +0 -1
  717. package/dist/esm/grpc/proto/sui/rpc/v2/error_reason.d.ts +0 -5
  718. package/dist/esm/grpc/proto/sui/rpc/v2/error_reason.js +0 -1
  719. package/dist/esm/grpc/proto/sui/rpc/v2/event.d.ts +0 -25
  720. package/dist/esm/grpc/proto/sui/rpc/v2/event.js +0 -1
  721. package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.d.ts +0 -24
  722. package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.js +0 -1
  723. package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.d.ts +0 -220
  724. package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.js +0 -1
  725. package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.d.ts +0 -12
  726. package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.js +0 -1
  727. package/dist/esm/grpc/proto/sui/rpc/v2/input.d.ts +0 -23
  728. package/dist/esm/grpc/proto/sui/rpc/v2/input.js +0 -1
  729. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.d.ts +0 -43
  730. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.js +0 -1
  731. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.d.ts +0 -160
  732. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.js +0 -1
  733. package/dist/esm/grpc/proto/sui/rpc/v2/move_package.d.ts +0 -150
  734. package/dist/esm/grpc/proto/sui/rpc/v2/move_package.js +0 -1
  735. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.d.ts +0 -31
  736. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.js +0 -1
  737. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.d.ts +0 -78
  738. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.js +0 -1
  739. package/dist/esm/grpc/proto/sui/rpc/v2/object.d.ts +0 -32
  740. package/dist/esm/grpc/proto/sui/rpc/v2/object.js +0 -1
  741. package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.d.ts +0 -11
  742. package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.js +0 -1
  743. package/dist/esm/grpc/proto/sui/rpc/v2/owner.d.ts +0 -19
  744. package/dist/esm/grpc/proto/sui/rpc/v2/owner.js +0 -1
  745. package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.d.ts +0 -15
  746. package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.js +0 -1
  747. package/dist/esm/grpc/proto/sui/rpc/v2/signature.d.ts +0 -105
  748. package/dist/esm/grpc/proto/sui/rpc/v2/signature.js +0 -1
  749. package/dist/esm/grpc/proto/sui/rpc/v2/signature_scheme.d.ts +0 -5
  750. package/dist/esm/grpc/proto/sui/rpc/v2/signature_scheme.js +0 -1
  751. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.ts +0 -19
  752. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.js +0 -1
  753. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.d.ts +0 -23
  754. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.js +0 -1
  755. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.d.ts +0 -35
  756. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.js +0 -1
  757. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.d.ts +0 -172
  758. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.js +0 -1
  759. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.d.ts +0 -19
  760. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.js +0 -1
  761. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.d.ts +0 -21
  762. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.js +0 -1
  763. package/dist/esm/grpc/proto/sui/rpc/v2/system_state.d.ts +0 -146
  764. package/dist/esm/grpc/proto/sui/rpc/v2/system_state.js +0 -1
  765. package/dist/esm/grpc/proto/sui/rpc/v2/transaction.d.ts +0 -338
  766. package/dist/esm/grpc/proto/sui/rpc/v2/transaction.js +0 -1
  767. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.ts +0 -23
  768. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js +0 -1
  769. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.d.ts +0 -66
  770. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.js +0 -1
  771. package/dist/esm/index.d.ts +0 -25
  772. package/dist/esm/index.js +0 -1
  773. package/dist/esm/jsonRpc/client.d.ts +0 -121
  774. package/dist/esm/jsonRpc/client.js +0 -1
  775. package/dist/esm/jsonRpc/core.d.ts +0 -87
  776. package/dist/esm/jsonRpc/core.js +0 -1
  777. package/dist/esm/jsonRpc/errors.d.ts +0 -12
  778. package/dist/esm/jsonRpc/errors.js +0 -1
  779. package/dist/esm/jsonRpc/http-transport.d.ts +0 -39
  780. package/dist/esm/jsonRpc/http-transport.js +0 -1
  781. package/dist/esm/jsonRpc/index.d.ts +0 -4
  782. package/dist/esm/jsonRpc/index.js +0 -1
  783. package/dist/esm/jsonRpc/json-rpc-resolver.d.ts +0 -4
  784. package/dist/esm/jsonRpc/json-rpc-resolver.js +0 -1
  785. package/dist/esm/jsonRpc/rpc-websocket-client.d.ts +0 -28
  786. package/dist/esm/jsonRpc/rpc-websocket-client.js +0 -1
  787. package/dist/esm/jsonRpc/types/chain.d.ts +0 -94
  788. package/dist/esm/jsonRpc/types/chain.js +0 -1
  789. package/dist/esm/jsonRpc/types/changes.d.ts +0 -19
  790. package/dist/esm/jsonRpc/types/changes.js +0 -1
  791. package/dist/esm/jsonRpc/types/coins.d.ts +0 -6
  792. package/dist/esm/jsonRpc/types/coins.js +0 -1
  793. package/dist/esm/jsonRpc/types/common.d.ts +0 -2
  794. package/dist/esm/jsonRpc/types/common.js +0 -1
  795. package/dist/esm/jsonRpc/types/generated.d.ts +0 -954
  796. package/dist/esm/jsonRpc/types/generated.js +0 -1
  797. package/dist/esm/jsonRpc/types/index.d.ts +0 -6
  798. package/dist/esm/jsonRpc/types/index.js +0 -1
  799. package/dist/esm/jsonRpc/types/params.d.ts +0 -303
  800. package/dist/esm/jsonRpc/types/params.js +0 -1
  801. package/dist/esm/keypairs/falcon512/index.d.ts +0 -2
  802. package/dist/esm/keypairs/falcon512/index.js +0 -1
  803. package/dist/esm/keypairs/falcon512/keypair.d.ts +0 -19
  804. package/dist/esm/keypairs/falcon512/keypair.js +0 -1
  805. package/dist/esm/keypairs/falcon512/publickey.d.ts +0 -11
  806. package/dist/esm/keypairs/falcon512/publickey.js +0 -1
  807. package/dist/esm/keypairs/index.d.ts +0 -1
  808. package/dist/esm/keypairs/index.js +0 -1
  809. package/dist/esm/multisig/index.d.ts +0 -2
  810. package/dist/esm/multisig/index.js +0 -1
  811. package/dist/esm/multisig/publickey.d.ts +0 -44
  812. package/dist/esm/multisig/publickey.js +0 -1
  813. package/dist/esm/multisig/signer.d.ts +0 -19
  814. package/dist/esm/multisig/signer.js +0 -1
  815. package/dist/esm/transactions/Arguments.d.ts +0 -57
  816. package/dist/esm/transactions/Arguments.js +0 -1
  817. package/dist/esm/transactions/Commands.d.ts +0 -54
  818. package/dist/esm/transactions/Commands.js +0 -1
  819. package/dist/esm/transactions/Inputs.d.ts +0 -22
  820. package/dist/esm/transactions/Inputs.js +0 -1
  821. package/dist/esm/transactions/ObjectCache.d.ts +0 -83
  822. package/dist/esm/transactions/ObjectCache.js +0 -1
  823. package/dist/esm/transactions/Transaction.d.ts +0 -654
  824. package/dist/esm/transactions/Transaction.js +0 -1
  825. package/dist/esm/transactions/TransactionData.d.ts +0 -67
  826. package/dist/esm/transactions/TransactionData.js +0 -1
  827. package/dist/esm/transactions/__tests__/Transaction.test.d.ts +0 -1
  828. package/dist/esm/transactions/__tests__/Transaction.test.js +0 -1
  829. package/dist/esm/transactions/__tests__/bcs.test.d.ts +0 -1
  830. package/dist/esm/transactions/__tests__/bcs.test.js +0 -1
  831. package/dist/esm/transactions/data/internal.d.ts +0 -1010
  832. package/dist/esm/transactions/data/internal.js +0 -1
  833. package/dist/esm/transactions/data/v1.d.ts +0 -312
  834. package/dist/esm/transactions/data/v1.js +0 -1
  835. package/dist/esm/transactions/data/v2.d.ts +0 -153
  836. package/dist/esm/transactions/data/v2.js +0 -1
  837. package/dist/esm/transactions/executor/caching.d.ts +0 -27
  838. package/dist/esm/transactions/executor/caching.js +0 -1
  839. package/dist/esm/transactions/executor/parallel.d.ts +0 -26
  840. package/dist/esm/transactions/executor/parallel.js +0 -1
  841. package/dist/esm/transactions/executor/queue.d.ts +0 -11
  842. package/dist/esm/transactions/executor/queue.js +0 -1
  843. package/dist/esm/transactions/executor/serial.d.ts +0 -30
  844. package/dist/esm/transactions/executor/serial.js +0 -1
  845. package/dist/esm/transactions/hash.d.ts +0 -1
  846. package/dist/esm/transactions/hash.js +0 -1
  847. package/dist/esm/transactions/index.d.ts +0 -20
  848. package/dist/esm/transactions/index.js +0 -1
  849. package/dist/esm/transactions/intents/CoinWithBalance.d.ts +0 -9
  850. package/dist/esm/transactions/intents/CoinWithBalance.js +0 -1
  851. package/dist/esm/transactions/object.d.ts +0 -24
  852. package/dist/esm/transactions/object.js +0 -1
  853. package/dist/esm/transactions/plugins/NamedPackagesPlugin.d.ts +0 -13
  854. package/dist/esm/transactions/plugins/NamedPackagesPlugin.js +0 -1
  855. package/dist/esm/transactions/pure.d.ts +0 -20
  856. package/dist/esm/transactions/pure.js +0 -1
  857. package/dist/esm/transactions/resolve.d.ts +0 -13
  858. package/dist/esm/transactions/resolve.js +0 -1
  859. package/dist/esm/transactions/serializer.d.ts +0 -7
  860. package/dist/esm/transactions/serializer.js +0 -1
  861. package/dist/esm/transactions/utils.d.ts +0 -10
  862. package/dist/esm/transactions/utils.js +0 -1
  863. package/dist/esm/utils/constants.d.ts +0 -11
  864. package/dist/esm/utils/constants.js +0 -1
  865. package/dist/esm/utils/derived-objects.d.ts +0 -2
  866. package/dist/esm/utils/derived-objects.js +0 -1
  867. package/dist/esm/utils/dynamic-fields.d.ts +0 -2
  868. package/dist/esm/utils/dynamic-fields.js +0 -1
  869. package/dist/esm/utils/format.d.ts +0 -2
  870. package/dist/esm/utils/format.js +0 -1
  871. package/dist/esm/utils/index.d.ts +0 -8
  872. package/dist/esm/utils/index.js +0 -1
  873. package/dist/esm/utils/move-registry.d.ts +0 -2
  874. package/dist/esm/utils/move-registry.js +0 -1
  875. package/dist/esm/utils/wow-types.d.ts +0 -14
  876. package/dist/esm/utils/wow-types.js +0 -1
  877. package/dist/esm/verify/index.d.ts +0 -1
  878. package/dist/esm/verify/index.js +0 -1
  879. package/dist/esm/verify/verify.d.ts +0 -16
  880. package/dist/esm/verify/verify.js +0 -1
  881. package/dist/esm/version.d.ts +0 -2
  882. package/dist/esm/version.js +0 -1
  883. package/dist/esm/w/call/allocation.d.ts +0 -35
  884. package/dist/esm/w/call/allocation.js +0 -1
  885. package/dist/esm/w/call/arb.d.ts +0 -17
  886. package/dist/esm/w/call/arb.js +0 -1
  887. package/dist/esm/w/call/arbitration.d.ts +0 -106
  888. package/dist/esm/w/call/arbitration.js +0 -1
  889. package/dist/esm/w/call/base.d.ts +0 -43
  890. package/dist/esm/w/call/base.js +0 -1
  891. package/dist/esm/w/call/contact.d.ts +0 -45
  892. package/dist/esm/w/call/contact.js +0 -1
  893. package/dist/esm/w/call/demand.d.ts +0 -79
  894. package/dist/esm/w/call/demand.js +0 -1
  895. package/dist/esm/w/call/entity.d.ts +0 -33
  896. package/dist/esm/w/call/entity.js +0 -1
  897. package/dist/esm/w/call/guard-ins.d.ts +0 -29
  898. package/dist/esm/w/call/guard-ins.js +0 -1
  899. package/dist/esm/w/call/guard.d.ts +0 -350
  900. package/dist/esm/w/call/guard.js +0 -1
  901. package/dist/esm/w/call/index.d.ts +0 -37
  902. package/dist/esm/w/call/index.js +0 -1
  903. package/dist/esm/w/call/machine.d.ts +0 -124
  904. package/dist/esm/w/call/machine.js +0 -1
  905. package/dist/esm/w/call/order.d.ts +0 -73
  906. package/dist/esm/w/call/order.js +0 -1
  907. package/dist/esm/w/call/passport.d.ts +0 -24
  908. package/dist/esm/w/call/passport.js +0 -1
  909. package/dist/esm/w/call/payment.d.ts +0 -27
  910. package/dist/esm/w/call/payment.js +0 -1
  911. package/dist/esm/w/call/permission.d.ts +0 -202
  912. package/dist/esm/w/call/permission.js +0 -1
  913. package/dist/esm/w/call/personal.d.ts +0 -51
  914. package/dist/esm/w/call/personal.js +0 -1
  915. package/dist/esm/w/call/progress.d.ts +0 -95
  916. package/dist/esm/w/call/progress.js +0 -1
  917. package/dist/esm/w/call/proof.d.ts +0 -27
  918. package/dist/esm/w/call/proof.js +0 -1
  919. package/dist/esm/w/call/repository.d.ts +0 -97
  920. package/dist/esm/w/call/repository.js +0 -1
  921. package/dist/esm/w/call/resource.d.ts +0 -27
  922. package/dist/esm/w/call/resource.js +0 -1
  923. package/dist/esm/w/call/reward.d.ts +0 -52
  924. package/dist/esm/w/call/reward.js +0 -1
  925. package/dist/esm/w/call/service.d.ts +0 -186
  926. package/dist/esm/w/call/service.js +0 -1
  927. package/dist/esm/w/call/treasury.d.ts +0 -77
  928. package/dist/esm/w/call/treasury.js +0 -1
  929. package/dist/esm/w/call/util.d.ts +0 -13
  930. package/dist/esm/w/call/util.js +0 -1
  931. package/dist/esm/w/common.d.ts +0 -344
  932. package/dist/esm/w/common.js +0 -1
  933. package/dist/esm/w/exception.d.ts +0 -83
  934. package/dist/esm/w/exception.js +0 -1
  935. package/dist/esm/w/index.d.ts +0 -8
  936. package/dist/esm/w/index.js +0 -1
  937. package/dist/esm/w/local/account.d.ts +0 -99
  938. package/dist/esm/w/local/account.js +0 -1
  939. package/dist/esm/w/local/cache.d.ts +0 -35
  940. package/dist/esm/w/local/cache.js +0 -1
  941. package/dist/esm/w/local/config.d.ts +0 -12
  942. package/dist/esm/w/local/config.js +0 -1
  943. package/dist/esm/w/local/index.d.ts +0 -199
  944. package/dist/esm/w/local/index.js +0 -1
  945. package/dist/esm/w/local/local.d.ts +0 -96
  946. package/dist/esm/w/local/local.js +0 -1
  947. package/dist/esm/w/local/storage.d.ts +0 -41
  948. package/dist/esm/w/local/storage.js +0 -1
  949. package/dist/esm/w/local/token.d.ts +0 -19
  950. package/dist/esm/w/local/token.js +0 -1
  951. package/dist/esm/w/local/util.d.ts +0 -1
  952. package/dist/esm/w/local/util.js +0 -1
  953. package/dist/esm/w/local/wip.d.ts +0 -135
  954. package/dist/esm/w/local/wip.js +0 -1
  955. package/dist/esm/w/messenger/crypto.d.ts +0 -88
  956. package/dist/esm/w/messenger/crypto.js +0 -1
  957. package/dist/esm/w/messenger/index.d.ts +0 -5
  958. package/dist/esm/w/messenger/index.js +0 -1
  959. package/dist/esm/w/messenger/messenger-api.d.ts +0 -140
  960. package/dist/esm/w/messenger/messenger-api.js +0 -1
  961. package/dist/esm/w/messenger/messenger-manager.d.ts +0 -85
  962. package/dist/esm/w/messenger/messenger-manager.js +0 -1
  963. package/dist/esm/w/messenger/messenger.d.ts +0 -92
  964. package/dist/esm/w/messenger/messenger.js +0 -1
  965. package/dist/esm/w/messenger/pq/crypto.d.ts +0 -39
  966. package/dist/esm/w/messenger/pq/crypto.js +0 -1
  967. package/dist/esm/w/messenger/pq/erasure.d.ts +0 -17
  968. package/dist/esm/w/messenger/pq/erasure.js +0 -1
  969. package/dist/esm/w/messenger/pq/index.d.ts +0 -9
  970. package/dist/esm/w/messenger/pq/index.js +0 -1
  971. package/dist/esm/w/messenger/pq/keycombiner.d.ts +0 -1
  972. package/dist/esm/w/messenger/pq/keycombiner.js +0 -1
  973. package/dist/esm/w/messenger/pq/pqxdh.d.ts +0 -38
  974. package/dist/esm/w/messenger/pq/pqxdh.js +0 -1
  975. package/dist/esm/w/messenger/pq/ratchet.d.ts +0 -12
  976. package/dist/esm/w/messenger/pq/ratchet.js +0 -1
  977. package/dist/esm/w/messenger/pq/session.d.ts +0 -41
  978. package/dist/esm/w/messenger/pq/session.js +0 -1
  979. package/dist/esm/w/messenger/pq/spqr.d.ts +0 -23
  980. package/dist/esm/w/messenger/pq/spqr.js +0 -1
  981. package/dist/esm/w/messenger/pq/store-adapter.d.ts +0 -31
  982. package/dist/esm/w/messenger/pq/store-adapter.js +0 -1
  983. package/dist/esm/w/messenger/pq/types.d.ts +0 -180
  984. package/dist/esm/w/messenger/pq/types.js +0 -1
  985. package/dist/esm/w/messenger/server.d.ts +0 -48
  986. package/dist/esm/w/messenger/server.js +0 -1
  987. package/dist/esm/w/messenger/session.d.ts +0 -65
  988. package/dist/esm/w/messenger/session.js +0 -1
  989. package/dist/esm/w/messenger/storage.d.ts +0 -110
  990. package/dist/esm/w/messenger/storage.js +0 -1
  991. package/dist/esm/w/messenger/templates/wts-html-template.d.ts +0 -30
  992. package/dist/esm/w/messenger/templates/wts-html-template.js +0 -1
  993. package/dist/esm/w/messenger/types.d.ts +0 -647
  994. package/dist/esm/w/messenger/types.js +0 -1
  995. package/dist/esm/w/messenger/utils.d.ts +0 -1
  996. package/dist/esm/w/messenger/utils.js +0 -1
  997. package/dist/esm/w/query/bult-in.d.ts +0 -62
  998. package/dist/esm/w/query/bult-in.js +0 -1
  999. package/dist/esm/w/query/event.d.ts +0 -76
  1000. package/dist/esm/w/query/event.js +0 -1
  1001. package/dist/esm/w/query/index.d.ts +0 -5
  1002. package/dist/esm/w/query/index.js +0 -1
  1003. package/dist/esm/w/query/object.d.ts +0 -626
  1004. package/dist/esm/w/query/object.js +0 -1
  1005. package/dist/esm/w/query/received.d.ts +0 -30
  1006. package/dist/esm/w/query/received.js +0 -1
  1007. package/dist/esm/w/query/util.d.ts +0 -4
  1008. package/dist/esm/w/query/util.js +0 -1
  1009. package/dist/esm/w/util.d.ts +0 -16
  1010. package/dist/esm/w/util.js +0 -1
@@ -1,196 +0,0 @@
1
- ================================================================================
2
- APACHE LICENSE 2.0
3
- ================================================================================
4
-
5
- The following software components are licensed under the Apache License 2.0:
6
-
7
- 1. @mysten/bcs, @mysten/utils
8
- Copyright (c) Mysten Labs, Inc.
9
- Source: https://github.com/MystenLabs/sui
10
-
11
- 2. @protobuf-ts/grpcweb-transport, @protobuf-ts/runtime, @protobuf-ts/runtime-rpc
12
- Copyright (c) Timo Stamm
13
- Source: https://github.com/timostamm/protobuf-ts
14
-
15
- ================================================================================
16
-
17
- Apache License
18
- Version 2.0, January 2004
19
- http://www.apache.org/licenses/
20
-
21
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
22
-
23
- 1. Definitions.
24
-
25
- "License" shall mean the terms and conditions for use, reproduction,
26
- and distribution as defined by Sections 1 through 9 of this document.
27
-
28
- "Licensor" shall mean the copyright owner or entity authorized by
29
- the copyright owner that is granting the License.
30
-
31
- "Legal Entity" shall mean the union of the acting entity and all
32
- other entities that control, are controlled by, or are under common
33
- control with that entity. For the purposes of this definition,
34
- "control" means (i) the power, direct or indirect, to cause the
35
- direction or management of such entity, whether by contract or
36
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
37
- outstanding shares, or (iii) beneficial ownership of such entity.
38
-
39
- "You" (or "Your") shall mean an individual or Legal Entity
40
- exercising permissions granted by this License.
41
-
42
- "Source" form shall mean the preferred form for making modifications,
43
- including but not limited to software source code, documentation
44
- source, and configuration files.
45
-
46
- "Object" form shall mean any form resulting from mechanical
47
- transformation or translation of a Source form, including but
48
- not limited to compiled object code, generated documentation,
49
- and conversions to other media types.
50
-
51
- "Work" shall mean the work of authorship, whether in Source or
52
- Object form, made available under the License, as indicated by a
53
- copyright notice that is included in or attached to the work
54
- (an example is provided in the Appendix below).
55
-
56
- "Derivative Works" shall mean any work, whether in Source or Object
57
- form, that is based on (or derived from) the Work and for which the
58
- editorial revisions, annotations, elaborations, or other modifications
59
- represent, as a whole, an original work of authorship. For the purposes
60
- of this License, Derivative Works shall not include works that remain
61
- separable from, or merely link (or bind by name) to the interfaces of,
62
- the Work and Derivative Works thereof.
63
-
64
- "Contribution" shall mean any work of authorship, including
65
- the original version of the Work and any modifications or additions
66
- to that Work or Derivative Works thereof, that is intentionally
67
- submitted to the Licensor for inclusion in the Work by the copyright owner
68
- or by an individual or Legal Entity authorized to submit on behalf of
69
- the copyright owner. For the purposes of this definition, "submitted"
70
- means any form of electronic, verbal, or written communication sent
71
- to the Licensor or its representatives, including but not limited to
72
- communication on electronic mailing lists, source code control systems,
73
- and issue tracking systems that are managed by, or on behalf of, the
74
- Licensor for the purpose of discussing and improving the Work, but
75
- excluding communication that is conspicuously marked or otherwise
76
- designated in writing by the copyright owner as "Not a Contribution."
77
-
78
- "Contributor" shall mean Licensor and any individual or Legal Entity
79
- on behalf of whom a Contribution has been received by Licensor and
80
- subsequently incorporated within the Work.
81
-
82
- 2. Grant of Copyright License. Subject to the terms and conditions of
83
- this License, each Contributor hereby grants to You a perpetual,
84
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
85
- copyright license to reproduce, prepare Derivative Works of,
86
- publicly display, publicly perform, sublicense, and distribute the
87
- Work and such Derivative Works in Source or Object form.
88
-
89
- 3. Grant of Patent License. Subject to the terms and conditions of
90
- this License, each Contributor hereby grants to You a perpetual,
91
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
92
- (except as stated in this section) patent license to make, have made,
93
- use, offer to sell, sell, import, and otherwise transfer the Work,
94
- where such license applies only to those patent claims licensable
95
- by such Contributor that are necessarily infringed by their
96
- Contribution(s) alone or by combination of their Contribution(s)
97
- with the Work to which such Contribution(s) was submitted. If You
98
- institute patent litigation against any entity (including a
99
- cross-claim or counterclaim in a lawsuit) alleging that the Work
100
- or a Contribution incorporated within the Work constitutes direct
101
- or contributory patent infringement, then any patent licenses
102
- granted to You under this License for that Work shall terminate
103
- as of the date such litigation is filed.
104
-
105
- 4. Redistribution. You may reproduce and distribute copies of the
106
- Work or Derivative Works thereof in any medium, with or without
107
- modifications, and in Source or Object form, provided that You
108
- meet the following conditions:
109
-
110
- (a) You must give any other recipients of the Work or
111
- Derivative Works a copy of this License; and
112
-
113
- (b) You must cause any modified files to carry prominent notices
114
- stating that You changed the files; and
115
-
116
- (c) You must retain, in the Source form of any Derivative Works
117
- that You distribute, all copyright, patent, trademark, and
118
- attribution notices from the Source form of the Work,
119
- excluding those notices that do not pertain to any part of
120
- the Derivative Works; and
121
-
122
- (d) If the Work includes a "NOTICE" text file as part of its
123
- distribution, then any Derivative Works that You distribute must
124
- include a readable copy of the attribution notices contained
125
- within such NOTICE file, excluding those notices that do not
126
- pertain to any part of the Derivative Works, in at least one
127
- of the following places: within a NOTICE text file distributed
128
- as part of the Derivative Works; within the Source form or
129
- documentation, if provided along with the Derivative Works; or,
130
- within a display generated by the Derivative Works, if and
131
- wherever such third-party notices normally appear. The contents
132
- of the NOTICE file are for informational purposes only and
133
- do not modify the License. You may add Your own attribution
134
- notices within Derivative Works that You distribute, alongside
135
- or as an addendum to the NOTICE text from the Work, provided
136
- that such additional attribution notices cannot be construed
137
- as modifying the License.
138
-
139
- You may add Your own copyright statement to Your modifications and
140
- may provide additional or different license terms and conditions
141
- for use, reproduction, or distribution of Your modifications, or
142
- for any such Derivative Works as a whole, provided Your use,
143
- reproduction, and distribution of the Work otherwise complies with
144
- the conditions stated in this License.
145
-
146
- 5. Submission of Contributions. Unless You explicitly state otherwise,
147
- any Contribution intentionally submitted for inclusion in the Work
148
- by You to the Licensor shall be under the terms and conditions of
149
- this License, without any additional terms or conditions.
150
- Notwithstanding the above, nothing herein shall supersede or modify
151
- the terms of any separate license agreement you may have executed
152
- with Licensor regarding such Contributions.
153
-
154
- 6. Trademarks. This License does not grant permission to use the trade
155
- names, trademarks, service marks, or product names of the Licensor,
156
- except as required for reasonable and customary use in describing the
157
- origin of the Work and reproducing the content of the NOTICE file.
158
-
159
- 7. Disclaimer of Warranty. Unless required by applicable law or
160
- agreed to in writing, Licensor provides the Work (and each
161
- Contributor provides its Contributions) on an "AS IS" BASIS,
162
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
163
- implied, including, without limitation, any warranties or conditions
164
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
165
- PARTICULAR PURPOSE. You are solely responsible for determining the
166
- appropriateness of using or redistributing the Work and assume any
167
- risks associated with Your exercise of permissions under this License.
168
-
169
- 8. Limitation of Liability. In no event and under no legal theory,
170
- whether in tort (including negligence), contract, or otherwise,
171
- unless required by applicable law (such as deliberate and grossly
172
- negligent acts) or agreed to in writing, shall any Contributor be
173
- liable to You for damages, including any direct, indirect, special,
174
- incidental, or consequential damages of any character arising as a
175
- result of this License or out of the use or inability to use the
176
- Work (including but not limited to damages for loss of goodwill,
177
- work stoppage, computer failure or malfunction, or any and all
178
- other commercial damages or losses), even if such Contributor
179
- has been advised of the possibility of such damages.
180
-
181
- 9. Accepting Warranty or Additional Liability. While redistributing
182
- the Work or Derivative Works thereof, You may choose to offer,
183
- and charge a fee for, acceptance of support, warranty, indemnity,
184
- or other liability obligations and/or rights consistent with this
185
- License. However, in accepting such obligations, You may act only
186
- on Your own behalf and on Your sole responsibility, not on behalf
187
- of any other Contributor, and only if You agree to indemnify,
188
- defend, and hold each Contributor harmless for any liability
189
- incurred by, or claims asserted against, such Contributor by reason
190
- of your accepting any such warranty or additional liability.
191
-
192
- END OF TERMS AND CONDITIONS
193
-
194
- ================================================================================
195
- END OF APACHE LICENSE 2.0
196
- ================================================================================
@@ -1,58 +0,0 @@
1
- ================================================================================
2
- MIT LICENSE
3
- ================================================================================
4
-
5
- The following software components are licensed under the MIT License:
6
-
7
- 1. @noble/curves (https://github.com/paulmillr/noble-curves)
8
- Copyright (c) 2022 Paul Miller (https://paulmillr.com)
9
-
10
- 2. @noble/hashes (https://github.com/paulmillr/noble-hashes)
11
- Copyright (c) 2022 Paul Miller (https://paulmillr.com)
12
-
13
- 3. @noble/post-quantum (https://github.com/paulmillr/noble-post-quantum)
14
- Copyright (c) 2023 Paul Miller (https://paulmillr.com)
15
-
16
- 4. @scure/base (https://github.com/paulmillr/scure-base)
17
- Copyright (c) 2022 Paul Miller (https://paulmillr.com)
18
-
19
- 5. @scure/bip32 (https://github.com/paulmillr/scure-bip32)
20
- Copyright (c) 2022 Paul Miller (https://paulmillr.com)
21
-
22
- 6. @scure/bip39 (https://github.com/paulmillr/scure-bip39)
23
- Copyright (c) 2022 Paul Miller (https://paulmillr.com)
24
-
25
- 7. libsql (https://github.com/tursodatabase/libsql)
26
- Copyright (c) Turso and contributors
27
-
28
- 8. lodash (https://github.com/lodash/lodash)
29
- Copyright (c) OpenJS Foundation and other contributors
30
-
31
- 9. valibot (https://github.com/fabian-hiller/valibot)
32
- Copyright (c) 2023 Fabian Hiller
33
-
34
- ================================================================================
35
-
36
- MIT License
37
-
38
- Permission is hereby granted, free of charge, to any person obtaining a copy
39
- of this software and associated documentation files (the "Software"), to deal
40
- in the Software without restriction, including without limitation the rights
41
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
42
- copies of the Software, and to permit persons to whom the Software is
43
- furnished to do so, subject to the following conditions:
44
-
45
- The above copyright notice and this permission notice shall be included in all
46
- copies or substantial portions of the Software.
47
-
48
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
49
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
50
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
51
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
52
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
53
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
54
- SOFTWARE.
55
-
56
- ================================================================================
57
- END OF MIT LICENSE
58
- ================================================================================
@@ -1,127 +0,0 @@
1
- import { BcsReader } from "./reader.js";
2
- import type { BcsWriterOptions } from "./writer.js";
3
- import { BcsWriter } from "./writer.js";
4
- import type { EnumInputShape, EnumOutputShape, JoinString } from "./types.js";
5
- export interface BcsTypeOptions<T, Input = T, Name extends string = string> {
6
- name?: Name;
7
- validate?: (value: Input) => void;
8
- }
9
- export declare class BcsType<T, Input = T, const Name extends string = string> {
10
- #private;
11
- $inferType: T;
12
- $inferInput: Input;
13
- name: Name;
14
- read: (reader: BcsReader) => T;
15
- serializedSize: (value: Input, options?: BcsWriterOptions) => number | null;
16
- validate: (value: Input) => void;
17
- constructor(options: {
18
- name: Name;
19
- read: (reader: BcsReader) => T;
20
- write: (value: Input, writer: BcsWriter) => void;
21
- serialize?: (value: Input, options?: BcsWriterOptions) => Uint8Array<ArrayBuffer>;
22
- serializedSize?: (value: Input) => number | null;
23
- validate?: (value: Input) => void;
24
- } & BcsTypeOptions<T, Input, Name>);
25
- write(value: Input, writer: BcsWriter): void;
26
- serialize(value: Input, options?: BcsWriterOptions): SerializedBcs<T, Input>;
27
- parse(bytes: Uint8Array): T;
28
- fromHex(hex: string): T;
29
- fromBase58(b64: string): T;
30
- fromBase64(b64: string): T;
31
- transform<T2 = T, Input2 = Input, NewName extends string = Name>({ name, input, output, validate, }: {
32
- input?: (val: Input2) => Input;
33
- output?: (value: T) => T2;
34
- } & BcsTypeOptions<T2, Input2, NewName>): BcsType<T2, Input2, NewName>;
35
- }
36
- declare const SERIALIZED_BCS_BRAND: never;
37
- export declare function isSerializedBcs(obj: unknown): obj is SerializedBcs<unknown>;
38
- export declare class SerializedBcs<T, Input = T> {
39
- #private;
40
- [SERIALIZED_BCS_BRAND]: boolean;
41
- constructor(schema: BcsType<T, Input>, bytes: Uint8Array<ArrayBuffer>);
42
- toBytes(): Uint8Array<ArrayBuffer>;
43
- toHex(): string;
44
- toBase64(): string;
45
- toBase58(): string;
46
- parse(): T;
47
- }
48
- export declare function fixedSizeBcsType<T, Input = T, const Name extends string = string>({ size, ...options }: {
49
- name: Name;
50
- size: number;
51
- read: (reader: BcsReader) => T;
52
- write: (value: Input, writer: BcsWriter) => void;
53
- } & BcsTypeOptions<T, Input, Name>): BcsType<T, Input, Name>;
54
- export declare function uIntBcsType<const Name extends string = string>({ readMethod, writeMethod, ...options }: {
55
- name: Name;
56
- size: number;
57
- readMethod: `read${8 | 16 | 32}`;
58
- writeMethod: `write${8 | 16 | 32}`;
59
- maxValue: number;
60
- } & BcsTypeOptions<number, number, Name>): BcsType<number, number, Name>;
61
- export declare function bigUIntBcsType<const Name extends string = string>({ readMethod, writeMethod, ...options }: {
62
- name: Name;
63
- size: number;
64
- readMethod: `read${64 | 128 | 256}`;
65
- writeMethod: `write${64 | 128 | 256}`;
66
- maxValue: bigint;
67
- } & BcsTypeOptions<string, string | number | bigint>): BcsType<string, string | number | bigint, Name>;
68
- export declare function dynamicSizeBcsType<T, Input = T, const Name extends string = string>({ serialize, ...options }: {
69
- name: Name;
70
- read: (reader: BcsReader) => T;
71
- serialize: (value: Input, options?: BcsWriterOptions) => Uint8Array<ArrayBuffer>;
72
- } & BcsTypeOptions<T, Input>): BcsType<T, Input, string>;
73
- export declare function stringLikeBcsType<const Name extends string = string>({ toBytes, fromBytes, ...options }: {
74
- name: Name;
75
- toBytes: (value: string) => Uint8Array;
76
- fromBytes: (bytes: Uint8Array) => string;
77
- serializedSize?: (value: string) => number | null;
78
- } & BcsTypeOptions<string, string, Name>): BcsType<string, string, Name>;
79
- export declare function lazyBcsType<T, Input>(cb: () => BcsType<T, Input>): BcsType<T, Input, string>;
80
- export interface BcsStructOptions<T extends Record<string, BcsType<any>>, Name extends string = string> extends Omit<BcsTypeOptions<{
81
- [K in keyof T]: T[K] extends BcsType<infer U, any> ? U : never;
82
- }, {
83
- [K in keyof T]: T[K] extends BcsType<any, infer U> ? U : never;
84
- }, Name>, "name"> {
85
- name: Name;
86
- fields: T;
87
- }
88
- export declare class BcsStruct<T extends Record<string, BcsType<any>>, const Name extends string = string> extends BcsType<{
89
- [K in keyof T]: T[K] extends BcsType<infer U, any> ? U : never;
90
- }, {
91
- [K in keyof T]: T[K] extends BcsType<any, infer U> ? U : never;
92
- }, Name> {
93
- constructor({ name, fields, ...options }: BcsStructOptions<T, Name>);
94
- }
95
- export interface BcsEnumOptions<T extends Record<string, BcsType<any> | null>, Name extends string = string> extends Omit<BcsTypeOptions<EnumOutputShape<{
96
- [K in keyof T]: T[K] extends BcsType<infer U, any, any> ? U : true;
97
- }>, EnumInputShape<{
98
- [K in keyof T]: T[K] extends BcsType<any, infer U, any> ? U : boolean | object | null;
99
- }>, Name>, "name"> {
100
- name: Name;
101
- fields: T;
102
- }
103
- export declare class BcsEnum<T extends Record<string, BcsType<any> | null>, const Name extends string = string> extends BcsType<EnumOutputShape<{
104
- [K in keyof T]: T[K] extends BcsType<infer U, any> ? U : true;
105
- }>, EnumInputShape<{
106
- [K in keyof T]: T[K] extends BcsType<any, infer U, any> ? U : boolean | object | null;
107
- }>, Name> {
108
- constructor({ fields, ...options }: BcsEnumOptions<T, Name>);
109
- }
110
- export interface BcsTupleOptions<T extends readonly BcsType<any>[], Name extends string> extends Omit<BcsTypeOptions<{
111
- -readonly [K in keyof T]: T[K] extends BcsType<infer T, any> ? T : never;
112
- }, {
113
- [K in keyof T]: T[K] extends BcsType<any, infer T> ? T : never;
114
- }, Name>, "name"> {
115
- name?: Name;
116
- fields: T;
117
- }
118
- export declare class BcsTuple<const T extends readonly BcsType<any>[], const Name extends string = `(${JoinString<{
119
- [K in keyof T]: T[K] extends BcsType<any, any, infer T> ? T : never;
120
- }, ", ">})`> extends BcsType<{
121
- -readonly [K in keyof T]: T[K] extends BcsType<infer T, any> ? T : never;
122
- }, {
123
- [K in keyof T]: T[K] extends BcsType<any, infer T> ? T : never;
124
- }, Name> {
125
- constructor({ fields, name, ...options }: BcsTupleOptions<T, Name>);
126
- }
127
- export {};
@@ -1 +0,0 @@
1
- import{fromBase58,fromBase64,toBase58,toBase64,fromHex,toHex}from'../utils/index.js';import{BcsReader}from'./reader.js';import{ulebEncode}from'./uleb.js';import{BcsWriter}from'./writer.js';export class BcsType{['$inferType'];['$inferInput'];['name'];['read'];['serializedSize'];['validate'];#write;#serialize;constructor(a){this['name']=a['name'],this['read']=a['read'],this['serializedSize']=a['serializedSize']??(()=>null),this.#write=a['write'],this.#serialize=a['serialize']??((b,c)=>{const d=new BcsWriter({'initialSize':this['serializedSize'](b)??undefined,...c});return this.#write(b,d),d['toBytes']();}),this['validate']=a['validate']??(()=>{});}['write'](a,b){this['validate'](a),this.#write(a,b);}['serialize'](a,b){return this['validate'](a),new SerializedBcs(this,this.#serialize(a,b));}['parse'](a){const b=new BcsReader(a);return this['read'](b);}['fromHex'](a){return this['parse'](fromHex(a));}['fromBase58'](a){return this['parse'](fromBase58(a));}['fromBase64'](a){return this['parse'](fromBase64(a));}['transform']({name:a,input:b,output:c,validate:d}){return new BcsType({'name':a??this['name'],'read':e=>c?c(this['read'](e)):this['read'](e),'write':(e,f)=>this.#write(b?b(e):e,f),'serializedSize':e=>this['serializedSize'](b?b(e):e),'serialize':(e,f)=>this.#serialize(b?b(e):e,f),'validate':e=>{d?.(e),this['validate'](b?b(e):e);}});}}const SERIALIZED_BCS_BRAND=Symbol['for']('@mysten/serialized-bcs');export function isSerializedBcs(a){return!!a&&typeof a==='object'&&a[SERIALIZED_BCS_BRAND]===!![];}export class SerializedBcs{#schema;#bytes;get[SERIALIZED_BCS_BRAND](){return!![];}constructor(a,b){this.#schema=a,this.#bytes=b;}['toBytes'](){return this.#bytes;}['toHex'](){return toHex(this.#bytes);}['toBase64'](){return toBase64(this.#bytes);}['toBase58'](){return toBase58(this.#bytes);}['parse'](){return this.#schema['parse'](this.#bytes);}}export function fixedSizeBcsType({size:a,...b}){return new BcsType({...b,'serializedSize':()=>a});}export function uIntBcsType({readMethod:a,writeMethod:b,...c}){return fixedSizeBcsType({...c,'read':d=>d[a](),'write':(d,e)=>e[b](d),'validate':d=>{if(d<0x0||d>c['maxValue'])throw new TypeError('Invalid\x20'+c['name']+'\x20value:\x20'+d+'.\x20Expected\x20value\x20in\x20range\x200-'+c['maxValue']);c['validate']?.(d);}});}export function bigUIntBcsType({readMethod:a,writeMethod:b,...c}){return fixedSizeBcsType({...c,'read':d=>d[a](),'write':(d,e)=>e[b](BigInt(d)),'validate':d=>{const e=BigInt(d);if(e<0x0||e>c['maxValue'])throw new TypeError('Invalid\x20'+c['name']+'\x20value:\x20'+e+'.\x20Expected\x20value\x20in\x20range\x200-'+c['maxValue']);c['validate']?.(e);}});}export function dynamicSizeBcsType({serialize:a,...b}){const c=new BcsType({...b,'serialize':a,'write':(d,e)=>{for(const f of c['serialize'](d)['toBytes']()){e['write8'](f);}}});return c;}export function stringLikeBcsType({toBytes:a,fromBytes:b,...c}){return new BcsType({...c,'read':d=>{const e=d['readULEB'](),f=d['readBytes'](e);return b(f);},'write':(d,e)=>{const f=a(d);e['writeULEB'](f['length']);for(let g=0x0;g<f['length'];g++){e['write8'](f[g]);}},'serialize':d=>{const e=a(d),f=ulebEncode(e['length']),g=new Uint8Array(f['length']+e['length']);return g['set'](f,0x0),g['set'](e,f['length']),g;},'validate':d=>{if(typeof d!=='string')throw new TypeError('Invalid\x20'+c['name']+'\x20value:\x20'+d+'.\x20Expected\x20string');c['validate']?.(d);}});}export function lazyBcsType(a){let b=null;function c(){return!b&&(b=a()),b;}return new BcsType({'name':'lazy','read':d=>c()['read'](d),'serializedSize':d=>c()['serializedSize'](d),'write':(d,e)=>c()['write'](d,e),'serialize':(d,e)=>c()['serialize'](d,e)['toBytes']()});}export class BcsStruct extends BcsType{constructor({name:a,fields:b,...c}){const d=Object['entries'](b);super({'name':a,'serializedSize':e=>{let f=0x0;for(const [g,h]of d){const i=h['serializedSize'](e[g]);if(i==null)return null;f+=i;}return f;},'read':e=>{const f={};for(const [g,h]of d){f[g]=h['read'](e);}return f;},'write':(e,f)=>{for(const [g,h]of d){h['write'](e[g],f);}},...c,'validate':e=>{c?.['validate']?.(e);if(typeof e!=='object'||e==null)throw new TypeError('Expected\x20object,\x20found\x20'+typeof e);}});}}export class BcsEnum extends BcsType{constructor({fields:a,...b}){const c=Object['entries'](a);super({'read':d=>{const e=d['readULEB'](),f=c[e];if(!f)throw new TypeError('Unknown\x20value\x20'+e+'\x20for\x20enum\x20'+b['name']);const [g,h]=f;return{[g]:h?.['read'](d)??!![],'$kind':g};},'write':(d,e)=>{const [f,g]=Object['entries'](d)['filter'](([h])=>Object['hasOwn'](a,h))[0x0];for(let h=0x0;h<c['length'];h++){const [j,k]=c[h];if(j===f){e['writeULEB'](h),k?.['write'](g,e);return;}}},...b,'validate':d=>{b?.['validate']?.(d);if(typeof d!=='object'||d==null)throw new TypeError('Expected\x20object,\x20found\x20'+typeof d);const e=Object['keys'](d)['filter'](g=>d[g]!==undefined&&Object['hasOwn'](a,g));if(e['length']!==0x1)throw new TypeError('Expected\x20object\x20with\x20one\x20key,\x20but\x20found\x20'+e['length']+'\x20for\x20type\x20'+b['name']+'}');const [f]=e;if(!Object['hasOwn'](a,f))throw new TypeError('Invalid\x20enum\x20variant\x20'+f);}});}}export class BcsTuple extends BcsType{constructor({fields:a,name:b,...c}){super({'name':b??'('+a['map'](d=>d['name'])['join'](',\x20')+')','serializedSize':d=>{let e=0x0;for(let f=0x0;f<a['length'];f++){const g=a[f]['serializedSize'](d[f]);if(g==null)return null;e+=g;}return e;},'read':d=>{const e=[];for(const f of a){e['push'](f['read'](d));}return e;},'write':(d,e)=>{for(let f=0x0;f<a['length'];f++){a[f]['write'](d[f],e);}},...c,'validate':d=>{c?.['validate']?.(d);if(!Array['isArray'](d))throw new TypeError('Expected\x20array,\x20found\x20'+typeof d);if(d['length']!==a['length'])throw new TypeError('Expected\x20array\x20of\x20length\x20'+a['length']+',\x20found\x20'+d['length']);}});}}
@@ -1,49 +0,0 @@
1
- import type { BcsTypeOptions } from "./bcs-type.js";
2
- import { BcsEnum, BcsStruct, BcsTuple, BcsType } from "./bcs-type.js";
3
- import type { EnumInputShape, EnumOutputShape, InferBcsInput, InferBcsType, JoinString } from "./types.js";
4
- declare function fixedArray<T extends BcsType<any>, Name extends string = string>(size: number, type: T, options?: BcsTypeOptions<InferBcsType<T>[], Iterable<InferBcsInput<T>> & {
5
- length: number;
6
- }, Name>): BcsType<InferBcsType<T>[], Iterable<InferBcsInput<T>> & {
7
- length: number;
8
- }, Name>;
9
- declare function fixedArray<T, Input, Name extends string = string>(size: number, type: BcsType<T, Input>, options?: BcsTypeOptions<T[], Iterable<Input> & {
10
- length: number;
11
- }, Name>): BcsType<T[], Iterable<Input> & {
12
- length: number;
13
- }, Name>;
14
- declare function option<T extends BcsType<any>>(type: T): BcsType<InferBcsType<T> | null, InferBcsInput<T> | null | undefined, `Option<${T["name"]}>`>;
15
- declare function option<T, Input, Name extends string = string>(type: BcsType<T, Input, Name>): BcsType<T | null, Input | null | undefined>;
16
- declare function vector<T extends BcsType<any>, Name extends string = `vector<${T["name"]}>`>(type: T, options?: BcsTypeOptions<InferBcsType<T>[], Iterable<InferBcsInput<T>> & {
17
- length: number;
18
- }, Name>): BcsType<InferBcsType<T>[], Iterable<InferBcsInput<T>> & {
19
- length: number;
20
- }, Name>;
21
- declare function vector<T, Input, Name extends string = string>(type: BcsType<T, Input, Name>, options?: BcsTypeOptions<T[], Iterable<Input> & {
22
- length: number;
23
- }, `vector<${Name}>`>): BcsType<T[], Iterable<Input> & {
24
- length: number;
25
- }, `vector<${Name}>`>;
26
- declare function map<K extends BcsType<any>, V extends BcsType<any>>(keyType: K, valueType: V): BcsType<Map<InferBcsType<K>, InferBcsType<V>>, Map<InferBcsInput<K>, InferBcsInput<V>>, `Map<${K["name"]}, ${V["name"]}>`>;
27
- declare function map<K, V, InputK = K, InputV = V>(keyType: BcsType<K, InputK>, valueType: BcsType<V, InputV>): BcsType<Map<K, V>, Map<InputK, InputV>, `Map<${string}, ${string}>`>;
28
- export declare const bcs: {
29
- u8(options?: BcsTypeOptions<number>): BcsType<number, number, "u8">;
30
- u16(options?: BcsTypeOptions<number>): BcsType<number, number, "u16">;
31
- u32(options?: BcsTypeOptions<number>): BcsType<number, number, "u32">;
32
- u64(options?: BcsTypeOptions<string, number | bigint | string>): BcsType<string, string | number | bigint, "u64">;
33
- u128(options?: BcsTypeOptions<string, number | bigint | string>): BcsType<string, string | number | bigint, "u128">;
34
- u256(options?: BcsTypeOptions<string, number | bigint | string>): BcsType<string, string | number | bigint, "u256">;
35
- bool(options?: BcsTypeOptions<boolean>): BcsType<boolean, boolean, "bool">;
36
- uleb128(options?: BcsTypeOptions<number>): BcsType<number, number, string>;
37
- bytes<T extends number>(size: T, options?: BcsTypeOptions<Uint8Array, Iterable<number>>): BcsType<Uint8Array<ArrayBufferLike>, Iterable<number>, `bytes[${T}]`>;
38
- byteVector(options?: BcsTypeOptions<Uint8Array, Iterable<number>>): BcsType<Uint8Array<ArrayBufferLike>, Iterable<number>, "vector<u8>">;
39
- string(options?: BcsTypeOptions<string>): BcsType<string, string, "string">;
40
- fixedArray: typeof fixedArray;
41
- option: typeof option;
42
- vector: typeof vector;
43
- tuple<const T extends readonly BcsType<any, any>[], const Name extends string = `(${JoinString<{ [K in keyof T]: T[K] extends BcsType<any, any, infer T_1 extends string> ? T_1 : never; }, ", ">})`>(fields: T, options?: BcsTypeOptions<{ -readonly [K_1 in keyof T]: T[K_1] extends BcsType<infer T_1, any> ? T_1 : never; }, { [K_1 in keyof T]: T[K_1] extends BcsType<any, infer T_1> ? T_1 : never; }, Name>): BcsTuple<T, Name>;
44
- struct<T extends Record<string, BcsType<any>>, const Name extends string = string>(name: Name, fields: T, options?: Omit<BcsTypeOptions<{ [K in keyof T]: T[K] extends BcsType<infer U, any> ? U : never; }, { [K in keyof T]: T[K] extends BcsType<any, infer U> ? U : never; }>, "name">): BcsStruct<T, string>;
45
- enum<T extends Record<string, BcsType<any> | null>, const Name extends string = string>(name: Name, fields: T, options?: Omit<BcsTypeOptions<EnumOutputShape<{ [K in keyof T]: T[K] extends BcsType<infer U, any, any> ? U : true; }>, EnumInputShape<{ [K in keyof T]: T[K] extends BcsType<any, infer U, any> ? U : boolean | object | null; }>, Name>, "name">): BcsEnum<T, Name>;
46
- map: typeof map;
47
- lazy<T extends BcsType<any>>(cb: () => T): T;
48
- };
49
- export {};
@@ -1 +0,0 @@
1
- import{BcsEnum,BcsStruct,BcsTuple,BcsType,bigUIntBcsType,dynamicSizeBcsType,fixedSizeBcsType,lazyBcsType,stringLikeBcsType,uIntBcsType}from'./bcs-type.js';import{ulebEncode}from'./uleb.js';function fixedArray(a,b,c){return new BcsType({'read':d=>{const e=new Array(a);for(let f=0x0;f<a;f++){e[f]=b['read'](d);}return e;},'write':(d,e)=>{for(const f of d){b['write'](f,e);}},...c,'name':c?.['name']??b['name']+'['+a+']','validate':d=>{c?.['validate']?.(d);if(!d||typeof d!=='object'||!('length'in d))throw new TypeError('Expected\x20array,\x20found\x20'+typeof d);if(d['length']!==a)throw new TypeError('Expected\x20array\x20of\x20length\x20'+a+',\x20found\x20'+d['length']);}});}function option(a){return bcs['enum']('Option<'+a['name']+'>',{'None':null,'Some':a})['transform']({'input':b=>{if(b==null)return{'None':!![]};return{'Some':b};},'output':b=>{if(b['$kind']==='Some')return b['Some'];return null;}});}function vector(a,b){return new BcsType({'read':c=>{const d=c['readULEB'](),e=new Array(d);for(let f=0x0;f<d;f++){e[f]=a['read'](c);}return e;},'write':(c,d)=>{d['writeULEB'](c['length']);for(const e of c){a['write'](e,d);}},...b,'name':b?.['name']??'vector<'+a['name']+'>','validate':c=>{b?.['validate']?.(c);if(!c||typeof c!=='object'||!('length'in c))throw new TypeError('Expected\x20array,\x20found\x20'+typeof c);}});}function map(a,b){return bcs['vector'](bcs['tuple']([a,b]))['transform']({'name':'Map<'+a['name']+',\x20'+b['name']+'>','input':c=>{return[...c['entries']()];},'output':c=>{const d=new Map();for(const [e,f]of c){d['set'](e,f);}return d;}});}export const bcs={'u8'(a){return uIntBcsType({'readMethod':'read8','writeMethod':'write8','size':0x1,'maxValue':0x2**0x8-0x1,...a,'name':a?.['name']??'u8'});},'u16'(a){return uIntBcsType({'readMethod':'read16','writeMethod':'write16','size':0x2,'maxValue':0x2**0x10-0x1,...a,'name':a?.['name']??'u16'});},'u32'(a){return uIntBcsType({'readMethod':'read32','writeMethod':'write32','size':0x4,'maxValue':0x2**0x20-0x1,...a,'name':a?.['name']??'u32'});},'u64'(a){return bigUIntBcsType({'readMethod':'read64','writeMethod':'write64','size':0x8,'maxValue':0x2n**0x40n-0x1n,...a,'name':a?.['name']??'u64'});},'u128'(a){return bigUIntBcsType({'readMethod':'read128','writeMethod':'write128','size':0x10,'maxValue':0x2n**0x80n-0x1n,...a,'name':a?.['name']??'u128'});},'u256'(a){return bigUIntBcsType({'readMethod':'read256','writeMethod':'write256','size':0x20,'maxValue':0x2n**0x100n-0x1n,...a,'name':a?.['name']??'u256'});},'bool'(a){return fixedSizeBcsType({'size':0x1,'read':b=>b['read8']()===0x1,'write':(b,c)=>c['write8'](b?0x1:0x0),...a,'name':a?.['name']??'bool','validate':b=>{a?.['validate']?.(b);if(typeof b!=='boolean')throw new TypeError('Expected\x20boolean,\x20found\x20'+typeof b);}});},'uleb128'(a){return dynamicSizeBcsType({'read':b=>b['readULEB'](),'serialize':b=>{return Uint8Array['from'](ulebEncode(b));},...a,'name':a?.['name']??'uleb128'});},'bytes'(a,b){return fixedSizeBcsType({'size':a,'read':c=>c['readBytes'](a),'write':(c,d)=>{d['writeBytes'](new Uint8Array(c));},...b,'name':b?.['name']??'bytes['+a+']','validate':c=>{b?.['validate']?.(c);if(!c||typeof c!=='object'||!('length'in c))throw new TypeError('Expected\x20array,\x20found\x20'+typeof c);if(c['length']!==a)throw new TypeError('Expected\x20array\x20of\x20length\x20'+a+',\x20found\x20'+c['length']);}});},'byteVector'(a){return new BcsType({'read':b=>{const c=b['readULEB']();return b['readBytes'](c);},'write':(b,c)=>{const d=new Uint8Array(b);c['writeULEB'](d['length']),c['writeBytes'](d);},...a,'name':a?.['name']??'vector<u8>','serializedSize':b=>{const c='length'in b?b['length']:null;return c==null?null:ulebEncode(c)['length']+c;},'validate':b=>{a?.['validate']?.(b);if(!b||typeof b!=='object'||!('length'in b))throw new TypeError('Expected\x20array,\x20found\x20'+typeof b);}});},'string'(a){return stringLikeBcsType({'toBytes':b=>new TextEncoder()['encode'](b),'fromBytes':b=>new TextDecoder()['decode'](b),...a,'name':a?.['name']??'string'});},'fixedArray':fixedArray,'option':option,'vector':vector,'tuple'(a,b){return new BcsTuple({'fields':a,...b});},'struct'(a,b,c){return new BcsStruct({'name':a,'fields':b,...c});},'enum'(a,b,c){return new BcsEnum({'name':a,'fields':b,...c});},'map':map,'lazy'(a){return lazyBcsType(a);}};
@@ -1,16 +0,0 @@
1
- import { toBase58, fromBase58, toBase64, fromBase64, toHex, fromHex } from "../utils/index.js";
2
- import type { BcsTypeOptions } from "./bcs-type.js";
3
- import { BcsType, BcsStruct, BcsEnum, BcsTuple, isSerializedBcs, SerializedBcs } from "./bcs-type.js";
4
- import { bcs } from "./bcs.js";
5
- import { BcsReader } from "./reader.js";
6
- import type { EnumInputShape, EnumOutputShape, EnumOutputShapeWithKeys, InferBcsInput, InferBcsType } from "./types.js";
7
- import { decodeStr, encodeStr, splitGenericParameters } from "./utils.js";
8
- import type { BcsWriterOptions } from "./writer.js";
9
- import { BcsWriter } from "./writer.js";
10
- export { bcs, BcsType, BcsStruct, BcsEnum, BcsTuple, type BcsTypeOptions, SerializedBcs, isSerializedBcs, toBase58, fromBase58, toBase64, fromBase64, toHex, fromHex, encodeStr, decodeStr, splitGenericParameters, BcsReader, BcsWriter, type BcsWriterOptions, type InferBcsInput, type InferBcsType, type EnumOutputShape, type EnumInputShape, type EnumOutputShapeWithKeys, };
11
- export declare const toB58: (buffer: Uint8Array) => string;
12
- export declare const fromB58: (str: string) => Uint8Array<ArrayBuffer>;
13
- export declare const toB64: typeof toBase64;
14
- export declare const fromB64: typeof fromBase64;
15
- export declare const toHEX: typeof toHex;
16
- export declare const fromHEX: typeof fromHex;
@@ -1 +0,0 @@
1
- import{toBase58,fromBase58,toBase64,fromBase64,toHex,fromHex}from'../utils/index.js';import{BcsType,BcsStruct,BcsEnum,BcsTuple,isSerializedBcs,SerializedBcs}from'./bcs-type.js';import{bcs}from'./bcs.js';import{BcsReader}from'./reader.js';import{decodeStr,encodeStr,splitGenericParameters}from'./utils.js';import{BcsWriter}from'./writer.js';export{bcs,BcsType,BcsStruct,BcsEnum,BcsTuple,SerializedBcs,isSerializedBcs,toBase58,fromBase58,toBase64,fromBase64,toHex,fromHex,encodeStr,decodeStr,splitGenericParameters,BcsReader,BcsWriter};export const toB58=toBase58;export const fromB58=fromBase58;export const toB64=toBase64;export const fromB64=fromBase64;export const toHEX=toHex;export const fromHEX=fromHex;
@@ -1,15 +0,0 @@
1
- export declare class BcsReader {
2
- private dataView;
3
- private bytePosition;
4
- constructor(data: Uint8Array);
5
- shift(bytes: number): this;
6
- read8(): number;
7
- read16(): number;
8
- read32(): number;
9
- read64(): string;
10
- read128(): string;
11
- read256(): string;
12
- readBytes(num: number): Uint8Array;
13
- readULEB(): number;
14
- readVec(cb: (reader: BcsReader, i: number, length: number) => any): any[];
15
- }
@@ -1 +0,0 @@
1
- import{ulebDecode}from'./uleb.js';export class BcsReader{['dataView'];['bytePosition']=0x0;constructor(a){this['dataView']=new DataView(a['buffer'],a['byteOffset'],a['byteLength']);}['shift'](a){return this['bytePosition']+=a,this;}['read8'](){const a=this['dataView']['getUint8'](this['bytePosition']);return this['shift'](0x1),a;}['read16'](){const a=this['dataView']['getUint16'](this['bytePosition'],!![]);return this['shift'](0x2),a;}['read32'](){const a=this['dataView']['getUint32'](this['bytePosition'],!![]);return this['shift'](0x4),a;}['read64'](){const a=this['read32'](),b=this['read32'](),c=b['toString'](0x10)+a['toString'](0x10)['padStart'](0x8,'0');return BigInt('0x'+c)['toString'](0xa);}['read128'](){const a=BigInt(this['read64']()),b=BigInt(this['read64']()),c=b['toString'](0x10)+a['toString'](0x10)['padStart'](0x10,'0');return BigInt('0x'+c)['toString'](0xa);}['read256'](){const a=BigInt(this['read128']()),b=BigInt(this['read128']()),c=b['toString'](0x10)+a['toString'](0x10)['padStart'](0x20,'0');return BigInt('0x'+c)['toString'](0xa);}['readBytes'](a){const b=this['bytePosition']+this['dataView']['byteOffset'],c=new Uint8Array(this['dataView']['buffer'],b,a);return this['shift'](a),c;}['readULEB'](){const a=this['bytePosition']+this['dataView']['byteOffset'],b=new Uint8Array(this['dataView']['buffer'],a),{value:c,length:d}=ulebDecode(b);return this['shift'](d),c;}['readVec'](a){const b=this['readULEB'](),c=[];for(let d=0x0;d<b;d++){c['push'](a(this,d,b));}return c;}}
@@ -1,24 +0,0 @@
1
- import type { Simplify } from "../utils/index.js";
2
- import type { BcsType } from "./bcs-type.js";
3
- export type Encoding = "base58" | "base64" | "hex";
4
- export type InferBcsType<T extends BcsType<any>> = T extends BcsType<infer U, any> ? U : never;
5
- export type InferBcsInput<T extends BcsType<any, any>> = T extends BcsType<any, infer U> ? U : never;
6
- export type EnumOutputShape<T extends Record<string, unknown>, Keys extends string = Extract<keyof T, string>, Values = T[keyof T] extends infer Type ? Type extends BcsType<infer U> ? U : never : never> = 0 extends Values ? EnumOutputShapeWithKeys<T, never> : 0n extends Values ? EnumOutputShapeWithKeys<T, never> : "" extends Values ? EnumOutputShapeWithKeys<T, never> : false extends Values ? EnumOutputShapeWithKeys<T, never> : EnumOutputShapeWithKeys<T, Keys>;
7
- export type EnumOutputShapeWithKeys<T extends Record<string, unknown>, Keys extends string> = {
8
- [K in keyof T]: Exclude<Keys, K> extends infer Empty extends string ? Simplify<{
9
- [K2 in K]: T[K];
10
- } & {
11
- [K in Empty]?: never;
12
- } & {
13
- $kind: K;
14
- }> : never;
15
- }[keyof T];
16
- export type EnumInputShape<T extends Record<string, unknown>> = {
17
- [K in keyof T]: {
18
- [K2 in K]: T[K];
19
- };
20
- }[keyof T];
21
- export type JoinString<T, Sep extends string> = T extends readonly [
22
- infer F extends string,
23
- ...infer R extends string[]
24
- ] ? [] extends R ? F : `${F}${Sep}${JoinString<R, Sep>}` : "";
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- export declare function ulebEncode(num: number | bigint): number[];
2
- export declare function ulebDecode(arr: number[] | Uint8Array): {
3
- value: number;
4
- length: number;
5
- };
@@ -1 +0,0 @@
1
- export function ulebEncode(a){let b=BigInt(a);const c=[];let d=0x0;if(b===0x0n)return[0x0];while(b>0x0){c[d]=Number(b&0x7fn),b>>=0x7n,b>0x0n&&(c[d]|=0x80),d+=0x1;}return c;}export function ulebDecode(a){let b=0x0n,c=0x0n,d=0x0;while(!![]){if(d>=a['length'])throw new Error('ULEB\x20decode\x20error:\x20buffer\x20overflow');const e=a[d];d+=0x1,b+=BigInt(e&0x7f)<<c;if((e&0x80)===0x0)break;c+=0x7n;}if(b>BigInt(Number['MAX_SAFE_INTEGER']))throw new Error('ULEB\x20decode\x20error:\x20value\x20exceeds\x20MAX_SAFE_INTEGER');return{'value':Number(b),'length':d};}
@@ -1,4 +0,0 @@
1
- import type { Encoding } from "./types.js";
2
- export declare function encodeStr(data: Uint8Array, encoding: Encoding): string;
3
- export declare function decodeStr(data: string, encoding: Encoding): Uint8Array;
4
- export declare function splitGenericParameters(str: string, genericSeparators?: [string, string]): any[];
@@ -1 +0,0 @@
1
- import{fromBase58,fromBase64,fromHex,toBase58,toBase64,toHex}from'../utils/index.js';export function encodeStr(a,b){switch(b){case'base58':return toBase58(a);case'base64':return toBase64(a);case'hex':return toHex(a);default:throw new Error('Unsupported\x20encoding,\x20supported\x20values\x20are:\x20base64,\x20hex');}}export function decodeStr(a,b){switch(b){case'base58':return fromBase58(a);case'base64':return fromBase64(a);case'hex':return fromHex(a);default:throw new Error('Unsupported\x20encoding,\x20supported\x20values\x20are:\x20base64,\x20hex');}}export function splitGenericParameters(a,b=['<','>']){const [c,d]=b,e=[];let f='',g=0x0;for(let h=0x0;h<a['length'];h++){const j=a[h];j===c&&g++;j===d&&g--;if(g===0x0&&j===','){e['push'](f['trim']()),f='';continue;}f+=j;}return e['push'](f['trim']()),e;}
@@ -1,28 +0,0 @@
1
- import type { Encoding } from "./types.js";
2
- export interface BcsWriterOptions {
3
- initialSize?: number;
4
- maxSize?: number;
5
- allocateSize?: number;
6
- }
7
- export declare class BcsWriter {
8
- private dataView;
9
- private bytePosition;
10
- private size;
11
- private maxSize;
12
- private allocateSize;
13
- constructor({ initialSize, maxSize, allocateSize, }?: BcsWriterOptions);
14
- private ensureSizeOrGrow;
15
- shift(bytes: number): this;
16
- write8(value: number | bigint): this;
17
- writeBytes(bytes: Uint8Array): this;
18
- write16(value: number | bigint): this;
19
- write32(value: number | bigint): this;
20
- write64(value: number | bigint): this;
21
- write128(value: number | bigint): this;
22
- write256(value: number | bigint): this;
23
- writeULEB(value: number): this;
24
- writeVec(vector: any[], cb: (writer: BcsWriter, el: any, i: number, len: number) => void): this;
25
- [Symbol.iterator](): Iterator<number, Iterable<number>>;
26
- toBytes(): Uint8Array<ArrayBuffer>;
27
- toString(encoding: Encoding): string;
28
- }
@@ -1 +0,0 @@
1
- import{ulebEncode}from'./uleb.js';import{encodeStr}from'./utils.js';export class BcsWriter{['dataView'];['bytePosition']=0x0;['size'];['maxSize'];['allocateSize'];constructor({initialSize:initialSize=0x400,maxSize:maxSize=Infinity,allocateSize:allocateSize=0x400}={}){this['size']=initialSize,this['maxSize']=maxSize,this['allocateSize']=allocateSize,this['dataView']=new DataView(new ArrayBuffer(initialSize));}['ensureSizeOrGrow'](a){const b=this['bytePosition']+a;if(b>this['size']){const c=Math['min'](this['maxSize'],Math['max'](this['size']+b,this['size']+this['allocateSize']));if(b>c)throw new Error('Attempting\x20to\x20serialize\x20to\x20BCS,\x20but\x20buffer\x20does\x20not\x20have\x20enough\x20size.\x20Allocated\x20size:\x20'+this['size']+',\x20Max\x20size:\x20'+this['maxSize']+',\x20Required\x20size:\x20'+b);this['size']=c;const d=new ArrayBuffer(this['size']);new Uint8Array(d)['set'](new Uint8Array(this['dataView']['buffer'])),this['dataView']=new DataView(d);}}['shift'](a){return this['bytePosition']+=a,this;}['write8'](a){return this['ensureSizeOrGrow'](0x1),this['dataView']['setUint8'](this['bytePosition'],Number(a)),this['shift'](0x1);}['writeBytes'](a){this['ensureSizeOrGrow'](a['length']);for(let b=0x0;b<a['length'];b++){this['dataView']['setUint8'](this['bytePosition']+b,a[b]);}return this['shift'](a['length']);}['write16'](a){return this['ensureSizeOrGrow'](0x2),this['dataView']['setUint16'](this['bytePosition'],Number(a),!![]),this['shift'](0x2);}['write32'](a){return this['ensureSizeOrGrow'](0x4),this['dataView']['setUint32'](this['bytePosition'],Number(a),!![]),this['shift'](0x4);}['write64'](a){return toLittleEndian(BigInt(a),0x8)['forEach'](b=>this['write8'](b)),this;}['write128'](a){return toLittleEndian(BigInt(a),0x10)['forEach'](b=>this['write8'](b)),this;}['write256'](a){return toLittleEndian(BigInt(a),0x20)['forEach'](b=>this['write8'](b)),this;}['writeULEB'](a){return ulebEncode(a)['forEach'](b=>this['write8'](b)),this;}['writeVec'](a,b){return this['writeULEB'](a['length']),Array['from'](a)['forEach']((c,d)=>b(this,c,d,a['length'])),this;}*[Symbol['iterator']](){for(let a=0x0;a<this['bytePosition'];a++){yield this['dataView']['getUint8'](a);}return this['toBytes']();}['toBytes'](){return new Uint8Array(this['dataView']['buffer']['slice'](0x0,this['bytePosition']));}['toString'](a){return encodeStr(this['toBytes'](),a);}}function toLittleEndian(a,b){const c=new Uint8Array(b);let d=0x0;while(a>0x0){c[d]=Number(a%BigInt(0x100)),a=a/BigInt(0x100),d+=0x1;}return c;}
@@ -1,2 +0,0 @@
1
- export declare const toBase58: (buffer: Uint8Array) => string;
2
- export declare const fromBase58: (str: string) => Uint8Array<ArrayBuffer>;
@@ -1 +0,0 @@
1
- import{base58}from'@scure/base';export const toBase58=a=>base58['encode'](a);export const fromBase58=a=>base58['decode'](a);
@@ -1,2 +0,0 @@
1
- export declare function fromBase64(base64String: string): Uint8Array<ArrayBuffer>;
2
- export declare function toBase64(bytes: Uint8Array): string;
@@ -1 +0,0 @@
1
- export function fromBase64(a){return Uint8Array['from'](atob(a),b=>b['charCodeAt'](0x0));}const CHUNK_SIZE=0x2000;export function toBase64(a){if(a['length']<CHUNK_SIZE)return btoa(String['fromCharCode'](...a));let b='';for(var c=0x0;c<a['length'];c+=CHUNK_SIZE){const d=a['slice'](c,c+CHUNK_SIZE);b+=String['fromCharCode'](...d);}return btoa(b);}
@@ -1 +0,0 @@
1
- export declare function chunk<T>(array: readonly T[], size: number): T[][];
@@ -1 +0,0 @@
1
- export function chunk(a,b){return Array['from']({'length':Math['ceil'](a['length']/b)},(c,d)=>{return a['slice'](d*b,(d+0x1)*b);});}