Implement basic auction funcs in test.Client

This commit is contained in:
Eduard S
2020-09-08 11:31:51 +02:00
parent ec67075061
commit 56fe0fb05f
3 changed files with 452 additions and 101 deletions

View File

@@ -62,12 +62,11 @@ type AuctionVariables struct {
// AuctionState represents the state of the Rollup in the Smart Contract
type AuctionState struct {
// Mapping to control slot state
Slots map[int64]SlotState
Slots map[int64]*SlotState
// Mapping to control balances pending to claim
PendingBalances map[ethCommon.Address]*big.Int
// Mapping to register all the coordinators. The address used for the mapping is the forger address
Coordinators map[ethCommon.Address]Coordinator
Coordinators map[ethCommon.Address]*Coordinator
}
// AuctionEventNewBid is an event of the Auction Smart Contract