Browse Source

Update smart contract ABIs

feature/update-smart-contracts
Oleksandr Brezhniev 3 years ago
parent
commit
6aac050858
3 changed files with 443 additions and 103 deletions
  1. +13
    -7
      eth/contracts/auction/HermezAuctionProtocol.go
  2. +424
    -72
      eth/contracts/hermez/Hermez.go
  3. +6
    -24
      eth/contracts/withdrawdelayer/WithdrawalDelayer.go

+ 13
- 7
eth/contracts/auction/HermezAuctionProtocol.go

@ -309,9 +309,12 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) Coordinators(opts *bi
Forger common.Address Forger common.Address
CoordinatorURL string CoordinatorURL string
}) })
if err != nil {
return *outstruct, err
}
outstruct.Forger = out[0].(common.Address)
outstruct.CoordinatorURL = out[1].(string)
outstruct.Forger = *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
outstruct.CoordinatorURL = *abi.ConvertType(out[1], new(string)).(*string)
return *outstruct, err return *outstruct, err
@ -884,12 +887,15 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) Slots(opts *bind.Call
BidAmount *big.Int BidAmount *big.Int
ClosedMinBid *big.Int ClosedMinBid *big.Int
}) })
if err != nil {
return *outstruct, err
}
outstruct.Bidder = out[0].(common.Address)
outstruct.Fulfilled = out[1].(bool)
outstruct.ForgerCommitment = out[2].(bool)
outstruct.BidAmount = out[3].(*big.Int)
outstruct.ClosedMinBid = out[4].(*big.Int)
outstruct.Bidder = *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
outstruct.Fulfilled = *abi.ConvertType(out[1], new(bool)).(*bool)
outstruct.ForgerCommitment = *abi.ConvertType(out[2], new(bool)).(*bool)
outstruct.BidAmount = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int)
outstruct.ClosedMinBid = *abi.ConvertType(out[4], new(*big.Int)).(**big.Int)
return *outstruct, err return *outstruct, err

+ 424
- 72
eth/contracts/hermez/Hermez.go
File diff suppressed because it is too large
View File


+ 6
- 24
eth/contracts/withdrawdelayer/WithdrawalDelayer.go
File diff suppressed because it is too large
View File


Loading…
Cancel
Save