@meshconnect/uwc-types 0.16.0 → 0.16.1-snapshot.0da4ecc
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.
package/dist/tron-connector.d.ts
CHANGED
|
@@ -29,16 +29,23 @@ 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
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
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).
|
|
36
38
|
*/
|
|
37
39
|
export interface TronConnectorConfig {
|
|
38
40
|
/**
|
|
39
|
-
*
|
|
40
|
-
* `namespaceMetaData.tron.injectedId`
|
|
41
|
-
* 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
|
|
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.
|
|
42
49
|
*
|
|
43
50
|
* Matching by `WalletMetadata.id` requires the wallet metadata to be available
|
|
44
51
|
* — i.e. `getAvailableWallets` is called with `expectedWallets` (the standard
|
|
@@ -46,7 +53,7 @@ export interface TronConnectorConfig {
|
|
|
46
53
|
* without `expectedWallets` has only the configured keys to go on, so those
|
|
47
54
|
* keys must be **injectedIds** (e.g. `tronLink`, not `tronlink`).
|
|
48
55
|
*/
|
|
49
|
-
enabledWallets
|
|
56
|
+
enabledWallets?: ReadonlySet<TronWalletId> | readonly TronWalletId[];
|
|
50
57
|
/** Full-node endpoints, API key, and TRC20 fee limit. */
|
|
51
58
|
tronGrid?: TronGridConfig;
|
|
52
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;;;;;;;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
|
|
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
package/src/tron-connector.ts
CHANGED
|
@@ -32,16 +32,23 @@ 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
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
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).
|
|
39
41
|
*/
|
|
40
42
|
export interface TronConnectorConfig {
|
|
41
43
|
/**
|
|
42
|
-
*
|
|
43
|
-
* `namespaceMetaData.tron.injectedId`
|
|
44
|
-
* 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
|
|
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.
|
|
45
52
|
*
|
|
46
53
|
* Matching by `WalletMetadata.id` requires the wallet metadata to be available
|
|
47
54
|
* — i.e. `getAvailableWallets` is called with `expectedWallets` (the standard
|
|
@@ -49,7 +56,7 @@ export interface TronConnectorConfig {
|
|
|
49
56
|
* without `expectedWallets` has only the configured keys to go on, so those
|
|
50
57
|
* keys must be **injectedIds** (e.g. `tronLink`, not `tronlink`).
|
|
51
58
|
*/
|
|
52
|
-
enabledWallets
|
|
59
|
+
enabledWallets?: ReadonlySet<TronWalletId> | readonly TronWalletId[]
|
|
53
60
|
|
|
54
61
|
/** Full-node endpoints, API key, and TRC20 fee limit. */
|
|
55
62
|
tronGrid?: TronGridConfig
|