@pufferfinance/puffer-sdk 1.0.1-0 → 1.0.2
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/dist/api/puffer-client-helpers.d.ts +34 -0
- package/dist/main-CiwlneBr.js.map +1 -1
- package/dist/main-DY0whdxp.cjs.map +1 -1
- package/package.json +1 -1
- package/dist/lib/api/puffer-client-helpers.d.ts +0 -6218
- package/dist/test/mocks/mock-request.d.ts +0 -5
- package/dist/test/mocks/setup-mock-clients.d.ts +0 -6455
- /package/dist/{lib/api → api}/puffer-client-helpers.test.d.ts +0 -0
- /package/dist/{lib/api → api}/puffer-client.d.ts +0 -0
- /package/dist/{lib/api → api}/puffer-client.test.d.ts +0 -0
- /package/dist/{lib/chains → chains}/constants.d.ts +0 -0
- /package/dist/{lib/contracts → contracts}/abis/abis.d.ts +0 -0
- /package/dist/{lib/contracts → contracts}/abis/anvil/PufferVaultV2.d.ts +0 -0
- /package/dist/{lib/contracts → contracts}/abis/holesky/PufferVaultV2.d.ts +0 -0
- /package/dist/{lib/contracts → contracts}/abis/mainnet/PufferVaultV2.d.ts +0 -0
- /package/dist/{lib/contracts → contracts}/addresses.d.ts +0 -0
- /package/dist/{lib/contracts → contracts}/handlers/puffer-vault-handler.d.ts +0 -0
- /package/dist/{lib/contracts → contracts}/handlers/puffer-vault-handler.test.d.ts +0 -0
- /package/dist/{lib/errors → errors}/base-error.d.ts +0 -0
- /package/dist/{lib/errors → errors}/types.d.ts +0 -0
- /package/dist/{lib/errors → errors}/validation-errors.d.ts +0 -0
- /package/dist/{lib/errors → errors}/validation-errors.test.d.ts +0 -0
- /package/dist/{lib/main.d.ts → main.d.ts} +0 -0
- /package/dist/{lib/utils → utils}/types.d.ts +0 -0
- /package/dist/{lib/utils → utils}/version.d.ts +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CustomTransportConfig, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
import { Chain } from '../chains/constants';
|
|
3
|
+
import { TransportProvider } from '../utils/types';
|
|
4
|
+
|
|
5
|
+
export type ClientConfig = {
|
|
6
|
+
chain: Chain;
|
|
7
|
+
} & ({
|
|
8
|
+
rpcUrls: string[];
|
|
9
|
+
} | {
|
|
10
|
+
provider: TransportProvider;
|
|
11
|
+
config?: CustomTransportConfig;
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* Helper methods for the main `PufferClient`.
|
|
15
|
+
*/
|
|
16
|
+
export declare class PufferClientHelpers {
|
|
17
|
+
/**
|
|
18
|
+
* Helper method for creating a public client based on the
|
|
19
|
+
* configuration
|
|
20
|
+
*
|
|
21
|
+
* @param config Configuration for the public client.
|
|
22
|
+
* @returns The public client created with viem.
|
|
23
|
+
*/
|
|
24
|
+
static createPublicClient(config: ClientConfig): PublicClient;
|
|
25
|
+
/**
|
|
26
|
+
* Helper method for creating a wallet client based on the
|
|
27
|
+
* configuration
|
|
28
|
+
*
|
|
29
|
+
* @param config Configuration for the wallet client.
|
|
30
|
+
* @returns The wallet client created with viem.
|
|
31
|
+
*/
|
|
32
|
+
static createWalletClient(config: ClientConfig): WalletClient;
|
|
33
|
+
private static extractTransportConfig;
|
|
34
|
+
}
|