Skip to content

Commit

Permalink
feat: added bidder autodeposit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikelle committed Jun 24, 2024
1 parent 3573c09 commit 459b02d
Show file tree
Hide file tree
Showing 21 changed files with 1,396 additions and 290 deletions.
67 changes: 67 additions & 0 deletions contracts-abi/abi/BidderRegistry.abi
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,24 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "depositForNWindows",
"inputs": [
{
"name": "window",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "n",
"type": "uint16",
"internalType": "uint16"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "depositForSpecificWindow",
Expand Down Expand Up @@ -321,6 +339,24 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "moveDepositToWindow",
"inputs": [
{
"name": "fromWindow",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "toWindow",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "owner",
Expand Down Expand Up @@ -559,6 +595,37 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "BidderMovedFunds",
"inputs": [
{
"name": "bidder",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "fromWindow",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "toWindow",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "BidderRegistered",
Expand Down
13 changes: 0 additions & 13 deletions contracts-abi/abi/BlockTracker.abi
Original file line number Diff line number Diff line change
Expand Up @@ -240,19 +240,6 @@
],
"anonymous": false
},
{
"type": "event",
"name": "NewBlocksPerWindow",
"inputs": [
{
"name": "blocksPerWindow",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "NewL1Block",
Expand Down
4 changes: 2 additions & 2 deletions contracts-abi/abi/Oracle.abi
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@
"name": "CommitmentProcessed",
"inputs": [
{
"name": "commitmentHash",
"name": "commitmentIndex",
"type": "bytes32",
"indexed": false,
"indexed": true,
"internalType": "bytes32"
},
{
Expand Down
191 changes: 190 additions & 1 deletion contracts-abi/clients/BidderRegistry/BidderRegistry.go

Large diffs are not rendered by default.

136 changes: 1 addition & 135 deletions contracts-abi/clients/BlockTracker/BlockTracker.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 459b02d

Please sign in to comment.