@depay/widgets 11.0.0 → 11.1.1

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 CHANGED
@@ -3,7 +3,7 @@
3
3
  You can either load the `@depay/widgets` package via CDN:
4
4
 
5
5
  ```
6
- <script defer async src="https://integrate.depay.com/widgets/v10.js"></script>
6
+ <script defer async src="https://integrate.depay.com/widgets/v11.js"></script>
7
7
  ```
8
8
 
9
9
  or you install `@depay/widgets` via the package manager of your choice and ship it as part of your application bundle:
@@ -32,6 +32,30 @@ yarn add ethers react react-dom
32
32
  npm install ethers react react-dom --save
33
33
  ```
34
34
 
35
+ ## Platform specific packaging
36
+
37
+ In case you want to use and package only specific platforms, use the platform-specific package:
38
+
39
+ ### EVM platform specific packaging
40
+
41
+ ```
42
+ yarn add @depay/widgets-evm
43
+ ```
44
+
45
+ ```javascript
46
+ import DePayWidgets from '@depay/widgets-evm'
47
+ ```
48
+
49
+ ### Solana platform specific packaging
50
+
51
+ ```
52
+ yarn add @depay/widgets-solana
53
+ ```
54
+
55
+ ```javascript
56
+ import DePayWidgets from '@depay/widgets-solana'
57
+ ```
58
+
35
59
  ## Server-side rendering
36
60
 
37
61
  Make sure you load this library as a client-side script for client-side rendering (CSR), in case you are using a server-side rendering (SSR) framework like next.js.
@@ -46,7 +70,7 @@ https://app.depay.com/integrations/new
46
70
 
47
71
  For a more low-key technical example/demo page have a look at:
48
72
 
49
- https://depayfi.github.io/widgets/dev.bundle.html
73
+ https://depayfi.github.io/widgets/demo.bundle.html
50
74
 
51
75
  ## Support
52
76
 
@@ -55,41 +79,15 @@ https://depayfi.github.io/widgets/dev.bundle.html
55
79
  - [Ethereum](https://ethereum.org)
56
80
  - [BNB Smart Chain](https://www.binance.org/smartChain)
57
81
  - [Polygon](https://polygon.technology)
82
+ - [Solana](https://solana.com)
58
83
 
59
84
  ### Wallets
60
85
 
61
- DePay supports the most popular crypto wallets:
62
-
63
- - [MetaMask](https://metamask.io)
64
- - [Coinbase Wallet](https://wallet.coinbase.com)
65
-
66
- 100+ additional wallets via [WalletConnect](https://walletconnect.org), such as:
67
- - [Trust Wallet](https://trustwallet.com)
68
- - [DeFi Wallet by crypto.com](https://crypto.com/defi-wallet)
69
- - [1inch Wallet](https://1inch.io/wallet/)
70
- - [imToken Wallet](https://www.token.im)
71
- - [TokenPocket](https://www.tokenpocket.pro/en)
72
- - [Pillar](https://www.pillar.fi/)
73
- - [Math Wallet](https://mathwallet.org/)
74
- - [Ledger Live](https://www.ledger.com/ledger-live)
75
- - [Argent Wallet](https://www.argent.xyz)
76
- - [AlphaWallet](https://alphawallet.com/)
77
- - [Unstoppable Wallet](https://unstoppable.money)
78
- - [Atomic Wallet](https://atomicwallet.io)
79
- - [Rainbow](https://rainbow.me/)
80
- - and more...
81
-
82
- ## DePay Payments
83
-
84
- DePay Payments allows you to accept and perform crypto payments.
86
+ DePay supports [most crypto wallets](https://depay.com/wallets).
85
87
 
86
- ### Preparation
88
+ ## DePayWidgets: Payments
87
89
 
88
- In order to receive decentralized payments on any blockchain you need to have your own wallet on that particular blockchain first:
89
-
90
- - [Create an Ethereum wallet](https://ethereum.org/en/wallets/)
91
- - [Create an BSC wallet](https://academy.binance.com/en/articles/how-to-get-started-with-binance-smart-chain-bsc)
92
- - [Create a Polygon wallet](https://wallet.polygon.technology/)
90
+ DePay Payments allows you to accept and perform crypto payments.
93
91
 
94
92
  ### Quick start
95
93
 
@@ -906,18 +904,10 @@ DePayWidgets.Payment({
906
904
  })
907
905
  ```
908
906
 
909
- ## DePay Sales
907
+ ## DePayWidgets: Sale
910
908
 
911
909
  DePay Sales allows you to sell tokens directly from your website or dApp with automatic any-to-any payment conversion (so people can use any token when buying your token directly off your website or dApp).
912
910
 
913
- ### Preparation
914
-
915
- In order to sell tokens in a decentralized way, that token needs to have a liquidity pool on a decentralized exchange:
916
-
917
- - [Create Uniswap v2 Liquidity Pool](https://app.uniswap.org/#/add/v2/ETH)
918
- - [Create Uniswap v2 Liquidity Pool (Polygon)](https://app.uniswap.org/#/add/v2/ETH?chain=polygon)
919
- - [Create Pancakeswap Liquidity Pool](https://pancakeswap.finance/add)
920
-
921
911
  ### Quick start
922
912
 
923
913
  ```javascript