Skip to main content

contracts sub-class

The SDK also exposes the contractInstance sub-class which provides an instance for contracts used in the KETH protocol. These instances can be used to call smart contract functions that may or may not exist in the SDK.

Contract instances exposed by the sub-class

  • assetRegistry
  • dETHVault
  • kETHStrategy
  • kETHVault
  • kontroller
  • ETHToDETH
  • ETHToGiantLP
  • GiantLPToDETH
  • RETHToDETH
  • RETHToETH
  • RETHToGiantLP
  • WstETHToDETH
  • WstETHToETH
  • WstETHToGiantLP
  • YETHToDETH
  • YETHToETH
  • YETHToGiantLP
  • yETHAggregator

Using the contracts class

const assetRegistryContractInstance = await sdk.contracts.assetRegistry();
const dETHVaultContractInstance = await sdk.contracts.dETHVault();
const kETHStrategyContractInstance = await sdk.contracts.kETHStrategy();
const kETHVaultContractInstance = await sdk.contracts.kETHVault();
const kontrollerContractInstance = await sdk.contracts.kontroller();
const ETHToDETHContractInstance = await sdk.contracts.ETHToDETH();
const ETHToGiantLPContractInstance = await sdk.contracts.ETHToGiantLP();
const GiantLPToDETHContractInstance = await sdk.contracts.GiantLPToDETH();
const RETHToDETHContractInstance = await sdk.contracts.RETHToDETH();
const RETHToETHContractInstance = await sdk.contracts.RETHToETH();
const RETHToGiantLPContractInstance = await sdk.contracts.RETHToGiantLP();
const WstETHToDETHContractInstance = await sdk.contracts.WstETHToDETH();
const WstETHToETHContractInstance = await sdk.contracts.WstETHToETH();
const WstETHToGiantLPContractInstance = await sdk.contracts.WstETHToGiantLP();
const YETHToDETHContractInstance = await sdk.contracts.YETHToDETH();
const YETHToETHContractInstance = await sdk.contracts.YETHToETH();
const YETHToGiantLPContractInstance = await sdk.contracts.YETHToGiantLP();
const yETHAggregatorContractInstance = await sdk.contracts.yETHAggregator();

All the contract instances can be directly accessed without any input parameter.