@augustdigital/sdk 8.19.0 → 8.21.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.
@@ -1,3 +1,4 @@
1
+ import type { Commitment } from '@solana/web3.js';
1
2
  import type { Signer, Provider } from 'ethers';
2
3
  export type IAddress = `0x${string}`;
3
4
  /**
@@ -33,6 +34,20 @@ export type IStellarNetwork = 'mainnet' | 'testnet';
33
34
  export interface ISolanaConfig {
34
35
  rpcUrl: string;
35
36
  network: ISolanaNetwork;
37
+ /**
38
+ * Commitment for every Solana read *and* for the confirmation of every
39
+ * Solana write, so the two always describe the same chain state.
40
+ *
41
+ * Defaults to `'finalized'` — unchanged from the commitment the SDK has
42
+ * always inherited from the RPC. Pass `'confirmed'` for a markedly faster
43
+ * round trip (seconds rather than tens of seconds), accepting that the state
44
+ * you act on can still, in principle, be rolled back.
45
+ *
46
+ * Only read from this object. Configuring Solana through the legacy
47
+ * `providers` map instead leaves the commitment at its default, since this
48
+ * type requires `rpcUrl` and `network` alongside it.
49
+ */
50
+ commitment?: Commitment;
36
51
  }
37
52
  /**
38
53
  * Stellar-specific configuration for `new AugustSDK({ stellar })`. All
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augustdigital/sdk",
3
- "version": "8.19.0",
3
+ "version": "8.21.0",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/sdk.d.ts",
6
6
  "keywords": [