Skip to content

Commit

Permalink
admin: updated dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed May 6, 2023
1 parent 1bc8b55 commit 1359380
Show file tree
Hide file tree
Showing 56 changed files with 608 additions and 130 deletions.
14 changes: 12 additions & 2 deletions dist/ethers.js
Original file line number Diff line number Diff line change
Expand Up @@ -6046,7 +6046,6 @@ class SigningKey {
*/
computeSharedSecret(other) {
const pubKey = SigningKey.computePublicKey(other);
console.log(pubKey);
return hexlify(getSharedSecret(getBytesCopy(this.#privateKey), getBytes(pubKey)));
}
/**
Expand Down Expand Up @@ -9020,6 +9019,10 @@ function hashMessage(message) {
message
]));
}
/**
* Return the address of the private key that produced
* the signature %%sig%% during signing for %%message%%.
*/
function verifyMessage(message, sig) {
const digest = hashMessage(message);
return recoverAddress(digest, sig);
Expand Down Expand Up @@ -12390,6 +12393,13 @@ class TransactionReceipt {
this.#logs = Object.freeze(tx.logs.map((log) => {
return new Log(log, provider);
}));
let gasPrice = BN_0$2;
if (tx.effectiveGasPrice != null) {
gasPrice = tx.effectiveGasPrice;
}
else if (tx.gasPrice != null) {
gasPrice = tx.gasPrice;
}
defineProperties(this, {
provider,
to: tx.to,
Expand All @@ -12402,7 +12412,7 @@ class TransactionReceipt {
logsBloom: tx.logsBloom,
gasUsed: tx.gasUsed,
cumulativeGasUsed: tx.cumulativeGasUsed,
gasPrice: (tx.effectiveGasPrice || tx.gasPrice),
gasPrice,
type: tx.type,
//byzantium: tx.byzantium,
status: tx.status,
Expand Down
2 changes: 1 addition & 1 deletion dist/ethers.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ethers.min.js

Large diffs are not rendered by default.

14 changes: 12 additions & 2 deletions dist/ethers.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -6052,7 +6052,6 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
*/
computeSharedSecret(other) {
const pubKey = SigningKey.computePublicKey(other);
console.log(pubKey);
return hexlify(getSharedSecret(getBytesCopy(this.#privateKey), getBytes(pubKey)));
}
/**
Expand Down Expand Up @@ -9026,6 +9025,10 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
message
]));
}
/**
* Return the address of the private key that produced
* the signature %%sig%% during signing for %%message%%.
*/
function verifyMessage(message, sig) {
const digest = hashMessage(message);
return recoverAddress(digest, sig);
Expand Down Expand Up @@ -12396,6 +12399,13 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
this.#logs = Object.freeze(tx.logs.map((log) => {
return new Log(log, provider);
}));
let gasPrice = BN_0$2;
if (tx.effectiveGasPrice != null) {
gasPrice = tx.effectiveGasPrice;
}
else if (tx.gasPrice != null) {
gasPrice = tx.gasPrice;
}
defineProperties(this, {
provider,
to: tx.to,
Expand All @@ -12408,7 +12418,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
logsBloom: tx.logsBloom,
gasUsed: tx.gasUsed,
cumulativeGasUsed: tx.cumulativeGasUsed,
gasPrice: (tx.effectiveGasPrice || tx.gasPrice),
gasPrice,
type: tx.type,
//byzantium: tx.byzantium,
status: tx.status,
Expand Down
2 changes: 1 addition & 1 deletion dist/ethers.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ethers.umd.min.js

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions lib.commonjs/_tests/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import "./test-abi.js";
import "./test-address.js";
import "./test-contract.js";
import "./test-crypto.js";
import "./test-hash.js";
import "./test-hash-typeddata.js";
import "./test-providers-avatar.js";
import "./test-providers-ccip.js";
import "./test-providers-wildcard.js";
import "./test-rlp.js";
import "./test-transaction.js";
import "./test-utils-maths.js";
import "./test-utils-misc.js";
import "./test-utils-units.js";
import "./test-utils-utf8.js";
import "./test-wallet.js";
import "./test-wallet-hd.js";
import "./test-wallet-json.js";
import "./test-wallet-mnemonic.js";
import "./test-wordlists.js";
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions lib.commonjs/_tests/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions lib.commonjs/_tests/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib.commonjs/_tests/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 17 additions & 16 deletions lib.commonjs/_tests/test-crypto.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1359380

Please sign in to comment.