@meshconnect/uwc-types 0.15.1-snapshot.dd1e191 → 0.16.0-snapshot.03fa2e7

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.
@@ -18,9 +18,10 @@ export interface DetectedTronWalletInfo {
18
18
  uuid: string;
19
19
  name: string;
20
20
  /**
21
- * Canonical `namespaceMetaData.tron.injectedId` for the detected wallet (the
22
- * dotted window path, e.g. `tronLink`). Lets discovery match catalog-driven
23
- * wallets whose `id` is not a `TronWalletId` (e.g. a backend GUID).
21
+ * The `namespaceMetaData.tron.injectedId` used to detect this wallet the
22
+ * value from the consumer's metadata, reported verbatim (the dotted window
23
+ * path, e.g. `tronLink`). Lets discovery match results back to catalog
24
+ * wallets whose `id` is not a stable wallet key (e.g. a backend GUID).
24
25
  */
25
26
  injectedId?: string;
26
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"UWC-state.d.ts","sourceRoot":"","sources":["../src/UWC-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAExC,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;A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C,gDAAgD;QAChD,oBAAoB,CAAC,EAAE,YAAY,CAAA;KACpC,CAAA;CACF;AAED,yEAAyE;AACzE,MAAM,WAAW,wBAAwB;IACvC,mBAAmB,EAAE,SAAS,EAAE,CAAA;IAChC;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,4EAA4E;AAC5E,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAA;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;CAC/B;AAGD,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACrD,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,CAAC,CAAA;IACX,yBAAyB,CAAC,EAAE,yBAAyB,CAAA;IACrD,iCAAiC,CAAC,EAAE,iCAAiC,CAAA;IACrE,qBAAqB,CAAC,EAAE,qBAAqB,CAAA;IAC7C,kBAAkB,CAAC,EAAE,wBAAwB,CAAA;CAC9C"}
@@ -1,9 +1,13 @@
1
1
  import type { NetworkId } from './networks';
2
2
  /**
3
- * Stable Tron wallet identifiers, used as the per-wallet feature-flag key.
4
- * The string form must match the `WalletMetadata.id` callers pass in.
3
+ * Per-wallet feature-flag key for `enabledWallets`. An entry matches a wallet
4
+ * when it equals (case-insensitively) either the wallet's `WalletMetadata.id`
5
+ * or its `namespaceMetaData.tron.injectedId`. It is an open `string` because the
6
+ * connector is metadata-driven — the wallet set comes from the passed-in
7
+ * metadata, not a compiled union — so any backend-configured Tron wallet can be
8
+ * gated without a UWC release.
5
9
  */
6
- export type TronWalletId = 'tronlink' | 'bitget' | 'okx' | 'tokenpocket' | 'trust';
10
+ export type TronWalletId = string;
7
11
  /** Config for the Tron full-node (TronGrid) HTTP client used to build/broadcast. */
8
12
  export interface TronGridConfig {
9
13
  /**
@@ -25,17 +29,31 @@ export interface TronGridConfig {
25
29
  * `UniversalWalletConnector` once the core wiring lands; until then it is
26
30
  * supplied directly when constructing a `TronConnector`.
27
31
  *
28
- * The `enabledWallets` set is the per-wallet feature-flag surface: it gates
29
- * both discovery and connect dispatch, so a single wallet can be ramped up or
30
- * disabled in production independently of the others. Passing an empty set/array
31
- * effectively disables the connector.
32
+ * The `enabledWallets` set is an OPTIONAL per-wallet feature-flag surface. When
33
+ * omitted, the connector is fully catalog-driven: every wallet whose metadata
34
+ * declares a `namespaceMetaData.tron.injectedId` is enabled the backend
35
+ * (Retool) is the single source of truth. Provide it only to gate a subset, so a
36
+ * single wallet can be ramped up or disabled in production independently of the
37
+ * others. Passing an empty set/array enables nothing (disables the connector).
32
38
  */
33
39
  export interface TronConnectorConfig {
34
40
  /**
35
- * Wallet ids to enable. Wallets not in this set are neither surfaced by
41
+ * Optional allow-list of wallets to enable, matched against each wallet's
42
+ * `WalletMetadata.id` or its `namespaceMetaData.tron.injectedId`
43
+ * (case-insensitive). Wallets not enabled are neither surfaced by
36
44
  * `getAvailableWallets` nor connectable.
45
+ *
46
+ * **Omit it** to enable every wallet the passed-in metadata marks Tron-capable
47
+ * (the recommended, catalog-driven default — consumers then need no hardcoded
48
+ * wallet list). An **empty** set/array enables nothing.
49
+ *
50
+ * Matching by `WalletMetadata.id` requires the wallet metadata to be available
51
+ * — i.e. `getAvailableWallets` is called with `expectedWallets` (the standard
52
+ * path via core). A standalone caller that invokes `getAvailableWallets`
53
+ * without `expectedWallets` has only the configured keys to go on, so those
54
+ * keys must be **injectedIds** (e.g. `tronLink`, not `tronlink`).
37
55
  */
38
- enabledWallets: ReadonlySet<TronWalletId> | readonly TronWalletId[];
56
+ enabledWallets?: ReadonlySet<TronWalletId> | readonly TronWalletId[];
39
57
  /** Full-node endpoints, API key, and TRC20 fee limit. */
40
58
  tronGrid?: TronGridConfig;
41
59
  /** Timeout (ms) for the per-wallet injection probe during `connect()`. Default: 3000. */
@@ -1 +1 @@
1
- {"version":3,"file":"tron-connector.d.ts","sourceRoot":"","sources":["../src/tron-connector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C;;;GAGG;AACH,MAAM,MAAM,YAAY,GACpB,UAAU,GACV,QAAQ,GACR,KAAK,GACL,aAAa,GACb,OAAO,CAAA;AAEX,oFAAoF;AACpF,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAA;IAC9C,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,cAAc,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,SAAS,YAAY,EAAE,CAAA;IAEnE,yDAAyD;IACzD,QAAQ,CAAC,EAAE,cAAc,CAAA;IAEzB,yFAAyF;IACzF,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAE5B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B,8DAA8D;IAC9D,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC"}
1
+ {"version":3,"file":"tron-connector.d.ts","sourceRoot":"","sources":["../src/tron-connector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AAEjC,oFAAoF;AACpF,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAA;IAC9C,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;;;;;;;;;;;OAeG;IACH,cAAc,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,SAAS,YAAY,EAAE,CAAA;IAEpE,yDAAyD;IACzD,QAAQ,CAAC,EAAE,cAAc,CAAA;IAEzB,yFAAyF;IACzF,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAE5B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B,8DAA8D;IAC9D,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshconnect/uwc-types",
3
- "version": "0.15.1-snapshot.dd1e191",
3
+ "version": "0.16.0-snapshot.03fa2e7",
4
4
  "description": "TypeScript types for Universal Wallet Connector",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/UWC-state.ts CHANGED
@@ -22,9 +22,10 @@ export interface DetectedTronWalletInfo {
22
22
  uuid: string
23
23
  name: string
24
24
  /**
25
- * Canonical `namespaceMetaData.tron.injectedId` for the detected wallet (the
26
- * dotted window path, e.g. `tronLink`). Lets discovery match catalog-driven
27
- * wallets whose `id` is not a `TronWalletId` (e.g. a backend GUID).
25
+ * The `namespaceMetaData.tron.injectedId` used to detect this wallet the
26
+ * value from the consumer's metadata, reported verbatim (the dotted window
27
+ * path, e.g. `tronLink`). Lets discovery match results back to catalog
28
+ * wallets whose `id` is not a stable wallet key (e.g. a backend GUID).
28
29
  */
29
30
  injectedId?: string
30
31
  }
@@ -1,15 +1,14 @@
1
1
  import type { NetworkId } from './networks'
2
2
 
3
3
  /**
4
- * Stable Tron wallet identifiers, used as the per-wallet feature-flag key.
5
- * The string form must match the `WalletMetadata.id` callers pass in.
4
+ * Per-wallet feature-flag key for `enabledWallets`. An entry matches a wallet
5
+ * when it equals (case-insensitively) either the wallet's `WalletMetadata.id`
6
+ * or its `namespaceMetaData.tron.injectedId`. It is an open `string` because the
7
+ * connector is metadata-driven — the wallet set comes from the passed-in
8
+ * metadata, not a compiled union — so any backend-configured Tron wallet can be
9
+ * gated without a UWC release.
6
10
  */
7
- export type TronWalletId =
8
- | 'tronlink'
9
- | 'bitget'
10
- | 'okx'
11
- | 'tokenpocket'
12
- | 'trust'
11
+ export type TronWalletId = string
13
12
 
14
13
  /** Config for the Tron full-node (TronGrid) HTTP client used to build/broadcast. */
15
14
  export interface TronGridConfig {
@@ -33,17 +32,31 @@ export interface TronGridConfig {
33
32
  * `UniversalWalletConnector` once the core wiring lands; until then it is
34
33
  * supplied directly when constructing a `TronConnector`.
35
34
  *
36
- * The `enabledWallets` set is the per-wallet feature-flag surface: it gates
37
- * both discovery and connect dispatch, so a single wallet can be ramped up or
38
- * disabled in production independently of the others. Passing an empty set/array
39
- * effectively disables the connector.
35
+ * The `enabledWallets` set is an OPTIONAL per-wallet feature-flag surface. When
36
+ * omitted, the connector is fully catalog-driven: every wallet whose metadata
37
+ * declares a `namespaceMetaData.tron.injectedId` is enabled the backend
38
+ * (Retool) is the single source of truth. Provide it only to gate a subset, so a
39
+ * single wallet can be ramped up or disabled in production independently of the
40
+ * others. Passing an empty set/array enables nothing (disables the connector).
40
41
  */
41
42
  export interface TronConnectorConfig {
42
43
  /**
43
- * Wallet ids to enable. Wallets not in this set are neither surfaced by
44
+ * Optional allow-list of wallets to enable, matched against each wallet's
45
+ * `WalletMetadata.id` or its `namespaceMetaData.tron.injectedId`
46
+ * (case-insensitive). Wallets not enabled are neither surfaced by
44
47
  * `getAvailableWallets` nor connectable.
48
+ *
49
+ * **Omit it** to enable every wallet the passed-in metadata marks Tron-capable
50
+ * (the recommended, catalog-driven default — consumers then need no hardcoded
51
+ * wallet list). An **empty** set/array enables nothing.
52
+ *
53
+ * Matching by `WalletMetadata.id` requires the wallet metadata to be available
54
+ * — i.e. `getAvailableWallets` is called with `expectedWallets` (the standard
55
+ * path via core). A standalone caller that invokes `getAvailableWallets`
56
+ * without `expectedWallets` has only the configured keys to go on, so those
57
+ * keys must be **injectedIds** (e.g. `tronLink`, not `tronlink`).
45
58
  */
46
- enabledWallets: ReadonlySet<TronWalletId> | readonly TronWalletId[]
59
+ enabledWallets?: ReadonlySet<TronWalletId> | readonly TronWalletId[]
47
60
 
48
61
  /** Full-node endpoints, API key, and TRC20 fee limit. */
49
62
  tronGrid?: TronGridConfig