aftermath-ts-sdk 2.0.0 → 2.1.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/README.md CHANGED
@@ -13,8 +13,8 @@ npm i aftermath-ts-sdk
13
13
  For most integrations, use the Aftermath SDK for simplified access:
14
14
 
15
15
  ```typescript
16
- const afSdk = new Aftermath("MAINNET"); // "MAINNET" | "TESTNET"
17
- await afSdk.init(); // initialize provider
16
+ // "MAINNET" | "TESTNET" | "DEVNET" | "LOCAL"
17
+ const afSdk = await Aftermath.create({ network: "MAINNET" });
18
18
 
19
19
  // Access protocols
20
20
  const router = afSdk.Router();
@@ -29,8 +29,8 @@ const dca = afSdk.Dca();
29
29
  For complex transaction construction, use AftermathApi for direct control:
30
30
 
31
31
  ```typescript
32
- const afSdk = new Aftermath("MAINNET");
33
- const addresses = afSdk.getAddresses();
32
+ const afSdk = await Aftermath.create({ network: "MAINNET" });
33
+ const addresses = await afSdk.getAddresses();
34
34
 
35
35
  const afApi = new AftermathApi(
36
36
  new SuiClient({