@mysten/sui 0.0.0-experimental-20240529040124

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 (609) hide show
  1. package/CHANGELOG.md +905 -0
  2. package/LICENSE +201 -0
  3. package/README.md +520 -0
  4. package/bcs/package.json +6 -0
  5. package/client/package.json +6 -0
  6. package/cryptography/package.json +6 -0
  7. package/dist/cjs/bcs/bcs.d.ts +2283 -0
  8. package/dist/cjs/bcs/bcs.js +306 -0
  9. package/dist/cjs/bcs/bcs.js.map +7 -0
  10. package/dist/cjs/bcs/effects.d.ts +793 -0
  11. package/dist/cjs/bcs/effects.js +203 -0
  12. package/dist/cjs/bcs/effects.js.map +7 -0
  13. package/dist/cjs/bcs/index.d.ts +3081 -0
  14. package/dist/cjs/bcs/index.js +73 -0
  15. package/dist/cjs/bcs/index.js.map +7 -0
  16. package/dist/cjs/bcs/type-tag-serializer.d.ts +6 -0
  17. package/dist/cjs/bcs/type-tag-serializer.js +113 -0
  18. package/dist/cjs/bcs/type-tag-serializer.js.map +7 -0
  19. package/dist/cjs/bcs/types.d.ts +114 -0
  20. package/dist/cjs/bcs/types.js +27 -0
  21. package/dist/cjs/bcs/types.js.map +7 -0
  22. package/dist/cjs/client/client.d.ts +229 -0
  23. package/dist/cjs/client/client.js +582 -0
  24. package/dist/cjs/client/client.js.map +7 -0
  25. package/dist/cjs/client/errors.d.ts +12 -0
  26. package/dist/cjs/client/errors.js +60 -0
  27. package/dist/cjs/client/errors.js.map +7 -0
  28. package/dist/cjs/client/http-transport.d.ts +40 -0
  29. package/dist/cjs/client/http-transport.js +125 -0
  30. package/dist/cjs/client/http-transport.js.map +7 -0
  31. package/dist/cjs/client/index.d.ts +5 -0
  32. package/dist/cjs/client/index.js +36 -0
  33. package/dist/cjs/client/index.js.map +7 -0
  34. package/dist/cjs/client/network.d.ts +1 -0
  35. package/dist/cjs/client/network.js +38 -0
  36. package/dist/cjs/client/network.js.map +7 -0
  37. package/dist/cjs/client/rpc-websocket-client.d.ts +49 -0
  38. package/dist/cjs/client/rpc-websocket-client.js +206 -0
  39. package/dist/cjs/client/rpc-websocket-client.js.map +7 -0
  40. package/dist/cjs/client/types/chain.d.ts +99 -0
  41. package/dist/cjs/client/types/chain.js +17 -0
  42. package/dist/cjs/client/types/chain.js.map +7 -0
  43. package/dist/cjs/client/types/changes.d.ts +19 -0
  44. package/dist/cjs/client/types/changes.js +17 -0
  45. package/dist/cjs/client/types/changes.js.map +7 -0
  46. package/dist/cjs/client/types/coins.d.ts +6 -0
  47. package/dist/cjs/client/types/coins.js +17 -0
  48. package/dist/cjs/client/types/coins.js.map +7 -0
  49. package/dist/cjs/client/types/common.d.ts +2 -0
  50. package/dist/cjs/client/types/common.js +17 -0
  51. package/dist/cjs/client/types/common.js.map +7 -0
  52. package/dist/cjs/client/types/generated.d.ts +1376 -0
  53. package/dist/cjs/client/types/generated.js +17 -0
  54. package/dist/cjs/client/types/generated.js.map +7 -0
  55. package/dist/cjs/client/types/index.d.ts +6 -0
  56. package/dist/cjs/client/types/index.js +24 -0
  57. package/dist/cjs/client/types/index.js.map +7 -0
  58. package/dist/cjs/client/types/params.d.ts +585 -0
  59. package/dist/cjs/client/types/params.js +17 -0
  60. package/dist/cjs/client/types/params.js.map +7 -0
  61. package/dist/cjs/cryptography/index.d.ts +7 -0
  62. package/dist/cjs/cryptography/index.js +47 -0
  63. package/dist/cjs/cryptography/index.js.map +7 -0
  64. package/dist/cjs/cryptography/intent.d.ts +6 -0
  65. package/dist/cjs/cryptography/intent.js +35 -0
  66. package/dist/cjs/cryptography/intent.js.map +7 -0
  67. package/dist/cjs/cryptography/keypair.d.ts +63 -0
  68. package/dist/cjs/cryptography/keypair.js +105 -0
  69. package/dist/cjs/cryptography/keypair.js.map +7 -0
  70. package/dist/cjs/cryptography/mnemonics.d.ts +27 -0
  71. package/dist/cjs/cryptography/mnemonics.js +47 -0
  72. package/dist/cjs/cryptography/mnemonics.js.map +7 -0
  73. package/dist/cjs/cryptography/publickey.d.ts +56 -0
  74. package/dist/cjs/cryptography/publickey.js +112 -0
  75. package/dist/cjs/cryptography/publickey.js.map +7 -0
  76. package/dist/cjs/cryptography/signature-scheme.d.ts +21 -0
  77. package/dist/cjs/cryptography/signature-scheme.js +45 -0
  78. package/dist/cjs/cryptography/signature-scheme.js.map +7 -0
  79. package/dist/cjs/cryptography/signature.d.ts +60 -0
  80. package/dist/cjs/cryptography/signature.js +75 -0
  81. package/dist/cjs/cryptography/signature.js.map +7 -0
  82. package/dist/cjs/faucet/faucet.d.ts +42 -0
  83. package/dist/cjs/faucet/faucet.js +103 -0
  84. package/dist/cjs/faucet/faucet.js.map +7 -0
  85. package/dist/cjs/faucet/index.d.ts +1 -0
  86. package/dist/cjs/faucet/index.js +29 -0
  87. package/dist/cjs/faucet/index.js.map +7 -0
  88. package/dist/cjs/graphql/client.d.ts +42 -0
  89. package/dist/cjs/graphql/client.js +93 -0
  90. package/dist/cjs/graphql/client.js.map +7 -0
  91. package/dist/cjs/graphql/generated/2024-01/tada-env.d.js +17 -0
  92. package/dist/cjs/graphql/generated/2024-01/tada-env.d.js.map +7 -0
  93. package/dist/cjs/graphql/generated/2024.1/tada-env.d.js +17 -0
  94. package/dist/cjs/graphql/generated/2024.1/tada-env.d.js.map +7 -0
  95. package/dist/cjs/graphql/generated/2024.1/tsconfig.tada.js +12 -0
  96. package/dist/cjs/graphql/generated/2024.1/tsconfig.tada.js.map +7 -0
  97. package/dist/cjs/graphql/generated/2024.4/tada-env.d.js +17 -0
  98. package/dist/cjs/graphql/generated/2024.4/tada-env.d.js.map +7 -0
  99. package/dist/cjs/graphql/generated/2024.4/tsconfig.tada.js +12 -0
  100. package/dist/cjs/graphql/generated/2024.4/tsconfig.tada.js.map +7 -0
  101. package/dist/cjs/graphql/index.d.ts +1 -0
  102. package/dist/cjs/graphql/index.js +26 -0
  103. package/dist/cjs/graphql/index.js.map +7 -0
  104. package/dist/cjs/graphql/schemas/2024.1/index.d.ts +8971 -0
  105. package/dist/cjs/graphql/schemas/2024.1/index.js +31 -0
  106. package/dist/cjs/graphql/schemas/2024.1/index.js.map +7 -0
  107. package/dist/cjs/graphql/schemas/2024.4/index.d.ts +8995 -0
  108. package/dist/cjs/graphql/schemas/2024.4/index.js +31 -0
  109. package/dist/cjs/graphql/schemas/2024.4/index.js.map +7 -0
  110. package/dist/cjs/graphql/types.d.ts +70 -0
  111. package/dist/cjs/graphql/types.js +17 -0
  112. package/dist/cjs/graphql/types.js.map +7 -0
  113. package/dist/cjs/keypairs/ed25519/ed25519-hd-key.d.ts +13 -0
  114. package/dist/cjs/keypairs/ed25519/ed25519-hd-key.js +101 -0
  115. package/dist/cjs/keypairs/ed25519/ed25519-hd-key.js.map +7 -0
  116. package/dist/cjs/keypairs/ed25519/index.d.ts +2 -0
  117. package/dist/cjs/keypairs/ed25519/index.js +28 -0
  118. package/dist/cjs/keypairs/ed25519/index.js.map +7 -0
  119. package/dist/cjs/keypairs/ed25519/keypair.d.ts +74 -0
  120. package/dist/cjs/keypairs/ed25519/keypair.js +151 -0
  121. package/dist/cjs/keypairs/ed25519/keypair.js.map +7 -0
  122. package/dist/cjs/keypairs/ed25519/publickey.d.ts +30 -0
  123. package/dist/cjs/keypairs/ed25519/publickey.js +99 -0
  124. package/dist/cjs/keypairs/ed25519/publickey.js.map +7 -0
  125. package/dist/cjs/keypairs/secp256k1/index.d.ts +2 -0
  126. package/dist/cjs/keypairs/secp256k1/index.js +28 -0
  127. package/dist/cjs/keypairs/secp256k1/index.js.map +7 -0
  128. package/dist/cjs/keypairs/secp256k1/keypair.d.ts +73 -0
  129. package/dist/cjs/keypairs/secp256k1/keypair.js +143 -0
  130. package/dist/cjs/keypairs/secp256k1/keypair.js.map +7 -0
  131. package/dist/cjs/keypairs/secp256k1/publickey.d.ts +30 -0
  132. package/dist/cjs/keypairs/secp256k1/publickey.js +94 -0
  133. package/dist/cjs/keypairs/secp256k1/publickey.js.map +7 -0
  134. package/dist/cjs/keypairs/secp256r1/index.d.ts +2 -0
  135. package/dist/cjs/keypairs/secp256r1/index.js +28 -0
  136. package/dist/cjs/keypairs/secp256r1/index.js.map +7 -0
  137. package/dist/cjs/keypairs/secp256r1/keypair.d.ts +73 -0
  138. package/dist/cjs/keypairs/secp256r1/keypair.js +137 -0
  139. package/dist/cjs/keypairs/secp256r1/keypair.js.map +7 -0
  140. package/dist/cjs/keypairs/secp256r1/publickey.d.ts +30 -0
  141. package/dist/cjs/keypairs/secp256r1/publickey.js +94 -0
  142. package/dist/cjs/keypairs/secp256r1/publickey.js.map +7 -0
  143. package/dist/cjs/multisig/index.d.ts +2 -0
  144. package/dist/cjs/multisig/index.js +28 -0
  145. package/dist/cjs/multisig/index.js.map +7 -0
  146. package/dist/cjs/multisig/publickey.d.ts +110 -0
  147. package/dist/cjs/multisig/publickey.js +260 -0
  148. package/dist/cjs/multisig/publickey.js.map +7 -0
  149. package/dist/cjs/multisig/signer.d.ts +19 -0
  150. package/dist/cjs/multisig/signer.js +115 -0
  151. package/dist/cjs/multisig/signer.js.map +7 -0
  152. package/dist/cjs/package.json +5 -0
  153. package/dist/cjs/transactions/Commands.d.ts +110 -0
  154. package/dist/cjs/transactions/Commands.js +140 -0
  155. package/dist/cjs/transactions/Commands.js.map +7 -0
  156. package/dist/cjs/transactions/Inputs.d.ts +22 -0
  157. package/dist/cjs/transactions/Inputs.js +80 -0
  158. package/dist/cjs/transactions/Inputs.js.map +7 -0
  159. package/dist/cjs/transactions/ObjectCache.d.ts +85 -0
  160. package/dist/cjs/transactions/ObjectCache.js +246 -0
  161. package/dist/cjs/transactions/ObjectCache.js.map +7 -0
  162. package/dist/cjs/transactions/Transaction.d.ts +672 -0
  163. package/dist/cjs/transactions/Transaction.js +459 -0
  164. package/dist/cjs/transactions/Transaction.js.map +7 -0
  165. package/dist/cjs/transactions/TransactionData.d.ts +64 -0
  166. package/dist/cjs/transactions/TransactionData.js +249 -0
  167. package/dist/cjs/transactions/TransactionData.js.map +7 -0
  168. package/dist/cjs/transactions/__tests__/Transaction.test.d.ts +1 -0
  169. package/dist/cjs/transactions/__tests__/bcs.test.d.ts +1 -0
  170. package/dist/cjs/transactions/data/internal.d.ts +2689 -0
  171. package/dist/cjs/transactions/data/internal.js +210 -0
  172. package/dist/cjs/transactions/data/internal.js.map +7 -0
  173. package/dist/cjs/transactions/data/v1.d.ts +1839 -0
  174. package/dist/cjs/transactions/data/v1.js +440 -0
  175. package/dist/cjs/transactions/data/v1.js.map +7 -0
  176. package/dist/cjs/transactions/data/v2.d.ts +450 -0
  177. package/dist/cjs/transactions/data/v2.js +123 -0
  178. package/dist/cjs/transactions/data/v2.js.map +7 -0
  179. package/dist/cjs/transactions/executor/caching.d.ts +29 -0
  180. package/dist/cjs/transactions/executor/caching.js +109 -0
  181. package/dist/cjs/transactions/executor/caching.js.map +7 -0
  182. package/dist/cjs/transactions/executor/parallel.d.ts +22 -0
  183. package/dist/cjs/transactions/executor/parallel.js +316 -0
  184. package/dist/cjs/transactions/executor/parallel.js.map +7 -0
  185. package/dist/cjs/transactions/executor/queue.d.ts +11 -0
  186. package/dist/cjs/transactions/executor/queue.js +92 -0
  187. package/dist/cjs/transactions/executor/queue.js.map +7 -0
  188. package/dist/cjs/transactions/executor/serial.d.ts +27 -0
  189. package/dist/cjs/transactions/executor/serial.js +140 -0
  190. package/dist/cjs/transactions/executor/serial.js.map +7 -0
  191. package/dist/cjs/transactions/hash.d.ts +7 -0
  192. package/dist/cjs/transactions/hash.js +32 -0
  193. package/dist/cjs/transactions/hash.js.map +7 -0
  194. package/dist/cjs/transactions/index.d.ts +13 -0
  195. package/dist/cjs/transactions/index.js +47 -0
  196. package/dist/cjs/transactions/index.js.map +7 -0
  197. package/dist/cjs/transactions/intents/CoinWithBalance.d.ts +6 -0
  198. package/dist/cjs/transactions/intents/CoinWithBalance.js +168 -0
  199. package/dist/cjs/transactions/intents/CoinWithBalance.js.map +7 -0
  200. package/dist/cjs/transactions/json-rpc-resolver.d.ts +12 -0
  201. package/dist/cjs/transactions/json-rpc-resolver.js +353 -0
  202. package/dist/cjs/transactions/json-rpc-resolver.js.map +7 -0
  203. package/dist/cjs/transactions/pure.d.ts +185 -0
  204. package/dist/cjs/transactions/pure.js +41 -0
  205. package/dist/cjs/transactions/pure.js.map +7 -0
  206. package/dist/cjs/transactions/serializer.d.ts +7 -0
  207. package/dist/cjs/transactions/serializer.js +176 -0
  208. package/dist/cjs/transactions/serializer.js.map +7 -0
  209. package/dist/cjs/transactions/utils.d.ts +8 -0
  210. package/dist/cjs/transactions/utils.js +66 -0
  211. package/dist/cjs/transactions/utils.js.map +7 -0
  212. package/dist/cjs/utils/constants.d.ts +9 -0
  213. package/dist/cjs/utils/constants.js +42 -0
  214. package/dist/cjs/utils/constants.js.map +7 -0
  215. package/dist/cjs/utils/format.d.ts +2 -0
  216. package/dist/cjs/utils/format.js +36 -0
  217. package/dist/cjs/utils/format.js.map +7 -0
  218. package/dist/cjs/utils/index.d.ts +5 -0
  219. package/dist/cjs/utils/index.js +53 -0
  220. package/dist/cjs/utils/index.js.map +7 -0
  221. package/dist/cjs/utils/sui-types.d.ts +27 -0
  222. package/dist/cjs/utils/sui-types.js +90 -0
  223. package/dist/cjs/utils/sui-types.js.map +7 -0
  224. package/dist/cjs/utils/suins.d.ts +2 -0
  225. package/dist/cjs/utils/suins.js +57 -0
  226. package/dist/cjs/utils/suins.js.map +7 -0
  227. package/dist/cjs/verify/index.d.ts +1 -0
  228. package/dist/cjs/verify/index.js +29 -0
  229. package/dist/cjs/verify/index.js.map +7 -0
  230. package/dist/cjs/verify/verify.d.ts +11 -0
  231. package/dist/cjs/verify/verify.js +101 -0
  232. package/dist/cjs/verify/verify.js.map +7 -0
  233. package/dist/cjs/version.d.ts +2 -0
  234. package/dist/cjs/version.js +27 -0
  235. package/dist/cjs/version.js.map +7 -0
  236. package/dist/cjs/zklogin/address.d.ts +1 -0
  237. package/dist/cjs/zklogin/address.js +44 -0
  238. package/dist/cjs/zklogin/address.js.map +7 -0
  239. package/dist/cjs/zklogin/bcs.d.ts +46 -0
  240. package/dist/cjs/zklogin/bcs.js +42 -0
  241. package/dist/cjs/zklogin/bcs.js.map +7 -0
  242. package/dist/cjs/zklogin/index.d.ts +5 -0
  243. package/dist/cjs/zklogin/index.js +33 -0
  244. package/dist/cjs/zklogin/index.js.map +7 -0
  245. package/dist/cjs/zklogin/jwt-utils.d.ts +5 -0
  246. package/dist/cjs/zklogin/jwt-utils.js +102 -0
  247. package/dist/cjs/zklogin/jwt-utils.js.map +7 -0
  248. package/dist/cjs/zklogin/publickey.d.ts +69 -0
  249. package/dist/cjs/zklogin/publickey.js +197 -0
  250. package/dist/cjs/zklogin/publickey.js.map +7 -0
  251. package/dist/cjs/zklogin/signature.d.ts +23 -0
  252. package/dist/cjs/zklogin/signature.js +48 -0
  253. package/dist/cjs/zklogin/signature.js.map +7 -0
  254. package/dist/cjs/zklogin/utils.d.ts +2 -0
  255. package/dist/cjs/zklogin/utils.js +46 -0
  256. package/dist/cjs/zklogin/utils.js.map +7 -0
  257. package/dist/esm/bcs/bcs.d.ts +2283 -0
  258. package/dist/esm/bcs/bcs.js +286 -0
  259. package/dist/esm/bcs/bcs.js.map +7 -0
  260. package/dist/esm/bcs/effects.d.ts +793 -0
  261. package/dist/esm/bcs/effects.js +183 -0
  262. package/dist/esm/bcs/effects.js.map +7 -0
  263. package/dist/esm/bcs/index.d.ts +3081 -0
  264. package/dist/esm/bcs/index.js +83 -0
  265. package/dist/esm/bcs/index.js.map +7 -0
  266. package/dist/esm/bcs/type-tag-serializer.d.ts +6 -0
  267. package/dist/esm/bcs/type-tag-serializer.js +93 -0
  268. package/dist/esm/bcs/type-tag-serializer.js.map +7 -0
  269. package/dist/esm/bcs/types.d.ts +114 -0
  270. package/dist/esm/bcs/types.js +7 -0
  271. package/dist/esm/bcs/types.js.map +7 -0
  272. package/dist/esm/client/client.d.ts +229 -0
  273. package/dist/esm/client/client.js +568 -0
  274. package/dist/esm/client/client.js.map +7 -0
  275. package/dist/esm/client/errors.d.ts +12 -0
  276. package/dist/esm/client/errors.js +40 -0
  277. package/dist/esm/client/errors.js.map +7 -0
  278. package/dist/esm/client/http-transport.d.ts +40 -0
  279. package/dist/esm/client/http-transport.js +105 -0
  280. package/dist/esm/client/http-transport.js.map +7 -0
  281. package/dist/esm/client/index.d.ts +5 -0
  282. package/dist/esm/client/index.js +20 -0
  283. package/dist/esm/client/index.js.map +7 -0
  284. package/dist/esm/client/network.d.ts +1 -0
  285. package/dist/esm/client/network.js +18 -0
  286. package/dist/esm/client/network.js.map +7 -0
  287. package/dist/esm/client/rpc-websocket-client.d.ts +49 -0
  288. package/dist/esm/client/rpc-websocket-client.js +186 -0
  289. package/dist/esm/client/rpc-websocket-client.js.map +7 -0
  290. package/dist/esm/client/types/chain.d.ts +99 -0
  291. package/dist/esm/client/types/chain.js +1 -0
  292. package/dist/esm/client/types/chain.js.map +7 -0
  293. package/dist/esm/client/types/changes.d.ts +19 -0
  294. package/dist/esm/client/types/changes.js +1 -0
  295. package/dist/esm/client/types/changes.js.map +7 -0
  296. package/dist/esm/client/types/coins.d.ts +6 -0
  297. package/dist/esm/client/types/coins.js +1 -0
  298. package/dist/esm/client/types/coins.js.map +7 -0
  299. package/dist/esm/client/types/common.d.ts +2 -0
  300. package/dist/esm/client/types/common.js +1 -0
  301. package/dist/esm/client/types/common.js.map +7 -0
  302. package/dist/esm/client/types/generated.d.ts +1376 -0
  303. package/dist/esm/client/types/generated.js +1 -0
  304. package/dist/esm/client/types/generated.js.map +7 -0
  305. package/dist/esm/client/types/index.d.ts +6 -0
  306. package/dist/esm/client/types/index.js +7 -0
  307. package/dist/esm/client/types/index.js.map +7 -0
  308. package/dist/esm/client/types/params.d.ts +585 -0
  309. package/dist/esm/client/types/params.js +1 -0
  310. package/dist/esm/client/types/params.js.map +7 -0
  311. package/dist/esm/cryptography/index.d.ts +7 -0
  312. package/dist/esm/cryptography/index.js +47 -0
  313. package/dist/esm/cryptography/index.js.map +7 -0
  314. package/dist/esm/cryptography/intent.d.ts +6 -0
  315. package/dist/esm/cryptography/intent.js +15 -0
  316. package/dist/esm/cryptography/intent.js.map +7 -0
  317. package/dist/esm/cryptography/keypair.d.ts +63 -0
  318. package/dist/esm/cryptography/keypair.js +85 -0
  319. package/dist/esm/cryptography/keypair.js.map +7 -0
  320. package/dist/esm/cryptography/mnemonics.d.ts +27 -0
  321. package/dist/esm/cryptography/mnemonics.js +27 -0
  322. package/dist/esm/cryptography/mnemonics.js.map +7 -0
  323. package/dist/esm/cryptography/publickey.d.ts +56 -0
  324. package/dist/esm/cryptography/publickey.js +92 -0
  325. package/dist/esm/cryptography/publickey.js.map +7 -0
  326. package/dist/esm/cryptography/signature-scheme.d.ts +21 -0
  327. package/dist/esm/cryptography/signature-scheme.js +25 -0
  328. package/dist/esm/cryptography/signature-scheme.js.map +7 -0
  329. package/dist/esm/cryptography/signature.d.ts +60 -0
  330. package/dist/esm/cryptography/signature.js +59 -0
  331. package/dist/esm/cryptography/signature.js.map +7 -0
  332. package/dist/esm/faucet/faucet.d.ts +42 -0
  333. package/dist/esm/faucet/faucet.js +83 -0
  334. package/dist/esm/faucet/faucet.js.map +7 -0
  335. package/dist/esm/faucet/index.d.ts +1 -0
  336. package/dist/esm/faucet/index.js +15 -0
  337. package/dist/esm/faucet/index.js.map +7 -0
  338. package/dist/esm/graphql/client.d.ts +42 -0
  339. package/dist/esm/graphql/client.js +73 -0
  340. package/dist/esm/graphql/client.js.map +7 -0
  341. package/dist/esm/graphql/generated/2024-01/tada-env.d.js +1 -0
  342. package/dist/esm/graphql/generated/2024-01/tada-env.d.js.map +7 -0
  343. package/dist/esm/graphql/generated/2024.1/tada-env.d.js +1 -0
  344. package/dist/esm/graphql/generated/2024.1/tada-env.d.js.map +7 -0
  345. package/dist/esm/graphql/generated/2024.1/tsconfig.tada.js +17 -0
  346. package/dist/esm/graphql/generated/2024.1/tsconfig.tada.js.map +7 -0
  347. package/dist/esm/graphql/generated/2024.4/tada-env.d.js +1 -0
  348. package/dist/esm/graphql/generated/2024.4/tada-env.d.js.map +7 -0
  349. package/dist/esm/graphql/generated/2024.4/tsconfig.tada.js +17 -0
  350. package/dist/esm/graphql/generated/2024.4/tsconfig.tada.js.map +7 -0
  351. package/dist/esm/graphql/index.d.ts +1 -0
  352. package/dist/esm/graphql/index.js +9 -0
  353. package/dist/esm/graphql/index.js.map +7 -0
  354. package/dist/esm/graphql/schemas/2024.1/index.d.ts +8971 -0
  355. package/dist/esm/graphql/schemas/2024.1/index.js +10 -0
  356. package/dist/esm/graphql/schemas/2024.1/index.js.map +7 -0
  357. package/dist/esm/graphql/schemas/2024.4/index.d.ts +8995 -0
  358. package/dist/esm/graphql/schemas/2024.4/index.js +10 -0
  359. package/dist/esm/graphql/schemas/2024.4/index.js.map +7 -0
  360. package/dist/esm/graphql/types.d.ts +70 -0
  361. package/dist/esm/graphql/types.js +1 -0
  362. package/dist/esm/graphql/types.js.map +7 -0
  363. package/dist/esm/keypairs/ed25519/ed25519-hd-key.d.ts +13 -0
  364. package/dist/esm/keypairs/ed25519/ed25519-hd-key.js +71 -0
  365. package/dist/esm/keypairs/ed25519/ed25519-hd-key.js.map +7 -0
  366. package/dist/esm/keypairs/ed25519/index.d.ts +2 -0
  367. package/dist/esm/keypairs/ed25519/index.js +11 -0
  368. package/dist/esm/keypairs/ed25519/index.js.map +7 -0
  369. package/dist/esm/keypairs/ed25519/keypair.d.ts +74 -0
  370. package/dist/esm/keypairs/ed25519/keypair.js +121 -0
  371. package/dist/esm/keypairs/ed25519/keypair.js.map +7 -0
  372. package/dist/esm/keypairs/ed25519/publickey.d.ts +30 -0
  373. package/dist/esm/keypairs/ed25519/publickey.js +69 -0
  374. package/dist/esm/keypairs/ed25519/publickey.js.map +7 -0
  375. package/dist/esm/keypairs/secp256k1/index.d.ts +2 -0
  376. package/dist/esm/keypairs/secp256k1/index.js +11 -0
  377. package/dist/esm/keypairs/secp256k1/index.js.map +7 -0
  378. package/dist/esm/keypairs/secp256k1/keypair.d.ts +73 -0
  379. package/dist/esm/keypairs/secp256k1/keypair.js +123 -0
  380. package/dist/esm/keypairs/secp256k1/keypair.js.map +7 -0
  381. package/dist/esm/keypairs/secp256k1/publickey.d.ts +30 -0
  382. package/dist/esm/keypairs/secp256k1/publickey.js +74 -0
  383. package/dist/esm/keypairs/secp256k1/publickey.js.map +7 -0
  384. package/dist/esm/keypairs/secp256r1/index.d.ts +2 -0
  385. package/dist/esm/keypairs/secp256r1/index.js +11 -0
  386. package/dist/esm/keypairs/secp256r1/index.js.map +7 -0
  387. package/dist/esm/keypairs/secp256r1/keypair.d.ts +73 -0
  388. package/dist/esm/keypairs/secp256r1/keypair.js +117 -0
  389. package/dist/esm/keypairs/secp256r1/keypair.js.map +7 -0
  390. package/dist/esm/keypairs/secp256r1/publickey.d.ts +30 -0
  391. package/dist/esm/keypairs/secp256r1/publickey.js +74 -0
  392. package/dist/esm/keypairs/secp256r1/publickey.js.map +7 -0
  393. package/dist/esm/multisig/index.d.ts +2 -0
  394. package/dist/esm/multisig/index.js +8 -0
  395. package/dist/esm/multisig/index.js.map +7 -0
  396. package/dist/esm/multisig/publickey.d.ts +110 -0
  397. package/dist/esm/multisig/publickey.js +243 -0
  398. package/dist/esm/multisig/publickey.js.map +7 -0
  399. package/dist/esm/multisig/signer.d.ts +19 -0
  400. package/dist/esm/multisig/signer.js +95 -0
  401. package/dist/esm/multisig/signer.js.map +7 -0
  402. package/dist/esm/package.json +5 -0
  403. package/dist/esm/transactions/Commands.d.ts +110 -0
  404. package/dist/esm/transactions/Commands.js +120 -0
  405. package/dist/esm/transactions/Commands.js.map +7 -0
  406. package/dist/esm/transactions/Inputs.d.ts +22 -0
  407. package/dist/esm/transactions/Inputs.js +60 -0
  408. package/dist/esm/transactions/Inputs.js.map +7 -0
  409. package/dist/esm/transactions/ObjectCache.d.ts +85 -0
  410. package/dist/esm/transactions/ObjectCache.js +226 -0
  411. package/dist/esm/transactions/ObjectCache.js.map +7 -0
  412. package/dist/esm/transactions/Transaction.d.ts +672 -0
  413. package/dist/esm/transactions/Transaction.js +439 -0
  414. package/dist/esm/transactions/Transaction.js.map +7 -0
  415. package/dist/esm/transactions/TransactionData.d.ts +64 -0
  416. package/dist/esm/transactions/TransactionData.js +229 -0
  417. package/dist/esm/transactions/TransactionData.js.map +7 -0
  418. package/dist/esm/transactions/__tests__/Transaction.test.d.ts +1 -0
  419. package/dist/esm/transactions/__tests__/bcs.test.d.ts +1 -0
  420. package/dist/esm/transactions/data/internal.d.ts +2689 -0
  421. package/dist/esm/transactions/data/internal.js +208 -0
  422. package/dist/esm/transactions/data/internal.js.map +7 -0
  423. package/dist/esm/transactions/data/v1.d.ts +1839 -0
  424. package/dist/esm/transactions/data/v1.js +437 -0
  425. package/dist/esm/transactions/data/v1.js.map +7 -0
  426. package/dist/esm/transactions/data/v2.d.ts +450 -0
  427. package/dist/esm/transactions/data/v2.js +118 -0
  428. package/dist/esm/transactions/data/v2.js.map +7 -0
  429. package/dist/esm/transactions/executor/caching.d.ts +29 -0
  430. package/dist/esm/transactions/executor/caching.js +89 -0
  431. package/dist/esm/transactions/executor/caching.js.map +7 -0
  432. package/dist/esm/transactions/executor/parallel.d.ts +22 -0
  433. package/dist/esm/transactions/executor/parallel.js +296 -0
  434. package/dist/esm/transactions/executor/parallel.js.map +7 -0
  435. package/dist/esm/transactions/executor/queue.d.ts +11 -0
  436. package/dist/esm/transactions/executor/queue.js +72 -0
  437. package/dist/esm/transactions/executor/queue.js.map +7 -0
  438. package/dist/esm/transactions/executor/serial.d.ts +27 -0
  439. package/dist/esm/transactions/executor/serial.js +120 -0
  440. package/dist/esm/transactions/executor/serial.js.map +7 -0
  441. package/dist/esm/transactions/hash.d.ts +7 -0
  442. package/dist/esm/transactions/hash.js +12 -0
  443. package/dist/esm/transactions/hash.js.map +7 -0
  444. package/dist/esm/transactions/index.d.ts +13 -0
  445. package/dist/esm/transactions/index.js +33 -0
  446. package/dist/esm/transactions/index.js.map +7 -0
  447. package/dist/esm/transactions/intents/CoinWithBalance.d.ts +6 -0
  448. package/dist/esm/transactions/intents/CoinWithBalance.js +148 -0
  449. package/dist/esm/transactions/intents/CoinWithBalance.js.map +7 -0
  450. package/dist/esm/transactions/json-rpc-resolver.d.ts +12 -0
  451. package/dist/esm/transactions/json-rpc-resolver.js +333 -0
  452. package/dist/esm/transactions/json-rpc-resolver.js.map +7 -0
  453. package/dist/esm/transactions/pure.d.ts +185 -0
  454. package/dist/esm/transactions/pure.js +21 -0
  455. package/dist/esm/transactions/pure.js.map +7 -0
  456. package/dist/esm/transactions/serializer.d.ts +7 -0
  457. package/dist/esm/transactions/serializer.js +156 -0
  458. package/dist/esm/transactions/serializer.js.map +7 -0
  459. package/dist/esm/transactions/utils.d.ts +8 -0
  460. package/dist/esm/transactions/utils.js +46 -0
  461. package/dist/esm/transactions/utils.js.map +7 -0
  462. package/dist/esm/utils/constants.d.ts +9 -0
  463. package/dist/esm/utils/constants.js +22 -0
  464. package/dist/esm/utils/constants.js.map +7 -0
  465. package/dist/esm/utils/format.d.ts +2 -0
  466. package/dist/esm/utils/format.js +16 -0
  467. package/dist/esm/utils/format.js.map +7 -0
  468. package/dist/esm/utils/index.d.ts +5 -0
  469. package/dist/esm/utils/index.js +52 -0
  470. package/dist/esm/utils/index.js.map +7 -0
  471. package/dist/esm/utils/sui-types.d.ts +27 -0
  472. package/dist/esm/utils/sui-types.js +70 -0
  473. package/dist/esm/utils/sui-types.js.map +7 -0
  474. package/dist/esm/utils/suins.d.ts +2 -0
  475. package/dist/esm/utils/suins.js +37 -0
  476. package/dist/esm/utils/suins.js.map +7 -0
  477. package/dist/esm/verify/index.d.ts +1 -0
  478. package/dist/esm/verify/index.js +15 -0
  479. package/dist/esm/verify/index.js.map +7 -0
  480. package/dist/esm/verify/verify.d.ts +11 -0
  481. package/dist/esm/verify/verify.js +81 -0
  482. package/dist/esm/verify/verify.js.map +7 -0
  483. package/dist/esm/version.d.ts +2 -0
  484. package/dist/esm/version.js +7 -0
  485. package/dist/esm/version.js.map +7 -0
  486. package/dist/esm/zklogin/address.d.ts +1 -0
  487. package/dist/esm/zklogin/address.js +24 -0
  488. package/dist/esm/zklogin/address.js.map +7 -0
  489. package/dist/esm/zklogin/bcs.d.ts +46 -0
  490. package/dist/esm/zklogin/bcs.js +22 -0
  491. package/dist/esm/zklogin/bcs.js.map +7 -0
  492. package/dist/esm/zklogin/index.d.ts +5 -0
  493. package/dist/esm/zklogin/index.js +13 -0
  494. package/dist/esm/zklogin/index.js.map +7 -0
  495. package/dist/esm/zklogin/jwt-utils.d.ts +5 -0
  496. package/dist/esm/zklogin/jwt-utils.js +82 -0
  497. package/dist/esm/zklogin/jwt-utils.js.map +7 -0
  498. package/dist/esm/zklogin/publickey.d.ts +69 -0
  499. package/dist/esm/zklogin/publickey.js +177 -0
  500. package/dist/esm/zklogin/publickey.js.map +7 -0
  501. package/dist/esm/zklogin/signature.d.ts +23 -0
  502. package/dist/esm/zklogin/signature.js +28 -0
  503. package/dist/esm/zklogin/signature.js.map +7 -0
  504. package/dist/esm/zklogin/utils.d.ts +2 -0
  505. package/dist/esm/zklogin/utils.js +26 -0
  506. package/dist/esm/zklogin/utils.js.map +7 -0
  507. package/dist/tsconfig.esm.tsbuildinfo +1 -0
  508. package/dist/tsconfig.tsbuildinfo +1 -0
  509. package/faucet/package.json +6 -0
  510. package/graphql/package.json +6 -0
  511. package/graphql/schemas/2024.1/package.json +6 -0
  512. package/graphql/schemas/2024.4/package.json +6 -0
  513. package/keypairs/ed25519/package.json +6 -0
  514. package/keypairs/secp256k1/package.json +6 -0
  515. package/keypairs/secp256r1/package.json +6 -0
  516. package/multisig/package.json +6 -0
  517. package/package.json +160 -0
  518. package/src/bcs/bcs.ts +300 -0
  519. package/src/bcs/effects.ts +200 -0
  520. package/src/bcs/index.ts +87 -0
  521. package/src/bcs/type-tag-serializer.ts +106 -0
  522. package/src/bcs/types.ts +113 -0
  523. package/src/client/client.ts +814 -0
  524. package/src/client/errors.ts +45 -0
  525. package/src/client/http-transport.ts +130 -0
  526. package/src/client/index.ts +21 -0
  527. package/src/client/network.ts +17 -0
  528. package/src/client/rpc-websocket-client.ts +234 -0
  529. package/src/client/types/chain.ts +122 -0
  530. package/src/client/types/changes.ts +11 -0
  531. package/src/client/types/coins.ts +9 -0
  532. package/src/client/types/common.ts +5 -0
  533. package/src/client/types/generated.ts +1508 -0
  534. package/src/client/types/index.ts +9 -0
  535. package/src/client/types/params.ts +584 -0
  536. package/src/cryptography/index.ts +36 -0
  537. package/src/cryptography/intent.ts +22 -0
  538. package/src/cryptography/keypair.ts +130 -0
  539. package/src/cryptography/mnemonics.ts +49 -0
  540. package/src/cryptography/publickey.ts +133 -0
  541. package/src/cryptography/signature-scheme.ts +28 -0
  542. package/src/cryptography/signature.ts +86 -0
  543. package/src/faucet/faucet.ts +130 -0
  544. package/src/faucet/index.ts +10 -0
  545. package/src/graphql/client.ts +110 -0
  546. package/src/graphql/generated/2024-01/tada-env.d.ts +202 -0
  547. package/src/graphql/generated/2024.1/schema.graphql +4168 -0
  548. package/src/graphql/generated/2024.1/tada-env.d.ts +201 -0
  549. package/src/graphql/generated/2024.1/tsconfig.tada.json +11 -0
  550. package/src/graphql/generated/2024.4/schema.graphql +4183 -0
  551. package/src/graphql/generated/2024.4/tada-env.d.ts +202 -0
  552. package/src/graphql/generated/2024.4/tsconfig.tada.json +11 -0
  553. package/src/graphql/index.ts +12 -0
  554. package/src/graphql/schemas/2024.1/index.ts +17 -0
  555. package/src/graphql/schemas/2024.4/index.ts +17 -0
  556. package/src/graphql/types.ts +86 -0
  557. package/src/keypairs/ed25519/ed25519-hd-key.ts +93 -0
  558. package/src/keypairs/ed25519/index.ts +9 -0
  559. package/src/keypairs/ed25519/keypair.ts +151 -0
  560. package/src/keypairs/ed25519/publickey.ts +86 -0
  561. package/src/keypairs/secp256k1/index.ts +9 -0
  562. package/src/keypairs/secp256k1/keypair.ts +151 -0
  563. package/src/keypairs/secp256k1/publickey.ts +91 -0
  564. package/src/keypairs/secp256r1/index.ts +9 -0
  565. package/src/keypairs/secp256r1/keypair.ts +147 -0
  566. package/src/keypairs/secp256r1/publickey.ts +91 -0
  567. package/src/multisig/index.ts +5 -0
  568. package/src/multisig/publickey.ts +356 -0
  569. package/src/multisig/signer.ts +92 -0
  570. package/src/transactions/Commands.ts +178 -0
  571. package/src/transactions/Inputs.ts +68 -0
  572. package/src/transactions/ObjectCache.ts +296 -0
  573. package/src/transactions/Transaction.ts +553 -0
  574. package/src/transactions/TransactionData.ts +296 -0
  575. package/src/transactions/__tests__/Transaction.test.ts +184 -0
  576. package/src/transactions/__tests__/bcs.test.ts +205 -0
  577. package/src/transactions/data/internal.ts +321 -0
  578. package/src/transactions/data/v1.ts +501 -0
  579. package/src/transactions/data/v2.ts +146 -0
  580. package/src/transactions/executor/caching.ts +94 -0
  581. package/src/transactions/executor/parallel.ts +335 -0
  582. package/src/transactions/executor/queue.ts +65 -0
  583. package/src/transactions/executor/serial.ts +131 -0
  584. package/src/transactions/hash.ts +20 -0
  585. package/src/transactions/index.ts +41 -0
  586. package/src/transactions/intents/CoinWithBalance.ts +204 -0
  587. package/src/transactions/json-rpc-resolver.ts +482 -0
  588. package/src/transactions/pure.ts +32 -0
  589. package/src/transactions/serializer.ts +205 -0
  590. package/src/transactions/utils.ts +66 -0
  591. package/src/utils/constants.ts +15 -0
  592. package/src/utils/format.ts +19 -0
  593. package/src/utils/index.ts +29 -0
  594. package/src/utils/sui-types.ts +110 -0
  595. package/src/utils/suins.ts +43 -0
  596. package/src/verify/index.ts +11 -0
  597. package/src/verify/verify.ts +111 -0
  598. package/src/version.ts +7 -0
  599. package/src/zklogin/address.ts +27 -0
  600. package/src/zklogin/bcs.ts +26 -0
  601. package/src/zklogin/index.ts +8 -0
  602. package/src/zklogin/jwt-utils.ts +113 -0
  603. package/src/zklogin/publickey.ts +190 -0
  604. package/src/zklogin/signature.ts +37 -0
  605. package/src/zklogin/utils.ts +33 -0
  606. package/transactions/package.json +6 -0
  607. package/utils/package.json +6 -0
  608. package/verify/package.json +6 -0
  609. package/zklogin/package.json +6 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,905 @@
1
+ # @mysten/sui.js
2
+
3
+ ## 0.0.0-experimental-20240529040124
4
+
5
+ ### Major Changes
6
+
7
+ - a92b03de42: The Typescript SDK has been renamed to `@mysten/sui` and includes many new features and breaking changes.
8
+ See the [full migration guide](https://sdk.mystenlabs.com/typescript/migrations/sui-1.0) for details on how to upgrade.
9
+
10
+ ### Patch Changes
11
+
12
+ - ebdfe7cf21: Add support for more JSON RPC error codes
13
+ - Updated dependencies [a92b03de42]
14
+ - @mysten/bcs@0.0.0-experimental-20240529040124
15
+
16
+ ## 0.54.1
17
+
18
+ ### Patch Changes
19
+
20
+ - 99b112178c: Fix gql.tada dependency issue
21
+
22
+ ## 0.54.0
23
+
24
+ ### Minor Changes
25
+
26
+ - b7f673dbd9: Update versioned graphql schema imports
27
+
28
+ ### Patch Changes
29
+
30
+ - 123b42c75c: Only accept 1 keypair on getSigner method of MultiSigPubKey
31
+
32
+ ## 0.53.0
33
+
34
+ ### Minor Changes
35
+
36
+ - 774bfb41a8: Add MultiSigSigner class to simplify multisig signing
37
+
38
+ ## 0.52.0
39
+
40
+ ### Minor Changes
41
+
42
+ - 929db4976a: Add normalizeSuiNSName and isValidSuiNSName utils, and add a format option to SuiClient.resolveNameServiceNames
43
+
44
+ ## 0.51.2
45
+
46
+ ### Patch Changes
47
+
48
+ - b4ecdb5860: Fix fetch being incorrectly bound to GraphQL client
49
+
50
+ ## 0.51.1
51
+
52
+ ### Patch Changes
53
+
54
+ - 6984dd1e38: Update gql.tada and add type definitions for custom scalars
55
+
56
+ ## 0.51.0
57
+
58
+ ### Minor Changes
59
+
60
+ - 0cafa94027: Remove deprecated types directory
61
+
62
+ ## 0.50.1
63
+
64
+ ### Patch Changes
65
+
66
+ - 4830361fa4: Updated typescript version
67
+ - Updated dependencies [4830361fa4]
68
+ - @mysten/bcs@0.11.1
69
+
70
+ ## 0.50.0
71
+
72
+ ### Minor Changes
73
+
74
+ - a34f1cb67d: Use Bech32 instead of Hex for private key export, supports both Hex and Bech32 for importing
75
+
76
+ ### Patch Changes
77
+
78
+ - a34f1cb67d: deprecate ExportedKeypair
79
+ - c08e3569ef: Export all keypair utilities
80
+ - 9a14e61db4: Allow signer in signAndExecuteTransactionBlock to be a Signer rather than a Keypair
81
+ - 13e922d9b1: Fix multiple shared objects not respecting mutable correctly
82
+ - 220a766d86: Fix WebSocket constructor not being properly assigned in SuiClient HTTP transport
83
+ - Updated dependencies [bae8802fe3]
84
+ - @mysten/bcs@0.11.0
85
+
86
+ ## 0.49.1
87
+
88
+ ### Patch Changes
89
+
90
+ - 9ac0a4ec01: Add extensions to all sdk import paths
91
+ - Updated dependencies [9ac0a4ec01]
92
+ - @mysten/bcs@0.10.1
93
+
94
+ ## 0.49.0
95
+
96
+ ### Minor Changes
97
+
98
+ - e5f9e3ba21: Replace tsup based build to fix issues with esm/cjs dual publishing
99
+
100
+ ### Patch Changes
101
+
102
+ - Updated dependencies [e5f9e3ba21]
103
+ - @mysten/bcs@0.10.0
104
+
105
+ ## 0.48.1
106
+
107
+ ### Patch Changes
108
+
109
+ - dd362ec1d6: Update docs url to sdk.mystenlabs.com
110
+ - Updated dependencies [dd362ec1d6]
111
+ - @mysten/bcs@0.9.1
112
+
113
+ ## 0.48.0
114
+
115
+ ### Minor Changes
116
+
117
+ - cdcfa76c43: Add a new client method for retrieving epoch metrics (suix_getEpochMetrics)
118
+
119
+ ### Patch Changes
120
+
121
+ - Updated dependencies [fce0a08d0f]
122
+ - @mysten/bcs@0.9.0
123
+
124
+ ## 0.47.0
125
+
126
+ ### Minor Changes
127
+
128
+ - 0259aec82: Removed dependency on @open-rpc/client-js and replaced it with standard fetch and WebSocket based APIs
129
+
130
+ If you are using the `subscribeEvent` or `subscribeTransaction` in environments that do not support the `WebSocket` api natively (This will be true for most versions of Node.js) you will need to provide a WebSocket implementation when creating your SuiClient. You can either use a global polyfill for the WebSocket class, or pass a compatible WebSocket implementation into SuiHTTPTransport (eg, using the `ws` package)
131
+
132
+ ```typescript
133
+ import { getFullnodeUrl, SuiClient, SuiHTTPTransport } from '@mysten/sui.js/client';
134
+ import { WebSocket } from 'ws';
135
+
136
+ new SuiClient({
137
+ transport: new SuiHTTPTransport({
138
+ url: getFullnodeUrl('mainnet'),
139
+ // The typescript definitions may not match perfectly, casting to never avoids these minor incompatibilities
140
+ WebSocketConstructor: WebSocket as never,
141
+ }),
142
+ });
143
+ ```
144
+
145
+ - 64d45ba27: Add support for zklogin sig inside multisig
146
+
147
+ ### Patch Changes
148
+
149
+ - 194c980cb: Properly determine shared object mutability when being passed by value.
150
+ - 9ac7e2f3d: Add additional type exports to zklogin package
151
+
152
+ ## 0.46.1
153
+
154
+ ### Patch Changes
155
+
156
+ - 652bcdd92: Remove some multisig methods that had previously been deprecated and are no longer exported
157
+
158
+ ## 0.46.0
159
+
160
+ ### Minor Changes
161
+
162
+ - 093554a0d: Remove deprecated framework code.
163
+
164
+ ### Patch Changes
165
+
166
+ - 28c2c3330: Use the same issuer string in address derivation for the two google's iss values
167
+ - 43444c58f: Extend the `TransactionBlock#object()` API to accept the `TransactionResult` type as well, so that it can be used flexibly in SDKs.
168
+ - 8d1e74e52: Fix setting gasPrice for devInspectTransactionBlock
169
+ - 3718a230b: Adds `txb.pure.id()` to pass ID pure values more intuitively
170
+
171
+ ## 0.45.1
172
+
173
+ ### Patch Changes
174
+
175
+ - 30b47b758: Fix formatting when parsing addresses with bcs.Address
176
+
177
+ ## 0.45.0
178
+
179
+ ### Minor Changes
180
+
181
+ - b9afb5567: adds "transfer to object" (receivingRef) support
182
+
183
+ ## 0.44.0
184
+
185
+ ### Minor Changes
186
+
187
+ - 11cf4e68b: Remove deprecated methods.
188
+
189
+ ### Patch Changes
190
+
191
+ - b48289346: Mark packages as being side-effect free.
192
+ - Updated dependencies [b48289346]
193
+ - @mysten/bcs@0.8.1
194
+
195
+ ## 0.43.3
196
+
197
+ ### Patch Changes
198
+
199
+ - 004fb1991: Export TransactionResult type
200
+
201
+ ## 0.43.2
202
+
203
+ ### Patch Changes
204
+
205
+ - 9b052166d: Register Option enum to sdk bcs registry
206
+
207
+ ## 0.43.1
208
+
209
+ ### Patch Changes
210
+
211
+ - faa13ded9: Ensure that TransactionBlocks can be copied via structuredClone to workaround bug in sui wallet
212
+ - c5684bb52: rename zk to zkLogin
213
+
214
+ ## 0.43.0
215
+
216
+ ### Minor Changes
217
+
218
+ - 781d073d9: Update getFaucetRequestStatus to GET request
219
+ - e4484852b: Improve APIs for building transaction inputs
220
+
221
+ - txb.splitCoins now accepts `amounts`` as raw JavaScript number
222
+ - txb.transferObjects now accepts `address` as JavaScript string
223
+ - All single objects, or lists of objects, now also accepts object IDs as JavaScript strings
224
+ - txb.pure accepts `SerializedBcs` (eg `txb.pure(bcs.U64.serialize(123))`)
225
+ - Added pure helpers (`txb.pure.address()`, `txb.bool()`, and `txb.pure.u{8-256}()`) to simplify serialization of pure values
226
+ - Deprecated using `txb.pure` with raw JavaScript values, or an explicit type argument.
227
+
228
+ - 1bc430161: Updated BCS defintions to use new BCS schema builder
229
+
230
+ ### Patch Changes
231
+
232
+ - 3764c464f: - add support for basic parsing of zkLogin signatures
233
+ - new zklogin package
234
+ - 71e0a3197: zklogin improvements
235
+
236
+ - use new bcs api
237
+ - rename `toBufferBE` to `toBigEndianBytes`
238
+ - stop exporting `ZkLoginSignatureInputs` and `extractClaimValue`
239
+
240
+ - Updated dependencies [1bc430161]
241
+ - Updated dependencies [e4484852b]
242
+ - @mysten/bcs@0.8.0
243
+
244
+ ## 0.42.0
245
+
246
+ ### Minor Changes
247
+
248
+ - fd8589806: Remove all previously deprecated exports from @mysten/sui.js
249
+
250
+ ## 0.41.2
251
+
252
+ ### Patch Changes
253
+
254
+ - Updated dependencies [290c8e640]
255
+ - @mysten/bcs@0.7.4
256
+
257
+ ## 0.41.1
258
+
259
+ ### Patch Changes
260
+
261
+ - 24c21e1f0: Fix defaults not being applied correctly in websocket client
262
+
263
+ ## 0.41.0
264
+
265
+ ### Minor Changes
266
+
267
+ - ba8e3b857: Rename TransactionBlock generated type in @mysten/sui.js/client to SuiTransactionBlock to avoid conflicting names in exports
268
+
269
+ ### Patch Changes
270
+
271
+ - f4b7b3474: Adds zk signature scheme
272
+
273
+ ## 0.40.0
274
+
275
+ ### Minor Changes
276
+
277
+ - a503cad34: Add exports to `@mysten/sui.js/client` for rpc method params
278
+
279
+ ### Patch Changes
280
+
281
+ - 8281e3d25: Add new `sign` method to the TransactionBlock class, so that implementing transaction signing is easier.
282
+
283
+ ## 0.39.0
284
+
285
+ ### Minor Changes
286
+
287
+ - 47ea5ec7c: Update keypair signature methods to return bytes as a base64 encoded string for better compatability
288
+
289
+ ## 0.38.0
290
+
291
+ ### Minor Changes
292
+
293
+ - 67e581a5a: Added FromOrToAddress Transaction Filter
294
+ - cce6ffbcc: Add toSuiPublicKey method for retrieving the Sui representation of a raw public key
295
+ - 0f06d593a: Added a MultiSigPublicKey class for verifying multisig signatures
296
+ - 09f4ed3fc: update signMessage to correctly wrap PersonalMessages before signing
297
+ - 6d41059c7: Deprecate imports from the root path which can be imported from a modular export
298
+ - cc6441f46: The Sui TS SDK has been broken up into a set of modular exports, and all exports from the root of
299
+ the package have been deprecated. The following export paths have been added:
300
+
301
+ - `@mysten/sui.js/client` - A client for interacting with Sui RPC nodes.
302
+ - `@mysten/sui.js/bcs` - A BCS builder with pre-defined types for Sui.
303
+ - `@mysten/sui.js/transaction` - Utilities for building and interacting with transactions.
304
+ - `@mysten/sui.js/keypairs/*` - Modular exports for specific KeyPair implementations.
305
+ - `@mysten/sui.js/verify` - Methods for verifying transactions and messages.
306
+ - `@mysten/sui.js/cryptography` - Shared types and classes for cryptography.
307
+ - `@mysten/sui.js/multisig` - Utilities for working with multisig signatures.
308
+ - `@mysten/sui.js/utils` - Utilities for formatting and parsing various Sui types.
309
+ - `@mysten/sui.js/faucet`- Methods for requesting sui from a faucet.
310
+
311
+ As part of this refactor we are deprecating a number of existing APIs:
312
+
313
+ - `JsonRPCProvider` - This Provider pattern is being replaced by a new `SuiClient`
314
+ - `SignerWithProver` and `RawSigner` - The Concept of Signers is being removed from the SDK. Signing
315
+ in verifying has been moved to the KeyPair classes, and the `signAndExecuteTransactionBlock`
316
+ method has been moved to the new `SuiClient`.
317
+ - The `superstruct` type definitions for types used by JsonRPCProvider are being replaced with
318
+ generated types exported from `@mysten/sui.js/client`. The new type definitions are pure
319
+ typescript types and can't be used for runtime validation. By generating these as types, it will
320
+ be easier to keep them in sync with the RPC definitions and avoid discrepancies between the type
321
+ definitions in the SDK and the data returned by RPC methods.
322
+ - A large number of "getters" are being deprecated. These getters were intended to reduce friction
323
+ caused by rapid iteration in the RPC layer leading up to the mainnet launch. Now that mainnet has
324
+ been launched the RPC API should be more stable, and many of these helpers can be replaced by
325
+ simply accessing the nested properties in the returned data directly.
326
+
327
+ The current release should be mostly backwards compatible, and all existing exports will continue to
328
+ be available in this release (with deprecation warnings). With the large number of deprecations
329
+ there may be functionality that should be moved into the new modular version of the SDK. If you find
330
+ there are features that were deprecated without a suitable replacement, we have created a
331
+ [Github Discussion thread](https://github.com/MystenLabs/sui/discussions/13150) to track those
332
+ use-cases.
333
+
334
+ #### Migrating imports
335
+
336
+ To migrate imports, you should be able to hover over the deprecated import in the editor of you
337
+ choice, this should provide either the deprecation message letting you know where to import the
338
+ replacement from, or a like "The declaration was marked as deprecated here." with a link to the
339
+ deprecation comment which will tell you how to update your import
340
+
341
+ #### Migrating JsonRpcProvider
342
+
343
+ The new SuiClient should mostly work as a drop in replacement for the `JsonRpcProvider` provider.
344
+ Setting up a `SuiClient` is slightly different, but once constructed should work just like a
345
+ provider.
346
+
347
+ ```diff
348
+ - import { JsonRpcProvider, devnetConnection } from '@mysten/sui.js';
349
+ + import { SuiClient, getFullnodeUrl } from '@mysten/sui.js/client';
350
+
351
+ - const provider = new JsonRpcProvider(localnetConnection);
352
+ + const client = new SuiClient({ url: getFullnodeUrl('localnet')});
353
+ ```
354
+
355
+ #### Signing TransactionBlocks
356
+
357
+ Signing and sending transaction blocks has change slightly with the deprecation of the `Signer`
358
+ pattern:
359
+
360
+ ```diff
361
+ - import {
362
+ - Ed25519Keypair,
363
+ - JsonRpcProvider,
364
+ - RawSigner,
365
+ - TransactionBlock,
366
+ - localnetConnection,
367
+ - } from '@mysten/sui.js';
368
+ + import { Ed25519Keypair } from '@mysten/sui.js/keypairs/ed25519';
369
+ + import { SuiClient, getFullnodeUrl } from '@mysten/sui.js/client';
370
+ + import { TransactionBlock } from '@mysten/sui.js/transactions';
371
+
372
+ const keypair = new Ed25519Keypair()
373
+ - const provider = new JsonRpcProvider(localnetConnection);
374
+ - const signer = new RawSigner(keyPair, provider);
375
+ + const client = new SuiClient({ url: getFullnodeUrl('localnet')});
376
+
377
+ - const result = await signer.signAndExecuteTransactionBlock({
378
+ + const result = await client.signAndExecuteTransactionBlock({
379
+ + signer: keypair,
380
+ transactionBlock: tx,
381
+ options: { ... }
382
+ })
383
+ ```
384
+
385
+ #### Migrating faucet requests
386
+
387
+ The ability to request Sui from a faucet was not added to `SuiClient`, instead you will need to use
388
+ a method `@mysten/sui.js/faucet` to make these requests
389
+
390
+ ```diff
391
+ - import { JsonRpcProvider, devnetConnection } from '@mysten/sui.js';
392
+ - const provider = new JsonRpcProvider(devnetConnection);
393
+ + import { requestSuiFromFaucetV0, getFaucetHost } from '@mysten/sui.js/faucet';
394
+
395
+ - await provider.requestSuiFromFaucet(
396
+ - '<YOUR SUI ADDRESS>'
397
+ - );
398
+ + await requestSuiFromFaucetV0({
399
+ + host: getFaucetHost('devnet'),
400
+ + recipient: '<YOUR SUI ADDRESS>',
401
+ +});
402
+ ```
403
+
404
+ - 001148443: Introduce new `@mysten/sui.js/faucet` export, which should be used for all faucet interactions. This deprecates the previous `requestSuiFromFaucet` APIs that existed on the `JsonRpcProvider` and `Signer` classes.
405
+
406
+ ### Patch Changes
407
+
408
+ - ad46f9f2f: add getAllEpochAddressMetrics method to rpc-provider
409
+ - 34242be56: Add new `isTransactionBlock` method, and deprecate the previous `TransactionBlock.is` method
410
+ - 4e2a150a1: websocket client memory leak fix in reconnect logics
411
+ - 83d0fb734: Deprecate type aliases for strings.
412
+
413
+ ## 0.37.1
414
+
415
+ ### Patch Changes
416
+
417
+ - 34cc7d610: Fix unhandled rejections thrown by waitForTransaction
418
+
419
+ ## 0.37.0
420
+
421
+ ### Minor Changes
422
+
423
+ - 93794f9f2: Update build to avoid bundling for better modularity
424
+ - a17d3678a: Add keypair exports to allow modular imports for various keypair types
425
+
426
+ ### Patch Changes
427
+
428
+ - 36f2edff3: Use splitGenericParamaters util from bcs
429
+ - 75d1a190d: Fix bug that prevented deserializing transaction blocks with a set expiration
430
+ - c3a4ec57c: Add explicit dependency on events package
431
+ - 2f37537d5: Update `SuiEventFilter` structure for `TimeRange` query.
432
+ - 00484bcc3: add method to create Ed25519Keypair from a mnemonic seed
433
+ - Updated dependencies [36f2edff3]
434
+ - @mysten/bcs@0.7.3
435
+
436
+ ## 0.36.0
437
+
438
+ ### Minor Changes
439
+
440
+ - 3ea9adb71a: Add multisig support
441
+ - 1cfb1c9da3: The `TransactionBlock` builder now uses the protocol config from the chain when constructing and validating transactions, instead of using hard-coded limits. If you wish to perform signing offline (without a provider), you can either define a `protocolConfig` option when building a transaction, or explicitly set `limits`, which will be used instead of the protocol config.
442
+ - fb3bb9118a: Remove logging of RPCValidation errors when typescript types do not match RPC response types
443
+
444
+ ### Patch Changes
445
+
446
+ - 1cfb1c9da3: Added `getProtocolConfig()` method to the provider.
447
+ - Updated dependencies [ca5c72815d]
448
+ - Updated dependencies [fdb569464e]
449
+ - @mysten/bcs@0.7.2
450
+
451
+ ## 0.35.1
452
+
453
+ ### Patch Changes
454
+
455
+ - 09d77325a9: Add new SuiNS Toolkit package.
456
+
457
+ ## 0.35.0
458
+
459
+ ### Minor Changes
460
+
461
+ - 470c27af50: Added network address metrics
462
+ - 671faefe3c: Add `getChainIdentifier` method
463
+ - 9ce7e051b4: Update internal client to use `@open-rpc/client-js` instead of `jayson` and `rpc-websockets`. This results in a more consistent experience and better error messaging.
464
+
465
+ ### Patch Changes
466
+
467
+ - 4ea96d909a: the event BCS data is a base64 string
468
+ - bcbb178c44: Fixes BCS definition so it matches the RPC one
469
+ - 03828224c9: Previously, effects had an unwrapped_then_deleted field on ts-sdk. This is an issue since jsonrpc returns the field as unwrappedThenDeleted. Update the transaction type definition to use camelcase.
470
+ - 9ce7e051b4: Add `subscribeTransaction` method.
471
+ - bb50698551: Fixes BCS type definition in the type layout
472
+
473
+ ## 0.34.1
474
+
475
+ ### Patch Changes
476
+
477
+ - 85719ac933: Add `tryGetPastObject` support in the provider.
478
+ - c3d9cc87f3: Update ts-sdk e2e test to reflect new rpc error language
479
+ - 02a6063f82: Add `normalizeStructTag` and `parseStructTag` helper functions
480
+
481
+ ## 0.34.0
482
+
483
+ ### Minor Changes
484
+
485
+ - 280821e0ab: Add "mainnet" connection to the list of available connections
486
+
487
+ ### Patch Changes
488
+
489
+ - 6a9abe9e38: Fix `type` field in MakeMoveVec
490
+
491
+ ## 0.33.0
492
+
493
+ ### Minor Changes
494
+
495
+ - 7915de531: Strip disassembled modules from publish/upgrade transaction inputs.
496
+ - e61ed2bac: Added new TransactionFilter fields
497
+
498
+ ### Patch Changes
499
+
500
+ - 6f9fc94ca: Increase max size of pure inputs
501
+ - 605eac8c6: Bugfix for makeMoveVec when not providing type arguments.
502
+ - 262e3dfdd: Add support for account switching in Wallet Kit.
503
+ - 91c63e4f8: Fix transaction building with >50 input objects.
504
+ - 5053a8dc8: Add getValidatorsApy to rpc
505
+
506
+ ## 0.32.2
507
+
508
+ ### Patch Changes
509
+
510
+ - 4ae3cbea3: Response for `getCoinMetadata` is now nullable, in the event that no metadata can be found.
511
+ - d2755a496: Fix dependency on msw
512
+ - f612dac98: Change the default gas budgeting to take storage rebates into account.
513
+ - c219e7470: Changed the response type of `getRpcApiVersion` to string.
514
+ - 59ae0e7d6: Removed `skipDataValidation` option, this is now not configurable and is the default behavior.
515
+ - c219e7470: Fix type of `limit` on `getCheckpoints` and `getEpochs` API so that is correctly a number.
516
+ - 4e463c691: Add `waitForTransactionBlock` API to wait for a transaction to be available over the API.
517
+ - b4f0bfc76: Fix type definitions for package exports.
518
+ - Updated dependencies [b4f0bfc76]
519
+ - @mysten/bcs@0.7.1
520
+
521
+ ## 0.32.1
522
+
523
+ ### Patch Changes
524
+
525
+ - 3224ffcd0: Adding support for the `upgrade` transaction type.
526
+
527
+ ## 0.32.0
528
+
529
+ ### Minor Changes
530
+
531
+ - 9b42d0ada: This release replaces all uint64 and uint128 numbers with BigInt in all JSON RPC responses to preserve precision. This is a Major Breaking Change - you must update your TS-SDK to latest version
532
+
533
+ ## 0.31.0
534
+
535
+ ### Minor Changes
536
+
537
+ - 976d3e1fe: Add new `getNetworkMetrics` endpoint to JSONRPCProvider.
538
+ - 5a4e3e416: Change getOwnedObject to ignore checkpoint and return latest objects
539
+
540
+ ### Patch Changes
541
+
542
+ - 0419b7c53: Match ts Publish schema to rust sdk
543
+ - f3c096e3a: Fix PaginatedObjectsResponse schema
544
+ - 27dec39eb: Make getOwnedObjects backward compatible from 0.29 to 0.30.
545
+
546
+ ## 0.30.0
547
+
548
+ ### Minor Changes
549
+
550
+ - 956ec28eb: Change `signMessage` to return message bytes. Add support for sui:signMessage in the wallet standard
551
+ - 4adfbff73: Use Blake2b instead of sha3_256 for address generation
552
+ - 4c4573ebe: Removed DevInspectResultsType and now DevInspectResults has a property results of ExecutionResultType and a property error
553
+ - acc2edb31: Update schema for `SuiSystemState` and `DelegatedStake`
554
+ - 941b03af1: Change functions in transactions.ts of ts-sdk such that: `getTotalGasUsed` and `getTotalGasUsedUpperBound` of ts-sdk return a `bigint`,fields of `gasCostSummary` are defined as `string`, `epochId` is defined as `string`. In `sui-json-rpc` the corresponding types are defined as `BigInt`. Introduce `SuiEpochId` type to `sui-json-rpc` types that is a `BigInt`.
555
+ - a6690ac7d: Changed the default behavior of `publish` to publish an upgreadeable-by-sender package instead of immutable.
556
+ - a211dc03a: Change object digest from Base64 encoded to Base58 encoded for rpc version >= 0.28.0
557
+ - 4c1e331b8: Gas budget is now optional, and will automatically be computed by executing a dry-run when not provided.
558
+ - 19b567f21: Unified self- and delegated staking flows. Removed fields from `Validator` (`stake_amount`, `pending_stake`, and `pending_withdraw`) and renamed `delegation_staking_pool` to `staking_pool`. Additionally removed the `validator_stake` and `delegated_stake` fields in the `ValidatorSet` type and replaced them with a `total_stake` field.
559
+ - 7659e2e91: Introduce new `Transaction` builder class, and deprecate all existing methods of sending transactions. The new builder class is designed to take full advantage of Programmable Transactions. Any transaction using the previous `SignableTransaction` interface will be converted to a `Transaction` class when possible, but this interface will be fully removed soon.
560
+ - 0d3cb44d9: Change all snake_case field in ts-sdk normalized.ts to camelCase.
561
+ - 36c264ebb: Remove `generateTransactionDigest`. Use one of the following instead: `signer.getTransactionDigest`, `Transaction.getDigest()` or `TransactionDataBuilder.getDigestFromBytes()` instead.
562
+ - 891abf5ed: Remove support for RPC Batch Request in favor of multiGetTransactions and multiGetObjects
563
+ - 2e0ef59fa: Added VALIDATORS_EVENTS_QUERY
564
+ - 33cb357e1: Change functions in json-rpc-provider.ts of ts-sdk such that: `getTotalTransactionBlocks`, `getReferenceGasPrice` return a `bigint`, `getLatestCheckpointSequenceNumber` returns a `string`, `gasPrice` of `devInspectTransactionBlock` is defined as a `string`, checkpoint sequence number of `getCheckpoint` is defined as a `string`, `cursor` of `getCheckpoints` is defined as a `string`. Introduce `SuiCheckpointSequenceNumber` type in sui-json-rpc-types that is a `BigInt` to use instead of `CheckpointSequenceNumber` of sui-types.
565
+ - 6bd88570c: Rework all coin APIs to take objects as arguments instead of positional arguments.
566
+ - f1e42f792: Consolidate get_object and get_raw_object into a single get_object endpoint which now takes an additional config parameter with type `SuiObjectDataOptions` and has a new return type `SuiObjectResponse`. By default, only object_id, version, and digest are fetched.
567
+ - 272389c20: Support for new versioned TransactionData format
568
+ - 3de8de361: Remove `getSuiSystemState` method. Use `getLatestSuiSystemState` method instead.
569
+ - be3c4f51e: Add `display` field in `SuiObjectResponse` for frontend rendering. See more details in https://forums.sui.io/t/nft-object-display-proposal/4872
570
+ - dbe73d5a4: Update `executeTransaction` and `signAndExecuteTransaction` to take in an additional parameter `SuiTransactionBlockResponseOptions` which is used to specify which fields to include in `SuiTransactionBlockResponse` (e.g., transaction, effects, events, etc). By default, only the transaction digest will be included.
571
+ - c82e4b454: Introduce BigInt struct to sui-json-rpc-types to serialize and deserialize amounts to/from string. Change ts-sdk to serialize amounts of PaySui and Pay as string.
572
+ - 7a2eaf4a3: Changing the SuiObjectResponse struct to use data/error fields instead of details/status
573
+ - 2ef2bb59e: Deprecate getTransactionDigestsInRange. This method will be removed before April 2023, please use `getTransactions` instead
574
+ - 9b29bef37: Pass blake2b hash to signer API
575
+ - 8700809b5: Add a new `getCheckpoints` endpoint that returns a paginated list of checkpoints.
576
+ - 5c3b00cde: Add object id to staking pool and pool id to staked sui.
577
+ - 01272ab7d: Remove deprecated `getCheckpointContents`, `getCheckpointContentsByDigest`, `getCheckpointSummary` and `getCheckpointSummaryByDigest` methods.
578
+ - 9822357d6: Add getStakesByIds to get DelegatedStake queried by id
579
+ - 3d9a04648: Adds `deactivation_epoch` to staking pool object, and adds `inactive_pools` to the validator set object.
580
+ - da72e73a9: Change the address of Move package for staking and validator related Move modules.
581
+ - a0955c479: Switch from 20 to 32-byte address. Match Secp256k1.deriveKeypair with Ed25519.
582
+ - 0c9047698: Remove all gas selection APIs from the json rpc provider.
583
+ - d5ef1b6e5: Added dependencies to publish command, dependencies now also returned from the sui move CLI with the `--dump-bytecode-as-base64` flag
584
+ - 0a7b42a6d: This changes almost all occurences of "delegate", "delegation" (and various capitalizations/forms) to their equivalent "stake"-based name. Function names, function argument names, RPC endpoints, Move functions, and object fields have been updated with this new naming convention.
585
+ - 3de8de361: Remove `getValidators` API. Use `getLatestSuiSystemState` instead.
586
+ - dd348cf03: Refactor `getTransactions` to `queryTransactions`
587
+ - 57c17e02a: Removed `JsonRpcProviderWithCache`, use `JsonRpcProvider` instead.
588
+ - 65f1372dd: Rename `provider.getTransactionWithEffects` to `provider.getTransaction`. The new method takes in an additional parameter `SuiTransactionBlockResponseOptions` to configure which fields to fetch(transaction, effects, events, etc). By default, only the transaction digest will be returned.
589
+ - a09239308: [testing only] an intent scope can be passed in to verifyMessage
590
+ - fe335e6ba: Removed usage of `cross-fetch` in the TypeScript SDK. If you are running in an environment that does not have `fetch` defined, you will need to polyfill it.
591
+ - 5dc25faad: Remove getTransactionDigestsInRange from the SDK
592
+ - 64234baaf: added combined `getCheckpoint` endpoint for retrieving information about a checkpoint
593
+ - d3170ba41: All JSON-RPC APIs now accept objects instead of positional arugments.
594
+ - a6ffb8088: Removed events from transaction effects, TransactionEvents will now be provided in the TransactionResponse, along side TransactionEffects.
595
+ - 3304eb83b: Refactor Rust SuiTransactionBlockKind to be internally tagged for Json serialization with tag="type" and SuiEvent to be adjacently tagged with tag="type" and content="content"
596
+ - 4189171ef: Adds support for validator candidate.
597
+ - 77bdf907f: When parsing u64, u128, and u256 values with bcs, they are now string encoded.
598
+ - a74df16ec: Minor change to the system transaction format
599
+ - 0f7aa6507: Switching the response type of the getOwnedObjects api to a paginatedObjects response, and also moving filtering to FN
600
+ - 9b60bf700: Change all snake_case fields in checkpoint.ts and faucet.ts to camelCase
601
+ - 64fb649eb: Remove old `SuiExecuteTransactionResponse` interface, and `CertifiedTransaction` interface in favor of the new unified `SuiTransactionBlockResponse` interfaces.
602
+ - a6b0c4e5f: Changed the getOwnerObjectsForAddress api to getOwnedObjects, and added options/ pagination to the parameters
603
+
604
+ ### Patch Changes
605
+
606
+ - 00bb9bb66: Correct "consensus_address" in ValidatorMetadata to "primary_address"
607
+ - 14ba89144: Change StakingPool structure by removing pool token supply and adding exchange rates.
608
+ - 3eb3a1de8: Make Ed25519 ExportedKeyPair only use 32 bytes seed.
609
+ - 4593333bd: Add optional parameter for filtering object by type in getOwnedObjectsByAddress
610
+ - 79c2165cb: Remove locked coin staking
611
+ - 210840114: Add cross-env to prepare:e2e script for Windows machines functionality
612
+ - Updated dependencies [19b567f21]
613
+ - Updated dependencies [5c3b00cde]
614
+ - Updated dependencies [3d9a04648]
615
+ - Updated dependencies [a8049d159]
616
+ - Updated dependencies [a0955c479]
617
+ - Updated dependencies [0a7b42a6d]
618
+ - Updated dependencies [77bdf907f]
619
+ - @mysten/bcs@0.7.0
620
+
621
+ ## 0.29.1
622
+
623
+ ### Patch Changes
624
+
625
+ - 31bfcae6a: Make arguments field optional for MoveCall to match Rust definition. This fixes a bug where the Explorer page does not load for transactions with no argument.
626
+
627
+ ## 0.29.0
628
+
629
+ ### Minor Changes
630
+
631
+ - f2e713bd0: Add TransactionExpiration to TransactionData
632
+ - 4baf554f1: Make fromSecretKey take the 32 bytes privkey
633
+ - aa650aa3b: Introduce new `Connection` class, which is used to define the endpoints that are used when interacting with the network.
634
+ - 6ff0c785f: Use DynamicFieldName struct instead of string for dynamic field's name
635
+
636
+ ### Patch Changes
637
+
638
+ - f1e3a0373: Expose rpcClient and websocketClient options
639
+ - 0e202a543: Remove pending delegation switches.
640
+ - 67e503c7c: Move base58 libraries to BCS
641
+ - Updated dependencies [0e202a543]
642
+ - @mysten/bcs@0.6.1
643
+
644
+ ## 0.28.0
645
+
646
+ ### Minor Changes
647
+
648
+ - a67cc044b: Transaction signatures are now serialized into a single string, and all APIs that previously took the public key, signature, and scheme now just take the single serialized signature string. To help make parsing this easier, there are new `toSerializedSignature` and `toParsedSignaturePubkeyPair` methods exposed as well.
649
+ - a67cc044b: The RawSigner now provides a `signTransaction` function, which can be used to sign a transaction without submitting it to the network.
650
+ - a67cc044b: The RawSigner now provides a `signMessage` function that can be used to sign personal messages. The SDK also now exports a `verifyMessage` function that can be used to easily verify a message signed with `signMessage`.
651
+
652
+ ### Patch Changes
653
+
654
+ - 24bdb66c6: Include client type and version in RPC client request headers
655
+ - Updated dependencies [598f106ef]
656
+ - @mysten/bcs@0.6.0
657
+
658
+ ## 0.27.0
659
+
660
+ ### Minor Changes
661
+
662
+ - 473005d8f: Add protocol_version to CheckpointSummary and SuiSystemObject. Consolidate end-of-epoch information in CheckpointSummary.
663
+ - 59641dc29: Support for deserializing new ConsensusCommitPrologue system transaction
664
+ - 629804d26: Remove usage of `Base64DataBuffer`, and use `Uint8Array` instead.
665
+ - f51c85e85: remove get_objects_owned_by_object and replace it with get_dynamic_fields
666
+
667
+ ### Patch Changes
668
+
669
+ - fcba70206: Add basic formatting utilities
670
+ - ebe6c3945: Support deserializing `paySui` and `payAllSui` transactions
671
+ - e630f6832: Added string option to getCheckpointContents call in SDK to support 0.22.0
672
+
673
+ ## 0.26.1
674
+
675
+ ### Patch Changes
676
+
677
+ - 97c46ca9d: Support calling Move function with "option" parameter
678
+
679
+ ## 0.26.0
680
+
681
+ ### Minor Changes
682
+
683
+ - a8746d4e9: update SuiExecuteTransactionResponse
684
+ - e6a71882f: Rename getDelegatedStake to getDelegatedStakes
685
+ - 21781ba52: Secp256k1 signs 64-bytes signature [r, s] instead of [r, s, v] with recovery id
686
+
687
+ ### Patch Changes
688
+
689
+ - 034158656: Allow passing Pure args directly in Move call
690
+ - 57fc4dedd: Fix gas selection logic to take gas price into account
691
+ - e6a71882f: Add convenience methods in RpcTxnDataSerializer for building staking transactions
692
+ - b3ba6dfbc: Support Genesis transaction kind
693
+
694
+ ## 0.25.0
695
+
696
+ ### Minor Changes
697
+
698
+ - 7b4bf43bc: Support for interacting with Devnet v0.24+ where Move Calls refer to their packages by ObjectID only (not ObjectRef).
699
+
700
+ ### Patch Changes
701
+
702
+ - ebfdd5c56: Adding Checkpoint APIs for ts sdk
703
+ - 72481e759: Updated to new dev inspect transaction layout
704
+ - 969a88669: RPC requests errors now don't include the html response text (to keep message shorter)
705
+
706
+ ## 0.24.0
707
+
708
+ ### Minor Changes
709
+
710
+ - 88a687834: Add methods for the CoinRead endpoints
711
+
712
+ ### Patch Changes
713
+
714
+ - 01458ffd5: Fix websocket default port for DevNet
715
+ - a274ecfc7: Make previousTransaction optional for CoinStruct to support v0.22 network where it doesn't exist
716
+ - 89091ddab: change estimator logic to use upper bound
717
+ - 71bee7563: fix creating websocket url
718
+
719
+ ## 0.23.0
720
+
721
+ ### Minor Changes
722
+
723
+ - e26f47cbf: added getDelegatedStake and getValidators and validator type
724
+ - b745cde24: Add a call(endpoint, params) method to invoke any RPC endpoint
725
+ - 35e0df780: EventID should use TransactionDigest instead of TxSequence
726
+ - 5cd51dd38: Deprecate sui_executeTransaction in favor of sui_executeTransactionSerializedSig
727
+ - 8474242af: Add methods for getDynamicFields and getDynamicFieldObject
728
+ - f74181212: Add method to deserialize a public key, using it's schema and base64 data
729
+
730
+ ### Patch Changes
731
+
732
+ - f3444bdf2: fix faucet response type
733
+ - 01efa8bc6: Add getReferenceGasPrice
734
+ - 01efa8bc6: Use reference gas price instead of a hardcoded "1" for transaction construction
735
+
736
+ ## 0.22.0
737
+
738
+ ### Minor Changes
739
+
740
+ - a55236e48: Add gas price field to RPC transaction data type
741
+
742
+ ### Patch Changes
743
+
744
+ - 8ae226dae: Fix schema validation bug in Coin.newPayTransaction
745
+
746
+ ## 0.21.0
747
+
748
+ ### Minor Changes
749
+
750
+ - 4fb12ac6d: - removes `transfer` function from framework Coin
751
+ - renames `newTransferTx` function from framework Coin to `newPayTransaction`. Also it's now a public method and without the need of signer so a dapp can use it
752
+ - fixes edge cases with pay txs
753
+ - bb14ffdc5: Remove ImmediateReturn and WaitForTxCert from ExecuteTransactionRequestType
754
+ - d2015f815: Rebuilt type-narrowing utilties (e.g. `isSuiObject`) on top of Superstruct, which should make them more reliable.
755
+ The type-narrowing functions are no longer exported, instead a Superstruct schema is exported, in addition to an `is` and `assert` function, both of which can be used to replace the previous narrowing functions. For example, `isSuiObject(data)` becomes `is(data, SuiObject)`.
756
+ - 7d0f25b61: Add devInspectTransaction, which is similar to dryRunTransaction, but lets you call any Move function(including non-entry function) with arbitrary values.
757
+
758
+ ### Patch Changes
759
+
760
+ - 9fbe2714b: Add devInspectMoveCall, which is similar to devInspectTransaction, but lets you call any Move function without a gas object and budget
761
+
762
+ ## 0.20.0
763
+
764
+ ### Minor Changes
765
+
766
+ - ea71d8216: Use intent signing if sui version > 0.18
767
+
768
+ ### Patch Changes
769
+
770
+ - f93b59f3a: Fixed usage of named export for CommonJS module
771
+
772
+ ## 0.19.0
773
+
774
+ ### Minor Changes
775
+
776
+ - 6c1f81228: Remove signature from trasaction digest hash
777
+ - 519e11551: Allow keypairs to be exported
778
+ - b03bfaec2: Add getTransactionAuthSigners endpoint
779
+
780
+ ### Patch Changes
781
+
782
+ - b8257cecb: add missing int types
783
+ - f9be28a42: Fix bug in Coin.isCoin
784
+ - 24987df35: Regex change for account index for supporting multiple accounts
785
+
786
+ ## 0.18.0
787
+
788
+ ### Minor Changes
789
+
790
+ - 66021884e: Send serialized signature with new executeTransactionSerializedSig endpoint
791
+ - 7a67d61e2: Unify TxnSerializer interface
792
+ - 2a0b8e85d: Add base58 encoding for TransactionDigest
793
+
794
+ ### Patch Changes
795
+
796
+ - 45293b6ff: Replace `getCoinDenominationInfo` with `getCoinMetadata`
797
+ - 7a67d61e2: Add method in SignerWithProvider for calculating transaction digest
798
+
799
+ ## 0.17.1
800
+
801
+ ### Patch Changes
802
+
803
+ - 623505886: Fix callArg serialization bug in LocalTxnSerializer
804
+
805
+ ## 0.17.0
806
+
807
+ ### Minor Changes
808
+
809
+ - a9602e533: Remove deprecated events API
810
+ - db22728c1: \* adds dryRunTransaction support
811
+ - adds getGasCostEstimation to the signer-with-provider that estimates the gas cost for a transaction
812
+ - 3b510d0fc: adds coin transfer method to framework that uses pay and paySui
813
+
814
+ ## 0.16.0
815
+
816
+ ### Minor Changes
817
+
818
+ - 01989d3d5: Remove usage of Buffer within SDK
819
+ - 5e20e6569: Event query pagination and merge all getEvents\* methods
820
+
821
+ ### Patch Changes
822
+
823
+ - Updated dependencies [1a0968636]
824
+ - @mysten/bcs@0.5.0
825
+
826
+ ## 0.15.0
827
+
828
+ ### Minor Changes
829
+
830
+ - c27933292: Update the type of the `endpoint` field in JsonRpcProvider from string to object
831
+
832
+ ### Patch Changes
833
+
834
+ - c27933292: Add util function for faucet
835
+ - 90898d366: Support passing utf8 and ascii string
836
+ - c27933292: Add constants for default API endpoints
837
+ - Updated dependencies [1591726e8]
838
+ - Updated dependencies [1591726e8]
839
+ - @mysten/bcs@0.4.0
840
+
841
+ ## 0.14.0
842
+
843
+ ### Minor Changes
844
+
845
+ - 8b4bea5e2: Remove gateway related APIs
846
+ - e45b188a8: Introduce PaySui and PayAllSui native transaction types to TS SDK.
847
+
848
+ ### Patch Changes
849
+
850
+ - e86f8bc5e: Add `getRpcApiVersion` to Provider interface
851
+ - b4a8ee9bf: Support passing a vector of objects in LocalTxnBuilder
852
+ - ef3571dc8: Fix gas selection bug for a vector of objects
853
+ - cccfe9315: Add deserialization util method to LocalTxnDataSerializer
854
+ - 2dc594ef7: Introduce getCoinDenominationInfo, which returns denomination info of a coin, now only supporting SUI coin.
855
+ - 4f0c611ff: Protocol change to add 'initial shared version' to shared object references.
856
+
857
+ ## 0.13.0
858
+
859
+ ### Minor Changes
860
+
861
+ - 1d036d459: Transactions query pagination and merge all getTransactions\* methods
862
+ - b11b69262: Add gas selection to LocalTxnSerializer
863
+ - b11b69262: Deprecate Gateway related APIs
864
+ - b11b69262: Add rpcAPIVersion to JsonRpcProvider to support multiple RPC API Versions
865
+
866
+ ## 0.12.0
867
+
868
+ ### Minor Changes
869
+
870
+ - e0b173b9e: Standardize Ed25519KeyPair key derivation with SLIP10
871
+ - 059ede517: Flip the default value of `skipDataValidation` to true in order to mitigate the impact of breaking changes on applications. When there's a mismatch between the TypeScript definitions and RPC response, the SDK now log a console warning instead of throwing an error.
872
+ - 03e6b552b: Add util function to get coin balances
873
+ - 4575c0a02: Fix type definition of SuiMoveNormalizedType
874
+ - ccf7f148d: Added generic signAndExecuteTransaction method to the SDK, which can be used with any supported type of transaction.
875
+
876
+ ### Patch Changes
877
+
878
+ - e0b173b9e: Support Pay Transaction type in local transaction serializer
879
+
880
+ ## 0.11.0
881
+
882
+ ### Minor Changes
883
+
884
+ - d343b67e: Re-release packages
885
+
886
+ ### Patch Changes
887
+
888
+ - Updated dependencies [d343b67e]
889
+ - @mysten/bcs@0.3.0
890
+
891
+ ## 0.11.0-pre
892
+
893
+ ### Minor Changes
894
+
895
+ - 5de312c9: Add support for subscribing to events on RPC using "subscribeEvent".
896
+ - 5de312c9: Add support for Secp256k1 keypairs.
897
+
898
+ ### Patch Changes
899
+
900
+ - c5e4851b: Updated build process from TSDX to tsup.
901
+ - a0fdb52e: Updated publish transactions to accept ArrayLike instead of Iterable.
902
+ - e2aa08e9: Fix missing built files for packages.
903
+ - Updated dependencies [c5e4851b]
904
+ - Updated dependencies [e2aa08e9]
905
+ - @mysten/bcs@0.2.1