diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-27 00:54:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-27 00:54:56 +0800 |
commit | b897bdab79fe566ffc8c19c6ec9f1bb7260fa95e (patch) | |
tree | 65abedae4adfa1694db877a8e041e57c29a547f9 /src/ts/globals.d.ts | |
parent | f338c68f126cba0f1b49c2928f276158b64d8ee7 (diff) | |
parent | 5d4c2dcb2950747c7cb2d95df340c23c981d70d3 (diff) | |
download | dexon-sol-tools-b897bdab79fe566ffc8c19c6ec9f1bb7260fa95e.tar dexon-sol-tools-b897bdab79fe566ffc8c19c6ec9f1bb7260fa95e.tar.gz dexon-sol-tools-b897bdab79fe566ffc8c19c6ec9f1bb7260fa95e.tar.bz2 dexon-sol-tools-b897bdab79fe566ffc8c19c6ec9f1bb7260fa95e.tar.lz dexon-sol-tools-b897bdab79fe566ffc8c19c6ec9f1bb7260fa95e.tar.xz dexon-sol-tools-b897bdab79fe566ffc8c19c6ec9f1bb7260fa95e.tar.zst dexon-sol-tools-b897bdab79fe566ffc8c19c6ec9f1bb7260fa95e.zip |
Merge pull request #14 from 0xProject/implementFirstExchangeMethod
Implement first exchange method
Diffstat (limited to 'src/ts/globals.d.ts')
-rw-r--r-- | src/ts/globals.d.ts | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/ts/globals.d.ts b/src/ts/globals.d.ts index 99baf593f..dee957f2f 100644 --- a/src/ts/globals.d.ts +++ b/src/ts/globals.d.ts @@ -1,5 +1,8 @@ declare module 'chai-bignumber'; declare module 'bn.js'; +declare module 'request-promise-native'; +declare module 'web3-provider-engine'; +declare module 'web3-provider-engine/subproviders/rpc'; declare interface Schema { id: string; @@ -12,10 +15,18 @@ declare interface Schema { declare namespace Chai { interface Assertion { bignumber: Assertion; + eventually: Assertion; } } /* tslint:enable */ +declare module '*.json' { + const json: any; + /* tslint:disable */ + export default json; + /* tslint:enable */ +} + declare module 'ethereumjs-util' { const toBuffer: (dataHex: string) => Buffer; const hashPersonalMessage: (msg: Buffer) => Buffer; @@ -23,6 +34,28 @@ declare module 'ethereumjs-util' { const ecrecover: (msgHashBuff: Buffer, v: number, r: Buffer, s: Buffer) => string; const pubToAddress: (pubKey: string) => Buffer; const isValidAddress: (address: string) => boolean; + const bufferToInt: (buffer: Buffer) => number; +} + +// truffle-contract declarations +declare interface ContractInstance {} +declare interface ContractFactory { + setProvider: (providerObj: any) => void; + deployed: () => ContractInstance; + at: (address: string) => ContractInstance; +} +declare interface Artifact { + networks: {[networkId: number]: any}; +} +declare function contract(artifacts: Artifact): ContractFactory; +declare module 'truffle-contract' { + export = contract; +} + +// es6-promisify declarations +declare function promisify(original: any, settings?: any): ((...arg: any[]) => Promise<any>); +declare module 'es6-promisify' { + export = promisify; } declare module 'ethereumjs-abi' { |