@depay/widgets 7.5.2 → 7.8.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 +3 -1
- package/dist/esm/index.bundle.js +2 -2
- package/dist/esm/index.js +8 -4
- package/dist/umd/index.bundle.js +2 -2
- package/dist/umd/index.js +8 -4
- package/package.json +2 -2
package/dist/umd/index.js
CHANGED
|
@@ -835,7 +835,6 @@
|
|
|
835
835
|
setWallet = _useState4[1];
|
|
836
836
|
|
|
837
837
|
var connect = function connect(wallet) {
|
|
838
|
-
console.log('CONNECT');
|
|
839
838
|
wallet.connect().then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
840
839
|
var accounts;
|
|
841
840
|
return regenerator.wrap(function _callee$(_context) {
|
|
@@ -21207,13 +21206,17 @@
|
|
|
21207
21206
|
};
|
|
21208
21207
|
|
|
21209
21208
|
var startTracking = function startTracking(transaction, afterBlock, paymentRoute, attempt) {
|
|
21209
|
+
var _paymentRoute$feeAmou;
|
|
21210
|
+
|
|
21210
21211
|
callTracking({
|
|
21211
21212
|
blockchain: transaction.blockchain,
|
|
21212
21213
|
transaction: transaction.id.toLowerCase(),
|
|
21213
21214
|
sender: transaction.from.toLowerCase(),
|
|
21214
21215
|
nonce: transaction.nonce,
|
|
21215
21216
|
after_block: afterBlock,
|
|
21216
|
-
to_token: paymentRoute.toToken.address
|
|
21217
|
+
to_token: paymentRoute.toToken.address,
|
|
21218
|
+
to_amount: paymentRoute.toAmount.toString(),
|
|
21219
|
+
fee_amount: paymentRoute === null || paymentRoute === void 0 ? void 0 : (_paymentRoute$feeAmou = paymentRoute.feeAmount) === null || _paymentRoute$feeAmou === void 0 ? void 0 : _paymentRoute$feeAmou.toString()
|
|
21217
21220
|
}).then(function (response) {
|
|
21218
21221
|
if (response.status != 200) {
|
|
21219
21222
|
retryStartTracking(transaction, afterBlock, paymentRoute, attempt);
|
|
@@ -21607,12 +21610,12 @@
|
|
|
21607
21610
|
|
|
21608
21611
|
var Donation = /*#__PURE__*/function () {
|
|
21609
21612
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(_ref3) {
|
|
21610
|
-
var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, fee, closable, integration, container, document, unmount;
|
|
21613
|
+
var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, track, fee, closable, integration, container, document, unmount;
|
|
21611
21614
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
21612
21615
|
while (1) {
|
|
21613
21616
|
switch (_context2.prev = _context2.next) {
|
|
21614
21617
|
case 0:
|
|
21615
|
-
amount = _ref3.amount, accept = _ref3.accept, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, fee = _ref3.fee, closable = _ref3.closable, integration = _ref3.integration, container = _ref3.container, document = _ref3.document;
|
|
21618
|
+
amount = _ref3.amount, accept = _ref3.accept, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, track = _ref3.track, fee = _ref3.fee, closable = _ref3.closable, integration = _ref3.integration, container = _ref3.container, document = _ref3.document;
|
|
21616
21619
|
requireReactVersion();
|
|
21617
21620
|
_context2.prev = 2;
|
|
21618
21621
|
_context2.next = 5;
|
|
@@ -21639,6 +21642,7 @@
|
|
|
21639
21642
|
accept: accept,
|
|
21640
21643
|
currency: currency,
|
|
21641
21644
|
event: event,
|
|
21645
|
+
track: track,
|
|
21642
21646
|
fee: fee,
|
|
21643
21647
|
sent: sent,
|
|
21644
21648
|
confirmed: confirmed,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/widgets",
|
|
3
3
|
"moduleName": "DePayWidgets",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.8.0",
|
|
5
5
|
"description": "Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion.",
|
|
6
6
|
"main": "./dist/umd/index.js",
|
|
7
7
|
"module": "./dist/esm/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@depay/web3-client": "^8.5.0",
|
|
45
45
|
"@depay/web3-constants": "^6.0.0",
|
|
46
46
|
"@depay/web3-exchanges": "^9.2.0",
|
|
47
|
-
"@depay/web3-payments": "^10.
|
|
47
|
+
"@depay/web3-payments": "^10.6.0",
|
|
48
48
|
"@depay/web3-tokens": "^8.2.0",
|
|
49
49
|
"@depay/web3-wallets": "^11.1.0",
|
|
50
50
|
"decimal.js": "^10.3.1"
|