Configuration
Configuration
Configuration
configuration contract to define global variables for GYSR protocol
setUint256
(bytes32 key, uint256 value)
(external)
set or update uint256 parameter
Parameters
-
key
: keccak256 hash of parameter key -
value
: uint256 parameter value
setAddress
(bytes32 key, address value)
(external)
set or update address parameter
Parameters
-
key
: keccak256 hash of parameter key -
value
: address parameter value
setAddressUint96
(bytes32 key, address value0, uint96 value1)
(external)
set or update packed address + uint96 pair
Parameters
-
key
: keccak256 hash of parameter key -
value0
: address parameter value -
value1
: uint96 parameter value
getUint256
(bytes32 key) → uint256
(external)
get uint256 parameter
Parameters
key
: keccak256 hash of parameter key
Returns
- uint256 parameter value
getAddress
(bytes32 key) → address
(external)
get address parameter
Parameters
key
: keccak256 hash of parameter key
Returns
- uint256 parameter value
getAddressUint96
(bytes32 key) → address, uint96
(external)
get packed address + uint96 pair
Parameters
key
: keccak256 hash of parameter key
Returns
-
address parameter value
-
uint96 parameter value
overrideUint256
(address caller, bytes32 key, uint256 value)
(external)
override uint256 parameter for specific caller
Parameters
-
caller
: address of caller -
key
: keccak256 hash of parameter key -
value
: uint256 parameter value
overrideAddress
(address caller, bytes32 key, address value)
(external)
override address parameter for specific caller
Parameters
-
caller
: address of caller -
key
: keccak256 hash of parameter key -
value
: address parameter value
overrideAddressUint96
(address caller, bytes32 key, address value0, uint96 value1)
(external)
override address parameter for specific caller
Parameters
-
caller
: address of caller -
key
: keccak256 hash of parameter key -
value0
: address parameter value -
value1
: uint96 parameter value