@depay/widgets 6.3.0 → 6.5.2
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 +24 -0
- package/dist/esm/index.bundle.js +642 -31
- package/dist/esm/index.js +614 -27
- package/dist/umd/index.bundle.js +642 -31
- package/dist/umd/index.js +613 -26
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1353,6 +1353,30 @@ DePayWidgets.Login().then(()=>{}).catch((error)=>{
|
|
|
1353
1353
|
|
|
1354
1354
|
```
|
|
1355
1355
|
|
|
1356
|
+
## DePay Select
|
|
1357
|
+
|
|
1358
|
+
DePay Select widget allows you to open a dialog that allows you to select things like tokens, etc.
|
|
1359
|
+
|
|
1360
|
+
Resolves with what has been selected by the user:
|
|
1361
|
+
|
|
1362
|
+
```
|
|
1363
|
+
<script src="https://integrate.depay.fi/widgets/v6.js"/>
|
|
1364
|
+
```
|
|
1365
|
+
|
|
1366
|
+
```javascript
|
|
1367
|
+
let token = await DePayWidgets.Select({ what: 'token' })
|
|
1368
|
+
|
|
1369
|
+
// token
|
|
1370
|
+
// {
|
|
1371
|
+
// address: "0xa0bed124a09ac2bd941b10349d8d224fe3c955eb"
|
|
1372
|
+
// blockchain: "ethereum"
|
|
1373
|
+
// decimals: 18
|
|
1374
|
+
// logo: "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb/logo.png"
|
|
1375
|
+
// name: "DePay"
|
|
1376
|
+
// symbol: "DEPAY"
|
|
1377
|
+
// }
|
|
1378
|
+
```
|
|
1379
|
+
|
|
1356
1380
|
## Development
|
|
1357
1381
|
|
|
1358
1382
|
### Quick start
|