aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-09-13 19:40:37 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-09-19 23:56:23 +0800
commit7b259c3f4c09ea2d8bfe688238f046fa8c62ec03 (patch)
tree8aba563cb2fd5cf7348b5c28f8464020d7a6a4a6 /packages
parentecbdf5f12bc9a1e654241f2051f152a1d5fea5bc (diff)
downloaddexon-sol-tools-7b259c3f4c09ea2d8bfe688238f046fa8c62ec03.tar
dexon-sol-tools-7b259c3f4c09ea2d8bfe688238f046fa8c62ec03.tar.gz
dexon-sol-tools-7b259c3f4c09ea2d8bfe688238f046fa8c62ec03.tar.bz2
dexon-sol-tools-7b259c3f4c09ea2d8bfe688238f046fa8c62ec03.tar.lz
dexon-sol-tools-7b259c3f4c09ea2d8bfe688238f046fa8c62ec03.tar.xz
dexon-sol-tools-7b259c3f4c09ea2d8bfe688238f046fa8c62ec03.tar.zst
dexon-sol-tools-7b259c3f4c09ea2d8bfe688238f046fa8c62ec03.zip
Remove types for ethers.js
Diffstat (limited to 'packages')
-rw-r--r--packages/typescript-typings/CHANGELOG.json9
-rw-r--r--packages/typescript-typings/types/ethers/index.d.ts55
2 files changed, 9 insertions, 55 deletions
diff --git a/packages/typescript-typings/CHANGELOG.json b/packages/typescript-typings/CHANGELOG.json
index cef518859..c5aa11d77 100644
--- a/packages/typescript-typings/CHANGELOG.json
+++ b/packages/typescript-typings/CHANGELOG.json
@@ -1,5 +1,14 @@
[
{
+ "version": "3.0.0",
+ "changes": [
+ {
+ "note": "Remove types for ethers.js",
+ "pr": "1069"
+ }
+ ]
+ },
+ {
"version": "2.0.0",
"changes": [
{
diff --git a/packages/typescript-typings/types/ethers/index.d.ts b/packages/typescript-typings/types/ethers/index.d.ts
deleted file mode 100644
index 875563ba2..000000000
--- a/packages/typescript-typings/types/ethers/index.d.ts
+++ /dev/null
@@ -1,55 +0,0 @@
-declare module 'ethers' {
- import { TxData } from 'ethereum-types';
-
- export interface TransactionDescription {
- name: string;
- signature: string;
- sighash: string;
- data: string;
- }
- export interface CallDescription extends TransactionDescription {
- parse: (...args: any[]) => any;
- }
- export interface FunctionDescription {
- (...params: any[]): TransactionDescription | CallDescription;
- inputs: { names: string[]; types: string[] };
- outputs: { names: string[]; types: string[] };
- type: string;
- }
- export interface EventDescription {
- parse: (...args: any[]) => any;
- inputs: { names: string[]; types: string[] };
- signature: string;
- topics: string[];
- }
- export class Interface {
- public functions: { [functionName: string]: FunctionDescription };
- public events: { [eventName: string]: EventDescription };
- constructor(abi: any);
- }
- export class Contract {
- public static getDeployTransaction(bytecode: string, abi: any, ...args: any[]): Partial<TxData>;
- constructor(address: string, abi: any, provider: any);
- }
- const enum errors {
- INVALID_ARGUMENT = 'INVALID_ARGUMENT',
- }
-
- export type ParamName = null | string | NestedParamName;
-
- export interface NestedParamName {
- name: string | null;
- names: ParamName[];
- }
-
- export const utils: {
- AbiCoder: {
- defaultCoder: AbiCoder;
- };
- };
-
- export interface AbiCoder {
- encode: (names: ParamName[] | string[], types: string[] | any[], args: any[] | undefined) => string;
- decode: (names: ParamName[] | string[], types: string[] | string, data: string | undefined) => any;
- }
-}