@depay/widgets 7.0.3 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -3
- package/dist/esm/index.bundle.js +13 -13
- package/dist/esm/index.js +443 -98
- package/dist/umd/index.bundle.js +13 -13
- package/dist/umd/index.js +443 -98
- package/package.json +9 -10
package/README.md
CHANGED
|
@@ -24,7 +24,9 @@ import DePayWidgets from '@depay/widgets'
|
|
|
24
24
|
|
|
25
25
|
## Demo
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
To easily configure DePay Payment Widgets please use our configurator here: https://app.depay.fi/integrations/new
|
|
28
|
+
|
|
29
|
+
For a more low-key technical example/demo page have a look at: https://depayfi.github.io/widgets/dev.bundle.html
|
|
28
30
|
|
|
29
31
|
## Support
|
|
30
32
|
|
|
@@ -67,6 +69,7 @@ In order to receive decentralized payments on any blockchain you need to have yo
|
|
|
67
69
|
|
|
68
70
|
- [Create an Ethereum wallet](https://ethereum.org/en/wallets/)
|
|
69
71
|
- [Create an BSC wallet](https://academy.binance.com/en/articles/how-to-get-started-with-binance-smart-chain-bsc)
|
|
72
|
+
- [Create a Polygon wallet](https://wallet.polygon.technology/)
|
|
70
73
|
|
|
71
74
|
### Quick start (DePay Payments)
|
|
72
75
|
|
|
@@ -115,6 +118,11 @@ DePayWidgets.Payment({
|
|
|
115
118
|
amount: 20,
|
|
116
119
|
token: '0xe9e7cea3dedca5984780bafc599bd69add087d56',
|
|
117
120
|
receiver: '0x552C2a5a774CcaEeC036d41c983808E3c76477e6'
|
|
121
|
+
},{ // 20 USDC on polygon
|
|
122
|
+
blockchain: 'polygon',
|
|
123
|
+
amount: 20,
|
|
124
|
+
token: '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
|
|
125
|
+
receiver: '0x552C2a5a774CcaEeC036d41c983808E3c76477e6'
|
|
118
126
|
}
|
|
119
127
|
]
|
|
120
128
|
});
|
|
@@ -130,6 +138,7 @@ Currently supported:
|
|
|
130
138
|
|
|
131
139
|
- `ethereum`
|
|
132
140
|
- `bsc` (Binance Smart Chain)
|
|
141
|
+
- `polygon`
|
|
133
142
|
|
|
134
143
|
`token`
|
|
135
144
|
|
|
@@ -478,7 +487,8 @@ DePayWidgets.Payment({
|
|
|
478
487
|
|
|
479
488
|
providers: {
|
|
480
489
|
ethereum: ['http://localhost:8545'],
|
|
481
|
-
bsc: ['http://localhost:8545']
|
|
490
|
+
bsc: ['http://localhost:8545'],
|
|
491
|
+
polygon: ['http://localhost:8545']
|
|
482
492
|
}
|
|
483
493
|
})
|
|
484
494
|
```
|
|
@@ -514,6 +524,10 @@ DePayWidgets.Payment({
|
|
|
514
524
|
'0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE', // BNB
|
|
515
525
|
'0xe9e7cea3dedca5984780bafc599bd69add087d56', // BUSD
|
|
516
526
|
'0x55d398326f99059ff775485246999027b3197955' // BSC-USD
|
|
527
|
+
],
|
|
528
|
+
polygon: [
|
|
529
|
+
'0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE', // MATIC
|
|
530
|
+
'0x2791bca1f2de4661ed88a30c99a7a9449aa84174', // USDC
|
|
517
531
|
]
|
|
518
532
|
}
|
|
519
533
|
|
|
@@ -736,6 +750,7 @@ DePay Sales allows you to sell tokens directly from your website or dApp with au
|
|
|
736
750
|
In order to sell tokens in a decentralized way, that token needs to have a liquidity pool on a decentralized exchange:
|
|
737
751
|
|
|
738
752
|
- [Create Uniswap v2 Liquidity Pool](https://app.uniswap.org/#/add/v2/ETH)
|
|
753
|
+
- [Create Uniswap v2 Liquidity Pool (Polygon)](https://app.uniswap.org/#/add/v2/ETH?chain=polygon)
|
|
739
754
|
- [Create Pancakeswap Liquidity Pool](https://pancakeswap.finance/add)
|
|
740
755
|
|
|
741
756
|
### Quick start (DePay Sales)
|
|
@@ -1694,7 +1709,7 @@ test:cypress:debug
|
|
|
1694
1709
|
Test and debug single cypress file:
|
|
1695
1710
|
|
|
1696
1711
|
```
|
|
1697
|
-
yarn test:cypress:debug --spec "cypress/
|
|
1712
|
+
yarn test:cypress:debug --spec "cypress/e2e/Payment/replaced-transaction.js"
|
|
1698
1713
|
```
|
|
1699
1714
|
|
|
1700
1715
|
### Release new versions to npm
|