ExchangeRates

ExchangeRates

new ExchangeRates(contractSettings)

Source:
Parameters:
Name Type Description
contractSettings ContractSettings

Methods

acceptOwnership(txParams)

Source:
Transaction (consumes gas, requires signer)
Parameters:
Name Type Description
txParams TxParams

anyRateIsStale(currencyKeys)

Source:
Call (no gas consumed, doesn't require signer)
Parameters:
Name Type Description
currencyKeys Array.<bytes4>
Returns:
boolean

deleteRate(currencyKey, txParams)

Source:
Transaction (consumes gas, requires signer)
Parameters:
Name Type Description
currencyKey bytes4
txParams TxParams

initiateSelfDestruct(txParams)

Source:
Transaction (consumes gas, requires signer)
Parameters:
Name Type Description
txParams TxParams

initiationTime()

Source:
Call (no gas consumed, doesn't require signer)
Returns:
BigNumber

lastRateUpdateTimeForCurrency(currencyKey)

Source:
Call (no gas consumed, doesn't require signer)
Parameters:
Name Type Description
currencyKey bytes4
Returns:
BigNumber

lastRateUpdateTimes(bytes4)

Source:
Call (no gas consumed, doesn't require signer)
Parameters:
Name Type Description
bytes4 bytes4
Returns:
BigNumber

lastRateUpdateTimesForCurrencies(currencyKeys)

Source:
Call (no gas consumed, doesn't require signer)
Parameters:
Name Type Description
currencyKeys Array.<bytes4>
Returns:
uint256[]

nominatedOwner()

Source:
Call (no gas consumed, doesn't require signer)
Returns:
String

nominateNewOwner(_owner, txParams)

Source:
Transaction (consumes gas, requires signer)
Parameters:
Name Type Description
_owner String.<EthAddress>
txParams TxParams

oracle()

Source:
Call (no gas consumed, doesn't require signer)
Returns:
String

owner()

Source:
Call (no gas consumed, doesn't require signer)
Returns:
String

rateForCurrency(currencyKey)

Source:
Call (no gas consumed, doesn't require signer)
Parameters:
Name Type Description
currencyKey bytes4
Returns:
BigNumber

rateIsStale(currencyKey)

Source:
Call (no gas consumed, doesn't require signer)
Parameters:
Name Type Description
currencyKey bytes4
Returns:
boolean

rates(bytes4)

Source:
Call (no gas consumed, doesn't require signer)
Parameters:
Name Type Description
bytes4 bytes4
Returns:
BigNumber

ratesForCurrencies(currencyKeys)

Source:
Call (no gas consumed, doesn't require signer)
Parameters:
Name Type Description
currencyKeys Array.<bytes4>
Returns:
uint256[]

rateStalePeriod()

Source:
Call (no gas consumed, doesn't require signer)
Returns:
BigNumber

selfDestruct(txParams)

Source:
Transaction (consumes gas, requires signer)
Parameters:
Name Type Description
txParams TxParams

SELFDESTRUCT_DELAY()

Source:
Call (no gas consumed, doesn't require signer)
Returns:
BigNumber

selfDestructBeneficiary()

Source:
Call (no gas consumed, doesn't require signer)
Returns:
String

selfDestructInitiated()

Source:
Call (no gas consumed, doesn't require signer)
Returns:
boolean

setOracle(_oracle, txParams)

Source:
Transaction (consumes gas, requires signer)
Parameters:
Name Type Description
_oracle String.<EthAddress>
txParams TxParams

setRateStalePeriod(_time, txParams)

Source:
Transaction (consumes gas, requires signer)
Parameters:
Name Type Description
_time BigNumber
txParams TxParams

setSelfDestructBeneficiary(_beneficiary, txParams)

Source:
Transaction (consumes gas, requires signer)
Parameters:
Name Type Description
_beneficiary String.<EthAddress>
txParams TxParams

terminateSelfDestruct(txParams)

Source:
Transaction (consumes gas, requires signer)
Parameters:
Name Type Description
txParams TxParams

updateRates(currencyKeys, newRates, timeSent, txParams)

Source:
Transaction (consumes gas, requires signer)
Parameters:
Name Type Description
currencyKeys Array.<bytes4>
newRates Array.<uint256>
timeSent BigNumber
txParams TxParams
Returns:
boolean

xdrParticipants(uint256)

Source:
Call (no gas consumed, doesn't require signer)
Parameters:
Name Type Description
uint256 BigNumber
Returns:
bytes4