@flaunch/sdk 0.6.0 → 0.7.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 +25 -41
- package/dist/index.cjs.js +24 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +24 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/sdk/factory.d.ts +21 -0
- package/dist/sdk/factory.d.ts.map +1 -0
- package/package.json +3 -4
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { PublicClient, WalletClient } from "viem";
|
|
2
|
+
import { ReadFlaunchSDK, ReadWriteFlaunchSDK } from "./FlaunchSDK";
|
|
3
|
+
export type CreateFlaunchParams = {
|
|
4
|
+
publicClient: PublicClient;
|
|
5
|
+
walletClient?: WalletClient;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Creates a read-only Flaunch SDK instance with only public client
|
|
9
|
+
* @param params - Parameters with only publicClient
|
|
10
|
+
* @returns ReadFlaunchSDK for read-only operations
|
|
11
|
+
* @throws Error if publicClient.chain is not configured
|
|
12
|
+
*/
|
|
13
|
+
export declare function createFlaunch(params: Omit<CreateFlaunchParams, "walletClient">): ReadFlaunchSDK;
|
|
14
|
+
/**
|
|
15
|
+
* Creates a read-write Flaunch SDK instance with both public and wallet clients
|
|
16
|
+
* @param params - Parameters with both publicClient and walletClient
|
|
17
|
+
* @returns ReadWriteFlaunchSDK for read and write operations
|
|
18
|
+
* @throws Error if publicClient.chain is not configured
|
|
19
|
+
*/
|
|
20
|
+
export declare function createFlaunch(params: Required<CreateFlaunchParams>): ReadWriteFlaunchSDK;
|
|
21
|
+
//# sourceMappingURL=factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/sdk/factory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnE,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,IAAI,CAAC,mBAAmB,EAAE,cAAc,CAAC,GAChD,cAAc,CAAC;AAClB;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GACpC,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flaunch/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Flaunch SDK to easily interact with the Flaunch protocol",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Apoorv Lathey <apoorv@flayer.io>",
|
|
@@ -73,14 +73,13 @@
|
|
|
73
73
|
"typescript": "^5.3.3"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
+
"@delvtech/drift": "^0.8.4",
|
|
77
|
+
"@delvtech/drift-viem": "^0.8.4",
|
|
76
78
|
"@uniswap/v3-sdk": "^3.24.1",
|
|
77
79
|
"axios": "^1.8.1",
|
|
78
80
|
"react": "^19.0.0",
|
|
79
81
|
"viem": "^2.29.2"
|
|
80
82
|
},
|
|
81
|
-
"peerDependencies": {
|
|
82
|
-
"@delvtech/drift": "^0.8.4"
|
|
83
|
-
},
|
|
84
83
|
"scripts": {
|
|
85
84
|
"build": "tsc --emitDeclarationOnly && rollup -c",
|
|
86
85
|
"dev": "rollup -c -w",
|