Class: OwnedContract

lib/contract_interact/owned_contract~ OwnedContract


new OwnedContract(contractAddress, web3Provider, currContract, defaultGasPrice)

Owned contract interact constructor
Parameters:
Name Type Description
contractAddress String address where Contract has been deployed
web3Provider String web3 provider of network where currContract has been deployed
currContract String Contract Instance
defaultGasPrice String default Gas Price

Methods


getOwner()

Get address of Owner of currContract
Returns:
Type
promise.<string>

initiateOwnerShipTransfer(senderName, proposedOwner, customOptions)

Initiate Ownership of currContract
Parameters:
Name Type Description
senderName string Sender of this Transaction
proposedOwner string address to which ownership needs to be transferred
customOptions object custom params of this transaction
Returns:
Type
promise.<result>