@depay/web3-wallets-evm 18.1.7 → 18.1.9
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/dist/esm/index.evm.js +20 -6
- package/dist/esm/index.js +20 -6
- package/dist/umd/index.evm.js +20 -6
- package/dist/umd/index.js +20 -6
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -169,6 +169,7 @@ const sendTransaction$2 = async ({ transaction, wallet })=> {
|
|
|
169
169
|
transaction.nonce = sentTransaction.nonce || transactionCount;
|
|
170
170
|
transaction.url = Blockchains.findByName(transaction.blockchain).explorerUrlFor({ transaction });
|
|
171
171
|
if (transaction.sent) transaction.sent(transaction);
|
|
172
|
+
|
|
172
173
|
retrieveConfirmedTransaction$2(sentTransaction).then(() => {
|
|
173
174
|
transaction._succeeded = true;
|
|
174
175
|
if (transaction.succeeded) transaction.succeeded(transaction);
|
|
@@ -183,7 +184,7 @@ const sendTransaction$2 = async ({ transaction, wallet })=> {
|
|
|
183
184
|
if (transaction.succeeded) transaction.succeeded(transaction);
|
|
184
185
|
} else if(error.replacement && error.replacement.hash && error.receipt && error.receipt.status == 0) {
|
|
185
186
|
transaction._failed = true;
|
|
186
|
-
if(transaction.failed) transaction.failed(transaction, error);
|
|
187
|
+
if(transaction.failed) transaction.failed(transaction, error);
|
|
187
188
|
}
|
|
188
189
|
} else {
|
|
189
190
|
transaction._failed = true;
|
|
@@ -198,9 +199,11 @@ const sendTransaction$2 = async ({ transaction, wallet })=> {
|
|
|
198
199
|
};
|
|
199
200
|
|
|
200
201
|
const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
|
|
202
|
+
console.log('retrieveConfirmedTransaction', sentTransaction);
|
|
201
203
|
return new Promise((resolve, reject)=>{
|
|
202
204
|
try {
|
|
203
205
|
sentTransaction.wait(1).then(resolve).catch((error)=>{
|
|
206
|
+
console.log('error', error);
|
|
204
207
|
if(
|
|
205
208
|
(error && _optionalChain$p([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
|
|
206
209
|
(error && error.toString().match('undefined'))
|
|
@@ -215,6 +218,7 @@ const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
|
|
|
215
218
|
}
|
|
216
219
|
});
|
|
217
220
|
} catch(error) {
|
|
221
|
+
console.log('ERROR', error);
|
|
218
222
|
if(
|
|
219
223
|
(error && _optionalChain$p([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
|
|
220
224
|
(error && error.toString().match('undefined'))
|
|
@@ -2006,7 +2010,6 @@ class WorldApp {
|
|
|
2006
2010
|
|
|
2007
2011
|
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload, finalPayload)=> {
|
|
2008
2012
|
console.log('payload', payload);
|
|
2009
|
-
console.log('finalPayload', finalPayload);
|
|
2010
2013
|
MiniKit.unsubscribe(ResponseEvent.MiniAppSendTransaction);
|
|
2011
2014
|
if (payload.status == "success") {
|
|
2012
2015
|
if (transaction.accepted) { transaction.accepted(); }
|
|
@@ -2021,7 +2024,7 @@ class WorldApp {
|
|
|
2021
2024
|
reject('Submitting transaction failed!');
|
|
2022
2025
|
}
|
|
2023
2026
|
});
|
|
2024
|
-
|
|
2027
|
+
console.log('sendTransaction', {
|
|
2025
2028
|
transaction: [
|
|
2026
2029
|
{
|
|
2027
2030
|
address: transaction.to,
|
|
@@ -2032,6 +2035,17 @@ class WorldApp {
|
|
|
2032
2035
|
],
|
|
2033
2036
|
permit2: [_optionalChain$1([transaction, 'access', _13 => _13.params, 'optionalAccess', _14 => _14.permit2])]
|
|
2034
2037
|
});
|
|
2038
|
+
MiniKit.commands.sendTransaction({
|
|
2039
|
+
transaction: [
|
|
2040
|
+
{
|
|
2041
|
+
address: transaction.to,
|
|
2042
|
+
abi: _optionalChain$1([transaction, 'access', _15 => _15.api, 'optionalAccess', _16 => _16.filter, 'call', _17 => _17((fragment)=>fragment.name === transaction.method && _optionalChain$1([fragment, 'optionalAccess', _18 => _18.inputs, 'optionalAccess', _19 => _19.length]) === _optionalChain$1([transaction, 'access', _20 => _20.params, 'optionalAccess', _21 => _21.args, 'optionalAccess', _22 => _22.length]))]),
|
|
2043
|
+
functionName: transaction.method,
|
|
2044
|
+
args: _optionalChain$1([transaction, 'access', _23 => _23.params, 'optionalAccess', _24 => _24.args])
|
|
2045
|
+
},
|
|
2046
|
+
],
|
|
2047
|
+
permit2: [_optionalChain$1([transaction, 'access', _25 => _25.params, 'optionalAccess', _26 => _26.permit2])]
|
|
2048
|
+
});
|
|
2035
2049
|
})
|
|
2036
2050
|
}
|
|
2037
2051
|
|
|
@@ -2052,8 +2066,8 @@ class WorldApp {
|
|
|
2052
2066
|
}).then((response)=>{
|
|
2053
2067
|
if(response.ok) {
|
|
2054
2068
|
response.json().then((transactionJSON)=>{
|
|
2055
|
-
if(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2056
|
-
resolve(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2069
|
+
if(_optionalChain$1([transactionJSON, 'optionalAccess', _27 => _27.external_id])) {
|
|
2070
|
+
resolve(_optionalChain$1([transactionJSON, 'optionalAccess', _28 => _28.external_id]));
|
|
2057
2071
|
} else {
|
|
2058
2072
|
resolve();
|
|
2059
2073
|
}
|
|
@@ -2149,7 +2163,7 @@ class WorldApp {
|
|
|
2149
2163
|
if(localStorage.getItem(STORAGE_KEY)) {
|
|
2150
2164
|
return localStorage.getItem(STORAGE_KEY)
|
|
2151
2165
|
}
|
|
2152
|
-
return (_optionalChain$1([window, 'access',
|
|
2166
|
+
return (_optionalChain$1([window, 'access', _29 => _29.MiniKit, 'access', _30 => _30.user, 'optionalAccess', _31 => _31.walletAddress]) || _optionalChain$1([MiniKit, 'access', _32 => _32.user, 'optionalAccess', _33 => _33.walletAddress]))
|
|
2153
2167
|
}
|
|
2154
2168
|
|
|
2155
2169
|
connect() {
|
package/dist/esm/index.js
CHANGED
|
@@ -442,6 +442,7 @@ const sendTransaction$2 = async ({ transaction, wallet })=> {
|
|
|
442
442
|
transaction.nonce = sentTransaction.nonce || transactionCount;
|
|
443
443
|
transaction.url = Blockchains.findByName(transaction.blockchain).explorerUrlFor({ transaction });
|
|
444
444
|
if (transaction.sent) transaction.sent(transaction);
|
|
445
|
+
|
|
445
446
|
retrieveConfirmedTransaction$2(sentTransaction).then(() => {
|
|
446
447
|
transaction._succeeded = true;
|
|
447
448
|
if (transaction.succeeded) transaction.succeeded(transaction);
|
|
@@ -456,7 +457,7 @@ const sendTransaction$2 = async ({ transaction, wallet })=> {
|
|
|
456
457
|
if (transaction.succeeded) transaction.succeeded(transaction);
|
|
457
458
|
} else if(error.replacement && error.replacement.hash && error.receipt && error.receipt.status == 0) {
|
|
458
459
|
transaction._failed = true;
|
|
459
|
-
if(transaction.failed) transaction.failed(transaction, error);
|
|
460
|
+
if(transaction.failed) transaction.failed(transaction, error);
|
|
460
461
|
}
|
|
461
462
|
} else {
|
|
462
463
|
transaction._failed = true;
|
|
@@ -471,9 +472,11 @@ const sendTransaction$2 = async ({ transaction, wallet })=> {
|
|
|
471
472
|
};
|
|
472
473
|
|
|
473
474
|
const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
|
|
475
|
+
console.log('retrieveConfirmedTransaction', sentTransaction);
|
|
474
476
|
return new Promise((resolve, reject)=>{
|
|
475
477
|
try {
|
|
476
478
|
sentTransaction.wait(1).then(resolve).catch((error)=>{
|
|
479
|
+
console.log('error', error);
|
|
477
480
|
if(
|
|
478
481
|
(error && _optionalChain$y([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
|
|
479
482
|
(error && error.toString().match('undefined'))
|
|
@@ -488,6 +491,7 @@ const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
|
|
|
488
491
|
}
|
|
489
492
|
});
|
|
490
493
|
} catch(error) {
|
|
494
|
+
console.log('ERROR', error);
|
|
491
495
|
if(
|
|
492
496
|
(error && _optionalChain$y([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
|
|
493
497
|
(error && error.toString().match('undefined'))
|
|
@@ -2607,7 +2611,6 @@ class WorldApp {
|
|
|
2607
2611
|
|
|
2608
2612
|
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload, finalPayload)=> {
|
|
2609
2613
|
console.log('payload', payload);
|
|
2610
|
-
console.log('finalPayload', finalPayload);
|
|
2611
2614
|
MiniKit.unsubscribe(ResponseEvent.MiniAppSendTransaction);
|
|
2612
2615
|
if (payload.status == "success") {
|
|
2613
2616
|
if (transaction.accepted) { transaction.accepted(); }
|
|
@@ -2622,7 +2625,7 @@ class WorldApp {
|
|
|
2622
2625
|
reject('Submitting transaction failed!');
|
|
2623
2626
|
}
|
|
2624
2627
|
});
|
|
2625
|
-
|
|
2628
|
+
console.log('sendTransaction', {
|
|
2626
2629
|
transaction: [
|
|
2627
2630
|
{
|
|
2628
2631
|
address: transaction.to,
|
|
@@ -2633,6 +2636,17 @@ class WorldApp {
|
|
|
2633
2636
|
],
|
|
2634
2637
|
permit2: [_optionalChain$1([transaction, 'access', _13 => _13.params, 'optionalAccess', _14 => _14.permit2])]
|
|
2635
2638
|
});
|
|
2639
|
+
MiniKit.commands.sendTransaction({
|
|
2640
|
+
transaction: [
|
|
2641
|
+
{
|
|
2642
|
+
address: transaction.to,
|
|
2643
|
+
abi: _optionalChain$1([transaction, 'access', _15 => _15.api, 'optionalAccess', _16 => _16.filter, 'call', _17 => _17((fragment)=>fragment.name === transaction.method && _optionalChain$1([fragment, 'optionalAccess', _18 => _18.inputs, 'optionalAccess', _19 => _19.length]) === _optionalChain$1([transaction, 'access', _20 => _20.params, 'optionalAccess', _21 => _21.args, 'optionalAccess', _22 => _22.length]))]),
|
|
2644
|
+
functionName: transaction.method,
|
|
2645
|
+
args: _optionalChain$1([transaction, 'access', _23 => _23.params, 'optionalAccess', _24 => _24.args])
|
|
2646
|
+
},
|
|
2647
|
+
],
|
|
2648
|
+
permit2: [_optionalChain$1([transaction, 'access', _25 => _25.params, 'optionalAccess', _26 => _26.permit2])]
|
|
2649
|
+
});
|
|
2636
2650
|
})
|
|
2637
2651
|
}
|
|
2638
2652
|
|
|
@@ -2653,8 +2667,8 @@ class WorldApp {
|
|
|
2653
2667
|
}).then((response)=>{
|
|
2654
2668
|
if(response.ok) {
|
|
2655
2669
|
response.json().then((transactionJSON)=>{
|
|
2656
|
-
if(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2657
|
-
resolve(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2670
|
+
if(_optionalChain$1([transactionJSON, 'optionalAccess', _27 => _27.external_id])) {
|
|
2671
|
+
resolve(_optionalChain$1([transactionJSON, 'optionalAccess', _28 => _28.external_id]));
|
|
2658
2672
|
} else {
|
|
2659
2673
|
resolve();
|
|
2660
2674
|
}
|
|
@@ -2750,7 +2764,7 @@ class WorldApp {
|
|
|
2750
2764
|
if(localStorage.getItem(STORAGE_KEY)) {
|
|
2751
2765
|
return localStorage.getItem(STORAGE_KEY)
|
|
2752
2766
|
}
|
|
2753
|
-
return (_optionalChain$1([window, 'access',
|
|
2767
|
+
return (_optionalChain$1([window, 'access', _29 => _29.MiniKit, 'access', _30 => _30.user, 'optionalAccess', _31 => _31.walletAddress]) || _optionalChain$1([MiniKit, 'access', _32 => _32.user, 'optionalAccess', _33 => _33.walletAddress]))
|
|
2754
2768
|
}
|
|
2755
2769
|
|
|
2756
2770
|
connect() {
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -173,6 +173,7 @@
|
|
|
173
173
|
transaction.nonce = sentTransaction.nonce || transactionCount;
|
|
174
174
|
transaction.url = Blockchains__default['default'].findByName(transaction.blockchain).explorerUrlFor({ transaction });
|
|
175
175
|
if (transaction.sent) transaction.sent(transaction);
|
|
176
|
+
|
|
176
177
|
retrieveConfirmedTransaction$2(sentTransaction).then(() => {
|
|
177
178
|
transaction._succeeded = true;
|
|
178
179
|
if (transaction.succeeded) transaction.succeeded(transaction);
|
|
@@ -187,7 +188,7 @@
|
|
|
187
188
|
if (transaction.succeeded) transaction.succeeded(transaction);
|
|
188
189
|
} else if(error.replacement && error.replacement.hash && error.receipt && error.receipt.status == 0) {
|
|
189
190
|
transaction._failed = true;
|
|
190
|
-
if(transaction.failed) transaction.failed(transaction, error);
|
|
191
|
+
if(transaction.failed) transaction.failed(transaction, error);
|
|
191
192
|
}
|
|
192
193
|
} else {
|
|
193
194
|
transaction._failed = true;
|
|
@@ -202,9 +203,11 @@
|
|
|
202
203
|
};
|
|
203
204
|
|
|
204
205
|
const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
|
|
206
|
+
console.log('retrieveConfirmedTransaction', sentTransaction);
|
|
205
207
|
return new Promise((resolve, reject)=>{
|
|
206
208
|
try {
|
|
207
209
|
sentTransaction.wait(1).then(resolve).catch((error)=>{
|
|
210
|
+
console.log('error', error);
|
|
208
211
|
if(
|
|
209
212
|
(error && _optionalChain$p([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
|
|
210
213
|
(error && error.toString().match('undefined'))
|
|
@@ -219,6 +222,7 @@
|
|
|
219
222
|
}
|
|
220
223
|
});
|
|
221
224
|
} catch(error) {
|
|
225
|
+
console.log('ERROR', error);
|
|
222
226
|
if(
|
|
223
227
|
(error && _optionalChain$p([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
|
|
224
228
|
(error && error.toString().match('undefined'))
|
|
@@ -2010,7 +2014,6 @@
|
|
|
2010
2014
|
|
|
2011
2015
|
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload, finalPayload)=> {
|
|
2012
2016
|
console.log('payload', payload);
|
|
2013
|
-
console.log('finalPayload', finalPayload);
|
|
2014
2017
|
MiniKit.unsubscribe(ResponseEvent.MiniAppSendTransaction);
|
|
2015
2018
|
if (payload.status == "success") {
|
|
2016
2019
|
if (transaction.accepted) { transaction.accepted(); }
|
|
@@ -2025,7 +2028,7 @@
|
|
|
2025
2028
|
reject('Submitting transaction failed!');
|
|
2026
2029
|
}
|
|
2027
2030
|
});
|
|
2028
|
-
|
|
2031
|
+
console.log('sendTransaction', {
|
|
2029
2032
|
transaction: [
|
|
2030
2033
|
{
|
|
2031
2034
|
address: transaction.to,
|
|
@@ -2036,6 +2039,17 @@
|
|
|
2036
2039
|
],
|
|
2037
2040
|
permit2: [_optionalChain$1([transaction, 'access', _13 => _13.params, 'optionalAccess', _14 => _14.permit2])]
|
|
2038
2041
|
});
|
|
2042
|
+
MiniKit.commands.sendTransaction({
|
|
2043
|
+
transaction: [
|
|
2044
|
+
{
|
|
2045
|
+
address: transaction.to,
|
|
2046
|
+
abi: _optionalChain$1([transaction, 'access', _15 => _15.api, 'optionalAccess', _16 => _16.filter, 'call', _17 => _17((fragment)=>fragment.name === transaction.method && _optionalChain$1([fragment, 'optionalAccess', _18 => _18.inputs, 'optionalAccess', _19 => _19.length]) === _optionalChain$1([transaction, 'access', _20 => _20.params, 'optionalAccess', _21 => _21.args, 'optionalAccess', _22 => _22.length]))]),
|
|
2047
|
+
functionName: transaction.method,
|
|
2048
|
+
args: _optionalChain$1([transaction, 'access', _23 => _23.params, 'optionalAccess', _24 => _24.args])
|
|
2049
|
+
},
|
|
2050
|
+
],
|
|
2051
|
+
permit2: [_optionalChain$1([transaction, 'access', _25 => _25.params, 'optionalAccess', _26 => _26.permit2])]
|
|
2052
|
+
});
|
|
2039
2053
|
})
|
|
2040
2054
|
}
|
|
2041
2055
|
|
|
@@ -2056,8 +2070,8 @@
|
|
|
2056
2070
|
}).then((response)=>{
|
|
2057
2071
|
if(response.ok) {
|
|
2058
2072
|
response.json().then((transactionJSON)=>{
|
|
2059
|
-
if(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2060
|
-
resolve(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2073
|
+
if(_optionalChain$1([transactionJSON, 'optionalAccess', _27 => _27.external_id])) {
|
|
2074
|
+
resolve(_optionalChain$1([transactionJSON, 'optionalAccess', _28 => _28.external_id]));
|
|
2061
2075
|
} else {
|
|
2062
2076
|
resolve();
|
|
2063
2077
|
}
|
|
@@ -2153,7 +2167,7 @@
|
|
|
2153
2167
|
if(localStorage.getItem(STORAGE_KEY)) {
|
|
2154
2168
|
return localStorage.getItem(STORAGE_KEY)
|
|
2155
2169
|
}
|
|
2156
|
-
return (_optionalChain$1([window, 'access',
|
|
2170
|
+
return (_optionalChain$1([window, 'access', _29 => _29.MiniKit, 'access', _30 => _30.user, 'optionalAccess', _31 => _31.walletAddress]) || _optionalChain$1([MiniKit, 'access', _32 => _32.user, 'optionalAccess', _33 => _33.walletAddress]))
|
|
2157
2171
|
}
|
|
2158
2172
|
|
|
2159
2173
|
connect() {
|
package/dist/umd/index.js
CHANGED
|
@@ -445,6 +445,7 @@
|
|
|
445
445
|
transaction.nonce = sentTransaction.nonce || transactionCount;
|
|
446
446
|
transaction.url = Blockchains__default['default'].findByName(transaction.blockchain).explorerUrlFor({ transaction });
|
|
447
447
|
if (transaction.sent) transaction.sent(transaction);
|
|
448
|
+
|
|
448
449
|
retrieveConfirmedTransaction$2(sentTransaction).then(() => {
|
|
449
450
|
transaction._succeeded = true;
|
|
450
451
|
if (transaction.succeeded) transaction.succeeded(transaction);
|
|
@@ -459,7 +460,7 @@
|
|
|
459
460
|
if (transaction.succeeded) transaction.succeeded(transaction);
|
|
460
461
|
} else if(error.replacement && error.replacement.hash && error.receipt && error.receipt.status == 0) {
|
|
461
462
|
transaction._failed = true;
|
|
462
|
-
if(transaction.failed) transaction.failed(transaction, error);
|
|
463
|
+
if(transaction.failed) transaction.failed(transaction, error);
|
|
463
464
|
}
|
|
464
465
|
} else {
|
|
465
466
|
transaction._failed = true;
|
|
@@ -474,9 +475,11 @@
|
|
|
474
475
|
};
|
|
475
476
|
|
|
476
477
|
const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
|
|
478
|
+
console.log('retrieveConfirmedTransaction', sentTransaction);
|
|
477
479
|
return new Promise((resolve, reject)=>{
|
|
478
480
|
try {
|
|
479
481
|
sentTransaction.wait(1).then(resolve).catch((error)=>{
|
|
482
|
+
console.log('error', error);
|
|
480
483
|
if(
|
|
481
484
|
(error && _optionalChain$y([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
|
|
482
485
|
(error && error.toString().match('undefined'))
|
|
@@ -491,6 +494,7 @@
|
|
|
491
494
|
}
|
|
492
495
|
});
|
|
493
496
|
} catch(error) {
|
|
497
|
+
console.log('ERROR', error);
|
|
494
498
|
if(
|
|
495
499
|
(error && _optionalChain$y([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
|
|
496
500
|
(error && error.toString().match('undefined'))
|
|
@@ -2610,7 +2614,6 @@
|
|
|
2610
2614
|
|
|
2611
2615
|
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload, finalPayload)=> {
|
|
2612
2616
|
console.log('payload', payload);
|
|
2613
|
-
console.log('finalPayload', finalPayload);
|
|
2614
2617
|
MiniKit.unsubscribe(ResponseEvent.MiniAppSendTransaction);
|
|
2615
2618
|
if (payload.status == "success") {
|
|
2616
2619
|
if (transaction.accepted) { transaction.accepted(); }
|
|
@@ -2625,7 +2628,7 @@
|
|
|
2625
2628
|
reject('Submitting transaction failed!');
|
|
2626
2629
|
}
|
|
2627
2630
|
});
|
|
2628
|
-
|
|
2631
|
+
console.log('sendTransaction', {
|
|
2629
2632
|
transaction: [
|
|
2630
2633
|
{
|
|
2631
2634
|
address: transaction.to,
|
|
@@ -2636,6 +2639,17 @@
|
|
|
2636
2639
|
],
|
|
2637
2640
|
permit2: [_optionalChain$1([transaction, 'access', _13 => _13.params, 'optionalAccess', _14 => _14.permit2])]
|
|
2638
2641
|
});
|
|
2642
|
+
MiniKit.commands.sendTransaction({
|
|
2643
|
+
transaction: [
|
|
2644
|
+
{
|
|
2645
|
+
address: transaction.to,
|
|
2646
|
+
abi: _optionalChain$1([transaction, 'access', _15 => _15.api, 'optionalAccess', _16 => _16.filter, 'call', _17 => _17((fragment)=>fragment.name === transaction.method && _optionalChain$1([fragment, 'optionalAccess', _18 => _18.inputs, 'optionalAccess', _19 => _19.length]) === _optionalChain$1([transaction, 'access', _20 => _20.params, 'optionalAccess', _21 => _21.args, 'optionalAccess', _22 => _22.length]))]),
|
|
2647
|
+
functionName: transaction.method,
|
|
2648
|
+
args: _optionalChain$1([transaction, 'access', _23 => _23.params, 'optionalAccess', _24 => _24.args])
|
|
2649
|
+
},
|
|
2650
|
+
],
|
|
2651
|
+
permit2: [_optionalChain$1([transaction, 'access', _25 => _25.params, 'optionalAccess', _26 => _26.permit2])]
|
|
2652
|
+
});
|
|
2639
2653
|
})
|
|
2640
2654
|
}
|
|
2641
2655
|
|
|
@@ -2656,8 +2670,8 @@
|
|
|
2656
2670
|
}).then((response)=>{
|
|
2657
2671
|
if(response.ok) {
|
|
2658
2672
|
response.json().then((transactionJSON)=>{
|
|
2659
|
-
if(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2660
|
-
resolve(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2673
|
+
if(_optionalChain$1([transactionJSON, 'optionalAccess', _27 => _27.external_id])) {
|
|
2674
|
+
resolve(_optionalChain$1([transactionJSON, 'optionalAccess', _28 => _28.external_id]));
|
|
2661
2675
|
} else {
|
|
2662
2676
|
resolve();
|
|
2663
2677
|
}
|
|
@@ -2753,7 +2767,7 @@
|
|
|
2753
2767
|
if(localStorage.getItem(STORAGE_KEY)) {
|
|
2754
2768
|
return localStorage.getItem(STORAGE_KEY)
|
|
2755
2769
|
}
|
|
2756
|
-
return (_optionalChain$1([window, 'access',
|
|
2770
|
+
return (_optionalChain$1([window, 'access', _29 => _29.MiniKit, 'access', _30 => _30.user, 'optionalAccess', _31 => _31.walletAddress]) || _optionalChain$1([MiniKit, 'access', _32 => _32.user, 'optionalAccess', _33 => _33.walletAddress]))
|
|
2757
2771
|
}
|
|
2758
2772
|
|
|
2759
2773
|
connect() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/web3-wallets-evm",
|
|
3
3
|
"moduleName": "Web3Wallets",
|
|
4
|
-
"version": "18.1.
|
|
4
|
+
"version": "18.1.9",
|
|
5
5
|
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
|
|
6
6
|
"main": "dist/umd/index.evm.js",
|
|
7
7
|
"module": "dist/esm/index.evm.js",
|