View Source: contracts/libraries/StoreKeyUtil.sol
StoreKeyUtil
- setUintByKey(IStore s, bytes32 key, uint256 value)
- setUintByKeys(IStore s, bytes32 key1, bytes32 key2, uint256 value)
- setUintByKeys(IStore s, bytes32 key1, bytes32 key2, address account, uint256 value)
- addUintByKey(IStore s, bytes32 key, uint256 value)
- addUintByKeys(IStore s, bytes32 key1, bytes32 key2, uint256 value)
- addUintByKeys(IStore s, bytes32 key1, bytes32 key2, address account, uint256 value)
- subtractUintByKey(IStore s, bytes32 key, uint256 value)
- subtractUintByKeys(IStore s, bytes32 key1, bytes32 key2, uint256 value)
- subtractUintByKeys(IStore s, bytes32 key1, bytes32 key2, address account, uint256 value)
- setStringByKey(IStore s, bytes32 key, string value)
- setStringByKeys(IStore s, bytes32 key1, bytes32 key2, string value)
- setBytes32ByKey(IStore s, bytes32 key, bytes32 value)
- setBytes32ByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 value)
- setBoolByKey(IStore s, bytes32 key, bool value)
- setBoolByKeys(IStore s, bytes32 key1, bytes32 key2, bool value)
- setBoolByKeys(IStore s, bytes32 key, address account, bool value)
- setAddressByKey(IStore s, bytes32 key, address value)
- setAddressByKeys(IStore s, bytes32 key1, bytes32 key2, address value)
- setAddressByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3, address value)
- setAddressArrayByKey(IStore s, bytes32 key, address value)
- setAddressArrayByKeys(IStore s, bytes32 key1, bytes32 key2, address value)
- setAddressArrayByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3, address value)
- setAddressBooleanByKey(IStore s, bytes32 key, address account, bool value)
- setAddressBooleanByKeys(IStore s, bytes32 key1, bytes32 key2, address account, bool value)
- setAddressBooleanByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3, address account, bool value)
- deleteUintByKey(IStore s, bytes32 key)
- deleteUintByKeys(IStore s, bytes32 key1, bytes32 key2)
- deleteBytes32ByKey(IStore s, bytes32 key)
- deleteBytes32ByKeys(IStore s, bytes32 key1, bytes32 key2)
- deleteBoolByKey(IStore s, bytes32 key)
- deleteBoolByKeys(IStore s, bytes32 key1, bytes32 key2)
- deleteBoolByKeys(IStore s, bytes32 key, address account)
- deleteAddressByKey(IStore s, bytes32 key)
- deleteAddressByKeys(IStore s, bytes32 key1, bytes32 key2)
- deleteAddressByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3)
- deleteAddressArrayByKey(IStore s, bytes32 key, address value)
- deleteAddressArrayByKeys(IStore s, bytes32 key1, bytes32 key2, address value)
- deleteAddressArrayByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3, address value)
- deleteAddressArrayByIndexByKey(IStore s, bytes32 key, uint256 index)
- deleteAddressArrayByIndexByKeys(IStore s, bytes32 key1, bytes32 key2, uint256 index)
- deleteAddressArrayByIndexByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3, uint256 index)
- getUintByKey(IStore s, bytes32 key)
- getUintByKeys(IStore s, bytes32 key1, bytes32 key2)
- getUintByKeys(IStore s, bytes32 key1, bytes32 key2, address account)
- getStringByKey(IStore s, bytes32 key)
- getStringByKeys(IStore s, bytes32 key1, bytes32 key2)
- getBytes32ByKey(IStore s, bytes32 key)
- getBytes32ByKeys(IStore s, bytes32 key1, bytes32 key2)
- getBoolByKey(IStore s, bytes32 key)
- getBoolByKeys(IStore s, bytes32 key1, bytes32 key2)
- getBoolByKeys(IStore s, bytes32 key, address account)
- getAddressByKey(IStore s, bytes32 key)
- getAddressByKeys(IStore s, bytes32 key1, bytes32 key2)
- getAddressByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3)
- getAddressBooleanByKey(IStore s, bytes32 key, address account)
- getAddressBooleanByKeys(IStore s, bytes32 key1, bytes32 key2, address account)
- getAddressBooleanByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3, address account)
- countAddressArrayByKey(IStore s, bytes32 key)
- countAddressArrayByKeys(IStore s, bytes32 key1, bytes32 key2)
- countAddressArrayByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3)
- getAddressArrayByKey(IStore s, bytes32 key)
- getAddressArrayByKeys(IStore s, bytes32 key1, bytes32 key2)
- getAddressArrayByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3)
- getAddressArrayItemPositionByKey(IStore s, bytes32 key, address addressToFind)
- getAddressArrayItemPositionByKeys(IStore s, bytes32 key1, bytes32 key2, address addressToFind)
- getAddressArrayItemPositionByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3, address addressToFind)
- getAddressArrayItemByIndexByKey(IStore s, bytes32 key, uint256 index)
- getAddressArrayItemByIndexByKeys(IStore s, bytes32 key1, bytes32 key2, uint256 index)
- getAddressArrayItemByIndexByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3, uint256 index)
- _getKey(bytes32 key1, bytes32 key2)
- _getKey(bytes32 key1, bytes32 key2, bytes32 key3)
- _getKey(bytes32 key, address account)
- _getKey(bytes32 key1, bytes32 key2, address account)
function setUintByKey(IStore s, bytes32 key, uint256 value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
value | uint256 |
Source Code
function setUintByKey(
IStore s,
bytes32 key,
uint256 value
) external {
require(key > 0, "Invalid key");
return s.setUint(key, value);
}
function setUintByKeys(IStore s, bytes32 key1, bytes32 key2, uint256 value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
value | uint256 |
Source Code
function setUintByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
uint256 value
) external {
return s.setUint(_getKey(key1, key2), value);
}
function setUintByKeys(IStore s, bytes32 key1, bytes32 key2, address account, uint256 value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
account | address | |
value | uint256 |
Source Code
function setUintByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
address account,
uint256 value
) external {
return s.setUint(_getKey(key1, key2, account), value);
}
function addUintByKey(IStore s, bytes32 key, uint256 value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
value | uint256 |
Source Code
function addUintByKey(
IStore s,
bytes32 key,
uint256 value
) external {
require(key > 0, "Invalid key");
return s.addUint(key, value);
}
function addUintByKeys(IStore s, bytes32 key1, bytes32 key2, uint256 value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
value | uint256 |
Source Code
function addUintByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
uint256 value
) external {
return s.addUint(_getKey(key1, key2), value);
}
function addUintByKeys(IStore s, bytes32 key1, bytes32 key2, address account, uint256 value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
account | address | |
value | uint256 |
Source Code
function addUintByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
address account,
uint256 value
) external {
return s.addUint(_getKey(key1, key2, account), value);
}
function subtractUintByKey(IStore s, bytes32 key, uint256 value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
value | uint256 |
Source Code
function subtractUintByKey(
IStore s,
bytes32 key,
uint256 value
) external {
require(key > 0, "Invalid key");
return s.subtractUint(key, value);
}
function subtractUintByKeys(IStore s, bytes32 key1, bytes32 key2, uint256 value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
value | uint256 |
Source Code
function subtractUintByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
uint256 value
) external {
return s.subtractUint(_getKey(key1, key2), value);
}
function subtractUintByKeys(IStore s, bytes32 key1, bytes32 key2, address account, uint256 value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
account | address | |
value | uint256 |
Source Code
function subtractUintByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
address account,
uint256 value
) external {
return s.subtractUint(_getKey(key1, key2, account), value);
}
function setStringByKey(IStore s, bytes32 key, string value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
value | string |
Source Code
function setStringByKey(
IStore s,
bytes32 key,
string memory value
) external {
require(key > 0, "Invalid key");
s.setString(key, value);
}
function setStringByKeys(IStore s, bytes32 key1, bytes32 key2, string value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
value | string |
Source Code
function setStringByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
string memory value
) external {
return s.setString(_getKey(key1, key2), value);
}
function setBytes32ByKey(IStore s, bytes32 key, bytes32 value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
value | bytes32 |
Source Code
function setBytes32ByKey(
IStore s,
bytes32 key,
bytes32 value
) external {
require(key > 0, "Invalid key");
s.setBytes32(key, value);
}
function setBytes32ByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
value | bytes32 |
Source Code
function setBytes32ByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
bytes32 value
) external {
return s.setBytes32(_getKey(key1, key2), value);
}
function setBoolByKey(IStore s, bytes32 key, bool value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
value | bool |
Source Code
function setBoolByKey(
IStore s,
bytes32 key,
bool value
) external {
require(key > 0, "Invalid key");
return s.setBool(key, value);
}
function setBoolByKeys(IStore s, bytes32 key1, bytes32 key2, bool value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
value | bool |
Source Code
function setBoolByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
bool value
) external {
return s.setBool(_getKey(key1, key2), value);
}
function setBoolByKeys(IStore s, bytes32 key, address account, bool value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
account | address | |
value | bool |
Source Code
function setBoolByKeys(
IStore s,
bytes32 key,
address account,
bool value
) external {
return s.setBool(_getKey(key, account), value);
}
function setAddressByKey(IStore s, bytes32 key, address value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
value | address |
Source Code
function setAddressByKey(
IStore s,
bytes32 key,
address value
) external {
require(key > 0, "Invalid key");
return s.setAddress(key, value);
}
function setAddressByKeys(IStore s, bytes32 key1, bytes32 key2, address value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
value | address |
Source Code
function setAddressByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
address value
) external {
return s.setAddress(_getKey(key1, key2), value);
}
function setAddressByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3, address value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
key3 | bytes32 | |
value | address |
Source Code
function setAddressByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
bytes32 key3,
address value
) external {
return s.setAddress(_getKey(key1, key2, key3), value);
}
function setAddressArrayByKey(IStore s, bytes32 key, address value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
value | address |
Source Code
function setAddressArrayByKey(
IStore s,
bytes32 key,
address value
) external {
require(key > 0, "Invalid key");
return s.setAddressArrayItem(key, value);
}
function setAddressArrayByKeys(IStore s, bytes32 key1, bytes32 key2, address value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
value | address |
Source Code
function setAddressArrayByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
address value
) external {
return s.setAddressArrayItem(_getKey(key1, key2), value);
}
function setAddressArrayByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3, address value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
key3 | bytes32 | |
value | address |
Source Code
function setAddressArrayByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
bytes32 key3,
address value
) external {
return s.setAddressArrayItem(_getKey(key1, key2, key3), value);
}
function setAddressBooleanByKey(IStore s, bytes32 key, address account, bool value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
account | address | |
value | bool |
Source Code
function setAddressBooleanByKey(
IStore s,
bytes32 key,
address account,
bool value
) external {
require(key > 0, "Invalid key");
return s.setAddressBoolean(key, account, value);
}
function setAddressBooleanByKeys(IStore s, bytes32 key1, bytes32 key2, address account, bool value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
account | address | |
value | bool |
Source Code
function setAddressBooleanByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
address account,
bool value
) external {
return s.setAddressBoolean(_getKey(key1, key2), account, value);
}
function setAddressBooleanByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3, address account, bool value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
key3 | bytes32 | |
account | address | |
value | bool |
Source Code
function setAddressBooleanByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
bytes32 key3,
address account,
bool value
) external {
return s.setAddressBoolean(_getKey(key1, key2, key3), account, value);
}
function deleteUintByKey(IStore s, bytes32 key) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 |
Source Code
function deleteUintByKey(IStore s, bytes32 key) external {
require(key > 0, "Invalid key");
return s.deleteUint(key);
}
function deleteUintByKeys(IStore s, bytes32 key1, bytes32 key2) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 |
Source Code
function deleteUintByKeys(
IStore s,
bytes32 key1,
bytes32 key2
) external {
return s.deleteUint(_getKey(key1, key2));
}
function deleteBytes32ByKey(IStore s, bytes32 key) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 |
Source Code
function deleteBytes32ByKey(IStore s, bytes32 key) external {
require(key > 0, "Invalid key");
s.deleteBytes32(key);
}
function deleteBytes32ByKeys(IStore s, bytes32 key1, bytes32 key2) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 |
Source Code
function deleteBytes32ByKeys(
IStore s,
bytes32 key1,
bytes32 key2
) external {
return s.deleteBytes32(_getKey(key1, key2));
}
function deleteBoolByKey(IStore s, bytes32 key) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 |
Source Code
function deleteBoolByKey(IStore s, bytes32 key) external {
require(key > 0, "Invalid key");
return s.deleteBool(key);
}
function deleteBoolByKeys(IStore s, bytes32 key1, bytes32 key2) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 |
Source Code
function deleteBoolByKeys(
IStore s,
bytes32 key1,
bytes32 key2
) external {
return s.deleteBool(_getKey(key1, key2));
}
function deleteBoolByKeys(IStore s, bytes32 key, address account) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
account | address |
Source Code
function deleteBoolByKeys(
IStore s,
bytes32 key,
address account
) external {
return s.deleteBool(_getKey(key, account));
}
function deleteAddressByKey(IStore s, bytes32 key) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 |
Source Code
function deleteAddressByKey(IStore s, bytes32 key) external {
require(key > 0, "Invalid key");
return s.deleteAddress(key);
}
function deleteAddressByKeys(IStore s, bytes32 key1, bytes32 key2) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 |
Source Code
function deleteAddressByKeys(
IStore s,
bytes32 key1,
bytes32 key2
) external {
return s.deleteAddress(_getKey(key1, key2));
}
function deleteAddressByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
key3 | bytes32 |
Source Code
function deleteAddressByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
bytes32 key3
) external {
return s.deleteAddress(_getKey(key1, key2, key3));
}
function deleteAddressArrayByKey(IStore s, bytes32 key, address value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
value | address |
Source Code
function deleteAddressArrayByKey(
IStore s,
bytes32 key,
address value
) external {
require(key > 0, "Invalid key");
return s.deleteAddressArrayItem(key, value);
}
function deleteAddressArrayByKeys(IStore s, bytes32 key1, bytes32 key2, address value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
value | address |
Source Code
function deleteAddressArrayByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
address value
) external {
return s.deleteAddressArrayItem(_getKey(key1, key2), value);
}
function deleteAddressArrayByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3, address value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
key3 | bytes32 | |
value | address |
Source Code
function deleteAddressArrayByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
bytes32 key3,
address value
) external {
return s.deleteAddressArrayItem(_getKey(key1, key2, key3), value);
}
function deleteAddressArrayByIndexByKey(IStore s, bytes32 key, uint256 index) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
index | uint256 |
Source Code
function deleteAddressArrayByIndexByKey(
IStore s,
bytes32 key,
uint256 index
) external {
require(key > 0, "Invalid key");
return s.deleteAddressArrayItemByIndex(key, index);
}
function deleteAddressArrayByIndexByKeys(IStore s, bytes32 key1, bytes32 key2, uint256 index) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
index | uint256 |
Source Code
function deleteAddressArrayByIndexByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
uint256 index
) external {
return s.deleteAddressArrayItemByIndex(_getKey(key1, key2), index);
}
function deleteAddressArrayByIndexByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3, uint256 index) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
key3 | bytes32 | |
index | uint256 |
Source Code
function deleteAddressArrayByIndexByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
bytes32 key3,
uint256 index
) external {
return s.deleteAddressArrayItemByIndex(_getKey(key1, key2, key3), index);
}
function getUintByKey(IStore s, bytes32 key) external view
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 |
Source Code
function getUintByKey(IStore s, bytes32 key) external view returns (uint256) {
require(key > 0, "Invalid key");
return s.getUint(key);
}
function getUintByKeys(IStore s, bytes32 key1, bytes32 key2) external view
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 |
Source Code
function getUintByKeys(
IStore s,
bytes32 key1,
bytes32 key2
) external view returns (uint256) {
return s.getUint(_getKey(key1, key2));
}
function getUintByKeys(IStore s, bytes32 key1, bytes32 key2, address account) external view
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
account | address |
Source Code
function getUintByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
address account
) external view returns (uint256) {
return s.getUint(_getKey(key1, key2, account));
}
function getStringByKey(IStore s, bytes32 key) external view
returns(string)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 |
Source Code
function getStringByKey(IStore s, bytes32 key) external view returns (string memory) {
require(key > 0, "Invalid key");
return s.getString(key);
}
function getStringByKeys(IStore s, bytes32 key1, bytes32 key2) external view
returns(string)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 |
Source Code
function getStringByKeys(
IStore s,
bytes32 key1,
bytes32 key2
) external view returns (string memory) {
return s.getString(_getKey(key1, key2));
}
function getBytes32ByKey(IStore s, bytes32 key) external view
returns(bytes32)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 |
Source Code
function getBytes32ByKey(IStore s, bytes32 key) external view returns (bytes32) {
require(key > 0, "Invalid key");
return s.getBytes32(key);
}
function getBytes32ByKeys(IStore s, bytes32 key1, bytes32 key2) external view
returns(bytes32)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 |
Source Code
function getBytes32ByKeys(
IStore s,
bytes32 key1,
bytes32 key2
) external view returns (bytes32) {
return s.getBytes32(_getKey(key1, key2));
}
function getBoolByKey(IStore s, bytes32 key) external view
returns(bool)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 |
Source Code
function getBoolByKey(IStore s, bytes32 key) external view returns (bool) {
require(key > 0, "Invalid key");
return s.getBool(key);
}
function getBoolByKeys(IStore s, bytes32 key1, bytes32 key2) external view
returns(bool)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 |
Source Code
function getBoolByKeys(
IStore s,
bytes32 key1,
bytes32 key2
) external view returns (bool) {
return s.getBool(_getKey(key1, key2));
}
function getBoolByKeys(IStore s, bytes32 key, address account) external view
returns(bool)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
account | address |
Source Code
function getBoolByKeys(
IStore s,
bytes32 key,
address account
) external view returns (bool) {
return s.getBool(_getKey(key, account));
}
function getAddressByKey(IStore s, bytes32 key) external view
returns(address)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 |
Source Code
function getAddressByKey(IStore s, bytes32 key) external view returns (address) {
require(key > 0, "Invalid key");
return s.getAddress(key);
}
function getAddressByKeys(IStore s, bytes32 key1, bytes32 key2) external view
returns(address)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 |
Source Code
function getAddressByKeys(
IStore s,
bytes32 key1,
bytes32 key2
) external view returns (address) {
return s.getAddress(_getKey(key1, key2));
}
function getAddressByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3) external view
returns(address)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
key3 | bytes32 |
Source Code
function getAddressByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
bytes32 key3
) external view returns (address) {
return s.getAddress(_getKey(key1, key2, key3));
}
function getAddressBooleanByKey(IStore s, bytes32 key, address account) external view
returns(bool)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
account | address |
Source Code
function getAddressBooleanByKey(
IStore s,
bytes32 key,
address account
) external view returns (bool) {
require(key > 0, "Invalid key");
return s.getAddressBoolean(key, account);
}
function getAddressBooleanByKeys(IStore s, bytes32 key1, bytes32 key2, address account) external view
returns(bool)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
account | address |
Source Code
function getAddressBooleanByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
address account
) external view returns (bool) {
return s.getAddressBoolean(_getKey(key1, key2), account);
}
function getAddressBooleanByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3, address account) external view
returns(bool)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
key3 | bytes32 | |
account | address |
Source Code
function getAddressBooleanByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
bytes32 key3,
address account
) external view returns (bool) {
return s.getAddressBoolean(_getKey(key1, key2, key3), account);
}
function countAddressArrayByKey(IStore s, bytes32 key) external view
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 |
Source Code
function countAddressArrayByKey(IStore s, bytes32 key) external view returns (uint256) {
require(key > 0, "Invalid key");
return s.countAddressArrayItems(key);
}
function countAddressArrayByKeys(IStore s, bytes32 key1, bytes32 key2) external view
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 |
Source Code
function countAddressArrayByKeys(
IStore s,
bytes32 key1,
bytes32 key2
) external view returns (uint256) {
return s.countAddressArrayItems(_getKey(key1, key2));
}
function countAddressArrayByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3) external view
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
key3 | bytes32 |
Source Code
function countAddressArrayByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
bytes32 key3
) external view returns (uint256) {
return s.countAddressArrayItems(_getKey(key1, key2, key3));
}
function getAddressArrayByKey(IStore s, bytes32 key) external view
returns(address[])
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 |
Source Code
function getAddressArrayByKey(IStore s, bytes32 key) external view returns (address[] memory) {
require(key > 0, "Invalid key");
return s.getAddressArray(key);
}
function getAddressArrayByKeys(IStore s, bytes32 key1, bytes32 key2) external view
returns(address[])
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 |
Source Code
function getAddressArrayByKeys(
IStore s,
bytes32 key1,
bytes32 key2
) external view returns (address[] memory) {
return s.getAddressArray(_getKey(key1, key2));
}
function getAddressArrayByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3) external view
returns(address[])
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
key3 | bytes32 |
Source Code
function getAddressArrayByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
bytes32 key3
) external view returns (address[] memory) {
return s.getAddressArray(_getKey(key1, key2, key3));
}
function getAddressArrayItemPositionByKey(IStore s, bytes32 key, address addressToFind) external view
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
addressToFind | address |
Source Code
function getAddressArrayItemPositionByKey(
IStore s,
bytes32 key,
address addressToFind
) external view returns (uint256) {
require(key > 0, "Invalid key");
return s.getAddressArrayItemPosition(key, addressToFind);
}
function getAddressArrayItemPositionByKeys(IStore s, bytes32 key1, bytes32 key2, address addressToFind) external view
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
addressToFind | address |
Source Code
function getAddressArrayItemPositionByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
address addressToFind
) external view returns (uint256) {
return s.getAddressArrayItemPosition(_getKey(key1, key2), addressToFind);
}
function getAddressArrayItemPositionByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3, address addressToFind) external view
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
key3 | bytes32 | |
addressToFind | address |
Source Code
function getAddressArrayItemPositionByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
bytes32 key3,
address addressToFind
) external view returns (uint256) {
return s.getAddressArrayItemPosition(_getKey(key1, key2, key3), addressToFind);
}
function getAddressArrayItemByIndexByKey(IStore s, bytes32 key, uint256 index) external view
returns(address)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key | bytes32 | |
index | uint256 |
Source Code
function getAddressArrayItemByIndexByKey(
IStore s,
bytes32 key,
uint256 index
) external view returns (address) {
require(key > 0, "Invalid key");
return s.getAddressArrayItemByIndex(key, index);
}
function getAddressArrayItemByIndexByKeys(IStore s, bytes32 key1, bytes32 key2, uint256 index) external view
returns(address)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
index | uint256 |
Source Code
function getAddressArrayItemByIndexByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
uint256 index
) external view returns (address) {
return s.getAddressArrayItemByIndex(_getKey(key1, key2), index);
}
function getAddressArrayItemByIndexByKeys(IStore s, bytes32 key1, bytes32 key2, bytes32 key3, uint256 index) external view
returns(address)
Arguments
Name | Type | Description |
---|---|---|
s | IStore | |
key1 | bytes32 | |
key2 | bytes32 | |
key3 | bytes32 | |
index | uint256 |
Source Code
function getAddressArrayItemByIndexByKeys(
IStore s,
bytes32 key1,
bytes32 key2,
bytes32 key3,
uint256 index
) external view returns (address) {
return s.getAddressArrayItemByIndex(_getKey(key1, key2, key3), index);
}
function _getKey(bytes32 key1, bytes32 key2) private pure
returns(bytes32)
Arguments
Name | Type | Description |
---|---|---|
key1 | bytes32 | |
key2 | bytes32 |
Source Code
function _getKey(bytes32 key1, bytes32 key2) private pure returns (bytes32) {
require(key1 > 0 && key2 > 0, "Invalid key(s)");
return keccak256(abi.encodePacked(key1, key2));
}
function _getKey(bytes32 key1, bytes32 key2, bytes32 key3) private pure
returns(bytes32)
Arguments
Name | Type | Description |
---|---|---|
key1 | bytes32 | |
key2 | bytes32 | |
key3 | bytes32 |
Source Code
function _getKey(
bytes32 key1,
bytes32 key2,
bytes32 key3
) private pure returns (bytes32) {
require(key1 > 0 && key2 > 0 && key3 > 0, "Invalid key(s)");
return keccak256(abi.encodePacked(key1, key2, key3));
}
function _getKey(bytes32 key, address account) private pure
returns(bytes32)
Arguments
Name | Type | Description |
---|---|---|
key | bytes32 | |
account | address |
Source Code
function _getKey(bytes32 key, address account) private pure returns (bytes32) {
require(key > 0 && account != address(0), "Invalid key(s)");
return keccak256(abi.encodePacked(key, account));
}
function _getKey(bytes32 key1, bytes32 key2, address account) private pure
returns(bytes32)
Arguments
Name | Type | Description |
---|---|---|
key1 | bytes32 | |
key2 | bytes32 | |
account | address |
Source Code
function _getKey(
bytes32 key1,
bytes32 key2,
address account
) private pure returns (bytes32) {
require(key1 > 0 && key2 > 0 && account != address(0), "Invalid key(s)");
return keccak256(abi.encodePacked(key1, key2, account));
}
- AaveStrategy
- AccessControl
- AccessControlLibV1
- Address
- BaseLibV1
- BokkyPooBahsDateTimeLibrary
- BondPool
- BondPoolBase
- BondPoolLibV1
- CompoundStrategy
- console
- Context
- Cover
- CoverBase
- CoverLibV1
- CoverProvision
- CoverReassurance
- CoverStake
- CoverUtilV1
- cxToken
- cxTokenFactory
- cxTokenFactoryLibV1
- Delayable
- Destroyable
- ERC165
- ERC20
- FakeAaveLendingPool
- FakeCompoundDaiDelegator
- FakeRecoverable
- FakeStore
- FakeToken
- FakeUniswapPair
- FakeUniswapV2FactoryLike
- FakeUniswapV2PairLike
- FakeUniswapV2RouterLike
- FaultyAaveLendingPool
- FaultyCompoundDaiDelegator
- Finalization
- ForceEther
- Governance
- GovernanceUtilV1
- IAaveV2LendingPoolLike
- IAccessControl
- IBondPool
- IClaimsProcessor
- ICompoundERC20DelegatorLike
- ICover
- ICoverProvision
- ICoverReassurance
- ICoverStake
- ICxToken
- ICxTokenFactory
- IERC165
- IERC20
- IERC20Detailed
- IERC20Metadata
- IERC3156FlashBorrower
- IERC3156FlashLender
- IFinalization
- IGovernance
- ILendingStrategy
- ILiquidityEngine
- IMember
- InvalidStrategy
- IPausable
- IPolicy
- IPolicyAdmin
- IPriceDiscovery
- IProtocol
- IRecoverable
- IReporter
- IResolution
- IResolvable
- IStakingPools
- IStore
- IUniswapV2FactoryLike
- IUniswapV2PairLike
- IUniswapV2RouterLike
- IUnstakable
- IVault
- IVaultDelegate
- IVaultFactory
- IWitness
- LiquidityEngine
- MaliciousToken
- MockCxToken
- MockCxTokenPolicy
- MockCxTokenStore
- MockFlashBorrower
- MockProcessorStore
- MockProcessorStoreLib
- MockProtocol
- MockStore
- MockVault
- NPM
- NTransferUtilV2
- NTransferUtilV2Intermediate
- Ownable
- Pausable
- Policy
- PolicyAdmin
- PolicyHelperV1
- PoorMansERC20
- PriceDiscovery
- 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