TradingVaultImplementation

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x63abb49a at 21095143
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "TradingVaultImplementation"

No transactions found for "TradingVaultImplementation"


Functions
Getter at block 21191587
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
 
FEE_ACCOUNT(view returns (address)
GLOBAL_TRADE_GUARDIAN(view returns (address)
0x0000000000000000000000000000000000000000
ROLE_CLIENT(view returns (bytes32)
0x43023f179164d629e1d761fb32e2db4dbd5ce417a23159d7da9cc7b562689285
ROLE_DEFINITIVE(view returns (bytes32)
0xd9c9e1a27f80559d0ef9cb96900d3b37cb5d56df00dca6d004c3b26d13df7898
ROLE_DEFINITIVE_ADMIN(view returns (bytes32)
0x71b4013af46185a424aaa4fe1eb172247581306dd750cb51be59e3864d3dc986
ROLE_TRADER(view returns (bytes32)
0x872340a532bdd7bb02bea115c1b0f1ba87eac982f5b79b51ac189ffaac1b6fce
STOP_GUARDIAN_ENABLED(view returns (bool)
false
TRADING_GUARDIAN_TRADING_DISABLED(view returns (bool)
false
WRAPPED_NATIVE_ASSET_ADDRESS(view returns (address)
0x0000000000000000000000000000000000000000
entryPoint(view returns (address)
0x0000000071727de22e5e9d8baf0edac6f37da032
supportsNativeAssets(pure returns (bool)
true
Read-only
getBalance(address assetAddressview returns (uint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
isPasskeyClient(bytes accountview returns (bool)
isPasskeyTrader(bytes accountview returns (bool)
isValidSignature(bytes32 _hashbytes _encodedSignatureview returns (bytes4)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
deposit(uint256[] amountsaddress[] assetAddressespayable 
disableStopGuardian(
disableTrading(
disableWithdrawals(
enableStopGuardian(
enableTrading(
enableWithdrawals(
execute(address targetuint256 valuebytes datapayable returns (bytes result)
executeBatch(struct CoreAccountAbstractionCall[] callspayable returns (bytes[] results)
grantPasskeyClientRole(bytes account
grantPasskeyTraderRole(bytes account
grantRole(bytes32 roleaddress account
initialize(struct BaseNativeWrapperConfig baseNativeWrapperConfigstruct CoreAccessControlConfig coreAccessControlConfigaddress _globalTradeGuardianOverride
multicall(bytes[] datareturns (bytes[] results)
renounceRole(bytes32 roleaddress callerConfirmation
revokePasskeyClientRole(bytes account
revokePasskeyTraderRole(bytes account
revokeRole(bytes32 roleaddress account
swap(struct SwapPayload[] payloadsaddress outputTokenuint256 amountOutMinuint256 feePctpayable returns (uint256)
unwrap(uint256 amount
unwrapAll(
updateGlobalTradeGuardian(address _globalTradeGuardian
validateUserOp(struct CoreAccountAbstractionPackedUserOperation userOpbytes32 userOpHashuint256 missingAccountFundspayable returns (uint256 validationData)
withdraw(uint256 amountaddress erc20Tokenreturns (bool)
withdrawAll(address[] tokensreturns (bool)
withdrawAllTo(address[] tokensaddress toreturns (bool)
withdrawTo(uint256 amountaddress erc20Tokenaddress toreturns (bool)
wrap(uint256 amount
Events
Deposit(address indexed actoraddress[] assetAddressesuint256[] amounts
GlobalTradeGuardianUpdate(address indexed globalTradeGuardian
Initialized(uint64 version
NativeAssetWrap(address actoruint256 amountbool indexed wrappingToNative
NativeTransfer(address indexed fromuint256 value
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
StopGuardianUpdate(address indexed actorbool indexed isEnabled
SwapHandled(address[] swapTokensuint256[] swapAmountsaddress outputTokenuint256 outputAmountuint256 feeAmount
SwapHandlerUpdate(address actoraddress swapHandlerbool isEnabled
TradingDisabledUpdate(address indexed actorbool indexed isEnabled
Withdrawal(address indexed erc20Tokenuint256 amountaddress indexed recipient
WithdrawalsDisabledUpdate(address indexed actorbool indexed isEnabled
Constructor
constructor(
Fallback and receive
receive(
Errors
AccessControlBadConfirmation(
AccessControlUnauthorizedAccount(address accountbytes32 neededRole
AccountMissingRole(address _accountbytes32 _role
AccountNotAdmin(address arg0
AccountNotWhitelisted(address arg0
AddressEmptyCode(address target
AddressInsufficientBalance(address account
ECDSAInvalidSignature(
ECDSAInvalidSignatureLength(uint256 length
ECDSAInvalidSignatureS(bytes32 s
FailedInnerCall(
FnSelectorNotRecognized(
GlobalStopGuardianEnabled(
InsufficientSwapTokenBalance(
InvalidAddress(
InvalidAmount(
InvalidERC20Address(
InvalidExecutedOutputAmount(
InvalidFeePercent(
InvalidInitialization(
InvalidInputs(
InvalidMethod(bytes4 methodSig
InvalidMsgValue(
InvalidOutputToken(
InvalidReportedOutputAmount(
InvalidSignature(
InvalidSwapHandler(
NotInitializing(
ReentrancyGuardReentrantCall(
SafeERC20FailedOperation(address token
SlippageExceeded(uint256 _outputAmountuint256 _outputAmountMin
StopGuardianEnabled(
SwapTokenIsOutputToken(
TradingDisabled(
Unauthorized(
WithdrawalsDisabled(