BaseContract
Direct Subclass:
BaseContract contains common methods for all contracts of a KyberNetwork reserve.
Constructor Summary
Public Constructor | ||
public |
constructor(web3: object, address: string) Create new BaseContract instance. |
Method Summary
Public Methods | ||
public |
async addAlerter(adminAddress: object, address: string, gasPrice: number): * Add new address to alerters list. |
|
public |
async addOperator(adminAddress: object, address: string, gasPrice: number): * Add given address from operators list. |
|
public |
Return the current admin address of contract. |
|
public |
async claimAdmin(newAccount: object, gasPrice: number): * Claim admin privilege. |
|
public |
getAlerters(): array Return alerter addresses of contract. |
|
public |
getOperators(): array Return operator addresses of contract. |
|
public |
Return the pending admin address of contract. |
|
public |
async removeAlerter(adminAddress: object, address: string, gasPrice: number): * Remove address from alerters list. |
|
public |
async removeOperator(adminAddress: object, address: string, gasPrice: number): * Remove given address from operators list. |
|
public |
async transferAdmin(adminAddress: object, address: string, gasPrice: number): * transfer admin privilege to given address. |
Public Constructors
Public Methods
public async addAlerter(adminAddress: object, address: string, gasPrice: number): * source
Add new address to alerters list.
Return:
* |
public async addOperator(adminAddress: object, address: string, gasPrice: number): * source
Add given address from operators list.
Return:
* |
public async claimAdmin(newAccount: object, gasPrice: number): * source
Claim admin privilege. The account address should be in already placed in pendingAdmin for this to works.
Return:
* |
public getAlerters(): array source
Return alerter addresses of contract.
Return:
array | list of alerter addresses |
public getOperators(): array source
Return operator addresses of contract.
Return:
array | list of operator addresses |
public pendingAdmin(): string source
Return the pending admin address of contract. An admin address is placed in pending if it is transfered but hasn't been claimed yet.
public async removeAlerter(adminAddress: object, address: string, gasPrice: number): * source
Remove address from alerters list.
Return:
* |
public async removeOperator(adminAddress: object, address: string, gasPrice: number): * source
Remove given address from operators list.
Return:
* |