Skip to content

Commit

Permalink
Add add flow buttons to MM page and change using to .md
Browse files Browse the repository at this point in the history
  • Loading branch information
briandoyle81 committed Nov 25, 2024
1 parent dcad1f9 commit 6139ffc
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/build/core-contracts/13-evm.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sidebar_label: EVM
# Contract

The `EVM` contract is the entrypoint from Cadence to EVM on Flow. While many developers may choose to interact with EVM
via [EVM-equivalent tooling paths](../../evm/using.mdx), all access to Flow EVM ultimately interfaces via Cadence at
via [EVM-equivalent tooling paths](../../evm/using.md), all access to Flow EVM ultimately interfaces via Cadence at
some level.

If you would like to interact with EVM directly from Cadence, you can use the `EVM` contract and it's constructs. Read
Expand Down
2 changes: 1 addition & 1 deletion docs/evm/accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ There are three types of accounts used for EVM on Flow.
2. **Contract Accounts**: These accounts hold smart contract code and are governed by this code's logic. Unlike EOAs, Contract Accounts do not initiate transactions on their own but can execute transactions in response to calls they receive from EOAs or other contracts.
3. **Cadence Owned Accounts (COA)**: This is an account type unique to Flow EVM. These accounts are managed by [Cadence resources](https://cadence-lang.org/docs/language/resources) and can be used to interact with the Flow EVM from within the Cadence environment.

EOAs and Contract accounts function the same as on other EVM networks. Users may interact with these accounts using the standard EVM JSON-RPC API ([see endpoints here](./using.mdx)). You can read more about EOAs and Contract accounts on the [Ethereum docs](https://ethereum.org/developers/docs/accounts).
EOAs and Contract accounts function the same as on other EVM networks. Users may interact with these accounts using the standard EVM JSON-RPC API ([see endpoints here](./using.md)). You can read more about EOAs and Contract accounts on the [Ethereum docs](https://ethereum.org/developers/docs/accounts).

However, in order to leverage all the features of Cadence, developers will need to utilize Cadence Owned Accounts.

Expand Down
16 changes: 16 additions & 0 deletions docs/evm/guides/integrating-metamask.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,22 @@ title: Integrating Metamask
sidebar_position: 1
---

import BrowserOnly from '@docusaurus/BrowserOnly';
import { AddNetworkButton } from '@site/src/components/addNetworkButton';

# Wallets & Configurations

This document shows how to integrate the Flow Network programmatically with your Dapp via MetaMask.

If you want to add it to your wallet now, you can click the buttons below, or follow the [manual process].

<BrowserOnly>
{() => {
// ******* If Chain Id changes, update the Chain ID in the AddNetworkButton component *******
return <AddNetworkButton />;
}}
</BrowserOnly>

## Metamask

Integrating additional networks into MetaMask can pose challenges for users who lack technical expertise and may lead to errors. Simplifying this process can greatly enhance user onboarding for your application. This guide demonstrates how to create a straightforward button within your frontend application to streamline the addition of the Flow network to MetaMask.
Expand Down Expand Up @@ -65,3 +77,7 @@ Users of your app will need to first approve a connection to Metamask. After doi
After they approve, your app will be connected to the Flow network.

By using this approach to add the Flow network to Metamask, you can avoid manual user data entry and ensure that users are ready to interact with your dApp!

<!-- Reference-style links, does not render on page -->

[manual process]: ../using.md
2 changes: 1 addition & 1 deletion docs/evm/guides/remix.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Remix is an open-source, web-based development environment tailored for EVM smar

![Add Flow Network](./Remix-adding-metamask-network.gif)

Navigate to the [Using EVM](../using.mdx) page to find the button to add the Flow network information to your metamask.
Navigate to the [Using EVM](../using.md) page to find the button to add the Flow network information to your metamask.

## Fund Your Flow Account

Expand Down
File renamed without changes.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,6 @@
},
"engines": {
"node": ">=20"
}
}
},
"packageManager": "[email protected]+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
}

0 comments on commit 6139ffc

Please sign in to comment.