import { EncoderOverrides, ContractFunctionObj, ContractTxFunctionObj, BaseContract } from '@0x/base-contract'; import { BlockRange, ContractAbi, ContractArtifact, DecodedLogArgs, LogWithDecodedArgs, TxData, SupportedProvider } from 'ethereum-types'; import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/types'; import { Web3Wrapper } from '@0x/web3-wrapper'; export declare type MixinAssetProxyDispatcherEventArgs = MixinAssetProxyDispatcherAssetProxyRegisteredEventArgs | MixinAssetProxyDispatcherOwnershipTransferredEventArgs; export declare enum MixinAssetProxyDispatcherEvents { AssetProxyRegistered = "AssetProxyRegistered", OwnershipTransferred = "OwnershipTransferred" } export interface MixinAssetProxyDispatcherAssetProxyRegisteredEventArgs extends DecodedLogArgs { id: string; assetProxy: string; } export interface MixinAssetProxyDispatcherOwnershipTransferredEventArgs extends DecodedLogArgs { previousOwner: string; newOwner: string; } export declare class MixinAssetProxyDispatcherContract extends BaseContract { /** * @ignore */ static deployedBytecode: string | undefined; static contractName: string; private readonly _methodABIIndex; private readonly _subscriptionManager; static deployFrom0xArtifactAsync(artifact: ContractArtifact | SimpleContractArtifact, supportedProvider: SupportedProvider, txDefaults: Partial, logDecodeDependencies: { [contractName: string]: (ContractArtifact | SimpleContractArtifact); }): Promise; static deployWithLibrariesFrom0xArtifactAsync(artifact: ContractArtifact, libraryArtifacts: { [libraryName: string]: ContractArtifact; }, supportedProvider: SupportedProvider, txDefaults: Partial, logDecodeDependencies: { [contractName: string]: (ContractArtifact | SimpleContractArtifact); }): Promise; static deployAsync(bytecode: string, abi: ContractAbi, supportedProvider: SupportedProvider, txDefaults: Partial, logDecodeDependencies: { [contractName: string]: ContractAbi; }): Promise; /** * @returns The contract ABI */ static ABI(): ContractAbi; protected static _deployLibrariesAsync(artifact: ContractArtifact, libraryArtifacts: { [libraryName: string]: ContractArtifact; }, web3Wrapper: Web3Wrapper, txDefaults: Partial, libraryAddresses?: { [libraryName: string]: string; }): Promise<{ [libraryName: string]: string; }>; getFunctionSignature(methodName: string): string; getABIDecodedTransactionData(methodName: string, callData: string): T; getABIDecodedReturnData(methodName: string, callData: string): T; getSelector(methodName: string): string; assetProxies(index_0: string): ContractFunctionObj; /** * Gets an asset proxy. * @param assetProxyId Id of the asset proxy. * @returns The asset proxy registered to assetProxyId. Returns 0x0 if no proxy is registered. */ getAssetProxy(assetProxyId: string): ContractFunctionObj; owner(): ContractFunctionObj; /** * Registers an asset proxy to its asset proxy id. * Once an asset proxy is registered, it cannot be unregistered. * @param assetProxy Address of new asset proxy to register. */ registerAssetProxy(assetProxy: string): ContractTxFunctionObj; transferOwnership(newOwner: string): ContractTxFunctionObj; /** * Subscribe to an event type emitted by the MixinAssetProxyDispatcher contract. * @param eventName The MixinAssetProxyDispatcher contract event you would like to subscribe to. * @param indexFilterValues An object where the keys are indexed args returned by the event and * the value is the value you are interested in. E.g `{maker: aUserAddressHex}` * @param callback Callback that gets called when a log is added/removed * @param isVerbose Enable verbose subscription warnings (e.g recoverable network issues encountered) * @return Subscription token used later to unsubscribe */ subscribe(eventName: MixinAssetProxyDispatcherEvents, indexFilterValues: IndexedFilterValues, callback: EventCallback, isVerbose?: boolean, blockPollingIntervalMs?: number): string; /** * Cancel a subscription * @param subscriptionToken Subscription token returned by `subscribe()` */ unsubscribe(subscriptionToken: string): void; /** * Cancels all existing subscriptions */ unsubscribeAll(): void; /** * Gets historical logs without creating a subscription * @param eventName The MixinAssetProxyDispatcher contract event you would like to subscribe to. * @param blockRange Block range to get logs from. * @param indexFilterValues An object where the keys are indexed args returned by the event and * the value is the value you are interested in. E.g `{_from: aUserAddressHex}` * @return Array of logs that match the parameters */ getLogsAsync(eventName: MixinAssetProxyDispatcherEvents, blockRange: BlockRange, indexFilterValues: IndexedFilterValues): Promise>>; constructor(address: string, supportedProvider: SupportedProvider, txDefaults?: Partial, logDecodeDependencies?: { [contractName: string]: ContractAbi; }, deployedBytecode?: string | undefined, encoderOverrides?: Partial); } //# sourceMappingURL=mixin_asset_proxy_dispatcher.d.ts.map