@@ -66,21 +66,21 @@ Alternatively, you can pass your API key directly using the `--etherscan-api-key
6666
67671 . Build the Docker container:
6868 ``` bash
69- mkdir -p execution /docker &&
69+ mkdir -p outputs /docker &&
7070 docker build -t evm-lisa:latest .
7171 ```
7272
73732 . Run EVMLiSA with Docker:
7474 ``` bash
7575 docker run --rm -it \
7676 -v $( pwd) /.env:/app/.env \
77- -v $( pwd) /execution /docker:/app/execution/results \
77+ -v $( pwd) /outputs /docker:/app/outputs \
7878 evm-lisa:latest \
7979 [options]
8080 ```
8181
8282 - ` -v $(pwd)/.env:/app/.env ` : Mounts your environment file
83- - ` -v $(pwd)/execution /docker:/app/execution/results ` : Shares the results directory
83+ - ` -v $(pwd)/outputs /docker:/app/outputs ` : Shares the results directory
8484
8585### Using Command Line
8686
@@ -153,7 +153,7 @@ java -jar build/libs/evm-lisa-all.jar \
153153``` bash
154154docker run --rm -it \
155155-v $( pwd) /.env:/app/.env \
156- -v $( pwd) /execution /docker:/app/execution/results \
156+ -v $( pwd) /outputs /docker:/app/outputs \
157157evm-lisa:latest \
158158-a 0x7c21C4Bbd63D05Fa9F788e38d14e18FC52E9557B \
159159--stack-size 64 \
@@ -205,39 +205,53 @@ For cross-chain analysis, EVMLiSA supports policy files that define event-functi
205205{
206206 "policy" : [
207207 {
208- "event" : " EventName1" ,
209- "function" : " functionName1"
210- },
211- {
212- "event" : " EventName2" ,
213- "function" : " functionName2"
208+ "sourceFunction" : {
209+ "name" : " deposit" ,
210+ "events" : [" Deposit" ]
211+ },
212+ "destinationFunction" : {
213+ "name" : " deposit"
214+ }
214215 }
215216 ]
216217}
217218```
218219
219220### Policy structure explanation
220221
221- - ** policy** : An array of objects, each containing:
222- - ** event** : The name of the event that triggers a cross-chain operation
223- - ** function** : The name of the function that should be called in response to the event
222+ - ` policy ` : An array of objects, each containing:
223+ - ` sourceFunction ` : An object describing the source function and its events:
224+ - ` name ` : The name of the function that emits the event
225+ - ` events ` : An array of event names that trigger cross-chain operations
226+ - ` destinationFunction ` : An object describing the destination function:
227+ - ` name ` : The name of the function that should be called in response to the event
224228
225229### Example
226230
227231``` json
228232{
229233 "policy" : [
230234 {
231- "event" : " Deposit" ,
232- "function" : " deposit"
233- },
234- {
235- "event" : " TransferOut" ,
236- "function" : " transferOut"
235+ "sourceFunction" : {
236+ "name" : " initGenesisBlock" ,
237+ "events" : [
238+ " InitGenesisBlockEvent"
239+ ]
240+ },
241+ "destinationFunction" : {
242+ "name" : " initGenesisBlock"
243+ }
237244 },
238245 {
239- "event" : " VaultTransfer" ,
240- "function" : " returnVaultAssets"
246+ "sourceFunction" : {
247+ "name" : " pause" ,
248+ "events" : [
249+ " Paused"
250+ ]
251+ },
252+ "destinationFunction" : {
253+ "name" : " pause"
254+ }
241255 }
242256 ]
243257}
0 commit comments