@depay/web3-wallets-evm 18.1.6 → 18.1.8
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 +17 -5
- package/dist/esm/index.js +17 -5
- package/dist/umd/index.evm.js +17 -5
- package/dist/umd/index.js +17 -5
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -2004,7 +2004,8 @@ class WorldApp {
|
|
|
2004
2004
|
transaction.nonce = (await this.transactionCount({ blockchain: 'worldchain', address: transaction.from })).toString();
|
|
2005
2005
|
transaction.fromBlock = await request('worldchain://latestBlockNumber');
|
|
2006
2006
|
|
|
2007
|
-
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload)=> {
|
|
2007
|
+
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload, finalPayload)=> {
|
|
2008
|
+
console.log('payload', payload);
|
|
2008
2009
|
MiniKit.unsubscribe(ResponseEvent.MiniAppSendTransaction);
|
|
2009
2010
|
if (payload.status == "success") {
|
|
2010
2011
|
if (transaction.accepted) { transaction.accepted(); }
|
|
@@ -2019,7 +2020,7 @@ class WorldApp {
|
|
|
2019
2020
|
reject('Submitting transaction failed!');
|
|
2020
2021
|
}
|
|
2021
2022
|
});
|
|
2022
|
-
|
|
2023
|
+
console.log('sendTransaction', {
|
|
2023
2024
|
transaction: [
|
|
2024
2025
|
{
|
|
2025
2026
|
address: transaction.to,
|
|
@@ -2030,6 +2031,17 @@ class WorldApp {
|
|
|
2030
2031
|
],
|
|
2031
2032
|
permit2: [_optionalChain$1([transaction, 'access', _13 => _13.params, 'optionalAccess', _14 => _14.permit2])]
|
|
2032
2033
|
});
|
|
2034
|
+
MiniKit.commands.sendTransaction({
|
|
2035
|
+
transaction: [
|
|
2036
|
+
{
|
|
2037
|
+
address: transaction.to,
|
|
2038
|
+
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]))]),
|
|
2039
|
+
functionName: transaction.method,
|
|
2040
|
+
args: _optionalChain$1([transaction, 'access', _23 => _23.params, 'optionalAccess', _24 => _24.args])
|
|
2041
|
+
},
|
|
2042
|
+
],
|
|
2043
|
+
permit2: [_optionalChain$1([transaction, 'access', _25 => _25.params, 'optionalAccess', _26 => _26.permit2])]
|
|
2044
|
+
});
|
|
2033
2045
|
})
|
|
2034
2046
|
}
|
|
2035
2047
|
|
|
@@ -2050,8 +2062,8 @@ class WorldApp {
|
|
|
2050
2062
|
}).then((response)=>{
|
|
2051
2063
|
if(response.ok) {
|
|
2052
2064
|
response.json().then((transactionJSON)=>{
|
|
2053
|
-
if(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2054
|
-
resolve(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2065
|
+
if(_optionalChain$1([transactionJSON, 'optionalAccess', _27 => _27.external_id])) {
|
|
2066
|
+
resolve(_optionalChain$1([transactionJSON, 'optionalAccess', _28 => _28.external_id]));
|
|
2055
2067
|
} else {
|
|
2056
2068
|
resolve();
|
|
2057
2069
|
}
|
|
@@ -2147,7 +2159,7 @@ class WorldApp {
|
|
|
2147
2159
|
if(localStorage.getItem(STORAGE_KEY)) {
|
|
2148
2160
|
return localStorage.getItem(STORAGE_KEY)
|
|
2149
2161
|
}
|
|
2150
|
-
return (_optionalChain$1([window, 'access',
|
|
2162
|
+
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]))
|
|
2151
2163
|
}
|
|
2152
2164
|
|
|
2153
2165
|
connect() {
|
package/dist/esm/index.js
CHANGED
|
@@ -2605,7 +2605,8 @@ class WorldApp {
|
|
|
2605
2605
|
transaction.nonce = (await this.transactionCount({ blockchain: 'worldchain', address: transaction.from })).toString();
|
|
2606
2606
|
transaction.fromBlock = await request('worldchain://latestBlockNumber');
|
|
2607
2607
|
|
|
2608
|
-
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload)=> {
|
|
2608
|
+
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload, finalPayload)=> {
|
|
2609
|
+
console.log('payload', payload);
|
|
2609
2610
|
MiniKit.unsubscribe(ResponseEvent.MiniAppSendTransaction);
|
|
2610
2611
|
if (payload.status == "success") {
|
|
2611
2612
|
if (transaction.accepted) { transaction.accepted(); }
|
|
@@ -2620,7 +2621,7 @@ class WorldApp {
|
|
|
2620
2621
|
reject('Submitting transaction failed!');
|
|
2621
2622
|
}
|
|
2622
2623
|
});
|
|
2623
|
-
|
|
2624
|
+
console.log('sendTransaction', {
|
|
2624
2625
|
transaction: [
|
|
2625
2626
|
{
|
|
2626
2627
|
address: transaction.to,
|
|
@@ -2631,6 +2632,17 @@ class WorldApp {
|
|
|
2631
2632
|
],
|
|
2632
2633
|
permit2: [_optionalChain$1([transaction, 'access', _13 => _13.params, 'optionalAccess', _14 => _14.permit2])]
|
|
2633
2634
|
});
|
|
2635
|
+
MiniKit.commands.sendTransaction({
|
|
2636
|
+
transaction: [
|
|
2637
|
+
{
|
|
2638
|
+
address: transaction.to,
|
|
2639
|
+
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]))]),
|
|
2640
|
+
functionName: transaction.method,
|
|
2641
|
+
args: _optionalChain$1([transaction, 'access', _23 => _23.params, 'optionalAccess', _24 => _24.args])
|
|
2642
|
+
},
|
|
2643
|
+
],
|
|
2644
|
+
permit2: [_optionalChain$1([transaction, 'access', _25 => _25.params, 'optionalAccess', _26 => _26.permit2])]
|
|
2645
|
+
});
|
|
2634
2646
|
})
|
|
2635
2647
|
}
|
|
2636
2648
|
|
|
@@ -2651,8 +2663,8 @@ class WorldApp {
|
|
|
2651
2663
|
}).then((response)=>{
|
|
2652
2664
|
if(response.ok) {
|
|
2653
2665
|
response.json().then((transactionJSON)=>{
|
|
2654
|
-
if(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2655
|
-
resolve(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2666
|
+
if(_optionalChain$1([transactionJSON, 'optionalAccess', _27 => _27.external_id])) {
|
|
2667
|
+
resolve(_optionalChain$1([transactionJSON, 'optionalAccess', _28 => _28.external_id]));
|
|
2656
2668
|
} else {
|
|
2657
2669
|
resolve();
|
|
2658
2670
|
}
|
|
@@ -2748,7 +2760,7 @@ class WorldApp {
|
|
|
2748
2760
|
if(localStorage.getItem(STORAGE_KEY)) {
|
|
2749
2761
|
return localStorage.getItem(STORAGE_KEY)
|
|
2750
2762
|
}
|
|
2751
|
-
return (_optionalChain$1([window, 'access',
|
|
2763
|
+
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]))
|
|
2752
2764
|
}
|
|
2753
2765
|
|
|
2754
2766
|
connect() {
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -2008,7 +2008,8 @@
|
|
|
2008
2008
|
transaction.nonce = (await this.transactionCount({ blockchain: 'worldchain', address: transaction.from })).toString();
|
|
2009
2009
|
transaction.fromBlock = await web3ClientEvm.request('worldchain://latestBlockNumber');
|
|
2010
2010
|
|
|
2011
|
-
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload)=> {
|
|
2011
|
+
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload, finalPayload)=> {
|
|
2012
|
+
console.log('payload', payload);
|
|
2012
2013
|
MiniKit.unsubscribe(ResponseEvent.MiniAppSendTransaction);
|
|
2013
2014
|
if (payload.status == "success") {
|
|
2014
2015
|
if (transaction.accepted) { transaction.accepted(); }
|
|
@@ -2023,7 +2024,7 @@
|
|
|
2023
2024
|
reject('Submitting transaction failed!');
|
|
2024
2025
|
}
|
|
2025
2026
|
});
|
|
2026
|
-
|
|
2027
|
+
console.log('sendTransaction', {
|
|
2027
2028
|
transaction: [
|
|
2028
2029
|
{
|
|
2029
2030
|
address: transaction.to,
|
|
@@ -2034,6 +2035,17 @@
|
|
|
2034
2035
|
],
|
|
2035
2036
|
permit2: [_optionalChain$1([transaction, 'access', _13 => _13.params, 'optionalAccess', _14 => _14.permit2])]
|
|
2036
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
|
+
});
|
|
2037
2049
|
})
|
|
2038
2050
|
}
|
|
2039
2051
|
|
|
@@ -2054,8 +2066,8 @@
|
|
|
2054
2066
|
}).then((response)=>{
|
|
2055
2067
|
if(response.ok) {
|
|
2056
2068
|
response.json().then((transactionJSON)=>{
|
|
2057
|
-
if(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2058
|
-
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]));
|
|
2059
2071
|
} else {
|
|
2060
2072
|
resolve();
|
|
2061
2073
|
}
|
|
@@ -2151,7 +2163,7 @@
|
|
|
2151
2163
|
if(localStorage.getItem(STORAGE_KEY)) {
|
|
2152
2164
|
return localStorage.getItem(STORAGE_KEY)
|
|
2153
2165
|
}
|
|
2154
|
-
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]))
|
|
2155
2167
|
}
|
|
2156
2168
|
|
|
2157
2169
|
connect() {
|
package/dist/umd/index.js
CHANGED
|
@@ -2608,7 +2608,8 @@
|
|
|
2608
2608
|
transaction.nonce = (await this.transactionCount({ blockchain: 'worldchain', address: transaction.from })).toString();
|
|
2609
2609
|
transaction.fromBlock = await web3Client.request('worldchain://latestBlockNumber');
|
|
2610
2610
|
|
|
2611
|
-
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload)=> {
|
|
2611
|
+
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload, finalPayload)=> {
|
|
2612
|
+
console.log('payload', payload);
|
|
2612
2613
|
MiniKit.unsubscribe(ResponseEvent.MiniAppSendTransaction);
|
|
2613
2614
|
if (payload.status == "success") {
|
|
2614
2615
|
if (transaction.accepted) { transaction.accepted(); }
|
|
@@ -2623,7 +2624,7 @@
|
|
|
2623
2624
|
reject('Submitting transaction failed!');
|
|
2624
2625
|
}
|
|
2625
2626
|
});
|
|
2626
|
-
|
|
2627
|
+
console.log('sendTransaction', {
|
|
2627
2628
|
transaction: [
|
|
2628
2629
|
{
|
|
2629
2630
|
address: transaction.to,
|
|
@@ -2634,6 +2635,17 @@
|
|
|
2634
2635
|
],
|
|
2635
2636
|
permit2: [_optionalChain$1([transaction, 'access', _13 => _13.params, 'optionalAccess', _14 => _14.permit2])]
|
|
2636
2637
|
});
|
|
2638
|
+
MiniKit.commands.sendTransaction({
|
|
2639
|
+
transaction: [
|
|
2640
|
+
{
|
|
2641
|
+
address: transaction.to,
|
|
2642
|
+
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]))]),
|
|
2643
|
+
functionName: transaction.method,
|
|
2644
|
+
args: _optionalChain$1([transaction, 'access', _23 => _23.params, 'optionalAccess', _24 => _24.args])
|
|
2645
|
+
},
|
|
2646
|
+
],
|
|
2647
|
+
permit2: [_optionalChain$1([transaction, 'access', _25 => _25.params, 'optionalAccess', _26 => _26.permit2])]
|
|
2648
|
+
});
|
|
2637
2649
|
})
|
|
2638
2650
|
}
|
|
2639
2651
|
|
|
@@ -2654,8 +2666,8 @@
|
|
|
2654
2666
|
}).then((response)=>{
|
|
2655
2667
|
if(response.ok) {
|
|
2656
2668
|
response.json().then((transactionJSON)=>{
|
|
2657
|
-
if(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2658
|
-
resolve(_optionalChain$1([transactionJSON, 'optionalAccess',
|
|
2669
|
+
if(_optionalChain$1([transactionJSON, 'optionalAccess', _27 => _27.external_id])) {
|
|
2670
|
+
resolve(_optionalChain$1([transactionJSON, 'optionalAccess', _28 => _28.external_id]));
|
|
2659
2671
|
} else {
|
|
2660
2672
|
resolve();
|
|
2661
2673
|
}
|
|
@@ -2751,7 +2763,7 @@
|
|
|
2751
2763
|
if(localStorage.getItem(STORAGE_KEY)) {
|
|
2752
2764
|
return localStorage.getItem(STORAGE_KEY)
|
|
2753
2765
|
}
|
|
2754
|
-
return (_optionalChain$1([window, 'access',
|
|
2766
|
+
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]))
|
|
2755
2767
|
}
|
|
2756
2768
|
|
|
2757
2769
|
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.8",
|
|
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",
|