Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds reverting Txn list #171

Merged
merged 43 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
f253520
feat: adds more txn metadata to block cache
ckartik Jun 20, 2024
b671c64
feat: request receipts concurrently
ckartik Jun 20, 2024
3b310d6
feat: cleanup code
ckartik Jun 20, 2024
a6714d2
feat: adds txn receipts to tests
ckartik Jun 20, 2024
eddc24f
feat: adds a revert check in tests
ckartik Jun 20, 2024
4333285
feat: reorganizes the oracle check for revertable txns
ckartik Jun 24, 2024
a86257e
feat: adds a todo
ckartik Jun 24, 2024
2aadb4b
feat: adds revertinglist to protobuf
ckartik Jun 25, 2024
55e2f75
feat: be more descriptive in sendbid
ckartik Jun 25, 2024
ddd4a7e
feat: include reverting txns in sendBid
ckartik Jun 25, 2024
7d4a833
chore: use constant
ckartik Jun 26, 2024
ac32b42
feat: adds reverted txn protobuf
ckartik Jun 26, 2024
86cfd8b
feat: fix validation
ckartik Jun 26, 2024
d4250df
chore: fixes build fail
ckartik Jun 26, 2024
26a5334
feat: adds in revertingTxn field in contracts
ckartik Jun 28, 2024
03333c9
refactor: use struct to mitigate stack-too-deep errors
Jul 4, 2024
deac3fb
feat: resolves all issues with solidity tests
ckartik Jul 7, 2024
cd2b085
feat: removes console logs
ckartik Jul 7, 2024
c465883
chore: reverts updater to main
ckartik Jul 7, 2024
6a8a342
feat: generates new abi code
ckartik Jul 8, 2024
1ed9e01
feat: adds back revertible check
ckartik Jul 8, 2024
9324f0c
feat: resolves all issues with updater
ckartik Jul 8, 2024
2395d17
feat: fixes p2p test issues
ckartik Jul 8, 2024
95dd461
feat: adding swagger file. Note the buf version needs to be 1.31.0
Jul 8, 2024
6b2c57c
feat: adds verbose logs to tracker
ckartik Jul 8, 2024
5d873fa
feat: adds reverting txns to hashing
ckartik Jul 8, 2024
de23ab2
feat: fix correct hash
ckartik Jul 8, 2024
4b7a287
feat: fix all issues with hash mismatch
ckartik Jul 8, 2024
d22aeaa
feat: resolves all issues with tests
ckartik Jul 9, 2024
e61e0ea
feat: get tests to run
ckartik Jul 9, 2024
405108a
chore: update owner to alice in test
ckartik Jul 9, 2024
885e07f
chore: remove debugging log
ckartik Jul 9, 2024
ec8bb23
chore: lowercase logs
ckartik Jul 9, 2024
c7d0333
chore: adds a newline
ckartik Jul 9, 2024
bedd280
feat: fixes bufgen
ckartik Jul 9, 2024
d4193dc
chore: remove console sol
ckartik Jul 9, 2024
acc413f
feat: reattempt individual txns
ckartik Jul 9, 2024
2a7cd32
Merge branch 'main' into ckartik/add-reverting-txnlist
ckartik Jul 9, 2024
77c0db7
feat: adds a test for revertable txns
ckartik Jul 9, 2024
801e4d7
chore: remove debug log
ckartik Jul 10, 2024
52f942f
chore: removes debugging logs
ckartik Jul 10, 2024
23c5a70
Merge branch 'main' into ckartik/add-reverting-txnlist
ckartik Jul 10, 2024
d1dd7ca
chore: adds revertinglist param in comments
ckartik Jul 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
145 changes: 102 additions & 43 deletions contracts-abi/abi/PreConfCommitmentStore.abi
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@
"type": "string",
"internalType": "string"
},
{
"name": "revertingTxHashes",
"type": "string",
"internalType": "string"
},
{
"name": "commitmentHash",
"type": "bytes32",
Expand Down Expand Up @@ -299,6 +304,11 @@
"type": "string",
"internalType": "string"
},
{
"name": "_revertingTxHashes",
"type": "string",
"internalType": "string"
},
{
"name": "_bid",
"type": "uint256",
Expand Down Expand Up @@ -390,6 +400,11 @@
"type": "string",
"internalType": "string"
},
{
"name": "revertingTxHashes",
"type": "string",
"internalType": "string"
},
{
"name": "commitmentHash",
"type": "bytes32",
Expand Down Expand Up @@ -474,6 +489,11 @@
"type": "string",
"internalType": "string"
},
{
"name": "revertingTxHashes",
"type": "string",
"internalType": "string"
},
{
"name": "commitmentHash",
"type": "bytes32",
Expand Down Expand Up @@ -612,6 +632,11 @@
"type": "string",
"internalType": "string"
},
{
"name": "_revertingTxHashes",
"type": "string",
"internalType": "string"
},
{
"name": "_bid",
"type": "uint256",
Expand Down Expand Up @@ -792,6 +817,11 @@
"type": "string",
"internalType": "string"
},
{
"name": "revertingTxHashes",
"type": "string",
"internalType": "string"
},
{
"name": "decayStartTimeStamp",
"type": "uint64",
Expand Down Expand Up @@ -1027,6 +1057,11 @@
"type": "string",
"internalType": "string"
},
{
"name": "revertingTxHashes",
"type": "string",
"internalType": "string"
},
{
"name": "bidSignature",
"type": "bytes",
Expand All @@ -1052,49 +1087,61 @@
"name": "verifyPreConfCommitment",
"inputs": [
{
"name": "txnHash",
"type": "string",
"internalType": "string"
},
{
"name": "bid",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "blockNumber",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "decayStartTimeStamp",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "decayEndTimeStamp",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "bidHash",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "bidSignature",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "commitmentSignature",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "sharedSecretKey",
"type": "bytes",
"internalType": "bytes"
"name": "params",
"type": "tuple",
"internalType": "struct PreConfCommitmentStore.CommitmentParams",
"components": [
{
"name": "txnHash",
"type": "string",
"internalType": "string"
},
{
"name": "revertingTxHashes",
"type": "string",
"internalType": "string"
},
{
"name": "bid",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "blockNumber",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "decayStartTimeStamp",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "decayEndTimeStamp",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "bidHash",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "bidSignature",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "commitmentSignature",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "sharedSecretKey",
"type": "bytes",
"internalType": "bytes"
}
]
}
],
"outputs": [
Expand Down Expand Up @@ -1169,6 +1216,12 @@
"indexed": false,
"internalType": "string"
},
{
"name": "revertingTxHashes",
"type": "string",
"indexed": false,
"internalType": "string"
},
{
"name": "commitmentHash",
"type": "bytes32",
Expand Down Expand Up @@ -1287,6 +1340,12 @@
"indexed": false,
"internalType": "string"
},
{
"name": "revertingTxHashes",
"type": "string",
"indexed": false,
"internalType": "string"
},
{
"name": "bid",
"type": "uint256",
Expand Down
212 changes: 117 additions & 95 deletions contracts-abi/clients/PreConfCommitmentStore/PreConfCommitmentStore.go

Large diffs are not rendered by default.

Loading
Loading