Introduce ethereum-types package
This commit is contained in:
@@ -25,13 +25,12 @@
|
||||
},
|
||||
"homepage": "https://github.com/0xProject/0x-monorepo/packages/typescript-typings#readme",
|
||||
"dependencies": {
|
||||
"@0xproject/types": "^0.7.0",
|
||||
"ethereum-types": "^0.0.1",
|
||||
"bignumber.js": "~4.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@0xproject/monorepo-scripts": "^0.1.20",
|
||||
"copyfiles": "^1.2.0",
|
||||
"make-promises-safe": "^1.1.0",
|
||||
"shx": "^0.2.2"
|
||||
},
|
||||
"publishConfig": {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
declare module 'ethers' {
|
||||
import { TxData } from '@0xproject/types';
|
||||
import { TxData } from 'ethereum-types';
|
||||
|
||||
export interface TransactionDescription {
|
||||
name: string;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
declare module 'ganache-core' {
|
||||
import { Provider } from '@0xproject/types';
|
||||
import { Provider } from 'ethereum-types';
|
||||
export interface GanacheOpts {
|
||||
verbose?: boolean;
|
||||
logger?: {
|
||||
|
@@ -114,7 +114,7 @@ declare module 'solc' {
|
||||
message: string;
|
||||
formattedMessage?: string;
|
||||
}
|
||||
import { ContractAbi } from '@0xproject/types';
|
||||
import { ContractAbi } from 'ethereum-types';
|
||||
export interface StandardContractOutput {
|
||||
abi: ContractAbi;
|
||||
evm: {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
declare module 'truffle-hdwallet-provider' {
|
||||
import { JSONRPCRequestPayload, JSONRPCResponsePayload, Provider } from '@0xproject/types';
|
||||
import { JSONRPCRequestPayload, JSONRPCResponsePayload, Provider } from 'ethereum-types';
|
||||
class HDWalletProvider implements Provider {
|
||||
constructor(mnemonic: string, rpcUrl: string);
|
||||
public sendAsync(
|
||||
|
@@ -1,5 +1,5 @@
|
||||
declare module 'web3-provider-engine' {
|
||||
import { Provider, JSONRPCRequestPayload, JSONRPCResponsePayload } from '@0xproject/types';
|
||||
import { Provider, JSONRPCRequestPayload, JSONRPCResponsePayload } from 'ethereum-types';
|
||||
class Web3ProviderEngine implements Provider {
|
||||
public on(event: string, handler: () => void): void;
|
||||
public send(payload: JSONRPCRequestPayload): void;
|
||||
@@ -23,7 +23,7 @@ declare module 'web3-provider-engine/subproviders/subprovider' {
|
||||
export = Subprovider;
|
||||
}
|
||||
declare module 'web3-provider-engine/subproviders/rpc' {
|
||||
import { JSONRPCRequestPayload, JSONRPCResponsePayload } from '@0xproject/types';
|
||||
import { JSONRPCRequestPayload, JSONRPCResponsePayload } from 'ethereum-types';
|
||||
class RpcSubprovider {
|
||||
constructor(options: { rpcUrl: string });
|
||||
public handleRequest(
|
||||
@@ -41,7 +41,7 @@ declare module 'web3-provider-engine/util/rpc-cache-utils' {
|
||||
export = ProviderEngineRpcUtils;
|
||||
}
|
||||
declare module 'web3-provider-engine/subproviders/fixture' {
|
||||
import { JSONRPCRequestPayload, JSONRPCResponsePayload } from '@0xproject/types';
|
||||
import { JSONRPCRequestPayload, JSONRPCResponsePayload } from 'ethereum-types';
|
||||
class FixtureSubprovider {
|
||||
constructor(staticResponses: any);
|
||||
public handleRequest(
|
||||
|
@@ -16,7 +16,7 @@ declare module 'web3' {
|
||||
LogEntryEvent,
|
||||
JSONRPCRequestPayload,
|
||||
JSONRPCResponsePayload,
|
||||
} from '@0xproject/types';
|
||||
} from 'ethereum-types';
|
||||
|
||||
type MixedData = string | number | object | any[] | BigNumber.BigNumber;
|
||||
|
||||
|
Reference in New Issue
Block a user