View Source: contracts/libraries/RegistryLibV1.sol
RegistryLibV1
- getGovernanceContract(IStore s)
- getResolutionContract(IStore s)
- getStakingContract(IStore s)
- getCxTokenFactory(IStore s)
- getPolicyContract(IStore s)
- getReassuranceContract(IStore s)
- getBondPoolContract(IStore s)
- getProtocolContract(IStore s, bytes32 cns)
- getProtocolContract(IStore s, bytes32 cns, bytes32 key)
- getCoverContract(IStore s)
- getVault(IStore s, bytes32 coverKey)
- getVaultAddress(IStore s, bytes32 coverKey)
- getVaultDelegate(IStore s)
- getStakingPoolAddress(IStore s)
- getBondPoolAddress(IStore s)
- getVaultFactoryContract(IStore s)
function getGovernanceContract(IStore s) external view
returns(contract IGovernance)
Arguments
Name | Type | Description |
---|---|---|
s | IStore |
Source Code
function getGovernanceContract(IStore s) external view returns (IGovernance) {
return IGovernance(s.getContractInternal(ProtoUtilV1.CNS_GOVERNANCE, ProtoUtilV1.KEY_INTENTIONALLY_EMPTY));
}
function getResolutionContract(IStore s) external view
returns(contract IGovernance)
Arguments
Name | Type | Description |
---|---|---|
s | IStore |
Source Code
function getResolutionContract(IStore s) external view returns (IGovernance) {
return IGovernance(s.getContractInternal(ProtoUtilV1.CNS_GOVERNANCE_RESOLUTION, ProtoUtilV1.KEY_INTENTIONALLY_EMPTY));
}
function getStakingContract(IStore s) external view
returns(contract ICoverStake)
Arguments
Name | Type | Description |
---|---|---|
s | IStore |
Source Code
function getStakingContract(IStore s) external view returns (ICoverStake) {
return ICoverStake(s.getContractInternal(ProtoUtilV1.CNS_COVER_STAKE, ProtoUtilV1.KEY_INTENTIONALLY_EMPTY));
}
function getCxTokenFactory(IStore s) external view
returns(contract ICxTokenFactory)
Arguments
Name | Type | Description |
---|---|---|
s | IStore |
Source Code
function getCxTokenFactory(IStore s) external view returns (ICxTokenFactory) {
return ICxTokenFactory(s.getContractInternal(ProtoUtilV1.CNS_COVER_CXTOKEN_FACTORY, ProtoUtilV1.KEY_INTENTIONALLY_EMPTY));
}
function getPolicyContract(IStore s) external view
returns(contract IPolicy)
Arguments
Name | Type | Description |
---|---|---|
s | IStore |
Source Code
function getPolicyContract(IStore s) external view returns (IPolicy) {
return IPolicy(s.getContractInternal(ProtoUtilV1.CNS_COVER_POLICY, ProtoUtilV1.KEY_INTENTIONALLY_EMPTY));
}
function getReassuranceContract(IStore s) external view
returns(contract ICoverReassurance)
Arguments
Name | Type | Description |
---|---|---|
s | IStore |
Source Code
function getReassuranceContract(IStore s) external view returns (ICoverReassurance) {
return ICoverReassurance(s.getContractInternal(ProtoUtilV1.CNS_COVER_REASSURANCE, ProtoUtilV1.KEY_INTENTIONALLY_EMPTY));
}
function getBondPoolContract(IStore s) external view
returns(contract IBondPool)
Arguments
Name | Type | Description |
---|---|---|
s | IStore |
Source Code
function getBondPoolContract(IStore s) external view returns (IBondPool) {
return IBondPool(getBondPoolAddress(s));
}
function getProtocolContract(IStore s, bytes32 cns) public view
returns(address)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
cns | bytes32 |
Source Code
function getProtocolContract(IStore s, bytes32 cns) public view returns (address) {
return s.getAddressByKeys(ProtoUtilV1.NS_CONTRACTS, cns);
}
function getProtocolContract(IStore s, bytes32 cns, bytes32 key) public view
returns(address)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
cns | bytes32 | |
key | bytes32 |
Source Code
function getProtocolContract(
IStore s,
bytes32 cns,
bytes32 key
) public view returns (address) {
return s.getAddressByKeys(ProtoUtilV1.NS_CONTRACTS, cns, key);
}
function getCoverContract(IStore s) external view
returns(contract ICover)
Arguments
Name | Type | Description |
---|---|---|
s | IStore |
Source Code
function getCoverContract(IStore s) external view returns (ICover) {
address vault = getProtocolContract(s, ProtoUtilV1.CNS_COVER);
return ICover(vault);
}
function getVault(IStore s, bytes32 coverKey) external view
returns(contract IVault)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
coverKey | bytes32 |
Source Code
function getVault(IStore s, bytes32 coverKey) external view returns (IVault) {
return IVault(getVaultAddress(s, coverKey));
}
function getVaultAddress(IStore s, bytes32 coverKey) public view
returns(address)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
coverKey | bytes32 |
Source Code
function getVaultAddress(IStore s, bytes32 coverKey) public view returns (address) {
address vault = getProtocolContract(s, ProtoUtilV1.CNS_COVER_VAULT, coverKey);
return vault;
}
function getVaultDelegate(IStore s) external view
returns(address)
Arguments
Name | Type | Description |
---|---|---|
s | IStore |
Source Code
function getVaultDelegate(IStore s) external view returns (address) {
address vaultImplementation = getProtocolContract(s, ProtoUtilV1.CNS_COVER_VAULT_DELEGATE);
return vaultImplementation;
}
function getStakingPoolAddress(IStore s) external view
returns(address)
Arguments
Name | Type | Description |
---|---|---|
s | IStore |
Source Code
function getStakingPoolAddress(IStore s) external view returns (address) {
address pool = getProtocolContract(s, ProtoUtilV1.CNS_STAKING_POOL);
return pool;
}
function getBondPoolAddress(IStore s) public view
returns(address)
Arguments
Name | Type | Description |
---|---|---|
s | IStore |
Source Code
function getBondPoolAddress(IStore s) public view returns (address) {
address pool = getProtocolContract(s, ProtoUtilV1.CNS_BOND_POOL);
return pool;
}
function getVaultFactoryContract(IStore s) external view
returns(contract IVaultFactory)
Arguments
Name | Type | Description |
---|---|---|
s | IStore |
Source Code
function getVaultFactoryContract(IStore s) external view returns (IVaultFactory) {
address factory = s.getContractInternal(ProtoUtilV1.CNS_COVER_VAULT_FACTORY, ProtoUtilV1.KEY_INTENTIONALLY_EMPTY);
return IVaultFactory(factory);
}
- AaveStrategy
- AccessControl
- AccessControlLibV1
- Address
- BaseLibV1
- BokkyPooBahsDateTimeLibrary
- BondPool
- BondPoolBase
- BondPoolLibV1
- CompoundStrategy
- Context
- Cover
- CoverBase
- CoverLibV1
- CoverReassurance
- CoverStake
- CoverUtilV1
- cxToken
- cxTokenFactory
- cxTokenFactoryLibV1
- Delayable
- Destroyable
- ERC165
- ERC20
- FakeAaveLendingPool
- FakeCompoundStablecoinDelegator
- FakePriceOracle
- FakeRecoverable
- FakeStore
- FakeToken
- FakeUniswapPair
- FakeUniswapV2FactoryLike
- FakeUniswapV2PairLike
- FakeUniswapV2RouterLike
- FaultyAaveLendingPool
- FaultyCompoundStablecoinDelegator
- Finalization
- ForceEther
- Governance
- GovernanceUtilV1
- IAaveV2LendingPoolLike
- IAccessControl
- IBondPool
- IClaimsProcessor
- ICompoundERC20DelegatorLike
- ICover
- ICoverReassurance
- ICoverStake
- ICxToken
- ICxTokenFactory
- IERC165
- IERC20
- IERC20Detailed
- IERC20Metadata
- IERC3156FlashBorrower
- IERC3156FlashLender
- IFinalization
- IGovernance
- ILendingStrategy
- ILiquidityEngine
- IMember
- INeptuneRouterV1
- InvalidStrategy
- IPausable
- IPolicy
- IPolicyAdmin
- IPriceOracle
- IProtocol
- IRecoverable
- IReporter
- IResolution
- IResolvable
- IStakingPools
- IStore
- IStoreLike
- IUniswapV2FactoryLike
- IUniswapV2PairLike
- IUniswapV2RouterLike
- IUnstakable
- IVault
- IVaultDelegate
- IVaultFactory
- IWitness
- LiquidityEngine
- MaliciousToken
- MockAccessControlUser
- MockCoverUtilUser
- MockCxToken
- MockCxTokenPolicy
- MockCxTokenStore
- MockFlashBorrower
- MockLiquidityEngineUser
- MockProcessorStore
- MockProcessorStoreLib
- MockProtocol
- MockRegistryClient
- MockStore
- MockStoreKeyUtilUser
- MockValidationLibUser
- MockVault
- MockVaultLibUser
- NeptuneRouterV1
- NPM
- NpmDistributor
- NTransferUtilV2
- NTransferUtilV2Intermediate
- Ownable
- Pausable
- Policy
- PolicyAdmin
- PolicyHelperV1
- PoorMansERC20
- POT
- PriceLibV1
- Processor
- ProtoBase
- Protocol
- ProtoUtilV1
- Recoverable
- ReentrancyGuard
- RegistryLibV1
- Reporter
- Resolution
- Resolvable
- RoutineInvokerLibV1
- SafeERC20
- StakingPoolBase
- StakingPoolCoreLibV1
- StakingPoolInfo
- StakingPoolLibV1
- StakingPoolReward
- StakingPools
- Store
- StoreBase
- StoreKeyUtil
- StrategyLibV1
- Strings
- TimelockController
- Unstakable
- ValidationLibV1
- Vault
- VaultBase
- VaultDelegate
- VaultDelegateBase
- VaultDelegateWithFlashLoan
- VaultFactory
- VaultFactoryLibV1
- VaultLibV1
- VaultLiquidity
- VaultStrategy
- WithFlashLoan
- WithPausability
- WithRecovery
- Witness