@quartz-labs/sdk 0.1.6 → 0.1.7

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.
@@ -0,0 +1,8 @@
1
+ export type { BN } from "@coral-xyz/anchor";
2
+ export { QuartzClient } from "./client.js";
3
+ export { QuartzUser } from "./user.js";
4
+ export * from "./config/constants.js";
5
+ export * from "./utils/helpers.js";
6
+ import type { Wallet } from "@coral-xyz/anchor/dist/cjs/provider.js";
7
+ export type { Wallet };
8
+ //# sourceMappingURL=index.browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../src/index.browser.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AAEnC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AACrE,YAAY,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { QuartzClient } from "./client.js";
2
+ export { QuartzUser } from "./user.js";
3
+ export * from "./config/constants.js";
4
+ export * from "./utils/helpers.js";
5
+ //# sourceMappingURL=index.browser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.browser.js","sourceRoot":"","sources":["../src/index.browser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -3,9 +3,5 @@ export { QuartzClient } from "./client.js";
3
3
  export { QuartzUser } from "./user.js";
4
4
  export * from "./config/constants.js";
5
5
  export * from "./utils/helpers.js";
6
- import type { Wallet } from "@coral-xyz/anchor/dist/cjs/provider.js";
7
- export type { Wallet };
8
- import { Wallet as NodeWallet } from "@coral-xyz/anchor/dist/cjs/index.js";
9
- import type { Keypair } from "@solana/web3.js";
10
- export declare const getWallet: (keypair: Keypair) => NodeWallet;
6
+ export { Wallet } from "@coral-xyz/anchor";
11
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AAEnC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AACrE,YAAY,EAAE,MAAM,EAAE,CAAC;AAEvB,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/C,eAAO,MAAM,SAAS,YAAa,OAAO,eAMzC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC"}
package/dist/index.js CHANGED
@@ -2,12 +2,5 @@ export { QuartzClient } from "./client.js";
2
2
  export { QuartzUser } from "./user.js";
3
3
  export * from "./config/constants.js";
4
4
  export * from "./utils/helpers.js";
5
- import { Wallet as NodeWallet } from "@coral-xyz/anchor/dist/cjs/index.js";
6
- export const getWallet = (keypair) => {
7
- if (typeof window === "undefined") {
8
- const wallet = new NodeWallet(keypair);
9
- return wallet;
10
- }
11
- throw new Error("NodeWallet is not available in Node.js environment");
12
- };
5
+ export { Wallet } from "@coral-xyz/anchor";
13
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AAKnC,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAE3E,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,OAAgB,EAAE,EAAE;IAC1C,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAChC,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC;QACvC,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;AAC1E,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quartz-labs/sdk",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "SDK for interacting with the Quartz Protocol",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,8 +17,16 @@
17
17
  "type": "module",
18
18
  "exports": {
19
19
  ".": {
20
- "import": "./dist/index.js",
21
- "types": "./dist/index.d.ts"
20
+ "types": "./dist/index.d.ts",
21
+ "browser": {
22
+ "import": "./dist/index.browser.js",
23
+ "require": "./dist/index.browser.js"
24
+ },
25
+ "node": {
26
+ "import": "./dist/index.js",
27
+ "require": "./dist/index.js"
28
+ },
29
+ "default": "./dist/index.js"
22
30
  }
23
31
  },
24
32
  "repository": {
@@ -56,7 +64,9 @@
56
64
  "bn.js": "^5.2.1"
57
65
  },
58
66
  "peerDependencies": {
59
- "@solana/web3.js": "^1.98.0",
67
+ "@solana/web3.js": "^1.98.0"
68
+ },
69
+ "optionalDependencies": {
60
70
  "rpc-websockets": "^9.0.2"
61
71
  }
62
72
  }