Updated dist files.
This commit is contained in:
parent
d937668dc1
commit
bcda16df1d
@ -3,6 +3,13 @@ Changelog
|
||||
|
||||
This change log is managed by `admin/cmds/update-versions` but may be manually updated.
|
||||
|
||||
ethers/v5.0.31 (2021-02-12 19:04)
|
||||
---------------------------------
|
||||
|
||||
- Prevent unhandled rejections when passing nullish into Contract constructor. ([#1234](https://github.com/ethers-io/ethers.js/issues/1234); [d937668](https://github.com/ethers-io/ethers.js/commit/d937668dc1d39cc293f64bbd30b99b29614d1607))
|
||||
- Better error messaging when provider backends give bogus responses. ([#1243](https://github.com/ethers-io/ethers.js/issues/1243); [8279120](https://github.com/ethers-io/ethers.js/commit/8279120e0ad1cbb7aeabd32c08e168a4228abbec))
|
||||
- Prevent unconfigured ENS names from making an init tx. ([#1290](https://github.com/ethers-io/ethers.js/issues/1290); [243beff](https://github.com/ethers-io/ethers.js/commit/243beffa4f83c910f5f1c5e0554531e5dcf3ab93))
|
||||
|
||||
ethers/v5.0.30 (2021-02-08 15:22)
|
||||
---------------------------------
|
||||
|
||||
|
144
package-lock.json
generated
144
package-lock.json
generated
@ -13,16 +13,16 @@
|
||||
}
|
||||
},
|
||||
"@babel/core": {
|
||||
"version": "7.12.13",
|
||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.13.tgz",
|
||||
"integrity": "sha512-BQKE9kXkPlXHPeqissfxo0lySWJcYdEP0hdtJOH/iJfDdhOCcgtNCjftCJg3qqauB4h+lz2N6ixM++b9DN1Tcw==",
|
||||
"version": "7.12.16",
|
||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.16.tgz",
|
||||
"integrity": "sha512-t/hHIB504wWceOeaOoONOhu+gX+hpjfeN6YRBT209X/4sibZQfSF1I0HFRRlBe97UZZosGx5XwUg1ZgNbelmNw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/code-frame": "^7.12.13",
|
||||
"@babel/generator": "^7.12.13",
|
||||
"@babel/generator": "^7.12.15",
|
||||
"@babel/helper-module-transforms": "^7.12.13",
|
||||
"@babel/helpers": "^7.12.13",
|
||||
"@babel/parser": "^7.12.13",
|
||||
"@babel/parser": "^7.12.16",
|
||||
"@babel/template": "^7.12.13",
|
||||
"@babel/traverse": "^7.12.13",
|
||||
"@babel/types": "^7.12.13",
|
||||
@ -36,9 +36,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/parser": {
|
||||
"version": "7.12.15",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.15.tgz",
|
||||
"integrity": "sha512-AQBOU2Z9kWwSZMd6lNjCX0GUgFonL1wAM1db8L8PMk9UDaGsRCArBkU4Sc+UCM3AE4hjbXx+h58Lb3QT4oRmrA==",
|
||||
"version": "7.12.16",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.16.tgz",
|
||||
"integrity": "sha512-c/+u9cqV6F0+4Hpq01jnJO+GLp2DdT63ppz9Xa+6cHaajM9VFzK/iDXiKK65YtpeVwu+ctfS6iqlMqRgQRzeCw==",
|
||||
"dev": true
|
||||
},
|
||||
"@babel/types": {
|
||||
@ -152,9 +152,9 @@
|
||||
}
|
||||
},
|
||||
"@babel/helper-member-expression-to-functions": {
|
||||
"version": "7.12.13",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.12.13.tgz",
|
||||
"integrity": "sha512-B+7nN0gIL8FZ8SvMcF+EPyB21KnCcZHQZFczCxbiNGV/O0rsrSBlWGLzmtBJ3GMjSVMIm4lpFhR+VdVBuIsUcQ==",
|
||||
"version": "7.12.16",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.12.16.tgz",
|
||||
"integrity": "sha512-zYoZC1uvebBFmj1wFAlXwt35JLEgecefATtKp20xalwEK8vHAixLBXTGxNrVGEmTT+gzOThUgr8UEdgtalc1BQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/types": "^7.12.13"
|
||||
@ -374,9 +374,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/parser": {
|
||||
"version": "7.12.15",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.15.tgz",
|
||||
"integrity": "sha512-AQBOU2Z9kWwSZMd6lNjCX0GUgFonL1wAM1db8L8PMk9UDaGsRCArBkU4Sc+UCM3AE4hjbXx+h58Lb3QT4oRmrA==",
|
||||
"version": "7.12.16",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.16.tgz",
|
||||
"integrity": "sha512-c/+u9cqV6F0+4Hpq01jnJO+GLp2DdT63ppz9Xa+6cHaajM9VFzK/iDXiKK65YtpeVwu+ctfS6iqlMqRgQRzeCw==",
|
||||
"dev": true
|
||||
},
|
||||
"@babel/types": {
|
||||
@ -410,9 +410,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/parser": {
|
||||
"version": "7.12.15",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.15.tgz",
|
||||
"integrity": "sha512-AQBOU2Z9kWwSZMd6lNjCX0GUgFonL1wAM1db8L8PMk9UDaGsRCArBkU4Sc+UCM3AE4hjbXx+h58Lb3QT4oRmrA==",
|
||||
"version": "7.12.16",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.16.tgz",
|
||||
"integrity": "sha512-c/+u9cqV6F0+4Hpq01jnJO+GLp2DdT63ppz9Xa+6cHaajM9VFzK/iDXiKK65YtpeVwu+ctfS6iqlMqRgQRzeCw==",
|
||||
"dev": true
|
||||
},
|
||||
"@babel/types": {
|
||||
@ -473,9 +473,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"@ledgerhq/cryptoassets": {
|
||||
"version": "5.43.0",
|
||||
"resolved": "https://registry.npmjs.org/@ledgerhq/cryptoassets/-/cryptoassets-5.43.0.tgz",
|
||||
"integrity": "sha512-4WsL24r/F6ewgI5F4e4QGZfdrziGbgs/k9e8nPT/7JfjzNIPwIQCOJloYXZgptD4sGKA7DY9M9SJ7JVcZCusbQ==",
|
||||
"version": "5.44.0",
|
||||
"resolved": "https://registry.npmjs.org/@ledgerhq/cryptoassets/-/cryptoassets-5.44.0.tgz",
|
||||
"integrity": "sha512-8ZDX0RYQCDTLIHnHKV+ONvFd0bTbMjDsw/u43AfqY2Nh/7y+tBxxE6CPz5r7rnGti5J+LE1z4VUVs1LAsn/9Pw==",
|
||||
"requires": {
|
||||
"invariant": "2"
|
||||
}
|
||||
@ -551,9 +551,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"@npmcli/git": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/@npmcli/git/-/git-2.0.4.tgz",
|
||||
"integrity": "sha512-OJZCmJ9DNn1cz9HPXXsPmUBnqaArot3CGYo63CyajHQk+g87rPXVOJByGsskQJhPsUUEXJcsZ2Q6bWd2jSwnBA==",
|
||||
"version": "2.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@npmcli/git/-/git-2.0.6.tgz",
|
||||
"integrity": "sha512-a1MnTfeRPBaKbFY07fd+6HugY1WAkKJzdiJvlRub/9o5xz2F/JtPacZZapx5zRJUQFIzSL677vmTSxEcDMrDbg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@npmcli/promise-spawn": "^1.1.0",
|
||||
@ -561,22 +561,12 @@
|
||||
"mkdirp": "^1.0.3",
|
||||
"npm-pick-manifest": "^6.0.0",
|
||||
"promise-inflight": "^1.0.1",
|
||||
"promise-retry": "^1.1.1",
|
||||
"promise-retry": "^2.0.1",
|
||||
"semver": "^7.3.2",
|
||||
"unique-filename": "^1.1.1",
|
||||
"which": "^2.0.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"promise-retry": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-1.1.1.tgz",
|
||||
"integrity": "sha1-ZznpaOMFHaIM5kl/srUPaRHfPW0=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"err-code": "^1.0.0",
|
||||
"retry": "^0.10.0"
|
||||
}
|
||||
},
|
||||
"semver": {
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz",
|
||||
@ -608,9 +598,9 @@
|
||||
}
|
||||
},
|
||||
"@npmcli/move-file": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.1.tgz",
|
||||
"integrity": "sha512-LtWTicuF2wp7PNTuyCwABx7nNG+DnzSE8gN0iWxkC6mpgm/iOPu0ZMTkXuCxmJxtWFsDxUaixM9COSNJEMUfuQ==",
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz",
|
||||
"integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"mkdirp": "^1.0.4",
|
||||
@ -629,9 +619,9 @@
|
||||
}
|
||||
},
|
||||
"@npmcli/node-gyp": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-1.0.1.tgz",
|
||||
"integrity": "sha512-pBqoKPWmuk9iaEcXlLBVRIA6I1kG9JiICU+sG0NuD6NAR461F+02elHJS4WkQxHW2W5rnsfvP/ClKwmsZ9RaaA==",
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-1.0.2.tgz",
|
||||
"integrity": "sha512-yrJUe6reVMpktcvagumoqD9r08fH1iRo01gn1u0zoCApa9lnZGEigVKUd2hzsCId4gdtkZZIVscLhNxMECKgRg==",
|
||||
"dev": true
|
||||
},
|
||||
"@npmcli/promise-spawn": {
|
||||
@ -644,12 +634,12 @@
|
||||
}
|
||||
},
|
||||
"@npmcli/run-script": {
|
||||
"version": "1.8.2",
|
||||
"resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-1.8.2.tgz",
|
||||
"integrity": "sha512-iwKq152Q62zG2rz/zRqT/OLDKcF1nBGTGmFdHRkTV8JRte6bUt18vPG4vOr/uoECecrIuJe1SSyvuUF32yt5BA==",
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-1.8.3.tgz",
|
||||
"integrity": "sha512-ELPGWAVU/xyU+A+H3pEPj0QOvYwLTX71RArXcClFzeiyJ/b/McsZ+d0QxpznvfFtZzxGN/gz/1cvlqICR4/suQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@npmcli/node-gyp": "^1.0.1",
|
||||
"@npmcli/node-gyp": "^1.0.2",
|
||||
"@npmcli/promise-spawn": "^1.3.2",
|
||||
"infer-owner": "^1.0.4",
|
||||
"node-gyp": "^7.1.0",
|
||||
@ -748,9 +738,9 @@
|
||||
"integrity": "sha512-NYrtPht0wGzhwe9+/idPaBB+TqkY9AhTvOLMkThm0IoEfLaiVQZwBwyJ5puCkO3AUCWrmcoePjp2mbFocKy4SQ=="
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "12.19.16",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.19.16.tgz",
|
||||
"integrity": "sha512-7xHmXm/QJ7cbK2laF+YYD7gb5MggHIIQwqyjin3bpEGiSuvScMQ5JZZXPvRipi1MwckTQbJZROMns/JxdnIL1Q==",
|
||||
"version": "12.20.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.0.tgz",
|
||||
"integrity": "sha512-0/41wHcurotvSOTHQUFkgL702c3pyWR1mToSrrX3pGPvGfpHTv3Ksx0M4UVuU5VJfjVb62Eyr1eKO1tWNUCg2Q==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/resolve": {
|
||||
@ -1762,9 +1752,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"err-code": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/err-code/-/err-code-1.1.2.tgz",
|
||||
"integrity": "sha1-BuARbTAo9q70gGhJ6w6mp0iuaWA=",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz",
|
||||
"integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==",
|
||||
"dev": true
|
||||
},
|
||||
"es-abstract": {
|
||||
@ -2173,9 +2163,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"graceful-fs": {
|
||||
"version": "4.2.5",
|
||||
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.5.tgz",
|
||||
"integrity": "sha512-kBBSQbz2K0Nyn+31j/w36fUfxkBW9/gfwRWdUY1ULReH3iokVJgddZAFcD1D0xlgTmFxJCbUkUclAlc6/IDJkw=="
|
||||
"version": "4.2.6",
|
||||
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz",
|
||||
"integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ=="
|
||||
},
|
||||
"growl": {
|
||||
"version": "1.10.5",
|
||||
@ -3168,9 +3158,9 @@
|
||||
}
|
||||
},
|
||||
"make-fetch-happen": {
|
||||
"version": "8.0.13",
|
||||
"resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-8.0.13.tgz",
|
||||
"integrity": "sha512-rQ5NijwwdU8tIaBrpTtSVrNCcAJfyDRcKBC76vOQlyJX588/88+TE+UpjWl4BgG7gCkp29wER7xcRqkeg+x64Q==",
|
||||
"version": "8.0.14",
|
||||
"resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-8.0.14.tgz",
|
||||
"integrity": "sha512-EsS89h6l4vbfJEtBZnENTOFk8mCRpY5ru36Xe5bcX1KYIli2mkSHqoFsp5O1wMDvTJJzxe/4THpCTtygjeeGWQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"agentkeepalive": "^4.1.3",
|
||||
@ -3185,21 +3175,9 @@
|
||||
"minipass-fetch": "^1.3.2",
|
||||
"minipass-flush": "^1.0.5",
|
||||
"minipass-pipeline": "^1.2.4",
|
||||
"promise-retry": "^1.1.1",
|
||||
"promise-retry": "^2.0.1",
|
||||
"socks-proxy-agent": "^5.0.0",
|
||||
"ssri": "^8.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"promise-retry": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-1.1.1.tgz",
|
||||
"integrity": "sha1-ZznpaOMFHaIM5kl/srUPaRHfPW0=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"err-code": "^1.0.0",
|
||||
"retry": "^0.10.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"media-typer": {
|
||||
@ -4159,20 +4137,6 @@
|
||||
"requires": {
|
||||
"err-code": "^2.0.2",
|
||||
"retry": "^0.12.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"err-code": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz",
|
||||
"integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==",
|
||||
"dev": true
|
||||
},
|
||||
"retry": {
|
||||
"version": "0.12.0",
|
||||
"resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz",
|
||||
"integrity": "sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"psl": {
|
||||
@ -4338,12 +4302,12 @@
|
||||
"dev": true
|
||||
},
|
||||
"resolve": {
|
||||
"version": "1.19.0",
|
||||
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz",
|
||||
"integrity": "sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==",
|
||||
"version": "1.20.0",
|
||||
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz",
|
||||
"integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"is-core-module": "^2.1.0",
|
||||
"is-core-module": "^2.2.0",
|
||||
"path-parse": "^1.0.6"
|
||||
}
|
||||
},
|
||||
@ -4354,9 +4318,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"retry": {
|
||||
"version": "0.10.1",
|
||||
"resolved": "https://registry.npmjs.org/retry/-/retry-0.10.1.tgz",
|
||||
"integrity": "sha1-52OI0heZLCUnUCQdPTlW/tmNj/Q=",
|
||||
"version": "0.12.0",
|
||||
"resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz",
|
||||
"integrity": "sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs=",
|
||||
"dev": true
|
||||
},
|
||||
"rfdc": {
|
||||
|
@ -1,2 +1,2 @@
|
||||
export declare const version = "abstract-signer/5.0.12";
|
||||
export declare const version = "abstract-signer/5.0.13";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,2 +1,2 @@
|
||||
export const version = "abstract-signer/5.0.12";
|
||||
export const version = "abstract-signer/5.0.13";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src.ts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,Q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AW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAiBhD,gBAAgB,CAAC,WAAW,EAAE,UAAU,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAC,kBAAkB,CAAC;IA+BvF,mBAAmB,CAAC,WAAW,EAAE,UAAU,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAmDnG,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI;IAMxC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,MAAM;CAG/C;AAED,qBAAa,UAAW,SAAQ,MAAO,YAAW,eAAe;IAC7D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;gBAEb,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,QAAQ;IAOhD,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;IAI7B,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAMvD,WAAW,CAAC,OAAO,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrD,eAAe,CAAC,WAAW,EAAE,UAAU,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAI7E,cAAc,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,GAAG,OAAO,CAAC,MAAM,CAAC;IAIlI,OAAO,CAAC,QAAQ,EAAE,QAAQ,GAAG,UAAU;CAG1C"}
|
@ -128,7 +128,16 @@ export class Signer {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const tx = yield resolveProperties(this.checkTransaction(transaction));
|
||||
if (tx.to != null) {
|
||||
tx.to = Promise.resolve(tx.to).then((to) => this.resolveName(to));
|
||||
tx.to = Promise.resolve(tx.to).then((to) => __awaiter(this, void 0, void 0, function* () {
|
||||
if (to == null) {
|
||||
return null;
|
||||
}
|
||||
const address = yield this.resolveName(to);
|
||||
if (address == null) {
|
||||
logger.throwArgumentError("provided ENS name resolves to null", "tx.to", to);
|
||||
}
|
||||
return address;
|
||||
}));
|
||||
}
|
||||
if (tx.gasPrice == null) {
|
||||
tx.gasPrice = this.getGasPrice();
|
||||
|
File diff suppressed because one or more lines are too long
2
packages/abstract-signer/lib/_version.d.ts
vendored
2
packages/abstract-signer/lib/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "abstract-signer/5.0.12";
|
||||
export declare const version = "abstract-signer/5.0.13";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "abstract-signer/5.0.12";
|
||||
exports.version = "abstract-signer/5.0.13";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src.ts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC/G,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAkD,MAAM,2BAA2B,CAAC;AAmBvG,MAAM,WAAW,eAAe;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,MAA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,CAAC;gBAEb,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,QAAQ;IAOhD,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;IAI7B,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAMvD,WAAW,CAAC,OAAO,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrD,eAAe,CAAC,WAAW,EAAE,UAAU,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAI7E,cAAc,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,GAAG,OAAO,CAAC,MAAM,CAAC;IAIlI,OAAO,CAAC,QAAQ,EAAE,QAAQ,GAAG,UAAU;CAG1C"}
|
@ -227,7 +227,24 @@ var Signer = /** @class */ (function () {
|
||||
case 1:
|
||||
tx = _a.sent();
|
||||
if (tx.to != null) {
|
||||
tx.to = Promise.resolve(tx.to).then(function (to) { return _this.resolveName(to); });
|
||||
tx.to = Promise.resolve(tx.to).then(function (to) { return __awaiter(_this, void 0, void 0, function () {
|
||||
var address;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
if (to == null) {
|
||||
return [2 /*return*/, null];
|
||||
}
|
||||
return [4 /*yield*/, this.resolveName(to)];
|
||||
case 1:
|
||||
address = _a.sent();
|
||||
if (address == null) {
|
||||
logger.throwArgumentError("provided ENS name resolves to null", "tx.to", to);
|
||||
}
|
||||
return [2 /*return*/, address];
|
||||
}
|
||||
});
|
||||
}); });
|
||||
}
|
||||
if (tx.gasPrice == null) {
|
||||
tx.gasPrice = this.getGasPrice();
|
||||
|
File diff suppressed because one or more lines are too long
@ -39,7 +39,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0x709fef6ef770a7b899c418cfe65ed4c5e4ba4d703a54f2168a5990f0bd6d6ad0",
|
||||
"tarballHash": "0x3555d81b93f332b82da7387bccaaab837cccaa6f3b03ced954a556506a9d213f",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.12"
|
||||
"version": "5.0.13"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "abstract-signer/5.0.12";
|
||||
export const version = "abstract-signer/5.0.13";
|
||||
|
2
packages/contracts/lib.esm/_version.d.ts
vendored
2
packages/contracts/lib.esm/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "contracts/5.0.10";
|
||||
export declare const version = "contracts/5.0.11";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,2 +1,2 @@
|
||||
export const version = "contracts/5.0.10";
|
||||
export const version = "contracts/5.0.11";
|
||||
//# sourceMappingURL=_version.js.map
|
File diff suppressed because one or more lines are too long
@ -490,6 +490,9 @@ export class Contract {
|
||||
}
|
||||
defineReadOnly(this, "_runningEvents", {});
|
||||
defineReadOnly(this, "_wrappedEmits", {});
|
||||
if (addressOrName == null) {
|
||||
logger.throwArgumentError("invalid contract address or ENS name", "addressOrName", addressOrName);
|
||||
}
|
||||
defineReadOnly(this, "address", addressOrName);
|
||||
if (this.provider) {
|
||||
defineReadOnly(this, "resolvedAddress", resolveName(this.provider, addressOrName));
|
||||
|
File diff suppressed because one or more lines are too long
2
packages/contracts/lib/_version.d.ts
vendored
2
packages/contracts/lib/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "contracts/5.0.10";
|
||||
export declare const version = "contracts/5.0.11";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "contracts/5.0.10";
|
||||
exports.version = "contracts/5.0.11";
|
||||
//# sourceMappingURL=_version.js.map
|
File diff suppressed because one or more lines are too long
@ -623,6 +623,9 @@ var Contract = /** @class */ (function () {
|
||||
}
|
||||
properties_1.defineReadOnly(this, "_runningEvents", {});
|
||||
properties_1.defineReadOnly(this, "_wrappedEmits", {});
|
||||
if (addressOrName == null) {
|
||||
logger.throwArgumentError("invalid contract address or ENS name", "addressOrName", addressOrName);
|
||||
}
|
||||
properties_1.defineReadOnly(this, "address", addressOrName);
|
||||
if (this.provider) {
|
||||
properties_1.defineReadOnly(this, "resolvedAddress", resolveName(this.provider, addressOrName));
|
||||
|
File diff suppressed because one or more lines are too long
@ -43,7 +43,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0x6c38f5f200f70a60851d0620cf494727bd62e8d24ee78cfd6d3318a1b03000d1",
|
||||
"tarballHash": "0x49aef07509008ace6eb7cd1ac114bbe4f2cae6d14cdde1a4aff5417300b955d7",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.10"
|
||||
"version": "5.0.11"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "contracts/5.0.10";
|
||||
export const version = "contracts/5.0.11";
|
||||
|
99
packages/ethers/dist/ethers.esm.js
vendored
99
packages/ethers/dist/ethers.esm.js
vendored
@ -8613,7 +8613,7 @@ class Provider {
|
||||
}
|
||||
}
|
||||
|
||||
const version$a = "abstract-signer/5.0.12";
|
||||
const version$a = "abstract-signer/5.0.13";
|
||||
|
||||
"use strict";
|
||||
var __awaiter$2 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
@ -8742,7 +8742,16 @@ class Signer {
|
||||
return __awaiter$2(this, void 0, void 0, function* () {
|
||||
const tx = yield resolveProperties(this.checkTransaction(transaction));
|
||||
if (tx.to != null) {
|
||||
tx.to = Promise.resolve(tx.to).then((to) => this.resolveName(to));
|
||||
tx.to = Promise.resolve(tx.to).then((to) => __awaiter$2(this, void 0, void 0, function* () {
|
||||
if (to == null) {
|
||||
return null;
|
||||
}
|
||||
const address = yield this.resolveName(to);
|
||||
if (address == null) {
|
||||
logger$f.throwArgumentError("provided ENS name resolves to null", "tx.to", to);
|
||||
}
|
||||
return address;
|
||||
}));
|
||||
}
|
||||
if (tx.gasPrice == null) {
|
||||
tx.gasPrice = this.getGasPrice();
|
||||
@ -8820,7 +8829,7 @@ class VoidSigner extends Signer {
|
||||
}
|
||||
}
|
||||
|
||||
const version$b = "contracts/5.0.10";
|
||||
const version$b = "contracts/5.0.11";
|
||||
|
||||
"use strict";
|
||||
var __awaiter$3 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
@ -9304,6 +9313,9 @@ class Contract {
|
||||
}
|
||||
defineReadOnly(this, "_runningEvents", {});
|
||||
defineReadOnly(this, "_wrappedEmits", {});
|
||||
if (addressOrName == null) {
|
||||
logger$g.throwArgumentError("invalid contract address or ENS name", "addressOrName", addressOrName);
|
||||
}
|
||||
defineReadOnly(this, "address", addressOrName);
|
||||
if (this.provider) {
|
||||
defineReadOnly(this, "resolvedAddress", resolveName(this.provider, addressOrName));
|
||||
@ -17641,7 +17653,7 @@ var bech32 = {
|
||||
fromWords: fromWords
|
||||
};
|
||||
|
||||
const version$m = "providers/5.0.22";
|
||||
const version$m = "providers/5.0.23";
|
||||
|
||||
"use strict";
|
||||
const logger$s = new Logger(version$m);
|
||||
@ -18863,7 +18875,16 @@ class BaseProvider extends Provider {
|
||||
getGasPrice() {
|
||||
return __awaiter$8(this, void 0, void 0, function* () {
|
||||
yield this.getNetwork();
|
||||
return BigNumber.from(yield this.perform("getGasPrice", {}));
|
||||
const result = yield this.perform("getGasPrice", {});
|
||||
try {
|
||||
return BigNumber.from(result);
|
||||
}
|
||||
catch (error) {
|
||||
return logger$t.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
||||
method: "getGasPrice",
|
||||
result, error
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
getBalance(addressOrName, blockTag) {
|
||||
@ -18873,7 +18894,16 @@ class BaseProvider extends Provider {
|
||||
address: this._getAddress(addressOrName),
|
||||
blockTag: this._getBlockTag(blockTag)
|
||||
});
|
||||
return BigNumber.from(yield this.perform("getBalance", params));
|
||||
const result = yield this.perform("getBalance", params);
|
||||
try {
|
||||
return BigNumber.from(result);
|
||||
}
|
||||
catch (error) {
|
||||
return logger$t.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
||||
method: "getBalance",
|
||||
params, result, error
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
getTransactionCount(addressOrName, blockTag) {
|
||||
@ -18883,7 +18913,16 @@ class BaseProvider extends Provider {
|
||||
address: this._getAddress(addressOrName),
|
||||
blockTag: this._getBlockTag(blockTag)
|
||||
});
|
||||
return BigNumber.from(yield this.perform("getTransactionCount", params)).toNumber();
|
||||
const result = yield this.perform("getTransactionCount", params);
|
||||
try {
|
||||
return BigNumber.from(result).toNumber();
|
||||
}
|
||||
catch (error) {
|
||||
return logger$t.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
||||
method: "getTransactionCount",
|
||||
params, result, error
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
getCode(addressOrName, blockTag) {
|
||||
@ -18893,7 +18932,16 @@ class BaseProvider extends Provider {
|
||||
address: this._getAddress(addressOrName),
|
||||
blockTag: this._getBlockTag(blockTag)
|
||||
});
|
||||
return hexlify(yield this.perform("getCode", params));
|
||||
const result = yield this.perform("getCode", params);
|
||||
try {
|
||||
return hexlify(result);
|
||||
}
|
||||
catch (error) {
|
||||
return logger$t.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
||||
method: "getCode",
|
||||
params, result, error
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
getStorageAt(addressOrName, position, blockTag) {
|
||||
@ -18904,7 +18952,16 @@ class BaseProvider extends Provider {
|
||||
blockTag: this._getBlockTag(blockTag),
|
||||
position: Promise.resolve(position).then((p) => hexValue(p))
|
||||
});
|
||||
return hexlify(yield this.perform("getStorageAt", params));
|
||||
const result = yield this.perform("getStorageAt", params);
|
||||
try {
|
||||
return hexlify(result);
|
||||
}
|
||||
catch (error) {
|
||||
return logger$t.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
||||
method: "getStorageAt",
|
||||
params, result, error
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
// This should be called by any subclass wrapping a TransactionResponse
|
||||
@ -19012,7 +19069,16 @@ class BaseProvider extends Provider {
|
||||
transaction: this._getTransactionRequest(transaction),
|
||||
blockTag: this._getBlockTag(blockTag)
|
||||
});
|
||||
return hexlify(yield this.perform("call", params));
|
||||
const result = yield this.perform("call", params);
|
||||
try {
|
||||
return hexlify(result);
|
||||
}
|
||||
catch (error) {
|
||||
return logger$t.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
||||
method: "call",
|
||||
params, result, error
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
estimateGas(transaction) {
|
||||
@ -19021,7 +19087,16 @@ class BaseProvider extends Provider {
|
||||
const params = yield resolveProperties({
|
||||
transaction: this._getTransactionRequest(transaction)
|
||||
});
|
||||
return BigNumber.from(yield this.perform("estimateGas", params));
|
||||
const result = yield this.perform("estimateGas", params);
|
||||
try {
|
||||
return BigNumber.from(result);
|
||||
}
|
||||
catch (error) {
|
||||
return logger$t.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
||||
method: "estimateGas",
|
||||
params, result, error
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
_getAddress(addressOrName) {
|
||||
@ -22051,7 +22126,7 @@ var utils$1 = /*#__PURE__*/Object.freeze({
|
||||
Indexed: Indexed
|
||||
});
|
||||
|
||||
const version$o = "ethers/5.0.30";
|
||||
const version$o = "ethers/5.0.31";
|
||||
|
||||
"use strict";
|
||||
const logger$H = new Logger(version$o);
|
||||
|
2
packages/ethers/dist/ethers.esm.js.map
vendored
2
packages/ethers/dist/ethers.esm.js.map
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers.esm.min.js
vendored
2
packages/ethers/dist/ethers.esm.min.js
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers.esm.min.js.map
vendored
2
packages/ethers/dist/ethers.esm.min.js.map
vendored
File diff suppressed because one or more lines are too long
196
packages/ethers/dist/ethers.umd.js
vendored
196
packages/ethers/dist/ethers.umd.js
vendored
@ -9600,7 +9600,7 @@
|
||||
var _version$k = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "abstract-signer/5.0.12";
|
||||
exports.version = "abstract-signer/5.0.13";
|
||||
|
||||
});
|
||||
|
||||
@ -9836,7 +9836,24 @@
|
||||
case 1:
|
||||
tx = _a.sent();
|
||||
if (tx.to != null) {
|
||||
tx.to = Promise.resolve(tx.to).then(function (to) { return _this.resolveName(to); });
|
||||
tx.to = Promise.resolve(tx.to).then(function (to) { return __awaiter(_this, void 0, void 0, function () {
|
||||
var address;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
if (to == null) {
|
||||
return [2 /*return*/, null];
|
||||
}
|
||||
return [4 /*yield*/, this.resolveName(to)];
|
||||
case 1:
|
||||
address = _a.sent();
|
||||
if (address == null) {
|
||||
logger.throwArgumentError("provided ENS name resolves to null", "tx.to", to);
|
||||
}
|
||||
return [2 /*return*/, address];
|
||||
}
|
||||
});
|
||||
}); });
|
||||
}
|
||||
if (tx.gasPrice == null) {
|
||||
tx.gasPrice = this.getGasPrice();
|
||||
@ -9932,7 +9949,7 @@
|
||||
var _version$m = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "contracts/5.0.10";
|
||||
exports.version = "contracts/5.0.11";
|
||||
|
||||
});
|
||||
|
||||
@ -10564,6 +10581,9 @@
|
||||
}
|
||||
lib$3.defineReadOnly(this, "_runningEvents", {});
|
||||
lib$3.defineReadOnly(this, "_wrappedEmits", {});
|
||||
if (addressOrName == null) {
|
||||
logger.throwArgumentError("invalid contract address or ENS name", "addressOrName", addressOrName);
|
||||
}
|
||||
lib$3.defineReadOnly(this, "address", addressOrName);
|
||||
if (this.provider) {
|
||||
lib$3.defineReadOnly(this, "resolvedAddress", resolveName(this.provider, addressOrName));
|
||||
@ -19712,7 +19732,7 @@
|
||||
var _version$I = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "providers/5.0.22";
|
||||
exports.version = "providers/5.0.23";
|
||||
|
||||
});
|
||||
|
||||
@ -21146,100 +21166,150 @@
|
||||
};
|
||||
BaseProvider.prototype.getGasPrice = function () {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var _a, _b;
|
||||
return __generator(this, function (_c) {
|
||||
switch (_c.label) {
|
||||
var result;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.getNetwork()];
|
||||
case 1:
|
||||
_c.sent();
|
||||
_b = (_a = lib$2.BigNumber).from;
|
||||
_a.sent();
|
||||
return [4 /*yield*/, this.perform("getGasPrice", {})];
|
||||
case 2: return [2 /*return*/, _b.apply(_a, [_c.sent()])];
|
||||
case 2:
|
||||
result = _a.sent();
|
||||
try {
|
||||
return [2 /*return*/, lib$2.BigNumber.from(result)];
|
||||
}
|
||||
catch (error) {
|
||||
return [2 /*return*/, logger.throwError("bad result from backend", lib.Logger.errors.SERVER_ERROR, {
|
||||
method: "getGasPrice",
|
||||
result: result, error: error
|
||||
})];
|
||||
}
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
BaseProvider.prototype.getBalance = function (addressOrName, blockTag) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var params, _a, _b;
|
||||
return __generator(this, function (_c) {
|
||||
switch (_c.label) {
|
||||
var params, result;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.getNetwork()];
|
||||
case 1:
|
||||
_c.sent();
|
||||
_a.sent();
|
||||
return [4 /*yield*/, lib$3.resolveProperties({
|
||||
address: this._getAddress(addressOrName),
|
||||
blockTag: this._getBlockTag(blockTag)
|
||||
})];
|
||||
case 2:
|
||||
params = _c.sent();
|
||||
_b = (_a = lib$2.BigNumber).from;
|
||||
params = _a.sent();
|
||||
return [4 /*yield*/, this.perform("getBalance", params)];
|
||||
case 3: return [2 /*return*/, _b.apply(_a, [_c.sent()])];
|
||||
case 3:
|
||||
result = _a.sent();
|
||||
try {
|
||||
return [2 /*return*/, lib$2.BigNumber.from(result)];
|
||||
}
|
||||
catch (error) {
|
||||
return [2 /*return*/, logger.throwError("bad result from backend", lib.Logger.errors.SERVER_ERROR, {
|
||||
method: "getBalance",
|
||||
params: params, result: result, error: error
|
||||
})];
|
||||
}
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
BaseProvider.prototype.getTransactionCount = function (addressOrName, blockTag) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var params, _a, _b;
|
||||
return __generator(this, function (_c) {
|
||||
switch (_c.label) {
|
||||
var params, result;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.getNetwork()];
|
||||
case 1:
|
||||
_c.sent();
|
||||
_a.sent();
|
||||
return [4 /*yield*/, lib$3.resolveProperties({
|
||||
address: this._getAddress(addressOrName),
|
||||
blockTag: this._getBlockTag(blockTag)
|
||||
})];
|
||||
case 2:
|
||||
params = _c.sent();
|
||||
_b = (_a = lib$2.BigNumber).from;
|
||||
params = _a.sent();
|
||||
return [4 /*yield*/, this.perform("getTransactionCount", params)];
|
||||
case 3: return [2 /*return*/, _b.apply(_a, [_c.sent()]).toNumber()];
|
||||
case 3:
|
||||
result = _a.sent();
|
||||
try {
|
||||
return [2 /*return*/, lib$2.BigNumber.from(result).toNumber()];
|
||||
}
|
||||
catch (error) {
|
||||
return [2 /*return*/, logger.throwError("bad result from backend", lib.Logger.errors.SERVER_ERROR, {
|
||||
method: "getTransactionCount",
|
||||
params: params, result: result, error: error
|
||||
})];
|
||||
}
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
BaseProvider.prototype.getCode = function (addressOrName, blockTag) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var params, _a;
|
||||
return __generator(this, function (_b) {
|
||||
switch (_b.label) {
|
||||
var params, result;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.getNetwork()];
|
||||
case 1:
|
||||
_b.sent();
|
||||
_a.sent();
|
||||
return [4 /*yield*/, lib$3.resolveProperties({
|
||||
address: this._getAddress(addressOrName),
|
||||
blockTag: this._getBlockTag(blockTag)
|
||||
})];
|
||||
case 2:
|
||||
params = _b.sent();
|
||||
_a = lib$1.hexlify;
|
||||
params = _a.sent();
|
||||
return [4 /*yield*/, this.perform("getCode", params)];
|
||||
case 3: return [2 /*return*/, _a.apply(void 0, [_b.sent()])];
|
||||
case 3:
|
||||
result = _a.sent();
|
||||
try {
|
||||
return [2 /*return*/, lib$1.hexlify(result)];
|
||||
}
|
||||
catch (error) {
|
||||
return [2 /*return*/, logger.throwError("bad result from backend", lib.Logger.errors.SERVER_ERROR, {
|
||||
method: "getCode",
|
||||
params: params, result: result, error: error
|
||||
})];
|
||||
}
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
BaseProvider.prototype.getStorageAt = function (addressOrName, position, blockTag) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var params, _a;
|
||||
return __generator(this, function (_b) {
|
||||
switch (_b.label) {
|
||||
var params, result;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.getNetwork()];
|
||||
case 1:
|
||||
_b.sent();
|
||||
_a.sent();
|
||||
return [4 /*yield*/, lib$3.resolveProperties({
|
||||
address: this._getAddress(addressOrName),
|
||||
blockTag: this._getBlockTag(blockTag),
|
||||
position: Promise.resolve(position).then(function (p) { return lib$1.hexValue(p); })
|
||||
})];
|
||||
case 2:
|
||||
params = _b.sent();
|
||||
_a = lib$1.hexlify;
|
||||
params = _a.sent();
|
||||
return [4 /*yield*/, this.perform("getStorageAt", params)];
|
||||
case 3: return [2 /*return*/, _a.apply(void 0, [_b.sent()])];
|
||||
case 3:
|
||||
result = _a.sent();
|
||||
try {
|
||||
return [2 /*return*/, lib$1.hexlify(result)];
|
||||
}
|
||||
catch (error) {
|
||||
return [2 /*return*/, logger.throwError("bad result from backend", lib.Logger.errors.SERVER_ERROR, {
|
||||
method: "getStorageAt",
|
||||
params: params, result: result, error: error
|
||||
})];
|
||||
}
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -21386,41 +21456,61 @@
|
||||
};
|
||||
BaseProvider.prototype.call = function (transaction, blockTag) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var params, _a;
|
||||
return __generator(this, function (_b) {
|
||||
switch (_b.label) {
|
||||
var params, result;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.getNetwork()];
|
||||
case 1:
|
||||
_b.sent();
|
||||
_a.sent();
|
||||
return [4 /*yield*/, lib$3.resolveProperties({
|
||||
transaction: this._getTransactionRequest(transaction),
|
||||
blockTag: this._getBlockTag(blockTag)
|
||||
})];
|
||||
case 2:
|
||||
params = _b.sent();
|
||||
_a = lib$1.hexlify;
|
||||
params = _a.sent();
|
||||
return [4 /*yield*/, this.perform("call", params)];
|
||||
case 3: return [2 /*return*/, _a.apply(void 0, [_b.sent()])];
|
||||
case 3:
|
||||
result = _a.sent();
|
||||
try {
|
||||
return [2 /*return*/, lib$1.hexlify(result)];
|
||||
}
|
||||
catch (error) {
|
||||
return [2 /*return*/, logger.throwError("bad result from backend", lib.Logger.errors.SERVER_ERROR, {
|
||||
method: "call",
|
||||
params: params, result: result, error: error
|
||||
})];
|
||||
}
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
BaseProvider.prototype.estimateGas = function (transaction) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var params, _a, _b;
|
||||
return __generator(this, function (_c) {
|
||||
switch (_c.label) {
|
||||
var params, result;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.getNetwork()];
|
||||
case 1:
|
||||
_c.sent();
|
||||
_a.sent();
|
||||
return [4 /*yield*/, lib$3.resolveProperties({
|
||||
transaction: this._getTransactionRequest(transaction)
|
||||
})];
|
||||
case 2:
|
||||
params = _c.sent();
|
||||
_b = (_a = lib$2.BigNumber).from;
|
||||
params = _a.sent();
|
||||
return [4 /*yield*/, this.perform("estimateGas", params)];
|
||||
case 3: return [2 /*return*/, _b.apply(_a, [_c.sent()])];
|
||||
case 3:
|
||||
result = _a.sent();
|
||||
try {
|
||||
return [2 /*return*/, lib$2.BigNumber.from(result)];
|
||||
}
|
||||
catch (error) {
|
||||
return [2 /*return*/, logger.throwError("bad result from backend", lib.Logger.errors.SERVER_ERROR, {
|
||||
method: "estimateGas",
|
||||
params: params, result: result, error: error
|
||||
})];
|
||||
}
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -25438,7 +25528,7 @@
|
||||
var _version$M = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "ethers/5.0.30";
|
||||
exports.version = "ethers/5.0.31";
|
||||
|
||||
});
|
||||
|
||||
|
2
packages/ethers/dist/ethers.umd.js.map
vendored
2
packages/ethers/dist/ethers.umd.js.map
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers.umd.min.js
vendored
2
packages/ethers/dist/ethers.umd.min.js
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers.umd.min.js.map
vendored
2
packages/ethers/dist/ethers.umd.min.js.map
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/lib.esm/_version.d.ts
vendored
2
packages/ethers/lib.esm/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "ethers/5.0.30";
|
||||
export declare const version = "ethers/5.0.31";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,2 +1,2 @@
|
||||
export const version = "ethers/5.0.30";
|
||||
export const version = "ethers/5.0.31";
|
||||
//# sourceMappingURL=_version.js.map
|
2
packages/ethers/lib/_version.d.ts
vendored
2
packages/ethers/lib/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "ethers/5.0.30";
|
||||
export declare const version = "ethers/5.0.31";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "ethers/5.0.30";
|
||||
exports.version = "ethers/5.0.31";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -4,14 +4,14 @@
|
||||
"dependencies": {
|
||||
"@ethersproject/abi": "5.0.12",
|
||||
"@ethersproject/abstract-provider": "5.0.9",
|
||||
"@ethersproject/abstract-signer": "5.0.12",
|
||||
"@ethersproject/abstract-signer": "5.0.13",
|
||||
"@ethersproject/address": "5.0.10",
|
||||
"@ethersproject/base64": "5.0.8",
|
||||
"@ethersproject/basex": "5.0.8",
|
||||
"@ethersproject/bignumber": "5.0.14",
|
||||
"@ethersproject/bytes": "5.0.10",
|
||||
"@ethersproject/constants": "5.0.9",
|
||||
"@ethersproject/contracts": "5.0.10",
|
||||
"@ethersproject/contracts": "5.0.11",
|
||||
"@ethersproject/hash": "5.0.11",
|
||||
"@ethersproject/hdnode": "5.0.9",
|
||||
"@ethersproject/json-wallets": "5.0.11",
|
||||
@ -20,7 +20,7 @@
|
||||
"@ethersproject/networks": "5.0.8",
|
||||
"@ethersproject/pbkdf2": "5.0.8",
|
||||
"@ethersproject/properties": "5.0.8",
|
||||
"@ethersproject/providers": "5.0.22",
|
||||
"@ethersproject/providers": "5.0.23",
|
||||
"@ethersproject/random": "5.0.8",
|
||||
"@ethersproject/rlp": "5.0.8",
|
||||
"@ethersproject/sha2": "5.0.8",
|
||||
@ -62,7 +62,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0xdf3bae7db22cd8766586785ea3ed0021291d91740229d69a9215aba60edadfbb",
|
||||
"tarballHash": "0x5369261852c09b2a28bfcbaf26fbfe11073166b67da74b6d760ec581bf39a378",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.30"
|
||||
"version": "5.0.31"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "ethers/5.0.30";
|
||||
export const version = "ethers/5.0.31";
|
||||
|
2
packages/providers/lib.esm/_version.d.ts
vendored
2
packages/providers/lib.esm/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "providers/5.0.22";
|
||||
export declare const version = "providers/5.0.23";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,2 +1,2 @@
|
||||
export const version = "providers/5.0.22";
|
||||
export const version = "providers/5.0.23";
|
||||
//# sourceMappingURL=_version.js.map
|
File diff suppressed because one or more lines are too long
@ -806,7 +806,16 @@ export class BaseProvider extends Provider {
|
||||
getGasPrice() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
yield this.getNetwork();
|
||||
return BigNumber.from(yield this.perform("getGasPrice", {}));
|
||||
const result = yield this.perform("getGasPrice", {});
|
||||
try {
|
||||
return BigNumber.from(result);
|
||||
}
|
||||
catch (error) {
|
||||
return logger.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
||||
method: "getGasPrice",
|
||||
result, error
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
getBalance(addressOrName, blockTag) {
|
||||
@ -816,7 +825,16 @@ export class BaseProvider extends Provider {
|
||||
address: this._getAddress(addressOrName),
|
||||
blockTag: this._getBlockTag(blockTag)
|
||||
});
|
||||
return BigNumber.from(yield this.perform("getBalance", params));
|
||||
const result = yield this.perform("getBalance", params);
|
||||
try {
|
||||
return BigNumber.from(result);
|
||||
}
|
||||
catch (error) {
|
||||
return logger.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
||||
method: "getBalance",
|
||||
params, result, error
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
getTransactionCount(addressOrName, blockTag) {
|
||||
@ -826,7 +844,16 @@ export class BaseProvider extends Provider {
|
||||
address: this._getAddress(addressOrName),
|
||||
blockTag: this._getBlockTag(blockTag)
|
||||
});
|
||||
return BigNumber.from(yield this.perform("getTransactionCount", params)).toNumber();
|
||||
const result = yield this.perform("getTransactionCount", params);
|
||||
try {
|
||||
return BigNumber.from(result).toNumber();
|
||||
}
|
||||
catch (error) {
|
||||
return logger.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
||||
method: "getTransactionCount",
|
||||
params, result, error
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
getCode(addressOrName, blockTag) {
|
||||
@ -836,7 +863,16 @@ export class BaseProvider extends Provider {
|
||||
address: this._getAddress(addressOrName),
|
||||
blockTag: this._getBlockTag(blockTag)
|
||||
});
|
||||
return hexlify(yield this.perform("getCode", params));
|
||||
const result = yield this.perform("getCode", params);
|
||||
try {
|
||||
return hexlify(result);
|
||||
}
|
||||
catch (error) {
|
||||
return logger.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
||||
method: "getCode",
|
||||
params, result, error
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
getStorageAt(addressOrName, position, blockTag) {
|
||||
@ -847,7 +883,16 @@ export class BaseProvider extends Provider {
|
||||
blockTag: this._getBlockTag(blockTag),
|
||||
position: Promise.resolve(position).then((p) => hexValue(p))
|
||||
});
|
||||
return hexlify(yield this.perform("getStorageAt", params));
|
||||
const result = yield this.perform("getStorageAt", params);
|
||||
try {
|
||||
return hexlify(result);
|
||||
}
|
||||
catch (error) {
|
||||
return logger.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
||||
method: "getStorageAt",
|
||||
params, result, error
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
// This should be called by any subclass wrapping a TransactionResponse
|
||||
@ -955,7 +1000,16 @@ export class BaseProvider extends Provider {
|
||||
transaction: this._getTransactionRequest(transaction),
|
||||
blockTag: this._getBlockTag(blockTag)
|
||||
});
|
||||
return hexlify(yield this.perform("call", params));
|
||||
const result = yield this.perform("call", params);
|
||||
try {
|
||||
return hexlify(result);
|
||||
}
|
||||
catch (error) {
|
||||
return logger.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
||||
method: "call",
|
||||
params, result, error
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
estimateGas(transaction) {
|
||||
@ -964,7 +1018,16 @@ export class BaseProvider extends Provider {
|
||||
const params = yield resolveProperties({
|
||||
transaction: this._getTransactionRequest(transaction)
|
||||
});
|
||||
return BigNumber.from(yield this.perform("estimateGas", params));
|
||||
const result = yield this.perform("estimateGas", params);
|
||||
try {
|
||||
return BigNumber.from(result);
|
||||
}
|
||||
catch (error) {
|
||||
return logger.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
||||
method: "estimateGas",
|
||||
params, result, error
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
_getAddress(addressOrName) {
|
||||
|
File diff suppressed because one or more lines are too long
2
packages/providers/lib/_version.d.ts
vendored
2
packages/providers/lib/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "providers/5.0.22";
|
||||
export declare const version = "providers/5.0.23";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "providers/5.0.22";
|
||||
exports.version = "providers/5.0.23";
|
||||
//# sourceMappingURL=_version.js.map
|
File diff suppressed because one or more lines are too long
@ -976,100 +976,150 @@ var BaseProvider = /** @class */ (function (_super) {
|
||||
};
|
||||
BaseProvider.prototype.getGasPrice = function () {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var _a, _b;
|
||||
return __generator(this, function (_c) {
|
||||
switch (_c.label) {
|
||||
var result;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.getNetwork()];
|
||||
case 1:
|
||||
_c.sent();
|
||||
_b = (_a = bignumber_1.BigNumber).from;
|
||||
_a.sent();
|
||||
return [4 /*yield*/, this.perform("getGasPrice", {})];
|
||||
case 2: return [2 /*return*/, _b.apply(_a, [_c.sent()])];
|
||||
case 2:
|
||||
result = _a.sent();
|
||||
try {
|
||||
return [2 /*return*/, bignumber_1.BigNumber.from(result)];
|
||||
}
|
||||
catch (error) {
|
||||
return [2 /*return*/, logger.throwError("bad result from backend", logger_1.Logger.errors.SERVER_ERROR, {
|
||||
method: "getGasPrice",
|
||||
result: result, error: error
|
||||
})];
|
||||
}
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
BaseProvider.prototype.getBalance = function (addressOrName, blockTag) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var params, _a, _b;
|
||||
return __generator(this, function (_c) {
|
||||
switch (_c.label) {
|
||||
var params, result;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.getNetwork()];
|
||||
case 1:
|
||||
_c.sent();
|
||||
_a.sent();
|
||||
return [4 /*yield*/, properties_1.resolveProperties({
|
||||
address: this._getAddress(addressOrName),
|
||||
blockTag: this._getBlockTag(blockTag)
|
||||
})];
|
||||
case 2:
|
||||
params = _c.sent();
|
||||
_b = (_a = bignumber_1.BigNumber).from;
|
||||
params = _a.sent();
|
||||
return [4 /*yield*/, this.perform("getBalance", params)];
|
||||
case 3: return [2 /*return*/, _b.apply(_a, [_c.sent()])];
|
||||
case 3:
|
||||
result = _a.sent();
|
||||
try {
|
||||
return [2 /*return*/, bignumber_1.BigNumber.from(result)];
|
||||
}
|
||||
catch (error) {
|
||||
return [2 /*return*/, logger.throwError("bad result from backend", logger_1.Logger.errors.SERVER_ERROR, {
|
||||
method: "getBalance",
|
||||
params: params, result: result, error: error
|
||||
})];
|
||||
}
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
BaseProvider.prototype.getTransactionCount = function (addressOrName, blockTag) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var params, _a, _b;
|
||||
return __generator(this, function (_c) {
|
||||
switch (_c.label) {
|
||||
var params, result;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.getNetwork()];
|
||||
case 1:
|
||||
_c.sent();
|
||||
_a.sent();
|
||||
return [4 /*yield*/, properties_1.resolveProperties({
|
||||
address: this._getAddress(addressOrName),
|
||||
blockTag: this._getBlockTag(blockTag)
|
||||
})];
|
||||
case 2:
|
||||
params = _c.sent();
|
||||
_b = (_a = bignumber_1.BigNumber).from;
|
||||
params = _a.sent();
|
||||
return [4 /*yield*/, this.perform("getTransactionCount", params)];
|
||||
case 3: return [2 /*return*/, _b.apply(_a, [_c.sent()]).toNumber()];
|
||||
case 3:
|
||||
result = _a.sent();
|
||||
try {
|
||||
return [2 /*return*/, bignumber_1.BigNumber.from(result).toNumber()];
|
||||
}
|
||||
catch (error) {
|
||||
return [2 /*return*/, logger.throwError("bad result from backend", logger_1.Logger.errors.SERVER_ERROR, {
|
||||
method: "getTransactionCount",
|
||||
params: params, result: result, error: error
|
||||
})];
|
||||
}
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
BaseProvider.prototype.getCode = function (addressOrName, blockTag) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var params, _a;
|
||||
return __generator(this, function (_b) {
|
||||
switch (_b.label) {
|
||||
var params, result;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.getNetwork()];
|
||||
case 1:
|
||||
_b.sent();
|
||||
_a.sent();
|
||||
return [4 /*yield*/, properties_1.resolveProperties({
|
||||
address: this._getAddress(addressOrName),
|
||||
blockTag: this._getBlockTag(blockTag)
|
||||
})];
|
||||
case 2:
|
||||
params = _b.sent();
|
||||
_a = bytes_1.hexlify;
|
||||
params = _a.sent();
|
||||
return [4 /*yield*/, this.perform("getCode", params)];
|
||||
case 3: return [2 /*return*/, _a.apply(void 0, [_b.sent()])];
|
||||
case 3:
|
||||
result = _a.sent();
|
||||
try {
|
||||
return [2 /*return*/, bytes_1.hexlify(result)];
|
||||
}
|
||||
catch (error) {
|
||||
return [2 /*return*/, logger.throwError("bad result from backend", logger_1.Logger.errors.SERVER_ERROR, {
|
||||
method: "getCode",
|
||||
params: params, result: result, error: error
|
||||
})];
|
||||
}
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
BaseProvider.prototype.getStorageAt = function (addressOrName, position, blockTag) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var params, _a;
|
||||
return __generator(this, function (_b) {
|
||||
switch (_b.label) {
|
||||
var params, result;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.getNetwork()];
|
||||
case 1:
|
||||
_b.sent();
|
||||
_a.sent();
|
||||
return [4 /*yield*/, properties_1.resolveProperties({
|
||||
address: this._getAddress(addressOrName),
|
||||
blockTag: this._getBlockTag(blockTag),
|
||||
position: Promise.resolve(position).then(function (p) { return bytes_1.hexValue(p); })
|
||||
})];
|
||||
case 2:
|
||||
params = _b.sent();
|
||||
_a = bytes_1.hexlify;
|
||||
params = _a.sent();
|
||||
return [4 /*yield*/, this.perform("getStorageAt", params)];
|
||||
case 3: return [2 /*return*/, _a.apply(void 0, [_b.sent()])];
|
||||
case 3:
|
||||
result = _a.sent();
|
||||
try {
|
||||
return [2 /*return*/, bytes_1.hexlify(result)];
|
||||
}
|
||||
catch (error) {
|
||||
return [2 /*return*/, logger.throwError("bad result from backend", logger_1.Logger.errors.SERVER_ERROR, {
|
||||
method: "getStorageAt",
|
||||
params: params, result: result, error: error
|
||||
})];
|
||||
}
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -1216,41 +1266,61 @@ var BaseProvider = /** @class */ (function (_super) {
|
||||
};
|
||||
BaseProvider.prototype.call = function (transaction, blockTag) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var params, _a;
|
||||
return __generator(this, function (_b) {
|
||||
switch (_b.label) {
|
||||
var params, result;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.getNetwork()];
|
||||
case 1:
|
||||
_b.sent();
|
||||
_a.sent();
|
||||
return [4 /*yield*/, properties_1.resolveProperties({
|
||||
transaction: this._getTransactionRequest(transaction),
|
||||
blockTag: this._getBlockTag(blockTag)
|
||||
})];
|
||||
case 2:
|
||||
params = _b.sent();
|
||||
_a = bytes_1.hexlify;
|
||||
params = _a.sent();
|
||||
return [4 /*yield*/, this.perform("call", params)];
|
||||
case 3: return [2 /*return*/, _a.apply(void 0, [_b.sent()])];
|
||||
case 3:
|
||||
result = _a.sent();
|
||||
try {
|
||||
return [2 /*return*/, bytes_1.hexlify(result)];
|
||||
}
|
||||
catch (error) {
|
||||
return [2 /*return*/, logger.throwError("bad result from backend", logger_1.Logger.errors.SERVER_ERROR, {
|
||||
method: "call",
|
||||
params: params, result: result, error: error
|
||||
})];
|
||||
}
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
BaseProvider.prototype.estimateGas = function (transaction) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var params, _a, _b;
|
||||
return __generator(this, function (_c) {
|
||||
switch (_c.label) {
|
||||
var params, result;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.getNetwork()];
|
||||
case 1:
|
||||
_c.sent();
|
||||
_a.sent();
|
||||
return [4 /*yield*/, properties_1.resolveProperties({
|
||||
transaction: this._getTransactionRequest(transaction)
|
||||
})];
|
||||
case 2:
|
||||
params = _c.sent();
|
||||
_b = (_a = bignumber_1.BigNumber).from;
|
||||
params = _a.sent();
|
||||
return [4 /*yield*/, this.perform("estimateGas", params)];
|
||||
case 3: return [2 /*return*/, _b.apply(_a, [_c.sent()])];
|
||||
case 3:
|
||||
result = _a.sent();
|
||||
try {
|
||||
return [2 /*return*/, bignumber_1.BigNumber.from(result)];
|
||||
}
|
||||
catch (error) {
|
||||
return [2 /*return*/, logger.throwError("bad result from backend", logger_1.Logger.errors.SERVER_ERROR, {
|
||||
method: "estimateGas",
|
||||
params: params, result: result, error: error
|
||||
})];
|
||||
}
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
|
File diff suppressed because one or more lines are too long
@ -66,7 +66,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0x4c620d29f1e16cee04e85e343a16fbca7fc190eb3169c4911dc7ca858b737411",
|
||||
"tarballHash": "0x1b9c6562f752d99b5682d2dc034ce56d3f65388548b83f971d92e3de106a2cc7",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.22"
|
||||
"version": "5.0.23"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "providers/5.0.22";
|
||||
export const version = "providers/5.0.23";
|
||||
|
2
packages/tests/lib.esm/_version.d.ts
vendored
2
packages/tests/lib.esm/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "tests/5.0.18";
|
||||
export declare const version = "tests/5.0.19";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,2 +1,2 @@
|
||||
export const version = "tests/5.0.18";
|
||||
export const version = "tests/5.0.19";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -1008,4 +1008,33 @@ describe("Test Events", function () {
|
||||
});
|
||||
});
|
||||
});
|
||||
describe("Bad ENS resolution", function () {
|
||||
const provider = providerFunctions[0].create("ropsten");
|
||||
it("signer has a bad ENS name", function () {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
this.timeout(300000);
|
||||
const wallet = new ethers.Wallet(ethers.utils.id("random-wallet"), provider);
|
||||
// If "to" is specified as an ENS name, it cannot resolve to null
|
||||
try {
|
||||
const tx = yield wallet.sendTransaction({ to: "junk", value: 1 });
|
||||
console.log("TX", tx);
|
||||
}
|
||||
catch (error) {
|
||||
assert.ok(error.argument === "tx.to" && error.value === "junk");
|
||||
}
|
||||
// But promises that resolve to null are ok
|
||||
const tos = [null, Promise.resolve(null)];
|
||||
for (let i = 0; i < tos.length; i++) {
|
||||
const to = tos[i];
|
||||
try {
|
||||
const tx = yield wallet.sendTransaction({ to, value: 1 });
|
||||
console.log("TX", tx);
|
||||
}
|
||||
catch (error) {
|
||||
assert.ok(error.code === "INSUFFICIENT_FUNDS");
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=test-providers.js.map
|
File diff suppressed because one or more lines are too long
2
packages/tests/lib/_version.d.ts
vendored
2
packages/tests/lib/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "tests/5.0.18";
|
||||
export declare const version = "tests/5.0.19";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "tests/5.0.18";
|
||||
exports.version = "tests/5.0.19";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -1194,4 +1194,54 @@ describe("Test Events", function () {
|
||||
});
|
||||
});
|
||||
});
|
||||
describe("Bad ENS resolution", function () {
|
||||
var provider = providerFunctions[0].create("ropsten");
|
||||
it("signer has a bad ENS name", function () {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var wallet, tx, error_2, tos, i, to, tx, error_3;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
this.timeout(300000);
|
||||
wallet = new ethers_1.ethers.Wallet(ethers_1.ethers.utils.id("random-wallet"), provider);
|
||||
_a.label = 1;
|
||||
case 1:
|
||||
_a.trys.push([1, 3, , 4]);
|
||||
return [4 /*yield*/, wallet.sendTransaction({ to: "junk", value: 1 })];
|
||||
case 2:
|
||||
tx = _a.sent();
|
||||
console.log("TX", tx);
|
||||
return [3 /*break*/, 4];
|
||||
case 3:
|
||||
error_2 = _a.sent();
|
||||
assert_1.default.ok(error_2.argument === "tx.to" && error_2.value === "junk");
|
||||
return [3 /*break*/, 4];
|
||||
case 4:
|
||||
tos = [null, Promise.resolve(null)];
|
||||
i = 0;
|
||||
_a.label = 5;
|
||||
case 5:
|
||||
if (!(i < tos.length)) return [3 /*break*/, 10];
|
||||
to = tos[i];
|
||||
_a.label = 6;
|
||||
case 6:
|
||||
_a.trys.push([6, 8, , 9]);
|
||||
return [4 /*yield*/, wallet.sendTransaction({ to: to, value: 1 })];
|
||||
case 7:
|
||||
tx = _a.sent();
|
||||
console.log("TX", tx);
|
||||
return [3 /*break*/, 9];
|
||||
case 8:
|
||||
error_3 = _a.sent();
|
||||
assert_1.default.ok(error_3.code === "INSUFFICIENT_FUNDS");
|
||||
return [3 /*break*/, 9];
|
||||
case 9:
|
||||
i++;
|
||||
return [3 /*break*/, 5];
|
||||
case 10: return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=test-providers.js.map
|
File diff suppressed because one or more lines are too long
@ -37,7 +37,7 @@
|
||||
"scripts": {
|
||||
"test": "exit 1"
|
||||
},
|
||||
"tarballHash": "0x4f88966375a134abd84d447d5d931ca17a2ef587fdb3f75a4d849b57722cc0f2",
|
||||
"tarballHash": "0xdba7bc960d3d5f4c22e4beacb995d21afe136ed9849e2156f7ea054eecbcc710",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.18"
|
||||
"version": "5.0.19"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "tests/5.0.18";
|
||||
export const version = "tests/5.0.19";
|
||||
|
Loading…
Reference in New Issue
Block a user