diff --git a/.changeset/small-readers-hug.md b/.changeset/small-readers-hug.md new file mode 100644 index 00000000000..f001f7269ee --- /dev/null +++ b/.changeset/small-readers-hug.md @@ -0,0 +1,5 @@ +--- +"@fuel-ts/account": patch +--- + +feat: add flag to indicate if connector is external diff --git a/apps/docs/src/guide/wallets/connectors.md b/apps/docs/src/guide/wallets/connectors.md index 67271e3412f..136f2264c20 100644 --- a/apps/docs/src/guide/wallets/connectors.md +++ b/apps/docs/src/guide/wallets/connectors.md @@ -20,6 +20,10 @@ The `name` property is simply a `string` on the connector that serves as an iden <<< @/../../docs-snippets/src/guide/wallets/connectors.test.ts#fuel-connector-name{ts:line-numbers} +### `external` +The `external` property is simply a `boolean` that indicates when a connector is external or not. +Connectors are considered external, or non-native, when they do not support the Fuel Network (e.g. `Solana`, `WalletConnect`). + #### `metadata` The `metadata` property on the connector provides additional information about the connector. This information will be displayed to the end-user when selecting a connector. The following is the structure of the `metadata` object: diff --git a/packages/account/src/connectors/fuel-connector.ts b/packages/account/src/connectors/fuel-connector.ts index 552468d944b..adbfd588bb1 100644 --- a/packages/account/src/connectors/fuel-connector.ts +++ b/packages/account/src/connectors/fuel-connector.ts @@ -90,6 +90,7 @@ export abstract class FuelConnector extends EventEmitter implements Connector { metadata: ConnectorMetadata = {} as ConnectorMetadata; connected: boolean = false; installed: boolean = false; + external: boolean = true; events = FuelConnectorEventTypes; /**