Skip to content

@acl:operationId

Operation id of an AccessManager call (hashOperation of caller, target and calldata), for use with @acl:operationSchedule.

⚗️ Experimental — available at next.evmcrispr.com.

Returns: bytes32

@acl:operationId(manager caller target signature params?)
NameTypeDescription
manageraddressAccessManager address
calleraddressAccount that schedules the operation
targetaddressManaged contract address
signaturestringFunction signature (e.g. mint(address,uint256))
[params]arrayArguments matching the signature types
load acl
set $manager 0xc0dbDcA66a0636236fAbe1B3C16B1bD4C84bB1E1
set $token 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb
set $id @acl:operationId($manager @me $token "setDuration(uint256)" [1y])
print @acl:operationSchedule($manager $id)

Read hashOperation(caller, target, data) at assertion time — the calldata still encodes at composition time.

load acl
set $manager 0xa111111111111111111111111111111111111111
set $token 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
assert @operationSchedule!($manager @operationId!($manager @me $token "pause()")) == 0