View Source: contracts/mock/base/MockStore.sol
↗ Extends: FakeStore ↘ Derived Contracts: MockCxTokenStore, MockProcessorStore, MockProcessorStoreLib
MockStore
- setBool(bytes32 prefix, address a)
- unsetBool(bytes32 prefix, address a)
- setAddress(bytes32 k1, bytes32 k2, address v)
- setAddress(bytes32 k1, bytes32 k2, bytes32 k3, address v)
- setUint(bytes32 k1, bytes32 k2, uint256 v)
function setBool(bytes32 prefix, address a) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
prefix | bytes32 | |
a | address |
Source Code
function setBool(bytes32 prefix, address a) external {
bytes32 k = keccak256(abi.encodePacked(prefix, a));
this.setBool(k, true);
}
function unsetBool(bytes32 prefix, address a) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
prefix | bytes32 | |
a | address |
Source Code
function unsetBool(bytes32 prefix, address a) external {
bytes32 k = keccak256(abi.encodePacked(prefix, a));
this.deleteBool(k);
}
function setAddress(bytes32 k1, bytes32 k2, address v) public nonpayable
Arguments
Name | Type | Description |
---|---|---|
k1 | bytes32 | |
k2 | bytes32 | |
v | address |
Source Code
function setAddress(
bytes32 k1,
bytes32 k2,
address v
) public {
this.setAddress(keccak256(abi.encodePacked(k1, k2)), v);
}
function setAddress(bytes32 k1, bytes32 k2, bytes32 k3, address v) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
k1 | bytes32 | |
k2 | bytes32 | |
k3 | bytes32 | |
v | address |
Source Code
function setAddress(
bytes32 k1,
bytes32 k2,
bytes32 k3,
address v
) external {
this.setAddress(keccak256(abi.encodePacked(k1, k2, k3)), v);
}
function setUint(bytes32 k1, bytes32 k2, uint256 v) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
k1 | bytes32 | |
k2 | bytes32 | |
v | uint256 |
Source Code
function setUint(
bytes32 k1,
bytes32 k2,
uint256 v
) external {
this.setUint(keccak256(abi.encodePacked(k1, k2)), v);
}
- 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
- FakeCompoundDaiDelegator
- FakePriceOracle
- FakeRecoverable
- FakeStore
- FakeToken
- FakeUniswapPair
- FakeUniswapV2FactoryLike
- FakeUniswapV2PairLike
- FakeUniswapV2RouterLike
- FaultyAaveLendingPool
- FaultyCompoundDaiDelegator
- 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