Skip to content

Commit 264c67e

Browse files
final chunk of file fixes
1 parent 3c8da33 commit 264c67e

File tree

9 files changed

+38
-179
lines changed

9 files changed

+38
-179
lines changed
296 KB
Loading
87.7 KB
Loading

docs/tools/wallets/fortmatic.md

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
1-
---
2-
id: fortmatic
3-
title: Fortmatic
4-
description: Use Formatic SDK to integrate your dApp with Polygon
5-
keywords:
6-
- wiki
7-
- polygon
8-
- fortmatic
9-
- integrate
10-
- dapp
11-
- sdk
12-
image: https://wiki.polygon.technology/img/polygon-logo.png
13-
---
14-
15-
:::caution Content disclaimer
16-
17-
Please view the third-party content disclaimer [<ins>here</ins>](https://github.com/0xPolygon/wiki/blob/master/CONTENT_DISCLAIMER.md).
18-
19-
:::
20-
21-
---
22-
1+
!!! caution "Content disclaimer"
2+
Please view the third-party content disclaimer [<ins>here</ins>](https://github.com/0xPolygon/wiki/blob/master/CONTENT_DISCLAIMER.md).
3+
234
Fortmatic SDK allows you to easily integrate your dApp with the Ethereum blockchain, whether you already have a dApp integrated with Web3 or are starting from scratch. Fortmatic provides a smooth and delightful experience for both you and your decentralized application users.
245

256
## Installation

docs/tools/wallets/particle-network.md

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,5 @@
1-
---
2-
id: particle-network
3-
title: Particle Network
4-
description: Particle Network is the Intent-Centric, Modular Access Layer of Web3
5-
keywords:
6-
- wiki
7-
- polygon
8-
- particle network
9-
- wallet
10-
- guide
11-
- waas
12-
image: https://wiki.polygon.technology/img/polygon-logo.png
13-
---
14-
15-
:::caution Content disclaimer
16-
17-
Please view the third-party content disclaimer [<ins>here</ins>](https://github.com/0xPolygon/wiki/blob/master/CONTENT_DISCLAIMER.md).
18-
19-
:::
20-
21-
---
1+
!!! caution "Content disclaimer"
2+
Please view the third-party content disclaimer [<ins>here</ins>](https://github.com/0xPolygon/wiki/blob/master/CONTENT_DISCLAIMER.md).
223

234
**Particle Network** is the Intent-Centric, Modular Access Layer of Web3. With Particle's Wallet-as-a-Service, developers can curate unparalleled user experience through modular and customizable EOA/AA embedded wallet components. By utilizing MPC-TSS for key management, Particle can streamline onboarding via familiar Web2 accounts—such as Google accounts, email addresses, and phone numbers.
245

@@ -37,6 +18,7 @@ Particle Wallet itself is available either in an application-embedded format, de
3718
The [Particle Auth](https://docs.particle.network/developers/auth-service/sdks/web) SDK represents the primary method of facilitating connection (wallet generation or login) and interaction with Particle.
3819

3920
#### Install dependencies
21+
4022
```js
4123
yarn add @particle-network/auth @particle-network/provider
4224
```
@@ -45,9 +27,10 @@ OR
4527
npm install --save @particle-network/auth @particle-network/provider
4628
```
4729

48-
#### Configure Particle
30+
#### Configure particle
4931

5032
Now that you've installed the initial dependencies from Particle Network, you'll need to head over to the [Particle Network dashboard](https://dashboard.particle.network/#/login) to create a project & application so that you can acquire the required keys/IDs (`projectId`, `clientKey`, and `appId`) for configuration.
33+
5134
````js
5235
import { ParticleNetwork } from "@particle-network/auth";
5336
import { ParticleProvider } from "@particle-network/provider";
@@ -87,5 +70,4 @@ if (!particle.auth.isLogin()) {
8770

8871
From this point, you can utilize `web3.js` as usual via `window.web3`. Signatures, confirmations, and other interactions will be routed to the embedded Particle interface, provided that a user is connected.
8972

90-
The functionality of this SDK, alongside the various other SDKs & APIs that Particle offers, extends far. You can learn more about integrating and interacting with Particle [here](https://docs.particle.network/getting-started/get-started).
91-
73+
The functionality of this SDK, alongside the various other SDKs & APIs that Particle offers, extends far. You can learn more about integrating and interacting with Particle [here](https://docs.particle.network/getting-started/get-started).
Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,11 @@
1-
---
2-
id: plaid-wallet-onboard
3-
title: Plaid Wallet Onboard
4-
sidebar_label: Plaid Wallet Onboard
5-
description: Wallet Onboard allows you to easily connect your dApp to hundreds of self-custody wallets.
6-
keywords:
7-
- wiki
8-
- polygon
9-
- wallet
10-
- dapp
11-
- integrate
12-
- guide
13-
image: https://wiki.polygon.technology/img/polygon-logo.png
14-
---
15-
16-
import useBaseUrl from '@docusaurus/useBaseUrl';
17-
18-
:::caution Content disclaimer
19-
20-
Please view the third-party content disclaimer [<ins>here</ins>](https://github.com/0xPolygon/wiki/blob/master/CONTENT_DISCLAIMER.md).
21-
22-
:::
23-
24-
---
1+
!!! caution "Content disclaimer"
2+
Please view the third-party content disclaimer [<ins>here</ins>](https://github.com/0xPolygon/wiki/blob/master/CONTENT_DISCLAIMER.md).
253

264
**Plaid Wallet Onboard** allows your dApp to connect to hundreds of self-custody wallets, including browser plugin wallets, WalletConnect-compatible mobile wallets, and custom protocols or UX required by hybrid and hardware wallets. It's easier than ever to integrate Metamask, Coinbase Wallet, Rainbow, and more into your dApp.
275

286
Wallet Onboard can be configured to automatically ensure that users have their wallets set up to use the Polygon network.
297

30-
<div align="center">
31-
<img width="603" src={useBaseUrl("img/plaid-wallet-onboard/splash.png")} />
32-
</div>
8+
![img](/img/tools/wallet/plaid-wallet-onboard/splash.png)
339

3410
## Installation and Prerequisites
3511

@@ -66,8 +42,6 @@ Here's a simple example of the code used to integrate Wallet Onboard on Polygon
6642

6743
If a user connects their wallet and it is not using Polygon, Wallet Onboard will attempt to add or switch to Polygon automatically, or will instruct the user to switch.
6844

69-
<div align="center">
70-
<img width="244" src={useBaseUrl("img/plaid-wallet-onboard/switch.png")} />
71-
</div>
45+
![img](/img/tools/wallet/plaid-wallet-onboard/switch.png)
7246

7347
For a complete overview of the configuration options and capabilities of Wallet Onboard, please refer to the [official Wallet Onboard documentation](https://plaid.com/docs/wallet-onboard/).

docs/tools/wallets/portis.md

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
1-
---
2-
id: portis
3-
title: Portis
4-
description: A web-based wallet built keeping easy user-onboarding in mind.
5-
keywords:
6-
- wiki
7-
- polygon
8-
- wallet
9-
- portis
10-
- integrate
11-
image: https://wiki.polygon.technology/img/polygon-logo.png
12-
---
13-
14-
:::caution Content disclaimer
15-
16-
Please view the third-party content disclaimer [<ins>here</ins>](https://github.com/0xPolygon/wiki/blob/master/CONTENT_DISCLAIMER.md).
17-
18-
:::
19-
20-
---
1+
!!! caution "Content disclaimer"
2+
Please view the third-party content disclaimer [<ins>here</ins>](https://github.com/0xPolygon/wiki/blob/master/CONTENT_DISCLAIMER.md).
213

224
Portis is a web-based wallet built keeping easy user-onboarding in mind. It comes with a JavaScript SDK that integrates into the dApp and creates a local wallet-less experience for the user. Further, it handles setting up the wallet, transactions, and gas fees.
235

@@ -32,7 +14,7 @@ Like Metamask, it is non-custodial - users control their keys, Portis just store
3214

3315
Install Portis in your dApp:
3416

35-
```js
17+
```sh
3618
npm install --save @portis/web3
3719
```
3820

@@ -52,7 +34,7 @@ const portis = new Portis('YOUR_DAPP_ID', 'maticTestnet');
5234
const web3 = new Web3(portis.provider);
5335
```
5436

55-
## Set up Account
37+
## Set up account
5638

5739
If the installation and instantiation of Web3 was successful, the following should successfully return the connected account:
5840

@@ -63,17 +45,17 @@ this.web3.eth.getAccounts()
6345
})
6446
```
6547

66-
## Instantiating Contracts
48+
## Instantiating contracts
6749

6850
This is how we should instantiate contracts:
6951

7052
```js
7153
const myContractInstance = new this.web3.eth.Contract(myContractAbi, myContractAddress)
7254
```
7355

74-
## Calling Functions
56+
## Calling functions
7557

76-
### Calling `call()` Function
58+
### Calling `call()` function
7759

7860
```js
7961
this.myContractInstance.methods.myMethod(myParams)
@@ -83,7 +65,7 @@ this.myContractInstance.methods.myMethod(myParams)
8365
)
8466
```
8567

86-
### Calling `send()` Function
68+
### Calling `send()` function
8769
```js
8870
this.myContractInstance.methods.myMethod(myParams)
8971
.send({

docs/tools/wallets/slashauth.md

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,5 @@
1-
---
2-
id: slashauth
3-
title: SlashAuth
4-
description: SlashAuth provides authentication and authorization for dApps.
5-
keywords:
6-
- wiki
7-
- polygon
8-
- slashauth
9-
- authentication
10-
- dapp
11-
- integrate
12-
image: https://wiki.polygon.technology/img/polygon-logo.png
13-
---
14-
15-
:::caution Content disclaimer
16-
17-
Please view the third-party content disclaimer [<ins>here</ins>](https://github.com/0xPolygon/wiki/blob/master/CONTENT_DISCLAIMER.md).
18-
19-
:::
20-
21-
---
1+
!!! caution "Content disclaimer"
2+
Please view the third-party content disclaimer [<ins>here</ins>](https://github.com/0xPolygon/wiki/blob/master/CONTENT_DISCLAIMER.md).
223

234
**SlashAuth** allows developers to quickly authenticate users with their wallets and create **role-based access control based on the on-chain data**. A developer can use SlashAuth to securely log a user in and verify that they have the necessary tokens (ERC20, ERC721, ERC1155) to gain access to the website.
245

@@ -61,7 +42,7 @@ root.render(
6142
);
6243
```
6344

64-
## Add Login with Wallet
45+
## Add login with wallet
6546

6647
The SlashAuth SDK gives you tools to quickly implement authentication via MetaMask wallet in your React application. The simplest implementation is to log the user in directly in their browser. We use the function `loginNoRedirectNoPopup()` from the `useSlashAuth()` hook to accomplish this.
6748

docs/tools/wallets/torus.md

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,5 @@
1-
---
2-
id: torus
3-
title: Torus
4-
description: Torus is a non-custodial key management system for dApps
5-
keywords:
6-
- wiki
7-
- polygon
8-
- torus
9-
- wallet
10-
- guide
11-
- dApp
12-
image: https://wiki.polygon.technology/img/polygon-logo.png
13-
---
14-
15-
:::caution Content disclaimer
16-
17-
Please view the third-party content disclaimer [<ins>here</ins>](https://github.com/0xPolygon/wiki/blob/master/CONTENT_DISCLAIMER.md).
18-
19-
:::
20-
21-
---
1+
!!! caution "Content disclaimer"
2+
Please view the third-party content disclaimer [<ins>here</ins>](https://github.com/0xPolygon/wiki/blob/master/CONTENT_DISCLAIMER.md).
223

234
Torus is a user-friendly, secure, and non-custodial key management system for decentralized apps. We're focused on providing mainstream users a gateway to the decentralized ecosystem.
245

@@ -29,13 +10,13 @@ Torus is a user-friendly, secure, and non-custodial key management system for de
2910

3011
Depending on your application needs, Torus can be integrated via the Torus Wallet, or by interacting directly with the Torus Network via CustomAuth. For more information, visit the [Torus documentation](https://docs.tor.us/).
3112

32-
## Torus Wallet Integration
13+
## Torus wallet integration
3314

3415
If your application is already compatible with MetaMask or any other Web3 providers, integrating the Torus Wallet would give you a provider to wrap the same Web3 interface. You can install via a npm package. For more ways and in-depth information, please visit the official Torus documentation on [wallet integration](https://docs.tor.us/wallet/get-started).
3516

3617
### Installation
3718

38-
```bash
19+
```sh
3920
npm i --save @toruslabs/torus-embed
4021
```
4122

@@ -64,6 +45,6 @@ await torus.login(); // await torus.ethereum.enable()
6445
const web3 = new Web3(torus.provider);
6546
```
6647

67-
## CustomAuth Integration
48+
## CustomAuth integration
6849

6950
If you are looking to control your own UX, from login to every interaction, then you can use CustomAuth. You can integrate via one of their SDKs depending on the platform(s) you are building on. For more info, please visit [Torus CustomAuth integration](https://docs.tor.us/customauth/get-started).

docs/tools/wallets/walletconnect.md

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,9 @@
1-
---
2-
id: walletconnect
3-
title: WalletConnect
4-
description: An open protocol that creates a DApp-Wallet communication.
5-
keywords:
6-
- wiki
7-
- polygon
8-
- dapp
9-
- wallet
10-
- integrate
11-
- guide
12-
image: https://wiki.polygon.technology/img/polygon-logo.png
13-
---
14-
15-
:::caution Content disclaimer
16-
17-
Please view the third-party content disclaimer [<ins>here</ins>](https://github.com/0xPolygon/wiki/blob/master/CONTENT_DISCLAIMER.md).
18-
19-
:::
20-
21-
---
1+
!!! caution "Content disclaimer"
2+
Please view the third-party content disclaimer [<ins>here</ins>](https://github.com/0xPolygon/wiki/blob/master/CONTENT_DISCLAIMER.md).
223

234
**WalletConnect** is an open protocol - not a wallet - built to create a communication link between dApps and wallets. A wallet and an application supporting this protocol will enable a secure link through a shared key between any two peers. A connection is initiated by the dApp displaying a QR code with a standard WalletConnect URI and the connection is established when the wallet application approves the connection request. Further requests regarding funds transfer are confirmed on the wallet application itself.
245

25-
## Set Up Web3
6+
## Set up web3
267

278
To set up your dApp to connect with a user’s Polygon Wallet, you can use WalletConnect’s provider to directly connect to Polygon. Install the following in your dApp:
289

@@ -74,25 +55,22 @@ const maticWeb3 = new Web3(maticProvider)
7455
const ropstenWeb3 = new Web3(ropstenProvider)
7556
```
7657

77-
## Instantiating Contracts
58+
## Instantiating contracts
7859

7960
Once we have our **web3 object**, the instantiating of contracts involves the same steps as for Metamask. Make sure you have your **contract ABI** and **address** already in place.
8061

8162
```js
8263
const myContractInstance = new this.maticWeb3.eth.Contract(myContractAbi, myContractAddress)
8364
```
8465

85-
## Calling Functions
86-
87-
:::info
88-
89-
The private key will remain in the user’s wallet and the **app does not access it in any way**.
66+
## Calling functions
9067

91-
:::
68+
!!! info
69+
The private key will remain in the user’s wallet and the **app does not access it in any way**.
9270

9371
We have two types of functions in Ethereum, depending upon the interaction with the blockchain. We `call()` when we read data and `send()` when we write data.
9472

95-
### Calling `call()` Functions
73+
### Calling `call()` functions
9674

9775
Reading data doesn’t require a signature, therefore the code should be like this:
9876

@@ -105,7 +83,7 @@ this.myContractInstance.methods
10583
)
10684
```
10785

108-
### Calling `send()` Functions
86+
### Calling `send()` functions
10987

11088
Since writing to the blockchain requires a signature, we prompt the user on their wallet (that supports WalletConnect) to sign the transaction.
11189

0 commit comments

Comments
 (0)