Data store contract that stores data for all the modules in a central contract. (DataStore.sol)
View Source: contracts/datastore/DataStore.sol
↗ Extends: DataStoreStorage, IDataStore
DataStore
Events
Modifiers
validKey
Arguments
Name | Type | Description |
_key | bytes32 |
validArrayLength
Arguments
Name | Type | Description |
_keyLength | uint256 | |
_dataLength | uint256 |
onlyOwner
Arguments
Name | Type | Description |
Functions
_isAuthorized
Arguments
Name | Type | Description |
setSecurityToken
⤾ overrides IDataStore.setSecurityToken
Changes security token atatched to this data store
Arguments
Name | Type | Description |
_securityToken | address | address of the security token |
setUint256
⤾ overrides IDataStore.setUint256
Stores a uint256 data against a key
Arguments
Name | Type | Description |
_key | bytes32 | Unique key to identify the data |
_data | uint256 | Data to be stored against the key |
setBytes32
⤾ overrides IDataStore.setBytes32
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | bytes32 |
setAddress
⤾ overrides IDataStore.setAddress
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | address |
setBool
⤾ overrides IDataStore.setBool
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | bool |
setString
⤾ overrides IDataStore.setString
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | string |
setBytes
⤾ overrides IDataStore.setBytes
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | bytes |
setUint256Array
⤾ overrides IDataStore.setUint256Array
Stores a uint256 array against a key
Arguments
Name | Type | Description |
_key | bytes32 | Unique key to identify the array |
_data | uint256[] | Array to be stored against the key |
setBytes32Array
⤾ overrides IDataStore.setBytes32Array
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | bytes32[] |
setAddressArray
⤾ overrides IDataStore.setAddressArray
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | address[] |
setBoolArray
⤾ overrides IDataStore.setBoolArray
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | bool[] |
insertUint256
⤾ overrides IDataStore.insertUint256
Inserts a uint256 element to the array identified by the key
Arguments
Name | Type | Description |
_key | bytes32 | Unique key to identify the array |
_data | uint256 | Element to push into the array |
insertBytes32
⤾ overrides IDataStore.insertBytes32
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | bytes32 |
insertAddress
⤾ overrides IDataStore.insertAddress
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | address |
insertBool
⤾ overrides IDataStore.insertBool
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | bool |
deleteUint256
⤾ overrides IDataStore.deleteUint256
Deletes an element from the array identified by the key. When an element is deleted from an Array, last element of that array is moved to the index of deleted element.
Arguments
Name | Type | Description |
_key | bytes32 | Unique key to identify the array |
_index | uint256 | Index of the element to delete |
deleteBytes32
⤾ overrides IDataStore.deleteBytes32
Arguments
Name | Type | Description |
_key | bytes32 | |
_index | uint256 |
deleteAddress
⤾ overrides IDataStore.deleteAddress
Arguments
Name | Type | Description |
_key | bytes32 | |
_index | uint256 |
deleteBool
⤾ overrides IDataStore.deleteBool
Arguments
Name | Type | Description |
_key | bytes32 | |
_index | uint256 |
setUint256Multi
⤾ overrides IDataStore.setUint256Multi
Stores multiple uint256 data against respective keys
Arguments
Name | Type | Description |
_keys | bytes32[] | Array of keys to identify the data |
_data | uint256[] | Array of data to be stored against the respective keys |
setBytes32Multi
⤾ overrides IDataStore.setBytes32Multi
Arguments
Name | Type | Description |
_keys | bytes32[] | |
_data | bytes32[] |
setAddressMulti
⤾ overrides IDataStore.setAddressMulti
Arguments
Name | Type | Description |
_keys | bytes32[] | |
_data | address[] |
setBoolMulti
⤾ overrides IDataStore.setBoolMulti
Arguments
Name | Type | Description |
_keys | bytes32[] | |
_data | bool[] |
insertUint256Multi
⤾ overrides IDataStore.insertUint256Multi
Inserts multiple uint256 elements to the array identified by the respective keys
Arguments
Name | Type | Description |
_keys | bytes32[] | Array of keys to identify the data |
_data | uint256[] | Array of data to be inserted in arrays of the respective keys |
insertBytes32Multi
⤾ overrides IDataStore.insertBytes32Multi
Arguments
Name | Type | Description |
_keys | bytes32[] | |
_data | bytes32[] |
insertAddressMulti
⤾ overrides IDataStore.insertAddressMulti
Arguments
Name | Type | Description |
_keys | bytes32[] | |
_data | address[] |
insertBoolMulti
⤾ overrides IDataStore.insertBoolMulti
Arguments
Name | Type | Description |
_keys | bytes32[] | |
_data | bool[] |
getUint256
⤾ overrides IDataStore.getUint256
Arguments
Name | Type | Description |
_key | bytes32 |
getBytes32
⤾ overrides IDataStore.getBytes32
Arguments
Name | Type | Description |
_key | bytes32 |
getAddress
⤾ overrides IDataStore.getAddress
Arguments
Name | Type | Description |
_key | bytes32 |
getString
⤾ overrides IDataStore.getString
Arguments
Name | Type | Description |
_key | bytes32 |
getBytes
⤾ overrides IDataStore.getBytes
Arguments
Name | Type | Description |
_key | bytes32 |
getBool
⤾ overrides IDataStore.getBool
Arguments
Name | Type | Description |
_key | bytes32 |
getUint256Array
⤾ overrides IDataStore.getUint256Array
Arguments
Name | Type | Description |
_key | bytes32 |
getBytes32Array
⤾ overrides IDataStore.getBytes32Array
Arguments
Name | Type | Description |
_key | bytes32 |
getAddressArray
⤾ overrides IDataStore.getAddressArray
Arguments
Name | Type | Description |
_key | bytes32 |
getBoolArray
⤾ overrides IDataStore.getBoolArray
Arguments
Name | Type | Description |
_key | bytes32 |
getUint256ArrayLength
⤾ overrides IDataStore.getUint256ArrayLength
Arguments
Name | Type | Description |
_key | bytes32 |
getBytes32ArrayLength
⤾ overrides IDataStore.getBytes32ArrayLength
Arguments
Name | Type | Description |
_key | bytes32 |
getAddressArrayLength
⤾ overrides IDataStore.getAddressArrayLength
Arguments
Name | Type | Description |
_key | bytes32 |
getBoolArrayLength
⤾ overrides IDataStore.getBoolArrayLength
Arguments
Name | Type | Description |
_key | bytes32 |
getUint256ArrayElement
⤾ overrides IDataStore.getUint256ArrayElement
Arguments
Name | Type | Description |
_key | bytes32 | |
_index | uint256 |
getBytes32ArrayElement
⤾ overrides IDataStore.getBytes32ArrayElement
Arguments
Name | Type | Description |
_key | bytes32 | |
_index | uint256 |
getAddressArrayElement
⤾ overrides IDataStore.getAddressArrayElement
Arguments
Name | Type | Description |
_key | bytes32 | |
_index | uint256 |
getBoolArrayElement
⤾ overrides IDataStore.getBoolArrayElement
Arguments
Name | Type | Description |
_key | bytes32 | |
_index | uint256 |
getUint256ArrayElements
⤾ overrides IDataStore.getUint256ArrayElements
Arguments
Name | Type | Description |
_key | bytes32 | |
_startIndex | uint256 | |
_endIndex | uint256 |
getBytes32ArrayElements
⤾ overrides IDataStore.getBytes32ArrayElements
Arguments
Name | Type | Description |
_key | bytes32 | |
_startIndex | uint256 | |
_endIndex | uint256 |
getAddressArrayElements
⤾ overrides IDataStore.getAddressArrayElements
Arguments
Name | Type | Description |
_key | bytes32 | |
_startIndex | uint256 | |
_endIndex | uint256 |
getBoolArrayElements
⤾ overrides IDataStore.getBoolArrayElements
Arguments
Name | Type | Description |
_key | bytes32 | |
_startIndex | uint256 | |
_endIndex | uint256 |
_setData
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | uint256 | |
_insert | bool |
_setData
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | bytes32 | |
_insert | bool |
_setData
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | address | |
_insert | bool |
_setData
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | bool | |
_insert | bool |
_setData
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | string |
_setData
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | bytes |
_setData
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | uint256[] |
_setData
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | bytes32[] |
_setData
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | address[] |
_setData
Arguments
Name | Type | Description |
_key | bytes32 | |
_data | bool[] |
_deleteUint
Arguments
Name | Type | Description |
_key | bytes32 | |
_index | uint256 |
_deleteBytes32
Arguments
Name | Type | Description |
_key | bytes32 | |
_index | uint256 |
_deleteAddress
Arguments
Name | Type | Description |
_key | bytes32 | |
_index | uint256 |
_deleteBool
Arguments
Name | Type | Description |
_key | bytes32 | |
_index | uint256 |
Last updated