aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-15 07:25:37 +0800
committerFabio Berger <me@fabioberger.com>2018-08-15 07:25:37 +0800
commit8bebffb14775234d5cc8dd730ba6d55ebfa941c7 (patch)
tree58820c6c02b45a1c0a7cf88f1d3d522d74a310de /packages
parent644fe1de8f8314e67b483eae847accc9b8c57528 (diff)
downloaddexon-0x-contracts-8bebffb14775234d5cc8dd730ba6d55ebfa941c7.tar.gz
dexon-0x-contracts-8bebffb14775234d5cc8dd730ba6d55ebfa941c7.tar.zst
dexon-0x-contracts-8bebffb14775234d5cc8dd730ba6d55ebfa941c7.zip
Flesh out 0x.js index.ts and added some exports to other index.ts in the process
Diffstat (limited to 'packages')
-rw-r--r--packages/0x.js/src/index.ts46
-rw-r--r--packages/contract-wrappers/src/index.ts1
-rw-r--r--packages/ethereum-types/src/index.ts8
-rw-r--r--packages/sol-compiler/src/index.ts2
4 files changed, 51 insertions, 6 deletions
diff --git a/packages/0x.js/src/index.ts b/packages/0x.js/src/index.ts
index bb93b86ea..a26d827d7 100644
--- a/packages/0x.js/src/index.ts
+++ b/packages/0x.js/src/index.ts
@@ -46,18 +46,24 @@ export {
ExchangeCancelEventArgs,
ExchangeEventArgs,
ExchangeEvents,
+ ContractEvents,
} from '@0xproject/contract-wrappers';
+export { ContractWrapper } from '@0xproject/contract-wrappers/lib/src/contract_wrappers/contract_wrapper';
+
+export { OrderWatcher, OnOrderStateChangeCallback, OrderWatcherConfig } from '@0xproject/order-watcher';
+
export {
Web3ProviderEngine,
RPCSubprovider,
Callback,
JSONRPCRequestPayloadWithMethod,
ErrorCallback,
- Subprovider,
} from '@0xproject/subproviders';
-export { OrderWatcher, OnOrderStateChangeCallback, OrderWatcherConfig } from '@0xproject/order-watcher';
+export { Web3Wrapper, NodeType } from '@0xproject/web3-wrapper';
+
+export { AbiDecoder } from '@0xproject/utils';
export { BigNumber } from '@0xproject/utils';
@@ -74,10 +80,22 @@ export {
Token,
ERC20AssetData,
ERC721AssetData,
+ SignatureType,
+ OrderRelevantState,
} from '@0xproject/types';
export {
+ ContractArtifact,
+ GeneratedCompilerOptions,
+ ContractNetworks,
+ ContractVersionData,
+ ContractNetworkData,
+ Source,
+} from '@0xproject/sol-compiler';
+
+export {
BlockParamLiteral,
+ ContractAbi,
FilterObject,
BlockParam,
LogWithDecodedArgs,
@@ -95,4 +113,28 @@ export {
LogEntryEvent,
DecodedLogEntry,
DecodedLogEntryEvent,
+ RawLog,
+ AbiDefinition,
+ TxData,
+ CallData,
+ BlockWithoutTransactionData,
+ BlockWithTransactionData,
+ Transaction,
+ TraceParams,
+ TransactionTrace,
+ AbstractBlock,
+ CallTxDataBase,
+ StructLog,
+ TxDataPayable,
+ FunctionAbi,
+ EventAbi,
+ EventParameter,
+ OpCode,
+ MethodAbi,
+ ConstructorAbi,
+ FallbackAbi,
+ DataItem,
+ ConstructorStateMutability,
+ StateMutability,
+ AbiType,
} from 'ethereum-types';
diff --git a/packages/contract-wrappers/src/index.ts b/packages/contract-wrappers/src/index.ts
index 41d60f05a..647636cb0 100644
--- a/packages/contract-wrappers/src/index.ts
+++ b/packages/contract-wrappers/src/index.ts
@@ -25,6 +25,7 @@ export {
OnOrderStateChangeCallback,
OrderStatus,
OrderInfo,
+ ContractEvents,
} from './types';
export {
diff --git a/packages/ethereum-types/src/index.ts b/packages/ethereum-types/src/index.ts
index f4d445e3b..b2af028fb 100644
--- a/packages/ethereum-types/src/index.ts
+++ b/packages/ethereum-types/src/index.ts
@@ -20,7 +20,7 @@ export type ConstructorStateMutability = 'nonpayable' | 'payable';
export type StateMutability = 'pure' | 'view' | ConstructorStateMutability;
export interface MethodAbi {
- type: AbiType.Function;
+ type: 'function';
name: string;
inputs: DataItem[];
outputs: DataItem[];
@@ -30,14 +30,14 @@ export interface MethodAbi {
}
export interface ConstructorAbi {
- type: AbiType.Constructor;
+ type: 'constructor';
inputs: DataItem[];
payable: boolean;
stateMutability: ConstructorStateMutability;
}
export interface FallbackAbi {
- type: AbiType.Fallback;
+ type: 'fallback';
payable: boolean;
}
@@ -46,7 +46,7 @@ export interface EventParameter extends DataItem {
}
export interface EventAbi {
- type: AbiType.Event;
+ type: 'event';
name: string;
inputs: EventParameter[];
anonymous: boolean;
diff --git a/packages/sol-compiler/src/index.ts b/packages/sol-compiler/src/index.ts
index 89d529887..fe72a37d6 100644
--- a/packages/sol-compiler/src/index.ts
+++ b/packages/sol-compiler/src/index.ts
@@ -6,4 +6,6 @@ export {
ContractNetworks,
GeneratedCompilerOptions,
ContractNetworkData,
+ ContractVersionData,
+ Source,
} from './utils/types';