Deployer
Deployer is used for deploying new KyberNetwork reserve contracts. It deployed all requires smart contracts for running a reserve:
- reserve
- conversionRates
- sanityRates (optional)
Constructor Summary
| Public Constructor | ||
| public |
constructor(web3: object) Create a deployer instance with given account parameter. |
|
Member Summary
| Public Members | ||
| public |
web3: * |
|
Method Summary
| Public Methods | ||
| public |
async deploy(adminAddress: object, network: string, sanityRates: boolean, gasPrice: number): Addresses Deploy new reserve and pricing contracts. |
|
| public |
async deploySanityRates(adminAddress: *, gasPrice: *): * |
|
Public Constructors
Public Members
public web3: * source
Public Methods
public async deploy(adminAddress: object, network: string, sanityRates: boolean, gasPrice: number): Addresses source
Deploy new reserve and pricing contracts.
Params:
| Name | Type | Attribute | Description |
| adminAddress | object | Web3 account to create the smart contracts. This account is also set to be admin of the contracts |
|
| network | string |
|
Address of KyberNetwork smart contract. |
| sanityRates | boolean |
|
If true, sanityRates contract will be deployed. |
| gasPrice | number | (optional) - the gasPrice desired for the tx |
public async deploySanityRates(adminAddress: *, gasPrice: *): * source
Params:
| Name | Type | Attribute | Description |
| adminAddress | * | ||
| gasPrice | * |
Return:
| * |
