@depay/web3-wallets-evm 18.1.9 → 18.1.10
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 +5 -20
- package/dist/esm/index.js +5 -20
- package/dist/umd/index.evm.js +5 -20
- package/dist/umd/index.js +5 -20
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -199,11 +199,9 @@ const sendTransaction$2 = async ({ transaction, wallet })=> {
|
|
|
199
199
|
};
|
|
200
200
|
|
|
201
201
|
const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
|
|
202
|
-
console.log('retrieveConfirmedTransaction', sentTransaction);
|
|
203
202
|
return new Promise((resolve, reject)=>{
|
|
204
203
|
try {
|
|
205
204
|
sentTransaction.wait(1).then(resolve).catch((error)=>{
|
|
206
|
-
console.log('error', error);
|
|
207
205
|
if(
|
|
208
206
|
(error && _optionalChain$p([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
|
|
209
207
|
(error && error.toString().match('undefined'))
|
|
@@ -218,7 +216,6 @@ const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
|
|
|
218
216
|
}
|
|
219
217
|
});
|
|
220
218
|
} catch(error) {
|
|
221
|
-
console.log('ERROR', error);
|
|
222
219
|
if(
|
|
223
220
|
(error && _optionalChain$p([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
|
|
224
221
|
(error && error.toString().match('undefined'))
|
|
@@ -2008,8 +2005,7 @@ class WorldApp {
|
|
|
2008
2005
|
transaction.nonce = (await this.transactionCount({ blockchain: 'worldchain', address: transaction.from })).toString();
|
|
2009
2006
|
transaction.fromBlock = await request('worldchain://latestBlockNumber');
|
|
2010
2007
|
|
|
2011
|
-
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload
|
|
2012
|
-
console.log('payload', payload);
|
|
2008
|
+
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload)=> {
|
|
2013
2009
|
MiniKit.unsubscribe(ResponseEvent.MiniAppSendTransaction);
|
|
2014
2010
|
if (payload.status == "success") {
|
|
2015
2011
|
if (transaction.accepted) { transaction.accepted(); }
|
|
@@ -2024,7 +2020,7 @@ class WorldApp {
|
|
|
2024
2020
|
reject('Submitting transaction failed!');
|
|
2025
2021
|
}
|
|
2026
2022
|
});
|
|
2027
|
-
|
|
2023
|
+
MiniKit.commands.sendTransaction({
|
|
2028
2024
|
transaction: [
|
|
2029
2025
|
{
|
|
2030
2026
|
address: transaction.to,
|
|
@@ -2035,17 +2031,6 @@ class WorldApp {
|
|
|
2035
2031
|
],
|
|
2036
2032
|
permit2: [_optionalChain$1([transaction, 'access', _13 => _13.params, 'optionalAccess', _14 => _14.permit2])]
|
|
2037
2033
|
});
|
|
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
|
-
});
|
|
2049
2034
|
})
|
|
2050
2035
|
}
|
|
2051
2036
|
|
|
@@ -2066,8 +2051,8 @@ class WorldApp {
|
|
|
2066
2051
|
}).then((response)=>{
|
|
2067
2052
|
if(response.ok) {
|
|
2068
2053
|
response.json().then((transactionJSON)=>{
|
|
2069
|
-
if(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2070
|
-
resolve(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2054
|
+
if(_optionalChain$1([transactionJSON, 'optionalAccess', _15 => _15.external_id])) {
|
|
2055
|
+
resolve(_optionalChain$1([transactionJSON, 'optionalAccess', _16 => _16.external_id]));
|
|
2071
2056
|
} else {
|
|
2072
2057
|
resolve();
|
|
2073
2058
|
}
|
|
@@ -2163,7 +2148,7 @@ class WorldApp {
|
|
|
2163
2148
|
if(localStorage.getItem(STORAGE_KEY)) {
|
|
2164
2149
|
return localStorage.getItem(STORAGE_KEY)
|
|
2165
2150
|
}
|
|
2166
|
-
return (_optionalChain$1([window, 'access',
|
|
2151
|
+
return (_optionalChain$1([window, 'access', _17 => _17.MiniKit, 'access', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'access', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
|
|
2167
2152
|
}
|
|
2168
2153
|
|
|
2169
2154
|
connect() {
|
package/dist/esm/index.js
CHANGED
|
@@ -472,11 +472,9 @@ const sendTransaction$2 = async ({ transaction, wallet })=> {
|
|
|
472
472
|
};
|
|
473
473
|
|
|
474
474
|
const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
|
|
475
|
-
console.log('retrieveConfirmedTransaction', sentTransaction);
|
|
476
475
|
return new Promise((resolve, reject)=>{
|
|
477
476
|
try {
|
|
478
477
|
sentTransaction.wait(1).then(resolve).catch((error)=>{
|
|
479
|
-
console.log('error', error);
|
|
480
478
|
if(
|
|
481
479
|
(error && _optionalChain$y([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
|
|
482
480
|
(error && error.toString().match('undefined'))
|
|
@@ -491,7 +489,6 @@ const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
|
|
|
491
489
|
}
|
|
492
490
|
});
|
|
493
491
|
} catch(error) {
|
|
494
|
-
console.log('ERROR', error);
|
|
495
492
|
if(
|
|
496
493
|
(error && _optionalChain$y([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
|
|
497
494
|
(error && error.toString().match('undefined'))
|
|
@@ -2609,8 +2606,7 @@ class WorldApp {
|
|
|
2609
2606
|
transaction.nonce = (await this.transactionCount({ blockchain: 'worldchain', address: transaction.from })).toString();
|
|
2610
2607
|
transaction.fromBlock = await request('worldchain://latestBlockNumber');
|
|
2611
2608
|
|
|
2612
|
-
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload
|
|
2613
|
-
console.log('payload', payload);
|
|
2609
|
+
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload)=> {
|
|
2614
2610
|
MiniKit.unsubscribe(ResponseEvent.MiniAppSendTransaction);
|
|
2615
2611
|
if (payload.status == "success") {
|
|
2616
2612
|
if (transaction.accepted) { transaction.accepted(); }
|
|
@@ -2625,7 +2621,7 @@ class WorldApp {
|
|
|
2625
2621
|
reject('Submitting transaction failed!');
|
|
2626
2622
|
}
|
|
2627
2623
|
});
|
|
2628
|
-
|
|
2624
|
+
MiniKit.commands.sendTransaction({
|
|
2629
2625
|
transaction: [
|
|
2630
2626
|
{
|
|
2631
2627
|
address: transaction.to,
|
|
@@ -2636,17 +2632,6 @@ class WorldApp {
|
|
|
2636
2632
|
],
|
|
2637
2633
|
permit2: [_optionalChain$1([transaction, 'access', _13 => _13.params, 'optionalAccess', _14 => _14.permit2])]
|
|
2638
2634
|
});
|
|
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
|
-
});
|
|
2650
2635
|
})
|
|
2651
2636
|
}
|
|
2652
2637
|
|
|
@@ -2667,8 +2652,8 @@ class WorldApp {
|
|
|
2667
2652
|
}).then((response)=>{
|
|
2668
2653
|
if(response.ok) {
|
|
2669
2654
|
response.json().then((transactionJSON)=>{
|
|
2670
|
-
if(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2671
|
-
resolve(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2655
|
+
if(_optionalChain$1([transactionJSON, 'optionalAccess', _15 => _15.external_id])) {
|
|
2656
|
+
resolve(_optionalChain$1([transactionJSON, 'optionalAccess', _16 => _16.external_id]));
|
|
2672
2657
|
} else {
|
|
2673
2658
|
resolve();
|
|
2674
2659
|
}
|
|
@@ -2764,7 +2749,7 @@ class WorldApp {
|
|
|
2764
2749
|
if(localStorage.getItem(STORAGE_KEY)) {
|
|
2765
2750
|
return localStorage.getItem(STORAGE_KEY)
|
|
2766
2751
|
}
|
|
2767
|
-
return (_optionalChain$1([window, 'access',
|
|
2752
|
+
return (_optionalChain$1([window, 'access', _17 => _17.MiniKit, 'access', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'access', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
|
|
2768
2753
|
}
|
|
2769
2754
|
|
|
2770
2755
|
connect() {
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -203,11 +203,9 @@
|
|
|
203
203
|
};
|
|
204
204
|
|
|
205
205
|
const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
|
|
206
|
-
console.log('retrieveConfirmedTransaction', sentTransaction);
|
|
207
206
|
return new Promise((resolve, reject)=>{
|
|
208
207
|
try {
|
|
209
208
|
sentTransaction.wait(1).then(resolve).catch((error)=>{
|
|
210
|
-
console.log('error', error);
|
|
211
209
|
if(
|
|
212
210
|
(error && _optionalChain$p([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
|
|
213
211
|
(error && error.toString().match('undefined'))
|
|
@@ -222,7 +220,6 @@
|
|
|
222
220
|
}
|
|
223
221
|
});
|
|
224
222
|
} catch(error) {
|
|
225
|
-
console.log('ERROR', error);
|
|
226
223
|
if(
|
|
227
224
|
(error && _optionalChain$p([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
|
|
228
225
|
(error && error.toString().match('undefined'))
|
|
@@ -2012,8 +2009,7 @@
|
|
|
2012
2009
|
transaction.nonce = (await this.transactionCount({ blockchain: 'worldchain', address: transaction.from })).toString();
|
|
2013
2010
|
transaction.fromBlock = await web3ClientEvm.request('worldchain://latestBlockNumber');
|
|
2014
2011
|
|
|
2015
|
-
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload
|
|
2016
|
-
console.log('payload', payload);
|
|
2012
|
+
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload)=> {
|
|
2017
2013
|
MiniKit.unsubscribe(ResponseEvent.MiniAppSendTransaction);
|
|
2018
2014
|
if (payload.status == "success") {
|
|
2019
2015
|
if (transaction.accepted) { transaction.accepted(); }
|
|
@@ -2028,7 +2024,7 @@
|
|
|
2028
2024
|
reject('Submitting transaction failed!');
|
|
2029
2025
|
}
|
|
2030
2026
|
});
|
|
2031
|
-
|
|
2027
|
+
MiniKit.commands.sendTransaction({
|
|
2032
2028
|
transaction: [
|
|
2033
2029
|
{
|
|
2034
2030
|
address: transaction.to,
|
|
@@ -2039,17 +2035,6 @@
|
|
|
2039
2035
|
],
|
|
2040
2036
|
permit2: [_optionalChain$1([transaction, 'access', _13 => _13.params, 'optionalAccess', _14 => _14.permit2])]
|
|
2041
2037
|
});
|
|
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
|
-
});
|
|
2053
2038
|
})
|
|
2054
2039
|
}
|
|
2055
2040
|
|
|
@@ -2070,8 +2055,8 @@
|
|
|
2070
2055
|
}).then((response)=>{
|
|
2071
2056
|
if(response.ok) {
|
|
2072
2057
|
response.json().then((transactionJSON)=>{
|
|
2073
|
-
if(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2074
|
-
resolve(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2058
|
+
if(_optionalChain$1([transactionJSON, 'optionalAccess', _15 => _15.external_id])) {
|
|
2059
|
+
resolve(_optionalChain$1([transactionJSON, 'optionalAccess', _16 => _16.external_id]));
|
|
2075
2060
|
} else {
|
|
2076
2061
|
resolve();
|
|
2077
2062
|
}
|
|
@@ -2167,7 +2152,7 @@
|
|
|
2167
2152
|
if(localStorage.getItem(STORAGE_KEY)) {
|
|
2168
2153
|
return localStorage.getItem(STORAGE_KEY)
|
|
2169
2154
|
}
|
|
2170
|
-
return (_optionalChain$1([window, 'access',
|
|
2155
|
+
return (_optionalChain$1([window, 'access', _17 => _17.MiniKit, 'access', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'access', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
|
|
2171
2156
|
}
|
|
2172
2157
|
|
|
2173
2158
|
connect() {
|
package/dist/umd/index.js
CHANGED
|
@@ -475,11 +475,9 @@
|
|
|
475
475
|
};
|
|
476
476
|
|
|
477
477
|
const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
|
|
478
|
-
console.log('retrieveConfirmedTransaction', sentTransaction);
|
|
479
478
|
return new Promise((resolve, reject)=>{
|
|
480
479
|
try {
|
|
481
480
|
sentTransaction.wait(1).then(resolve).catch((error)=>{
|
|
482
|
-
console.log('error', error);
|
|
483
481
|
if(
|
|
484
482
|
(error && _optionalChain$y([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
|
|
485
483
|
(error && error.toString().match('undefined'))
|
|
@@ -494,7 +492,6 @@
|
|
|
494
492
|
}
|
|
495
493
|
});
|
|
496
494
|
} catch(error) {
|
|
497
|
-
console.log('ERROR', error);
|
|
498
495
|
if(
|
|
499
496
|
(error && _optionalChain$y([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
|
|
500
497
|
(error && error.toString().match('undefined'))
|
|
@@ -2612,8 +2609,7 @@
|
|
|
2612
2609
|
transaction.nonce = (await this.transactionCount({ blockchain: 'worldchain', address: transaction.from })).toString();
|
|
2613
2610
|
transaction.fromBlock = await web3Client.request('worldchain://latestBlockNumber');
|
|
2614
2611
|
|
|
2615
|
-
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload
|
|
2616
|
-
console.log('payload', payload);
|
|
2612
|
+
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload)=> {
|
|
2617
2613
|
MiniKit.unsubscribe(ResponseEvent.MiniAppSendTransaction);
|
|
2618
2614
|
if (payload.status == "success") {
|
|
2619
2615
|
if (transaction.accepted) { transaction.accepted(); }
|
|
@@ -2628,7 +2624,7 @@
|
|
|
2628
2624
|
reject('Submitting transaction failed!');
|
|
2629
2625
|
}
|
|
2630
2626
|
});
|
|
2631
|
-
|
|
2627
|
+
MiniKit.commands.sendTransaction({
|
|
2632
2628
|
transaction: [
|
|
2633
2629
|
{
|
|
2634
2630
|
address: transaction.to,
|
|
@@ -2639,17 +2635,6 @@
|
|
|
2639
2635
|
],
|
|
2640
2636
|
permit2: [_optionalChain$1([transaction, 'access', _13 => _13.params, 'optionalAccess', _14 => _14.permit2])]
|
|
2641
2637
|
});
|
|
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
|
-
});
|
|
2653
2638
|
})
|
|
2654
2639
|
}
|
|
2655
2640
|
|
|
@@ -2670,8 +2655,8 @@
|
|
|
2670
2655
|
}).then((response)=>{
|
|
2671
2656
|
if(response.ok) {
|
|
2672
2657
|
response.json().then((transactionJSON)=>{
|
|
2673
|
-
if(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2674
|
-
resolve(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2658
|
+
if(_optionalChain$1([transactionJSON, 'optionalAccess', _15 => _15.external_id])) {
|
|
2659
|
+
resolve(_optionalChain$1([transactionJSON, 'optionalAccess', _16 => _16.external_id]));
|
|
2675
2660
|
} else {
|
|
2676
2661
|
resolve();
|
|
2677
2662
|
}
|
|
@@ -2767,7 +2752,7 @@
|
|
|
2767
2752
|
if(localStorage.getItem(STORAGE_KEY)) {
|
|
2768
2753
|
return localStorage.getItem(STORAGE_KEY)
|
|
2769
2754
|
}
|
|
2770
|
-
return (_optionalChain$1([window, 'access',
|
|
2755
|
+
return (_optionalChain$1([window, 'access', _17 => _17.MiniKit, 'access', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'access', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
|
|
2771
2756
|
}
|
|
2772
2757
|
|
|
2773
2758
|
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.10",
|
|
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",
|