Skip to content

Commit

Permalink
Merge pull request #10 from halo3mic/catchup_jan01
Browse files Browse the repository at this point in the history
catchup with fb changes - use mempool to build blocks
  • Loading branch information
halo3mic authored Jan 12, 2024
2 parents 72a7fd9 + 42ed194 commit 6eee5b2
Show file tree
Hide file tree
Showing 10 changed files with 223 additions and 33 deletions.
5 changes: 5 additions & 0 deletions abi/contracts/blockad/BlockAdV1.sol/BlockAdAuctionV1.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@
"internalType": "bytes",
"name": "extra",
"type": "bytes"
},
{
"internalType": "bool",
"name": "fillPending",
"type": "bool"
}
],
"internalType": "struct Suave.BuildBlockArgs",
Expand Down
5 changes: 5 additions & 0 deletions abi/contracts/blockad/BlockAdV2.sol/BlockAdAuctionV2.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@
"internalType": "bytes",
"name": "extra",
"type": "bytes"
},
{
"internalType": "bool",
"name": "fillPending",
"type": "bool"
}
],
"internalType": "struct Suave.BuildBlockArgs",
Expand Down
20 changes: 20 additions & 0 deletions abi/contracts/blockad/lib/Builder.sol/Builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@
"internalType": "bytes",
"name": "extra",
"type": "bytes"
},
{
"internalType": "bool",
"name": "fillPending",
"type": "bool"
}
],
"internalType": "struct Suave.BuildBlockArgs",
Expand Down Expand Up @@ -307,6 +312,11 @@
"internalType": "bytes",
"name": "extra",
"type": "bytes"
},
{
"internalType": "bool",
"name": "fillPending",
"type": "bool"
}
],
"internalType": "struct Suave.BuildBlockArgs",
Expand Down Expand Up @@ -400,6 +410,11 @@
"internalType": "bytes",
"name": "extra",
"type": "bytes"
},
{
"internalType": "bool",
"name": "fillPending",
"type": "bool"
}
],
"internalType": "struct Suave.BuildBlockArgs",
Expand Down Expand Up @@ -493,6 +508,11 @@
"internalType": "bytes",
"name": "extra",
"type": "bytes"
},
{
"internalType": "bool",
"name": "fillPending",
"type": "bool"
}
],
"internalType": "struct Suave.BuildBlockArgs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@
"internalType": "bytes",
"name": "extra",
"type": "bytes"
},
{
"internalType": "bool",
"name": "fillPending",
"type": "bool"
}
],
"internalType": "struct Suave.BuildBlockArgs",
Expand Down Expand Up @@ -243,6 +248,11 @@
"internalType": "bytes",
"name": "extra",
"type": "bytes"
},
{
"internalType": "bool",
"name": "fillPending",
"type": "bool"
}
],
"internalType": "struct Suave.BuildBlockArgs",
Expand Down Expand Up @@ -336,6 +346,11 @@
"internalType": "bytes",
"name": "extra",
"type": "bytes"
},
{
"internalType": "bool",
"name": "fillPending",
"type": "bool"
}
],
"internalType": "struct Suave.BuildBlockArgs",
Expand Down Expand Up @@ -429,6 +444,11 @@
"internalType": "bytes",
"name": "extra",
"type": "bytes"
},
{
"internalType": "bool",
"name": "fillPending",
"type": "bool"
}
],
"internalType": "struct Suave.BuildBlockArgs",
Expand Down
20 changes: 20 additions & 0 deletions abi/contracts/standard_peekers/bids.sol/EthBlockContract.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@
"internalType": "bytes",
"name": "extra",
"type": "bytes"
},
{
"internalType": "bool",
"name": "fillPending",
"type": "bool"
}
],
"internalType": "struct Suave.BuildBlockArgs",
Expand Down Expand Up @@ -232,6 +237,11 @@
"internalType": "bytes",
"name": "extra",
"type": "bytes"
},
{
"internalType": "bool",
"name": "fillPending",
"type": "bool"
}
],
"internalType": "struct Suave.BuildBlockArgs",
Expand Down Expand Up @@ -325,6 +335,11 @@
"internalType": "bytes",
"name": "extra",
"type": "bytes"
},
{
"internalType": "bool",
"name": "fillPending",
"type": "bool"
}
],
"internalType": "struct Suave.BuildBlockArgs",
Expand Down Expand Up @@ -418,6 +433,11 @@
"internalType": "bytes",
"name": "extra",
"type": "bytes"
},
{
"internalType": "bool",
"name": "fillPending",
"type": "bool"
}
],
"internalType": "struct Suave.BuildBlockArgs",
Expand Down
1 change: 1 addition & 0 deletions contracts/libraries/Suave.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ library Suave {
bytes32 random;
Withdrawal[] withdrawals;
bytes extra;
bool fillPending;
}

struct DataRecord {
Expand Down
69 changes: 37 additions & 32 deletions deployments/rigil/BlockAdAuctionV2.json

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions deployments/rigil/solcInputs/3f2cfcf165740f55302d083efbeaea10.json

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions deployments/rigil/solcInputs/7f031fc6e7dc25271d64b2857e669634.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion tasks/build-blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ function makeCalldata(
iface?: ethers.utils.Interface,
method?: string
) {
const fillPending = true
const blockArgs = [
bbArgs.slot,
bbArgs.proposerPubkey,
Expand All @@ -169,7 +170,8 @@ function makeCalldata(
bbArgs.gasLimit,
bbArgs.random,
bbArgs.withdrawals.map(w => [ w.index, w.validator, w.address, w.amount ]),
ethers.constants.HashZero
ethers.constants.HashZero,
fillPending,
]
if (!method)
method = 'buildMevShare'
Expand Down

0 comments on commit 6eee5b2

Please sign in to comment.