veilix-sdk 0.0.1
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 +275 -0
- package/dist/VeilixSDK-BNEMLchN.d.cts +390 -0
- package/dist/VeilixSDK-COH9bKmD.d.ts +390 -0
- package/dist/circuits/paths.cjs +82 -0
- package/dist/circuits/paths.cjs.map +1 -0
- package/dist/circuits/paths.d.cts +17 -0
- package/dist/circuits/paths.d.ts +17 -0
- package/dist/circuits/paths.js +70 -0
- package/dist/circuits/paths.js.map +1 -0
- package/dist/circuits/withdraw.wasm +0 -0
- package/dist/circuits/withdraw.zkey +0 -0
- package/dist/constants-9OPXLj27.d.cts +46 -0
- package/dist/constants-9OPXLj27.d.ts +46 -0
- package/dist/index.cjs +12427 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +12391 -0
- package/dist/index.js.map +1 -0
- package/dist/react/index.cjs +12449 -0
- package/dist/react/index.cjs.map +1 -0
- package/dist/react/index.d.cts +33 -0
- package/dist/react/index.d.ts +33 -0
- package/dist/react/index.js +12423 -0
- package/dist/react/index.js.map +1 -0
- package/dist/vite/index.cjs +38 -0
- package/dist/vite/index.cjs.map +1 -0
- package/dist/vite/index.d.cts +28 -0
- package/dist/vite/index.d.ts +28 -0
- package/dist/vite/index.js +35 -0
- package/dist/vite/index.js.map +1 -0
- package/package.json +99 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { N as Network, V as VeilixSDK } from '../VeilixSDK-BNEMLchN.cjs';
|
|
2
|
+
import '@solana/web3.js';
|
|
3
|
+
import '@switchboard-xyz/common';
|
|
4
|
+
import '@coral-xyz/anchor';
|
|
5
|
+
import '@coral-xyz/anchor/dist/cjs/provider';
|
|
6
|
+
import '../constants-9OPXLj27.cjs';
|
|
7
|
+
|
|
8
|
+
type UseVeilixSdkOptions = {
|
|
9
|
+
rangeApiKey: string;
|
|
10
|
+
/** Target Solana cluster. */
|
|
11
|
+
network: Network;
|
|
12
|
+
/** Override circuit artifact base path/URL (see {@link VeilixSdkInitOptions.circuitPathsBase}). */
|
|
13
|
+
circuitPathsBase?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* React hook that builds a {@link VeilixSDK} from wallet-adapter context.
|
|
17
|
+
*
|
|
18
|
+
* Requires `ConnectionProvider` and `WalletProvider` ancestors.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* import { useVeilixSdk } from "veilix-sdk/react";
|
|
23
|
+
*
|
|
24
|
+
* function MyComponent() {
|
|
25
|
+
* const sdk = useVeilixSdk({ rangeApiKey: import.meta.env.VITE_RANGE_API_KEY, network: "mainnet" });
|
|
26
|
+
* if (!sdk) return null;
|
|
27
|
+
* // ...
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare function useVeilixSdk(options: UseVeilixSdkOptions): VeilixSDK | null;
|
|
32
|
+
|
|
33
|
+
export { type UseVeilixSdkOptions, useVeilixSdk };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { N as Network, V as VeilixSDK } from '../VeilixSDK-COH9bKmD.js';
|
|
2
|
+
import '@solana/web3.js';
|
|
3
|
+
import '@switchboard-xyz/common';
|
|
4
|
+
import '@coral-xyz/anchor';
|
|
5
|
+
import '@coral-xyz/anchor/dist/cjs/provider';
|
|
6
|
+
import '../constants-9OPXLj27.js';
|
|
7
|
+
|
|
8
|
+
type UseVeilixSdkOptions = {
|
|
9
|
+
rangeApiKey: string;
|
|
10
|
+
/** Target Solana cluster. */
|
|
11
|
+
network: Network;
|
|
12
|
+
/** Override circuit artifact base path/URL (see {@link VeilixSdkInitOptions.circuitPathsBase}). */
|
|
13
|
+
circuitPathsBase?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* React hook that builds a {@link VeilixSDK} from wallet-adapter context.
|
|
17
|
+
*
|
|
18
|
+
* Requires `ConnectionProvider` and `WalletProvider` ancestors.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* import { useVeilixSdk } from "veilix-sdk/react";
|
|
23
|
+
*
|
|
24
|
+
* function MyComponent() {
|
|
25
|
+
* const sdk = useVeilixSdk({ rangeApiKey: import.meta.env.VITE_RANGE_API_KEY, network: "mainnet" });
|
|
26
|
+
* if (!sdk) return null;
|
|
27
|
+
* // ...
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare function useVeilixSdk(options: UseVeilixSdkOptions): VeilixSDK | null;
|
|
32
|
+
|
|
33
|
+
export { type UseVeilixSdkOptions, useVeilixSdk };
|