@depay/web3-wallets-evm 16.2.0 → 16.2.2
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 +173 -43877
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.solana.js +209 -2676
- package/dist/umd/index.evm.js +168 -43872
- package/dist/umd/index.js +4 -0
- package/dist/umd/index.solana.js +206 -2670
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -383,6 +383,7 @@ class WindowSolana {
|
|
|
383
383
|
} WindowSolana.__initStatic(); WindowSolana.__initStatic2();
|
|
384
384
|
|
|
385
385
|
function _optionalChain$k(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; }
|
|
386
|
+
|
|
386
387
|
class Backpack extends WindowSolana {
|
|
387
388
|
|
|
388
389
|
static __initStatic() {this.info = {
|
|
@@ -489,6 +490,7 @@ const submitSimpleTransfer$3 = ({ transaction, signer })=>{
|
|
|
489
490
|
};
|
|
490
491
|
|
|
491
492
|
function _optionalChain$j(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; }
|
|
493
|
+
|
|
492
494
|
class WindowEthereum {
|
|
493
495
|
|
|
494
496
|
static __initStatic() {this.info = {
|
|
@@ -1511,6 +1513,7 @@ WalletConnectV1.getConnectedInstance = getConnectedInstance$2;
|
|
|
1511
1513
|
WalletConnectV1.setConnectedInstance = setConnectedInstance$1;
|
|
1512
1514
|
|
|
1513
1515
|
function _optionalChain$2(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; }
|
|
1516
|
+
|
|
1514
1517
|
const sendTransaction$1 = async ({ transaction, wallet })=> {
|
|
1515
1518
|
transaction = new Transaction(transaction);
|
|
1516
1519
|
if((await wallet.connectedTo(transaction.blockchain)) == false) {
|
|
@@ -2066,6 +2069,7 @@ const submitSimpleTransfer = ({ transaction, signer })=>{
|
|
|
2066
2069
|
};
|
|
2067
2070
|
|
|
2068
2071
|
function _optionalChain(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; }
|
|
2072
|
+
|
|
2069
2073
|
const getConnectedInstance = ()=>{
|
|
2070
2074
|
return window._connectedWalletLinkInstance
|
|
2071
2075
|
};
|