KnightSafe

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0x0c5daa37 at 17550164
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
-
variable spans 1 additional slot

No balances found for "KnightSafe"

No transactions found for "KnightSafe"


Functions
Getter at block 23860019
VERSION(view returns (string)
2.0.0
accountVolumeSpent(view returns (uint256)
0
dailyVolumeSpent(view returns (uint256)
0
getActivePolicyIds(view returns (uint256[])
[]
getAdmins(view returns (address[])
[]
getAllPolicyLimit(view returns (uint256[]uint256[]uint256[])
([], [], [])
getControlCenter(view returns (address)
0x0000000000000000000000000000000000000000
getIsTakeoverInProgress(view returns (bool)
false
getNextSettingRequestId(view returns (uint256)
0
getNextTransactionRequestId(view returns (uint256)
0
getOwner(view returns (address)
0x0000000000000000000000000000000000000001
getTakeoverStatus(view returns (addressbooluint256uint256)
(0x0000000000000000000000000000000000000000, false, 0, 0)
getTakeoverTimestamp(view returns (uint256)
0
getTotalVolumeSpent(view returns (uint256)
0
lastDailyVolumeDate(view returns (uint256)
0
nextPolicyId(view returns (uint256)
0
paused(view returns (bool)
false
Read-only
getDailyVolumeSpent(uint256 policyIdview returns (uint256)
getKnightSafeAnalyserAddress(uint256 policyIdaddress whitelistAddressview returns (address)
getMaxSpendingLimit(uint256 policyIdview returns (uint256)
getPolicyUpdateDate(uint256 policyIdview returns (uint256)
getSettingRequest(uint256 reqIdview returns (struct SettingUtilsRequest)
getTraders(uint256 policyIdview returns (address[])
getTransactionRequest(uint256 reqIdview returns (struct TransactionRequest)
getWhitelistAddresses(uint256 policyIdview returns (address[])
isActivePolicy(uint256 policyIdview returns (bool)
isAdmin(address adminview returns (bool)
isPolicyOrGlobalWhitelistAddress(uint256 policyIdaddress _addressview returns (bool)
isPolicyWhitelistAddress(uint256 policyIdaddress _addressview returns (bool)
isTrader(uint256 policyIdaddress traderview returns (bool)
isValidSignature(bytes32 _hashbytes _signatureview returns (bytes4)
validateTradingAccess(uint256 policyIdbool useGlobalWhitelistaddress tobytes dataview returns (address[] addressesuint256[] amounts)
State-modifying
addAdmin(address admin
addTrader(uint256 policyIdaddress trader
cancelSettingByReqId(uint256 reqId
cancelTransactionByReqId(uint256 onBehalfOfPolicyIduint256 reqId
confirmTakeover(
createPolicy(
executeSettingByReqId(uint256 reqIdreturns (bool success)
executeTransaction(uint256 onBehalfOfPolicyIdbool useGlobalWhitelistaddress touint256 valuebytes data
executeTransactionByReqId(uint256 onBehalfOfPolicyIdbool useGlobalWhitelistuint256 reqId
initialize(address owneraddress controlCenteraddress fallbackHandler
instantTakeover(
multicall(bytes[] datareturns (bytes[] results)
pause(
reduceSpendingLimit(uint256 policyIduint256 maxSpendingLimit
rejectSettingByReqId(uint256 reqId
rejectTransactionByReqId(uint256 onBehalfOfPolicyIdbool useGlobalWhitelistuint256 reqId
removeAdmin(address admin
removePolicy(uint256 policyId
removeTrader(uint256 policyIdaddress trader
removeWhitelist(uint256 policyIdaddress whitelistAddress
requestSetting(uint8 selectorbytes paramreturns (uint256 reqId)
requestTakeover(
requestTransaction(uint256 onBehalfOfPolicyIdaddress touint256 valuebytes datareturns (uint256 reqId)
resetDailySpent(uint256 policyId
revokeTakeover(
setBackupOwner(address backupOwneruint256 takeoverDelayIsSecond
setMaxSpendingLimit(uint256 policyIduint256 maxSpendingLimit
unpause(
updateControlCenter(address controlCenter
updateFallbackHandler(address handler
updateWhitelist(uint256 policyIdaddress whitelistAddressaddress officialAnalyserAddress
validatePolicyLimit(uint256 policyIduint256 volume
validateTradingLimit(address[] addressesuint256[] amountsuint256 valuereturns (uint256)
Events
Paused(address account
Unpaused(address account
Constructor
constructor(
Fallback and receive
fallback(
receive(
Errors
AddressAlreadyExist(address _address
AddressEmptyCode(address target
AddressIsNotKnightSafeAnalyser(address _address
AddressIsReadOnlyWhitelist(uint256 policyIdaddress _address
AddressNotExist(address _address
AddressNotInWhitelist(uint256 policyIdaddress _address
ECDSAInvalidSignature(
ECDSAInvalidSignatureS(bytes32 s
EnforcedPause(
ExceedMaxTradingVolume(uint256 txnVolumeuint256 maxVolume
ExceedPolicyVolume(uint256 policyIduint256 volume
ExecutionFailedWith(bytes data
ExpectedPause(
FailedInnerCall(
FeatureNotSupport(string plan
InvalidAddress(address _address
InvalidLength(
InvalidOperation(
InvalidReqId(uint256 reqId
InvalidSettingStatus(
InvalidTakeoverStatus(bool inProgress
InvalidTransactionStatus(
InvalidValue(
MaxPolicyCountReached(uint256 maxPolicyCount
PolicyNotExist(uint256 policyId
SelectorNotSupport(
TakeoverIsNotReady(
Unauthorized(address msgSenderstring role