import * as chai from 'chai' ; import chaiAsPromised from 'chai-as-promised' ; import chaiString from 'chai-string' ; import * as ethers from 'ethers' ; import BN = require ( 'bn.js' ) ; export * from './contract' ; export * from './helpers' ; const BigNumber = ethers . BigNumber ; export { BigNumber } ; export const { assert , expect } = chai . use ( chaiString ) . use ( chaiAsPromised ) . use ( require ( 'chai-bignumber' ) ( BigNumber ) ) . use ( require ( 'bn-chai' ) ( BN ) ) ; export function b ( raw ) { return ethers . BigNumber . from ( raw ) ; }