@meshconnect/uwc-types 0.16.0-snapshot.a912a6e → 0.16.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.
@@ -29,23 +29,16 @@ export interface TronGridConfig {
29
29
  * `UniversalWalletConnector` once the core wiring lands; until then it is
30
30
  * supplied directly when constructing a `TronConnector`.
31
31
  *
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
+ * The `enabledWallets` set is the per-wallet feature-flag surface: it gates
33
+ * both discovery and connect dispatch, so a single wallet can be ramped up or
34
+ * disabled in production independently of the others. Passing an empty set/array
35
+ * effectively disables the connector.
38
36
  */
39
37
  export interface TronConnectorConfig {
40
38
  /**
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
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.
39
+ * Wallets to enable, matched against each wallet's `WalletMetadata.id` or its
40
+ * `namespaceMetaData.tron.injectedId` (case-insensitive). Wallets not enabled
41
+ * are neither surfaced by `getAvailableWallets` nor connectable.
49
42
  *
50
43
  * Matching by `WalletMetadata.id` requires the wallet metadata to be available
51
44
  * — i.e. `getAvailableWallets` is called with `expectedWallets` (the standard
@@ -53,7 +46,7 @@ export interface TronConnectorConfig {
53
46
  * without `expectedWallets` has only the configured keys to go on, so those
54
47
  * keys must be **injectedIds** (e.g. `tronLink`, not `tronlink`).
55
48
  */
56
- enabledWallets?: ReadonlySet<TronWalletId> | readonly TronWalletId[];
49
+ enabledWallets: ReadonlySet<TronWalletId> | readonly TronWalletId[];
57
50
  /** Full-node endpoints, API key, and TRC20 fee limit. */
58
51
  tronGrid?: TronGridConfig;
59
52
  /** 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;;;;;;;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"}
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;;;;;;;;;;GAUG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;;;;;;OAUG;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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshconnect/uwc-types",
3
- "version": "0.16.0-snapshot.a912a6e",
3
+ "version": "0.16.0",
4
4
  "description": "TypeScript types for Universal Wallet Connector",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -32,23 +32,16 @@ export interface TronGridConfig {
32
32
  * `UniversalWalletConnector` once the core wiring lands; until then it is
33
33
  * supplied directly when constructing a `TronConnector`.
34
34
  *
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).
35
+ * The `enabledWallets` set is the per-wallet feature-flag surface: it gates
36
+ * both discovery and connect dispatch, so a single wallet can be ramped up or
37
+ * disabled in production independently of the others. Passing an empty set/array
38
+ * effectively disables the connector.
41
39
  */
42
40
  export interface TronConnectorConfig {
43
41
  /**
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
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.
42
+ * Wallets to enable, matched against each wallet's `WalletMetadata.id` or its
43
+ * `namespaceMetaData.tron.injectedId` (case-insensitive). Wallets not enabled
44
+ * are neither surfaced by `getAvailableWallets` nor connectable.
52
45
  *
53
46
  * Matching by `WalletMetadata.id` requires the wallet metadata to be available
54
47
  * — i.e. `getAvailableWallets` is called with `expectedWallets` (the standard
@@ -56,7 +49,7 @@ export interface TronConnectorConfig {
56
49
  * without `expectedWallets` has only the configured keys to go on, so those
57
50
  * keys must be **injectedIds** (e.g. `tronLink`, not `tronlink`).
58
51
  */
59
- enabledWallets?: ReadonlySet<TronWalletId> | readonly TronWalletId[]
52
+ enabledWallets: ReadonlySet<TronWalletId> | readonly TronWalletId[]
60
53
 
61
54
  /** Full-node endpoints, API key, and TRC20 fee limit. */
62
55
  tronGrid?: TronGridConfig