Updated dist files.
This commit is contained in:
parent
19587eea3f
commit
34397fa2aa
2
_version.d.ts
vendored
2
_version.d.ts
vendored
@ -1 +1 @@
|
|||||||
export declare const version = "4.0.28";
|
export declare const version = "4.0.29";
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.version = "4.0.28";
|
exports.version = "4.0.29";
|
||||||
|
6
dist/ethers.js
vendored
6
dist/ethers.js
vendored
@ -1,7 +1,7 @@
|
|||||||
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ethers = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ethers = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.version = "4.0.28";
|
exports.version = "4.0.29";
|
||||||
|
|
||||||
},{}],2:[function(require,module,exports){
|
},{}],2:[function(require,module,exports){
|
||||||
"use strict";
|
"use strict";
|
||||||
@ -11837,6 +11837,7 @@ var InfuraProvider = /** @class */ (function (_super) {
|
|||||||
// Legacy API Access Token
|
// Legacy API Access Token
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
errors.warn("The legacy INFURA apiAccesToken API is deprecated; please upgrade to a Project ID instead (see INFURA dshboard; https://infura.io)");
|
||||||
_this = _super.call(this, 'https://' + host + '/' + projectId, standard) || this;
|
_this = _super.call(this, 'https://' + host + '/' + projectId, standard) || this;
|
||||||
properties_1.defineReadOnly(_this, 'apiAccessToken', projectId);
|
properties_1.defineReadOnly(_this, 'apiAccessToken', projectId);
|
||||||
properties_1.defineReadOnly(_this, 'projectId', null);
|
properties_1.defineReadOnly(_this, 'projectId', null);
|
||||||
@ -14557,6 +14558,7 @@ exports.formatUnits = units_1.formatUnits;
|
|||||||
exports.parseUnits = units_1.parseUnits;
|
exports.parseUnits = units_1.parseUnits;
|
||||||
var web_1 = require("./web");
|
var web_1 = require("./web");
|
||||||
exports.fetchJson = web_1.fetchJson;
|
exports.fetchJson = web_1.fetchJson;
|
||||||
|
exports.poll = web_1.poll;
|
||||||
////////////////////////
|
////////////////////////
|
||||||
// Enums
|
// Enums
|
||||||
var hmac_1 = require("./hmac");
|
var hmac_1 = require("./hmac");
|
||||||
@ -16744,7 +16746,7 @@ function parseBytes32String(bytes) {
|
|||||||
throw new Error('invalid bytes32 - not 32 bytes long');
|
throw new Error('invalid bytes32 - not 32 bytes long');
|
||||||
}
|
}
|
||||||
if (data[31] !== 0) {
|
if (data[31] !== 0) {
|
||||||
throw new Error('invalid bytes32 sdtring - no null terminator');
|
throw new Error('invalid bytes32 string - no null terminator');
|
||||||
}
|
}
|
||||||
// Find the null termination
|
// Find the null termination
|
||||||
var length = 31;
|
var length = 31;
|
||||||
|
2
dist/ethers.min.js
vendored
2
dist/ethers.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/ethers.min.js.map
vendored
2
dist/ethers.min.js.map
vendored
File diff suppressed because one or more lines are too long
6
dist/ethers.types.txt
vendored
6
dist/ethers.types.txt
vendored
@ -232,7 +232,7 @@ declare module 'ethers/utils' {
|
|||||||
import { parse as parseTransaction, serialize as serializeTransaction } from 'ethers/utils/transaction';
|
import { parse as parseTransaction, serialize as serializeTransaction } from 'ethers/utils/transaction';
|
||||||
import { formatBytes32String, parseBytes32String, toUtf8Bytes, toUtf8String } from 'ethers/utils/utf8';
|
import { formatBytes32String, parseBytes32String, toUtf8Bytes, toUtf8String } from 'ethers/utils/utf8';
|
||||||
import { commify, formatEther, parseEther, formatUnits, parseUnits } from 'ethers/utils/units';
|
import { commify, formatEther, parseEther, formatUnits, parseUnits } from 'ethers/utils/units';
|
||||||
import { fetchJson } from 'ethers/utils/web';
|
import { fetchJson, poll } from 'ethers/utils/web';
|
||||||
import { SupportedAlgorithms } from 'ethers/utils/hmac';
|
import { SupportedAlgorithms } from 'ethers/utils/hmac';
|
||||||
import { UnicodeNormalizationForm } from 'ethers/utils/utf8';
|
import { UnicodeNormalizationForm } from 'ethers/utils/utf8';
|
||||||
import { CoerceFunc, EventFragment, FunctionFragment, ParamType } from 'ethers/utils/abi-coder';
|
import { CoerceFunc, EventFragment, FunctionFragment, ParamType } from 'ethers/utils/abi-coder';
|
||||||
@ -244,7 +244,7 @@ declare module 'ethers/utils' {
|
|||||||
import { ConnectionInfo, OnceBlockable, PollOptions } from 'ethers/utils/web';
|
import { ConnectionInfo, OnceBlockable, PollOptions } from 'ethers/utils/web';
|
||||||
import { EncryptOptions, ProgressCallback } from 'ethers/utils/secret-storage';
|
import { EncryptOptions, ProgressCallback } from 'ethers/utils/secret-storage';
|
||||||
import { Wordlist } from 'ethers/utils/wordlist';
|
import { Wordlist } from 'ethers/utils/wordlist';
|
||||||
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, isHexString, 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, };
|
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, isHexString, 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, poll, 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, };
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module 'ethers/wordlists' {
|
declare module 'ethers/wordlists' {
|
||||||
@ -266,7 +266,7 @@ declare module 'ethers/utils/shims' {
|
|||||||
}
|
}
|
||||||
|
|
||||||
declare module 'ethers/_version' {
|
declare module 'ethers/_version' {
|
||||||
export const version = "4.0.28";
|
export const version = "4.0.29";
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module 'ethers/utils/bignumber' {
|
declare module 'ethers/utils/bignumber' {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ethers",
|
"name": "ethers",
|
||||||
"version": "4.0.28",
|
"version": "4.0.29",
|
||||||
"description": "Ethereum wallet library.",
|
"description": "Ethereum wallet library.",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"types": "./index.d.ts",
|
"types": "./index.d.ts",
|
||||||
|
@ -62,6 +62,7 @@ var InfuraProvider = /** @class */ (function (_super) {
|
|||||||
// Legacy API Access Token
|
// Legacy API Access Token
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
errors.warn("The legacy INFURA apiAccesToken API is deprecated; please upgrade to a Project ID instead (see INFURA dshboard; https://infura.io)");
|
||||||
_this = _super.call(this, 'https://' + host + '/' + projectId, standard) || this;
|
_this = _super.call(this, 'https://' + host + '/' + projectId, standard) || this;
|
||||||
properties_1.defineReadOnly(_this, 'apiAccessToken', projectId);
|
properties_1.defineReadOnly(_this, 'apiAccessToken', projectId);
|
||||||
properties_1.defineReadOnly(_this, 'projectId', null);
|
properties_1.defineReadOnly(_this, 'projectId', null);
|
||||||
|
@ -1 +1 @@
|
|||||||
export const version = "4.0.28";
|
export const version = "4.0.29";
|
||||||
|
4
utils/index.d.ts
vendored
4
utils/index.d.ts
vendored
@ -20,7 +20,7 @@ import { populateTransaction } from './transaction';
|
|||||||
import { parse as parseTransaction, serialize as serializeTransaction } from './transaction';
|
import { parse as parseTransaction, serialize as serializeTransaction } from './transaction';
|
||||||
import { formatBytes32String, parseBytes32String, toUtf8Bytes, toUtf8String } from './utf8';
|
import { formatBytes32String, parseBytes32String, toUtf8Bytes, toUtf8String } from './utf8';
|
||||||
import { commify, formatEther, parseEther, formatUnits, parseUnits } from './units';
|
import { commify, formatEther, parseEther, formatUnits, parseUnits } from './units';
|
||||||
import { fetchJson } from './web';
|
import { fetchJson, poll } from './web';
|
||||||
import { SupportedAlgorithms } from './hmac';
|
import { SupportedAlgorithms } from './hmac';
|
||||||
import { UnicodeNormalizationForm } from './utf8';
|
import { UnicodeNormalizationForm } from './utf8';
|
||||||
import { CoerceFunc, EventFragment, FunctionFragment, ParamType } from './abi-coder';
|
import { CoerceFunc, EventFragment, FunctionFragment, ParamType } from './abi-coder';
|
||||||
@ -32,4 +32,4 @@ import { Transaction, UnsignedTransaction } from './transaction';
|
|||||||
import { ConnectionInfo, OnceBlockable, PollOptions } from './web';
|
import { ConnectionInfo, OnceBlockable, PollOptions } from './web';
|
||||||
import { EncryptOptions, ProgressCallback } from './secret-storage';
|
import { EncryptOptions, ProgressCallback } from './secret-storage';
|
||||||
import { Wordlist } from './wordlist';
|
import { Wordlist } from './wordlist';
|
||||||
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, isHexString, 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, };
|
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, isHexString, 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, poll, 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, };
|
||||||
|
@ -92,6 +92,7 @@ exports.formatUnits = units_1.formatUnits;
|
|||||||
exports.parseUnits = units_1.parseUnits;
|
exports.parseUnits = units_1.parseUnits;
|
||||||
var web_1 = require("./web");
|
var web_1 = require("./web");
|
||||||
exports.fetchJson = web_1.fetchJson;
|
exports.fetchJson = web_1.fetchJson;
|
||||||
|
exports.poll = web_1.poll;
|
||||||
////////////////////////
|
////////////////////////
|
||||||
// Enums
|
// Enums
|
||||||
var hmac_1 = require("./hmac");
|
var hmac_1 = require("./hmac");
|
||||||
|
@ -174,7 +174,7 @@ function parseBytes32String(bytes) {
|
|||||||
throw new Error('invalid bytes32 - not 32 bytes long');
|
throw new Error('invalid bytes32 - not 32 bytes long');
|
||||||
}
|
}
|
||||||
if (data[31] !== 0) {
|
if (data[31] !== 0) {
|
||||||
throw new Error('invalid bytes32 sdtring - no null terminator');
|
throw new Error('invalid bytes32 string - no null terminator');
|
||||||
}
|
}
|
||||||
// Find the null termination
|
// Find the null termination
|
||||||
var length = 31;
|
var length = 31;
|
||||||
|
Loading…
Reference in New Issue
Block a user