admin: updated dist files
This commit is contained in:
parent
c764e9a10b
commit
0802b70a72
@ -3,6 +3,15 @@ Change Log
|
||||
|
||||
This change log is maintained by `src.ts/_admin/update-changelog.ts` but may also be manually updated.
|
||||
|
||||
ethers/v6.3.0 (2023-04-06 04:35)
|
||||
--------------------------------
|
||||
|
||||
- Added support for legacy ABI JSON fragments ([#3932](https://github.com/ethers-io/ethers.js/issues/3932); [8c5973e](https://github.com/ethers-io/ethers.js/commit/8c5973e3a9b8d4d4ed80bdf209d8a0b6cc6b8d6d)).
|
||||
- Add _in_ operator support for contract and contract.filters ([#3901](https://github.com/ethers-io/ethers.js/issues/3901); [c58ab3a](https://github.com/ethers-io/ethers.js/commit/c58ab3a97687e15a3ffe30b038089c5f4b570bb9)).
|
||||
- Fixed TypedData unsigned value range ([#3873](https://github.com/ethers-io/ethers.js/issues/3873); [a851b24](https://github.com/ethers-io/ethers.js/commit/a851b24d0af009ecf277766d2a5f81f9b3e7f9f8)).
|
||||
- Added missing export for getIndexedAccountPath ([#3875](https://github.com/ethers-io/ethers.js/issues/3875); [356ff2b](https://github.com/ethers-io/ethers.js/commit/356ff2becb4f4d3622b281d3825770af5caf71ca)).
|
||||
- Fixed TypedData payloads for JSON-restricted chainId field ([#3868](https://github.com/ethers-io/ethers.js/issues/3868); [50b74b8](https://github.com/ethers-io/ethers.js/commit/50b74b8806ef2064f2764b09f89c7ac75fda3a3c)).
|
||||
|
||||
ethers/v6.2.3 (2023-03-27 21:22)
|
||||
--------------------------------
|
||||
|
||||
|
156
dist/ethers.js
vendored
156
dist/ethers.js
vendored
@ -3,7 +3,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
|
||||
/**
|
||||
* The current version of Ethers.
|
||||
*/
|
||||
const version = "6.2.3";
|
||||
const version = "6.3.0";
|
||||
|
||||
/**
|
||||
* Property helper functions.
|
||||
@ -6809,7 +6809,16 @@ function resolveAddress(target, resolver) {
|
||||
null;
|
||||
|
||||
/**
|
||||
* About typed...
|
||||
* A Typed object allows a value to have its type explicitly
|
||||
* specified.
|
||||
*
|
||||
* For example, in Solidity, the value ``45`` could represent a
|
||||
* ``uint8`` or a ``uint256``. The value ``0x1234`` could represent
|
||||
* a ``bytes2`` or ``bytes``.
|
||||
*
|
||||
* Since JavaScript has no meaningful way to explicitly inform any
|
||||
* APIs which what the type is, this allows transparent interoperation
|
||||
* with Soldity.
|
||||
*
|
||||
* @_subsection: api/abi:Typed Values
|
||||
*/
|
||||
@ -9669,8 +9678,13 @@ function checkString(key) {
|
||||
const domainChecks = {
|
||||
name: checkString("name"),
|
||||
version: checkString("version"),
|
||||
chainId: function (value) {
|
||||
return getBigInt(value, "domain.chainId");
|
||||
chainId: function (_value) {
|
||||
const value = getBigInt(_value, "domain.chainId");
|
||||
assertArgument(value >= 0, "invalid chain ID", "domain.chainId", _value);
|
||||
if (Number.isSafeInteger(value)) {
|
||||
return Number(value);
|
||||
}
|
||||
return toQuantity(value);
|
||||
},
|
||||
verifyingContract: function (value) {
|
||||
try {
|
||||
@ -9698,7 +9712,7 @@ function getBaseEncoder(type) {
|
||||
return function (_value) {
|
||||
const value = getBigInt(_value, "value");
|
||||
assertArgument(value >= boundsLower && value <= boundsUpper, `value out-of-bounds for ${type}`, "value", value);
|
||||
return toBeHex(toTwos(value, 256), 32);
|
||||
return toBeHex(signed ? toTwos(value, 256) : value, 32);
|
||||
};
|
||||
}
|
||||
}
|
||||
@ -11184,8 +11198,26 @@ class FunctionFragment extends NamedFragment {
|
||||
consumeEoi(obj);
|
||||
return new FunctionFragment(_guard$2, name, mutability, inputs, outputs, gas);
|
||||
}
|
||||
// @TODO: verifyState for stateMutability
|
||||
return new FunctionFragment(_guard$2, obj.name, obj.stateMutability, obj.inputs ? obj.inputs.map(ParamType.from) : [], obj.outputs ? obj.outputs.map(ParamType.from) : [], (obj.gas != null) ? obj.gas : null);
|
||||
let stateMutability = obj.stateMutability;
|
||||
// Use legacy Solidity ABI logic if stateMutability is missing
|
||||
if (stateMutability == null) {
|
||||
stateMutability = "payable";
|
||||
if (typeof (obj.constant) === "boolean") {
|
||||
stateMutability = "view";
|
||||
if (!obj.constant) {
|
||||
stateMutability = "payable";
|
||||
if (typeof (obj.payable) === "boolean" && !obj.payable) {
|
||||
stateMutability = "nonpayable";
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (typeof (obj.payable) === "boolean" && !obj.payable) {
|
||||
stateMutability = "nonpayable";
|
||||
}
|
||||
}
|
||||
// @TODO: verifyState for stateMutability (e.g. throw if
|
||||
// payable: false but stateMutability is "nonpayable")
|
||||
return new FunctionFragment(_guard$2, obj.name, stateMutability, obj.inputs ? obj.inputs.map(ParamType.from) : [], obj.outputs ? obj.outputs.map(ParamType.from) : [], (obj.gas != null) ? obj.gas : null);
|
||||
}
|
||||
static isFragment(value) {
|
||||
return (value && value[internal$1] === FunctionFragmentInternal);
|
||||
@ -11769,6 +11801,16 @@ class Interface {
|
||||
assertArgument(fragment, "no matching function", "key", key);
|
||||
return fragment.name;
|
||||
}
|
||||
/**
|
||||
* Returns true if %%key%% (a function selector, function name or
|
||||
* function signature) is present in the ABI.
|
||||
*
|
||||
* In the case of a function name, the name may be ambiguous, so
|
||||
* accessing the [[FunctionFragment]] may require refinement.
|
||||
*/
|
||||
hasFunction(key) {
|
||||
return !!this.#getFunction(key, null, false);
|
||||
}
|
||||
/**
|
||||
* Get the [[FunctionFragment]] for %%key%%, which may be a function
|
||||
* selector, function name or function signature that belongs to the ABI.
|
||||
@ -11861,6 +11903,16 @@ class Interface {
|
||||
assertArgument(fragment, "no matching event", "key", key);
|
||||
return fragment.name;
|
||||
}
|
||||
/**
|
||||
* Returns true if %%key%% (an event topic hash, event name or
|
||||
* event signature) is present in the ABI.
|
||||
*
|
||||
* In the case of an event name, the name may be ambiguous, so
|
||||
* accessing the [[EventFragment]] may require refinement.
|
||||
*/
|
||||
hasEvent(key) {
|
||||
return !!this.#getEvent(key, null, false);
|
||||
}
|
||||
/**
|
||||
* Get the [[EventFragment]] for %%key%%, which may be a topic hash,
|
||||
* event name or event signature that belongs to the ABI.
|
||||
@ -13627,80 +13679,6 @@ function buildWrappedFallback(contract) {
|
||||
});
|
||||
return method;
|
||||
}
|
||||
/*
|
||||
class WrappedFallback {
|
||||
|
||||
constructor (contract: BaseContract) {
|
||||
defineProperties<WrappedFallback>(this, { _contract: contract });
|
||||
|
||||
const proxy = new Proxy(this, {
|
||||
// Perform send when called
|
||||
apply: async (target, thisArg, args: Array<any>) => {
|
||||
return await target.send(...args);
|
||||
},
|
||||
});
|
||||
|
||||
return proxy;
|
||||
}
|
||||
|
||||
async populateTransaction(overrides?: Omit<TransactionRequest, "to">): Promise<ContractTransaction> {
|
||||
// If an overrides was passed in, copy it and normalize the values
|
||||
|
||||
const tx: ContractTransaction = <any>(await copyOverrides<"data">(overrides, [ "data" ]));
|
||||
tx.to = await this._contract.getAddress();
|
||||
|
||||
const iface = this._contract.interface;
|
||||
|
||||
// Only allow payable contracts to set non-zero value
|
||||
const payable = iface.receive || (iface.fallback && iface.fallback.payable);
|
||||
assertArgument(payable || (tx.value || BN_0) === BN_0,
|
||||
"cannot send value to non-payable contract", "overrides.value", tx.value);
|
||||
|
||||
// Only allow fallback contracts to set non-empty data
|
||||
assertArgument(iface.fallback || (tx.data || "0x") === "0x",
|
||||
"cannot send data to receive-only contract", "overrides.data", tx.data);
|
||||
|
||||
return tx;
|
||||
}
|
||||
|
||||
async staticCall(overrides?: Omit<TransactionRequest, "to">): Promise<string> {
|
||||
const runner = getRunner(this._contract.runner, "call");
|
||||
assert(canCall(runner), "contract runner does not support calling",
|
||||
"UNSUPPORTED_OPERATION", { operation: "call" });
|
||||
|
||||
const tx = await this.populateTransaction(overrides);
|
||||
|
||||
try {
|
||||
return await runner.call(tx);
|
||||
} catch (error: any) {
|
||||
if (isCallException(error) && error.data) {
|
||||
throw this._contract.interface.makeError(error.data, tx);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
async send(overrides?: Omit<TransactionRequest, "to">): Promise<ContractTransactionResponse> {
|
||||
const runner = this._contract.runner;
|
||||
assert(canSend(runner), "contract runner does not support sending transactions",
|
||||
"UNSUPPORTED_OPERATION", { operation: "sendTransaction" });
|
||||
|
||||
const tx = await runner.sendTransaction(await this.populateTransaction(overrides));
|
||||
const provider = getProvider(this._contract.runner);
|
||||
// @TODO: the provider can be null; make a custom dummy provider that will throw a
|
||||
// meaningful error
|
||||
return new ContractTransactionResponse(this._contract.interface, <Provider>provider, tx);
|
||||
}
|
||||
|
||||
async estimateGas(overrides?: Omit<TransactionRequest, "to">): Promise<bigint> {
|
||||
const runner = getRunner(this._contract.runner, "estimateGas");
|
||||
assert(canEstimate(runner), "contract runner does not support gas estimation",
|
||||
"UNSUPPORTED_OPERATION", { operation: "estimateGas" });
|
||||
|
||||
return await runner.estimateGas(await this.populateTransaction(overrides));
|
||||
}
|
||||
}
|
||||
*/
|
||||
function buildWrappedMethod(contract, key) {
|
||||
const getFragment = function (...args) {
|
||||
const fragment = contract.interface.getFunction(key, args);
|
||||
@ -14077,6 +14055,13 @@ class BaseContract {
|
||||
return result;
|
||||
}
|
||||
throw new Error(`unknown contract event: ${prop}`);
|
||||
},
|
||||
has: (target, prop) => {
|
||||
// Pass important checks (like `then` for Promise) through
|
||||
if (passProperties.indexOf(prop) >= 0) {
|
||||
return Reflect.has(target, prop);
|
||||
}
|
||||
return Reflect.has(target, prop) || this.interface.hasEvent(String(prop));
|
||||
}
|
||||
});
|
||||
defineProperties(this, { filters });
|
||||
@ -14095,6 +14080,12 @@ class BaseContract {
|
||||
return result;
|
||||
}
|
||||
throw new Error(`unknown contract method: ${prop}`);
|
||||
},
|
||||
has: (target, prop) => {
|
||||
if (prop in target || passProperties.indexOf(prop) >= 0) {
|
||||
return Reflect.has(target, prop);
|
||||
}
|
||||
return target.interface.hasFunction(String(prop));
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -22605,6 +22596,7 @@ var ethers = /*#__PURE__*/Object.freeze({
|
||||
Wallet: Wallet,
|
||||
defaultPath: defaultPath,
|
||||
getAccountPath: getAccountPath,
|
||||
getIndexedAccountPath: getIndexedAccountPath,
|
||||
isCrowdsaleJson: isCrowdsaleJson,
|
||||
isKeystoreJson: isKeystoreJson,
|
||||
decryptCrowdsaleJson: decryptCrowdsaleJson,
|
||||
@ -22627,5 +22619,5 @@ var ethers = /*#__PURE__*/Object.freeze({
|
||||
* @_navTitle: API
|
||||
*/
|
||||
|
||||
export { AbiCoder, AbstractProvider, AbstractSigner, AlchemyProvider, AnkrProvider, BaseContract, BaseWallet, Block, BrowserProvider, CloudflareProvider, ConstructorFragment, Contract, ContractEventPayload, ContractFactory, ContractTransactionReceipt, ContractTransactionResponse, ContractUnknownEventPayload, EnsPlugin, EnsResolver, ErrorDescription, ErrorFragment, EtherSymbol, EtherscanPlugin, EtherscanProvider, EventFragment, EventLog, EventPayload, FallbackFragment, FallbackProvider, FeeData, FeeDataNetworkPlugin, FetchCancelSignal, FetchRequest, FetchResponse, FixedNumber, Fragment, FunctionFragment, GasCostPlugin, HDNodeVoidWallet, HDNodeWallet, Indexed, InfuraProvider, InfuraWebSocketProvider, Interface, IpcSocketProvider, JsonRpcApiProvider, JsonRpcProvider, JsonRpcSigner, LangEn, Log, LogDescription, MaxInt256, MaxUint256, MessagePrefix, MinInt256, Mnemonic, N$1 as N, NamedFragment, Network, NetworkPlugin, NonceManager, ParamType, PocketProvider, QuickNodeProvider, Result, Signature, SigningKey, SocketBlockSubscriber, SocketEventSubscriber, SocketPendingSubscriber, SocketProvider, SocketSubscriber, StructFragment, Transaction, TransactionDescription, TransactionReceipt, TransactionResponse, Typed, TypedDataEncoder, UnmanagedSubscriber, Utf8ErrorFuncs, VoidSigner, Wallet, WebSocketProvider, WeiPerEther, Wordlist, WordlistOwl, WordlistOwlA, ZeroAddress, ZeroHash, accessListify, assert$1 as assert, assertArgument, assertArgumentCount, assertNormalize, assertPrivate, checkResultErrors, computeAddress, computeHmac, concat, copyRequest, dataLength, dataSlice, decodeBase58, decodeBase64, decodeBytes32String, decodeRlp, decryptCrowdsaleJson, decryptKeystoreJson, decryptKeystoreJsonSync, defaultPath, defineProperties, dnsEncode, encodeBase58, encodeBase64, encodeBytes32String, encodeRlp, encryptKeystoreJson, encryptKeystoreJsonSync, ensNormalize, ethers, formatEther, formatUnits, fromTwos, getAccountPath, getAddress, getBigInt, getBytes, getBytesCopy, getCreate2Address, getCreateAddress, getDefaultProvider, getIcapAddress, getNumber, getUint, hashMessage, hexlify, id, isAddress, isAddressable, isBytesLike, isCallException, isCrowdsaleJson, isError, isHexString, isKeystoreJson, isValidName, keccak256, lock, makeError, mask, namehash, parseEther, parseUnits, pbkdf2, randomBytes, recoverAddress, resolveAddress, resolveProperties, ripemd160, scrypt, scryptSync, sha256, sha512, showThrottleMessage, solidityPacked, solidityPackedKeccak256, solidityPackedSha256, stripZerosLeft, toBeArray, toBeHex, toBigInt, toNumber, toQuantity, toTwos, toUtf8Bytes, toUtf8CodePoints, toUtf8String, uuidV4, verifyMessage, verifyTypedData, version, wordlists, zeroPadBytes, zeroPadValue };
|
||||
export { AbiCoder, AbstractProvider, AbstractSigner, AlchemyProvider, AnkrProvider, BaseContract, BaseWallet, Block, BrowserProvider, CloudflareProvider, ConstructorFragment, Contract, ContractEventPayload, ContractFactory, ContractTransactionReceipt, ContractTransactionResponse, ContractUnknownEventPayload, EnsPlugin, EnsResolver, ErrorDescription, ErrorFragment, EtherSymbol, EtherscanPlugin, EtherscanProvider, EventFragment, EventLog, EventPayload, FallbackFragment, FallbackProvider, FeeData, FeeDataNetworkPlugin, FetchCancelSignal, FetchRequest, FetchResponse, FixedNumber, Fragment, FunctionFragment, GasCostPlugin, HDNodeVoidWallet, HDNodeWallet, Indexed, InfuraProvider, InfuraWebSocketProvider, Interface, IpcSocketProvider, JsonRpcApiProvider, JsonRpcProvider, JsonRpcSigner, LangEn, Log, LogDescription, MaxInt256, MaxUint256, MessagePrefix, MinInt256, Mnemonic, N$1 as N, NamedFragment, Network, NetworkPlugin, NonceManager, ParamType, PocketProvider, QuickNodeProvider, Result, Signature, SigningKey, SocketBlockSubscriber, SocketEventSubscriber, SocketPendingSubscriber, SocketProvider, SocketSubscriber, StructFragment, Transaction, TransactionDescription, TransactionReceipt, TransactionResponse, Typed, TypedDataEncoder, UnmanagedSubscriber, Utf8ErrorFuncs, VoidSigner, Wallet, WebSocketProvider, WeiPerEther, Wordlist, WordlistOwl, WordlistOwlA, ZeroAddress, ZeroHash, accessListify, assert$1 as assert, assertArgument, assertArgumentCount, assertNormalize, assertPrivate, checkResultErrors, computeAddress, computeHmac, concat, copyRequest, dataLength, dataSlice, decodeBase58, decodeBase64, decodeBytes32String, decodeRlp, decryptCrowdsaleJson, decryptKeystoreJson, decryptKeystoreJsonSync, defaultPath, defineProperties, dnsEncode, encodeBase58, encodeBase64, encodeBytes32String, encodeRlp, encryptKeystoreJson, encryptKeystoreJsonSync, ensNormalize, ethers, formatEther, formatUnits, fromTwos, getAccountPath, getAddress, getBigInt, getBytes, getBytesCopy, getCreate2Address, getCreateAddress, getDefaultProvider, getIcapAddress, getIndexedAccountPath, getNumber, getUint, hashMessage, hexlify, id, isAddress, isAddressable, isBytesLike, isCallException, isCrowdsaleJson, isError, isHexString, isKeystoreJson, isValidName, keccak256, lock, makeError, mask, namehash, parseEther, parseUnits, pbkdf2, randomBytes, recoverAddress, resolveAddress, resolveProperties, ripemd160, scrypt, scryptSync, sha256, sha512, showThrottleMessage, solidityPacked, solidityPackedKeccak256, solidityPackedSha256, stripZerosLeft, toBeArray, toBeHex, toBigInt, toNumber, toQuantity, toTwos, toUtf8Bytes, toUtf8CodePoints, toUtf8String, uuidV4, verifyMessage, verifyTypedData, version, wordlists, zeroPadBytes, zeroPadValue };
|
||||
//# sourceMappingURL=ethers.js.map
|
||||
|
2
dist/ethers.js.map
vendored
2
dist/ethers.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/ethers.min.js
vendored
2
dist/ethers.min.js
vendored
File diff suppressed because one or more lines are too long
155
dist/ethers.umd.js
vendored
155
dist/ethers.umd.js
vendored
@ -9,7 +9,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
|
||||
/**
|
||||
* The current version of Ethers.
|
||||
*/
|
||||
const version = "6.2.3";
|
||||
const version = "6.3.0";
|
||||
|
||||
/**
|
||||
* Property helper functions.
|
||||
@ -6815,7 +6815,16 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
|
||||
null;
|
||||
|
||||
/**
|
||||
* About typed...
|
||||
* A Typed object allows a value to have its type explicitly
|
||||
* specified.
|
||||
*
|
||||
* For example, in Solidity, the value ``45`` could represent a
|
||||
* ``uint8`` or a ``uint256``. The value ``0x1234`` could represent
|
||||
* a ``bytes2`` or ``bytes``.
|
||||
*
|
||||
* Since JavaScript has no meaningful way to explicitly inform any
|
||||
* APIs which what the type is, this allows transparent interoperation
|
||||
* with Soldity.
|
||||
*
|
||||
* @_subsection: api/abi:Typed Values
|
||||
*/
|
||||
@ -9675,8 +9684,13 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
|
||||
const domainChecks = {
|
||||
name: checkString("name"),
|
||||
version: checkString("version"),
|
||||
chainId: function (value) {
|
||||
return getBigInt(value, "domain.chainId");
|
||||
chainId: function (_value) {
|
||||
const value = getBigInt(_value, "domain.chainId");
|
||||
assertArgument(value >= 0, "invalid chain ID", "domain.chainId", _value);
|
||||
if (Number.isSafeInteger(value)) {
|
||||
return Number(value);
|
||||
}
|
||||
return toQuantity(value);
|
||||
},
|
||||
verifyingContract: function (value) {
|
||||
try {
|
||||
@ -9704,7 +9718,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
|
||||
return function (_value) {
|
||||
const value = getBigInt(_value, "value");
|
||||
assertArgument(value >= boundsLower && value <= boundsUpper, `value out-of-bounds for ${type}`, "value", value);
|
||||
return toBeHex(toTwos(value, 256), 32);
|
||||
return toBeHex(signed ? toTwos(value, 256) : value, 32);
|
||||
};
|
||||
}
|
||||
}
|
||||
@ -11190,8 +11204,26 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
|
||||
consumeEoi(obj);
|
||||
return new FunctionFragment(_guard$2, name, mutability, inputs, outputs, gas);
|
||||
}
|
||||
// @TODO: verifyState for stateMutability
|
||||
return new FunctionFragment(_guard$2, obj.name, obj.stateMutability, obj.inputs ? obj.inputs.map(ParamType.from) : [], obj.outputs ? obj.outputs.map(ParamType.from) : [], (obj.gas != null) ? obj.gas : null);
|
||||
let stateMutability = obj.stateMutability;
|
||||
// Use legacy Solidity ABI logic if stateMutability is missing
|
||||
if (stateMutability == null) {
|
||||
stateMutability = "payable";
|
||||
if (typeof (obj.constant) === "boolean") {
|
||||
stateMutability = "view";
|
||||
if (!obj.constant) {
|
||||
stateMutability = "payable";
|
||||
if (typeof (obj.payable) === "boolean" && !obj.payable) {
|
||||
stateMutability = "nonpayable";
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (typeof (obj.payable) === "boolean" && !obj.payable) {
|
||||
stateMutability = "nonpayable";
|
||||
}
|
||||
}
|
||||
// @TODO: verifyState for stateMutability (e.g. throw if
|
||||
// payable: false but stateMutability is "nonpayable")
|
||||
return new FunctionFragment(_guard$2, obj.name, stateMutability, obj.inputs ? obj.inputs.map(ParamType.from) : [], obj.outputs ? obj.outputs.map(ParamType.from) : [], (obj.gas != null) ? obj.gas : null);
|
||||
}
|
||||
static isFragment(value) {
|
||||
return (value && value[internal$1] === FunctionFragmentInternal);
|
||||
@ -11775,6 +11807,16 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
|
||||
assertArgument(fragment, "no matching function", "key", key);
|
||||
return fragment.name;
|
||||
}
|
||||
/**
|
||||
* Returns true if %%key%% (a function selector, function name or
|
||||
* function signature) is present in the ABI.
|
||||
*
|
||||
* In the case of a function name, the name may be ambiguous, so
|
||||
* accessing the [[FunctionFragment]] may require refinement.
|
||||
*/
|
||||
hasFunction(key) {
|
||||
return !!this.#getFunction(key, null, false);
|
||||
}
|
||||
/**
|
||||
* Get the [[FunctionFragment]] for %%key%%, which may be a function
|
||||
* selector, function name or function signature that belongs to the ABI.
|
||||
@ -11867,6 +11909,16 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
|
||||
assertArgument(fragment, "no matching event", "key", key);
|
||||
return fragment.name;
|
||||
}
|
||||
/**
|
||||
* Returns true if %%key%% (an event topic hash, event name or
|
||||
* event signature) is present in the ABI.
|
||||
*
|
||||
* In the case of an event name, the name may be ambiguous, so
|
||||
* accessing the [[EventFragment]] may require refinement.
|
||||
*/
|
||||
hasEvent(key) {
|
||||
return !!this.#getEvent(key, null, false);
|
||||
}
|
||||
/**
|
||||
* Get the [[EventFragment]] for %%key%%, which may be a topic hash,
|
||||
* event name or event signature that belongs to the ABI.
|
||||
@ -13633,80 +13685,6 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
|
||||
});
|
||||
return method;
|
||||
}
|
||||
/*
|
||||
class WrappedFallback {
|
||||
|
||||
constructor (contract: BaseContract) {
|
||||
defineProperties<WrappedFallback>(this, { _contract: contract });
|
||||
|
||||
const proxy = new Proxy(this, {
|
||||
// Perform send when called
|
||||
apply: async (target, thisArg, args: Array<any>) => {
|
||||
return await target.send(...args);
|
||||
},
|
||||
});
|
||||
|
||||
return proxy;
|
||||
}
|
||||
|
||||
async populateTransaction(overrides?: Omit<TransactionRequest, "to">): Promise<ContractTransaction> {
|
||||
// If an overrides was passed in, copy it and normalize the values
|
||||
|
||||
const tx: ContractTransaction = <any>(await copyOverrides<"data">(overrides, [ "data" ]));
|
||||
tx.to = await this._contract.getAddress();
|
||||
|
||||
const iface = this._contract.interface;
|
||||
|
||||
// Only allow payable contracts to set non-zero value
|
||||
const payable = iface.receive || (iface.fallback && iface.fallback.payable);
|
||||
assertArgument(payable || (tx.value || BN_0) === BN_0,
|
||||
"cannot send value to non-payable contract", "overrides.value", tx.value);
|
||||
|
||||
// Only allow fallback contracts to set non-empty data
|
||||
assertArgument(iface.fallback || (tx.data || "0x") === "0x",
|
||||
"cannot send data to receive-only contract", "overrides.data", tx.data);
|
||||
|
||||
return tx;
|
||||
}
|
||||
|
||||
async staticCall(overrides?: Omit<TransactionRequest, "to">): Promise<string> {
|
||||
const runner = getRunner(this._contract.runner, "call");
|
||||
assert(canCall(runner), "contract runner does not support calling",
|
||||
"UNSUPPORTED_OPERATION", { operation: "call" });
|
||||
|
||||
const tx = await this.populateTransaction(overrides);
|
||||
|
||||
try {
|
||||
return await runner.call(tx);
|
||||
} catch (error: any) {
|
||||
if (isCallException(error) && error.data) {
|
||||
throw this._contract.interface.makeError(error.data, tx);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
async send(overrides?: Omit<TransactionRequest, "to">): Promise<ContractTransactionResponse> {
|
||||
const runner = this._contract.runner;
|
||||
assert(canSend(runner), "contract runner does not support sending transactions",
|
||||
"UNSUPPORTED_OPERATION", { operation: "sendTransaction" });
|
||||
|
||||
const tx = await runner.sendTransaction(await this.populateTransaction(overrides));
|
||||
const provider = getProvider(this._contract.runner);
|
||||
// @TODO: the provider can be null; make a custom dummy provider that will throw a
|
||||
// meaningful error
|
||||
return new ContractTransactionResponse(this._contract.interface, <Provider>provider, tx);
|
||||
}
|
||||
|
||||
async estimateGas(overrides?: Omit<TransactionRequest, "to">): Promise<bigint> {
|
||||
const runner = getRunner(this._contract.runner, "estimateGas");
|
||||
assert(canEstimate(runner), "contract runner does not support gas estimation",
|
||||
"UNSUPPORTED_OPERATION", { operation: "estimateGas" });
|
||||
|
||||
return await runner.estimateGas(await this.populateTransaction(overrides));
|
||||
}
|
||||
}
|
||||
*/
|
||||
function buildWrappedMethod(contract, key) {
|
||||
const getFragment = function (...args) {
|
||||
const fragment = contract.interface.getFunction(key, args);
|
||||
@ -14083,6 +14061,13 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
|
||||
return result;
|
||||
}
|
||||
throw new Error(`unknown contract event: ${prop}`);
|
||||
},
|
||||
has: (target, prop) => {
|
||||
// Pass important checks (like `then` for Promise) through
|
||||
if (passProperties.indexOf(prop) >= 0) {
|
||||
return Reflect.has(target, prop);
|
||||
}
|
||||
return Reflect.has(target, prop) || this.interface.hasEvent(String(prop));
|
||||
}
|
||||
});
|
||||
defineProperties(this, { filters });
|
||||
@ -14101,6 +14086,12 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
|
||||
return result;
|
||||
}
|
||||
throw new Error(`unknown contract method: ${prop}`);
|
||||
},
|
||||
has: (target, prop) => {
|
||||
if (prop in target || passProperties.indexOf(prop) >= 0) {
|
||||
return Reflect.has(target, prop);
|
||||
}
|
||||
return target.interface.hasFunction(String(prop));
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -22611,6 +22602,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
|
||||
Wallet: Wallet,
|
||||
defaultPath: defaultPath,
|
||||
getAccountPath: getAccountPath,
|
||||
getIndexedAccountPath: getIndexedAccountPath,
|
||||
isCrowdsaleJson: isCrowdsaleJson,
|
||||
isKeystoreJson: isKeystoreJson,
|
||||
decryptCrowdsaleJson: decryptCrowdsaleJson,
|
||||
@ -22766,6 +22758,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
|
||||
exports.getCreateAddress = getCreateAddress;
|
||||
exports.getDefaultProvider = getDefaultProvider;
|
||||
exports.getIcapAddress = getIcapAddress;
|
||||
exports.getIndexedAccountPath = getIndexedAccountPath;
|
||||
exports.getNumber = getNumber;
|
||||
exports.getUint = getUint;
|
||||
exports.hashMessage = hashMessage;
|
||||
|
2
dist/ethers.umd.js.map
vendored
2
dist/ethers.umd.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/ethers.umd.min.js
vendored
2
dist/ethers.umd.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/wordlists-extra.js
vendored
2
dist/wordlists-extra.js
vendored
@ -149,7 +149,7 @@ const u64 = {
|
||||
/**
|
||||
* The current version of Ethers.
|
||||
*/
|
||||
const version = "6.2.3";
|
||||
const version = "6.3.0";
|
||||
|
||||
/**
|
||||
* Property helper functions.
|
||||
|
2
dist/wordlists-extra.js.map
vendored
2
dist/wordlists-extra.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/wordlists-extra.min.js
vendored
2
dist/wordlists-extra.min.js
vendored
File diff suppressed because one or more lines are too long
@ -120,4 +120,138 @@ describe("Test Interface", function () {
|
||||
assert_1.default.equal(log.args[2], BigInt(234));
|
||||
});
|
||||
});
|
||||
describe("Tests Legacy ABI formats", function () {
|
||||
// See: #3932
|
||||
const iface = new index_js_1.Interface([
|
||||
{
|
||||
name: "implicitView",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"constant": true,
|
||||
"payable": false,
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
name: "implicitSendNonpay",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"constant": false,
|
||||
"payable": false,
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
name: "implicitSendPay",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"constant": false,
|
||||
"payable": true,
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
name: "implicitSendImplicitPay",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"constant": false,
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
name: "implicitSendExplicitPay",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
payable: true,
|
||||
type: "function"
|
||||
},
|
||||
{
|
||||
name: "implicitSendExplicitNonpay",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
payable: false,
|
||||
type: "function"
|
||||
},
|
||||
{
|
||||
name: "implicitAll",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
name: "explicitView",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"constant": true,
|
||||
"payable": false,
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
name: "explicitPure",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"stateMutability": "pure",
|
||||
"constant": true,
|
||||
"payable": false,
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
name: "explicitPay",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"stateMutability": "payable",
|
||||
"constant": true,
|
||||
"payable": true,
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
name: "explicitNonpay",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"stateMutability": "nonpayable",
|
||||
"constant": true,
|
||||
"payable": false,
|
||||
"type": "function"
|
||||
},
|
||||
]);
|
||||
function test(name, isConst, payable, stateMutability) {
|
||||
it(`tests ABI configuration: ${name}`, function () {
|
||||
const f = iface.getFunction(name);
|
||||
assert_1.default.ok(!!f, `missing ${name}`);
|
||||
assert_1.default.equal(f.constant, isConst, `${name}.constant`);
|
||||
assert_1.default.equal(f.stateMutability, stateMutability, `${name}.stateMutability`);
|
||||
assert_1.default.equal(f.payable, payable, `${name}.payable`);
|
||||
});
|
||||
}
|
||||
test("explicitView", true, false, "view");
|
||||
test("explicitPure", true, false, "pure");
|
||||
test("explicitPay", false, true, "payable");
|
||||
test("explicitNonpay", false, false, "nonpayable");
|
||||
test("implicitView", true, false, "view");
|
||||
test("implicitSendNonpay", false, false, "nonpayable");
|
||||
test("implicitSendPay", false, true, "payable");
|
||||
test("implicitSendImplicitPay", false, true, "payable");
|
||||
test("implicitSendExplicitPay", false, true, "payable");
|
||||
test("implicitSendExplicitNonpay", false, false, "nonpayable");
|
||||
test("implicitAll", false, true, "payable");
|
||||
});
|
||||
//# sourceMappingURL=test-abi.js.map
|
File diff suppressed because one or more lines are too long
@ -147,6 +147,34 @@ describe("Test Contract", function () {
|
||||
await specificEvent;
|
||||
await allEvents;
|
||||
});
|
||||
it("tests the _in_ operator for functions", function () {
|
||||
const contract = new index_js_1.Contract(addr, abi);
|
||||
assert_1.default.equal("testCallAdd" in contract, true, "has(testCallAdd)");
|
||||
assert_1.default.equal("nonExist" in contract, false, "has(nonExist)");
|
||||
{
|
||||
const sig = "function testCallAdd(uint256 a, uint256 b) pure returns (uint256 result)";
|
||||
assert_1.default.equal(sig in contract, true, `has(${sig})`);
|
||||
assert_1.default.equal("function nonExist()" in contract, false, "has(function nonExist())");
|
||||
}
|
||||
assert_1.default.equal("0xf24684e5" in contract, true, "has(0xf24684e5)");
|
||||
assert_1.default.equal("0xbad01234" in contract, false, "has(0xbad01234)");
|
||||
});
|
||||
it("tests the _in_ operator for events", function () {
|
||||
const contract = new index_js_1.Contract(addr, abi);
|
||||
assert_1.default.equal("EventUint256" in contract.filters, true, "has(EventUint256)");
|
||||
assert_1.default.equal("NonExist" in contract.filters, false, "has(NonExist)");
|
||||
{
|
||||
const sig = "event EventUint256(uint256 indexed value)";
|
||||
assert_1.default.equal(sig in contract.filters, true, `has(${sig})`);
|
||||
assert_1.default.equal("event NonExist()" in contract.filters, false, "has(event NonExist())");
|
||||
}
|
||||
{
|
||||
const hash = "0x85c55bbb820e6d71c71f4894e57751de334b38c421f9c170b0e66d32eafea337";
|
||||
const badHash = "0xbad01234567890ffbad01234567890ffbad01234567890ffbad01234567890ff";
|
||||
assert_1.default.equal(hash in contract.filters, true, `has(${hash})`);
|
||||
assert_1.default.equal(badHash in contract.filters, false, `has(${badHash})`);
|
||||
}
|
||||
});
|
||||
});
|
||||
describe("Test Typed Contract Interaction", function () {
|
||||
const tests = [
|
||||
|
File diff suppressed because one or more lines are too long
@ -170,4 +170,25 @@ describe("Tests Bad Math Values", function () {
|
||||
});
|
||||
});
|
||||
});
|
||||
describe("Tests Twos Compliemnts Functions", function () {
|
||||
const tests = [
|
||||
{ width: 8, value: 0, twos: 0 },
|
||||
{ width: 8, value: 1, twos: 1 },
|
||||
{ width: 8, value: -1, twos: 0xff },
|
||||
{ width: 8, value: 127, twos: 127 },
|
||||
{ width: 8, value: -128, twos: 0x80 },
|
||||
];
|
||||
for (const { twos, width, value } of tests) {
|
||||
it(`computes twos compliment values: ${value}[${width} bits]`, function () {
|
||||
const result = (0, index_js_1.toTwos)(value, width);
|
||||
assert_1.default.equal(result, twos);
|
||||
});
|
||||
}
|
||||
for (const { twos, width, value } of tests) {
|
||||
it(`computes values from twos compliment: ${value}[${width} bits]`, function () {
|
||||
const result = (0, index_js_1.fromTwos)(twos, width);
|
||||
assert_1.default.equal(result, value);
|
||||
});
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=test-utils-maths.js.map
|
File diff suppressed because one or more lines are too long
5
lib.commonjs/_tests/test-wallet-hd.d.ts
vendored
5
lib.commonjs/_tests/test-wallet-hd.d.ts
vendored
@ -1,6 +1 @@
|
||||
declare global {
|
||||
class TextDecoder {
|
||||
decode(data: Uint8Array): string;
|
||||
}
|
||||
}
|
||||
export {};
|
||||
|
@ -7,6 +7,13 @@ const assert_1 = __importDefault(require("assert"));
|
||||
const wordlists_js_1 = require("../wordlists/wordlists.js");
|
||||
const utils_js_1 = require("./utils.js");
|
||||
const index_js_1 = require("../index.js");
|
||||
/*
|
||||
declare global {
|
||||
class TextDecoder {
|
||||
decode(data: Uint8Array): string;
|
||||
}
|
||||
}
|
||||
*/
|
||||
const decoder = new TextDecoder();
|
||||
function fromHex(hex) {
|
||||
const data = Buffer.from(hex.substring(2), "hex");
|
||||
|
File diff suppressed because one or more lines are too long
@ -5,5 +5,5 @@ exports.version = void 0;
|
||||
/**
|
||||
* The current version of Ethers.
|
||||
*/
|
||||
exports.version = "6.2.3";
|
||||
exports.version = "6.3.0";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -1159,8 +1159,26 @@ class FunctionFragment extends NamedFragment {
|
||||
consumeEoi(obj);
|
||||
return new FunctionFragment(_guard, name, mutability, inputs, outputs, gas);
|
||||
}
|
||||
// @TODO: verifyState for stateMutability
|
||||
return new FunctionFragment(_guard, obj.name, obj.stateMutability, obj.inputs ? obj.inputs.map(ParamType.from) : [], obj.outputs ? obj.outputs.map(ParamType.from) : [], (obj.gas != null) ? obj.gas : null);
|
||||
let stateMutability = obj.stateMutability;
|
||||
// Use legacy Solidity ABI logic if stateMutability is missing
|
||||
if (stateMutability == null) {
|
||||
stateMutability = "payable";
|
||||
if (typeof (obj.constant) === "boolean") {
|
||||
stateMutability = "view";
|
||||
if (!obj.constant) {
|
||||
stateMutability = "payable";
|
||||
if (typeof (obj.payable) === "boolean" && !obj.payable) {
|
||||
stateMutability = "nonpayable";
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (typeof (obj.payable) === "boolean" && !obj.payable) {
|
||||
stateMutability = "nonpayable";
|
||||
}
|
||||
}
|
||||
// @TODO: verifyState for stateMutability (e.g. throw if
|
||||
// payable: false but stateMutability is "nonpayable")
|
||||
return new FunctionFragment(_guard, obj.name, stateMutability, obj.inputs ? obj.inputs.map(ParamType.from) : [], obj.outputs ? obj.outputs.map(ParamType.from) : [], (obj.gas != null) ? obj.gas : null);
|
||||
}
|
||||
static isFragment(value) {
|
||||
return (value && value[internal] === FunctionFragmentInternal);
|
||||
|
File diff suppressed because one or more lines are too long
16
lib.commonjs/abi/interface.d.ts
vendored
16
lib.commonjs/abi/interface.d.ts
vendored
@ -98,6 +98,14 @@ export declare class Interface {
|
||||
* function name or function signature that belongs to the ABI.
|
||||
*/
|
||||
getFunctionName(key: string): string;
|
||||
/**
|
||||
* Returns true if %%key%% (a function selector, function name or
|
||||
* function signature) is present in the ABI.
|
||||
*
|
||||
* In the case of a function name, the name may be ambiguous, so
|
||||
* accessing the [[FunctionFragment]] may require refinement.
|
||||
*/
|
||||
hasFunction(key: string): boolean;
|
||||
/**
|
||||
* Get the [[FunctionFragment]] for %%key%%, which may be a function
|
||||
* selector, function name or function signature that belongs to the ABI.
|
||||
@ -118,6 +126,14 @@ export declare class Interface {
|
||||
* event name or event signature that belongs to the ABI.
|
||||
*/
|
||||
getEventName(key: string): string;
|
||||
/**
|
||||
* Returns true if %%key%% (an event topic hash, event name or
|
||||
* event signature) is present in the ABI.
|
||||
*
|
||||
* In the case of an event name, the name may be ambiguous, so
|
||||
* accessing the [[EventFragment]] may require refinement.
|
||||
*/
|
||||
hasEvent(key: string): boolean;
|
||||
/**
|
||||
* Get the [[EventFragment]] for %%key%%, which may be a topic hash,
|
||||
* event name or event signature that belongs to the ABI.
|
||||
|
@ -337,6 +337,16 @@ class Interface {
|
||||
(0, index_js_3.assertArgument)(fragment, "no matching function", "key", key);
|
||||
return fragment.name;
|
||||
}
|
||||
/**
|
||||
* Returns true if %%key%% (a function selector, function name or
|
||||
* function signature) is present in the ABI.
|
||||
*
|
||||
* In the case of a function name, the name may be ambiguous, so
|
||||
* accessing the [[FunctionFragment]] may require refinement.
|
||||
*/
|
||||
hasFunction(key) {
|
||||
return !!this.#getFunction(key, null, false);
|
||||
}
|
||||
/**
|
||||
* Get the [[FunctionFragment]] for %%key%%, which may be a function
|
||||
* selector, function name or function signature that belongs to the ABI.
|
||||
@ -429,6 +439,16 @@ class Interface {
|
||||
(0, index_js_3.assertArgument)(fragment, "no matching event", "key", key);
|
||||
return fragment.name;
|
||||
}
|
||||
/**
|
||||
* Returns true if %%key%% (an event topic hash, event name or
|
||||
* event signature) is present in the ABI.
|
||||
*
|
||||
* In the case of an event name, the name may be ambiguous, so
|
||||
* accessing the [[EventFragment]] may require refinement.
|
||||
*/
|
||||
hasEvent(key) {
|
||||
return !!this.#getEvent(key, null, false);
|
||||
}
|
||||
/**
|
||||
* Get the [[EventFragment]] for %%key%%, which may be a topic hash,
|
||||
* event name or event signature that belongs to the ABI.
|
||||
|
File diff suppressed because one or more lines are too long
11
lib.commonjs/abi/typed.d.ts
vendored
11
lib.commonjs/abi/typed.d.ts
vendored
@ -1,5 +1,14 @@
|
||||
/**
|
||||
* About typed...
|
||||
* A Typed object allows a value to have its type explicitly
|
||||
* specified.
|
||||
*
|
||||
* For example, in Solidity, the value ``45`` could represent a
|
||||
* ``uint8`` or a ``uint256``. The value ``0x1234`` could represent
|
||||
* a ``bytes2`` or ``bytes``.
|
||||
*
|
||||
* Since JavaScript has no meaningful way to explicitly inform any
|
||||
* APIs which what the type is, this allows transparent interoperation
|
||||
* with Soldity.
|
||||
*
|
||||
* @_subsection: api/abi:Typed Values
|
||||
*/
|
||||
|
@ -1,6 +1,15 @@
|
||||
"use strict";
|
||||
/**
|
||||
* About typed...
|
||||
* A Typed object allows a value to have its type explicitly
|
||||
* specified.
|
||||
*
|
||||
* For example, in Solidity, the value ``45`` could represent a
|
||||
* ``uint8`` or a ``uint256``. The value ``0x1234`` could represent
|
||||
* a ``bytes2`` or ``bytes``.
|
||||
*
|
||||
* Since JavaScript has no meaningful way to explicitly inform any
|
||||
* APIs which what the type is, this allows transparent interoperation
|
||||
* with Soldity.
|
||||
*
|
||||
* @_subsection: api/abi:Typed Values
|
||||
*/
|
||||
|
File diff suppressed because one or more lines are too long
@ -161,80 +161,6 @@ function buildWrappedFallback(contract) {
|
||||
});
|
||||
return method;
|
||||
}
|
||||
/*
|
||||
class WrappedFallback {
|
||||
|
||||
constructor (contract: BaseContract) {
|
||||
defineProperties<WrappedFallback>(this, { _contract: contract });
|
||||
|
||||
const proxy = new Proxy(this, {
|
||||
// Perform send when called
|
||||
apply: async (target, thisArg, args: Array<any>) => {
|
||||
return await target.send(...args);
|
||||
},
|
||||
});
|
||||
|
||||
return proxy;
|
||||
}
|
||||
|
||||
async populateTransaction(overrides?: Omit<TransactionRequest, "to">): Promise<ContractTransaction> {
|
||||
// If an overrides was passed in, copy it and normalize the values
|
||||
|
||||
const tx: ContractTransaction = <any>(await copyOverrides<"data">(overrides, [ "data" ]));
|
||||
tx.to = await this._contract.getAddress();
|
||||
|
||||
const iface = this._contract.interface;
|
||||
|
||||
// Only allow payable contracts to set non-zero value
|
||||
const payable = iface.receive || (iface.fallback && iface.fallback.payable);
|
||||
assertArgument(payable || (tx.value || BN_0) === BN_0,
|
||||
"cannot send value to non-payable contract", "overrides.value", tx.value);
|
||||
|
||||
// Only allow fallback contracts to set non-empty data
|
||||
assertArgument(iface.fallback || (tx.data || "0x") === "0x",
|
||||
"cannot send data to receive-only contract", "overrides.data", tx.data);
|
||||
|
||||
return tx;
|
||||
}
|
||||
|
||||
async staticCall(overrides?: Omit<TransactionRequest, "to">): Promise<string> {
|
||||
const runner = getRunner(this._contract.runner, "call");
|
||||
assert(canCall(runner), "contract runner does not support calling",
|
||||
"UNSUPPORTED_OPERATION", { operation: "call" });
|
||||
|
||||
const tx = await this.populateTransaction(overrides);
|
||||
|
||||
try {
|
||||
return await runner.call(tx);
|
||||
} catch (error: any) {
|
||||
if (isCallException(error) && error.data) {
|
||||
throw this._contract.interface.makeError(error.data, tx);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
async send(overrides?: Omit<TransactionRequest, "to">): Promise<ContractTransactionResponse> {
|
||||
const runner = this._contract.runner;
|
||||
assert(canSend(runner), "contract runner does not support sending transactions",
|
||||
"UNSUPPORTED_OPERATION", { operation: "sendTransaction" });
|
||||
|
||||
const tx = await runner.sendTransaction(await this.populateTransaction(overrides));
|
||||
const provider = getProvider(this._contract.runner);
|
||||
// @TODO: the provider can be null; make a custom dummy provider that will throw a
|
||||
// meaningful error
|
||||
return new ContractTransactionResponse(this._contract.interface, <Provider>provider, tx);
|
||||
}
|
||||
|
||||
async estimateGas(overrides?: Omit<TransactionRequest, "to">): Promise<bigint> {
|
||||
const runner = getRunner(this._contract.runner, "estimateGas");
|
||||
assert(canEstimate(runner), "contract runner does not support gas estimation",
|
||||
"UNSUPPORTED_OPERATION", { operation: "estimateGas" });
|
||||
|
||||
return await runner.estimateGas(await this.populateTransaction(overrides));
|
||||
}
|
||||
}
|
||||
*/
|
||||
function buildWrappedMethod(contract, key) {
|
||||
const getFragment = function (...args) {
|
||||
const fragment = contract.interface.getFunction(key, args);
|
||||
@ -611,6 +537,13 @@ class BaseContract {
|
||||
return result;
|
||||
}
|
||||
throw new Error(`unknown contract event: ${prop}`);
|
||||
},
|
||||
has: (target, prop) => {
|
||||
// Pass important checks (like `then` for Promise) through
|
||||
if (passProperties.indexOf(prop) >= 0) {
|
||||
return Reflect.has(target, prop);
|
||||
}
|
||||
return Reflect.has(target, prop) || this.interface.hasEvent(String(prop));
|
||||
}
|
||||
});
|
||||
(0, index_js_3.defineProperties)(this, { filters });
|
||||
@ -629,6 +562,12 @@ class BaseContract {
|
||||
return result;
|
||||
}
|
||||
throw new Error(`unknown contract method: ${prop}`);
|
||||
},
|
||||
has: (target, prop) => {
|
||||
if (prop in target || passProperties.indexOf(prop) >= 0) {
|
||||
return Reflect.has(target, prop);
|
||||
}
|
||||
return target.interface.hasFunction(String(prop));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
2
lib.commonjs/ethers.d.ts
vendored
2
lib.commonjs/ethers.d.ts
vendored
@ -8,7 +8,7 @@ export { id, ensNormalize, isValidName, namehash, dnsEncode, hashMessage, verify
|
||||
export { getDefaultProvider, Block, FeeData, Log, TransactionReceipt, TransactionResponse, AbstractSigner, NonceManager, VoidSigner, AbstractProvider, FallbackProvider, JsonRpcApiProvider, JsonRpcProvider, JsonRpcSigner, BrowserProvider, AlchemyProvider, AnkrProvider, CloudflareProvider, EtherscanProvider, InfuraProvider, InfuraWebSocketProvider, PocketProvider, QuickNodeProvider, IpcSocketProvider, SocketProvider, WebSocketProvider, EnsResolver, Network, EnsPlugin, EtherscanPlugin, FeeDataNetworkPlugin, GasCostPlugin, NetworkPlugin, SocketBlockSubscriber, SocketEventSubscriber, SocketPendingSubscriber, SocketSubscriber, UnmanagedSubscriber, copyRequest, showThrottleMessage } from "./providers/index.js";
|
||||
export { accessListify, computeAddress, recoverAddress, Transaction } from "./transaction/index.js";
|
||||
export { decodeBase58, encodeBase58, decodeBase64, encodeBase64, concat, dataLength, dataSlice, getBytes, getBytesCopy, hexlify, isHexString, isBytesLike, stripZerosLeft, zeroPadBytes, zeroPadValue, defineProperties, resolveProperties, assert, assertArgument, assertArgumentCount, assertNormalize, assertPrivate, makeError, isCallException, isError, EventPayload, FetchRequest, FetchResponse, FetchCancelSignal, FixedNumber, getBigInt, getNumber, getUint, toBeArray, toBigInt, toBeHex, toNumber, toQuantity, fromTwos, toTwos, mask, formatEther, parseEther, formatUnits, parseUnits, toUtf8Bytes, toUtf8CodePoints, toUtf8String, Utf8ErrorFuncs, decodeRlp, encodeRlp, uuidV4, } from "./utils/index.js";
|
||||
export { Mnemonic, BaseWallet, HDNodeWallet, HDNodeVoidWallet, Wallet, defaultPath, getAccountPath, isCrowdsaleJson, isKeystoreJson, decryptCrowdsaleJson, decryptKeystoreJsonSync, decryptKeystoreJson, encryptKeystoreJson, encryptKeystoreJsonSync, } from "./wallet/index.js";
|
||||
export { Mnemonic, BaseWallet, HDNodeWallet, HDNodeVoidWallet, Wallet, defaultPath, getAccountPath, getIndexedAccountPath, isCrowdsaleJson, isKeystoreJson, decryptCrowdsaleJson, decryptKeystoreJsonSync, decryptKeystoreJson, encryptKeystoreJson, encryptKeystoreJsonSync, } from "./wallet/index.js";
|
||||
export { Wordlist, LangEn, WordlistOwl, WordlistOwlA, wordlists } from "./wordlists/index.js";
|
||||
export type { JsonFragment, JsonFragmentType, FormatType, FragmentType, InterfaceAbi, ParamTypeWalkFunc, ParamTypeWalkAsyncFunc } from "./abi/index.js";
|
||||
export type { Addressable, AddressLike, NameResolver } from "./address/index.js";
|
||||
|
@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.sha256 = exports.ripemd160 = exports.keccak256 = exports.randomBytes = exports.computeHmac = exports.EventLog = exports.ContractUnknownEventPayload = exports.ContractTransactionResponse = exports.ContractTransactionReceipt = exports.ContractEventPayload = exports.ContractFactory = exports.Contract = exports.BaseContract = exports.MessagePrefix = exports.EtherSymbol = exports.ZeroHash = exports.N = exports.MaxInt256 = exports.MinInt256 = exports.MaxUint256 = exports.WeiPerEther = exports.ZeroAddress = exports.resolveAddress = exports.isAddress = exports.isAddressable = exports.getCreate2Address = exports.getCreateAddress = exports.getIcapAddress = exports.getAddress = exports.Typed = exports.TransactionDescription = exports.Result = exports.LogDescription = exports.Interface = exports.Indexed = exports.ErrorDescription = exports.checkResultErrors = exports.StructFragment = exports.ParamType = exports.NamedFragment = exports.FunctionFragment = exports.FallbackFragment = exports.Fragment = exports.EventFragment = exports.ErrorFragment = exports.ConstructorFragment = exports.AbiCoder = exports.encodeBytes32String = exports.decodeBytes32String = exports.version = void 0;
|
||||
exports.FeeDataNetworkPlugin = exports.EtherscanPlugin = exports.EnsPlugin = exports.Network = exports.EnsResolver = exports.WebSocketProvider = exports.SocketProvider = exports.IpcSocketProvider = exports.QuickNodeProvider = exports.PocketProvider = exports.InfuraWebSocketProvider = exports.InfuraProvider = exports.EtherscanProvider = exports.CloudflareProvider = exports.AnkrProvider = exports.AlchemyProvider = exports.BrowserProvider = exports.JsonRpcSigner = exports.JsonRpcProvider = exports.JsonRpcApiProvider = exports.FallbackProvider = exports.AbstractProvider = exports.VoidSigner = exports.NonceManager = exports.AbstractSigner = exports.TransactionResponse = exports.TransactionReceipt = exports.Log = exports.FeeData = exports.Block = exports.getDefaultProvider = exports.verifyTypedData = exports.TypedDataEncoder = exports.solidityPackedSha256 = exports.solidityPackedKeccak256 = exports.solidityPacked = exports.verifyMessage = exports.hashMessage = exports.dnsEncode = exports.namehash = exports.isValidName = exports.ensNormalize = exports.id = exports.SigningKey = exports.Signature = exports.lock = exports.scryptSync = exports.scrypt = exports.pbkdf2 = exports.sha512 = void 0;
|
||||
exports.toNumber = exports.toBeHex = exports.toBigInt = exports.toBeArray = exports.getUint = exports.getNumber = exports.getBigInt = exports.FixedNumber = exports.FetchCancelSignal = exports.FetchResponse = exports.FetchRequest = exports.EventPayload = exports.isError = exports.isCallException = exports.makeError = exports.assertPrivate = exports.assertNormalize = exports.assertArgumentCount = exports.assertArgument = exports.assert = exports.resolveProperties = exports.defineProperties = exports.zeroPadValue = exports.zeroPadBytes = exports.stripZerosLeft = exports.isBytesLike = exports.isHexString = exports.hexlify = exports.getBytesCopy = exports.getBytes = exports.dataSlice = exports.dataLength = exports.concat = exports.encodeBase64 = exports.decodeBase64 = exports.encodeBase58 = exports.decodeBase58 = exports.Transaction = exports.recoverAddress = exports.computeAddress = exports.accessListify = exports.showThrottleMessage = exports.copyRequest = exports.UnmanagedSubscriber = exports.SocketSubscriber = exports.SocketPendingSubscriber = exports.SocketEventSubscriber = exports.SocketBlockSubscriber = exports.NetworkPlugin = exports.GasCostPlugin = void 0;
|
||||
exports.wordlists = exports.WordlistOwlA = exports.WordlistOwl = exports.LangEn = exports.Wordlist = exports.encryptKeystoreJsonSync = exports.encryptKeystoreJson = exports.decryptKeystoreJson = exports.decryptKeystoreJsonSync = exports.decryptCrowdsaleJson = exports.isKeystoreJson = exports.isCrowdsaleJson = exports.getAccountPath = exports.defaultPath = exports.Wallet = exports.HDNodeVoidWallet = exports.HDNodeWallet = exports.BaseWallet = exports.Mnemonic = exports.uuidV4 = exports.encodeRlp = exports.decodeRlp = exports.Utf8ErrorFuncs = exports.toUtf8String = exports.toUtf8CodePoints = exports.toUtf8Bytes = exports.parseUnits = exports.formatUnits = exports.parseEther = exports.formatEther = exports.mask = exports.toTwos = exports.fromTwos = exports.toQuantity = void 0;
|
||||
exports.wordlists = exports.WordlistOwlA = exports.WordlistOwl = exports.LangEn = exports.Wordlist = exports.encryptKeystoreJsonSync = exports.encryptKeystoreJson = exports.decryptKeystoreJson = exports.decryptKeystoreJsonSync = exports.decryptCrowdsaleJson = exports.isKeystoreJson = exports.isCrowdsaleJson = exports.getIndexedAccountPath = exports.getAccountPath = exports.defaultPath = exports.Wallet = exports.HDNodeVoidWallet = exports.HDNodeWallet = exports.BaseWallet = exports.Mnemonic = exports.uuidV4 = exports.encodeRlp = exports.decodeRlp = exports.Utf8ErrorFuncs = exports.toUtf8String = exports.toUtf8CodePoints = exports.toUtf8Bytes = exports.parseUnits = exports.formatUnits = exports.parseEther = exports.formatEther = exports.mask = exports.toTwos = exports.fromTwos = exports.toQuantity = void 0;
|
||||
var _version_js_1 = require("./_version.js");
|
||||
Object.defineProperty(exports, "version", { enumerable: true, get: function () { return _version_js_1.version; } });
|
||||
var index_js_1 = require("./abi/index.js");
|
||||
@ -189,6 +189,7 @@ Object.defineProperty(exports, "HDNodeVoidWallet", { enumerable: true, get: func
|
||||
Object.defineProperty(exports, "Wallet", { enumerable: true, get: function () { return index_js_10.Wallet; } });
|
||||
Object.defineProperty(exports, "defaultPath", { enumerable: true, get: function () { return index_js_10.defaultPath; } });
|
||||
Object.defineProperty(exports, "getAccountPath", { enumerable: true, get: function () { return index_js_10.getAccountPath; } });
|
||||
Object.defineProperty(exports, "getIndexedAccountPath", { enumerable: true, get: function () { return index_js_10.getIndexedAccountPath; } });
|
||||
Object.defineProperty(exports, "isCrowdsaleJson", { enumerable: true, get: function () { return index_js_10.isCrowdsaleJson; } });
|
||||
Object.defineProperty(exports, "isKeystoreJson", { enumerable: true, get: function () { return index_js_10.isKeystoreJson; } });
|
||||
Object.defineProperty(exports, "decryptCrowdsaleJson", { enumerable: true, get: function () { return index_js_10.decryptCrowdsaleJson; } });
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"ethers.js","sourceRoot":"","sources":["../src.ts/ethers.ts"],"names":[],"mappings":";AAEA,6BAA6B;AAC7B,EAAE;;;;;;AAEF,6CAAwC;AAA/B,sGAAA,OAAO,OAAA;AAEhB,2CAQwB;AAPpB,+GAAA,mBAAm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,uBAAuB,OAAA;AAGhD,kDAE8B;AAD1B,qGAAA,QAAQ,OAAA;AAAE,mGAAA,MAAM,OAAA;AAAE,wGAAA,WAAW,OAAA;AAAE,yGAAA,YAAY,OAAA;AAAE,sGAAA,SAAS,OAAA"}
|
@ -44,8 +44,13 @@ function checkString(key) {
|
||||
const domainChecks = {
|
||||
name: checkString("name"),
|
||||
version: checkString("version"),
|
||||
chainId: function (value) {
|
||||
return (0, index_js_4.getBigInt)(value, "domain.chainId");
|
||||
chainId: function (_value) {
|
||||
const value = (0, index_js_4.getBigInt)(_value, "domain.chainId");
|
||||
(0, index_js_4.assertArgument)(value >= 0, "invalid chain ID", "domain.chainId", _value);
|
||||
if (Number.isSafeInteger(value)) {
|
||||
return Number(value);
|
||||
}
|
||||
return (0, index_js_4.toQuantity)(value);
|
||||
},
|
||||
verifyingContract: function (value) {
|
||||
try {
|
||||
@ -73,7 +78,7 @@ function getBaseEncoder(type) {
|
||||
return function (_value) {
|
||||
const value = (0, index_js_4.getBigInt)(_value, "value");
|
||||
(0, index_js_4.assertArgument)(value >= boundsLower && value <= boundsUpper, `value out-of-bounds for ${type}`, "value", value);
|
||||
return (0, index_js_4.toBeHex)((0, index_js_4.toTwos)(value, 256), 32);
|
||||
return (0, index_js_4.toBeHex)(signed ? (0, index_js_4.toTwos)(value, 256) : value, 32);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
2
lib.commonjs/wallet/index.d.ts
vendored
2
lib.commonjs/wallet/index.d.ts
vendored
@ -17,7 +17,7 @@
|
||||
* @_section: api/wallet:Wallets [about-wallets]
|
||||
*/
|
||||
export { BaseWallet } from "./base-wallet.js";
|
||||
export { defaultPath, getAccountPath, HDNodeWallet, HDNodeVoidWallet, } from "./hdwallet.js";
|
||||
export { defaultPath, getAccountPath, getIndexedAccountPath, HDNodeWallet, HDNodeVoidWallet, } from "./hdwallet.js";
|
||||
export { isCrowdsaleJson, decryptCrowdsaleJson } from "./json-crowdsale.js";
|
||||
export { isKeystoreJson, decryptKeystoreJsonSync, decryptKeystoreJson, encryptKeystoreJson, encryptKeystoreJsonSync } from "./json-keystore.js";
|
||||
export { Mnemonic } from "./mnemonic.js";
|
||||
|
@ -18,12 +18,13 @@
|
||||
* @_section: api/wallet:Wallets [about-wallets]
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Wallet = exports.Mnemonic = exports.encryptKeystoreJsonSync = exports.encryptKeystoreJson = exports.decryptKeystoreJson = exports.decryptKeystoreJsonSync = exports.isKeystoreJson = exports.decryptCrowdsaleJson = exports.isCrowdsaleJson = exports.HDNodeVoidWallet = exports.HDNodeWallet = exports.getAccountPath = exports.defaultPath = exports.BaseWallet = void 0;
|
||||
exports.Wallet = exports.Mnemonic = exports.encryptKeystoreJsonSync = exports.encryptKeystoreJson = exports.decryptKeystoreJson = exports.decryptKeystoreJsonSync = exports.isKeystoreJson = exports.decryptCrowdsaleJson = exports.isCrowdsaleJson = exports.HDNodeVoidWallet = exports.HDNodeWallet = exports.getIndexedAccountPath = exports.getAccountPath = exports.defaultPath = exports.BaseWallet = void 0;
|
||||
var base_wallet_js_1 = require("./base-wallet.js");
|
||||
Object.defineProperty(exports, "BaseWallet", { enumerable: true, get: function () { return base_wallet_js_1.BaseWallet; } });
|
||||
var hdwallet_js_1 = require("./hdwallet.js");
|
||||
Object.defineProperty(exports, "defaultPath", { enumerable: true, get: function () { return hdwallet_js_1.defaultPath; } });
|
||||
Object.defineProperty(exports, "getAccountPath", { enumerable: true, get: function () { return hdwallet_js_1.getAccountPath; } });
|
||||
Object.defineProperty(exports, "getIndexedAccountPath", { enumerable: true, get: function () { return hdwallet_js_1.getIndexedAccountPath; } });
|
||||
Object.defineProperty(exports, "HDNodeWallet", { enumerable: true, get: function () { return hdwallet_js_1.HDNodeWallet; } });
|
||||
Object.defineProperty(exports, "HDNodeVoidWallet", { enumerable: true, get: function () { return hdwallet_js_1.HDNodeVoidWallet; } });
|
||||
var json_crowdsale_js_1 = require("./json-crowdsale.js");
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src.ts/wallet/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,mDAA8C;AAArC,4GAAA,UAAU,OAAA;AAEnB,6CAOuB;AANnB,0GAAA,WAAW,OAAA;AAEX,6GAAA,cAAc,OAAA;AAEd,2GAAA,YAAY,OAAA;AACZ,+GAAA,gBAAgB,OAAA;AAGpB,yDAA4E;AAAnE,oHAAA,eAAe,OAAA;AAAE,yHAAA,oBAAoB,OAAA;AAE9C,uDAI4B;AAHxB,kHAAA,cAAc,OAAA;AACd,2HAAA,uBAAuB,OAAA;AAAE,uHAAA,mBAAmB,OAAA;AAC5C,uHAAA,mBAAmB,OAAA;AAAE,2HAAA,uBAAuB,OAAA;AAGhD,6CAAyC;AAAhC,uGAAA,QAAQ,OAAA;AAEjB,yCAAqC;AAA5B,mGAAA,MAAM,OAAA"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src.ts/wallet/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,mDAA8C;AAArC,4GAAA,UAAU,OAAA;AAEnB,6CAOuB;AANnB,0GAAA,WAAW,OAAA;AAEX,6GAAA,cAAc,OAAA;AAAE,oHAAA,qBAAqB,OAAA;AAErC,2GAAA,YAAY,OAAA;AACZ,+GAAA,gBAAgB,OAAA;AAGpB,yDAA4E;AAAnE,oHAAA,eAAe,OAAA;AAAE,yHAAA,oBAAoB,OAAA;AAE9C,uDAI4B;AAHxB,kHAAA,cAAc,OAAA;AACd,2HAAA,uBAAuB,OAAA;AAAE,uHAAA,mBAAmB,OAAA;AAC5C,uHAAA,mBAAmB,OAAA;AAAE,2HAAA,uBAAuB,OAAA;AAGhD,6CAAyC;AAAhC,uGAAA,QAAQ,OAAA;AAEjB,yCAAqC;AAA5B,mGAAA,MAAM,OAAA"}
|
@ -60,15 +60,20 @@ function writeVersion(version) {
|
||||
}
|
||||
pkgInfo.gitHead = gitHead;
|
||||
// Save the package.json
|
||||
const check = { "require": 1, "import": 1, "types": 1 };
|
||||
const check = { "default": 1, "require": 1, "import": 1, "types": 1 };
|
||||
saveJson(pkgPath, pkgInfo, (path, a, b) => {
|
||||
if (path.startsWith("./") && check[a] && check[b]) {
|
||||
if (a === "types") {
|
||||
if ((path.startsWith("./") || path === ".") && check[a] && check[b]) {
|
||||
const cmp = a.localeCompare(b);
|
||||
if (cmp === 0) {
|
||||
return cmp;
|
||||
}
|
||||
if (a === "types" || b === "default") {
|
||||
return -1;
|
||||
}
|
||||
if (b === "types") {
|
||||
if (b === "types" || a === "default") {
|
||||
return 1;
|
||||
}
|
||||
return cmp;
|
||||
}
|
||||
return a.localeCompare(b);
|
||||
});
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"update-version.js","sourceRoot":"","sources":["../../src.ts/_admin/update-version.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAG1C,MAAM,KAAK,GAAwB,EAAG,CAAC;AAEvC,KAAK,UAAU,aAAa,CAAC,IAAY;IACrC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;QACd,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,YAAY,CAAC,8BAA8B,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACpF,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChB,KAAK,CAAC,IAAI,CAAC,GAAG,I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;gBACnD,OAAO,GAAG,CAAC;aACd;YACD,OAAO,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;QAEH,8BAA8B;QAC9B,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;KACjC;AAEL,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACjB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACrB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACnB,CAAC,CAAC,CAAC"}
|
@ -115,4 +115,138 @@ describe("Test Interface", function () {
|
||||
assert.equal(log.args[2], BigInt(234));
|
||||
});
|
||||
});
|
||||
describe("Tests Legacy ABI formats", function () {
|
||||
// See: #3932
|
||||
const iface = new Interface([
|
||||
{
|
||||
name: "implicitView",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"constant": true,
|
||||
"payable": false,
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
name: "implicitSendNonpay",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"constant": false,
|
||||
"payable": false,
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
name: "implicitSendPay",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"constant": false,
|
||||
"payable": true,
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
name: "implicitSendImplicitPay",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"constant": false,
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
name: "implicitSendExplicitPay",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
payable: true,
|
||||
type: "function"
|
||||
},
|
||||
{
|
||||
name: "implicitSendExplicitNonpay",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
payable: false,
|
||||
type: "function"
|
||||
},
|
||||
{
|
||||
name: "implicitAll",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
name: "explicitView",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"constant": true,
|
||||
"payable": false,
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
name: "explicitPure",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"stateMutability": "pure",
|
||||
"constant": true,
|
||||
"payable": false,
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
name: "explicitPay",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"stateMutability": "payable",
|
||||
"constant": true,
|
||||
"payable": true,
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
name: "explicitNonpay",
|
||||
outputs: [],
|
||||
inputs: [
|
||||
{ type: "int128", name: "arg0" }
|
||||
],
|
||||
"stateMutability": "nonpayable",
|
||||
"constant": true,
|
||||
"payable": false,
|
||||
"type": "function"
|
||||
},
|
||||
]);
|
||||
function test(name, isConst, payable, stateMutability) {
|
||||
it(`tests ABI configuration: ${name}`, function () {
|
||||
const f = iface.getFunction(name);
|
||||
assert.ok(!!f, `missing ${name}`);
|
||||
assert.equal(f.constant, isConst, `${name}.constant`);
|
||||
assert.equal(f.stateMutability, stateMutability, `${name}.stateMutability`);
|
||||
assert.equal(f.payable, payable, `${name}.payable`);
|
||||
});
|
||||
}
|
||||
test("explicitView", true, false, "view");
|
||||
test("explicitPure", true, false, "pure");
|
||||
test("explicitPay", false, true, "payable");
|
||||
test("explicitNonpay", false, false, "nonpayable");
|
||||
test("implicitView", true, false, "view");
|
||||
test("implicitSendNonpay", false, false, "nonpayable");
|
||||
test("implicitSendPay", false, true, "payable");
|
||||
test("implicitSendImplicitPay", false, true, "payable");
|
||||
test("implicitSendExplicitPay", false, true, "payable");
|
||||
test("implicitSendExplicitNonpay", false, false, "nonpayable");
|
||||
test("implicitAll", false, true, "payable");
|
||||
});
|
||||
//# sourceMappingURL=test-abi.js.map
|
File diff suppressed because one or more lines are too long
@ -142,6 +142,34 @@ describe("Test Contract", function () {
|
||||
await specificEvent;
|
||||
await allEvents;
|
||||
});
|
||||
it("tests the _in_ operator for functions", function () {
|
||||
const contract = new Contract(addr, abi);
|
||||
assert.equal("testCallAdd" in contract, true, "has(testCallAdd)");
|
||||
assert.equal("nonExist" in contract, false, "has(nonExist)");
|
||||
{
|
||||
const sig = "function testCallAdd(uint256 a, uint256 b) pure returns (uint256 result)";
|
||||
assert.equal(sig in contract, true, `has(${sig})`);
|
||||
assert.equal("function nonExist()" in contract, false, "has(function nonExist())");
|
||||
}
|
||||
assert.equal("0xf24684e5" in contract, true, "has(0xf24684e5)");
|
||||
assert.equal("0xbad01234" in contract, false, "has(0xbad01234)");
|
||||
});
|
||||
it("tests the _in_ operator for events", function () {
|
||||
const contract = new Contract(addr, abi);
|
||||
assert.equal("EventUint256" in contract.filters, true, "has(EventUint256)");
|
||||
assert.equal("NonExist" in contract.filters, false, "has(NonExist)");
|
||||
{
|
||||
const sig = "event EventUint256(uint256 indexed value)";
|
||||
assert.equal(sig in contract.filters, true, `has(${sig})`);
|
||||
assert.equal("event NonExist()" in contract.filters, false, "has(event NonExist())");
|
||||
}
|
||||
{
|
||||
const hash = "0x85c55bbb820e6d71c71f4894e57751de334b38c421f9c170b0e66d32eafea337";
|
||||
const badHash = "0xbad01234567890ffbad01234567890ffbad01234567890ffbad01234567890ff";
|
||||
assert.equal(hash in contract.filters, true, `has(${hash})`);
|
||||
assert.equal(badHash in contract.filters, false, `has(${badHash})`);
|
||||
}
|
||||
});
|
||||
});
|
||||
describe("Test Typed Contract Interaction", function () {
|
||||
const tests = [
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
import assert from "assert";
|
||||
import { isError, getBigInt, getNumber, toBeArray, toBeHex, toQuantity, } from "../index.js";
|
||||
import { isError, fromTwos, toTwos, getBigInt, getNumber, toBeArray, toBeHex, toQuantity, } from "../index.js";
|
||||
describe("Tests Quantity Functions", function () {
|
||||
const quantities = [
|
||||
{
|
||||
@ -165,4 +165,25 @@ describe("Tests Bad Math Values", function () {
|
||||
});
|
||||
});
|
||||
});
|
||||
describe("Tests Twos Compliemnts Functions", function () {
|
||||
const tests = [
|
||||
{ width: 8, value: 0, twos: 0 },
|
||||
{ width: 8, value: 1, twos: 1 },
|
||||
{ width: 8, value: -1, twos: 0xff },
|
||||
{ width: 8, value: 127, twos: 127 },
|
||||
{ width: 8, value: -128, twos: 0x80 },
|
||||
];
|
||||
for (const { twos, width, value } of tests) {
|
||||
it(`computes twos compliment values: ${value}[${width} bits]`, function () {
|
||||
const result = toTwos(value, width);
|
||||
assert.equal(result, twos);
|
||||
});
|
||||
}
|
||||
for (const { twos, width, value } of tests) {
|
||||
it(`computes values from twos compliment: ${value}[${width} bits]`, function () {
|
||||
const result = fromTwos(twos, width);
|
||||
assert.equal(result, value);
|
||||
});
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=test-utils-maths.js.map
|
File diff suppressed because one or more lines are too long
@ -2,6 +2,13 @@ import assert from "assert";
|
||||
import { wordlists } from "../wordlists/wordlists.js";
|
||||
import { loadTests } from "./utils.js";
|
||||
import { HDNodeWallet, HDNodeVoidWallet, Mnemonic } from "../index.js";
|
||||
/*
|
||||
declare global {
|
||||
class TextDecoder {
|
||||
decode(data: Uint8Array): string;
|
||||
}
|
||||
}
|
||||
*/
|
||||
const decoder = new TextDecoder();
|
||||
function fromHex(hex) {
|
||||
const data = Buffer.from(hex.substring(2), "hex");
|
||||
|
File diff suppressed because one or more lines are too long
@ -2,5 +2,5 @@
|
||||
/**
|
||||
* The current version of Ethers.
|
||||
*/
|
||||
export const version = "6.2.3";
|
||||
export const version = "6.3.0";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -1149,8 +1149,26 @@ export class FunctionFragment extends NamedFragment {
|
||||
consumeEoi(obj);
|
||||
return new FunctionFragment(_guard, name, mutability, inputs, outputs, gas);
|
||||
}
|
||||
// @TODO: verifyState for stateMutability
|
||||
return new FunctionFragment(_guard, obj.name, obj.stateMutability, obj.inputs ? obj.inputs.map(ParamType.from) : [], obj.outputs ? obj.outputs.map(ParamType.from) : [], (obj.gas != null) ? obj.gas : null);
|
||||
let stateMutability = obj.stateMutability;
|
||||
// Use legacy Solidity ABI logic if stateMutability is missing
|
||||
if (stateMutability == null) {
|
||||
stateMutability = "payable";
|
||||
if (typeof (obj.constant) === "boolean") {
|
||||
stateMutability = "view";
|
||||
if (!obj.constant) {
|
||||
stateMutability = "payable";
|
||||
if (typeof (obj.payable) === "boolean" && !obj.payable) {
|
||||
stateMutability = "nonpayable";
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (typeof (obj.payable) === "boolean" && !obj.payable) {
|
||||
stateMutability = "nonpayable";
|
||||
}
|
||||
}
|
||||
// @TODO: verifyState for stateMutability (e.g. throw if
|
||||
// payable: false but stateMutability is "nonpayable")
|
||||
return new FunctionFragment(_guard, obj.name, stateMutability, obj.inputs ? obj.inputs.map(ParamType.from) : [], obj.outputs ? obj.outputs.map(ParamType.from) : [], (obj.gas != null) ? obj.gas : null);
|
||||
}
|
||||
static isFragment(value) {
|
||||
return (value && value[internal] === FunctionFragmentInternal);
|
||||
|
File diff suppressed because one or more lines are too long
@ -329,6 +329,16 @@ export class Interface {
|
||||
assertArgument(fragment, "no matching function", "key", key);
|
||||
return fragment.name;
|
||||
}
|
||||
/**
|
||||
* Returns true if %%key%% (a function selector, function name or
|
||||
* function signature) is present in the ABI.
|
||||
*
|
||||
* In the case of a function name, the name may be ambiguous, so
|
||||
* accessing the [[FunctionFragment]] may require refinement.
|
||||
*/
|
||||
hasFunction(key) {
|
||||
return !!this.#getFunction(key, null, false);
|
||||
}
|
||||
/**
|
||||
* Get the [[FunctionFragment]] for %%key%%, which may be a function
|
||||
* selector, function name or function signature that belongs to the ABI.
|
||||
@ -421,6 +431,16 @@ export class Interface {
|
||||
assertArgument(fragment, "no matching event", "key", key);
|
||||
return fragment.name;
|
||||
}
|
||||
/**
|
||||
* Returns true if %%key%% (an event topic hash, event name or
|
||||
* event signature) is present in the ABI.
|
||||
*
|
||||
* In the case of an event name, the name may be ambiguous, so
|
||||
* accessing the [[EventFragment]] may require refinement.
|
||||
*/
|
||||
hasEvent(key) {
|
||||
return !!this.#getEvent(key, null, false);
|
||||
}
|
||||
/**
|
||||
* Get the [[EventFragment]] for %%key%%, which may be a topic hash,
|
||||
* event name or event signature that belongs to the ABI.
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,5 +1,14 @@
|
||||
/**
|
||||
* About typed...
|
||||
* A Typed object allows a value to have its type explicitly
|
||||
* specified.
|
||||
*
|
||||
* For example, in Solidity, the value ``45`` could represent a
|
||||
* ``uint8`` or a ``uint256``. The value ``0x1234`` could represent
|
||||
* a ``bytes2`` or ``bytes``.
|
||||
*
|
||||
* Since JavaScript has no meaningful way to explicitly inform any
|
||||
* APIs which what the type is, this allows transparent interoperation
|
||||
* with Soldity.
|
||||
*
|
||||
* @_subsection: api/abi:Typed Values
|
||||
*/
|
||||
|
File diff suppressed because one or more lines are too long
@ -156,80 +156,6 @@ function buildWrappedFallback(contract) {
|
||||
});
|
||||
return method;
|
||||
}
|
||||
/*
|
||||
class WrappedFallback {
|
||||
|
||||
constructor (contract: BaseContract) {
|
||||
defineProperties<WrappedFallback>(this, { _contract: contract });
|
||||
|
||||
const proxy = new Proxy(this, {
|
||||
// Perform send when called
|
||||
apply: async (target, thisArg, args: Array<any>) => {
|
||||
return await target.send(...args);
|
||||
},
|
||||
});
|
||||
|
||||
return proxy;
|
||||
}
|
||||
|
||||
async populateTransaction(overrides?: Omit<TransactionRequest, "to">): Promise<ContractTransaction> {
|
||||
// If an overrides was passed in, copy it and normalize the values
|
||||
|
||||
const tx: ContractTransaction = <any>(await copyOverrides<"data">(overrides, [ "data" ]));
|
||||
tx.to = await this._contract.getAddress();
|
||||
|
||||
const iface = this._contract.interface;
|
||||
|
||||
// Only allow payable contracts to set non-zero value
|
||||
const payable = iface.receive || (iface.fallback && iface.fallback.payable);
|
||||
assertArgument(payable || (tx.value || BN_0) === BN_0,
|
||||
"cannot send value to non-payable contract", "overrides.value", tx.value);
|
||||
|
||||
// Only allow fallback contracts to set non-empty data
|
||||
assertArgument(iface.fallback || (tx.data || "0x") === "0x",
|
||||
"cannot send data to receive-only contract", "overrides.data", tx.data);
|
||||
|
||||
return tx;
|
||||
}
|
||||
|
||||
async staticCall(overrides?: Omit<TransactionRequest, "to">): Promise<string> {
|
||||
const runner = getRunner(this._contract.runner, "call");
|
||||
assert(canCall(runner), "contract runner does not support calling",
|
||||
"UNSUPPORTED_OPERATION", { operation: "call" });
|
||||
|
||||
const tx = await this.populateTransaction(overrides);
|
||||
|
||||
try {
|
||||
return await runner.call(tx);
|
||||
} catch (error: any) {
|
||||
if (isCallException(error) && error.data) {
|
||||
throw this._contract.interface.makeError(error.data, tx);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
async send(overrides?: Omit<TransactionRequest, "to">): Promise<ContractTransactionResponse> {
|
||||
const runner = this._contract.runner;
|
||||
assert(canSend(runner), "contract runner does not support sending transactions",
|
||||
"UNSUPPORTED_OPERATION", { operation: "sendTransaction" });
|
||||
|
||||
const tx = await runner.sendTransaction(await this.populateTransaction(overrides));
|
||||
const provider = getProvider(this._contract.runner);
|
||||
// @TODO: the provider can be null; make a custom dummy provider that will throw a
|
||||
// meaningful error
|
||||
return new ContractTransactionResponse(this._contract.interface, <Provider>provider, tx);
|
||||
}
|
||||
|
||||
async estimateGas(overrides?: Omit<TransactionRequest, "to">): Promise<bigint> {
|
||||
const runner = getRunner(this._contract.runner, "estimateGas");
|
||||
assert(canEstimate(runner), "contract runner does not support gas estimation",
|
||||
"UNSUPPORTED_OPERATION", { operation: "estimateGas" });
|
||||
|
||||
return await runner.estimateGas(await this.populateTransaction(overrides));
|
||||
}
|
||||
}
|
||||
*/
|
||||
function buildWrappedMethod(contract, key) {
|
||||
const getFragment = function (...args) {
|
||||
const fragment = contract.interface.getFunction(key, args);
|
||||
@ -606,6 +532,13 @@ export class BaseContract {
|
||||
return result;
|
||||
}
|
||||
throw new Error(`unknown contract event: ${prop}`);
|
||||
},
|
||||
has: (target, prop) => {
|
||||
// Pass important checks (like `then` for Promise) through
|
||||
if (passProperties.indexOf(prop) >= 0) {
|
||||
return Reflect.has(target, prop);
|
||||
}
|
||||
return Reflect.has(target, prop) || this.interface.hasEvent(String(prop));
|
||||
}
|
||||
});
|
||||
defineProperties(this, { filters });
|
||||
@ -624,6 +557,12 @@ export class BaseContract {
|
||||
return result;
|
||||
}
|
||||
throw new Error(`unknown contract method: ${prop}`);
|
||||
},
|
||||
has: (target, prop) => {
|
||||
if (prop in target || passProperties.indexOf(prop) >= 0) {
|
||||
return Reflect.has(target, prop);
|
||||
}
|
||||
return target.interface.hasFunction(String(prop));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -10,6 +10,6 @@ export { id, ensNormalize, isValidName, namehash, dnsEncode, hashMessage, verify
|
||||
export { getDefaultProvider, Block, FeeData, Log, TransactionReceipt, TransactionResponse, AbstractSigner, NonceManager, VoidSigner, AbstractProvider, FallbackProvider, JsonRpcApiProvider, JsonRpcProvider, JsonRpcSigner, BrowserProvider, AlchemyProvider, AnkrProvider, CloudflareProvider, EtherscanProvider, InfuraProvider, InfuraWebSocketProvider, PocketProvider, QuickNodeProvider, IpcSocketProvider, SocketProvider, WebSocketProvider, EnsResolver, Network, EnsPlugin, EtherscanPlugin, FeeDataNetworkPlugin, GasCostPlugin, NetworkPlugin, SocketBlockSubscriber, SocketEventSubscriber, SocketPendingSubscriber, SocketSubscriber, UnmanagedSubscriber, copyRequest, showThrottleMessage } from "./providers/index.js";
|
||||
export { accessListify, computeAddress, recoverAddress, Transaction } from "./transaction/index.js";
|
||||
export { decodeBase58, encodeBase58, decodeBase64, encodeBase64, concat, dataLength, dataSlice, getBytes, getBytesCopy, hexlify, isHexString, isBytesLike, stripZerosLeft, zeroPadBytes, zeroPadValue, defineProperties, resolveProperties, assert, assertArgument, assertArgumentCount, assertNormalize, assertPrivate, makeError, isCallException, isError, EventPayload, FetchRequest, FetchResponse, FetchCancelSignal, FixedNumber, getBigInt, getNumber, getUint, toBeArray, toBigInt, toBeHex, toNumber, toQuantity, fromTwos, toTwos, mask, formatEther, parseEther, formatUnits, parseUnits, toUtf8Bytes, toUtf8CodePoints, toUtf8String, Utf8ErrorFuncs, decodeRlp, encodeRlp, uuidV4, } from "./utils/index.js";
|
||||
export { Mnemonic, BaseWallet, HDNodeWallet, HDNodeVoidWallet, Wallet, defaultPath, getAccountPath, isCrowdsaleJson, isKeystoreJson, decryptCrowdsaleJson, decryptKeystoreJsonSync, decryptKeystoreJson, encryptKeystoreJson, encryptKeystoreJsonSync, } from "./wallet/index.js";
|
||||
export { Mnemonic, BaseWallet, HDNodeWallet, HDNodeVoidWallet, Wallet, defaultPath, getAccountPath, getIndexedAccountPath, isCrowdsaleJson, isKeystoreJson, decryptCrowdsaleJson, decryptKeystoreJsonSync, decryptKeystoreJson, encryptKeystoreJson, encryptKeystoreJsonSync, } from "./wallet/index.js";
|
||||
export { Wordlist, LangEn, WordlistOwl, WordlistOwlA, wordlists } from "./wordlists/index.js";
|
||||
//# sourceMappingURL=ethers.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"ethers.js","sourceRoot":"","sources":["../src.ts/ethers.ts"],"names":[],"mappings":"AAEA,6BAA6B;AAC7B,EAAE;AAEF,OAAO,EAA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EAAE,mBAAmB,EAAE,eAAe,EAAE,aAAa,EAC3E,SAAS,EACT,eAAe,EAAE,OAAO,EACxB,YAAY,EACZ,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAC9C,WAAW,EACX,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EACjF,QAAQ,EAAE,MAAM,EAAE,IAAI,EACtB,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAChD,WAAW,EAAE,gBAAgB,EAAE,YAAY,EAC3C,cAAc,EACd,SAAS,EAAE,SAAS,EACpB,MAAM,GACT,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACH,QAAQ,EACR,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAC1C,MAAM,EAEN,WAAW,EAEX,cAAc,EAAE,qBAAqB,EACrC,eAAe,EAAE,cAAc,EAE/B,oBAAoB,EAAE,uBAAuB,EAAE,mBAAmB,EAClE,mBAAmB,EAAE,uBAAuB,GAC/C,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACH,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EACzD,MAAM,sBAAsB,CAAC"}
|
@ -2,7 +2,7 @@
|
||||
import { getAddress } from "../address/index.js";
|
||||
import { keccak256 } from "../crypto/index.js";
|
||||
import { recoverAddress } from "../transaction/index.js";
|
||||
import { concat, defineProperties, getBigInt, getBytes, hexlify, isHexString, mask, toBeHex, toTwos, zeroPadValue, assertArgument } from "../utils/index.js";
|
||||
import { concat, defineProperties, getBigInt, getBytes, hexlify, isHexString, mask, toBeHex, toQuantity, toTwos, zeroPadValue, assertArgument } from "../utils/index.js";
|
||||
import { id } from "./id.js";
|
||||
const padding = new Uint8Array(32);
|
||||
padding.fill(0);
|
||||
@ -41,8 +41,13 @@ function checkString(key) {
|
||||
const domainChecks = {
|
||||
name: checkString("name"),
|
||||
version: checkString("version"),
|
||||
chainId: function (value) {
|
||||
return getBigInt(value, "domain.chainId");
|
||||
chainId: function (_value) {
|
||||
const value = getBigInt(_value, "domain.chainId");
|
||||
assertArgument(value >= 0, "invalid chain ID", "domain.chainId", _value);
|
||||
if (Number.isSafeInteger(value)) {
|
||||
return Number(value);
|
||||
}
|
||||
return toQuantity(value);
|
||||
},
|
||||
verifyingContract: function (value) {
|
||||
try {
|
||||
@ -70,7 +75,7 @@ function getBaseEncoder(type) {
|
||||
return function (_value) {
|
||||
const value = getBigInt(_value, "value");
|
||||
assertArgument(value >= boundsLower && value <= boundsUpper, `value out-of-bounds for ${type}`, "value", value);
|
||||
return toBeHex(toTwos(value, 256), 32);
|
||||
return toBeHex(signed ? toTwos(value, 256) : value, 32);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -17,7 +17,7 @@
|
||||
* @_section: api/wallet:Wallets [about-wallets]
|
||||
*/
|
||||
export { BaseWallet } from "./base-wallet.js";
|
||||
export { defaultPath, getAccountPath, HDNodeWallet, HDNodeVoidWallet, } from "./hdwallet.js";
|
||||
export { defaultPath, getAccountPath, getIndexedAccountPath, HDNodeWallet, HDNodeVoidWallet, } from "./hdwallet.js";
|
||||
export { isCrowdsaleJson, decryptCrowdsaleJson } from "./json-crowdsale.js";
|
||||
export { isKeystoreJson, decryptKeystoreJsonSync, decryptKeystoreJson, encryptKeystoreJson, encryptKeystoreJsonSync } from "./json-keystore.js";
|
||||
export { Mnemonic } from "./mnemonic.js";
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src.ts/wallet/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EACH,WAAW,EAEX,cAAc,EAEd,YAAY,EACZ,gBAAgB,GACnB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,EACH,cAAc,EACd,uBAAuB,EAAE,mBAAmB,EAC5C,mBAAmB,EAAE,uBAAuB,EAC/C,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src.ts/wallet/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EACH,WAAW,EAEX,cAAc,EAAE,qBAAqB,EAErC,YAAY,EACZ,gBAAgB,GACnB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,EACH,cAAc,EACd,uBAAuB,EAAE,mBAAmB,EAC5C,mBAAmB,EAAE,uBAAuB,EAC/C,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
1185
package-lock.json
generated
1185
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -116,7 +116,7 @@
|
||||
"url": "https://www.buymeacoffee.com/ricmoo"
|
||||
}
|
||||
],
|
||||
"gitHead": "c58ab3a97687e15a3ffe30b038089c5f4b570bb9",
|
||||
"gitHead": "8c5973e3a9b8d4d4ed80bdf209d8a0b6cc6b8d6d",
|
||||
"homepage": "https://ethers.org",
|
||||
"keywords": [
|
||||
"ethereum",
|
||||
|
@ -3,4 +3,4 @@
|
||||
/**
|
||||
* The current version of Ethers.
|
||||
*/
|
||||
export const version: string = "6.2.3";
|
||||
export const version: string = "6.3.0";
|
||||
|
File diff suppressed because one or more lines are too long
16
types/abi/interface.d.ts
vendored
16
types/abi/interface.d.ts
vendored
@ -98,6 +98,14 @@ export declare class Interface {
|
||||
* function name or function signature that belongs to the ABI.
|
||||
*/
|
||||
getFunctionName(key: string): string;
|
||||
/**
|
||||
* Returns true if %%key%% (a function selector, function name or
|
||||
* function signature) is present in the ABI.
|
||||
*
|
||||
* In the case of a function name, the name may be ambiguous, so
|
||||
* accessing the [[FunctionFragment]] may require refinement.
|
||||
*/
|
||||
hasFunction(key: string): boolean;
|
||||
/**
|
||||
* Get the [[FunctionFragment]] for %%key%%, which may be a function
|
||||
* selector, function name or function signature that belongs to the ABI.
|
||||
@ -118,6 +126,14 @@ export declare class Interface {
|
||||
* event name or event signature that belongs to the ABI.
|
||||
*/
|
||||
getEventName(key: string): string;
|
||||
/**
|
||||
* Returns true if %%key%% (an event topic hash, event name or
|
||||
* event signature) is present in the ABI.
|
||||
*
|
||||
* In the case of an event name, the name may be ambiguous, so
|
||||
* accessing the [[EventFragment]] may require refinement.
|
||||
*/
|
||||
hasEvent(key: string): boolean;
|
||||
/**
|
||||
* Get the [[EventFragment]] for %%key%%, which may be a topic hash,
|
||||
* event name or event signature that belongs to the ABI.
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../src.ts/abi/interface.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAUH,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EACH,mBAAmB,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EACnE,QAAQ,EAAE,gBAAgB,EAAE,SAAS,EACxC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE/G,OAAO,KAAK,EAAE,YA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AM,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE;IA6CrH,cAAc,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,MAAM;IAuEzG;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,YAAY,CAAA;KAAE,GAAG,IAAI,GAAG,sBAAsB;IAY3F,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM;IAIxC;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,EAAE;QAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,GAAG,IAAI,GAAG,cAAc;IAa5E;;;;;OAKG;IACH,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,gBAAgB;IAWpD;;;;;OAKG;IACH,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,YAAY,GAAG,SAAS,GAAG,SAAS;CAe1D"}
|
11
types/abi/typed.d.ts
vendored
11
types/abi/typed.d.ts
vendored
@ -1,5 +1,14 @@
|
||||
/**
|
||||
* About typed...
|
||||
* A Typed object allows a value to have its type explicitly
|
||||
* specified.
|
||||
*
|
||||
* For example, in Solidity, the value ``45`` could represent a
|
||||
* ``uint8`` or a ``uint256``. The value ``0x1234`` could represent
|
||||
* a ``bytes2`` or ``bytes``.
|
||||
*
|
||||
* Since JavaScript has no meaningful way to explicitly inform any
|
||||
* APIs which what the type is, this allows transparent interoperation
|
||||
* with Soldity.
|
||||
*
|
||||
* @_subsection: api/abi:Typed Values
|
||||
*/
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
{"version":3,"file":"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AI"}
|
2
types/ethers.d.ts
vendored
2
types/ethers.d.ts
vendored
@ -8,7 +8,7 @@ export { id, ensNormalize, isValidName, namehash, dnsEncode, hashMessage, verify
|
||||
export { getDefaultProvider, Block, FeeData, Log, TransactionReceipt, TransactionResponse, AbstractSigner, NonceManager, VoidSigner, AbstractProvider, FallbackProvider, JsonRpcApiProvider, JsonRpcProvider, JsonRpcSigner, BrowserProvider, AlchemyProvider, AnkrProvider, CloudflareProvider, EtherscanProvider, InfuraProvider, InfuraWebSocketProvider, PocketProvider, QuickNodeProvider, IpcSocketProvider, SocketProvider, WebSocketProvider, EnsResolver, Network, EnsPlugin, EtherscanPlugin, FeeDataNetworkPlugin, GasCostPlugin, NetworkPlugin, SocketBlockSubscriber, SocketEventSubscriber, SocketPendingSubscriber, SocketSubscriber, UnmanagedSubscriber, copyRequest, showThrottleMessage } from "./providers/index.js";
|
||||
export { accessListify, computeAddress, recoverAddress, Transaction } from "./transaction/index.js";
|
||||
export { decodeBase58, encodeBase58, decodeBase64, encodeBase64, concat, dataLength, dataSlice, getBytes, getBytesCopy, hexlify, isHexString, isBytesLike, stripZerosLeft, zeroPadBytes, zeroPadValue, defineProperties, resolveProperties, assert, assertArgument, assertArgumentCount, assertNormalize, assertPrivate, makeError, isCallException, isError, EventPayload, FetchRequest, FetchResponse, FetchCancelSignal, FixedNumber, getBigInt, getNumber, getUint, toBeArray, toBigInt, toBeHex, toNumber, toQuantity, fromTwos, toTwos, mask, formatEther, parseEther, formatUnits, parseUnits, toUtf8Bytes, toUtf8CodePoints, toUtf8String, Utf8ErrorFuncs, decodeRlp, encodeRlp, uuidV4, } from "./utils/index.js";
|
||||
export { Mnemonic, BaseWallet, HDNodeWallet, HDNodeVoidWallet, Wallet, defaultPath, getAccountPath, isCrowdsaleJson, isKeystoreJson, decryptCrowdsaleJson, decryptKeystoreJsonSync, decryptKeystoreJson, encryptKeystoreJson, encryptKeystoreJsonSync, } from "./wallet/index.js";
|
||||
export { Mnemonic, BaseWallet, HDNodeWallet, HDNodeVoidWallet, Wallet, defaultPath, getAccountPath, getIndexedAccountPath, isCrowdsaleJson, isKeystoreJson, decryptCrowdsaleJson, decryptKeystoreJsonSync, decryptKeystoreJson, encryptKeystoreJson, encryptKeystoreJsonSync, } from "./wallet/index.js";
|
||||
export { Wordlist, LangEn, WordlistOwl, WordlistOwlA, wordlists } from "./wordlists/index.js";
|
||||
export type { JsonFragment, JsonFragmentType, FormatType, FragmentType, InterfaceAbi, ParamTypeWalkFunc, ParamTypeWalkAsyncFunc } from "./abi/index.js";
|
||||
export type { Addressable, AddressLike, NameResolver } from "./address/index.js";
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"ethers.d.ts","sourceRoot":"","sources":["../src.ts/ethers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,EACH,mBAAmB,EAAE,mBAAmB,EAExC,QAAQ,EACR,mBAAmB,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAEzI,iBAAiB,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,sBAAsB,EACvG,KAAK,GACR,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACH,UAAU,EAAE,cAAc,EAC1B,gBAAgB,EAAE,iBAAiB,EACnC,aAAa,EAAE,SAAS,EAAE,cAAc,EAC3C,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACH,WAAW,EACX,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,EAChD,QAAQ,EACR,WAAW,EAAE,aAAa,EAC7B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACH,YAAY,EAAE,QAAQ,EACtB,eAAe,EACf,oBAAoB,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,QAAQ,GACvH,MAA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EG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,SAAS,EAAE,aAAa,GAAG,MAAM,CAEnK"}
|
2
types/wallet/index.d.ts
vendored
2
types/wallet/index.d.ts
vendored
@ -17,7 +17,7 @@
|
||||
* @_section: api/wallet:Wallets [about-wallets]
|
||||
*/
|
||||
export { BaseWallet } from "./base-wallet.js";
|
||||
export { defaultPath, getAccountPath, HDNodeWallet, HDNodeVoidWallet, } from "./hdwallet.js";
|
||||
export { defaultPath, getAccountPath, getIndexedAccountPath, HDNodeWallet, HDNodeVoidWallet, } from "./hdwallet.js";
|
||||
export { isCrowdsaleJson, decryptCrowdsaleJson } from "./json-crowdsale.js";
|
||||
export { isKeystoreJson, decryptKeystoreJsonSync, decryptKeystoreJson, encryptKeystoreJson, encryptKeystoreJsonSync } from "./json-keystore.js";
|
||||
export { Mnemonic } from "./mnemonic.js";
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src.ts/wallet/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EACH,WAAW,EAEX,cAAc,EAEd,YAAY,EACZ,gBAAgB,GACnB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,EACH,cAAc,EACd,uBAAuB,EAAE,mBAAmB,EAC5C,mBAAmB,EAAE,uBAAuB,EAC/C,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,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