KnightSafe
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
2
Slot
XX
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
Balances ($0.00)
No balances found for "KnightSafe"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "KnightSafe"
ABI
ABI objects
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 (address, bool, uint256, uint256)
(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 policyId) view returns (uint256)
getKnightSafeAnalyserAddress(uint256 policyId, address whitelistAddress) view returns (address)
getMaxSpendingLimit(uint256 policyId) view returns (uint256)
getPolicyUpdateDate(uint256 policyId) view returns (uint256)
getSettingRequest(uint256 reqId) view returns (struct SettingUtilsRequest)
getTraders(uint256 policyId) view returns (address[])
getTransactionRequest(uint256 reqId) view returns (struct TransactionRequest)
getWhitelistAddresses(uint256 policyId) view returns (address[])
isActivePolicy(uint256 policyId) view returns (bool)
isAdmin(address admin) view returns (bool)
isPolicyOrGlobalWhitelistAddress(uint256 policyId, address _address) view returns (bool)
isPolicyWhitelistAddress(uint256 policyId, address _address) view returns (bool)
isTrader(uint256 policyId, address trader) view returns (bool)
isValidSignature(bytes32 _hash, bytes _signature) view returns (bytes4)
validateTradingAccess(uint256 policyId, bool useGlobalWhitelist, address to, bytes data) view returns (address[] addresses, uint256[] amounts)
State-modifying
Events addAdmin(address admin)
addTrader(uint256 policyId, address trader)
cancelSettingByReqId(uint256 reqId)
cancelTransactionByReqId(uint256 onBehalfOfPolicyId, uint256 reqId)
confirmTakeover()
createPolicy()
executeSettingByReqId(uint256 reqId) returns (bool success)
executeTransaction(uint256 onBehalfOfPolicyId, bool useGlobalWhitelist, address to, uint256 value, bytes data)
executeTransactionByReqId(uint256 onBehalfOfPolicyId, bool useGlobalWhitelist, uint256 reqId)
initialize(address owner, address controlCenter, address fallbackHandler)
instantTakeover()
multicall(bytes[] data) returns (bytes[] results)
pause()
reduceSpendingLimit(uint256 policyId, uint256 maxSpendingLimit)
rejectSettingByReqId(uint256 reqId)
rejectTransactionByReqId(uint256 onBehalfOfPolicyId, bool useGlobalWhitelist, uint256 reqId)
removeAdmin(address admin)
removePolicy(uint256 policyId)
removeTrader(uint256 policyId, address trader)
removeWhitelist(uint256 policyId, address whitelistAddress)
requestSetting(uint8 selector, bytes param) returns (uint256 reqId)
requestTakeover()
requestTransaction(uint256 onBehalfOfPolicyId, address to, uint256 value, bytes data) returns (uint256 reqId)
resetDailySpent(uint256 policyId)
revokeTakeover()
setBackupOwner(address backupOwner, uint256 takeoverDelayIsSecond)
setMaxSpendingLimit(uint256 policyId, uint256 maxSpendingLimit)
unpause()
updateControlCenter(address controlCenter)
updateFallbackHandler(address handler)
updateWhitelist(uint256 policyId, address whitelistAddress, address officialAnalyserAddress)
validatePolicyLimit(uint256 policyId, uint256 volume)
validateTradingLimit(address[] addresses, uint256[] amounts, uint256 value) returns (uint256)
Paused(address account)
Unpaused(address account)
constructor()
fallback()
receive()
AddressAlreadyExist(address _address)
AddressEmptyCode(address target)
AddressIsNotKnightSafeAnalyser(address _address)
AddressIsReadOnlyWhitelist(uint256 policyId, address _address)
AddressNotExist(address _address)
AddressNotInWhitelist(uint256 policyId, address _address)
ECDSAInvalidSignature()
ECDSAInvalidSignatureS(bytes32 s)
EnforcedPause()
ExceedMaxTradingVolume(uint256 txnVolume, uint256 maxVolume)
ExceedPolicyVolume(uint256 policyId, uint256 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 msgSender, string role)