@mysten-incubation/hashi 0.4.0 → 0.5.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @mysten-incubation/hashi
2
2
 
3
+ ## 0.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ff9a398: Wire up Sui testnet: add the testnet Hashi object and package ids to `NETWORK_CONFIG` (BTC signet), so `hashi({ network: "testnet" })` works out of the box
8
+
9
+ ### Patch Changes
10
+
11
+ - ff9a398: Bump hashi submodule to cd2b81f (no contract or binding changes)
12
+
3
13
  ## 0.4.0
4
14
 
5
15
  ### Minor Changes
package/README.md CHANGED
@@ -6,7 +6,7 @@ TypeScript SDK for the [Hashi](https://github.com/MystenLabs/hashi) protocol. Ha
6
6
  > **Pre-1.0:** This package is under active development. Minor versions may contain breaking changes until the API stabilizes at 1.0.
7
7
 
8
8
  > [!WARNING]
9
- > Only Sui **devnet** is currently wired up (Bitcoin **signet** by default). Testnet and mainnet are not yet deployed.
9
+ > Sui **testnet** and **devnet** are wired up (Bitcoin **signet** by default). Prefer testnet devnet support is temporary. Mainnet is not yet deployed.
10
10
 
11
11
  ## Install
12
12
 
@@ -26,9 +26,9 @@ import { Ed25519Keypair } from "@mysten/sui/keypairs/ed25519";
26
26
  import { hashi } from "@mysten-incubation/hashi";
27
27
 
28
28
  const client = new SuiGrpcClient({
29
- network: "devnet",
30
- baseUrl: "https://fullnode.devnet.sui.io:443",
31
- }).$extend(hashi({ network: "devnet" }));
29
+ network: "testnet",
30
+ baseUrl: "https://fullnode.testnet.sui.io:443",
31
+ }).$extend(hashi({ network: "testnet" }));
32
32
 
33
33
  const signer = Ed25519Keypair.fromSecretKey(/* … */);
34
34
  const recipient = signer.toSuiAddress();
@@ -60,11 +60,18 @@ const GUARDIAN_PUBLIC_KEY_LEN = 32;
60
60
  * `GUARDIAN_BTC_PUBLIC_KEY_LEN` in `hashi::config`.
61
61
  */
62
62
  const GUARDIAN_BTC_PUBLIC_KEY_LEN = 32;
63
- const NETWORK_CONFIG = { devnet: {
64
- hashiObjectId: "0x84081242ebb05eac5e09ab2a930a60b1357d3d8bc6f927380979f72de991ccca",
65
- packageId: "0xa877d4d97b6a8bae1da982a84980c502c5ad2ead4b24e6c8e50c57cd6ddc3771",
66
- bitcoinNetwork: "signet"
67
- } };
63
+ const NETWORK_CONFIG = {
64
+ devnet: {
65
+ hashiObjectId: "0x84081242ebb05eac5e09ab2a930a60b1357d3d8bc6f927380979f72de991ccca",
66
+ packageId: "0xa877d4d97b6a8bae1da982a84980c502c5ad2ead4b24e6c8e50c57cd6ddc3771",
67
+ bitcoinNetwork: "signet"
68
+ },
69
+ testnet: {
70
+ hashiObjectId: "0x22c0ce66ce09df2dc88a31bd320d4177b766518b9b88010368cfbdcd724528f8",
71
+ packageId: "0xfcea10cadbb553c4874201584abf68771592678952efd957b2e82c010c7f4360",
72
+ bitcoinNetwork: "signet"
73
+ }
74
+ };
68
75
 
69
76
  //#endregion
70
77
  export { DUST_RELAY_MIN_VALUE, GUARDIAN_BTC_PUBLIC_KEY_LEN, GUARDIAN_PUBLIC_KEY_LEN, NETWORK_CONFIG, NETWORK_HRP, NUMS_KEY };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mysten-incubation/hashi",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "TypeScript SDK for the Hashi Sui Move smart contracts",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Mysten Labs <build@mystenlabs.com>",