Skip to content

Commit

Permalink
feat: upgradable contracts (#55)
Browse files Browse the repository at this point in the history
* feat: squashed changes of previous pr

commit d866728
Author: Shawn <[email protected]>
Date:   Wed May 1 16:37:29 2024 -0700

    fix: deploy scripts + new contract addrs

commit dfc629e
Author: Shawn <[email protected]>
Date:   Wed May 1 13:09:33 2024 -0700

    fix: rm stale todo and standardize solidity version

commit c65f440
Author: Shawn <[email protected]>
Date:   Wed May 1 01:30:44 2024 -0700

    feat: update abis

commit beb8dd2
Author: Shawn <[email protected]>
Date:   Wed May 1 01:25:51 2024 -0700

    fix: expect revert w/o string for whitelist

commit 5a5edd6
Author: Shawn <[email protected]>
Date:   Wed May 1 01:18:49 2024 -0700

    fix: remove inherited initializer

commit 60a3341
Author: Shawn <[email protected]>
Date:   Tue Apr 30 19:05:33 2024 -0700

    fix: make preconf contract match .sol name

commit e072ee7
Author: Shawn <[email protected]>
Date:   Tue Apr 30 18:47:02 2024 -0700

    fix: move default values to initializer

commit 4d06bfd
Author: Shawn <[email protected]>
Date:   Tue Apr 30 18:38:19 2024 -0700

    feat: add wip changes that compiles

commit fc3dd87
Author: Alok <[email protected]>
Date:   Thu May 2 20:13:26 2024 +0530

    fix: round decay to 100 if greater

commit 91b7bfa
Author: aloknerurkar <[email protected]>
Date:   Thu May 2 16:35:02 2024 +0530

    feat(tracker): split preconf protocol for better organisation (#44)

commit d370b7c
Author: Mikelle <[email protected]>
Date:   Wed May 1 19:39:16 2024 +0200

    refactor: changed 10000 to timeDiff in real-bidder

commit 132871c
Author: Mikelle <[email protected]>
Date:   Wed May 1 16:51:28 2024 +0200

    feat: added logs to updater

commit 978a2ea
Author: Mikelle <[email protected]>
Date:   Wed May 1 14:00:36 2024 +0200

    fix: updated dir in goreleaser

commit fdf4c6a
Author: Mikelle <[email protected]>
Date:   Wed May 1 13:19:29 2024 +0200

    fix: added missing goreleaser to real bidder

commit 9d890c6
Author: Mikelle <[email protected]>
Date:   Wed May 1 13:14:52 2024 +0200

    fix: updated artifacts workflow

commit ee345d7
Author: Mikelle <[email protected]>
Date:   Wed May 1 01:42:10 2024 +0200

    fix: move blocksPerWindow set up to separated func

commit fa3dc68
Author: aloknerurkar <[email protected]>
Date:   Wed May 1 04:39:34 2024 +0530

    fix: integration test (#39)

    Co-authored-by: Alok <[email protected]>

commit 92943b4
Author: Mikelle <[email protected]>
Date:   Tue Apr 30 20:29:55 2024 +0200

    fix: contract tests

commit 9cc6434
Author: Mikelle <[email protected]>
Date:   Tue Apr 30 19:59:41 2024 +0200

    fix: change blocksnumber to 10 for the testing

commit cc2dc86
Author: Mikelle <[email protected]>
Date:   Mon Apr 29 23:51:51 2024 +0200

    refactor: changed balance from map to lru cache

commit 1f87498
Author: Mikelle <[email protected]>
Date:   Mon Apr 29 23:42:54 2024 +0200

    fix: whitespace

commit 11814d1
Author: Mikelle <[email protected]>
Date:   Mon Apr 29 23:41:24 2024 +0200

    fix: deposit function

commit 9eb248d
Author: Alok <[email protected]>
Date:   Tue Apr 30 02:47:25 2024 +0530

    fix: events unit test

commit 0456a5a
Author: Alok <[email protected]>
Date:   Tue Apr 30 02:28:18 2024 +0530

    fix: start publisher

commit c297dbc
Author: Mikelle <[email protected]>
Date:   Mon Apr 29 22:37:02 2024 +0200

    fix: delete unused

commit 2f28d82
Author: Mikelle <[email protected]>
Date:   Mon Apr 29 22:29:26 2024 +0200

    fix: updated handshake ver

commit 9e93397
Author: Mikelle <[email protected]>
Date:   Mon Apr 29 22:27:03 2024 +0200

    fix: abi gen with new ver

commit e78c7ad
Author: Alok <[email protected]>
Date:   Tue Apr 30 01:46:41 2024 +0530

    fix: go mod tidy oracle

commit 75c4ada
Author: aloknerurkar <[email protected]>
Date:   Tue Apr 30 01:24:08 2024 +0530

    feat: withdraw API (#38)

commit 775f939
Author: Mikelle <[email protected]>
Date:   Mon Apr 29 17:37:18 2024 +0200

    refactor: updated abi

commit 0bf93a4
Author: Mikelle <[email protected]>
Date:   Mon Apr 29 15:54:59 2024 +0200

    refactor: get rid of logs parsing, redundant checks and function in sc

commit 060b3a9
Author: Mikelle <[email protected]>
Date:   Fri Apr 26 23:23:30 2024 +0200

    refactor: moved to x packages

commit 0178a1b
Author: aloknerurkar <[email protected]>
Date:   Fri Apr 26 19:42:19 2024 +0530

    feat(oracle): e2e privacy changes (#35)

commit cce95c4
Author: Mikelle <[email protected]>
Date:   Wed Apr 24 20:04:56 2024 +0200

    feat: upload p2p (mev-commit) changes for privacy e2e

commit 3a8dba4
Author: Mikelle <[email protected]>
Date:   Wed Apr 24 15:05:35 2024 +0200

    feat: updated abi

commit cbdf531
Author: Mikelle <[email protected]>
Date:   Wed Apr 24 14:54:54 2024 +0200

    feat: upload contract changes

* fix: stack too deep errors for oracle test

* feat: update abis

* docs: rm todo

* refactor: rename proxy vars

* feat: apply suggestions from code review

Co-Authored-By: Mikhail Wall <[email protected]>

* feat: update contract values

* chore: use geth from main

---------

Co-authored-by: Mikhail Wall <[email protected]>
  • Loading branch information
shaspitz and Mikelle authored May 17, 2024
1 parent cff5c34 commit 5974d42
Show file tree
Hide file tree
Showing 50 changed files with 2,129 additions and 486 deletions.
111 changes: 84 additions & 27 deletions contracts-abi/abi/BidderRegistry.abi
Original file line number Diff line number Diff line change
@@ -1,33 +1,7 @@
[
{
"type": "constructor",
"inputs": [
{
"name": "_minDeposit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_feeRecipient",
"type": "address",
"internalType": "address"
},
{
"name": "_feePercent",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "_owner",
"type": "address",
"internalType": "address"
},
{
"name": "_blockTracker",
"type": "address",
"internalType": "address"
}
],
"inputs": [],
"stateMutability": "nonpayable"
},
{
Expand Down Expand Up @@ -235,6 +209,39 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "initialize",
"inputs": [
{
"name": "_minDeposit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_feeRecipient",
"type": "address",
"internalType": "address"
},
{
"name": "_feePercent",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "_owner",
"type": "address",
"internalType": "address"
},
{
"name": "_blockTracker",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "lockedFunds",
Expand Down Expand Up @@ -604,6 +611,19 @@
],
"anonymous": false
},
{
"type": "event",
"name": "Initialized",
"inputs": [
{
"name": "version",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipTransferred",
Expand All @@ -622,5 +642,42 @@
}
],
"anonymous": false
},
{
"type": "error",
"name": "InvalidInitialization",
"inputs": []
},
{
"type": "error",
"name": "NotInitializing",
"inputs": []
},
{
"type": "error",
"name": "OwnableInvalidOwner",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "OwnableUnauthorizedAccount",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "ReentrancyGuardReentrantCall",
"inputs": []
}
]
66 changes: 59 additions & 7 deletions contracts-abi/abi/BlockTracker.abi
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
[
{
"type": "constructor",
"inputs": [
{
"name": "_owner",
"type": "address",
"internalType": "address"
}
],
"inputs": [],
"stateMutability": "nonpayable"
},
{
Expand Down Expand Up @@ -183,6 +177,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "initialize",
"inputs": [
{
"name": "_owner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "owner",
Expand Down Expand Up @@ -234,6 +241,19 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "Initialized",
"inputs": [
{
"name": "version",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"type": "event",
"name": "NewBlocksPerWindow",
Expand Down Expand Up @@ -303,5 +323,37 @@
}
],
"anonymous": false
},
{
"type": "error",
"name": "InvalidInitialization",
"inputs": []
},
{
"type": "error",
"name": "NotInitializing",
"inputs": []
},
{
"type": "error",
"name": "OwnableInvalidOwner",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "OwnableUnauthorizedAccount",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
]
}
]
96 changes: 74 additions & 22 deletions contracts-abi/abi/L1Gateway.abi
Original file line number Diff line number Diff line change
@@ -1,28 +1,7 @@
[
{
"type": "constructor",
"inputs": [
{
"name": "_owner",
"type": "address",
"internalType": "address"
},
{
"name": "_relayer",
"type": "address",
"internalType": "address"
},
{
"name": "_finalizationFee",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_counterpartyFee",
"type": "uint256",
"internalType": "uint256"
}
],
"inputs": [],
"stateMutability": "nonpayable"
},
{
Expand Down Expand Up @@ -78,6 +57,34 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "initialize",
"inputs": [
{
"name": "_owner",
"type": "address",
"internalType": "address"
},
{
"name": "_relayer",
"type": "address",
"internalType": "address"
},
{
"name": "_finalizationFee",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_counterpartyFee",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "initiateTransfer",
Expand Down Expand Up @@ -174,6 +181,19 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "Initialized",
"inputs": [
{
"name": "version",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipTransferred",
Expand Down Expand Up @@ -248,5 +268,37 @@
}
],
"anonymous": false
},
{
"type": "error",
"name": "InvalidInitialization",
"inputs": []
},
{
"type": "error",
"name": "NotInitializing",
"inputs": []
},
{
"type": "error",
"name": "OwnableInvalidOwner",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "OwnableUnauthorizedAccount",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
]
}
]
Loading

0 comments on commit 5974d42

Please sign in to comment.