@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.
- package/lib/adapters/solana/index.d.ts +42 -8
- package/lib/adapters/solana/index.js +39 -2
- package/lib/adapters/solana/utils.d.ts +54 -3
- package/lib/adapters/solana/utils.js +101 -18
- package/lib/adapters/solana/vault.actions.d.ts +37 -7
- package/lib/adapters/solana/vault.actions.js +231 -81
- package/lib/adapters/sui/constants.d.ts +1 -1
- package/lib/adapters/sui/constants.js +6 -1
- package/lib/core/analytics/sentry.d.ts +7 -0
- package/lib/core/analytics/sentry.js +182 -1
- package/lib/core/analytics/version.d.ts +1 -1
- package/lib/core/analytics/version.js +1 -1
- package/lib/core/constants/core.js +42 -15
- package/lib/core/constants/web3.d.ts +17 -0
- package/lib/core/constants/web3.js +22 -1
- package/lib/core/helpers/chain-support.d.ts +80 -0
- package/lib/core/helpers/chain-support.js +115 -0
- package/lib/core/helpers/web3.d.ts +20 -1
- package/lib/core/helpers/web3.js +51 -5
- package/lib/core/index.d.ts +1 -0
- package/lib/core/index.js +1 -0
- package/lib/main.js +7 -1
- package/lib/modules/vaults/getters.js +109 -21
- package/lib/modules/vaults/main.d.ts +24 -3
- package/lib/modules/vaults/main.js +32 -31
- package/lib/sdk.d.ts +11376 -11153
- package/lib/types/web3.d.ts +15 -0
- package/package.json +1 -1
package/lib/types/web3.d.ts
CHANGED
|
@@ -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
|