Updated dist files.
This commit is contained in:
parent
6da5c53120
commit
b288ad9ba7
6
contract.d.ts
vendored
6
contract.d.ts
vendored
@ -4,7 +4,7 @@ import { UnsignedTransaction } from './utils/transaction';
|
|||||||
import { BlockTag, Provider } from './providers/abstract-provider';
|
import { BlockTag, Provider } from './providers/abstract-provider';
|
||||||
import { Signer } from './abstract-signer';
|
import { Signer } from './abstract-signer';
|
||||||
import { Arrayish } from './utils/bytes';
|
import { Arrayish } from './utils/bytes';
|
||||||
import { ParamType } from './utils/abi-coder';
|
import { EventFragment, FunctionFragment } from './utils/abi-coder';
|
||||||
import { Block, Listener, Log, TransactionReceipt, TransactionRequest, TransactionResponse } from './providers/abstract-provider';
|
import { Block, Listener, Log, TransactionReceipt, TransactionRequest, TransactionResponse } from './providers/abstract-provider';
|
||||||
export declare type ContractFunction = (...params: Array<any>) => Promise<any>;
|
export declare type ContractFunction = (...params: Array<any>) => Promise<any>;
|
||||||
export declare type EventFilter = {
|
export declare type EventFilter = {
|
||||||
@ -51,7 +51,7 @@ export declare class Contract {
|
|||||||
readonly addressPromise: Promise<string>;
|
readonly addressPromise: Promise<string>;
|
||||||
readonly deployTransaction: TransactionResponse;
|
readonly deployTransaction: TransactionResponse;
|
||||||
private _deployedPromise;
|
private _deployedPromise;
|
||||||
constructor(addressOrName: string, contractInterface: Array<string | ParamType> | string | Interface, signerOrProvider: Signer | Provider);
|
constructor(addressOrName: string, contractInterface: Array<string | FunctionFragment | EventFragment> | string | Interface, signerOrProvider: Signer | Provider);
|
||||||
deployed(): Promise<Contract>;
|
deployed(): Promise<Contract>;
|
||||||
_deployed(blockTag?: BlockTag): Promise<Contract>;
|
_deployed(blockTag?: BlockTag): Promise<Contract>;
|
||||||
fallback(overrides?: TransactionRequest): Promise<TransactionResponse>;
|
fallback(overrides?: TransactionRequest): Promise<TransactionResponse>;
|
||||||
@ -74,7 +74,7 @@ export declare class ContractFactory {
|
|||||||
readonly interface: Interface;
|
readonly interface: Interface;
|
||||||
readonly bytecode: string;
|
readonly bytecode: string;
|
||||||
readonly signer: Signer;
|
readonly signer: Signer;
|
||||||
constructor(contractInterface: Array<string | ParamType> | string | Interface, bytecode: Arrayish | string | {
|
constructor(contractInterface: Array<string | FunctionFragment | EventFragment> | string | Interface, bytecode: Arrayish | string | {
|
||||||
object: string;
|
object: string;
|
||||||
}, signer?: Signer);
|
}, signer?: Signer);
|
||||||
getDeployTransaction(...args: Array<any>): UnsignedTransaction;
|
getDeployTransaction(...args: Array<any>): UnsignedTransaction;
|
||||||
|
3
dist/ethers.js
vendored
3
dist/ethers.js
vendored
@ -10295,6 +10295,9 @@ function checkTransactionResponse(transaction) {
|
|||||||
networkId = 0;
|
networkId = 0;
|
||||||
}
|
}
|
||||||
result.networkId = networkId;
|
result.networkId = networkId;
|
||||||
|
if (result.chainId == null && networkId != null) {
|
||||||
|
result.chainId = networkId;
|
||||||
|
}
|
||||||
// 0x0000... should actually be null
|
// 0x0000... should actually be null
|
||||||
if (result.blockHash && result.blockHash.replace(/0/g, '') === 'x') {
|
if (result.blockHash && result.blockHash.replace(/0/g, '') === 'x') {
|
||||||
result.blockHash = null;
|
result.blockHash = null;
|
||||||
|
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
10
dist/ethers.types.txt
vendored
10
dist/ethers.types.txt
vendored
@ -29,7 +29,7 @@ declare module 'ethers/contract' {
|
|||||||
import { BlockTag, Provider } from 'ethers/providers/abstract-provider';
|
import { BlockTag, Provider } from 'ethers/providers/abstract-provider';
|
||||||
import { Signer } from 'ethers/abstract-signer';
|
import { Signer } from 'ethers/abstract-signer';
|
||||||
import { Arrayish } from 'ethers/utils/bytes';
|
import { Arrayish } from 'ethers/utils/bytes';
|
||||||
import { ParamType } from 'ethers/utils/abi-coder';
|
import { EventFragment, FunctionFragment } from 'ethers/utils/abi-coder';
|
||||||
import { Block, Listener, Log, TransactionReceipt, TransactionRequest, TransactionResponse } from 'ethers/providers/abstract-provider';
|
import { Block, Listener, Log, TransactionReceipt, TransactionRequest, TransactionResponse } from 'ethers/providers/abstract-provider';
|
||||||
export type ContractFunction = (...params: Array<any>) => Promise<any>;
|
export type ContractFunction = (...params: Array<any>) => Promise<any>;
|
||||||
export type EventFilter = {
|
export type EventFilter = {
|
||||||
@ -75,7 +75,7 @@ declare module 'ethers/contract' {
|
|||||||
readonly [name: string]: ContractFunction | any;
|
readonly [name: string]: ContractFunction | any;
|
||||||
readonly addressPromise: Promise<string>;
|
readonly addressPromise: Promise<string>;
|
||||||
readonly deployTransaction: TransactionResponse;
|
readonly deployTransaction: TransactionResponse;
|
||||||
constructor(addressOrName: string, contractInterface: Array<string | ParamType> | string | Interface, signerOrProvider: Signer | Provider);
|
constructor(addressOrName: string, contractInterface: Array<string | FunctionFragment | EventFragment> | string | Interface, signerOrProvider: Signer | Provider);
|
||||||
deployed(): Promise<Contract>;
|
deployed(): Promise<Contract>;
|
||||||
_deployed(blockTag?: BlockTag): Promise<Contract>;
|
_deployed(blockTag?: BlockTag): Promise<Contract>;
|
||||||
fallback(overrides?: TransactionRequest): Promise<TransactionResponse>;
|
fallback(overrides?: TransactionRequest): Promise<TransactionResponse>;
|
||||||
@ -95,7 +95,7 @@ declare module 'ethers/contract' {
|
|||||||
readonly interface: Interface;
|
readonly interface: Interface;
|
||||||
readonly bytecode: string;
|
readonly bytecode: string;
|
||||||
readonly signer: Signer;
|
readonly signer: Signer;
|
||||||
constructor(contractInterface: Array<string | ParamType> | string | Interface, bytecode: Arrayish | string | {
|
constructor(contractInterface: Array<string | FunctionFragment | EventFragment> | string | Interface, bytecode: Arrayish | string | {
|
||||||
object: string;
|
object: string;
|
||||||
}, signer?: Signer);
|
}, signer?: Signer);
|
||||||
getDeployTransaction(...args: Array<any>): UnsignedTransaction;
|
getDeployTransaction(...args: Array<any>): UnsignedTransaction;
|
||||||
@ -400,7 +400,7 @@ declare module 'ethers/utils/interface' {
|
|||||||
[name: string]: _EventDescription;
|
[name: string]: _EventDescription;
|
||||||
};
|
};
|
||||||
readonly deployFunction: _DeployDescription;
|
readonly deployFunction: _DeployDescription;
|
||||||
constructor(abi: Array<string | ParamType> | string);
|
constructor(abi: Array<string | FunctionFragment | EventFragment> | string);
|
||||||
parseTransaction(tx: {
|
parseTransaction(tx: {
|
||||||
data: string;
|
data: string;
|
||||||
value?: BigNumberish;
|
value?: BigNumberish;
|
||||||
@ -614,7 +614,7 @@ declare module 'ethers/utils/abi-coder' {
|
|||||||
outputs: Array<ParamType>;
|
outputs: Array<ParamType>;
|
||||||
payable: boolean;
|
payable: boolean;
|
||||||
stateMutability: string;
|
stateMutability: string;
|
||||||
gas: BigNumber;
|
gas?: BigNumber;
|
||||||
};
|
};
|
||||||
export const defaultCoerceFunc: CoerceFunc;
|
export const defaultCoerceFunc: CoerceFunc;
|
||||||
export function parseParamType(type: string): ParamType;
|
export function parseParamType(type: string): ParamType;
|
||||||
|
@ -227,6 +227,9 @@ function checkTransactionResponse(transaction) {
|
|||||||
networkId = 0;
|
networkId = 0;
|
||||||
}
|
}
|
||||||
result.networkId = networkId;
|
result.networkId = networkId;
|
||||||
|
if (result.chainId == null && networkId != null) {
|
||||||
|
result.chainId = networkId;
|
||||||
|
}
|
||||||
// 0x0000... should actually be null
|
// 0x0000... should actually be null
|
||||||
if (result.blockHash && result.blockHash.replace(/0/g, '') === 'x') {
|
if (result.blockHash && result.blockHash.replace(/0/g, '') === 'x') {
|
||||||
result.blockHash = null;
|
result.blockHash = null;
|
||||||
|
@ -46,7 +46,8 @@ var blockchainData = {
|
|||||||
v: 38,
|
v: 38,
|
||||||
creates: null,
|
creates: null,
|
||||||
raw: '0xf8d2808504a817c8008303d090946fc21092da55b392b045ed78f4732bff3c580e2c880186cc6acd4b0000b864f2c298be000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000067269636d6f6f000000000000000000000000000000000000000000000000000026a01e5605197a03e3f0a168f14749168dfeefc44c9228312dacbffdcbbb13263265a0269c3e5b3558267ad91b0a887d51f9f10098771c67b82ea6cb74f29638754f54',
|
raw: '0xf8d2808504a817c8008303d090946fc21092da55b392b045ed78f4732bff3c580e2c880186cc6acd4b0000b864f2c298be000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000067269636d6f6f000000000000000000000000000000000000000000000000000026a01e5605197a03e3f0a168f14749168dfeefc44c9228312dacbffdcbbb13263265a0269c3e5b3558267ad91b0a887d51f9f10098771c67b82ea6cb74f29638754f54',
|
||||||
networkId: 1
|
networkId: 1,
|
||||||
|
chainId: 1
|
||||||
},
|
},
|
||||||
transactionReceipt: {
|
transactionReceipt: {
|
||||||
blockHash: "0x36b4af7f0538559e581c8588f16477df0f676439ea67fe8d7a2ae4abb20e2566",
|
blockHash: "0x36b4af7f0538559e581c8588f16477df0f676439ea67fe8d7a2ae4abb20e2566",
|
||||||
|
2
utils/abi-coder.d.ts
vendored
2
utils/abi-coder.d.ts
vendored
@ -21,7 +21,7 @@ export declare type FunctionFragment = {
|
|||||||
outputs: Array<ParamType>;
|
outputs: Array<ParamType>;
|
||||||
payable: boolean;
|
payable: boolean;
|
||||||
stateMutability: string;
|
stateMutability: string;
|
||||||
gas: BigNumber;
|
gas?: BigNumber;
|
||||||
};
|
};
|
||||||
export declare const defaultCoerceFunc: CoerceFunc;
|
export declare const defaultCoerceFunc: CoerceFunc;
|
||||||
export declare function parseParamType(type: string): ParamType;
|
export declare function parseParamType(type: string): ParamType;
|
||||||
|
2
utils/interface.d.ts
vendored
2
utils/interface.d.ts
vendored
@ -98,7 +98,7 @@ export declare class Interface {
|
|||||||
[name: string]: _EventDescription;
|
[name: string]: _EventDescription;
|
||||||
};
|
};
|
||||||
readonly deployFunction: _DeployDescription;
|
readonly deployFunction: _DeployDescription;
|
||||||
constructor(abi: Array<string | ParamType> | string);
|
constructor(abi: Array<string | FunctionFragment | EventFragment> | string);
|
||||||
parseTransaction(tx: {
|
parseTransaction(tx: {
|
||||||
data: string;
|
data: string;
|
||||||
value?: BigNumberish;
|
value?: BigNumberish;
|
||||||
|
Loading…
Reference in New Issue
Block a user