Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
1478649
wip
shaspitz Jul 24, 2025
39344e0
wip
shaspitz Jul 30, 2025
e632375
Update PreconfManager.sol
shaspitz Jul 30, 2025
2cb77a7
Update DeployCore.s.sol
shaspitz Jul 30, 2025
20c861b
builds w/ tests
shaspitz Jul 30, 2025
6033810
abi+binding
shaspitz Jul 30, 2025
3ae09f3
fix bidder reg + tests
shaspitz Jul 30, 2025
9739727
fix bidder registry + tests more
shaspitz Jul 30, 2025
b7bba53
add TimestampOccurrence.del to withdrawAsBidder
shaspitz Jul 30, 2025
9e7ae2f
fix: appease linter
shaspitz Jul 30, 2025
2b2b271
todos
shaspitz Jul 31, 2025
0f738ba
feat: create DepositManager and associated integration
shaspitz Jul 31, 2025
3d7a29e
deposit manager fixes + test
shaspitz Jul 31, 2025
9fd056c
Update DepositManagerTest.sol
shaspitz Jul 31, 2025
7ed17e2
mas tests
shaspitz Aug 5, 2025
e190997
Update DepositManager.sol
shaspitz Aug 5, 2025
bd85974
more tests + more bidder registry changes
shaspitz Aug 6, 2025
e5cea2a
Update BidderRegistryTest.sol
shaspitz Aug 6, 2025
c9c91bb
set depositManagerImpl outside initializer
shaspitz Aug 6, 2025
1baca65
fix hardcoded preconf manager tests which rely on contract addr
shaspitz Aug 6, 2025
c6ca4bf
update abi+bindings
shaspitz Aug 6, 2025
ec9a6fe
nit
shaspitz Aug 6, 2025
fbe1593
add BidAmountReduced + test_OpenBid_GracefulTopUpFailure
shaspitz Aug 6, 2025
7bda089
Update BidderRegistry.sol
shaspitz Aug 6, 2025
37849d4
mas tests
shaspitz Aug 6, 2025
01f9912
mas tests
shaspitz Aug 6, 2025
6977a73
nit
shaspitz Aug 6, 2025
a130511
small contract changes + more tests
shaspitz Aug 6, 2025
e42c3ee
more tests, more changes
shaspitz Aug 6, 2025
e4bd248
test_bidderStakingAndWithdrawCycle
shaspitz Aug 6, 2025
2b59582
fix test_shouldReturnFunds
shaspitz Aug 6, 2025
7a8322f
Update BidderRegistryTest.sol
shaspitz Aug 6, 2025
fd4b0d0
abi+bindings
shaspitz Aug 6, 2025
2bc1370
rm unneeded test setup
shaspitz Aug 6, 2025
d59c92e
Update events_test.go
shaspitz Aug 6, 2025
d5a3580
Update stathandler.go
shaspitz Aug 7, 2025
945f6bc
finalize dashboard changes
shaspitz Aug 7, 2025
510ad35
changes to deposit.go logic (wip)
shaspitz Aug 8, 2025
4794088
Update deposit.go
shaspitz Aug 12, 2025
a2503a3
Update deposit.go
shaspitz Aug 12, 2025
38f5d4d
Update deposit_test.go
shaspitz Aug 12, 2025
6234ffd
wip
shaspitz Aug 12, 2025
4d4eab0
rm autodeposit dir
shaspitz Aug 12, 2025
e474136
rm autodeposit code
shaspitz Aug 12, 2025
039ef88
Update preconfirmation_test.go
shaspitz Aug 12, 2025
1e53eee
fix tracker
shaspitz Aug 12, 2025
55d19ae
fix tracker test
shaspitz Aug 12, 2025
e920b3f
feat: new bidder proto + service.go handling
shaspitz Aug 13, 2025
e1397db
builds
shaspitz Aug 13, 2025
d2a4774
more builds
shaspitz Aug 13, 2025
05b31b2
todos
shaspitz Aug 13, 2025
0eba4f2
api updates
shaspitz Aug 13, 2025
2ff9836
Update service_test.go
shaspitz Aug 13, 2025
748f0cc
appease linter for deposit manager
shaspitz Aug 13, 2025
626458a
abi+binding
shaspitz Aug 13, 2025
247721c
introduce setcode helper
shaspitz Aug 14, 2025
91fea0b
Update service_test.go
shaspitz Aug 14, 2025
2ba894e
fix setcode and add test
shaspitz Aug 14, 2025
d96827d
add setTargetDeposits
shaspitz Aug 14, 2025
dbf99b0
new deposit manager api
shaspitz Aug 14, 2025
9e7c897
Update service_test.go
shaspitz Aug 14, 2025
87598e8
comment e2e tests
shaspitz Aug 14, 2025
2ca8cc1
go work sync
shaspitz Aug 14, 2025
6a7e6da
appease linter
shaspitz Aug 14, 2025
a902d0b
Update deposit_test.go
shaspitz Aug 14, 2025
b50f264
Update DepositManager.sol
shaspitz Aug 14, 2025
11d1c2b
nit
shaspitz Aug 19, 2025
1948fd0
more nit
shaspitz Aug 19, 2025
40539c5
nit
shaspitz Aug 19, 2025
be0690a
Update main.go
shaspitz Aug 19, 2025
2e8958e
GetValidProviders api
shaspitz Aug 19, 2025
c44934a
fix client code
shaspitz Aug 19, 2025
d10001e
Update WindowFromBlockNumber.sol
shaspitz Aug 19, 2025
ab3ebd0
top up deposits within SetTargetDeposits api
shaspitz Aug 19, 2025
0c4949f
deposit-manager-contract p2p node param
shaspitz Aug 20, 2025
4eee944
enable deposit manager flag
shaspitz Aug 20, 2025
c7f3859
get deposit manager addr from bidder registry
shaspitz Aug 20, 2025
61d15ab
rm unneeded window related logic
shaspitz Aug 20, 2025
9f342d0
GetAllDeposits api
shaspitz Aug 20, 2025
e1ded49
SetTargetDeposits failed: no target deposits provided
shaspitz Aug 21, 2025
860e9c1
json body
shaspitz Aug 21, 2025
7aa66ad
target_deposit is now string
shaspitz Aug 21, 2025
4e6c6ab
dedup GetAllDepositsResponse
shaspitz Aug 21, 2025
c6d88e0
automatically set target deposits
shaspitz Aug 22, 2025
4c6bf47
separate func
shaspitz Aug 23, 2025
8e4f0c2
Update node.go
shaspitz Aug 23, 2025
86a70d0
Update node.go
shaspitz Aug 23, 2025
c10ddc2
Update node.go
shaspitz Aug 23, 2025
ed5142c
handle zeroed params in service.go
shaspitz Aug 25, 2025
94fbfad
DisableDepositManager api
shaspitz Aug 26, 2025
0c5d1a8
service.go nits
shaspitz Aug 26, 2025
761282d
Update BlockTrackerStorage.sol
shaspitz Aug 26, 2025
3d53cf1
Update BlockTracker.sol
shaspitz Aug 26, 2025
026a047
Update IBlockTracker.sol
shaspitz Aug 26, 2025
6d759b0
nits
shaspitz Aug 26, 2025
8695f39
Update setcode.go
shaspitz Aug 26, 2025
ad4025d
rm autodeposit integration test
shaspitz Aug 26, 2025
1dbcb3b
contract nits
shaspitz Aug 26, 2025
9c2be78
Merge branch 'main' into bidder-deposit-revamp
shaspitz Aug 26, 2025
244511a
Update orchestrator.go
shaspitz Aug 26, 2025
5395943
use events for GetValidProviders
shaspitz Aug 26, 2025
42b96b4
Update service_test.go
shaspitz Aug 26, 2025
e1ad736
fix: deposit api now returns relevant provider
shaspitz Aug 26, 2025
5d6b90d
fix: populate TargetDeposits in DepositManagerStatus api
shaspitz Aug 27, 2025
8fe24a4
Merge branch 'main' into bidder-deposit-revamp
shaspitz Aug 27, 2025
06064e7
retry GetValidProviders in bidder emulator
shaspitz Aug 27, 2025
a42caa8
fix: rm topology dep from bidder service struct
shaspitz Aug 28, 2025
8f5f95e
fix: consolidate bidder reg calls in deposit.go
shaspitz Aug 28, 2025
3c4a51a
nit test fix
shaspitz Aug 28, 2025
e5c7205
fix: dashboard
shaspitz Aug 28, 2025
4b41522
chore: remove all deprecated instances of deposit windows
shaspitz Aug 29, 2025
e3e2401
Merge branch 'main' into bidder-deposit-revamp
shaspitz Aug 29, 2025
04bb2ea
perf: use deposit.NewAvailableAmount in deposit.go
shaspitz Aug 30, 2025
264a6e9
fix: TestDepositManager
shaspitz Aug 30, 2025
463d65b
fix: TestEventHandler + TestEventManager
shaspitz Aug 30, 2025
beacd72
perf: only cache deposits relevant to own provider
shaspitz Aug 30, 2025
ae097ef
Update deposit_test.go
shaspitz Aug 30, 2025
bf45d45
Update deposit_test.go
shaspitz Aug 30, 2025
6f38683
fix: provider side deposit cache (#767)
shaspitz Aug 31, 2025
7a17945
fix: tracker
shaspitz Aug 31, 2025
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
556 changes: 427 additions & 129 deletions contracts-abi/abi/BidderRegistry.abi

Large diffs are not rendered by default.

58 changes: 0 additions & 58 deletions contracts-abi/abi/BlockTracker.abi
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,6 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "currentWindow",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getBlockWinner",
Expand All @@ -120,19 +107,6 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getBlocksPerWindow",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "pure"
},
{
"type": "function",
"name": "getBuilder",
Expand All @@ -152,19 +126,6 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getCurrentWindow",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "initialize",
Expand Down Expand Up @@ -404,25 +365,6 @@
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "window",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "NewWindow",
"inputs": [
{
"name": "window",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
Expand Down
293 changes: 293 additions & 0 deletions contracts-abi/abi/DepositManager.abi
Original file line number Diff line number Diff line change
@@ -0,0 +1,293 @@
[
{
"type": "constructor",
"inputs": [
{
"name": "_bidderRegistry",
"type": "address",
"internalType": "address"
},
{
"name": "_minBalance",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "fallback",
"stateMutability": "payable"
},
{
"type": "receive",
"stateMutability": "payable"
},
{
"type": "function",
"name": "BIDDER_REGISTRY",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "MIN_BALANCE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "setTargetDeposit",
"inputs": [
{
"name": "provider",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setTargetDeposits",
"inputs": [
{
"name": "providers",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "amounts",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "targetDeposits",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "topUpDeposit",
"inputs": [
{
"name": "provider",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "topUpDeposits",
"inputs": [
{
"name": "providers",
"type": "address[]",
"internalType": "address[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "CurrentBalanceAtOrBelowMin",
"inputs": [
{
"name": "provider",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "currentBalance",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "minBalance",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "CurrentDepositIsSufficient",
"inputs": [
{
"name": "provider",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "currentDeposit",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "targetDeposit",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "DepositToppedUp",
"inputs": [
{
"name": "provider",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "TargetDepositDoesNotExist",
"inputs": [
{
"name": "provider",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "TargetDepositSet",
"inputs": [
{
"name": "provider",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "TopUpReduced",
"inputs": [
{
"name": "provider",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "available",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "needed",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "WithdrawalRequestExists",
"inputs": [
{
"name": "provider",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "error",
"name": "InvalidFallback",
"inputs": []
},
{
"type": "error",
"name": "NotThisEOA",
"inputs": [
{
"name": "msgSender",
"type": "address",
"internalType": "address"
},
{
"name": "thisAddress",
"type": "address",
"internalType": "address"
}
]
}
]
Loading
Loading