Skip to content

Commit

Permalink
Docs: Move configuration docs to dev portal (#128)
Browse files Browse the repository at this point in the history
* Docs: Move configuration docs to dev portal

* Delete flow json

Co-authored-by: Chase Fleming <1666730+chasefleming@users.noreply.github.com>
  • Loading branch information
chasefleming and chasefleming authored Nov 2, 2022
1 parent 55db34d commit 6577750
Showing 1 changed file with 16 additions and 43 deletions.
59 changes: 16 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,20 @@ npm run dev
yarn dev
```

### Discovery Routes
Then add Discovery to your FCL app:

```
import * as fcl from "@onflow/fcl"
fcl.config({
"discovery.wallet": "https://fcl-discovery.onflow.org/testnet/authn",
"discovery.authn.endpoint": "https://fcl-discovery.onflow.org/api/testnet/authn"
})
```

## Networks

### Discovery UI URLs

| Environment | Example |
| ----------- | ---------------------------------------------------------------------- |
Expand All @@ -32,49 +45,9 @@ yarn dev

> Note: Local will return Dev Wallet as a service for developing locally with the default port of 8701. If you'd like to override the default port add ?port=0000 with the port being whatever you'd like to override it to.
## Configuration (For FCL)

These are examples on how to set configuration from [FCL](https://docs.onflow.org/fcl/) in your application.

### Include Opt In Wallets

**Starting in FCL v0.0.78-alpha.10**

To include opt-in wallets from FCL:

```
import * as fcl from "@onflow/fcl"
fcl.config({
"discovery.wallet": "https://fcl-discovery.onflow.org/testnet/authn",
"discovery.authn.endpoint": "https://fcl-discovery.onflow.org/api/testnet/authn",
"discovery.authn.include": ["0x123"] // Service account address
})
```

**Opt-In Wallet Addresses on Testnet and Mainnet**

| Service | Testnet | Mainnet |
| --------------- | ------------------ | ------------------ |
| `Dapper Wallet` | 0x82ec283f88a62e65 | 0xead892083b3e2c6c |
| `Ledger` | 0x9d2e44203cb13051 | 0xe5cd26afebe62781 |

For more information on including opt-in wallets, see [the FCL docs](https://developers.flow.com/tools/fcl-js/reference/api#more-configuration).

### App Title & Icon
## More Configuration

**Starting in FCL v0.0.79-alpha.4**

To set an app title and icon from FCL:

```
import * as fcl from "@onflow/fcl"
fcl.config({
"app.detail.title": "Test App",
"app.detail.icon": "https://placekitten.com/g/200/200"
})
```
For more configuration options, please see the [**documentation**](https://developers.flow.com/tools/fcl-js/reference/discovery).

## Adding a Wallet to Discovery

Expand Down

1 comment on commit 6577750

@vercel
Copy link

@vercel vercel bot commented on 6577750 Nov 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.