Skip to content

Commit

Permalink
Merge pull request #716 from AugurProject/tinybike/contract-interface…
Browse files Browse the repository at this point in the history
…s-update

Updated ContractInterfaces
  • Loading branch information
nuevoalex authored Jul 23, 2018
2 parents 15ec761 + ee4faee commit 82dbdf6
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions source/libraries/ContractInterfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1610,6 +1610,69 @@
}


export class EscapeHatchController extends Contract {
public constructor(connector: Connector, accountManager: AccountManager, address: string, defaultGasPrice: BN) {
super(connector, accountManager, address, defaultGasPrice);
}

public emergencyStop = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
options = options || {};
const abi: AbiFunction = {"constant":false,"inputs":[],"name":"emergencyStop","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
await this.remoteCall(abi, [], "emergencyStop", options.sender, options.gasPrice);
return;
}

public emergencyStop_ = async( options?: { sender?: string }): Promise<boolean> => {
options = options || {};
const abi: AbiFunction = {"constant":false,"inputs":[],"name":"emergencyStop","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
const result = await this.localCall(abi, [], options.sender);
return <boolean>result[0];
}

public getOwner_ = async( options?: { sender?: string }): Promise<string> => {
options = options || {};
const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"};
const result = await this.localCall(abi, [], options.sender);
return <string>result[0];
}

public setController = async(controller: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
options = options || {};
const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
await this.remoteCall(abi, [controller], "setController", options.sender, options.gasPrice);
return;
}

public setController_ = async(controller: string, options?: { sender?: string }): Promise<boolean> => {
options = options || {};
const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
const result = await this.localCall(abi, [controller], options.sender);
return <boolean>result[0];
}

public transferOwnership = async(newOwner: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
options = options || {};
const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
await this.remoteCall(abi, [newOwner], "transferOwnership", options.sender, options.gasPrice);
return;
}

public transferOwnership_ = async(newOwner: string, options?: { sender?: string }): Promise<boolean> => {
options = options || {};
const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
const result = await this.localCall(abi, [newOwner], options.sender);
return <boolean>result[0];
}

public controller_ = async( options?: { sender?: string }): Promise<string> => {
options = options || {};
const abi: AbiFunction = {"constant":true,"inputs":[],"name":"controller","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"};
const result = await this.localCall(abi, [], options.sender);
return <string>result[0];
}
}


export class OrdersFinder extends Contract {
public constructor(connector: Connector, accountManager: AccountManager, address: string, defaultGasPrice: BN) {
super(connector, accountManager, address, defaultGasPrice);
Expand Down

0 comments on commit 82dbdf6

Please sign in to comment.