@@ -219,10 +219,11 @@ declare module 'ethers/utils' {
219219 import { keccak256 as solidityKeccak256, pack as solidityPack, sha256 as soliditySha256 } from 'ethers/utils/solidity';
220220 import { randomBytes } from 'ethers/utils/random-bytes';
221221 import { getNetwork } from 'ethers/utils/networks';
222- import { deepCopy, defineReadOnly, resolveProperties, shallowCopy } from 'ethers/utils/properties';
222+ import { checkProperties, deepCopy, defineReadOnly, resolveProperties, shallowCopy } from 'ethers/utils/properties';
223223 import * as RLP from 'ethers/utils/rlp';
224224 import { computeAddress, computePublicKey, recoverAddress, recoverPublicKey, verifyMessage } from 'ethers/utils/secp256k1';
225225 import { SigningKey } from 'ethers/utils/signing-key';
226+ import { populateTransaction } from 'ethers/utils/transaction';
226227 import { parse as parseTransaction, serialize as serializeTransaction } from 'ethers/utils/transaction';
227228 import { formatBytes32String, parseBytes32String, toUtf8Bytes, toUtf8String } from 'ethers/utils/utf8';
228229 import { commify, formatEther, parseEther, formatUnits, parseUnits } from 'ethers/utils/units';
@@ -238,7 +239,7 @@ declare module 'ethers/utils' {
238239 import { ConnectionInfo, OnceBlockable, PollOptions } from 'ethers/utils/web';
239240 import { EncryptOptions, ProgressCallback } from 'ethers/utils/secret-storage';
240241 import { Wordlist } from 'ethers/utils/wordlist';
241- export { AbiCoder, defaultAbiCoder, formatSignature, formatParamType, parseSignature, parseParamType, RLP, fetchJson, getNetwork, deepCopy, defineReadOnly, resolveProperties, shallowCopy, arrayify, concat, padZeros, stripZeros, HDNode, SigningKey, Interface, base64, BigNumber, bigNumberify, hexlify, hexStripZeros, hexZeroPad, hexDataLength, hexDataSlice, toUtf8Bytes, toUtf8String, formatBytes32String, parseBytes32String, hashMessage, namehash, id, getAddress, getIcapAddress, getContractAddress, formatEther, parseEther, formatUnits, parseUnits, commify, keccak256, sha256, randomBytes, solidityPack, solidityKeccak256, soliditySha256, splitSignature, joinSignature, parseTransaction, serializeTransaction, getJsonWalletAddress, computeAddress, computePublicKey, recoverAddress, recoverPublicKey, verifyMessage, SupportedAlgorithms, UnicodeNormalizationForm, CoerceFunc, EventFragment, FunctionFragment, ParamType, BigNumberish, Arrayish, Hexable, Signature, Indexed, DeployDescription, EventDescription, FunctionDescription, LogDescription, TransactionDescription, Network, Networkish, Transaction, UnsignedTransaction, ConnectionInfo, OnceBlockable, PollOptions, EncryptOptions, ProgressCallback, Wordlist, };
242+ export { AbiCoder, defaultAbiCoder, formatSignature, formatParamType, parseSignature, parseParamType, RLP, fetchJson, getNetwork, checkProperties, deepCopy, defineReadOnly, resolveProperties, shallowCopy, arrayify, concat, padZeros, stripZeros, HDNode, SigningKey, Interface, base64, BigNumber, bigNumberify, hexlify, hexStripZeros, hexZeroPad, hexDataLength, hexDataSlice, toUtf8Bytes, toUtf8String, formatBytes32String, parseBytes32String, hashMessage, namehash, id, getAddress, getIcapAddress, getContractAddress, formatEther, parseEther, formatUnits, parseUnits, commify, keccak256, sha256, randomBytes, solidityPack, solidityKeccak256, soliditySha256, splitSignature, joinSignature, parseTransaction, populateTransaction, serializeTransaction, getJsonWalletAddress, computeAddress, computePublicKey, recoverAddress, recoverPublicKey, verifyMessage, SupportedAlgorithms, UnicodeNormalizationForm, CoerceFunc, EventFragment, FunctionFragment, ParamType, BigNumberish, Arrayish, Hexable, Signature, Indexed, DeployDescription, EventDescription, FunctionDescription, LogDescription, TransactionDescription, Network, Networkish, Transaction, UnsignedTransaction, ConnectionInfo, OnceBlockable, PollOptions, EncryptOptions, ProgressCallback, Wordlist, };
242243}
243244
244245declare module 'ethers/wordlists' {
@@ -260,7 +261,7 @@ declare module 'ethers/utils/shims' {
260261}
261262
262263declare module 'ethers/_version' {
263- export const version = "4.0.6 ";
264+ export const version = "4.0.7 ";
264265}
265266
266267declare module 'ethers/utils/bignumber' {
@@ -412,6 +413,7 @@ declare module 'ethers/utils/transaction' {
412413 import { BigNumber } from 'ethers/utils/bignumber';
413414 import { Arrayish, Signature } from 'ethers/utils/bytes';
414415 import { BigNumberish } from 'ethers/utils/bignumber';
416+ import { Provider } from 'ethers/providers/abstract-provider';
415417 export type UnsignedTransaction = {
416418 to?: string;
417419 nonce?: number;
@@ -437,6 +439,7 @@ declare module 'ethers/utils/transaction' {
437439 }
438440 export function serialize(transaction: UnsignedTransaction, signature?: Arrayish | Signature): string;
439441 export function parse(rawTransaction: Arrayish): Transaction;
442+ export function populateTransaction(transaction: any, provider: Provider, from: string | Promise<string>): Promise<Transaction>;
440443}
441444
442445declare module 'ethers/providers/abstract-provider' {
@@ -936,6 +939,9 @@ declare module 'ethers/utils/properties' {
936939 export function setType(object: any, type: string): void;
937940 export function isType(object: any, type: string): boolean;
938941 export function resolveProperties(object: any): Promise<any>;
942+ export function checkProperties(object: any, properties: {
943+ [name: string]: boolean;
944+ }): void;
939945 export function shallowCopy(object: any): any;
940946 export function deepCopy(object: any, frozen?: boolean): any;
941947 export function inheritable(parent: any): (child: any) => void;
0 commit comments