@trustwallet/cli 0.20.0 → 0.22.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.
@@ -1 +1 @@
1
- {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EAIb,MAAM,YAAY,CAAC;AAEpB,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAMzD;AAKD,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE7C;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE3C;AAED,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE1C;AAED,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE1C;AAED,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEzC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,YAAY,CAKxD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,GAAG,IAAI,CAS5F;AAED,wBAAgB,QAAQ,IAAI,IAAI,CAa/B"}
1
+ {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EAKb,MAAM,YAAY,CAAC;AAEpB,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAMzD;AAKD,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE7C;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE3C;AAED,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE1C;AAED,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE1C;AAED,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEzC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,YAAY,CAKxD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,GAAG,IAAI,CAS5F;AAED,wBAAgB,QAAQ,IAAI,IAAI,CAa/B"}
@@ -0,0 +1,19 @@
1
+ import { WalletConnectProvider } from '@twak/wallet';
2
+ /** Upper bound for resuming a stored WalletConnect session (relay round-trip). */
3
+ export declare const RESTORE_TIMEOUT_MS = 10000;
4
+ /** The single WalletConnect session file shared by every twak command. */
5
+ export declare function wcStoragePath(): string;
6
+ /** Trust Wallet's WalletConnect project, used when none is configured.
7
+ * Project IDs are public identifiers (every web dApp ships one), not secrets. */
8
+ export declare const DEFAULT_WC_PROJECT_ID = "a863b78b54c4222603c8db4d6d880172";
9
+ /**
10
+ * Project ID resolution shared by `serve` and `wallet` commands:
11
+ * CLI flag, then WALLETCONNECT_PROJECT_ID, then ~/.twak/credentials.json
12
+ * (set by `twak init --wc-project-id`), then the built-in Trust Wallet project.
13
+ */
14
+ export declare function resolveWcProjectId(flag?: string): Promise<string>;
15
+ /** A provider bound to the shared session file. */
16
+ export declare function createWalletConnectProvider(projectId: string): WalletConnectProvider;
17
+ /** Rejects with NETWORK_ERROR when `promise` does not settle within `ms`. */
18
+ export declare function withTimeout<T>(promise: Promise<T>, ms: number): Promise<T>;
19
+ //# sourceMappingURL=walletconnect-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walletconnect-config.d.ts","sourceRoot":"","sources":["../src/walletconnect-config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAGrD,kFAAkF;AAClF,eAAO,MAAM,kBAAkB,QAAS,CAAC;AAEzC,0EAA0E;AAC1E,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AAED;iFACiF;AACjF,eAAO,MAAM,qBAAqB,qCAAqC,CAAC;AAExE;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CASvE;AAED,mDAAmD;AACnD,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,MAAM,GAAG,qBAAqB,CAMpF;AAED,6EAA6E;AAC7E,wBAAsB,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAahF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/cli",
3
- "version": "0.20.0",
3
+ "version": "0.22.0",
4
4
  "description": "TWAK CLI — command-line interface for Trust Wallet Agent Kit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,19 +33,19 @@
33
33
  "tsup": "8.5.1",
34
34
  "typescript": "5.7.3",
35
35
  "vitest": "4.1.2",
36
- "@twak/actions": "0.20.0",
37
- "@twak/contracts": "0.20.0",
38
- "@twak/core": "0.20.0",
39
- "@twak/mcp": "0.20.0",
40
- "@twak/operations": "0.20.0",
41
- "@twak/security": "0.20.0",
42
- "@twak/storage": "0.20.0",
43
- "@twak/swap": "0.20.0",
44
- "@twak/transactions": "0.20.0",
45
- "@twak/wallet": "0.20.0",
46
- "@twak/wallet-core": "0.20.0",
47
- "@twak/walletconnect": "0.20.0",
48
- "@twak/x402": "0.20.0"
36
+ "@twak/actions": "0.22.0",
37
+ "@twak/contracts": "0.22.0",
38
+ "@twak/security": "0.22.0",
39
+ "@twak/operations": "0.22.0",
40
+ "@twak/transactions": "0.22.0",
41
+ "@twak/swap": "0.22.0",
42
+ "@twak/storage": "0.22.0",
43
+ "@twak/wallet-core": "0.22.0",
44
+ "@twak/walletconnect": "0.22.0",
45
+ "@twak/x402": "0.22.0",
46
+ "@twak/wallet": "0.22.0",
47
+ "@twak/core": "0.22.0",
48
+ "@twak/mcp": "0.22.0"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"