ethers.js/utils/address.d.ts
2020-01-03 19:01:29 -05:00

16 lines
543 B
TypeScript

import { BigNumber } from './bignumber';
import { Arrayish } from './bytes';
export declare function getAddress(address: string): string;
export declare function getIcapAddress(address: string): string;
export declare function getContractAddress(transaction: {
from: string;
nonce: Arrayish | BigNumber | number;
}): string;
export declare type Create2Options = {
from: string;
salt: Arrayish;
initCode?: Arrayish;
initCodeHash?: Arrayish;
};
export declare function getCreate2Address(options: Create2Options): string;