Skip to content

Commit

Permalink
v10.1.0: adds polygon support (and updates ethers) (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
spape authored May 13, 2022
1 parent 9e97811 commit c8cf8a9
Show file tree
Hide file tree
Showing 32 changed files with 4,816 additions and 3,236 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '16.x'
- name: Cache node modules
uses: actions/cache@v2
env:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'

node-version: '16.x'
- name: Cache node modules
uses: actions/cache@v2
env:
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ https://depayfi.github.io/@depay/web3-wallets/dev.html
This library supports the following blockchains:

- [Ethereum](https://ethereum.org)
- [Binance Smart Chain](https://www.binance.org/en/smartChain)
- [BNB Smart Chain](https://www.binance.org/smartChain)
- [Polygon](https://polygon.technology)

This library supports the following wallets:

Expand Down Expand Up @@ -125,7 +126,7 @@ await wallet.connect() // ['0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B']
```javascript
let wallet = getWallet();
wallet.name // MetaMask
wallet.blockchains // ['ethereum', 'bsc']
wallet.blockchains // ['ethereum', 'bsc', 'polygon']
```

### Check if wallet is connected to a specific blockchain
Expand Down
6 changes: 3 additions & 3 deletions dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" href="https://depay.fi/favicon.png"/>
<title>Development</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://cdn.ethers.io/lib/ethers-5.4.umd.min.js" type="application/javascript"></script>
<link rel="stylesheet" href="https://unpkg.com/bootstrap@5/dist/css/bootstrap.css">
<script src="https://cdn.ethers.io/lib/ethers-5.6.umd.min.js" type="application/javascript"></script>
<script crossorigin src="https://unpkg.com/@depay/web3-blockchains@4"></script>
<script crossorigin src="https://unpkg.com/@depay/web3-constants@5"></script>
<script crossorigin src="https://unpkg.com/@depay/web3-client@8"></script>
<script crossorigin src="https://unpkg.com/@depay/walletconnect-v1@1.1"></script>
<script crossorigin src="https://unpkg.com/@depay/coinbase-wallet-sdk@0.9"></script>
<script crossorigin src="https://unpkg.com/@depay/coinbase-wallet-sdk@1"></script>
<script src="tmp/index.dev.js"></script>
<style>
.btn-primary {
Expand Down
Loading

0 comments on commit c8cf8a9

Please sign in to comment.