@human.tech/waap-sdk 1.0.2 → 1.0.4-staging.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.
@@ -5,6 +5,7 @@ export type ArrayOneOrMore<T> = {
5
5
  export interface RequestArguments {
6
6
  method: string;
7
7
  params?: unknown[] | object;
8
+ async?: boolean;
8
9
  }
9
10
  export interface EthereumProviderInterface {
10
11
  enable(): Promise<unknown>;
@@ -30,6 +31,12 @@ export interface InitSilkOptions {
30
31
  config?: CustomConfig;
31
32
  useStaging?: boolean;
32
33
  walletConnectProjectId?: string;
33
- forceIframe?: boolean;
34
+ /**
35
+ * When true, modal closes immediately on confirm and signing happens in background.
36
+ * Events are emitted to notify the app of progress (waap_sign_pending, waap_sign_complete, waap_tx_confirmed, etc.)
37
+ * Applies to ALL transactions for this SDK instance.
38
+ * Default: false
39
+ */
40
+ asyncSigning?: boolean;
34
41
  }
35
42
  export type SilkProvider = SilkEthereumProviderInterface;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@human.tech/waap-sdk",
3
- "version": "1.0.2",
3
+ "version": "1.0.4-staging.0",
4
4
  "description": "SDK for interacting with WaaP",
5
5
  "source": "src/index.ts",
6
6
  "types": "./dist/index.d.ts",
@@ -18,6 +18,12 @@
18
18
  "publishConfig": {
19
19
  "access": "public"
20
20
  },
21
+ "scripts": {
22
+ "build": "microbundle",
23
+ "build-to-publish": "microbundle --define process.env.NODE_ENV=production",
24
+ "build:inline-deps": "microbundle --external none --define process.env.NODE_ENV=production",
25
+ "dev": "microbundle watch"
26
+ },
21
27
  "files": [
22
28
  "/dist",
23
29
  "src/global.d.ts"
@@ -30,40 +36,45 @@
30
36
  "@human.tech/waap-constants": "silkConstants",
31
37
  "@human.tech/waap-interface-core": "silkInterfaceCore",
32
38
  "@reown/appkit-adapter-ethers": "appkitAdapterEthers",
33
- "events": "EventEmitter"
39
+ "events": "EventEmitter",
40
+ "react": "React"
34
41
  },
35
42
  "external": [
36
43
  "@human.tech/waap-constants",
37
44
  "@human.tech/waap-interface-core",
38
45
  "@reown/appkit-adapter-ethers",
39
- "events"
46
+ "events",
47
+ "react"
40
48
  ]
41
49
  },
42
50
  "devDependencies": {
43
51
  "@types/chrome": "^0.0.246",
44
52
  "@types/events": "^3.0.0",
45
53
  "@types/node": "18.15.11",
54
+ "@types/react": "^18.0.0",
46
55
  "eslint": "8.38.0",
47
56
  "eslint-plugin-jest": "^27.2.3",
48
57
  "microbundle": "^0.15.1",
49
- "typescript": "^5.0.4",
50
- "eslint-config-custom": "0.0.0"
58
+ "typescript": "^5.0.4"
59
+ },
60
+ "peerDependencies": {
61
+ "react": ">=16.8.0"
62
+ },
63
+ "peerDependenciesMeta": {
64
+ "react": {
65
+ "optional": true
66
+ }
51
67
  },
52
68
  "dependencies": {
69
+ "@human.tech/waap-constants": "workspace:*",
70
+ "@human.tech/waap-interface-core": "workspace:*",
53
71
  "@metamask/rpc-errors": "^5.1.1",
54
- "@reown/appkit": "^1.7.6",
55
- "@reown/appkit-adapter-ethers": "^1.7.8",
72
+ "@reown/appkit": "^1.8.17",
73
+ "@reown/appkit-adapter-ethers": "^1.8.17",
74
+ "ethers": "^6.16.0",
56
75
  "events": "^3.3.0",
57
76
  "pino-pretty": "^10.2.0",
58
77
  "zod": "^3.21.4",
59
- "zod-validation-error": "^1.3.0",
60
- "@human.tech/waap-constants": "0.0.1",
61
- "@human.tech/waap-interface-core": "0.1.0"
62
- },
63
- "scripts": {
64
- "build": "microbundle",
65
- "build-to-publish": "microbundle --define process.env.NODE_ENV=production",
66
- "build:inline-deps": "microbundle --external none --define process.env.NODE_ENV=production",
67
- "dev": "microbundle watch"
78
+ "zod-validation-error": "^1.3.0"
68
79
  }
69
- }
80
+ }