@depay/web3-wallets-evm 15.1.11 → 15.2.1
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 +33 -21
- package/dist/esm/index.js +35 -23
- package/dist/umd/index.evm.js +33 -21
- package/dist/umd/index.js +35 -23
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -59484,7 +59484,7 @@ const getProvider = async (blockchain)=>{
|
|
|
59484
59484
|
}
|
|
59485
59485
|
};
|
|
59486
59486
|
|
|
59487
|
-
function _optionalChain$
|
|
59487
|
+
function _optionalChain$d(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59488
59488
|
class Transaction {
|
|
59489
59489
|
|
|
59490
59490
|
constructor({ blockchain, from, to, value, api, method, params, instructions, sent, succeeded, failed }) {
|
|
@@ -59495,7 +59495,7 @@ class Transaction {
|
|
|
59495
59495
|
this.to = (to && to.match('0x')) ? ethers.utils.getAddress(to) : to;
|
|
59496
59496
|
|
|
59497
59497
|
// optional
|
|
59498
|
-
this.value = _optionalChain$
|
|
59498
|
+
this.value = _optionalChain$d([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
59499
59499
|
this.api = api;
|
|
59500
59500
|
this.method = method;
|
|
59501
59501
|
this.params = params;
|
|
@@ -59663,7 +59663,7 @@ let supported$2 = ['ethereum', 'bsc', 'polygon', 'velas'];
|
|
|
59663
59663
|
supported$2.evm = ['ethereum', 'bsc', 'polygon', 'velas'];
|
|
59664
59664
|
supported$2.solana = [];
|
|
59665
59665
|
|
|
59666
|
-
function _optionalChain$
|
|
59666
|
+
function _optionalChain$c(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59667
59667
|
class WindowEthereum {
|
|
59668
59668
|
|
|
59669
59669
|
static __initStatic() {this.info = {
|
|
@@ -59674,12 +59674,13 @@ class WindowEthereum {
|
|
|
59674
59674
|
|
|
59675
59675
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
59676
59676
|
return (
|
|
59677
|
-
_optionalChain$
|
|
59677
|
+
_optionalChain$c([window, 'optionalAccess', _15 => _15.ethereum]) &&
|
|
59678
59678
|
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length != 1 && // MetaMask
|
|
59679
|
-
!_optionalChain$
|
|
59680
|
-
!(_optionalChain$
|
|
59681
|
-
!_optionalChain$
|
|
59682
|
-
!
|
|
59679
|
+
!_optionalChain$c([window, 'optionalAccess', _16 => _16.coin98]) && // Coin98
|
|
59680
|
+
!(_optionalChain$c([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.isTrust]) || _optionalChain$c([window, 'optionalAccess', _19 => _19.ethereum, 'optionalAccess', _20 => _20.isTrustWallet])) && // Trust Wallet
|
|
59681
|
+
!_optionalChain$c([window, 'optionalAccess', _21 => _21.ethereum, 'optionalAccess', _22 => _22.isDeficonnectProvider]) && // crypto.com
|
|
59682
|
+
!_optionalChain$c([window, 'optionalAccess', _23 => _23.ethereum, 'optionalAccess', _24 => _24.isHyperPay]) && // isHyperPay
|
|
59683
|
+
!(_optionalChain$c([window, 'optionalAccess', _25 => _25.ethereum, 'optionalAccess', _26 => _26.isCoinbaseWallet]) || _optionalChain$c([window, 'optionalAccess', _27 => _27.ethereum, 'optionalAccess', _28 => _28.isWalletLink]))
|
|
59683
59684
|
)
|
|
59684
59685
|
};}
|
|
59685
59686
|
|
|
@@ -59790,7 +59791,7 @@ class WindowEthereum {
|
|
|
59790
59791
|
}
|
|
59791
59792
|
} WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
|
|
59792
59793
|
|
|
59793
|
-
function _optionalChain$
|
|
59794
|
+
function _optionalChain$b(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59794
59795
|
class Binance extends WindowEthereum {
|
|
59795
59796
|
|
|
59796
59797
|
static __initStatic() {this.info = {
|
|
@@ -59800,7 +59801,7 @@ class Binance extends WindowEthereum {
|
|
|
59800
59801
|
};}
|
|
59801
59802
|
|
|
59802
59803
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
59803
|
-
return _optionalChain$
|
|
59804
|
+
return _optionalChain$b([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
|
|
59804
59805
|
!window.coin98
|
|
59805
59806
|
};}
|
|
59806
59807
|
|
|
@@ -59808,7 +59809,7 @@ class Binance extends WindowEthereum {
|
|
|
59808
59809
|
|
|
59809
59810
|
} Binance.__initStatic(); Binance.__initStatic2();
|
|
59810
59811
|
|
|
59811
|
-
function _optionalChain$
|
|
59812
|
+
function _optionalChain$a(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59812
59813
|
class Brave extends WindowEthereum {
|
|
59813
59814
|
|
|
59814
59815
|
static __initStatic() {this.info = {
|
|
@@ -59817,10 +59818,10 @@ class Brave extends WindowEthereum {
|
|
|
59817
59818
|
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
59818
59819
|
};}
|
|
59819
59820
|
|
|
59820
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
59821
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$a([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
|
|
59821
59822
|
} Brave.__initStatic(); Brave.__initStatic2();
|
|
59822
59823
|
|
|
59823
|
-
function _optionalChain$
|
|
59824
|
+
function _optionalChain$9(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59824
59825
|
class Coin98 extends WindowEthereum {
|
|
59825
59826
|
|
|
59826
59827
|
static __initStatic() {this.info = {
|
|
@@ -59829,10 +59830,10 @@ class Coin98 extends WindowEthereum {
|
|
|
59829
59830
|
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
59830
59831
|
};}
|
|
59831
59832
|
|
|
59832
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
59833
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$9([window, 'optionalAccess', _2 => _2.coin98]) };}
|
|
59833
59834
|
} Coin98.__initStatic(); Coin98.__initStatic2();
|
|
59834
59835
|
|
|
59835
|
-
function _optionalChain$
|
|
59836
|
+
function _optionalChain$8(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59836
59837
|
class Coinbase extends WindowEthereum {
|
|
59837
59838
|
|
|
59838
59839
|
static __initStatic() {this.info = {
|
|
@@ -59841,10 +59842,10 @@ class Coinbase extends WindowEthereum {
|
|
|
59841
59842
|
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
59842
59843
|
};}
|
|
59843
59844
|
|
|
59844
|
-
static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$
|
|
59845
|
+
static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$8([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$8([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
|
|
59845
59846
|
} Coinbase.__initStatic(); Coinbase.__initStatic2();
|
|
59846
59847
|
|
|
59847
|
-
function _optionalChain$
|
|
59848
|
+
function _optionalChain$7(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59848
59849
|
class CryptoCom extends WindowEthereum {
|
|
59849
59850
|
|
|
59850
59851
|
static __initStatic() {this.info = {
|
|
@@ -59853,9 +59854,21 @@ class CryptoCom extends WindowEthereum {
|
|
|
59853
59854
|
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
59854
59855
|
};}
|
|
59855
59856
|
|
|
59856
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
59857
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$7([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
|
|
59857
59858
|
} CryptoCom.__initStatic(); CryptoCom.__initStatic2();
|
|
59858
59859
|
|
|
59860
|
+
function _optionalChain$6(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59861
|
+
class HyperPay extends WindowEthereum {
|
|
59862
|
+
|
|
59863
|
+
static __initStatic() {this.info = {
|
|
59864
|
+
name: 'HyperPay',
|
|
59865
|
+
logo: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjA0LjcgMjAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyMDQuNyAyMDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZmlsbD0iIzFBNzJGRSIgZD0iTTEwMi41LDUuMkM1MC44LDUuMiw4LjgsNDcuMiw4LjgsOTlzNDIsOTMuNSw5My44LDkzLjVzOTMuOC00Miw5My44LTkzLjhTMTU0LjIsNS4yLDEwMi41LDUuMnogTTEyNy4yLDExOS4yCgljLTYuMiwwLTIxLjcsMC4zLTIxLjcsMC4zbC03LDI3aC0yOWw2LjgtMjYuNUgzMWw3LjItMjEuOGMwLDAsNzguOCwwLjIsODUuMiwwYzYuNS0wLjIsMTYuNS0xLjgsMTYuOC0xNC44YzAuMy0xNy44LTI3LTE2LjgtMjkuMi0xCgljLTEuNSwxMC0xLjUsMTIuNS0xLjUsMTIuNUg4My44bDUtMjMuNUg0N2w2LjMtMjJjMCwwLDYxLjIsMC4yLDcyLjgsMC4yczQyLjIsMyw0Mi4yLDMxLjJDMTY4LjIsMTEyLDEzOC41LDExOS4zLDEyNy4yLDExOS4yCglMMTI3LjIsMTE5LjJ6Ii8+Cjwvc3ZnPgo=",
|
|
59866
|
+
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
59867
|
+
};}
|
|
59868
|
+
|
|
59869
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
|
|
59870
|
+
} HyperPay.__initStatic(); HyperPay.__initStatic2();
|
|
59871
|
+
|
|
59859
59872
|
function _optionalChain$5(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59860
59873
|
class MetaMask extends WindowEthereum {
|
|
59861
59874
|
|
|
@@ -59985,9 +59998,6 @@ const getSmartContractWallet = async(blockchain, address)=> {
|
|
|
59985
59998
|
|
|
59986
59999
|
const sendTransaction$2 = async ({ transaction, wallet })=> {
|
|
59987
60000
|
transaction = new Transaction(transaction);
|
|
59988
|
-
if((await wallet.connectedTo(transaction.blockchain)) == false) {
|
|
59989
|
-
await wallet.switchTo(transaction.blockchain);
|
|
59990
|
-
}
|
|
59991
60001
|
if((await wallet.connectedTo(transaction.blockchain)) == false) {
|
|
59992
60002
|
throw({ code: 'WRONG_NETWORK' })
|
|
59993
60003
|
}
|
|
@@ -60745,6 +60755,7 @@ var wallets = {
|
|
|
60745
60755
|
Opera,
|
|
60746
60756
|
Coin98,
|
|
60747
60757
|
CryptoCom,
|
|
60758
|
+
HyperPay,
|
|
60748
60759
|
WindowEthereum,
|
|
60749
60760
|
WindowSolana,
|
|
60750
60761
|
WalletConnectV1,
|
|
@@ -60785,6 +60796,7 @@ const supported = [
|
|
|
60785
60796
|
wallets.Opera,
|
|
60786
60797
|
wallets.Coin98,
|
|
60787
60798
|
wallets.CryptoCom,
|
|
60799
|
+
wallets.HyperPay,
|
|
60788
60800
|
wallets.WalletConnectV1,
|
|
60789
60801
|
wallets.WalletLink
|
|
60790
60802
|
];
|
package/dist/esm/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { PublicKey, Transaction as Transaction$1, SystemProgram } from '@depay/s
|
|
|
6
6
|
import { WalletConnectClient } from '@depay/walletconnect-v1';
|
|
7
7
|
import { CoinbaseWalletSDK } from '@depay/coinbase-wallet-sdk';
|
|
8
8
|
|
|
9
|
-
function _optionalChain$
|
|
9
|
+
function _optionalChain$f(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
10
10
|
class Transaction {
|
|
11
11
|
|
|
12
12
|
constructor({ blockchain, from, to, value, api, method, params, instructions, sent, succeeded, failed }) {
|
|
@@ -17,7 +17,7 @@ class Transaction {
|
|
|
17
17
|
this.to = (to && to.match('0x')) ? ethers.utils.getAddress(to) : to;
|
|
18
18
|
|
|
19
19
|
// optional
|
|
20
|
-
this.value = _optionalChain$
|
|
20
|
+
this.value = _optionalChain$f([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
21
21
|
this.api = api;
|
|
22
22
|
this.method = method;
|
|
23
23
|
this.params = params;
|
|
@@ -295,7 +295,7 @@ var EVM = {
|
|
|
295
295
|
setProvider: setProvider$1,
|
|
296
296
|
};
|
|
297
297
|
|
|
298
|
-
function _optionalChain$
|
|
298
|
+
function _optionalChain$e(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
299
299
|
let getCacheStore = () => {
|
|
300
300
|
if (getWindow()._cacheStore == undefined) {
|
|
301
301
|
resetCache();
|
|
@@ -325,7 +325,7 @@ let set = function ({ key, value, expires }) {
|
|
|
325
325
|
|
|
326
326
|
let get = function ({ key, expires }) {
|
|
327
327
|
let cachedEntry = getCacheStore()[key];
|
|
328
|
-
if (_optionalChain$
|
|
328
|
+
if (_optionalChain$e([cachedEntry, 'optionalAccess', _ => _.expiresAt]) > Date.now()) {
|
|
329
329
|
return cachedEntry.value
|
|
330
330
|
}
|
|
331
331
|
};
|
|
@@ -566,7 +566,7 @@ let supported$2 = ['ethereum', 'bsc', 'polygon', 'velas'];
|
|
|
566
566
|
supported$2.evm = ['ethereum', 'bsc', 'polygon', 'velas'];
|
|
567
567
|
supported$2.solana = [];
|
|
568
568
|
|
|
569
|
-
function _optionalChain$
|
|
569
|
+
function _optionalChain$d(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
570
570
|
class WindowEthereum {
|
|
571
571
|
|
|
572
572
|
static __initStatic() {this.info = {
|
|
@@ -577,12 +577,13 @@ class WindowEthereum {
|
|
|
577
577
|
|
|
578
578
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
579
579
|
return (
|
|
580
|
-
_optionalChain$
|
|
580
|
+
_optionalChain$d([window, 'optionalAccess', _15 => _15.ethereum]) &&
|
|
581
581
|
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length != 1 && // MetaMask
|
|
582
|
-
!_optionalChain$
|
|
583
|
-
!(_optionalChain$
|
|
584
|
-
!_optionalChain$
|
|
585
|
-
!
|
|
582
|
+
!_optionalChain$d([window, 'optionalAccess', _16 => _16.coin98]) && // Coin98
|
|
583
|
+
!(_optionalChain$d([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.isTrust]) || _optionalChain$d([window, 'optionalAccess', _19 => _19.ethereum, 'optionalAccess', _20 => _20.isTrustWallet])) && // Trust Wallet
|
|
584
|
+
!_optionalChain$d([window, 'optionalAccess', _21 => _21.ethereum, 'optionalAccess', _22 => _22.isDeficonnectProvider]) && // crypto.com
|
|
585
|
+
!_optionalChain$d([window, 'optionalAccess', _23 => _23.ethereum, 'optionalAccess', _24 => _24.isHyperPay]) && // isHyperPay
|
|
586
|
+
!(_optionalChain$d([window, 'optionalAccess', _25 => _25.ethereum, 'optionalAccess', _26 => _26.isCoinbaseWallet]) || _optionalChain$d([window, 'optionalAccess', _27 => _27.ethereum, 'optionalAccess', _28 => _28.isWalletLink]))
|
|
586
587
|
)
|
|
587
588
|
};}
|
|
588
589
|
|
|
@@ -693,7 +694,7 @@ class WindowEthereum {
|
|
|
693
694
|
}
|
|
694
695
|
} WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
|
|
695
696
|
|
|
696
|
-
function _optionalChain$
|
|
697
|
+
function _optionalChain$c(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
697
698
|
class Binance extends WindowEthereum {
|
|
698
699
|
|
|
699
700
|
static __initStatic() {this.info = {
|
|
@@ -703,7 +704,7 @@ class Binance extends WindowEthereum {
|
|
|
703
704
|
};}
|
|
704
705
|
|
|
705
706
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
706
|
-
return _optionalChain$
|
|
707
|
+
return _optionalChain$c([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
|
|
707
708
|
!window.coin98
|
|
708
709
|
};}
|
|
709
710
|
|
|
@@ -711,7 +712,7 @@ class Binance extends WindowEthereum {
|
|
|
711
712
|
|
|
712
713
|
} Binance.__initStatic(); Binance.__initStatic2();
|
|
713
714
|
|
|
714
|
-
function _optionalChain$
|
|
715
|
+
function _optionalChain$b(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
715
716
|
class Brave extends WindowEthereum {
|
|
716
717
|
|
|
717
718
|
static __initStatic() {this.info = {
|
|
@@ -720,10 +721,10 @@ class Brave extends WindowEthereum {
|
|
|
720
721
|
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
721
722
|
};}
|
|
722
723
|
|
|
723
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
724
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
|
|
724
725
|
} Brave.__initStatic(); Brave.__initStatic2();
|
|
725
726
|
|
|
726
|
-
function _optionalChain$
|
|
727
|
+
function _optionalChain$a(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
727
728
|
class Coin98 extends WindowEthereum {
|
|
728
729
|
|
|
729
730
|
static __initStatic() {this.info = {
|
|
@@ -732,10 +733,10 @@ class Coin98 extends WindowEthereum {
|
|
|
732
733
|
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
733
734
|
};}
|
|
734
735
|
|
|
735
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
736
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$a([window, 'optionalAccess', _2 => _2.coin98]) };}
|
|
736
737
|
} Coin98.__initStatic(); Coin98.__initStatic2();
|
|
737
738
|
|
|
738
|
-
function _optionalChain$
|
|
739
|
+
function _optionalChain$9(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
739
740
|
class Coinbase extends WindowEthereum {
|
|
740
741
|
|
|
741
742
|
static __initStatic() {this.info = {
|
|
@@ -744,10 +745,10 @@ class Coinbase extends WindowEthereum {
|
|
|
744
745
|
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
745
746
|
};}
|
|
746
747
|
|
|
747
|
-
static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$
|
|
748
|
+
static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$9([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$9([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
|
|
748
749
|
} Coinbase.__initStatic(); Coinbase.__initStatic2();
|
|
749
750
|
|
|
750
|
-
function _optionalChain$
|
|
751
|
+
function _optionalChain$8(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
751
752
|
class CryptoCom extends WindowEthereum {
|
|
752
753
|
|
|
753
754
|
static __initStatic() {this.info = {
|
|
@@ -756,9 +757,21 @@ class CryptoCom extends WindowEthereum {
|
|
|
756
757
|
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
757
758
|
};}
|
|
758
759
|
|
|
759
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
760
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$8([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
|
|
760
761
|
} CryptoCom.__initStatic(); CryptoCom.__initStatic2();
|
|
761
762
|
|
|
763
|
+
function _optionalChain$7(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
764
|
+
class HyperPay extends WindowEthereum {
|
|
765
|
+
|
|
766
|
+
static __initStatic() {this.info = {
|
|
767
|
+
name: 'HyperPay',
|
|
768
|
+
logo: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjA0LjcgMjAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyMDQuNyAyMDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZmlsbD0iIzFBNzJGRSIgZD0iTTEwMi41LDUuMkM1MC44LDUuMiw4LjgsNDcuMiw4LjgsOTlzNDIsOTMuNSw5My44LDkzLjVzOTMuOC00Miw5My44LTkzLjhTMTU0LjIsNS4yLDEwMi41LDUuMnogTTEyNy4yLDExOS4yCgljLTYuMiwwLTIxLjcsMC4zLTIxLjcsMC4zbC03LDI3aC0yOWw2LjgtMjYuNUgzMWw3LjItMjEuOGMwLDAsNzguOCwwLjIsODUuMiwwYzYuNS0wLjIsMTYuNS0xLjgsMTYuOC0xNC44YzAuMy0xNy44LTI3LTE2LjgtMjkuMi0xCgljLTEuNSwxMC0xLjUsMTIuNS0xLjUsMTIuNUg4My44bDUtMjMuNUg0N2w2LjMtMjJjMCwwLDYxLjIsMC4yLDcyLjgsMC4yczQyLjIsMyw0Mi4yLDMxLjJDMTY4LjIsMTEyLDEzOC41LDExOS4zLDEyNy4yLDExOS4yCglMMTI3LjIsMTE5LjJ6Ii8+Cjwvc3ZnPgo=",
|
|
769
|
+
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
770
|
+
};}
|
|
771
|
+
|
|
772
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$7([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
|
|
773
|
+
} HyperPay.__initStatic(); HyperPay.__initStatic2();
|
|
774
|
+
|
|
762
775
|
function _optionalChain$6(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
763
776
|
class MetaMask extends WindowEthereum {
|
|
764
777
|
|
|
@@ -1079,9 +1092,6 @@ const getSmartContractWallet = async(blockchain, address)=> {
|
|
|
1079
1092
|
|
|
1080
1093
|
const sendTransaction$1 = async ({ transaction, wallet })=> {
|
|
1081
1094
|
transaction = new Transaction(transaction);
|
|
1082
|
-
if((await wallet.connectedTo(transaction.blockchain)) == false) {
|
|
1083
|
-
await wallet.switchTo(transaction.blockchain);
|
|
1084
|
-
}
|
|
1085
1095
|
if((await wallet.connectedTo(transaction.blockchain)) == false) {
|
|
1086
1096
|
throw({ code: 'WRONG_NETWORK' })
|
|
1087
1097
|
}
|
|
@@ -1661,6 +1671,7 @@ var wallets = {
|
|
|
1661
1671
|
Opera,
|
|
1662
1672
|
Coin98,
|
|
1663
1673
|
CryptoCom,
|
|
1674
|
+
HyperPay,
|
|
1664
1675
|
WindowEthereum,
|
|
1665
1676
|
WindowSolana,
|
|
1666
1677
|
WalletConnectV1,
|
|
@@ -1702,6 +1713,7 @@ const supported = [
|
|
|
1702
1713
|
wallets.Opera,
|
|
1703
1714
|
wallets.Coin98,
|
|
1704
1715
|
wallets.CryptoCom,
|
|
1716
|
+
wallets.HyperPay,
|
|
1705
1717
|
wallets.WalletConnectV1,
|
|
1706
1718
|
wallets.WalletLink
|
|
1707
1719
|
];
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -59483,7 +59483,7 @@
|
|
|
59483
59483
|
}
|
|
59484
59484
|
};
|
|
59485
59485
|
|
|
59486
|
-
function _optionalChain$
|
|
59486
|
+
function _optionalChain$d(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59487
59487
|
class Transaction {
|
|
59488
59488
|
|
|
59489
59489
|
constructor({ blockchain, from, to, value, api, method, params, instructions, sent, succeeded, failed }) {
|
|
@@ -59494,7 +59494,7 @@
|
|
|
59494
59494
|
this.to = (to && to.match('0x')) ? ethers.ethers.utils.getAddress(to) : to;
|
|
59495
59495
|
|
|
59496
59496
|
// optional
|
|
59497
|
-
this.value = _optionalChain$
|
|
59497
|
+
this.value = _optionalChain$d([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
59498
59498
|
this.api = api;
|
|
59499
59499
|
this.method = method;
|
|
59500
59500
|
this.params = params;
|
|
@@ -59662,7 +59662,7 @@
|
|
|
59662
59662
|
supported$2.evm = ['ethereum', 'bsc', 'polygon', 'velas'];
|
|
59663
59663
|
supported$2.solana = [];
|
|
59664
59664
|
|
|
59665
|
-
function _optionalChain$
|
|
59665
|
+
function _optionalChain$c(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59666
59666
|
class WindowEthereum {
|
|
59667
59667
|
|
|
59668
59668
|
static __initStatic() {this.info = {
|
|
@@ -59673,12 +59673,13 @@
|
|
|
59673
59673
|
|
|
59674
59674
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
59675
59675
|
return (
|
|
59676
|
-
_optionalChain$
|
|
59676
|
+
_optionalChain$c([window, 'optionalAccess', _15 => _15.ethereum]) &&
|
|
59677
59677
|
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length != 1 && // MetaMask
|
|
59678
|
-
!_optionalChain$
|
|
59679
|
-
!(_optionalChain$
|
|
59680
|
-
!_optionalChain$
|
|
59681
|
-
!
|
|
59678
|
+
!_optionalChain$c([window, 'optionalAccess', _16 => _16.coin98]) && // Coin98
|
|
59679
|
+
!(_optionalChain$c([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.isTrust]) || _optionalChain$c([window, 'optionalAccess', _19 => _19.ethereum, 'optionalAccess', _20 => _20.isTrustWallet])) && // Trust Wallet
|
|
59680
|
+
!_optionalChain$c([window, 'optionalAccess', _21 => _21.ethereum, 'optionalAccess', _22 => _22.isDeficonnectProvider]) && // crypto.com
|
|
59681
|
+
!_optionalChain$c([window, 'optionalAccess', _23 => _23.ethereum, 'optionalAccess', _24 => _24.isHyperPay]) && // isHyperPay
|
|
59682
|
+
!(_optionalChain$c([window, 'optionalAccess', _25 => _25.ethereum, 'optionalAccess', _26 => _26.isCoinbaseWallet]) || _optionalChain$c([window, 'optionalAccess', _27 => _27.ethereum, 'optionalAccess', _28 => _28.isWalletLink]))
|
|
59682
59683
|
)
|
|
59683
59684
|
};}
|
|
59684
59685
|
|
|
@@ -59789,7 +59790,7 @@
|
|
|
59789
59790
|
}
|
|
59790
59791
|
} WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
|
|
59791
59792
|
|
|
59792
|
-
function _optionalChain$
|
|
59793
|
+
function _optionalChain$b(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59793
59794
|
class Binance extends WindowEthereum {
|
|
59794
59795
|
|
|
59795
59796
|
static __initStatic() {this.info = {
|
|
@@ -59799,7 +59800,7 @@
|
|
|
59799
59800
|
};}
|
|
59800
59801
|
|
|
59801
59802
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
59802
|
-
return _optionalChain$
|
|
59803
|
+
return _optionalChain$b([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
|
|
59803
59804
|
!window.coin98
|
|
59804
59805
|
};}
|
|
59805
59806
|
|
|
@@ -59807,7 +59808,7 @@
|
|
|
59807
59808
|
|
|
59808
59809
|
} Binance.__initStatic(); Binance.__initStatic2();
|
|
59809
59810
|
|
|
59810
|
-
function _optionalChain$
|
|
59811
|
+
function _optionalChain$a(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59811
59812
|
class Brave extends WindowEthereum {
|
|
59812
59813
|
|
|
59813
59814
|
static __initStatic() {this.info = {
|
|
@@ -59816,10 +59817,10 @@
|
|
|
59816
59817
|
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
59817
59818
|
};}
|
|
59818
59819
|
|
|
59819
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
59820
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$a([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
|
|
59820
59821
|
} Brave.__initStatic(); Brave.__initStatic2();
|
|
59821
59822
|
|
|
59822
|
-
function _optionalChain$
|
|
59823
|
+
function _optionalChain$9(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59823
59824
|
class Coin98 extends WindowEthereum {
|
|
59824
59825
|
|
|
59825
59826
|
static __initStatic() {this.info = {
|
|
@@ -59828,10 +59829,10 @@
|
|
|
59828
59829
|
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
59829
59830
|
};}
|
|
59830
59831
|
|
|
59831
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
59832
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$9([window, 'optionalAccess', _2 => _2.coin98]) };}
|
|
59832
59833
|
} Coin98.__initStatic(); Coin98.__initStatic2();
|
|
59833
59834
|
|
|
59834
|
-
function _optionalChain$
|
|
59835
|
+
function _optionalChain$8(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59835
59836
|
class Coinbase extends WindowEthereum {
|
|
59836
59837
|
|
|
59837
59838
|
static __initStatic() {this.info = {
|
|
@@ -59840,10 +59841,10 @@
|
|
|
59840
59841
|
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
59841
59842
|
};}
|
|
59842
59843
|
|
|
59843
|
-
static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$
|
|
59844
|
+
static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$8([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$8([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
|
|
59844
59845
|
} Coinbase.__initStatic(); Coinbase.__initStatic2();
|
|
59845
59846
|
|
|
59846
|
-
function _optionalChain$
|
|
59847
|
+
function _optionalChain$7(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59847
59848
|
class CryptoCom extends WindowEthereum {
|
|
59848
59849
|
|
|
59849
59850
|
static __initStatic() {this.info = {
|
|
@@ -59852,9 +59853,21 @@
|
|
|
59852
59853
|
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
59853
59854
|
};}
|
|
59854
59855
|
|
|
59855
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
59856
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$7([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
|
|
59856
59857
|
} CryptoCom.__initStatic(); CryptoCom.__initStatic2();
|
|
59857
59858
|
|
|
59859
|
+
function _optionalChain$6(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59860
|
+
class HyperPay extends WindowEthereum {
|
|
59861
|
+
|
|
59862
|
+
static __initStatic() {this.info = {
|
|
59863
|
+
name: 'HyperPay',
|
|
59864
|
+
logo: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjA0LjcgMjAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyMDQuNyAyMDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZmlsbD0iIzFBNzJGRSIgZD0iTTEwMi41LDUuMkM1MC44LDUuMiw4LjgsNDcuMiw4LjgsOTlzNDIsOTMuNSw5My44LDkzLjVzOTMuOC00Miw5My44LTkzLjhTMTU0LjIsNS4yLDEwMi41LDUuMnogTTEyNy4yLDExOS4yCgljLTYuMiwwLTIxLjcsMC4zLTIxLjcsMC4zbC03LDI3aC0yOWw2LjgtMjYuNUgzMWw3LjItMjEuOGMwLDAsNzguOCwwLjIsODUuMiwwYzYuNS0wLjIsMTYuNS0xLjgsMTYuOC0xNC44YzAuMy0xNy44LTI3LTE2LjgtMjkuMi0xCgljLTEuNSwxMC0xLjUsMTIuNS0xLjUsMTIuNUg4My44bDUtMjMuNUg0N2w2LjMtMjJjMCwwLDYxLjIsMC4yLDcyLjgsMC4yczQyLjIsMyw0Mi4yLDMxLjJDMTY4LjIsMTEyLDEzOC41LDExOS4zLDEyNy4yLDExOS4yCglMMTI3LjIsMTE5LjJ6Ii8+Cjwvc3ZnPgo=",
|
|
59865
|
+
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
59866
|
+
};}
|
|
59867
|
+
|
|
59868
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
|
|
59869
|
+
} HyperPay.__initStatic(); HyperPay.__initStatic2();
|
|
59870
|
+
|
|
59858
59871
|
function _optionalChain$5(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
59859
59872
|
class MetaMask extends WindowEthereum {
|
|
59860
59873
|
|
|
@@ -59984,9 +59997,6 @@
|
|
|
59984
59997
|
|
|
59985
59998
|
const sendTransaction$2 = async ({ transaction, wallet })=> {
|
|
59986
59999
|
transaction = new Transaction(transaction);
|
|
59987
|
-
if((await wallet.connectedTo(transaction.blockchain)) == false) {
|
|
59988
|
-
await wallet.switchTo(transaction.blockchain);
|
|
59989
|
-
}
|
|
59990
60000
|
if((await wallet.connectedTo(transaction.blockchain)) == false) {
|
|
59991
60001
|
throw({ code: 'WRONG_NETWORK' })
|
|
59992
60002
|
}
|
|
@@ -60744,6 +60754,7 @@
|
|
|
60744
60754
|
Opera,
|
|
60745
60755
|
Coin98,
|
|
60746
60756
|
CryptoCom,
|
|
60757
|
+
HyperPay,
|
|
60747
60758
|
WindowEthereum,
|
|
60748
60759
|
WindowSolana,
|
|
60749
60760
|
WalletConnectV1,
|
|
@@ -60784,6 +60795,7 @@
|
|
|
60784
60795
|
wallets.Opera,
|
|
60785
60796
|
wallets.Coin98,
|
|
60786
60797
|
wallets.CryptoCom,
|
|
60798
|
+
wallets.HyperPay,
|
|
60787
60799
|
wallets.WalletConnectV1,
|
|
60788
60800
|
wallets.WalletLink
|
|
60789
60801
|
];
|
package/dist/umd/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Web3Wallets = {}, global.Web3Blockchains, global.ethers, global.Web3Client, global.Web3Constants, global.SolanaWeb3js, global.WalletConnect, global.CoinbaseWalletSdk));
|
|
5
5
|
}(this, (function (exports, web3Blockchains, ethers, web3Client, web3Constants, solanaWeb3_js, walletconnectV1, coinbaseWalletSdk) { 'use strict';
|
|
6
6
|
|
|
7
|
-
function _optionalChain$
|
|
7
|
+
function _optionalChain$f(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
8
8
|
class Transaction {
|
|
9
9
|
|
|
10
10
|
constructor({ blockchain, from, to, value, api, method, params, instructions, sent, succeeded, failed }) {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
this.to = (to && to.match('0x')) ? ethers.ethers.utils.getAddress(to) : to;
|
|
16
16
|
|
|
17
17
|
// optional
|
|
18
|
-
this.value = _optionalChain$
|
|
18
|
+
this.value = _optionalChain$f([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
19
19
|
this.api = api;
|
|
20
20
|
this.method = method;
|
|
21
21
|
this.params = params;
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
setProvider: setProvider$1,
|
|
294
294
|
};
|
|
295
295
|
|
|
296
|
-
function _optionalChain$
|
|
296
|
+
function _optionalChain$e(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
297
297
|
let getCacheStore = () => {
|
|
298
298
|
if (getWindow()._cacheStore == undefined) {
|
|
299
299
|
resetCache();
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
|
|
324
324
|
let get = function ({ key, expires }) {
|
|
325
325
|
let cachedEntry = getCacheStore()[key];
|
|
326
|
-
if (_optionalChain$
|
|
326
|
+
if (_optionalChain$e([cachedEntry, 'optionalAccess', _ => _.expiresAt]) > Date.now()) {
|
|
327
327
|
return cachedEntry.value
|
|
328
328
|
}
|
|
329
329
|
};
|
|
@@ -564,7 +564,7 @@
|
|
|
564
564
|
supported$2.evm = ['ethereum', 'bsc', 'polygon', 'velas'];
|
|
565
565
|
supported$2.solana = [];
|
|
566
566
|
|
|
567
|
-
function _optionalChain$
|
|
567
|
+
function _optionalChain$d(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
568
568
|
class WindowEthereum {
|
|
569
569
|
|
|
570
570
|
static __initStatic() {this.info = {
|
|
@@ -575,12 +575,13 @@
|
|
|
575
575
|
|
|
576
576
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
577
577
|
return (
|
|
578
|
-
_optionalChain$
|
|
578
|
+
_optionalChain$d([window, 'optionalAccess', _15 => _15.ethereum]) &&
|
|
579
579
|
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length != 1 && // MetaMask
|
|
580
|
-
!_optionalChain$
|
|
581
|
-
!(_optionalChain$
|
|
582
|
-
!_optionalChain$
|
|
583
|
-
!
|
|
580
|
+
!_optionalChain$d([window, 'optionalAccess', _16 => _16.coin98]) && // Coin98
|
|
581
|
+
!(_optionalChain$d([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.isTrust]) || _optionalChain$d([window, 'optionalAccess', _19 => _19.ethereum, 'optionalAccess', _20 => _20.isTrustWallet])) && // Trust Wallet
|
|
582
|
+
!_optionalChain$d([window, 'optionalAccess', _21 => _21.ethereum, 'optionalAccess', _22 => _22.isDeficonnectProvider]) && // crypto.com
|
|
583
|
+
!_optionalChain$d([window, 'optionalAccess', _23 => _23.ethereum, 'optionalAccess', _24 => _24.isHyperPay]) && // isHyperPay
|
|
584
|
+
!(_optionalChain$d([window, 'optionalAccess', _25 => _25.ethereum, 'optionalAccess', _26 => _26.isCoinbaseWallet]) || _optionalChain$d([window, 'optionalAccess', _27 => _27.ethereum, 'optionalAccess', _28 => _28.isWalletLink]))
|
|
584
585
|
)
|
|
585
586
|
};}
|
|
586
587
|
|
|
@@ -691,7 +692,7 @@
|
|
|
691
692
|
}
|
|
692
693
|
} WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
|
|
693
694
|
|
|
694
|
-
function _optionalChain$
|
|
695
|
+
function _optionalChain$c(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
695
696
|
class Binance extends WindowEthereum {
|
|
696
697
|
|
|
697
698
|
static __initStatic() {this.info = {
|
|
@@ -701,7 +702,7 @@
|
|
|
701
702
|
};}
|
|
702
703
|
|
|
703
704
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
704
|
-
return _optionalChain$
|
|
705
|
+
return _optionalChain$c([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
|
|
705
706
|
!window.coin98
|
|
706
707
|
};}
|
|
707
708
|
|
|
@@ -709,7 +710,7 @@
|
|
|
709
710
|
|
|
710
711
|
} Binance.__initStatic(); Binance.__initStatic2();
|
|
711
712
|
|
|
712
|
-
function _optionalChain$
|
|
713
|
+
function _optionalChain$b(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
713
714
|
class Brave extends WindowEthereum {
|
|
714
715
|
|
|
715
716
|
static __initStatic() {this.info = {
|
|
@@ -718,10 +719,10 @@
|
|
|
718
719
|
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
719
720
|
};}
|
|
720
721
|
|
|
721
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
722
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
|
|
722
723
|
} Brave.__initStatic(); Brave.__initStatic2();
|
|
723
724
|
|
|
724
|
-
function _optionalChain$
|
|
725
|
+
function _optionalChain$a(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
725
726
|
class Coin98 extends WindowEthereum {
|
|
726
727
|
|
|
727
728
|
static __initStatic() {this.info = {
|
|
@@ -730,10 +731,10 @@
|
|
|
730
731
|
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
731
732
|
};}
|
|
732
733
|
|
|
733
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
734
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$a([window, 'optionalAccess', _2 => _2.coin98]) };}
|
|
734
735
|
} Coin98.__initStatic(); Coin98.__initStatic2();
|
|
735
736
|
|
|
736
|
-
function _optionalChain$
|
|
737
|
+
function _optionalChain$9(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
737
738
|
class Coinbase extends WindowEthereum {
|
|
738
739
|
|
|
739
740
|
static __initStatic() {this.info = {
|
|
@@ -742,10 +743,10 @@
|
|
|
742
743
|
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
743
744
|
};}
|
|
744
745
|
|
|
745
|
-
static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$
|
|
746
|
+
static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$9([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$9([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
|
|
746
747
|
} Coinbase.__initStatic(); Coinbase.__initStatic2();
|
|
747
748
|
|
|
748
|
-
function _optionalChain$
|
|
749
|
+
function _optionalChain$8(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
749
750
|
class CryptoCom extends WindowEthereum {
|
|
750
751
|
|
|
751
752
|
static __initStatic() {this.info = {
|
|
@@ -754,9 +755,21 @@
|
|
|
754
755
|
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
755
756
|
};}
|
|
756
757
|
|
|
757
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
758
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$8([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
|
|
758
759
|
} CryptoCom.__initStatic(); CryptoCom.__initStatic2();
|
|
759
760
|
|
|
761
|
+
function _optionalChain$7(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
762
|
+
class HyperPay extends WindowEthereum {
|
|
763
|
+
|
|
764
|
+
static __initStatic() {this.info = {
|
|
765
|
+
name: 'HyperPay',
|
|
766
|
+
logo: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjA0LjcgMjAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyMDQuNyAyMDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZmlsbD0iIzFBNzJGRSIgZD0iTTEwMi41LDUuMkM1MC44LDUuMiw4LjgsNDcuMiw4LjgsOTlzNDIsOTMuNSw5My44LDkzLjVzOTMuOC00Miw5My44LTkzLjhTMTU0LjIsNS4yLDEwMi41LDUuMnogTTEyNy4yLDExOS4yCgljLTYuMiwwLTIxLjcsMC4zLTIxLjcsMC4zbC03LDI3aC0yOWw2LjgtMjYuNUgzMWw3LjItMjEuOGMwLDAsNzguOCwwLjIsODUuMiwwYzYuNS0wLjIsMTYuNS0xLjgsMTYuOC0xNC44YzAuMy0xNy44LTI3LTE2LjgtMjkuMi0xCgljLTEuNSwxMC0xLjUsMTIuNS0xLjUsMTIuNUg4My44bDUtMjMuNUg0N2w2LjMtMjJjMCwwLDYxLjIsMC4yLDcyLjgsMC4yczQyLjIsMyw0Mi4yLDMxLjJDMTY4LjIsMTEyLDEzOC41LDExOS4zLDEyNy4yLDExOS4yCglMMTI3LjIsMTE5LjJ6Ii8+Cjwvc3ZnPgo=",
|
|
767
|
+
blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
|
|
768
|
+
};}
|
|
769
|
+
|
|
770
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$7([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
|
|
771
|
+
} HyperPay.__initStatic(); HyperPay.__initStatic2();
|
|
772
|
+
|
|
760
773
|
function _optionalChain$6(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
761
774
|
class MetaMask extends WindowEthereum {
|
|
762
775
|
|
|
@@ -1077,9 +1090,6 @@
|
|
|
1077
1090
|
|
|
1078
1091
|
const sendTransaction$1 = async ({ transaction, wallet })=> {
|
|
1079
1092
|
transaction = new Transaction(transaction);
|
|
1080
|
-
if((await wallet.connectedTo(transaction.blockchain)) == false) {
|
|
1081
|
-
await wallet.switchTo(transaction.blockchain);
|
|
1082
|
-
}
|
|
1083
1093
|
if((await wallet.connectedTo(transaction.blockchain)) == false) {
|
|
1084
1094
|
throw({ code: 'WRONG_NETWORK' })
|
|
1085
1095
|
}
|
|
@@ -1659,6 +1669,7 @@
|
|
|
1659
1669
|
Opera,
|
|
1660
1670
|
Coin98,
|
|
1661
1671
|
CryptoCom,
|
|
1672
|
+
HyperPay,
|
|
1662
1673
|
WindowEthereum,
|
|
1663
1674
|
WindowSolana,
|
|
1664
1675
|
WalletConnectV1,
|
|
@@ -1700,6 +1711,7 @@
|
|
|
1700
1711
|
wallets.Opera,
|
|
1701
1712
|
wallets.Coin98,
|
|
1702
1713
|
wallets.CryptoCom,
|
|
1714
|
+
wallets.HyperPay,
|
|
1703
1715
|
wallets.WalletConnectV1,
|
|
1704
1716
|
wallets.WalletLink
|
|
1705
1717
|
];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/web3-wallets-evm",
|
|
3
3
|
"moduleName": "Web3Wallets",
|
|
4
|
-
"version": "15.1
|
|
4
|
+
"version": "15.2.1",
|
|
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",
|