SynthetixState

SynthetixState

new SynthetixState(contractSettings)

Source:
Parameters:
Name Type Description
contractSettings ContractSettings

Methods

acceptOwnership(txParams)

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

appendDebtLedgerValue(value, txParams)

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

associatedContract()

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

clearIssuanceData(account, txParams)

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

debtLedger(uint256)

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

debtLedgerLength()

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

decrementTotalIssuerCount(txParams)

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

hasIssued(account)

Source:
Call (no gas consumed, doesn't require signer)
Parameters:
Name Type Description
account String.<EthAddress>
Returns:
boolean

importIssuerData(accounts, sUSDAmounts, txParams)

Source:
Transaction (consumes gas, requires signer)
Parameters:
Name Type Description
accounts Array.<address>
sUSDAmounts Array.<uint256>
txParams TxParams

incrementTotalIssuerCount(txParams)

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

issuanceData(address)

Source:
Call (no gas consumed, doesn't require signer)
Parameters:
Name Type Description
address String.<EthAddress>
Returns:
Object

issuanceRatio()

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

lastDebtLedgerEntry()

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

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

owner()

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

preferredCurrency(address)

Source:
Call (no gas consumed, doesn't require signer)
Parameters:
Name Type Description
address String.<EthAddress>
Returns:
bytes4

setAssociatedContract(_associatedContract, txParams)

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

setCurrentIssuanceData(account, initialDebtOwnership, txParams)

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

setIssuanceRatio(_issuanceRatio, txParams)

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

setPreferredCurrency(account, currencyKey, txParams)

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

totalIssuerCount()

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