54 lines
1.9 KiB
TypeScript
54 lines
1.9 KiB
TypeScript
import { PromiseWithTransactionHash } from '@0x/base-contract';
|
|
import { AwaitTransactionSuccessOpts } from '@0x/types';
|
|
import { BlockParam, CallData, TransactionReceiptWithDecodedLogs, TxData } from 'ethereum-types';
|
|
|
|
// Generated Wrapper Interfaces
|
|
export interface AssetProxyDispatcher {
|
|
registerAssetProxy: {
|
|
awaitTransactionSuccessAsync: (
|
|
assetProxy: string,
|
|
txData?: Partial<TxData>,
|
|
txOpts?: AwaitTransactionSuccessOpts,
|
|
) => PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
|
|
};
|
|
getAssetProxy: {
|
|
callAsync(assetProxyId: string, callData?: Partial<CallData>, defaultBlock?: BlockParam): Promise<string>;
|
|
};
|
|
}
|
|
|
|
export interface Authorizable extends Ownable {
|
|
addAuthorizedAddress: {
|
|
awaitTransactionSuccessAsync: (
|
|
target: string,
|
|
txData?: Partial<TxData>,
|
|
txOpts?: AwaitTransactionSuccessOpts,
|
|
) => PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
|
|
};
|
|
removeAuthorizedAddress: {
|
|
awaitTransactionSuccessAsync: (
|
|
target: string,
|
|
txData?: Partial<TxData>,
|
|
txOpts?: AwaitTransactionSuccessOpts,
|
|
) => PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
|
|
};
|
|
authorized: {
|
|
callAsync(authority: string, callData?: Partial<CallData>, defaultBlock?: BlockParam): Promise<boolean>;
|
|
};
|
|
getAuthorizedAddresses: {
|
|
callAsync(callData?: Partial<CallData>, defaultBlock?: BlockParam): Promise<string[]>;
|
|
};
|
|
}
|
|
|
|
export interface Ownable {
|
|
transferOwnership: {
|
|
awaitTransactionSuccessAsync: (
|
|
newOwner: string,
|
|
txData?: Partial<TxData>,
|
|
txOpts?: AwaitTransactionSuccessOpts,
|
|
) => PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
|
|
};
|
|
owner: {
|
|
callAsync(callData?: Partial<CallData>, defaultBlock?: BlockParam): Promise<string>;
|
|
};
|
|
}
|