Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec239bb

Browse files
committed
move setting files for mev ctf to the dir
1 parent a6c8888 commit ec239bb

File tree

4 files changed

+923
-731
lines changed

4 files changed

+923
-731
lines changed

src/MEVShareCTF/.env.template

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
RPC_URL=
2+
EXECUTOR_KEY=
3+
FB_REPUTATION_KEY=
4+
5+
EXECUTOR_KEY_=
6+
FB_REPUTATION_KEY_=
7+
8+
FOUNDRY_ETH_RPC_URL=${RPC_URL}
9+
10+
BUNDLE_SIMULATION=true

src/MEVShareCTF/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,11 @@ async function backrunAttempt(currentBlockNumber: number, nonce: number, pending
260260
function transactionIsRelatedToTarget(pendingTx: IPendingTransaction) {
261261
return (pendingTx.logs || []).some(log => log.address === TARGET_ADDRESS)
262262
}
263+
```
263264

265+
The command to execute it is:
266+
```bash
267+
npx ts-node 10x/solver.ts
264268
```
265269

266270
## Challenge 2: MevShareCTFSimple 2

package.json renamed to src/MEVShareCTF/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"@flashbots/mev-share-client": "^0.7.6",
1515
"ethers": "^6.7.0"
1616
},
17-
"packageManager": "[email protected]+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
17+
"packageManager": "[email protected]+sha512.ee7b93e0c2bd11409c6424f92b866f31d3ea1bef5fbe47d3c7500cdc3c9668833d2e55681ad66df5b640c61fa9dc25d546efa54d76d7f8bf54b13614ac293631"
1818
}

0 commit comments

Comments
 (0)