Skip to content

Commit

Permalink
v5.5.5. build
Browse files Browse the repository at this point in the history
  • Loading branch information
10xSebastian committed Sep 27, 2021
1 parent e465bda commit 26fcbe7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
9 changes: 5 additions & 4 deletions dist/cjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17768,7 +17768,7 @@ function parseUnits(value, unitName) {
return parseFixed(value, (unitName != null) ? unitName : 18);
}

function _optionalChain$1(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; }
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; }
class Transaction {

constructor({ blockchain, from, to, api, method, params, value, sent, confirmed, ensured, failed }) {
Expand All @@ -17779,7 +17779,7 @@ class Transaction {
this.api = api;
this.method = method;
this.params = params;
this.value = _optionalChain$1([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
this.value = _optionalChain$2([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
this.sent = sent;
this.confirmed = confirmed;
this.ensured = ensured;
Expand Down Expand Up @@ -18045,6 +18045,7 @@ class WalletConnectProvider extends JsonRpcProvider {

}

function _optionalChain$1(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; }
const sendTransaction = async ({ transaction, wallet })=> {
transaction = new Transaction(transaction);
await transaction.prepare({ wallet });
Expand Down Expand Up @@ -18095,7 +18096,7 @@ const submitContractInteraction = async ({ transaction, wallet })=>{
return wallet.connector.sendTransaction({
from: transaction.from,
to: transaction.to,
value: transaction.value,
value: _optionalChain$1([transaction, 'access', _ => _.value, 'optionalAccess', _2 => _2.toString, 'call', _3 => _3()]),
data: populatedTransaction.data
})
};
Expand All @@ -18104,7 +18105,7 @@ const submitSimpleTransfer = ({ transaction, wallet })=>{
return wallet.connector.sendTransaction({
from: transaction.from,
to: transaction.to,
value: transaction.value
value: _optionalChain$1([transaction, 'access', _4 => _4.value, 'optionalAccess', _5 => _5.toString, 'call', _6 => _6()])
})
};

Expand Down
9 changes: 5 additions & 4 deletions dist/es/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17757,7 +17757,7 @@ function parseUnits(value, unitName) {
return parseFixed(value, (unitName != null) ? unitName : 18);
}

function _optionalChain$1(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; }
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; }
class Transaction {

constructor({ blockchain, from, to, api, method, params, value, sent, confirmed, ensured, failed }) {
Expand All @@ -17768,7 +17768,7 @@ class Transaction {
this.api = api;
this.method = method;
this.params = params;
this.value = _optionalChain$1([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
this.value = _optionalChain$2([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
this.sent = sent;
this.confirmed = confirmed;
this.ensured = ensured;
Expand Down Expand Up @@ -18034,6 +18034,7 @@ class WalletConnectProvider extends JsonRpcProvider {

}

function _optionalChain$1(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; }
const sendTransaction = async ({ transaction, wallet })=> {
transaction = new Transaction(transaction);
await transaction.prepare({ wallet });
Expand Down Expand Up @@ -18084,7 +18085,7 @@ const submitContractInteraction = async ({ transaction, wallet })=>{
return wallet.connector.sendTransaction({
from: transaction.from,
to: transaction.to,
value: transaction.value,
value: _optionalChain$1([transaction, 'access', _ => _.value, 'optionalAccess', _2 => _2.toString, 'call', _3 => _3()]),
data: populatedTransaction.data
})
};
Expand All @@ -18093,7 +18094,7 @@ const submitSimpleTransfer = ({ transaction, wallet })=>{
return wallet.connector.sendTransaction({
from: transaction.from,
to: transaction.to,
value: transaction.value
value: _optionalChain$1([transaction, 'access', _4 => _4.value, 'optionalAccess', _5 => _5.toString, 'call', _6 => _6()])
})
};

Expand Down
9 changes: 5 additions & 4 deletions dist/umd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17763,7 +17763,7 @@
return parseFixed(value, (unitName != null) ? unitName : 18);
}

function _optionalChain$1(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; }
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; }
class Transaction {

constructor({ blockchain, from, to, api, method, params, value, sent, confirmed, ensured, failed }) {
Expand All @@ -17774,7 +17774,7 @@
this.api = api;
this.method = method;
this.params = params;
this.value = _optionalChain$1([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
this.value = _optionalChain$2([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
this.sent = sent;
this.confirmed = confirmed;
this.ensured = ensured;
Expand Down Expand Up @@ -18040,6 +18040,7 @@

}

function _optionalChain$1(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; }
const sendTransaction = async ({ transaction, wallet })=> {
transaction = new Transaction(transaction);
await transaction.prepare({ wallet });
Expand Down Expand Up @@ -18090,7 +18091,7 @@
return wallet.connector.sendTransaction({
from: transaction.from,
to: transaction.to,
value: transaction.value,
value: _optionalChain$1([transaction, 'access', _ => _.value, 'optionalAccess', _2 => _2.toString, 'call', _3 => _3()]),
data: populatedTransaction.data
})
};
Expand All @@ -18099,7 +18100,7 @@
return wallet.connector.sendTransaction({
from: transaction.from,
to: transaction.to,
value: transaction.value
value: _optionalChain$1([transaction, 'access', _4 => _4.value, 'optionalAccess', _5 => _5.toString, 'call', _6 => _6()])
})
};

Expand Down

0 comments on commit 26fcbe7

Please sign in to comment.