aboutsummaryrefslogtreecommitdiffstats
path: root/packages/typescript-typings
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-10 06:57:12 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-10 06:57:12 +0800
commit938a99f435ca01853ecb31f9267e2ba4b501d206 (patch)
tree6b1aea79d1130206f6f69b68e0747c87616f2fb6 /packages/typescript-typings
parentb2c666bb1f2830211db208ba8398f2de799c8ee6 (diff)
parentf97ec000e109341f7b200d0ff9ff324bf3f97d3e (diff)
downloaddexon-0x-contracts-938a99f435ca01853ecb31f9267e2ba4b501d206.tar
dexon-0x-contracts-938a99f435ca01853ecb31f9267e2ba4b501d206.tar.gz
dexon-0x-contracts-938a99f435ca01853ecb31f9267e2ba4b501d206.tar.bz2
dexon-0x-contracts-938a99f435ca01853ecb31f9267e2ba4b501d206.tar.lz
dexon-0x-contracts-938a99f435ca01853ecb31f9267e2ba4b501d206.tar.xz
dexon-0x-contracts-938a99f435ca01853ecb31f9267e2ba4b501d206.tar.zst
dexon-0x-contracts-938a99f435ca01853ecb31f9267e2ba4b501d206.zip
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/sra/add-sra-package
Diffstat (limited to 'packages/typescript-typings')
-rw-r--r--packages/typescript-typings/types/ethers/index.d.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/typescript-typings/types/ethers/index.d.ts b/packages/typescript-typings/types/ethers/index.d.ts
index f869196e0..875563ba2 100644
--- a/packages/typescript-typings/types/ethers/index.d.ts
+++ b/packages/typescript-typings/types/ethers/index.d.ts
@@ -34,4 +34,22 @@ declare module 'ethers' {
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;
+ }
}