From 2e6700814281f01c6a566793886b23b1161ea28c Mon Sep 17 00:00:00 2001 From: laisolizq Date: Fri, 23 Oct 2020 13:52:44 +0200 Subject: [PATCH] Ethclient: add readme & test env variables --- eth/.env.example | 7 ++ eth/README.md | 57 ++++++++++++ eth/auction_test.go | 21 ++--- eth/contracts/README.md | 2 +- .../auction/HermezAuctionProtocol.go | 2 +- eth/contracts/hermez/Hermez.go | 2 +- eth/main_test.go | 86 ++++++++++++------- eth/rollup_test.go | 2 +- go.mod | 1 + go.sum | 1 + 10 files changed, 134 insertions(+), 47 deletions(-) create mode 100644 eth/.env.example create mode 100644 eth/README.md diff --git a/eth/.env.example b/eth/.env.example new file mode 100644 index 0000000..9179f44 --- /dev/null +++ b/eth/.env.example @@ -0,0 +1,7 @@ +GENESIS_BLOCK=97 +AUCTION="0x038B86d9d8FAFdd0a02ebd1A476432877b0107C8" +AUCTION_TEST="0xEcc0a6dbC0bb4D51E4F84A315a9e5B0438cAD4f0" +TOKENHEZ="0xf4e77E5Da47AC3125140c470c71cBca77B5c638c" +HERMEZ="0xD6C850aeBFDC46D7F4c207e445cC0d6B0919BDBe" +WDELAYER="0x500D1d6A4c7D8Ae28240b47c8FCde034D827fD5e" +WDELAYER_TEST="0x1d80315fac6aBd3EfeEbE97dEc44461ba7556160" \ No newline at end of file diff --git a/eth/README.md b/eth/README.md new file mode 100644 index 0000000..0e18b86 --- /dev/null +++ b/eth/README.md @@ -0,0 +1,57 @@ + Test Ethclient - Contracts + +## Contracts + +The first step is to clone the github repository where the contracts are located: + +`git clone https://github.com/hermeznetwork/contracts.git` + +While the prepared deployment is not found to master, branch in repository must be changed: + +`git checkout feature/ethclient-test-deployment` + +Now, install the dependencies: + +`npm i` + +Go to where the deployment scripts for the test are found: + +`cd scripts/ethclient-test-deployment` + +Now, a bash script has to be run to do the deployment: +`./test-deployment` + +This bash file follows these steps: +- `npx builder node`: a local blockchain to do our tests +- `npx buidler run --network localhost test-deployment.js`: run the deployment on the local blockchain + + +An output file necessary for the next step is obtained: `deploy-output`. + +> The files that find in `/eth/contracts` must be obtained from the same contract that we deploy in this step +## Ethclient Test + +Different environment variables are necessary to run this test. +They must be taken from the output file of the previous step. + +They can be provided by file called `.env`: + +``` +GENESIS_BLOCK=97 +AUCTION="0x038B86d9d8FAFdd0a02ebd1A476432877b0107C8" +AUCTION_TEST="0xEcc0a6dbC0bb4D51E4F84A315a9e5B0438cAD4f0" +TOKENHEZ="0xf4e77E5Da47AC3125140c470c71cBca77B5c638c" +HERMEZ="0xD6C850aeBFDC46D7F4c207e445cC0d6B0919BDBe" +WDELAYER="0x500D1d6A4c7D8Ae28240b47c8FCde034D827fD5e" +WDELAYER_TEST="0x1d80315fac6aBd3EfeEbE97dEc44461ba7556160" +``` + +> An example is found in `/etc/.env.example` + +And then run test: + +`INTEGRATION=1 go test` + +Or they can be provided as a parameter in the command that runs the test: + +`INTEGRATION=1 GENESIS_BLOCK=97 AUCTION="0x038B86d9d8FAFdd0a02ebd1A476432877b0107C8" AUCTION_TEST="0xEcc0a6dbC0bb4D51E4F84A315a9e5B0438cAD4f0" TOKENHEZ="0xf4e77E5Da47AC3125140c470c71cBca77B5c638c" HERMEZ="0xD6C850aeBFDC46D7F4c207e445cC0d6B0919BDBe" WDELAYER="0x500D1d6A4c7D8Ae28240b47c8FCde034D827fD5e" WDELAYER_TEST="0x1d80315fac6aBd3EfeEbE97dEc44461ba7556160" go test` diff --git a/eth/auction_test.go b/eth/auction_test.go index 9115cd3..4fe21da 100644 --- a/eth/auction_test.go +++ b/eth/auction_test.go @@ -13,20 +13,13 @@ const openAuctionSlotsConst = uint16(4320) const closedAuctionSlotsConst = uint16(2) const outbiddingConst = uint16(1000) const currentSlotConst = 0 +const BLOCKSPERSLOT = uint8(40) +const minBidStr = "10000000000000000000" +const URL = "http://localhost:3000" var allocationRatioConst [3]uint16 = [3]uint16{4000, 4000, 2000} - var auctionClientTest *AuctionClient -//var genesisBlock = 93 -var genesisBlock = 97 - -var minBidStr = "10000000000000000000" -var URL = "http://localhost:3000" - -// var newURL = "http://localhost:3002" -var BLOCKSPERSLOT = uint8(40) - func TestAuctionGetCurrentSlotNumber(t *testing.T) { currentSlot, err := auctionClientTest.AuctionGetCurrentSlotNumber() require.Nil(t, err) @@ -41,7 +34,7 @@ func TestAuctionConstants(t *testing.T) { auctionConstants, err := auctionClientTest.AuctionConstants() require.Nil(t, err) assert.Equal(t, auctionConstants.BlocksPerSlot, BLOCKSPERSLOT) - assert.Equal(t, auctionConstants.GenesisBlockNum, int64(genesisBlock)) + assert.Equal(t, auctionConstants.GenesisBlockNum, genesisBlock) assert.Equal(t, auctionConstants.HermezRollup, hermezRollupAddressTestConst) assert.Equal(t, auctionConstants.InitialMinimalBidding, INITMINBID) assert.Equal(t, auctionConstants.TokenHEZ, tokenHEZAddressConst) @@ -284,7 +277,7 @@ func TestAuctionBid(t *testing.T) { func TestAuctionGetSlotNumber(t *testing.T) { slotConst := 4 - blockNum := int(BLOCKSPERSLOT)*slotConst + genesisBlock + blockNum := int(BLOCKSPERSLOT)*slotConst + int(genesisBlock) slot, err := auctionClientTest.AuctionGetSlotNumber(int64(blockNum)) require.Nil(t, err) @@ -293,7 +286,7 @@ func TestAuctionGetSlotNumber(t *testing.T) { func TestAuctionCanForge(t *testing.T) { slotConst := 4 - blockNum := int(BLOCKSPERSLOT)*slotConst + genesisBlock + blockNum := int(BLOCKSPERSLOT)*slotConst + int(genesisBlock) canForge, err := auctionClientTest.AuctionCanForge(governanceAddressConst, int64(blockNum)) require.Nil(t, err) @@ -351,7 +344,7 @@ func TestAuctionForge(t *testing.T) { auctionClientTestHermez, err := NewAuctionClient(ethereumClientHermez, auctionTestAddressConst, tokenHEZ) require.Nil(t, err) slotConst := 4 - blockNum := int64(int(BLOCKSPERSLOT)*slotConst + genesisBlock) + blockNum := int64(int(BLOCKSPERSLOT)*slotConst + int(genesisBlock)) currentBlockNum, _ := auctionClientTestHermez.client.EthCurrentBlock() blocksToAdd := blockNum - currentBlockNum addBlocks(blocksToAdd, ethClientDialURL) diff --git a/eth/contracts/README.md b/eth/contracts/README.md index bbb2d6b..c00da75 100644 --- a/eth/contracts/README.md +++ b/eth/contracts/README.md @@ -10,9 +10,9 @@ abigen --abi=HEZ.abi --bin=HEZ.bin --pkg=HEZ --out=HEZ.go ``` You must compile the contracts to get the `.bin` and `.abi` files. The contracts used are in the repo: https://github.com/hermeznetwork/contracts +Branch: `RemoveERC777` Specifically they have been processed in the commit with hash: `7574ba47fd3d7dab2653a22f57b15c69280350dc` - Versions: ``` $ abigen --version diff --git a/eth/contracts/auction/HermezAuctionProtocol.go b/eth/contracts/auction/HermezAuctionProtocol.go index 1f74ee7..1837d34 100644 --- a/eth/contracts/auction/HermezAuctionProtocol.go +++ b/eth/contracts/auction/HermezAuctionProtocol.go @@ -30,7 +30,7 @@ var ( const HermezAuctionProtocolABI = "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"}],\"name\":\"HEZClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16[3]\",\"name\":\"newAllocationRatio\",\"type\":\"uint16[3]\"}],\"name\":\"NewAllocationRatio\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"slot\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"bidAmount\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"bidder\",\"type\":\"address\"}],\"name\":\"NewBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newBootCoordinator\",\"type\":\"address\"}],\"name\":\"NewBootCoordinator\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"newClosedAuctionSlots\",\"type\":\"uint16\"}],\"name\":\"NewClosedAuctionSlots\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"slotSet\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newInitialMinBid\",\"type\":\"uint128\"}],\"name\":\"NewDefaultSlotSetBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newDonationAddress\",\"type\":\"address\"}],\"name\":\"NewDonationAddress\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"forger\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"slotToForge\",\"type\":\"uint128\"}],\"name\":\"NewForge\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"bidder\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"forger\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"slotToForge\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"burnAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"donationAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"governanceAmount\",\"type\":\"uint128\"}],\"name\":\"NewForgeAllocated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"newOpenAuctionSlots\",\"type\":\"uint16\"}],\"name\":\"NewOpenAuctionSlots\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"newOutbidding\",\"type\":\"uint16\"}],\"name\":\"NewOutbidding\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"newSlotDeadline\",\"type\":\"uint8\"}],\"name\":\"NewSlotDeadline\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"bidder\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"forger\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"coordinatorURL\",\"type\":\"string\"}],\"name\":\"SetCoordinator\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BLOCKS_PER_SLOT\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"INITIAL_MINIMAL_BIDDING\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forger\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"canForge\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"slotSet\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"newInitialMinBid\",\"type\":\"uint128\"}],\"name\":\"changeDefaultSlotSetBid\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimHEZ\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"coordinators\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"forger\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"coordinatorURL\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forger\",\"type\":\"address\"}],\"name\":\"forge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"genesisBlock\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAllocationRatio\",\"outputs\":[{\"internalType\":\"uint16[3]\",\"name\":\"\",\"type\":\"uint16[3]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBootCoordinator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"bidder\",\"type\":\"address\"}],\"name\":\"getClaimableHEZ\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getClosedAuctionSlots\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentSlotNumber\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"slotSet\",\"type\":\"uint8\"}],\"name\":\"getDefaultSlotSetBid\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDonationAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"slot\",\"type\":\"uint128\"}],\"name\":\"getMinBidBySlot\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOpenAuctionSlots\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOutbidding\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSlotDeadline\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"blockNumber\",\"type\":\"uint128\"}],\"name\":\"getSlotNumber\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"slot\",\"type\":\"uint128\"}],\"name\":\"getSlotSet\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"genesis\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"hermezRollupAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"governanceAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"donationAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"bootCoordinatorAddress\",\"type\":\"address\"}],\"name\":\"hermezAuctionProtocolInitializer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hermezRollup\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"pendingBalances\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"slot\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"bidAmount\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"permit\",\"type\":\"bytes\"}],\"name\":\"processBid\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"startingSlot\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"endingSlot\",\"type\":\"uint128\"},{\"internalType\":\"bool[6]\",\"name\":\"slotSets\",\"type\":\"bool[6]\"},{\"internalType\":\"uint128\",\"name\":\"maxBid\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"minBid\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"permit\",\"type\":\"bytes\"}],\"name\":\"processMultiBid\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16[3]\",\"name\":\"newAllocationRatio\",\"type\":\"uint16[3]\"}],\"name\":\"setAllocationRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newBootCoordinator\",\"type\":\"address\"}],\"name\":\"setBootCoordinator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newClosedAuctionSlots\",\"type\":\"uint16\"}],\"name\":\"setClosedAuctionSlots\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forger\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"coordinatorURL\",\"type\":\"string\"}],\"name\":\"setCoordinator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newDonationAddress\",\"type\":\"address\"}],\"name\":\"setDonationAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newOpenAuctionSlots\",\"type\":\"uint16\"}],\"name\":\"setOpenAuctionSlots\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newOutbidding\",\"type\":\"uint16\"}],\"name\":\"setOutbidding\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newDeadline\",\"type\":\"uint8\"}],\"name\":\"setSlotDeadline\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"name\":\"slots\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"bidder\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"fulfilled\",\"type\":\"bool\"},{\"internalType\":\"uint128\",\"name\":\"bidAmount\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"closedMinBid\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenHEZ\",\"outputs\":[{\"internalType\":\"contractIHEZToken\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]" // HermezAuctionProtocolBin is the compiled bytecode used for deploying new contracts. -var HermezAuctionProtocolBin = "0x608060405234801561001057600080fd5b50613725806100206000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c806379a135e311610125578063b3dc7bb1116100ad578063d92bdda31161007c578063d92bdda314610891578063dfd5281b146108b2578063e6065914146108d3578063ec29159b146108db578063ecdae41b1461091b5761021c565b8063b3dc7bb1146107e3578063b5f7f2f014610809578063bc41556714610811578063c63de515146108705761021c565b806387e6b6bb116100f457806387e6b6bb146106df578063a48af096146106ff578063ac4b9012146107ad578063ac5f658b146107b5578063aebd6d98146107db5761021c565b806379a135e3146106175780637c643b701461061f578063827874051461064d57806383b1f6a01461069f5761021c565b806354c03ab7116101a85780635cca4903116101775780635cca4903146105485780636074db641461056e57806362945af2146105c35780636dfe47c9146105e95780636f48e79b146105f15761021c565b806354c03ab71461042357806355b442e614610447578063564e6a711461044f578063583ad0dd1461046f5761021c565b806337d1bd0b116101ef57806337d1bd0b146103215780634b93b7fa146103475780634cdc9c63146103d65780634da9639d146103de5780634e5a5178146103fd5761021c565b80630c4da4f6146102215780630eeaf0801461024557806313de9af2146102fb5780632243de4714610319575b600080fd5b610229610941565b604080516001600160801b039092168252519081900360200190f35b6102f96004803603604081101561025b57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561028557600080fd5b82018360208201111561029757600080fd5b803590602001918460018302840111600160201b831117156102b857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610951945050505050565b005b610303610a42565b6040805160ff9092168252519081900360200190f35b610303610a51565b6102296004803603602081101561033757600080fd5b50356001600160801b0316610a56565b6102f96004803603608081101561035d57600080fd5b6001600160801b0382358116926020810135821692604082013590921691810190608081016060820135600160201b81111561039857600080fd5b8201836020820111156103aa57600080fd5b803590602001918460018302840111600160201b831117156103cb57600080fd5b509092509050610c11565b610229610f8b565b6103e6610f9a565b6040805161ffff9092168252519081900360200190f35b6102f96004803603602081101561041357600080fd5b50356001600160a01b0316610fab565b61042b6114fa565b604080516001600160a01b039092168252519081900360200190f35b6103e6611509565b6102296004803603602081101561046557600080fd5b503560ff16611513565b6102f9600480360361018081101561048657600080fd5b6040805160c081810183526001600160801b038535811695602081013582169594810135909116938101929091610120830191906060840190600690839083908082843760009201919091525091946001600160801b0384358116956020860135909116949193509150606081019060400135600160201b81111561050a57600080fd5b82018360208201111561051c57600080fd5b803590602001918460018302840111600160201b8311171561053d57600080fd5b50909250905061154b565b6102296004803603602081101561055e57600080fd5b50356001600160a01b03166119a9565b6102f9600480360360c081101561058457600080fd5b506001600160a01b0381358116916001600160801b036020820135169160408201358116916060810135821691608082013581169160a00135166119cd565b6102f9600480360360208110156105d957600080fd5b50356001600160a01b0316611c24565b6102f9611cc1565b6102f96004803603602081101561060757600080fd5b50356001600160a01b0316611ec9565b61042b611f66565b6102f96004803603604081101561063557600080fd5b506001600160801b0381358116916020013516611f75565b6102f96004803603606081101561066357600080fd5b81019080806060019060038060200260405190810160405280929190826003602002808284376000920191909152509194506121ff9350505050565b6106cb600480360360408110156106b557600080fd5b506001600160a01b038135169060200135612330565b604080519115158252519081900360200190f35b6102f9600480360360208110156106f557600080fd5b503560ff16612621565b6107256004803603602081101561071557600080fd5b50356001600160a01b0316612721565b60405180836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610771578181015183820152602001610759565b50505050905090810190601f16801561079e5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6103e66127d5565b610229600480360360208110156107cb57600080fd5b50356001600160801b03166127e6565b61042b6127fc565b610229600480360360208110156107f957600080fd5b50356001600160801b031661280b565b61042b612845565b6108376004803603602081101561082757600080fd5b50356001600160801b0316612854565b604080516001600160a01b03909516855292151560208501526001600160801b0391821684840152166060830152519081900360800190f35b6102f96004803603602081101561088657600080fd5b503561ffff16612897565b6102f9600480360360208110156108a757600080fd5b503561ffff166129a8565b6102f9600480360360208110156108c857600080fd5b503561ffff16612ab9565b610229612b56565b6108e3612b62565b6040518082606080838360005b838110156109085781810151838201526020016108f0565b5050505090500191505060405180910390f35b6102296004803603602081101561093157600080fd5b50356001600160a01b0316612bc4565b600061094c4361280b565b905090565b33600090815260726020908152604090912080546001600160a01b0319166001600160a01b03851617815582516109909260019092019184019061341a565b50816001600160a01b0316336001600160a01b03167f5246b2ac9ee77efe2e64af6df00055d97e2d6e1b277f5a8d17ba5bca1a573da0836040518080602001828103825283818151815260200191508051906020019080838360005b83811015610a045781810151838201526020016109ec565b50505050905090810190601f168015610a315780820380516001836020036101000a031916815260200191505b509250505060405180910390a35050565b606f5462010000900460ff1690565b602881565b606d54600090600160801b900461ffff16610a6f610941565b016001600160801b0316826001600160801b03161015610ad6576040805162461bcd60e51b815260206004820152601f60248201527f41756374696f6e2068617320616c7265616479206265656e20636c6f73656400604482015290519081900360640190fd5b6000610ae1836127e6565b6001600160801b038085166000908152607060205260409020600101549192501615610b7b57606f546001600160801b03808516600090815260706020526040902060010154610b7692610b529261271092610b439291169061ffff16612bdf565b6001600160801b031690612c59565b6001600160801b038086166000908152607060205260409020600101541690612c9b565b610c0a565b606f54610c0a90610bce9061271090610b439061ffff16606a6001600160801b03871660068110610ba857fe5b60028104919091015460019091166010026101000a90046001600160801b031690612bdf565b606a836001600160801b031660068110610be457fe5b60028104919091015460019091166010026101000a90046001600160801b031690612c9b565b9392505050565b336000908152607260205260409020546001600160a01b0316610c7b576040805162461bcd60e51b815260206004820152601a60248201527f436f6f7264696e61746f72206e6f742072656769737465726564000000000000604482015290519081900360640190fd5b606d54600160801b900461ffff16610c91610941565b016001600160801b0316846001600160801b03161015610cf8576040805162461bcd60e51b815260206004820152601f60248201527f41756374696f6e2068617320616c7265616479206265656e20636c6f73656400604482015290519081900360640190fd5b610d0184610a56565b6001600160801b0316836001600160801b03161015610d5b576040805162461bcd60e51b81526020600482015260116024820152704269642062656c6f77206d696e696d756d60781b604482015290519081900360640190fd5b606d5461ffff600160901b8204811691600160801b900416610d7b610941565b01016001600160801b0316846001600160801b031610610de2576040805162461bcd60e51b815260206004820152601b60248201527f42696420686173206e6f74206265656e206f70656e6564207965740000000000604482015290519081900360640190fd5b8015610dfc57610dfc856001600160801b03168383612d01565b606554604080516323b872dd60e01b81523360048201523060248201526001600160801b038816604482015290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015610e5e57600080fd5b505af1158015610e72573d6000803e3d6000fd5b505050506040513d6020811015610e8857600080fd5b5051610ed3576040805162461bcd60e51b8152602060048201526015602482015274151bdad95b88151c985b9cd9995c8811985a5b1959605a1b604482015290519081900360640190fd5b33600090815260716020526040902054610ef6906001600160801b031686612c9b565b33600090815260716020526040902080546001600160801b0319166001600160801b03928316179081905584821691161015610f79576040805162461bcd60e51b815260206004820152601a60248201527f446f206e6f74206861766520656e6f7567682062616c616e6365000000000000604482015290519081900360640190fd5b610f84848433612fa4565b5050505050565b606d546001600160801b031681565b606d54600160801b900461ffff1690565b6066546001600160a01b0316331461100a576040805162461bcd60e51b815260206004820152601a60248201527f4f6e6c79204865726d657a20526f6c6c75702041646472657373000000000000604482015290519081900360640190fd5b6110148143612330565b611053576040805162461bcd60e51b815260206004820152600b60248201526a43616e277420666f72676560a81b604482015290519081900360640190fd5b600061105d610941565b6001600160801b0381811660009081526070602052604081208054600190910154939450600160a01b900460ff16929091600160801b90910416156110c6576001600160801b03808416600090815260706020526040902060010154600160801b900416611104565b606a6110d1846127e6565b6001600160801b0316600681106110e457fe5b600291828204019190066010029054906101000a90046001600160801b03165b9050816114b5576001600160801b0383166000908152607060205260409020805460ff60a01b1916600160a01b1790556069546001600160a01b0390811690851614801561116e57506001600160801b038084166000908152607060205260409020600101541615155b801561119957506001600160801b038381166000908152607060205260409020600101548183169116105b1561123e576001600160801b0383811660009081526070602090815260408083206001810180548616600160801b88881602179081905590546001600160a01b031684526071909252909120546111f4929081169116612c9b565b6001600160801b038481166000908152607060209081526040808320546001600160a01b031683526071909152902080546001600160801b031916929091169190911790556114b5565b6069546001600160a01b038581169116146114b5576001600160801b03838116600090815260706020526040812060010180548316600160801b81021790819055606e54919261129b9261271092610b4392169061ffff16612bdf565b606e546001600160801b03868116600090815260706020526040812060010154939450926112dc9261271092610b4392169062010000900461ffff16612bdf565b606e546001600160801b038781166000908152607060205260408120600101549394509261131e9261271092610b43921690600160201b900461ffff16612bdf565b60655460408051630852cd8d60e31b81526001600160801b038716600482015290519293506001600160a01b03909116916342966c68916024808201926020929091908290030181600087803b15801561137757600080fd5b505af115801561138b573d6000803e3d6000fd5b505050506040513d60208110156113a157600080fd5b50506068546001600160a01b03166000908152607160205260409020546113d1906001600160801b031683612c9b565b6068546001600160a01b0390811660009081526071602052604080822080546001600160801b0319166001600160801b039586161790556067549092168152205461141d911682612c9b565b6067546001600160a01b03908116600090815260716020908152604080832080546001600160801b0319166001600160801b039687161790558a85168084526070835292819020548151898716815288871693810193909352948616828201525191938b84169316917fd64ebb43f4c2b91022b97389834432f1027ef55586129ba05a3a3065b2304f05916060908290030190a45050505b6040516001600160801b038416906001600160a01b038616907f7cae662d4cfa9d9c5575c65f0cc41a858c51ca14ebcbd02a802a62376c3ad23890600090a350505050565b6068546001600160a01b031690565b606f5461ffff1690565b6000606a8260ff166006811061152557fe5b600291828204019190066010029054906101000a90046001600160801b03169050919050565b606d54600160801b900461ffff16611561610941565b016001600160801b0316876001600160801b031610156115c8576040805162461bcd60e51b815260206004820152601f60248201527f41756374696f6e2068617320616c7265616479206265656e20636c6f73656400604482015290519081900360640190fd5b606d5461ffff600160901b8204811691600160801b9004166115e8610941565b01016001600160801b0316866001600160801b03161061164f576040805162461bcd60e51b815260206004820152601b60248201527f42696420686173206e6f74206265656e206f70656e6564207965740000000000604482015290519081900360640190fd5b826001600160801b0316846001600160801b031610156116b6576040805162461bcd60e51b815260206004820152601a60248201527f6d61784269642073686f756c64206265203e3d206d696e426964000000000000604482015290519081900360640190fd5b336000908152607260205260409020546001600160a01b0316611720576040805162461bcd60e51b815260206004820152601a60248201527f436f6f7264696e61746f72206e6f742072656769737465726564000000000000604482015290519081900360640190fd5b801561173a5761173a886001600160801b03168383612d01565b606554604080516323b872dd60e01b81523360048201523060248201526001600160801b038b16604482015290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b15801561179c57600080fd5b505af11580156117b0573d6000803e3d6000fd5b505050506040513d60208110156117c657600080fd5b5051611811576040805162461bcd60e51b8152602060048201526015602482015274151bdad95b88151c985b9cd9995c8811985a5b1959605a1b604482015290519081900360640190fd5b33600090815260716020526040902054611834906001600160801b031689612c9b565b33600090815260716020526040812080546001600160801b0319166001600160801b039390931692909217909155875b876001600160801b0316816001600160801b03161161199d57600061188882610a56565b9050856001600160801b0316816001600160801b0316116118ab578592506118f1565b856001600160801b0316816001600160801b03161180156118de5750866001600160801b0316816001600160801b031611155b156118eb578092506118f1565b50611995565b876118fb836127e6565b6001600160801b03166006811061190e57fe5b60200201511561199357336000908152607160205260409020546001600160801b0380851691161015611988576040805162461bcd60e51b815260206004820152601a60248201527f446f206e6f74206861766520656e6f7567682062616c616e6365000000000000604482015290519081900360640190fd5b611993828433612fa4565b505b600101611864565b50505050505050505050565b6001600160a01b03166000908152607160205260409020546001600160801b031690565b600054610100900460ff16806119e657506119e661313a565b806119f4575060005460ff16155b611a2f5760405162461bcd60e51b815260040180806020018281038252602e8152602001806136c2602e913960400191505060405180910390fd5b600054610100900460ff16158015611a5a576000805460ff1961ff0019909116610100171660011790555b611a62613140565b606f80546103e861ffff199091161762ff0000191662140000179055606d805461ffff60801b1916600160811b1761ffff60901b1916608760951b17905560408051606081018252610fa080825260208201526107d091810191909152611acd90606e906003613498565b506040805160c081018252678ac7230489e8000080825260208201819052918101829052606081018290526080810182905260a0810191909152611b1590606a90600661352a565b50606580546001600160a01b0319166001600160a01b038916179055606d54600160801b900461ffff9081166028021643016001600160801b0387161015611ba4576040805162461bcd60e51b815260206004820152601c60248201527f47656e6573697320736d616c6c6572207468616e206d696e696d616c00000000604482015290519081900360640190fd5b606d80546001600160801b0319166001600160801b038816179055606680546001600160a01b03199081166001600160a01b0388811691909117909255606780548216878416179055606880548216868416179055606980549091169184169190911790558015611c1b576000805461ff00191690555b50505050505050565b6067546001600160a01b03163314611c71576040805162461bcd60e51b815260206004820181905260248201526000805160206136a2833981519152604482015290519081900360640190fd5b606980546001600160a01b0319166001600160a01b0383811691909117918290556040519116907f2161bd0f0e056d18046a81683e5bc845980367451cf4ca5148523a147c51be5590600090a250565b60335460ff16611d18576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6033805460ff191690556000611d2d336119a9565b90506000816001600160801b031611611d8d576040805162461bcd60e51b815260206004820152601b60248201527f446f65736e2774206861766520656e6f7567682062616c616e63650000000000604482015290519081900360640190fd5b33600081815260716020908152604080832080546001600160801b0319169055606554815163a9059cbb60e01b815260048101959095526001600160801b038616602486015290516001600160a01b039091169363a9059cbb9360448083019493928390030190829087803b158015611e0557600080fd5b505af1158015611e19573d6000803e3d6000fd5b505050506040513d6020811015611e2f57600080fd5b5051611e7a576040805162461bcd60e51b8152602060048201526015602482015274151bdad95b88151c985b9cd9995c8811985a5b1959605a1b604482015290519081900360640190fd5b604080516001600160801b0383168152905133917f199ef0cb54d2b296ff6eaec2721bacf0ca3fd8344a43f5bdf4548b34dfa2594f919081900360200190a2506033805460ff19166001179055565b6067546001600160a01b03163314611f16576040805162461bcd60e51b815260206004820181905260248201526000805160206136a2833981519152604482015290519081900360640190fd5b606880546001600160a01b0319166001600160a01b0383811691909117918290556040519116907fa62863cbad1647a2855e9cd39d04fa6dfd32e1b9cfaff1aaf6523f4aaafeccd790600090a250565b6065546001600160a01b031681565b6067546001600160a01b03163314611fc2576040805162461bcd60e51b815260206004820181905260248201526000805160206136a2833981519152604482015290519081900360640190fd5b6006826001600160801b03161115612017576040805162461bcd60e51b8152602060048201526013602482015272139bdd0818481d985b1a59081cdb1bdd14d95d606a1b604482015290519081900360640190fd5b606a826001600160801b03166006811061202d57fe5b60028104919091015460019091166010026101000a90046001600160801b031661209e576040805162461bcd60e51b815260206004820152601e60248201527f5468697320736c6f742073657420697320646563656e7472616c697a65640000604482015290519081900360640190fd5b60006120a8610941565b9050805b606d54600160801b900461ffff1682016001600160801b0390811690821611612162576001600160801b03808216600090815260706020526040902060010154600160801b90041661215a57606a612103826127e6565b6001600160801b03166006811061211657fe5b6002810491909101546001600160801b038381166000908152607060205260409020600190810180548316919094166010026101000a90920416600160801b021790555b6001016120ac565b5081606a846001600160801b03166006811061217a57fe5b600291828204019190066010026101000a8154816001600160801b0302191690836001600160801b031602179055507fa922aa010d1ff8e70b2aa9247d891836795c3d3ba2a543c37c91a44dc4a50172838360405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390a1505050565b6067546001600160a01b0316331461224c576040805162461bcd60e51b815260206004820181905260248201526000805160206136a2833981519152604482015290519081900360640190fd5b806002602002015181600160200201518260006020020151010161ffff16612710146122a95760405162461bcd60e51b81526004018080602001828103825260218152602001806136606021913960400191505060405180910390fd5b6122b6606e826003613498565b506040517f0bb59eceb12f1bdb63e4a7d57c70d6473fefd7c3f51af5a3604f7e97197073e490606e9060608101826000835b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116122e8579050505091505060405180910390a150565b6000600160801b821061238a576040805162461bcd60e51b815260206004820152601d60248201527f626c6f636b4e756d62657220686967686572207468616e20325f313238000000604482015290519081900360640190fd5b606d546001600160801b03168210156123ea576040805162461bcd60e51b815260206004820152601b60248201527f41756374696f6e20686173206e6f742073746172746564207965740000000000604482015290519081900360640190fd5b60006123f58361280b565b606d5490915060009061243e9061242e906001600160801b039081169061241f9086166028612bdf565b6001600160801b031690612c9b565b6001600160801b038616906131ef565b6001600160801b0380841660009081526070602052604081206001015492935091600160801b90041615612496576001600160801b03808416600090815260706020526040902060010154600160801b9004166124d4565b606a6124a1846127e6565b6001600160801b0316600681106124b457fe5b600291828204019190066010029054906101000a90046001600160801b03165b6001600160801b038416600090815260706020526040902054909150600160a01b900460ff1615801561251b5750606f5462010000900460ff166001600160801b03831610155b1561252c576001935050505061261b565b6001600160801b0383166000908152607060209081526040808320546001600160a01b039081168452607290925290912054811690871614801561259057506001600160801b03838116600090815260706020526040902060010154818316911610155b156125a1576001935050505061261b565b6069546001600160a01b03878116911614801561260257506001600160801b038381166000908152607060205260409020600101548183169116108061260257506001600160801b0380841660009081526070602052604090206001015416155b15612613576001935050505061261b565b600093505050505b92915050565b6067546001600160a01b0316331461266e576040805162461bcd60e51b815260206004820181905260248201526000805160206136a2833981519152604482015290519081900360640190fd5b602860ff821611156126c7576040805162461bcd60e51b815260206004820152601c60248201527f47726561746572207468616e20424c4f434b535f5045525f534c4f5400000000604482015290519081900360640190fd5b606f805460ff8084166201000090810262ff0000199093169290921792839055604080519290930416815290517f4a0d90b611c15e02dbf23b10f35b936cf2c77665f8c77822d3eca131f9d986d39181900360200190a150565b6072602090815260009182526040918290208054600180830180548651600261010094831615949094026000190190911692909204601f81018690048602830186019096528582526001600160a01b039092169492939092908301828280156127cb5780601f106127a0576101008083540402835291602001916127cb565b820191906000526020600020905b8154815290600101906020018083116127ae57829003601f168201915b5050505050905082565b606d54600160901b900461ffff1690565b600061261b6001600160801b0383166006613231565b6066546001600160a01b031681565b606d546000906001600160801b03908116908316101561282c57600061261b565b50606d5460286001600160801b03918216909203160490565b6069546001600160a01b031690565b607060205260009081526040902080546001909101546001600160a01b03821691600160a01b900460ff16906001600160801b0380821691600160801b90041684565b6067546001600160a01b031633146128e4576040805162461bcd60e51b815260206004820181905260248201526000805160206136a2833981519152604482015290519081900360640190fd5b606d5461ffff600160801b9091048116908216101561294a576040805162461bcd60e51b815260206004820152601f60248201527f536d616c6c6572207468616e20636c6f73656441756374696f6e536c6f747300604482015290519081900360640190fd5b606d805461ffff808416600160901b90810261ffff60901b199093169290921792839055604080519290930416815290517f3da0492dea7298351bc14d1c0699905fd0657c33487449751af50fc0c8b593f19181900360200190a150565b6067546001600160a01b031633146129f5576040805162461bcd60e51b815260206004820181905260248201526000805160206136a2833981519152604482015290519081900360640190fd5b606d5461ffff600160901b90910481169082161115612a5b576040805162461bcd60e51b815260206004820152601f60248201527f47726561746572207468616e20636c6f73656441756374696f6e536c6f747300604482015290519081900360640190fd5b606d805461ffff808416600160801b90810261ffff60801b199093169290921792839055604080519290930416815290517fc78051d3757db196b1e445f3a9a1380944518c69b5d7922ec747c54f0340a4ea9181900360200190a150565b6067546001600160a01b03163314612b06576040805162461bcd60e51b815260206004820181905260248201526000805160206136a2833981519152604482015290519081900360640190fd5b606f805461ffff191661ffff838116919091179182905560408051929091168252517fd3748b8c326e93d12af934fbf87471e315a89bc3f7b8222343acf0210edf248e916020908290030190a150565b678ac7230489e8000081565b612b6a6135cb565b60408051606081019182905290606e90600390826000855b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411612b825790505050505050905090565b6071602052600090815260409020546001600160801b031681565b60006001600160801b038316612bf75750600061261b565b8282026001600160801b038084169080861690831681612c1357fe5b046001600160801b031614610c0a5760405162461bcd60e51b81526004018080602001828103825260218152602001806136816021913960400191505060405180910390fd5b6000610c0a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613273565b60008282016001600160801b038085169082161015610c0a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082826020811015612d1357600080fd5b50356001600160e01b031916905063d505accf60e01b811415612f9e576000808080808080612d45896004818d613637565b60e0811015612d5357600080fd5b506001600160a01b038135811698506020820135169650604081013595506060810135945060ff608082013516935060a0810135925060c001359050338714612de3576040805162461bcd60e51b815260206004820152601f60248201527f5065726d6974206f776e6572206d757374206265207468652073656e64657200604482015290519081900360640190fd5b6001600160a01b0386163014612e37576040805162461bcd60e51b81526020600482015260146024820152735370656e646572206d757374206265207468697360601b604482015290519081900360640190fd5b8a8514612e8b576040805162461bcd60e51b815260206004820152601c60248201527f5065726d697420616d6f756e7420646f6573206e6f74206d6174636800000000604482015290519081900360640190fd5b606554604080516001600160a01b038a811660248301528981166044830152606482018990526084820188905260ff871660a483015260c4820186905260e48083018690528351808403909101815261010490920183526020820180516001600160e01b031663d505accf60e01b178152925182519190941693919282918083835b60208310612f2c5780518252601f199092019160209182019101612f0d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612f8e576040519150601f19603f3d011682016040523d82523d6000602084013e612f93565b606091505b505050505050505050505b50505050565b6001600160801b03808416600090815260706020908152604080832080546001909101546001600160a01b03878116865260719094529190932054919092169291821691612ff39116856131ef565b6001600160a01b03848116600081815260716020908152604080832080546001600160801b03199081166001600160801b03988916179091558b87168452607090925290912080546001600160a01b031916909217825560019190910180549091169287169290921790915582161580159061307757506001600160801b03811615155b156130df576001600160a01b0382166000908152607160205260409020546130a8906001600160801b031682612c9b565b6001600160a01b038316600090815260716020526040902080546001600160801b0319166001600160801b03929092169190911790555b826001600160a01b0316856001600160801b03167fd48e8329cdb2fb109b4fe445d7b681a74b256bff16e6f7f33b9d4fbe9038e4338660405180826001600160801b0316815260200191505060405180910390a35050505050565b303b1590565b600054610100900460ff1680613159575061315961313a565b80613167575060005460ff16155b6131a25760405162461bcd60e51b815260040180806020018281038252602e8152602001806136c2602e913960400191505060405180910390fd5b600054610100900460ff161580156131cd576000805460ff1961ff0019909116610100171660011790555b6033805460ff1916600117905580156131ec576000805461ff00191690555b50565b6000610c0a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613330565b6000610c0a83836040518060400160405280601881526020017f536166654d6174683a206d6f64756c6f206279207a65726f000000000000000081525061339d565b6000816001600160801b0384166133085760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156132cd5781810151838201526020016132b5565b50505050905090810190601f1680156132fa5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000836001600160801b0316856001600160801b03168161332657fe5b0495945050505050565b6000836001600160801b0316836001600160801b0316111582906133955760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156132cd5781810151838201526020016132b5565b505050900390565b6000816001600160801b0384166133f55760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156132cd5781810151838201526020016132b5565b50826001600160801b0316846001600160801b03168161341157fe5b06949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061345b57805160ff1916838001178555613488565b82800160010185558215613488579182015b8281111561348857825182559160200191906001019061346d565b506134949291506135e9565b5090565b60018301918390821561351e5791602002820160005b838211156134ee57835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026134ae565b801561351c5782816101000a81549061ffff02191690556002016020816001010492830192600103026134ee565b505b506134949291506135fe565b6003830191839082156135bf5791602002820160005b8382111561358a57835183826101000a8154816001600160801b0302191690836001600160801b031602179055509260200192601001602081600f01049283019260010302613540565b80156135bd5782816101000a8154906001600160801b030219169055601001602081600f0104928301926001030261358a565b505b50613494929150613618565b60405180606001604052806003906020820280368337509192915050565b5b8082111561349457600081556001016135ea565b5b8082111561349457805461ffff191681556001016135ff565b5b808211156134945780546001600160801b0319168155600101613619565b60008085851115613646578182fd5b83861115613652578182fd5b505082019391909203915056fe416c6c6f636174696f6e526174696f2068617320746f206265203130302e303025536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a26469706673582212203ec19e8b18e00c0dd42dec0d017c35861dc444b587421fd7b7a5bb85ec43aa5964736f6c634300060c0033" +var HermezAuctionProtocolBin = "0x608060405234801561001057600080fd5b50613b33806100206000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c806379a135e311610125578063b3dc7bb1116100ad578063d92bdda31161007c578063d92bdda314610891578063dfd5281b146108b2578063e6065914146108d3578063ec29159b146108db578063ecdae41b1461091b5761021c565b8063b3dc7bb1146107e3578063b5f7f2f014610809578063bc41556714610811578063c63de515146108705761021c565b806387e6b6bb116100f457806387e6b6bb146106df578063a48af096146106ff578063ac4b9012146107ad578063ac5f658b146107b5578063aebd6d98146107db5761021c565b806379a135e3146106175780637c643b701461061f578063827874051461064d57806383b1f6a01461069f5761021c565b806354c03ab7116101a85780635cca4903116101775780635cca4903146105485780636074db641461056e57806362945af2146105c35780636dfe47c9146105e95780636f48e79b146105f15761021c565b806354c03ab71461042357806355b442e614610447578063564e6a711461044f578063583ad0dd1461046f5761021c565b806337d1bd0b116101ef57806337d1bd0b146103215780634b93b7fa146103475780634cdc9c63146103d65780634da9639d146103de5780634e5a5178146103fd5761021c565b80630c4da4f6146102215780630eeaf0801461024557806313de9af2146102fb5780632243de4714610319575b600080fd5b610229610941565b604080516001600160801b039092168252519081900360200190f35b6102f96004803603604081101561025b57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561028557600080fd5b82018360208201111561029757600080fd5b803590602001918460018302840111600160201b831117156102b857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610951945050505050565b005b610303610a42565b6040805160ff9092168252519081900360200190f35b610303610a51565b6102296004803603602081101561033757600080fd5b50356001600160801b0316610a56565b6102f96004803603608081101561035d57600080fd5b6001600160801b0382358116926020810135821692604082013590921691810190608081016060820135600160201b81111561039857600080fd5b8201836020820111156103aa57600080fd5b803590602001918460018302840111600160201b831117156103cb57600080fd5b509092509050610bfb565b610229610f05565b6103e6610f14565b6040805161ffff9092168252519081900360200190f35b6102f96004803603602081101561041357600080fd5b50356001600160a01b0316610f25565b61042b61145a565b604080516001600160a01b039092168252519081900360200190f35b6103e6611469565b6102296004803603602081101561046557600080fd5b503560ff16611473565b6102f9600480360361018081101561048657600080fd5b6040805160c081810183526001600160801b038535811695602081013582169594810135909116938101929091610120830191906060840190600690839083908082843760009201919091525091946001600160801b0384358116956020860135909116949193509150606081019060400135600160201b81111561050a57600080fd5b82018360208201111561051c57600080fd5b803590602001918460018302840111600160201b8311171561053d57600080fd5b5090925090506114ab565b6102296004803603602081101561055e57600080fd5b50356001600160a01b031661188d565b6102f9600480360360c081101561058457600080fd5b506001600160a01b0381358116916001600160801b036020820135169160408201358116916060810135821691608082013581169160a00135166118b1565b6102f9600480360360208110156105d957600080fd5b50356001600160a01b0316611af2565b6102f9611b8b565b6102f96004803603602081101561060757600080fd5b50356001600160a01b0316611d6f565b61042b611e08565b6102f96004803603604081101561063557600080fd5b506001600160801b0381358116916020013516611e17565b6102f96004803603606081101561066357600080fd5b810190808060600190600380602002604051908101604052809291908260036020028082843760009201919091525091945061207b9350505050565b6106cb600480360360408110156106b557600080fd5b506001600160a01b0381351690602001356121a8565b604080519115158252519081900360200190f35b6102f9600480360360208110156106f557600080fd5b503560ff1661246d565b6107256004803603602081101561071557600080fd5b50356001600160a01b0316612553565b60405180836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610771578181015183820152602001610759565b50505050905090810190601f16801561079e5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6103e6612607565b610229600480360360208110156107cb57600080fd5b50356001600160801b0316612618565b61042b61262e565b610229600480360360208110156107f957600080fd5b50356001600160801b031661263d565b61042b612677565b6108376004803603602081101561082757600080fd5b50356001600160801b0316612686565b604080516001600160a01b03909516855292151560208501526001600160801b0391821684840152166060830152519081900360800190f35b6102f96004803603602081101561088657600080fd5b503561ffff166126c9565b6102f9600480360360208110156108a757600080fd5b503561ffff166127c0565b6102f9600480360360208110156108c857600080fd5b503561ffff166128b7565b610229612950565b6108e361295c565b6040518082606080838360005b838110156109085781810151838201526020016108f0565b5050505090500191505060405180910390f35b6102296004803603602081101561093157600080fd5b50356001600160a01b03166129be565b600061094c4361263d565b905090565b33600090815260726020908152604090912080546001600160a01b0319166001600160a01b0385161781558251610990926001909201918401906131db565b50816001600160a01b0316336001600160a01b03167f5246b2ac9ee77efe2e64af6df00055d97e2d6e1b277f5a8d17ba5bca1a573da0836040518080602001828103825283818151815260200191508051906020019080838360005b83811015610a045781810151838201526020016109ec565b50505050905090810190601f168015610a315780820380516001836020036101000a031916815260200191505b509250505060405180910390a35050565b606f5462010000900460ff1690565b602881565b606d54600090600160801b900461ffff16610a6f610941565b016001600160801b0316826001600160801b03161015610ac05760405162461bcd60e51b81526004018080602001828103825260368152602001806135f56036913960400191505060405180910390fd5b6000610acb83612618565b6001600160801b038085166000908152607060205260409020600101549192501615610b6557606f546001600160801b03808516600090815260706020526040902060010154610b6092610b3c9261271092610b2d9291169061ffff166129d9565b6001600160801b031690612a53565b6001600160801b038086166000908152607060205260409020600101541690612a95565b610bf4565b606f54610bf490610bb89061271090610b2d9061ffff16606a6001600160801b03871660068110610b9257fe5b60028104919091015460019091166010026101000a90046001600160801b0316906129d9565b606a836001600160801b031660068110610bce57fe5b60028104919091015460019091166010026101000a90046001600160801b031690612a95565b9392505050565b336000908152607260205260409020546001600160a01b0316610c4f5760405162461bcd60e51b815260040180806020018281038252603d815260200180613421603d913960400191505060405180910390fd5b606d54600160801b900461ffff16610c65610941565b016001600160801b0316846001600160801b03161015610cb65760405162461bcd60e51b8152600401808060200182810382526031815260200180613a256031913960400191505060405180910390fd5b610cbf84610a56565b6001600160801b0316836001600160801b03161015610d0f5760405162461bcd60e51b81526004018080602001828103825260308152602001806135586030913960400191505060405180910390fd5b606d5461ffff600160901b8204811691600160801b900416610d2f610941565b01016001600160801b0316846001600160801b031610610d805760405162461bcd60e51b81526004018080602001828103825260338152602001806138046033913960400191505060405180910390fd5b8015610d9a57610d9a856001600160801b03168383612afb565b606554604080516323b872dd60e01b81523360048201523060248201526001600160801b038816604482015290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015610dfc57600080fd5b505af1158015610e10573d6000803e3d6000fd5b505050506040513d6020811015610e2657600080fd5b5051610e635760405162461bcd60e51b81526004018080602001828103825260388152602001806135886038913960400191505060405180910390fd5b33600090815260716020526040902054610e86906001600160801b031686612a95565b33600090815260716020526040902080546001600160801b0319166001600160801b03928316179081905584821691161015610ef35760405162461bcd60e51b81526004018080602001828103825260338152602001806138046033913960400191505060405180910390fd5b610efe848433612d65565b5050505050565b606d546001600160801b031681565b606d54600160801b900461ffff1690565b6066546001600160a01b03163314610f6e5760405162461bcd60e51b815260040180806020018281038252603081526020018061388b6030913960400191505060405180910390fd5b610f7881436121a8565b610fb35760405162461bcd60e51b815260040180806020018281038252602a81526020018061391f602a913960400191505060405180910390fd5b6000610fbd610941565b6001600160801b0381811660009081526070602052604081208054600190910154939450600160a01b900460ff16929091600160801b9091041615611026576001600160801b03808416600090815260706020526040902060010154600160801b900416611064565b606a61103184612618565b6001600160801b03166006811061104457fe5b600291828204019190066010029054906101000a90046001600160801b03165b905081611415576001600160801b0383166000908152607060205260409020805460ff60a01b1916600160a01b1790556069546001600160a01b039081169085161480156110ce57506001600160801b038084166000908152607060205260409020600101541615155b80156110f957506001600160801b038381166000908152607060205260409020600101548183169116105b1561119e576001600160801b0383811660009081526070602090815260408083206001810180548616600160801b88881602179081905590546001600160a01b03168452607190925290912054611154929081169116612a95565b6001600160801b038481166000908152607060209081526040808320546001600160a01b031683526071909152902080546001600160801b03191692909116919091179055611415565b6069546001600160a01b03858116911614611415576001600160801b03838116600090815260706020526040812060010180548316600160801b81021790819055606e5491926111fb9261271092610b2d92169061ffff166129d9565b606e546001600160801b038681166000908152607060205260408120600101549394509261123c9261271092610b2d92169062010000900461ffff166129d9565b606e546001600160801b038781166000908152607060205260408120600101549394509261127e9261271092610b2d921690600160201b900461ffff166129d9565b60655460408051630852cd8d60e31b81526001600160801b038716600482015290519293506001600160a01b03909116916342966c68916024808201926020929091908290030181600087803b1580156112d757600080fd5b505af11580156112eb573d6000803e3d6000fd5b505050506040513d602081101561130157600080fd5b50506068546001600160a01b0316600090815260716020526040902054611331906001600160801b031683612a95565b6068546001600160a01b0390811660009081526071602052604080822080546001600160801b0319166001600160801b039586161790556067549092168152205461137d911682612a95565b6067546001600160a01b03908116600090815260716020908152604080832080546001600160801b0319166001600160801b039687161790558a85168084526070835292819020548151898716815288871693810193909352948616828201525191938b84169316917fd64ebb43f4c2b91022b97389834432f1027ef55586129ba05a3a3065b2304f05916060908290030190a45050505b6040516001600160801b038416906001600160a01b038616907f7cae662d4cfa9d9c5575c65f0cc41a858c51ca14ebcbd02a802a62376c3ad23890600090a350505050565b6068546001600160a01b031690565b606f5461ffff1690565b6000606a8260ff166006811061148557fe5b600291828204019190066010029054906101000a90046001600160801b03169050919050565b606d54600160801b900461ffff166114c1610941565b016001600160801b0316876001600160801b031610156115125760405162461bcd60e51b81526004018080602001828103825260358152602001806135c06035913960400191505060405180910390fd5b606d5461ffff600160901b8204811691600160801b900416611532610941565b01016001600160801b0316866001600160801b0316106115835760405162461bcd60e51b81526004018080602001828103825260378152602001806139b86037913960400191505060405180910390fd5b826001600160801b0316846001600160801b031610156115d45760405162461bcd60e51b815260040180806020018281038252604181526020018061362b6041913960600191505060405180910390fd5b336000908152607260205260409020546001600160a01b03166116285760405162461bcd60e51b8152600401808060200182810382526041815260200180613a566041913960600191505060405180910390fd5b801561164257611642886001600160801b03168383612afb565b606554604080516323b872dd60e01b81523360048201523060248201526001600160801b038b16604482015290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b1580156116a457600080fd5b505af11580156116b8573d6000803e3d6000fd5b505050506040513d60208110156116ce57600080fd5b505161170b5760405162461bcd60e51b815260040180806020018281038252603d81526020018061345e603d913960400191505060405180910390fd5b3360009081526071602052604090205461172e906001600160801b031689612a95565b33600090815260716020526040812080546001600160801b0319166001600160801b039390931692909217909155875b876001600160801b0316816001600160801b03161161188157600061178282610a56565b9050856001600160801b0316816001600160801b0316116117a5578592506117eb565b856001600160801b0316816001600160801b03161180156117d85750866001600160801b0316816001600160801b031611155b156117e5578092506117eb565b50611879565b876117f583612618565b6001600160801b03166006811061180857fe5b60200201511561187757336000908152607160205260409020546001600160801b038085169116101561186c5760405162461bcd60e51b815260040180806020018281038252603981526020018061397f6039913960400191505060405180910390fd5b611877828433612d65565b505b60010161175e565b50505050505050505050565b6001600160a01b03166000908152607160205260409020546001600160801b031690565b600054610100900460ff16806118ca57506118ca612efb565b806118d8575060005460ff16155b6119135760405162461bcd60e51b815260040180806020018281038252602e8152602001806138bb602e913960400191505060405180910390fd5b600054610100900460ff1615801561193e576000805460ff1961ff0019909116610100171660011790555b611946612f01565b606f80546103e861ffff199091161762ff0000191662140000179055606d805461ffff60801b1916600160811b1761ffff60901b1916608760951b17905560408051606081018252610fa080825260208201526107d0918101919091526119b190606e906003613259565b506040805160c081018252678ac7230489e8000080825260208201819052918101829052606081018290526080810182905260a08101919091526119f990606a9060066132eb565b50606580546001600160a01b0319166001600160a01b038916179055606d54600160801b900461ffff9081166028021643016001600160801b0387161015611a725760405162461bcd60e51b815260040180806020018281038252604d8152602001806136f3604d913960600191505060405180910390fd5b606d80546001600160801b0319166001600160801b038816179055606680546001600160a01b03199081166001600160a01b0388811691909117909255606780548216878416179055606880548216868416179055606980549091169184169190911790558015611ae9576000805461ff00191690555b50505050505050565b6067546001600160a01b03163314611b3b5760405162461bcd60e51b81526004018080602001828103825260368152602001806138e96036913960400191505060405180910390fd5b606980546001600160a01b0319166001600160a01b0383811691909117918290556040519116907f2161bd0f0e056d18046a81683e5bc845980367451cf4ca5148523a147c51be5590600090a250565b60335460ff16611be2576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6033805460ff191690556000611bf73361188d565b90506000816001600160801b031611611c415760405162461bcd60e51b81526004018080602001828103825260338152602001806138376033913960400191505060405180910390fd5b33600081815260716020908152604080832080546001600160801b0319169055606554815163a9059cbb60e01b815260048101959095526001600160801b038616602486015290516001600160a01b039091169363a9059cbb9360448083019493928390030190829087803b158015611cb957600080fd5b505af1158015611ccd573d6000803e3d6000fd5b505050506040513d6020811015611ce357600080fd5b5051611d205760405162461bcd60e51b81526004018080602001828103825260368152602001806139496036913960400191505060405180910390fd5b604080516001600160801b0383168152905133917f199ef0cb54d2b296ff6eaec2721bacf0ca3fd8344a43f5bdf4548b34dfa2594f919081900360200190a2506033805460ff19166001179055565b6067546001600160a01b03163314611db85760405162461bcd60e51b81526004018080602001828103825260368152602001806138e96036913960400191505060405180910390fd5b606880546001600160a01b0319166001600160a01b0383811691909117918290556040519116907fa62863cbad1647a2855e9cd39d04fa6dfd32e1b9cfaff1aaf6523f4aaafeccd790600090a250565b6065546001600160a01b031681565b6067546001600160a01b03163314611e605760405162461bcd60e51b81526004018080602001828103825260368152602001806138e96036913960400191505060405180910390fd5b6006826001600160801b03161115611ea95760405162461bcd60e51b81526004018080602001828103825260428152602001806134c76042913960600191505060405180910390fd5b606a826001600160801b031660068110611ebf57fe5b60028104919091015460019091166010026101000a90046001600160801b0316611f1a5760405162461bcd60e51b815260040180806020018281038252604281526020018061366c6042913960600191505060405180910390fd5b6000611f24610941565b9050805b606d54600160801b900461ffff1682016001600160801b0390811690821611611fde576001600160801b03808216600090815260706020526040902060010154600160801b900416611fd657606a611f7f82612618565b6001600160801b031660068110611f9257fe5b6002810491909101546001600160801b038381166000908152607060205260409020600190810180548316919094166010026101000a90920416600160801b021790555b600101611f28565b5081606a846001600160801b031660068110611ff657fe5b600291828204019190066010026101000a8154816001600160801b0302191690836001600160801b031602179055507fa922aa010d1ff8e70b2aa9247d891836795c3d3ba2a543c37c91a44dc4a50172838360405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390a1505050565b6067546001600160a01b031633146120c45760405162461bcd60e51b81526004018080602001828103825260368152602001806138e96036913960400191505060405180910390fd5b806002602002015181600160200201518260006020020151010161ffff16612710146121215760405162461bcd60e51b81526004018080602001828103825260458152602001806136ae6045913960600191505060405180910390fd5b61212e606e826003613259565b506040517f0bb59eceb12f1bdb63e4a7d57c70d6473fefd7c3f51af5a3604f7e97197073e490606e9060608101826000835b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411612160579050505091505060405180910390a150565b6000600160801b82106121ec5760405162461bcd60e51b8152600401808060200182810382526031815260200180613a976031913960400191505060405180910390fd5b606d546001600160801b03168210156122365760405162461bcd60e51b81526004018080602001828103825260338152602001806137d16033913960400191505060405180910390fd5b60006122418361263d565b606d5490915060009061228a9061227a906001600160801b039081169061226b90861660286129d9565b6001600160801b031690612a95565b6001600160801b03861690612fb0565b6001600160801b0380841660009081526070602052604081206001015492935091600160801b900416156122e2576001600160801b03808416600090815260706020526040902060010154600160801b900416612320565b606a6122ed84612618565b6001600160801b03166006811061230057fe5b600291828204019190066010029054906101000a90046001600160801b03165b6001600160801b038416600090815260706020526040902054909150600160a01b900460ff161580156123675750606f5462010000900460ff166001600160801b03831610155b156123785760019350505050612467565b6001600160801b0383166000908152607060209081526040808320546001600160a01b03908116845260729092529091205481169087161480156123dc57506001600160801b03838116600090815260706020526040902060010154818316911610155b156123ed5760019350505050612467565b6069546001600160a01b03878116911614801561244e57506001600160801b038381166000908152607060205260409020600101548183169116108061244e57506001600160801b0380841660009081526070602052604090206001015416155b1561245f5760019350505050612467565b600093505050505b92915050565b6067546001600160a01b031633146124b65760405162461bcd60e51b81526004018080602001828103825260368152602001806138e96036913960400191505060405180910390fd5b602860ff821611156124f95760405162461bcd60e51b81526004018080602001828103825260448152602001806137406044913960600191505060405180910390fd5b606f805460ff8084166201000090810262ff0000199093169290921792839055604080519290930416815290517f4a0d90b611c15e02dbf23b10f35b936cf2c77665f8c77822d3eca131f9d986d39181900360200190a150565b6072602090815260009182526040918290208054600180830180548651600261010094831615949094026000190190911692909204601f81018690048602830186019096528582526001600160a01b039092169492939092908301828280156125fd5780601f106125d2576101008083540402835291602001916125fd565b820191906000526020600020905b8154815290600101906020018083116125e057829003601f168201915b5050505050905082565b606d54600160901b900461ffff1690565b60006124676001600160801b0383166006612ff2565b6066546001600160a01b031681565b606d546000906001600160801b03908116908316101561265e576000612467565b50606d5460286001600160801b03918216909203160490565b6069546001600160a01b031690565b607060205260009081526040902080546001909101546001600160a01b03821691600160a01b900460ff16906001600160801b0380821691600160801b90041684565b6067546001600160a01b031633146127125760405162461bcd60e51b81526004018080602001828103825260368152602001806138e96036913960400191505060405180910390fd5b606d5461ffff600160801b909104811690821610156127625760405162461bcd60e51b815260040180806020018281038252604d815260200180613784604d913960600191505060405180910390fd5b606d805461ffff808416600160901b90810261ffff60901b199093169290921792839055604080519290930416815290517f3da0492dea7298351bc14d1c0699905fd0657c33487449751af50fc0c8b593f19181900360200190a150565b6067546001600160a01b031633146128095760405162461bcd60e51b81526004018080602001828103825260368152602001806138e96036913960400191505060405180910390fd5b606d5461ffff600160901b909104811690821611156128595760405162461bcd60e51b815260040180806020018281038252604f815260200180613509604f913960600191505060405180910390fd5b606d805461ffff808416600160801b90810261ffff60801b199093169290921792839055604080519290930416815290517fc78051d3757db196b1e445f3a9a1380944518c69b5d7922ec747c54f0340a4ea9181900360200190a150565b6067546001600160a01b031633146129005760405162461bcd60e51b81526004018080602001828103825260368152602001806138e96036913960400191505060405180910390fd5b606f805461ffff191661ffff838116919091179182905560408051929091168252517fd3748b8c326e93d12af934fbf87471e315a89bc3f7b8222343acf0210edf248e916020908290030190a150565b678ac7230489e8000081565b61296461338c565b60408051606081019182905290606e90600390826000855b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161297c5790505050505050905090565b6071602052600090815260409020546001600160801b031681565b60006001600160801b0383166129f157506000612467565b8282026001600160801b038084169080861690831681612a0d57fe5b046001600160801b031614610bf45760405162461bcd60e51b815260040180806020018281038252602181526020018061386a6021913960400191505060405180910390fd5b6000610bf483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613034565b60008282016001600160801b038085169082161015610bf4576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082826020811015612b0d57600080fd5b50356001600160e01b031916905063d505accf60e01b811415612d5f576000808080808080612b3f896004818d6133f8565b60e0811015612b4d57600080fd5b506001600160a01b038135811698506020820135169650604081013595506060810135945060ff608082013516935060a0810135925060c001359050338714612bc75760405162461bcd60e51b8152600401808060200182810382526036815260200180613ac86036913960400191505060405180910390fd5b6001600160a01b0386163014612c0e5760405162461bcd60e51b81526004018080602001828103825260368152602001806139ef6036913960400191505060405180910390fd5b8a8514612c4c5760405162461bcd60e51b815260040180806020018281038252602c81526020018061349b602c913960400191505060405180910390fd5b606554604080516001600160a01b038a811660248301528981166044830152606482018990526084820188905260ff871660a483015260c4820186905260e48083018690528351808403909101815261010490920183526020820180516001600160e01b031663d505accf60e01b178152925182519190941693919282918083835b60208310612ced5780518252601f199092019160209182019101612cce565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612d4f576040519150601f19603f3d011682016040523d82523d6000602084013e612d54565b606091505b505050505050505050505b50505050565b6001600160801b03808416600090815260706020908152604080832080546001909101546001600160a01b03878116865260719094529190932054919092169291821691612db4911685612fb0565b6001600160a01b03848116600081815260716020908152604080832080546001600160801b03199081166001600160801b03988916179091558b87168452607090925290912080546001600160a01b0319169092178255600191909101805490911692871692909217909155821615801590612e3857506001600160801b03811615155b15612ea0576001600160a01b038216600090815260716020526040902054612e69906001600160801b031682612a95565b6001600160a01b038316600090815260716020526040902080546001600160801b0319166001600160801b03929092169190911790555b826001600160a01b0316856001600160801b03167fd48e8329cdb2fb109b4fe445d7b681a74b256bff16e6f7f33b9d4fbe9038e4338660405180826001600160801b0316815260200191505060405180910390a35050505050565b303b1590565b600054610100900460ff1680612f1a5750612f1a612efb565b80612f28575060005460ff16155b612f635760405162461bcd60e51b815260040180806020018281038252602e8152602001806138bb602e913960400191505060405180910390fd5b600054610100900460ff16158015612f8e576000805460ff1961ff0019909116610100171660011790555b6033805460ff191660011790558015612fad576000805461ff00191690555b50565b6000610bf483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506130f1565b6000610bf483836040518060400160405280601881526020017f536166654d6174683a206d6f64756c6f206279207a65726f000000000000000081525061315e565b6000816001600160801b0384166130c95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561308e578181015183820152602001613076565b50505050905090810190601f1680156130bb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000836001600160801b0316856001600160801b0316816130e757fe5b0495945050505050565b6000836001600160801b0316836001600160801b0316111582906131565760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561308e578181015183820152602001613076565b505050900390565b6000816001600160801b0384166131b65760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561308e578181015183820152602001613076565b50826001600160801b0316846001600160801b0316816131d257fe5b06949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061321c57805160ff1916838001178555613249565b82800160010185558215613249579182015b8281111561324957825182559160200191906001019061322e565b506132559291506133aa565b5090565b6001830191839082156132df5791602002820160005b838211156132af57835183826101000a81548161ffff021916908361ffff160217905550926020019260020160208160010104928301926001030261326f565b80156132dd5782816101000a81549061ffff02191690556002016020816001010492830192600103026132af565b505b506132559291506133bf565b6003830191839082156133805791602002820160005b8382111561334b57835183826101000a8154816001600160801b0302191690836001600160801b031602179055509260200192601001602081600f01049283019260010302613301565b801561337e5782816101000a8154906001600160801b030219169055601001602081600f0104928301926001030261334b565b505b506132559291506133d9565b60405180606001604052806003906020820280368337509192915050565b5b8082111561325557600081556001016133ab565b5b8082111561325557805461ffff191681556001016133c0565b5b808211156132555780546001600160801b03191681556001016133da565b60008085851115613407578182fd5b83861115613413578182fd5b505082019391909203915056fe4865726d657a41756374696f6e50726f746f636f6c3a3a70726f636573734269643a20434f4f5244494e41544f525f4e4f545f524547495354455245444865726d657a41756374696f6e50726f746f636f6c3a3a70726f636573734d756c74694269643a20544f4b454e5f5452414e534645525f4641494c45444865726d657a41756374696f6e50726f746f636f6c3a3a5f7065726d69743a2057524f4e475f414d4f554e544865726d657a41756374696f6e50726f746f636f6c3a3a6368616e676544656661756c74536c6f745365744269643a204e4f545f56414c49445f534c4f545f5345544865726d657a41756374696f6e50726f746f636f6c3a3a736574436c6f73656441756374696f6e536c6f74733a20475245415445525f5448414e5f434c4f5345445f41554354494f4e5f534c4f54534865726d657a41756374696f6e50726f746f636f6c3a3a70726f636573734269643a2042454c4f575f4d494e494d554d4865726d657a41756374696f6e50726f746f636f6c3a3a70726f636573734269643a20544f4b454e5f5452414e534645525f4641494c45444865726d657a41756374696f6e50726f746f636f6c3a3a70726f636573734d756c74694269642041554354494f4e5f434c4f5345444865726d657a41756374696f6e50726f746f636f6c3a3a6765744d696e4269644279536c6f743a2041554354494f4e5f434c4f5345444865726d657a41756374696f6e50726f746f636f6c3a3a70726f636573734d756c7469426964204d41584249445f475245415445525f5448414e5f4d494e4249444865726d657a41756374696f6e50726f746f636f6c3a3a6368616e676544656661756c74536c6f745365744269643a20534c4f545f444543454e5452414c495a45444865726d657a41756374696f6e50726f746f636f6c3a3a736574416c6c6f636174696f6e526174696f3a20414c4c4f434154494f4e5f524154494f5f4e4f545f56414c49444865726d657a41756374696f6e50726f746f636f6c3a3a6865726d657a41756374696f6e50726f746f636f6c496e697469616c697a65722047454e455349535f42454c4f575f4d494e494d414c4865726d657a41756374696f6e50726f746f636f6c3a3a736574536c6f74446561646c696e653a20475245415445525f5448414e5f424c4f434b535f5045525f534c4f544865726d657a41756374696f6e50726f746f636f6c3a3a7365744f70656e41756374696f6e536c6f74733a20534d414c4c45525f5448414e5f434c4f5345445f41554354494f4e5f534c4f54534865726d657a41756374696f6e50726f746f636f6c3a3a63616e466f7267652041554354494f4e5f4e4f545f535441525445444865726d657a41756374696f6e50726f746f636f6c3a3a70726f636573734269643a2041554354494f4e5f4e4f545f4f50454e4865726d657a41756374696f6e50726f746f636f6c3a3a636c61696d48455a3a204e4f545f454e4f5547485f42414c414e4345536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774865726d657a41756374696f6e50726f746f636f6c3a3a666f7267653a204f4e4c595f4845524d455a5f524f4c4c5550436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a65644865726d657a41756374696f6e50726f746f636f6c3a3a6f6e6c79476f7665726e616e63653a204f4e4c595f474f5645524e414e43454865726d657a41756374696f6e50726f746f636f6c3a3a666f7267653a2043414e4e4f545f464f5247454865726d657a41756374696f6e50726f746f636f6c3a3a636c61696d48455a3a20544f4b454e5f5452414e534645525f4641494c45444865726d657a41756374696f6e50726f746f636f6c3a3a70726f636573734d756c7469426964204e4f545f454e4f5547485f42414c414e43454865726d657a41756374696f6e50726f746f636f6c3a3a70726f636573734d756c74694269642041554354494f4e5f4e4f545f4f50454e4865726d657a41756374696f6e50726f746f636f6c3a3a5f7065726d69743a205350454e4445525f4e4f545f455155414c5f544849534865726d657a41756374696f6e50726f746f636f6c3a3a70726f636573734269643a2041554354494f4e5f434c4f5345444865726d657a41756374696f6e50726f746f636f6c3a3a70726f636573734d756c746942696420434f4f5244494e41544f525f4e4f545f524547495354455245444865726d657a41756374696f6e50726f746f636f6c3a3a63616e466f7267652057524f4e475f424c4f434b4e554d4245524865726d657a41756374696f6e50726f746f636f6c3a3a5f7065726d69743a204f574e45525f4e4f545f455155414c5f53454e444552a2646970667358221220fa6e9ab6bd62c31a013ab78578144885ff66320333e5884e308e6b1fc2054fc764736f6c634300060c0033" // DeployHermezAuctionProtocol deploys a new Ethereum contract, binding an instance of HermezAuctionProtocol to it. func DeployHermezAuctionProtocol(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *HermezAuctionProtocol, error) { diff --git a/eth/contracts/hermez/Hermez.go b/eth/contracts/hermez/Hermez.go index 8eadab9..5ed9d1f 100644 --- a/eth/contracts/hermez/Hermez.go +++ b/eth/contracts/hermez/Hermez.go @@ -30,7 +30,7 @@ var ( const HermezABI = "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"tokenID\",\"type\":\"uint32\"}],\"name\":\"AddToken\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"batchNum\",\"type\":\"uint64\"}],\"name\":\"ForgeBatch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"queueIndex\",\"type\":\"uint64\"},{\"indexed\":true,\"internalType\":\"uint8\",\"name\":\"position\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"l1UserTx\",\"type\":\"bytes\"}],\"name\":\"L1UserTxEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newFeeAddToken\",\"type\":\"uint256\"}],\"name\":\"UpdateFeeAddToken\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"newForgeL1L2BatchTimeout\",\"type\":\"uint8\"}],\"name\":\"UpdateForgeL1L2BatchTimeout\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint48\",\"name\":\"idx\",\"type\":\"uint48\"},{\"indexed\":true,\"internalType\":\"uint48\",\"name\":\"numExitRoot\",\"type\":\"uint48\"},{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"instantWithdraw\",\"type\":\"bool\"}],\"name\":\"WithdrawEvent\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ABSOLUTE_MAX_L1L2BATCHTIMEOUT\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"babyPubKey\",\"type\":\"uint256\"},{\"internalType\":\"uint48\",\"name\":\"fromIdx\",\"type\":\"uint48\"},{\"internalType\":\"uint16\",\"name\":\"loadAmountF\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"amountF\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"tokenID\",\"type\":\"uint32\"},{\"internalType\":\"uint48\",\"name\":\"toIdx\",\"type\":\"uint48\"},{\"internalType\":\"bytes\",\"name\":\"permit\",\"type\":\"bytes\"}],\"name\":\"addL1Transaction\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"permit\",\"type\":\"bytes\"}],\"name\":\"addToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"buckets\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"ceilUSD\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockStamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawals\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockWithdrawalRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxWithdrawals\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"},{\"internalType\":\"uint48\",\"name\":\"\",\"type\":\"uint48\"}],\"name\":\"exitNullifierMap\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"name\":\"exitRootsMap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeAddToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint48\",\"name\":\"newLastIdx\",\"type\":\"uint48\"},{\"internalType\":\"uint256\",\"name\":\"newStRoot\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"newExitRoot\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"encodedL1CoordinatorTx\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"l2TxsData\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"feeIdxCoordinator\",\"type\":\"bytes\"},{\"internalType\":\"uint8\",\"name\":\"verifierIdx\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"l1Batch\",\"type\":\"bool\"},{\"internalType\":\"uint256[2]\",\"name\":\"proofA\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256[2][2]\",\"name\":\"proofB\",\"type\":\"uint256[2][2]\"},{\"internalType\":\"uint256[2]\",\"name\":\"proofC\",\"type\":\"uint256[2]\"}],\"name\":\"forgeBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"forgeL1L2BatchTimeout\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hermezAuctionContract\",\"outputs\":[{\"internalType\":\"contractAuctionInterface\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hermezGovernanceDAOAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_verifiers\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_verifiersParams\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"_withdrawVerifier\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_hermezAuctionContract\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_tokenHEZ\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"_forgeL1L2BatchTimeout\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"_feeAddToken\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_poseidon2Elements\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_poseidon3Elements\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_poseidon4Elements\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_hermezGovernanceDAOAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_safetyAddress\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"_withdrawalDelay\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"_withdrawDelayerContract\",\"type\":\"address\"}],\"name\":\"initializeHermez\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint192\",\"name\":\"amount\",\"type\":\"uint192\"}],\"name\":\"instantWithdrawalViewer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastForgedBatch\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastIdx\",\"outputs\":[{\"internalType\":\"uint48\",\"name\":\"\",\"type\":\"uint48\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastL1L2Batch\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"name\":\"mapL1TxQueue\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextL1FillingQueue\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextL1ToForgeQueue\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"registerTokensCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"rollupVerifiers\",\"outputs\":[{\"internalType\":\"contractVerifierRollupInterface\",\"name\":\"verifierInterface\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maxTx\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nLevels\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"safeMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"safetyAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"name\":\"stateRootMap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"tokenExchange\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenHEZ\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"tokenList\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"tokenMap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[4][5]\",\"name\":\"arrayBuckets\",\"type\":\"uint256[4][5]\"}],\"name\":\"updateBucketsParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newFeeAddToken\",\"type\":\"uint256\"}],\"name\":\"updateFeeAddToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newForgeL1L2BatchTimeout\",\"type\":\"uint8\"}],\"name\":\"updateForgeL1L2BatchTimeout\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"addressArray\",\"type\":\"address[]\"},{\"internalType\":\"uint64[]\",\"name\":\"valueArray\",\"type\":\"uint64[]\"}],\"name\":\"updateTokenExchange\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"newWithdrawalDelay\",\"type\":\"uint64\"}],\"name\":\"updateWithdrawalDelay\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[2]\",\"name\":\"proofA\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256[2][2]\",\"name\":\"proofB\",\"type\":\"uint256[2][2]\"},{\"internalType\":\"uint256[2]\",\"name\":\"proofC\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint32\",\"name\":\"tokenID\",\"type\":\"uint32\"},{\"internalType\":\"uint192\",\"name\":\"amount\",\"type\":\"uint192\"},{\"internalType\":\"uint48\",\"name\":\"numExitRoot\",\"type\":\"uint48\"},{\"internalType\":\"uint48\",\"name\":\"idx\",\"type\":\"uint48\"},{\"internalType\":\"bool\",\"name\":\"instantWithdraw\",\"type\":\"bool\"}],\"name\":\"withdrawCircuit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawDelayerContract\",\"outputs\":[{\"internalType\":\"contractWithdrawalDelayerInterface\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"tokenID\",\"type\":\"uint32\"},{\"internalType\":\"uint192\",\"name\":\"amount\",\"type\":\"uint192\"},{\"internalType\":\"uint256\",\"name\":\"babyPubKey\",\"type\":\"uint256\"},{\"internalType\":\"uint48\",\"name\":\"numExitRoot\",\"type\":\"uint48\"},{\"internalType\":\"uint256[]\",\"name\":\"siblings\",\"type\":\"uint256[]\"},{\"internalType\":\"uint48\",\"name\":\"idx\",\"type\":\"uint48\"},{\"internalType\":\"bool\",\"name\":\"instantWithdraw\",\"type\":\"bool\"}],\"name\":\"withdrawMerkleProof\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawVerifier\",\"outputs\":[{\"internalType\":\"contractVerifierWithdrawInterface\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawalDelay\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]" // HermezBin is the compiled bytecode used for deploying new contracts. -var HermezBin = "0x608060405234801561001057600080fd5b50614e7c806100206000396000f3fe6080604052600436106102245760003560e01c806386c6acc111610123578063bded9bb8116100ab578063dd46bf841161006f578063dd46bf8414610d6a578063e56e27ae14610d7f578063e796fcf314610d94578063e9b5269c14610e3c578063ef4a5c4a14610e7d57610224565b8063bded9bb814610c77578063c63cc3a014610c8c578063cbd7b5fb14610cf8578063d0f32e6714610d25578063d486645c14610d3a57610224565b80639ead7222116100f25780639ead722214610bf95780639f34e9a314610c23578063a327583814610c38578063a7ab696114610c4d578063abe3219c14610c6257610224565b806386c6acc114610a99578063886df58714610acc57806395a09f2a14610b795780639b51fb0d14610ba457610224565b8063432dd51f116101b15780636e7e1365116101755780636e7e13651461087d57806370c2f1c0146109cf57806379a135e314610a5a57806384ef9ed414610a6f578063864eb16414610a8457610224565b8063432dd51f1461051c57806344e0b2ce146106085780634ee51c261461061d578063506d5463146107b957806368e95e53146107ec57610224565b80631b0a8223116101f85780631b0a8223146104045780632bd8362614610435578063314e5eda1461044a578063375110aa1461047457806338330200146104ca57610224565b80624aca6e146102295780630dd94b961461026e5780630ee8e52b146102bd5780631a748c2d146102d2575b600080fd5b34801561023557600080fd5b5061025c6004803603602081101561024c57600080fd5b50356001600160a01b0316610eb0565b60408051918252519081900360200190f35b34801561027a57600080fd5b506102a16004803603602081101561029157600080fd5b50356001600160a01b0316610ec2565b604080516001600160401b039092168252519081900360200190f35b3480156102c957600080fd5b506102a1610edd565b3480156102de57600080fd5b50610402600480360360408110156102f557600080fd5b810190602081018135600160201b81111561030f57600080fd5b82018360208201111561032157600080fd5b803590602001918460208302840111600160201b8311171561034257600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561039157600080fd5b8201836020820111156103a357600080fd5b803590602001918460208302840111600160201b831117156103c457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610ef3945050505050565b005b34801561041057600080fd5b50610419611020565b604080516001600160a01b039092168252519081900360200190f35b34801561044157600080fd5b5061041961102f565b34801561045657600080fd5b506104026004803603602081101561046d57600080fd5b503561103e565b34801561048057600080fd5b506104b66004803603604081101561049757600080fd5b5080356001600160a01b031690602001356001600160c01b03166110d1565b604080519115158252519081900360200190f35b3480156104d657600080fd5b506104f4600480360360208110156104ed57600080fd5b503561116d565b604080516001600160a01b039094168452602084019290925282820152519081900360600190f35b34801561052857600080fd5b50610402600480360360e081101561053f57600080fd5b63ffffffff823516916001600160c01b036020820135169160408201359165ffffffffffff6060820135169181019060a081016080820135600160201b81111561058857600080fd5b82018360208201111561059a57600080fd5b803590602001918460208302840111600160201b831117156105bb57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295505065ffffffffffff833516935050506020013515156111a7565b34801561061457600080fd5b506102a16113ac565b34801561062957600080fd5b5061040260048036036101c081101561064157600080fd5b810190602081018135600160201b81111561065b57600080fd5b82018360208201111561066d57600080fd5b803590602001918460208302840111600160201b8311171561068e57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156106dd57600080fd5b8201836020820111156106ef57600080fd5b803590602001918460208302840111600160201b8311171561071057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505081356001600160a01b0390811693506020830135811692604081013582169250606081013560ff169160808201359160a081013582169160c082013581169160e08101358216916101008201358116916101208101358216916101408201356001600160401b0316916101600135166113bb565b3480156107c557600080fd5b5061025c600480360360208110156107dc57600080fd5b50356001600160401b03166115bb565b3480156107f857600080fd5b50610402600480360361028081101561081057600080fd5b6040805160a0810190915290820191906102808201908260056000835b8282101561086e576040805160808181019092529080840286019060049083908390808284376000920191909152505050815260019091019060200161082d565b509295506115cd945050505050565b34801561088957600080fd5b5061040260048036036102008110156108a157600080fd5b65ffffffffffff8235169160208101359160408201359190810190608081016060820135600160201b8111156108d657600080fd5b8201836020820111156108e857600080fd5b803590602001918460018302840111600160201b8311171561090957600080fd5b919390929091602081019035600160201b81111561092657600080fd5b82018360208201111561093857600080fd5b803590602001918460018302840111600160201b8311171561095957600080fd5b919390929091602081019035600160201b81111561097657600080fd5b82018360208201111561098857600080fd5b803590602001918460018302840111600160201b831117156109a957600080fd5b919350915060ff8135169060208101351515906040810190608081019061010001611756565b3480156109db57600080fd5b50610402600480360360408110156109f257600080fd5b6001600160a01b038235169190810190604081016020820135600160201b811115610a1c57600080fd5b820183602082011115610a2e57600080fd5b803590602001918460018302840111600160201b83111715610a4f57600080fd5b509092509050611c05565b348015610a6657600080fd5b50610419611de9565b348015610a7b57600080fd5b506102a1611df8565b348015610a9057600080fd5b50610419611e07565b348015610aa557600080fd5b5061025c60048036036020811015610abc57600080fd5b50356001600160401b0316611e16565b610402600480360360e0811015610ae257600080fd5b81359165ffffffffffff602082013581169261ffff604084013581169360608101359091169263ffffffff6080830135169260a0830135909116919081019060e0810160c0820135600160201b811115610b3b57600080fd5b820183602082011115610b4d57600080fd5b803590602001918460018302840111600160201b83111715610b6e57600080fd5b509092509050611e28565b348015610b8557600080fd5b50610b8e611fd9565b6040805160ff9092168252519081900360200190f35b348015610bb057600080fd5b50610bce60048036036020811015610bc757600080fd5b5035611fde565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b348015610c0557600080fd5b5061041960048036036020811015610c1c57600080fd5b5035612010565b348015610c2f57600080fd5b5061025c612037565b348015610c4457600080fd5b50610b8e61203d565b348015610c5957600080fd5b506102a161204d565b348015610c6e57600080fd5b50610402612063565b348015610c8357600080fd5b5061025c6121db565b348015610c9857600080fd5b5061040260048036036101a0811015610cb057600080fd5b506040810160c0820163ffffffff610100840135166001600160c01b036101208501351665ffffffffffff6101408601358116906101608701351661018087013515156121e1565b348015610d0457600080fd5b5061040260048036036020811015610d1b57600080fd5b503560ff166125dc565b348015610d3157600080fd5b506102a16126d9565b348015610d4657600080fd5b50610d4f6126ef565b6040805165ffffffffffff9092168252519081900360200190f35b348015610d7657600080fd5b50610419612704565b348015610d8b57600080fd5b50610419612713565b348015610da057600080fd5b50610dc760048036036020811015610db757600080fd5b50356001600160401b0316612722565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610e01578181015183820152602001610de9565b50505050905090810190601f168015610e2e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610e4857600080fd5b506104b660048036036040811015610e5f57600080fd5b5080356001600160401b0316906020013565ffffffffffff166127bd565b348015610e8957600080fd5b5061040260048036036020811015610ea057600080fd5b50356001600160401b03166127dd565b605a6020526000908152604090205481565b6052602052600090815260409020546001600160401b031681565b605e54600160801b90046001600160401b031681565b604f546001600160a01b03163314610f4b576040805162461bcd60e51b81526020600482015260166024820152754f6e6c7920676f766572616e6365206164647265737360501b604482015290519081900360640190fd5b8051825114610fa1576040805162461bcd60e51b815260206004820152601760248201527f646966666572656e74206172726179206c656e67746820000000000000000000604482015290519081900360640190fd5b60005b825181101561101b57818181518110610fb957fe5b602002602001015160526000858481518110610fd157fe5b6020908102919091018101516001600160a01b03168252810191909152604001600020805467ffffffffffffffff19166001600160401b0392909216919091179055600101610fa4565b505050565b6051546001600160a01b031681565b605c546001600160a01b031681565b604f546001600160a01b03163314611096576040805162461bcd60e51b81526020600482015260166024820152754f6e6c7920676f766572616e6365206164647265737360501b604482015290519081900360640190fd5b605b8190556040805182815290517fd1c873cd16013f0dc5f37992c0d12794389698512895ec036a568e393b46e3c19181900360200190a150565b6000806110de84846128c3565b9050806110ef576001915050611167565b60006110fa82612a8f565b905060006036826005811061110b57fe5b60050201905060008160020154111561112a5760019350505050611167565b6000611143826001015443612b0a90919063ffffffff16565b9050816003015481101561115e576000945050505050611167565b60019450505050505b92915050565b6053818154811061117a57fe5b60009182526020909120600390910201805460018201546002909201546001600160a01b03909116925083565b8015611219576111de60598863ffffffff16815481106111c357fe5b6000918252602090912001546001600160a01b031687612b53565b6112195760405162461bcd60e51b815260040180806020018281038252602d815260200180614d29602d913960400191505060405180910390fd5b6060611232886000896001600160c01b03168933612c9d565b9050600061123f82612daa565b65ffffffffffff80881660009081526057602090815260408083205460588352818420948a168452939091529020549192509060ff16156112c7576040805162461bcd60e51b815260206004820152601e60248201527f776974686472617720686173206265656e20616c726561647920646f6e650000604482015290519081900360640190fd5b6112db81878765ffffffffffff1685612e5f565b1515600114611325576040805162461bcd60e51b81526020600482015260116024820152701cdb5d081c1c9bdbd9881a5b9d985b1a59607a1b604482015290519081900360640190fd5b65ffffffffffff8088166000908152605860209081526040808320938916835292905220805460ff1916600117905561135f898b86612ee6565b8315158765ffffffffffff168665ffffffffffff167f92dd99230eaf5e3f1238fbbd0d72b34e8c2ad759886075bfc9f426ebeeea34f060405160405180910390a450505050505050505050565b6055546001600160401b031681565b600054610100900460ff16806113d457506113d4613080565b806113e2575060005460ff16155b61141d5760405162461bcd60e51b815260040180806020018281038252602e815260200180614dab602e913960400191505060405180910390fd5b600054610100900460ff16158015611448576000805460ff1961ff0019909116610100171660011790555b6114528f8f613086565b8c605460006101000a8154816001600160a01b0302191690836001600160a01b031602179055508b605c60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508a605f60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555089605e60186101000a81548160ff021916908360ff16021790555088605b8190555060ff605460146101000a81548165ffffffffffff021916908365ffffffffffff1602179055506001605e60106101000a8154816001600160401b0302191690836001600160401b03160217905550605960009080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b0316021790555061158c888888613152565b61159885858585613233565b80156115aa576000805461ff00191690555b505050505050505050505050505050565b60576020526000908152604090205481565b604f546001600160a01b03163314611625576040805162461bcd60e51b81526020600482015260166024820152754f6e6c7920676f766572616e6365206164647265737360501b604482015290519081900360640190fd5b60005b600581101561175257600082826005811061163f57fe5b6020020151519050600083836005811061165557fe5b6020020151600160200201519050600084846005811061167157fe5b6020020151604001519050600085856005811061168a57fe5b6020020151606001519050808311156116d45760405162461bcd60e51b815260040180806020018281038252602c815260200180614cdb602c913960400191505060405180910390fd5b6040518060a00160405280858152602001438152602001848152602001838152602001828152506036866005811061170857fe5b600502016000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155905050505050508080600101915050611628565b5050565b3332146117945760405162461bcd60e51b8152600401808060200182810382526034815260200180614d566034913960400191505060405180910390fd5b605c546040805163041d8fb560e51b815233600482015243602482015290516001600160a01b03909216916383b1f6a091604480820192602092909190829003018186803b1580156117e557600080fd5b505afa1580156117f9573d6000803e3d6000fd5b505050506040513d602081101561180f57600080fd5b50511515600114611867576040805162461bcd60e51b815260206004820152601860248201527f61756374696f6e2064656e6965642074686520666f7267650000000000000000604482015290519081900360640190fd5b836118ce57605e54600160c01b810460ff166001600160401b03918216011643106118ce576040805162461bcd60e51b8152602060048201526012602482015271130c530c90985d18da081c995c5d5a5c995960721b604482015290519081900360640190fd5b60006118dd8f8f8f888a613336565b905060538660ff16815481106118ef57fe5b60009182526020918290206003909102015460408051928301815283835280516343753b4d60e01b81526001600160a01b03909216926343753b4d9288928892889290916004909101908190869080828437600083820152601f01601f1916909101905084608080828437600083820152601f01601f1916909101905083604080828437600081840152601f19601f82011690508083019250505082600160200280838360005b838110156119ae578181015183820152602001611996565b5050505090500194505050505060206040518083038186803b1580156119d357600080fd5b505afa1580156119e7573d6000803e3d6000fd5b505050506040513d60208110156119fd57600080fd5b5051611a47576040805162461bcd60e51b815260206004820152601460248201527334b73b30b634b2103937b6363ab810383937b7b360611b604482015290519081900360640190fd5b6055600081819054906101000a90046001600160401b03168092919060010191906101000a8154816001600160401b0302191690836001600160401b03160217905550508e605460146101000a81548165ffffffffffff021916908365ffffffffffff1602179055508d60566000605560009054906101000a90046001600160401b03166001600160401b03166001600160401b03168152602001908152602001600020819055508c60576000605560009054906101000a90046001600160401b03166001600160401b03166001600160401b03168152602001908152602001600020819055508415611b5857605e805467ffffffffffffffff1916436001600160401b0316179055611b58613600565b605c54604080516309cb4a2f60e31b815233600482015290516001600160a01b0390921691634e5a51789160248082019260009290919082900301818387803b158015611ba457600080fd5b505af1158015611bb8573d6000803e3d6000fd5b50506055546040516001600160401b0390911692507fd7ab70a9e6ed0d6985e74c5cb553d300a13a2217d58266922b275b72fe7869829150600090a2505050505050505050505050505050565b605954600160201b8110611c55576040805162461bcd60e51b81526020600482015260126024820152711d1bdad95b881b1a5cdd081a5cc8199d5b1b60721b604482015290519081900360640190fd5b6001600160a01b038416611ca5576040805162461bcd60e51b8152602060048201526012602482015271063616e2774206265206164647265737320360741b604482015290519081900360640190fd5b6001600160a01b0384166000908152605a602052604090205415611d10576040805162461bcd60e51b815260206004820152601b60248201527f746f6b656e206164647265737320616c72656164792061646465640000000000604482015290519081900360640190fd5b8115611d3157605f54605b54611d31916001600160a01b03169085856136ae565b605f54605b54611d4e916001600160a01b03169033903090613964565b60598054600181019091557fd73956b9e00d8f8bc5e44f7184df1387cdd652e7726b8ccda3db4859e02f31bf0180546001600160a01b0319166001600160a01b0386169081179091556000818152605a6020908152604091829020849055815163ffffffff8516815291517fcb73d161edb7cd4fb1d92fedfd2555384fd997fd44ab507656f8c81e15747dde9281900390910190a250505050565b605f546001600160a01b031681565b605e546001600160401b031681565b6054546001600160a01b031681565b60566020526000908152604090205481565b60595463ffffffff851610611e84576040805162461bcd60e51b815260206004820152601d60248201527f746f6b656e20686173206e6f74206265656e2072656769737465726564000000604482015290519081900360640190fd5b6000611e8f87613ad7565b9050600160801b8110611ee9576040805162461bcd60e51b815260206004820181905260248201527f6465706f73697420616d6f756e74206c6172676572207468616e206c696d6974604482015290519081900360640190fd5b8015611fbf5763ffffffff8516611f5357348114611f4e576040805162461bcd60e51b815260206004820152601760248201527f6c6f6164416d6f756e7420213d206d73672e76616c7565000000000000000000604482015290519081900360640190fd5b611fbf565b8115611f8c57611f8c60598663ffffffff1681548110611f6f57fe5b6000918252602090912001546001600160a01b03168285856136ae565b611fbf60598663ffffffff1681548110611fa257fe5b6000918252602090912001546001600160a01b0316333084613964565b611fce338a8a8a8a8a8a613b1b565b505050505050505050565b60f081565b60368160058110611feb57fe5b6005020180546001820154600283015460038401546004909401549294509092909185565b6059818154811061201d57fe5b6000918252602090912001546001600160a01b0316905081565b60595490565b605e54600160c01b900460ff1681565b605054600160a01b90046001600160401b031681565b6050546001600160a01b03163314806120865750604f546001600160a01b031633145b6120d7576040805162461bcd60e51b815260206004820152601a60248201527f4f6e6c79207361666520626f74206f7220676f766572616e6365000000000000604482015290519081900360640190fd5b60005b6005811015612162576040518060a001604052806000815260200160008152602001600081526020016000815260200160008152506036826005811061211c57fe5b60050201600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015590505080806001019150506120da565b5060515460505460408051630e670af560e01b8152600160a01b9092046001600160401b03166004830152516001600160a01b0390921691630e670af59160248082019260009290919082900301818387803b1580156121c157600080fd5b505af11580156121d5573d6000803e3d6000fd5b50505050565b605b5481565b80156122535761221860598663ffffffff16815481106121fd57fe5b6000918252602090912001546001600160a01b031685612b53565b6122535760405162461bcd60e51b815260040180806020018281038252602d815260200180614d29602d913960400191505060405180910390fd5b65ffffffffffff80841660009081526058602090815260408083209386168352929052205460ff16156122cd576040805162461bcd60e51b815260206004820152601e60248201527f776974686472617720686173206265656e20616c726561647920646f6e650000604482015290519081900360640190fd5b65ffffffffffff831660009081526057602090815260408083205481518084018290523360601b818401526001600160e01b031960e08b901b16605482015267ffffffffffffffff1989841b1660588201526001600160d01b031960d088901b1660708201528251605681830301815260769091019283905280519194937f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000019360029390918291908401908083835b6020831061239b5780518252601f19909201916020918201910161237c565b51815160209384036101000a60001901801990921691161790526040519190930194509192505080830381855afa1580156123da573d6000803e3d6000fd5b5050506040513d60208110156123ef57600080fd5b5051816123f857fe5b605454604080516020810182529390920680845282516343753b4d60e01b81529094506001600160a01b03909116926343753b4d928e928e928e929091600401908190869080828437600083820152601f01601f1916909101905084608080828437600083820152601f01601f1916909101905083604080828437600081840152601f19601f82011690508083019250505082600160200280838360005b838110156124ae578181015183820152602001612496565b5050505090500194505050505060206040518083038186803b1580156124d357600080fd5b505afa1580156124e7573d6000803e3d6000fd5b505050506040513d60208110156124fd57600080fd5b50511515600114612555576040805162461bcd60e51b815260206004820152601b60248201527f7a6b2d736e61726b2070726f6f66206973206e6f742076616c69640000000000604482015290519081900360640190fd5b65ffffffffffff8086166000908152605860209081526040808320938816835292905220805460ff1916600117905561258f868885612ee6565b8215158565ffffffffffff168565ffffffffffff167f92dd99230eaf5e3f1238fbbd0d72b34e8c2ad759886075bfc9f426ebeeea34f060405160405180910390a450505050505050505050565b604f546001600160a01b03163314612634576040805162461bcd60e51b81526020600482015260166024820152754f6e6c7920676f766572616e6365206164647265737360501b604482015290519081900360640190fd5b60f060ff82161115612685576040805162461bcd60e51b8152602060048201526015602482015274199bdc99d9481d1a5b595bdd5d08195e18d9591959605a1b604482015290519081900360640190fd5b605e805460ff8316600160c01b810260ff60c01b199092169190911790915560408051918252517fff6221781ac525b04585dbb55cd2ebd2a92c828ca3e42b23813a1137ac9744319181900360200190a150565b605e54600160401b90046001600160401b031681565b605454600160a01b900465ffffffffffff1681565b604f546001600160a01b031681565b6050546001600160a01b031681565b605d6020908152600091825260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156127b55780601f1061278a576101008083540402835291602001916127b5565b820191906000526020600020905b81548152906001019060200180831161279857829003601f168201915b505050505081565b605860209081526000928352604080842090915290825290205460ff1681565b604f546001600160a01b03163314612835576040805162461bcd60e51b81526020600482015260166024820152754f6e6c7920676f766572616e6365206164647265737360501b604482015290519081900360640190fd5b62127500816001600160401b03161115612896576040805162461bcd60e51b815260206004820152601c60248201527f45786365656473204d41585f5749544844524157414c5f44454c415900000000604482015290519081900360640190fd5b605080546001600160401b03909216600160a01b0267ffffffffffffffff60a01b19909216919091179055565b6001600160a01b0382166000908152605260205260408120546001600160401b03166128f157506000611167565b6001600160a01b038316600090815260526020526040812054655af3107a4000906001600160401b03166001600160c01b0385160260408051600481526024810182526020810180516001600160e01b031663313ce56760e01b1781529151815194909304945060009384936060936001600160a01b038b1693928291908083835b602083106129925780518252601f199092019160209182019101612973565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d80600081146129f2576040519150601f19603f3d011682016040523d82523d6000602084013e6129f7565b606091505b50915091508115612a1c57808060200190516020811015612a1757600080fd5b505192505b604d8360ff1610612a74576040805162461bcd60e51b815260206004820152601a60248201527f746f6b656e55534420646563696d616c73206f766572666c6f77000000000000604482015290519081900360640190fd5b8260ff16600a0a8481612a8357fe5b04979650505050505050565b6000805b6005811015612ac35760368160058110612aa957fe5b60050201548311612abb579050612b05565b600101612a93565b506040805162461bcd60e51b8152602060048201526011602482015270195e18d95959081b585e08185b5bdd5b9d607a1b604482015290519081900360640190fd5b919050565b6000612b4c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613dc5565b9392505050565b600080612b6084846128c3565b905080612b71576001915050611167565b6000612b7c82612a8f565b9050600060368260058110612b8d57fe5b6005020190506000612bac826001015443612b0a90919063ffffffff16565b90508160030154811015612c0057600282015415612bf357816004015482600201541415612bdb574360018301555b50600201805460001901905550600191506111679050565b6000945050505050611167565b6000612c19836003015483613e5c90919063ffffffff16565b90508260040154612c37828560020154613e9e90919063ffffffff16565b10612c5c576004830154612c4c906001612b0a565b6002840155436001840155612c8f565b60028301805482016000190190556003830154612c8990612c7e908390613ef8565b600185015490613e9e565b60018401555b600195505050505050611167565b60408051600480825260a08201909252606091829190602082016080803683370190505090508663ffffffff1681600081518110612cd757fe5b60200260200101818152505060208665ffffffffffff16901b65ffffffffffff1681600081518110612d0557fe5b602002602001018181511791508181525050604860ff85901c901b81600081518110612d2d57fe5b6020026020010181815117915081815250508481600181518110612d4d57fe5b602090810291909101015280516001600160ff1b0385169082906002908110612d7257fe5b602002602001018181525050826001600160a01b031681600381518110612d9557fe5b60209081029190910101529695505050505050565b60355460405163311083ed60e21b81526020600482018181528451602484015284516000946001600160a01b03169363c4420fb49387939283926044019180860191028083838b5b83811015612e0a578181015183820152602001612df2565b505050509050019250505060206040518083038186803b158015612e2d57600080fd5b505afa158015612e41573d6000803e3d6000fd5b505050506040513d6020811015612e5757600080fd5b505192915050565b600080612e6c8484613f51565b8551909150600090600019015b60008112612ed957868181518110612e8d57fe5b60200260200101519150600081876000821215612ea657fe5b6001911c811614905080612ec357612ebe8484613fd7565b612ecd565b612ecd8385613fd7565b93505060001901612e79565b5050909414949350505050565b8015612f2c57612f2760598363ffffffff1681548110612f0257fe5b6000918252602090912001546001600160a01b0316336001600160c01b03861661403a565b61101b565b63ffffffff8216612fb8576051546040805163cfc0b64160e01b81523360048201526000602482018190526001600160c01b0387166044830181905292516001600160a01b039094169363cfc0b6419392606480820193929182900301818588803b158015612f9a57600080fd5b505af1158015612fae573d6000803e3d6000fd5b505050505061101b565b600060598363ffffffff1681548110612fcd57fe5b6000918252602090912001546051546001600160a01b039182169250612fff918391166001600160c01b03871661429f565b6051546040805163cfc0b64160e01b81523360048201526001600160a01b0384811660248301526001600160c01b03881660448301529151919092169163cfc0b64191606480830192600092919082900301818387803b15801561306257600080fd5b505af1158015613076573d6000803e3d6000fd5b5050505050505050565b303b1590565b60005b825181101561101b57605360405180606001604052808584815181106130ab57fe5b60200260200101516001600160a01b031681526020016008808686815181106130d057fe5b6020026020010151901b901c815260200160f88585815181106130ef57fe5b60209081029190910181015190911c909152825460018082018555600094855293829020835160039092020180546001600160a01b0319166001600160a01b03909216919091178155908201518184015560409091015160029091015501613089565b600054610100900460ff168061316b575061316b613080565b80613179575060005460ff16155b6131b45760405162461bcd60e51b815260040180806020018281038252602e815260200180614dab602e913960400191505060405180910390fd5b600054610100900460ff161580156131df576000805460ff1961ff0019909116610100171660011790555b603380546001600160a01b038087166001600160a01b03199283161790925560348054868416908316179055603580549285169290911691909117905580156121d5576000805461ff001916905550505050565b600054610100900460ff168061324c575061324c613080565b8061325a575060005460ff16155b6132955760405162461bcd60e51b815260040180806020018281038252602e815260200180614dab602e913960400191505060405180910390fd5b600054610100900460ff161580156132c0576000805460ff1961ff0019909116610100171660011790555b604f80546001600160a01b03199081166001600160a01b03888116919091179092556050805482168784161767ffffffffffffffff60a01b1916600160a01b6001600160401b0388160217905560518054909116918416919091179055801561332f576000805461ff00191690555b5050505050565b6055546001600160401b031660009081526056602052604081205460545460538054600160a01b90920465ffffffffffff16918491829182919060ff891690811061337d57fe5b906000526020600020906003020160010154600860538960ff16815481106133a157fe5b906000526020600020906003020160020154816133ba57fe5b046002026003010290506000600860538960ff16815481106133d857fe5b906000526020600020906003020160020154816133f157fe5b604080519290910481028481018084016148ae0190925261486e909101825260d087811b60208401528e901b6026830152602c8201889052604c82018d9052606c82018c90529150608c8101613447818c6143f3565b61480001613455600461464a565b9096509450838511156134a5576040805162461bcd60e51b81526020600482015260136024820152726c322074782064617461206f766572666c6f7760681b604482015290519081900360640190fd5b8486823784016134b78186860361465e565b848403016134c5600561464a565b909650945082851461351e576040805162461bcd60e51b815260206004820181905260248201527f666565496478436f6f7264696e61746f72206c656e67746820696e76616c6964604482015290519081900360640190fd5b8486823784016135308186850361465e565b848303810190504660f01b81527f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000016002836040518082805190602001908083835b602083106135905780518252601f199092019160209182019101613571565b51815160209384036101000a60001901801990921691161790526040519190930194509192505080830381855afa1580156135cf573d6000803e3d6000fd5b5050506040513d60208110156135e457600080fd5b5051816135ed57fe5b069e9d5050505050505050505050505050565b605e54600160401b90046001600160401b03166000908152605d6020526040812061362a91614c2a565b605e805460016001600160401b03600160401b808404821692909201811682026fffffffffffffffff000000000000000019909316929092179283905582048116600160801b9092041614156136ac57605e805460016001600160401b03600160801b808404821692909201160267ffffffffffffffff60801b199091161790555b565b6000828260208110156136c057600080fd5b50356001600160e01b031916905063d505accf60e01b81141561332f5760008080808080806136f2896004818d614c8a565b60e081101561370057600080fd5b506001600160a01b038135811698506020820135169650604081013595506060810135945060ff608082013516935060a0810135925060c001359050338714613790576040805162461bcd60e51b815260206004820152601f60248201527f5065726d6974206f776e6572206d757374206265207468652073656e64657200604482015290519081900360640190fd5b6001600160a01b03861630146137e4576040805162461bcd60e51b81526020600482015260146024820152735370656e646572206d757374206265207468697360601b604482015290519081900360640190fd5b8a8514613838576040805162461bcd60e51b815260206004820152601c60248201527f5065726d697420616d6f756e7420646f6573206e6f74206d6174636800000000604482015290519081900360640190fd5b8b6001600160a01b031663d505accf60e01b8888888888888860405160240180886001600160a01b03168152602001876001600160a01b031681526020018681526020018581526020018460ff168152602001838152602001828152602001975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083835b602083106139025780518252601f1990920191602091820191016138e3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146115aa576040519150601f19603f3d011682016040523d82523d6000602084013e6115aa565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b602083106139e95780518252601f1990920191602091820191016139ca565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613a4b576040519150601f19603f3d011682016040523d82523d6000602084013e613a50565b606091505b5091509150818015613a7e575080511580613a7e5750808060200190516020811015613a7b57600080fd5b50515b613acf576040805162461bcd60e51b815260206004820152601960248201527f73616665207472616e736665722066726f6d206661696c656400000000000000604482015290519081900360640190fd5b505050505050565b60006103ff8216601f600b84901c166001600a85811c8216919083900a908185029083148015613b0657508315155b15613b115760028204015b9695505050505050565b6000613b2684613ad7565b9050600160c01b8110613b80576040805162461bcd60e51b815260206004820152601860248201527f616d6f756e74206c6172676572207468616e206c696d69740000000000000000604482015290519081900360640190fd5b65ffffffffffff8216613be5578015613be0576040805162461bcd60e51b815260206004820152601e60248201527f616d6f756e74206d757374206265203020696620746f49647820697320300000604482015290519081900360640190fd5b613cbb565b65ffffffffffff821660011415613c4d5761ffff851615613be0576040805162461bcd60e51b815260206004820152601c60248201527f6c6f6164416d6f756e74206d7573742062652030206966206578697400000000604482015290519081900360640190fd5b60ff65ffffffffffff8316118015613c7a575060545465ffffffffffff600160a01b909104811690831611155b613cbb576040805162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840e8de92c8f609b1b604482015290519081900360640190fd5b65ffffffffffff8616613d095786613d045760405162461bcd60e51b8152600401808060200182810382526028815260200180614cb36028913960400191505060405180910390fd5b613db6565b60ff65ffffffffffff8716118015613d36575060545465ffffffffffff600160a01b909104811690871611155b613d79576040805162461bcd60e51b815260206004820152600f60248201526e0d2dcecc2d8d2c840cce4deda92c8f608b1b604482015290519081900360640190fd5b8615613db65760405162461bcd60e51b815260040180806020018281038252602c815260200180614dd9602c913960400191505060405180910390fd5b61307688888888888888614677565b60008184841115613e545760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613e19578181015183820152602001613e01565b50505050905090810190601f168015613e465780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000612b4c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250614851565b600082820183811015612b4c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082613f0757506000611167565b82820282848281613f1457fe5b0414612b4c5760405162461bcd60e51b8152600401808060200182810382526021815260200180614d8a6021913960400191505060405180910390fd5b60408051600380825260808201909252600091606091906020820183803683370190505090508381600081518110613f8557fe5b6020026020010181815250508281600181518110613f9f57fe5b602002602001018181525050600181600281518110613fba57fe5b602002602001018181525050613fcf816148b6565b949350505050565b6040805160028082526060808301845260009390929190602083019080368337019050509050838160008151811061400b57fe5b602002602001018181525050828160018151811061402557fe5b602002602001018181525050613fcf81614913565b6001600160a01b0383166141445760408051600080825260208201909252339083906040518082805190602001908083835b6020831061408b5780518252601f19909201916020918201910161406c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146140ed576040519150601f19603f3d011682016040523d82523d6000602084013e6140f2565b606091505b505090508061413e576040805162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b604482015290519081900360640190fd5b5061101b565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b602083106141c15780518252601f1990920191602091820191016141a2565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614223576040519150601f19603f3d011682016040523d82523d6000602084013e614228565b606091505b5091509150818015614256575080511580614256575080806020019051602081101561425357600080fd5b50515b61332f576040805162461bcd60e51b8152602060048201526015602482015274115490cc8c081d1c985b9cd9995c8819985a5b1959605a1b604482015290519081900360640190fd5b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b178152925182516000946060949389169392918291908083835b6020831061431c5780518252601f1990920191602091820191016142fd565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461437e576040519150601f19603f3d011682016040523d82523d6000602084013e614383565b606091505b50915091508180156143b15750805115806143b157508080602001905160208110156143ae57600080fd5b50515b61332f576040805162461bcd60e51b815260206004820152600e60248201526d1054141493d59157d1905253115160921b604482015290519081900360640190fd5b600080614400600361464a565b9092509050606581046000606085156144d357605e54600160401b90046001600160401b03166000908152605d60209081526040918290208054835160026101006001841615026000190190921691909104601f81018490048402820184019094528381529290918301828280156144b95780601f1061448e576101008083540402835291602001916144b9565b820191906000526020600020905b81548152906001019060200180831161449c57829003601f168201915b5050505050905060488151816144cb57fe5b0491506144d8565b600091505b6101008383011115614522576040805162461bcd60e51b815260206004820152600e60248201526d4c31205458206f766572666c6f7760901b604482015290519081900360640190fd5b8115614550576048820287019660208201905b8881101561454d578151815260209182019101614535565b50505b60005b8381101561462d576059546065870196803560001a916001820135916021810135916041820135916061013560e01c9081106145d6576040805162461bcd60e51b815260206004820152601d60248201527f746f6b656e20686173206e6f74206265656e2072656769737465726564000000604482015290519081900360640190fd5b6001600160a01b0360ff8616156145f6576145f383858789614970565b90505b60601b8d5260148d0191909152600060348d0181905260e09190911b603e8d015260428c0152505060489098019750600101614553565b50614641876048858561010003030261465e565b50505050505050565b602002600490810135602481019291013590565b808201915b8281101561101b5760008152602001614663565b604080516bffffffffffffffffffffffff1960608a901b16602080830191909152603482018990526001600160d01b031960d089811b821660548501526001600160f01b031960f08a811b8216605a87015289901b16605c8501526001600160e01b031960e088901b16605e808601919091529086901b90911660628401528351604881850301815260689093018452546001600160401b03600160801b909104166000908152605d909152919091206147319082614ae0565b605e54600160801b90046001600160401b03166000818152605d602090815260408083205481518381528651818501528651604860026101006001861615026000190190941693909304929092049560ff87169590947f7f40be4e420c002c02fa9cad961f6a7620769d32d272f3f8c15e3ff59de9310e9489948493918401928601918190849084905b838110156147d35781810151838201526020016147bb565b50505050905090810190601f1680156148005780820380516001836020036101000a031916815260200191505b509250505060405180910390a360808110611fce57605e805460016001600160401b03600160801b808404821692909201160267ffffffffffffffff60801b19909116179055505050505050505050565b600081836148a05760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613e19578181015183820152602001613e01565b5060008385816148ac57fe5b0495945050505050565b60345460405163311083ed60e21b81526020600482018181528451602484015284516000946001600160a01b03169363c4420fb49387939283926044019185810191028083838b8315612e0a578181015183820152602001612df2565b60335460405163311083ed60e21b81526020600482018181528451602484015284516000946001600160a01b03169363c4420fb49387939283926044019185810191028083838b8315612e0a578181015183820152602001612df2565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156149d15760405162461bcd60e51b8152600401808060200182810382526022815260200180614d076022913960400191505060405180910390fd5b60008560405160200180807f19457468657265756d205369676e6564204d6573736167653a0a393800000000815250601c0180614e0560429139604201828152602001915050604051602081830303815290604052805190602001209050600060018285888860405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015614a8b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613b11576040805162461bcd60e51b815260206004820152600a6024820152690657265636f7665722d360b41b604482015290519081900360640190fd5b815460026001808316156101000203821604825180820160208110602084100160028114614b8a5760018114614baf578660005260208404602060002001600160028402018855602085068060200390508088018589016001836101000a0392508282511684540184556001840193506020820191505b80821015614b745781518455600184019350602082019150614b57565b815191036101000a908190040290915550614641565b60028302826020036101000a846020036101000a602089015104020185018755614641565b8660005260208404602060002001600160028402018855846020038088018589016001836101000a0392508282511660ff198a160184556020820191506001840193505b80821015614c105781518455600184019350602082019150614bf3565b815191036101000a90819004029091555050505050505050565b50805460018160011615610100020316600290046000825580601f10614c505750614c6e565b601f016020900490600052602060002090810190614c6e9190614c71565b50565b5b80821115614c865760008155600101614c72565b5090565b60008085851115614c99578182fd5b83861115614ca5578182fd5b505082019391909203915056fe63616e277420637265617465206163636f756e74207769746820626162795075624b6579203d20307769746864726177616c73206d757374206265206c657373207468616e206d61785769746864726177616c7345434453413a20696e76616c6964207369676e6174757265202773272076616c7565696e7374616e74207769746864726177616c732077617374656420666f722074686973205553442072616e6765666f72676542617463682063616e27742062652063616c6c6564206173206120696e7465726e616c207472616e73616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564626162795075624b6579206d757374206265203020696620757365206578697374696e67206163636f756e744920617574686f72697a65207468697320626162796a75626a7562206b657920666f72206865726d657a20726f6c6c7570206163636f756e74206372656174696f6ea2646970667358221220a2b35bfb656b29ed3b02286ec46b12673578fafcf264c5ba2dd7d17fe67e318064736f6c634300060c0033" +var HermezBin = "0x608060405234801561001057600080fd5b50615367806100206000396000f3fe6080604052600436106102245760003560e01c806386c6acc111610123578063bded9bb8116100ab578063dd46bf841161006f578063dd46bf8414610d6a578063e56e27ae14610d7f578063e796fcf314610d94578063e9b5269c14610e3c578063ef4a5c4a14610e7d57610224565b8063bded9bb814610c77578063c63cc3a014610c8c578063cbd7b5fb14610cf8578063d0f32e6714610d25578063d486645c14610d3a57610224565b80639ead7222116100f25780639ead722214610bf95780639f34e9a314610c23578063a327583814610c38578063a7ab696114610c4d578063abe3219c14610c6257610224565b806386c6acc114610a99578063886df58714610acc57806395a09f2a14610b795780639b51fb0d14610ba457610224565b8063432dd51f116101b15780636e7e1365116101755780636e7e13651461087d57806370c2f1c0146109cf57806379a135e314610a5a57806384ef9ed414610a6f578063864eb16414610a8457610224565b8063432dd51f1461051c57806344e0b2ce146106085780634ee51c261461061d578063506d5463146107b957806368e95e53146107ec57610224565b80631b0a8223116101f85780631b0a8223146104045780632bd8362614610435578063314e5eda1461044a578063375110aa1461047457806338330200146104ca57610224565b80624aca6e146102295780630dd94b961461026e5780630ee8e52b146102bd5780631a748c2d146102d2575b600080fd5b34801561023557600080fd5b5061025c6004803603602081101561024c57600080fd5b50356001600160a01b0316610eb0565b60408051918252519081900360200190f35b34801561027a57600080fd5b506102a16004803603602081101561029157600080fd5b50356001600160a01b0316610ec2565b604080516001600160401b039092168252519081900360200190f35b3480156102c957600080fd5b506102a1610edd565b3480156102de57600080fd5b50610402600480360360408110156102f557600080fd5b810190602081018135600160201b81111561030f57600080fd5b82018360208201111561032157600080fd5b803590602001918460208302840111600160201b8311171561034257600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561039157600080fd5b8201836020820111156103a357600080fd5b803590602001918460208302840111600160201b831117156103c457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610ef3945050505050565b005b34801561041057600080fd5b50610419610ffb565b604080516001600160a01b039092168252519081900360200190f35b34801561044157600080fd5b5061041961100a565b34801561045657600080fd5b506104026004803603602081101561046d57600080fd5b5035611019565b34801561048057600080fd5b506104b66004803603604081101561049757600080fd5b5080356001600160a01b031690602001356001600160c01b031661109d565b604080519115158252519081900360200190f35b3480156104d657600080fd5b506104f4600480360360208110156104ed57600080fd5b5035611139565b604080516001600160a01b039094168452602084019290925282820152519081900360600190f35b34801561052857600080fd5b50610402600480360360e081101561053f57600080fd5b63ffffffff823516916001600160c01b036020820135169160408201359165ffffffffffff6060820135169181019060a081016080820135600160201b81111561058857600080fd5b82018360208201111561059a57600080fd5b803590602001918460208302840111600160201b831117156105bb57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295505065ffffffffffff83351693505050602001351515611173565b34801561061457600080fd5b506102a1611358565b34801561062957600080fd5b5061040260048036036101c081101561064157600080fd5b810190602081018135600160201b81111561065b57600080fd5b82018360208201111561066d57600080fd5b803590602001918460208302840111600160201b8311171561068e57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156106dd57600080fd5b8201836020820111156106ef57600080fd5b803590602001918460208302840111600160201b8311171561071057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505081356001600160a01b0390811693506020830135811692604081013582169250606081013560ff169160808201359160a081013582169160c082013581169160e08101358216916101008201358116916101208101358216916101408201356001600160401b031691610160013516611367565b3480156107c557600080fd5b5061025c600480360360208110156107dc57600080fd5b50356001600160401b0316611567565b3480156107f857600080fd5b50610402600480360361028081101561081057600080fd5b6040805160a0810190915290820191906102808201908260056000835b8282101561086e576040805160808181019092529080840286019060049083908390808284376000920191909152505050815260019091019060200161082d565b50929550611579945050505050565b34801561088957600080fd5b5061040260048036036102008110156108a157600080fd5b65ffffffffffff8235169160208101359160408201359190810190608081016060820135600160201b8111156108d657600080fd5b8201836020820111156108e857600080fd5b803590602001918460018302840111600160201b8311171561090957600080fd5b919390929091602081019035600160201b81111561092657600080fd5b82018360208201111561093857600080fd5b803590602001918460018302840111600160201b8311171561095957600080fd5b919390929091602081019035600160201b81111561097657600080fd5b82018360208201111561098857600080fd5b803590602001918460018302840111600160201b831117156109a957600080fd5b919350915060ff81351690602081013515159060408101906080810190610100016116f3565b3480156109db57600080fd5b50610402600480360360408110156109f257600080fd5b6001600160a01b038235169190810190604081016020820135600160201b811115610a1c57600080fd5b820183602082011115610a2e57600080fd5b803590602001918460018302840111600160201b83111715610a4f57600080fd5b509092509050611b74565b348015610a6657600080fd5b50610419611d42565b348015610a7b57600080fd5b506102a1611d51565b348015610a9057600080fd5b50610419611d60565b348015610aa557600080fd5b5061025c60048036036020811015610abc57600080fd5b50356001600160401b0316611d6f565b610402600480360360e0811015610ae257600080fd5b81359165ffffffffffff602082013581169261ffff604084013581169360608101359091169263ffffffff6080830135169260a0830135909116919081019060e0810160c0820135600160201b811115610b3b57600080fd5b820183602082011115610b4d57600080fd5b803590602001918460018302840111600160201b83111715610b6e57600080fd5b509092509050611d81565b348015610b8557600080fd5b50610b8e611ef0565b6040805160ff9092168252519081900360200190f35b348015610bb057600080fd5b50610bce60048036036020811015610bc757600080fd5b5035611ef5565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b348015610c0557600080fd5b5061041960048036036020811015610c1c57600080fd5b5035611f27565b348015610c2f57600080fd5b5061025c611f4e565b348015610c4457600080fd5b50610b8e611f54565b348015610c5957600080fd5b506102a1611f64565b348015610c6e57600080fd5b50610402611f7a565b348015610c8357600080fd5b5061025c6120dc565b348015610c9857600080fd5b5061040260048036036101a0811015610cb057600080fd5b506040810160c0820163ffffffff610100840135166001600160c01b036101208501351665ffffffffffff6101408601358116906101608701351661018087013515156120e2565b348015610d0457600080fd5b5061040260048036036020811015610d1b57600080fd5b503560ff166124b1565b348015610d3157600080fd5b506102a1612591565b348015610d4657600080fd5b50610d4f6125a7565b6040805165ffffffffffff9092168252519081900360200190f35b348015610d7657600080fd5b506104196125bc565b348015610d8b57600080fd5b506104196125cb565b348015610da057600080fd5b50610dc760048036036020811015610db757600080fd5b50356001600160401b03166125da565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610e01578181015183820152602001610de9565b50505050905090810190601f168015610e2e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610e4857600080fd5b506104b660048036036040811015610e5f57600080fd5b5080356001600160401b0316906020013565ffffffffffff16612675565b348015610e8957600080fd5b5061040260048036036020811015610ea057600080fd5b50356001600160401b0316612695565b605a6020526000908152604090205481565b6052602052600090815260409020546001600160401b031681565b605e54600160801b90046001600160401b031681565b604f546001600160a01b03163314610f3c5760405162461bcd60e51b815260040180806020018281038252603f815260200180615193603f913960400191505060405180910390fd5b8051825114610f7c5760405162461bcd60e51b8152600401808060200182810382526041815260200180614a9f6041913960600191505060405180910390fd5b60005b8251811015610ff657818181518110610f9457fe5b602002602001015160526000858481518110610fac57fe5b6020908102919091018101516001600160a01b03168252810191909152604001600020805467ffffffffffffffff19166001600160401b0392909216919091179055600101610f7f565b505050565b6051546001600160a01b031681565b605c546001600160a01b031681565b604f546001600160a01b031633146110625760405162461bcd60e51b815260040180806020018281038252603f815260200180615193603f913960400191505060405180910390fd5b605b8190556040805182815290517fd1c873cd16013f0dc5f37992c0d12794389698512895ec036a568e393b46e3c19181900360200190a150565b6000806110aa8484612756565b9050806110bb576001915050611133565b60006110c68261290c565b90506000603682600581106110d757fe5b6005020190506000816002015411156110f65760019350505050611133565b600061110f82600101544361297d90919063ffffffff16565b9050816003015481101561112a576000945050505050611133565b60019450505050505b92915050565b6053818154811061114657fe5b60009182526020909120600390910201805460018201546002909201546001600160a01b03909116925083565b80156111e5576111aa60598863ffffffff168154811061118f57fe5b6000918252602090912001546001600160a01b0316876129c6565b6111e55760405162461bcd60e51b8152600401808060200182810382526047815260200180614dcd6047913960600191505060405180910390fd5b60606111fe886000896001600160c01b03168933612b10565b9050600061120b82612c1d565b65ffffffffffff80881660009081526057602090815260408083205460588352818420948a168452939091529020549192509060ff161561127d5760405162461bcd60e51b8152600401808060200182810382526032815260200180614e3f6032913960400191505060405180910390fd5b61129181878765ffffffffffff1685612cd2565b15156001146112d15760405162461bcd60e51b815260040180806020018281038252602e8152602001806150fe602e913960400191505060405180910390fd5b65ffffffffffff8088166000908152605860209081526040808320938916835292905220805460ff1916600117905561130b898b86612d59565b8315158765ffffffffffff168665ffffffffffff167f92dd99230eaf5e3f1238fbbd0d72b34e8c2ad759886075bfc9f426ebeeea34f060405160405180910390a450505050505050505050565b6055546001600160401b031681565b600054610100900460ff16806113805750611380612ef3565b8061138e575060005460ff16155b6113c95760405162461bcd60e51b815260040180806020018281038252602e815260200180614eea602e913960400191505060405180910390fd5b600054610100900460ff161580156113f4576000805460ff1961ff0019909116610100171660011790555b6113fe8f8f612ef9565b8c605460006101000a8154816001600160a01b0302191690836001600160a01b031602179055508b605c60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508a605f60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555089605e60186101000a81548160ff021916908360ff16021790555088605b8190555060ff605460146101000a81548165ffffffffffff021916908365ffffffffffff1602179055506001605e60106101000a8154816001600160401b0302191690836001600160401b03160217905550605960009080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b03160217905550611538888888612fc5565b611544858585856130a6565b8015611556576000805461ff00191690555b505050505050505050505050505050565b60576020526000908152604090205481565b604f546001600160a01b031633146115c25760405162461bcd60e51b815260040180806020018281038252603f815260200180615193603f913960400191505060405180910390fd5b60005b60058110156116ef5760008282600581106115dc57fe5b602002015151905060008383600581106115f257fe5b6020020151600160200201519050600084846005811061160e57fe5b6020020151604001519050600085856005811061162757fe5b6020020151606001519050808311156116715760405162461bcd60e51b815260040180806020018281038252605d8152602001806151d2605d913960600191505060405180910390fd5b6040518060a0016040528085815260200143815260200184815260200183815260200182815250603686600581106116a557fe5b6005020160008201518160000155602082015181600101556040820151816002015560608201518160030155608082015181600401559050505050505080806001019150506115c5565b5050565b3332146117315760405162461bcd60e51b815260040180806020018281038252602a815260200180614d05602a913960400191505060405180910390fd5b605c546040805163041d8fb560e51b815233600482015243602482015290516001600160a01b03909216916383b1f6a091604480820192602092909190829003018186803b15801561178257600080fd5b505afa158015611796573d6000803e3d6000fd5b505050506040513d60208110156117ac57600080fd5b505115156001146117ee5760405162461bcd60e51b8152600401808060200182810382526022815260200180614c356022913960400191505060405180910390fd5b8361184a57605e54600160c01b810460ff166001600160401b039182160116431061184a5760405162461bcd60e51b81526004018080602001828103825260268152602001806150aa6026913960400191505060405180910390fd5b60006118598f8f8f888a6131a9565b905060538660ff168154811061186b57fe5b60009182526020918290206003909102015460408051928301815283835280516343753b4d60e01b81526001600160a01b03909216926343753b4d9288928892889290916004909101908190869080828437600083820152601f01601f1916909101905084608080828437600083820152601f01601f1916909101905083604080828437600081840152601f19601f82011690508083019250505082600160200280838360005b8381101561192a578181015183820152602001611912565b5050505090500194505050505060206040518083038186803b15801561194f57600080fd5b505afa158015611963573d6000803e3d6000fd5b505050506040513d602081101561197957600080fd5b50516119b65760405162461bcd60e51b8152600401808060200182810382526021815260200180614b1c6021913960400191505060405180910390fd5b6055600081819054906101000a90046001600160401b03168092919060010191906101000a8154816001600160401b0302191690836001600160401b03160217905550508e605460146101000a81548165ffffffffffff021916908365ffffffffffff1602179055508d60566000605560009054906101000a90046001600160401b03166001600160401b03166001600160401b03168152602001908152602001600020819055508c60576000605560009054906101000a90046001600160401b03166001600160401b03166001600160401b03168152602001908152602001600020819055508415611ac757605e805467ffffffffffffffff1916436001600160401b0316179055611ac7613451565b605c54604080516309cb4a2f60e31b815233600482015290516001600160a01b0390921691634e5a51789160248082019260009290919082900301818387803b158015611b1357600080fd5b505af1158015611b27573d6000803e3d6000fd5b50506055546040516001600160401b0390911692507fd7ab70a9e6ed0d6985e74c5cb553d300a13a2217d58266922b275b72fe7869829150600090a2505050505050505050505050505050565b605954600160201b8110611bb95760405162461bcd60e51b8152600401808060200182810382526021815260200180614d2f6021913960400191505060405180910390fd5b6001600160a01b038416611bfe5760405162461bcd60e51b8152600401808060200182810382526023815260200180614ce26023913960400191505060405180910390fd5b6001600160a01b0384166000908152605a602052604090205415611c69576040805162461bcd60e51b815260206004820152601f60248201527f4865726d657a3a3a616464546f6b656e3a20414c52454144595f414444454400604482015290519081900360640190fd5b8115611c8a57605f54605b54611c8a916001600160a01b03169085856134ff565b605f54605b54611ca7916001600160a01b0316903390309061377c565b60598054600181019091557fd73956b9e00d8f8bc5e44f7184df1387cdd652e7726b8ccda3db4859e02f31bf0180546001600160a01b0319166001600160a01b0386169081179091556000818152605a6020908152604091829020849055815163ffffffff8516815291517fcb73d161edb7cd4fb1d92fedfd2555384fd997fd44ab507656f8c81e15747dde9281900390910190a250505050565b605f546001600160a01b031681565b605e546001600160401b031681565b6054546001600160a01b031681565b60566020526000908152604090205481565b60595463ffffffff851610611dc75760405162461bcd60e51b815260040180806020018281038252602e8152602001806150d0602e913960400191505060405180910390fd5b6000611dd2876138d9565b9050600160801b8110611e165760405162461bcd60e51b8152600401808060200182810382526031815260200180614b3d6031913960400191505060405180910390fd5b8015611ed65763ffffffff8516611e6a57348114611e655760405162461bcd60e51b81526004018080602001828103825260338152602001806152596033913960400191505060405180910390fd5b611ed6565b8115611ea357611ea360598663ffffffff1681548110611e8657fe5b6000918252602090912001546001600160a01b03168285856134ff565b611ed660598663ffffffff1681548110611eb957fe5b6000918252602090912001546001600160a01b031633308461377c565b611ee5338a8a8a8a8a8a61391d565b505050505050505050565b60f081565b60368160058110611f0257fe5b6005020180546001820154600283015460038401546004909401549294509092909185565b60598181548110611f3457fe5b6000918252602090912001546001600160a01b0316905081565b60595490565b605e54600160c01b900460ff1681565b605054600160a01b90046001600160401b031681565b6050546001600160a01b0316331480611f9d5750604f546001600160a01b031633145b611fd85760405162461bcd60e51b8152600401808060200182810382526041815260200180614fc16041913960600191505060405180910390fd5b60005b6005811015612063576040518060a001604052806000815260200160008152602001600081526020016000815260200160008152506036826005811061201d57fe5b6005020160008201518160000155602082015181600101556040820151816002015560608201518160030155608082015181600401559050508080600101915050611fdb565b5060515460505460408051630e670af560e01b8152600160a01b9092046001600160401b03166004830152516001600160a01b0390921691630e670af59160248082019260009290919082900301818387803b1580156120c257600080fd5b505af11580156120d6573d6000803e3d6000fd5b50505050565b605b5481565b80156121545761211960598663ffffffff16815481106120fe57fe5b6000918252602090912001546001600160a01b0316856129c6565b6121545760405162461bcd60e51b8152600401808060200182810382526043815260200180614f186043913960600191505060405180910390fd5b65ffffffffffff80841660009081526058602090815260408083209386168352929052205460ff16156121b85760405162461bcd60e51b815260040180806020018281038252602e815260200180614e92602e913960400191505060405180910390fd5b65ffffffffffff831660009081526057602090815260408083205481518084018290523360601b818401526001600160e01b031960e08b901b16605482015267ffffffffffffffff1989841b1660588201526001600160d01b031960d088901b1660708201528251605681830301815260769091019283905280519194937f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000019360029390918291908401908083835b602083106122865780518252601f199092019160209182019101612267565b51815160209384036101000a60001901801990921691161790526040519190930194509192505080830381855afa1580156122c5573d6000803e3d6000fd5b5050506040513d60208110156122da57600080fd5b5051816122e357fe5b605454604080516020810182529390920680845282516343753b4d60e01b81529094506001600160a01b03909116926343753b4d928e928e928e929091600401908190869080828437600083820152601f01601f1916909101905084608080828437600083820152601f01601f1916909101905083604080828437600081840152601f19601f82011690508083019250505082600160200280838360005b83811015612399578181015183820152602001612381565b5050505090500194505050505060206040518083038186803b1580156123be57600080fd5b505afa1580156123d2573d6000803e3d6000fd5b505050506040513d60208110156123e857600080fd5b5051151560011461242a5760405162461bcd60e51b815260040180806020018281038252602981526020018061502a6029913960400191505060405180910390fd5b65ffffffffffff8086166000908152605860209081526040808320938816835292905220805460ff19166001179055612464868885612d59565b8215158565ffffffffffff168565ffffffffffff167f92dd99230eaf5e3f1238fbbd0d72b34e8c2ad759886075bfc9f426ebeeea34f060405160405180910390a450505050505050505050565b604f546001600160a01b031633146124fa5760405162461bcd60e51b815260040180806020018281038252603f815260200180615193603f913960400191505060405180910390fd5b60f060ff8216111561253d5760405162461bcd60e51b815260040180806020018281038252603c815260200180614ae0603c913960400191505060405180910390fd5b605e805460ff8316600160c01b810260ff60c01b199092169190911790915560408051918252517fff6221781ac525b04585dbb55cd2ebd2a92c828ca3e42b23813a1137ac9744319181900360200190a150565b605e54600160401b90046001600160401b031681565b605454600160a01b900465ffffffffffff1681565b604f546001600160a01b031681565b6050546001600160a01b031681565b605d6020908152600091825260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452909183018282801561266d5780601f106126425761010080835404028352916020019161266d565b820191906000526020600020905b81548152906001019060200180831161265057829003601f168201915b505050505081565b605860209081526000928352604080842090915290825290205460ff1681565b604f546001600160a01b031633146126de5760405162461bcd60e51b815260040180806020018281038252603f815260200180615193603f913960400191505060405180910390fd5b62127500816001600160401b031611156127295760405162461bcd60e51b815260040180806020018281038252604a815260200180614c57604a913960600191505060405180910390fd5b605080546001600160401b03909216600160a01b0267ffffffffffffffff60a01b19909216919091179055565b6001600160a01b0382166000908152605260205260408120546001600160401b031661278457506000611133565b6001600160a01b038316600090815260526020526040812054655af3107a4000906001600160401b03166001600160c01b0385160260408051600481526024810182526020810180516001600160e01b031663313ce56760e01b1781529151815194909304945060009384936060936001600160a01b038b1693928291908083835b602083106128255780518252601f199092019160209182019101612806565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114612885576040519150601f19603f3d011682016040523d82523d6000602084013e61288a565b606091505b509150915081156128af578080602001905160208110156128aa57600080fd5b505192505b604d8360ff16106128f15760405162461bcd60e51b815260040180806020018281038252603b815260200180614a24603b913960400191505060405180910390fd5b8260ff16600a0a848161290057fe5b04979650505050505050565b6000805b6005811015612940576036816005811061292657fe5b60050201548311612938579050612978565b600101612910565b5060405162461bcd60e51b815260040180806020018281038252603981526020018061512c6039913960400191505060405180910390fd5b919050565b60006129bf83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613b77565b9392505050565b6000806129d38484612756565b9050806129e4576001915050611133565b60006129ef8261290c565b9050600060368260058110612a0057fe5b6005020190506000612a1f82600101544361297d90919063ffffffff16565b90508160030154811015612a7357600282015415612a6657816004015482600201541415612a4e574360018301555b50600201805460001901905550600191506111339050565b6000945050505050611133565b6000612a8c836003015483613c0e90919063ffffffff16565b90508260040154612aaa828560020154613c5090919063ffffffff16565b10612acf576004830154612abf90600161297d565b6002840155436001840155612b02565b60028301805482016000190190556003830154612afc90612af1908390613caa565b600185015490613c50565b60018401555b600195505050505050611133565b60408051600480825260a08201909252606091829190602082016080803683370190505090508663ffffffff1681600081518110612b4a57fe5b60200260200101818152505060208665ffffffffffff16901b65ffffffffffff1681600081518110612b7857fe5b602002602001018181511791508181525050604860ff85901c901b81600081518110612ba057fe5b6020026020010181815117915081815250508481600181518110612bc057fe5b602090810291909101015280516001600160ff1b0385169082906002908110612be557fe5b602002602001018181525050826001600160a01b031681600381518110612c0857fe5b60209081029190910101529695505050505050565b60355460405163311083ed60e21b81526020600482018181528451602484015284516000946001600160a01b03169363c4420fb49387939283926044019180860191028083838b5b83811015612c7d578181015183820152602001612c65565b505050509050019250505060206040518083038186803b158015612ca057600080fd5b505afa158015612cb4573d6000803e3d6000fd5b505050506040513d6020811015612cca57600080fd5b505192915050565b600080612cdf8484613d03565b8551909150600090600019015b60008112612d4c57868181518110612d0057fe5b60200260200101519150600081876000821215612d1957fe5b6001911c811614905080612d3657612d318484613d89565b612d40565b612d408385613d89565b93505060001901612cec565b5050909414949350505050565b8015612d9f57612d9a60598363ffffffff1681548110612d7557fe5b6000918252602090912001546001600160a01b0316336001600160c01b038616613dec565b610ff6565b63ffffffff8216612e2b576051546040805163cfc0b64160e01b81523360048201526000602482018190526001600160c01b0387166044830181905292516001600160a01b039094169363cfc0b6419392606480820193929182900301818588803b158015612e0d57600080fd5b505af1158015612e21573d6000803e3d6000fd5b5050505050610ff6565b600060598363ffffffff1681548110612e4057fe5b6000918252602090912001546051546001600160a01b039182169250612e72918391166001600160c01b038716614037565b6051546040805163cfc0b64160e01b81523360048201526001600160a01b0384811660248301526001600160c01b03881660448301529151919092169163cfc0b64191606480830192600092919082900301818387803b158015612ed557600080fd5b505af1158015612ee9573d6000803e3d6000fd5b5050505050505050565b303b1590565b60005b8251811015610ff65760536040518060600160405280858481518110612f1e57fe5b60200260200101516001600160a01b03168152602001600880868681518110612f4357fe5b6020026020010151901b901c815260200160f8858581518110612f6257fe5b60209081029190910181015190911c909152825460018082018555600094855293829020835160039092020180546001600160a01b0319166001600160a01b03909216919091178155908201518184015560409091015160029091015501612efc565b600054610100900460ff1680612fde5750612fde612ef3565b80612fec575060005460ff16155b6130275760405162461bcd60e51b815260040180806020018281038252602e815260200180614eea602e913960400191505060405180910390fd5b600054610100900460ff16158015613052576000805460ff1961ff0019909116610100171660011790555b603380546001600160a01b038087166001600160a01b03199283161790925560348054868416908316179055603580549285169290911691909117905580156120d6576000805461ff001916905550505050565b600054610100900460ff16806130bf57506130bf612ef3565b806130cd575060005460ff16155b6131085760405162461bcd60e51b815260040180806020018281038252602e815260200180614eea602e913960400191505060405180910390fd5b600054610100900460ff16158015613133576000805460ff1961ff0019909116610100171660011790555b604f80546001600160a01b03199081166001600160a01b03888116919091179092556050805482168784161767ffffffffffffffff60a01b1916600160a01b6001600160401b038816021790556051805490911691841691909117905580156131a2576000805461ff00191690555b5050505050565b6055546001600160401b031660009081526056602052604081205460545460538054600160a01b90920465ffffffffffff16918491829182919060ff89169081106131f057fe5b906000526020600020906003020160010154600860538960ff168154811061321457fe5b9060005260206000209060030201600201548161322d57fe5b046002026003010290506000600860538960ff168154811061324b57fe5b9060005260206000209060030201600201548161326457fe5b604080519290910481028481018084016148ae0190925261486e909101825260d087811b60208401528e901b6026830152602c8201889052604c82018d9052606c82018c90529150608c81016132ba818c614184565b614800016132c860046143be565b90965094508385111561330c5760405162461bcd60e51b815260040180806020018281038252602e815260200180615165602e913960400191505060405180910390fd5b84868237840161331e818686036143d2565b8484030161332c60056143be565b909650945082851461336f5760405162461bcd60e51b8152600401808060200182810382526040815260200180614a5f6040913960400191505060405180910390fd5b848682378401613381818685036143d2565b848303810190504660f01b81527f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000016002836040518082805190602001908083835b602083106133e15780518252601f1990920191602091820191016133c2565b51815160209384036101000a60001901801990921691161790526040519190930194509192505080830381855afa158015613420573d6000803e3d6000fd5b5050506040513d602081101561343557600080fd5b50518161343e57fe5b069e9d5050505050505050505050505050565b605e54600160401b90046001600160401b03166000908152605d6020526040812061347b9161499b565b605e805460016001600160401b03600160401b808404821692909201811682026fffffffffffffffff000000000000000019909316929092179283905582048116600160801b9092041614156134fd57605e805460016001600160401b03600160801b808404821692909201160267ffffffffffffffff60801b199091161790555b565b60008282602081101561351157600080fd5b50356001600160e01b031916905063d505accf60e01b8114156131a2576000808080808080613543896004818d6149fb565b60e081101561355157600080fd5b506001600160a01b038135811698506020820135169650604081013595506060810135945060ff608082013516935060a0810135925060c0013590503387146135cb5760405162461bcd60e51b8152600401808060200182810382526030815260200180614ba26030913960400191505060405180910390fd5b6001600160a01b03861630146136125760405162461bcd60e51b8152600401808060200182810382526025815260200180614da86025913960400191505060405180910390fd5b8a85146136505760405162461bcd60e51b815260040180806020018281038252602d81526020018061507d602d913960400191505060405180910390fd5b8b6001600160a01b031663d505accf60e01b8888888888888860405160240180886001600160a01b03168152602001876001600160a01b031681526020018681526020018581526020018460ff168152602001838152602001828152602001975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083835b6020831061371a5780518252601f1990920191602091820191016136fb565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611556576040519150601f19603f3d011682016040523d82523d6000602084013e611556565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b602083106138015780518252601f1990920191602091820191016137e2565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613863576040519150601f19603f3d011682016040523d82523d6000602084013e613868565b606091505b5091509150818015613896575080511580613896575080806020019051602081101561389357600080fd5b50515b6138d15760405162461bcd60e51b8152600401808060200182810382526034815260200180614b6e6034913960400191505060405180910390fd5b505050505050565b60006103ff8216601f600b84901c166001600a85811c8216919083900a90818502908314801561390857508315155b156139135760028204015b9695505050505050565b6000613928846138d9565b9050600160c01b811061396c5760405162461bcd60e51b815260040180806020018281038252602e815260200180614d50602e913960400191505060405180910390fd5b65ffffffffffff82166139bb5780156139b65760405162461bcd60e51b815260040180806020018281038252603b8152602001806152ce603b913960400191505060405180910390fd5b613a75565b65ffffffffffff821660011415613a0d5761ffff8516156139b65760405162461bcd60e51b8152600401808060200182810382526037815260200180614bd26037913960400191505060405180910390fd5b60ff65ffffffffffff8316118015613a3a575060545465ffffffffffff600160a01b909104811690831611155b613a755760405162461bcd60e51b81526004018080602001828103825260288152602001806150026028913960400191505060405180910390fd5b65ffffffffffff8616613ac35786613abe5760405162461bcd60e51b8152600401808060200182810382526041815260200180614ca16041913960600191505060405180910390fd5b613b68565b60ff65ffffffffffff8716118015613af0575060545465ffffffffffff600160a01b909104811690871611155b613b2b5760405162461bcd60e51b815260040180806020018281038252602a815260200180614d7e602a913960400191505060405180910390fd5b8615613b685760405162461bcd60e51b8152600401808060200182810382526042815260200180614f5b6042913960600191505060405180910390fd5b612ee9888888888888886143eb565b60008184841115613c065760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613bcb578181015183820152602001613bb3565b50505050905090810190601f168015613bf85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60006129bf83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506145c5565b6000828201838110156129bf576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082613cb957506000611133565b82820282848281613cc657fe5b04146129bf5760405162461bcd60e51b8152600401808060200182810382526021815260200180614e716021913960400191505060405180910390fd5b60408051600380825260808201909252600091606091906020820183803683370190505090508381600081518110613d3757fe5b6020026020010181815250508281600181518110613d5157fe5b602002602001018181525050600181600281518110613d6c57fe5b602002602001018181525050613d818161462a565b949350505050565b60408051600280825260608083018452600093909291906020830190803683370190505090508381600081518110613dbd57fe5b6020026020010181815250508281600181518110613dd757fe5b602002602001018181525050613d8181614687565b6001600160a01b038316613eea5760408051600080825260208201909252339083906040518082805190602001908083835b60208310613e3d5780518252601f199092019160209182019101613e1e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613e9f576040519150601f19603f3d011682016040523d82523d6000602084013e613ea4565b606091505b5050905080613ee45760405162461bcd60e51b815260040180806020018281038252602a815260200180615053602a913960400191505060405180910390fd5b50610ff6565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b60208310613f675780518252601f199092019160209182019101613f48565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613fc9576040519150601f19603f3d011682016040523d82523d6000602084013e613fce565b606091505b5091509150818015613ffc575080511580613ffc5750808060200190516020811015613ff957600080fd5b50515b6131a25760405162461bcd60e51b815260040180806020018281038252602c815260200180614c09602c913960400191505060405180910390fd5b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b178152925182516000946060949389169392918291908083835b602083106140b45780518252601f199092019160209182019101614095565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614116576040519150601f19603f3d011682016040523d82523d6000602084013e61411b565b606091505b5091509150818015614149575080511580614149575080806020019051602081101561414657600080fd5b50515b6131a25760405162461bcd60e51b815260040180806020018281038252602a81526020018061522f602a913960400191505060405180910390fd5b60008061419160036143be565b90925090506065810460006060851561426457605e54600160401b90046001600160401b03166000908152605d60209081526040918290208054835160026101006001841615026000190190921691909104601f810184900484028201840190945283815292909183018282801561424a5780601f1061421f5761010080835404028352916020019161424a565b820191906000526020600020905b81548152906001019060200180831161422d57829003601f168201915b50505050509050604881518161425c57fe5b049150614269565b600091505b61010083830111156142ac5760405162461bcd60e51b8152600401808060200182810382526024815260200180614f9d6024913960400191505060405180910390fd5b81156142da576048820287019660208201905b888110156142d75781518152602091820191016142bf565b50505b60005b838110156143a1576059546065870196803560001a916001820135916021810135916041820135916061013560e01c90811061434a5760405162461bcd60e51b815260040180806020018281038252602a815260200180614ec0602a913960400191505060405180910390fd5b6001600160a01b0360ff86161561436a57614367838587896146e4565b90505b60601b8d5260148d0191909152600060348d0181905260e09190911b603e8d015260428c01525050604890980197506001016142dd565b506143b587604885856101000303026143d2565b50505050505050565b602002600490810135602481019291013590565b808201915b82811015610ff657600081526020016143d7565b604080516bffffffffffffffffffffffff1960608a901b16602080830191909152603482018990526001600160d01b031960d089811b821660548501526001600160f01b031960f08a811b8216605a87015289901b16605c8501526001600160e01b031960e088901b16605e808601919091529086901b90911660628401528351604881850301815260689093018452546001600160401b03600160801b909104166000908152605d909152919091206144a59082614851565b605e54600160801b90046001600160401b03166000818152605d602090815260408083205481518381528651818501528651604860026101006001861615026000190190941693909304929092049560ff87169590947f7f40be4e420c002c02fa9cad961f6a7620769d32d272f3f8c15e3ff59de9310e9489948493918401928601918190849084905b8381101561454757818101518382015260200161452f565b50505050905090810190601f1680156145745780820380516001836020036101000a031916815260200191505b509250505060405180910390a360808110611ee557605e805460016001600160401b03600160801b808404821692909201160267ffffffffffffffff60801b19909116179055505050505050505050565b600081836146145760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613bcb578181015183820152602001613bb3565b50600083858161462057fe5b0495945050505050565b60345460405163311083ed60e21b81526020600482018181528451602484015284516000946001600160a01b03169363c4420fb49387939283926044019185810191028083838b8315612c7d578181015183820152602001612c65565b60335460405163311083ed60e21b81526020600482018181528451602484015284516000946001600160a01b03169363c4420fb49387939283926044019185810191028083838b8315612c7d578181015183820152602001612c65565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156147455760405162461bcd60e51b81526004018080602001828103825260298152602001806153096029913960400191505060405180910390fd5b60008560405160200180807f19457468657265756d205369676e6564204d6573736167653a0a393800000000815250601c018061528c60429139604201828152602001915050604051602081830303815290604052805190602001209050600060018285888860405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156147ff573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166139135760405162461bcd60e51b815260040180806020018281038252602b815260200180614e14602b913960400191505060405180910390fd5b8154600260018083161561010002038216048251808201602081106020841001600281146148fb5760018114614920578660005260208404602060002001600160028402018855602085068060200390508088018589016001836101000a0392508282511684540184556001840193506020820191505b808210156148e557815184556001840193506020820191506148c8565b815191036101000a9081900402909155506143b5565b60028302826020036101000a846020036101000a6020890151040201850187556143b5565b8660005260208404602060002001600160028402018855846020038088018589016001836101000a0392508282511660ff198a160184556020820191506001840193505b808210156149815781518455600184019350602082019150614964565b815191036101000a90819004029091555050505050505050565b50805460018160011615610100020316600290046000825580601f106149c157506149df565b601f0160209004906000526020600020908101906149df91906149e2565b50565b5b808211156149f757600081556001016149e3565b5090565b60008085851115614a0a578182fd5b83861115614a16578182fd5b505082019391909203915056fe496e7374616e7457697468647261774d616e616765723a3a5f746f6b656e325553443a20544f4b454e5f444543494d414c535f4f564552464c4f574865726d657a3a3a5f636f6e73747275637443697263756974496e7075743a20494e56414c49445f464545494458434f4f5244494e41544f525f4c454e475448496e7374616e7457697468647261774d616e616765723a3a757064617465546f6b656e45786368616e67653a20494e56414c49445f41525241595f4c454e4754484865726d657a3a3a757064617465466f7267654c314c32426174636854696d656f75743a204d41585f464f52474554494d454f55545f4558434545444865726d657a3a3a666f72676542617463683a20494e56414c49445f50524f4f464865726d657a3a3a6164644c315472616e73616374696f6e3a204c4f4144414d4f554e545f4558434545445f4c494d49544865726d657a3a3a5f736166655472616e7366657246726f6d3a2045524332305f5452414e5346455246524f4d5f4641494c45444865726d657a3a3a5f7065726d69743a205045524d49545f4f574e45525f4d5553545f42455f5448455f53454e4445524865726d657a3a3a5f6164644c315472616e73616374696f6e3a204c4f4144414d4f554e545f4d5553545f42455f305f49465f455849544865726d657a3a3a5f736166655472616e736665723a2045524332305f5452414e534645525f4641494c45444865726d657a3a3a666f72676542617463683a2041554354494f4e5f44454e494544496e7374616e7457697468647261774d616e616765723a3a7570646174655769746864726177616c44656c61793a204558434545445f4d41585f5749544844524157414c5f44454c41594865726d657a3a3a5f6164644c315472616e73616374696f6e3a20494e56414c49445f4352454154455f4143434f554e545f574954485f4e4f5f424142594a55424865726d657a3a3a616464546f6b656e3a20414444524553535f305f494e56414c49444865726d657a3a3a666f72676542617463683a20494e54454e414c5f54585f4e4f545f414c4c4f5745444865726d657a3a3a616464546f6b656e3a20544f4b454e5f4c4953545f46554c4c4865726d657a3a3a5f6164644c315472616e73616374696f6e3a20414d4f554e545f4558434545445f4c494d49544865726d657a3a3a5f6164644c315472616e73616374696f6e3a20494e56414c49445f46524f4d4944584865726d657a3a3a5f7065726d69743a205350454e4445525f4d5553545f42455f544849534865726d657a3a3a77697468647261774d65726b6c6550726f6f663a20494e5354414e545f57495448445241575f5741535445445f464f525f544849535f5553445f52414e47454865726d657a48656c706572733a3a5f636865636b5369673a20494e56414c49445f5349474e41545552454865726d657a3a3a77697468647261774d65726b6c6550726f6f663a2057495448445241575f414c52454144595f444f4e45536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774865726d657a3a3a7769746864726177436972637569743a2057495448445241575f414c52454144595f444f4e454865726d657a3a3a5f6275696c644c31446174613a20544f4b454e5f4e4f545f52454749535445524544436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a65644865726d657a3a3a7769746864726177436972637569743a20494e5354414e545f57495448445241575f5741535445445f464f525f544849535f5553445f52414e47454865726d657a3a3a5f6164644c315472616e73616374696f6e3a20424142594a55425f4d5553545f42455f305f49465f4e4f545f4352454154455f4143434f554e544865726d657a3a3a5f6275696c644c31446174613a204c315f54585f4f564552464c4f57496e7374616e7457697468647261774d616e616765723a3a736166654d6f64653a204f4e595f534146455459414444524553535f4f525f474f5645524e414e43454865726d657a3a3a5f6164644c315472616e73616374696f6e3a20494e56414c49445f544f4944584865726d657a3a3a7769746864726177436972637569743a20494e56414c49445f5a4b5f50524f4f464865726d657a3a3a5f736166655472616e736665723a204554485f5452414e534645525f4641494c45444865726d657a3a3a5f7065726d69743a205045524d49545f414d4f554e545f444f45535f4e4f545f4d415443484865726d657a3a3a666f72676542617463683a204c314c3242415443485f52455155495245444865726d657a3a3a6164644c315472616e73616374696f6e3a20544f4b454e5f4e4f545f524547495354455245444865726d657a3a3a77697468647261774d65726b6c6550726f6f663a20534d545f50524f4f465f494e56414c4944496e7374616e7457697468647261774d616e616765723a3a5f66696e644275636b65744964783a204558434545445f4d41585f414d4f554e544865726d657a3a3a5f636f6e73747275637443697263756974496e7075743a204c325f54585f4f564552464c4f57496e7374616e7457697468647261774d616e616765723a3a6f6e6c79476f7665726e616e63653a204f4e4c595f474f5645524e414e43455f41444452455353496e7374616e7457697468647261774d616e616765723a3a7570646174654275636b657473506172616d65746572733a205749544844524157414c535f4d5553545f42455f4c4553535f5448414e5f4d41585749544844524157414c534865726d657a3a3a5f73616665417070726f76653a2045524332305f415050524f56455f4641494c45444865726d657a3a3a6164644c315472616e73616374696f6e3a204c4f4144414d4f554e545f444f45535f4e4f545f4d415443484920617574686f72697a65207468697320626162796a75626a7562206b657920666f72206865726d657a20726f6c6c7570206163636f756e74206372656174696f6e4865726d657a3a3a5f6164644c315472616e73616374696f6e3a20414d4f554e545f4d5553545f42455f305f49465f4e4f545f5452414e534645524865726d657a48656c706572733a3a5f636865636b5369673a20494e56414c49445f535f56414c5545a264697066735822122091bc2e9fc711c7950eda56ac350b27c8cb0fb73ac64230ebb167ad75b7fdbe6564736f6c634300060c0033" // DeployHermez deploys a new Ethereum contract, binding an instance of Hermez to it. func DeployHermez(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Hermez, error) { diff --git a/eth/main_test.go b/eth/main_test.go index fa654d2..96ba7b5 100644 --- a/eth/main_test.go +++ b/eth/main_test.go @@ -1,9 +1,11 @@ package eth import ( + "fmt" "io/ioutil" "math/big" "os" + "strconv" "testing" "github.com/ethereum/go-ethereum/accounts" @@ -11,38 +13,32 @@ import ( ethCommon "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethclient" + "github.com/joho/godotenv" ) -/*var donationAddressStr = os.Getenv("DONATION_ADDRESS") -var bootCoordinatorStr = os.Getenv("BOOT_COORDINATOR_ADDRESS") -var auctionAddressStr = os.Getenv("AUCTION_ADDRESS") -var tokenHezStr = os.Getenv("TOKEN_ADDRESS") -var hermezStr = os.Getenv("HERMEZ_ADDRESS") -var governanceAddressStr = os.Getenv("GOV_ADDRESS") -var governancePrivateKey = os.Getenv("GOV_PK") -var ethClientDialURL = os.Getenv("ETHCLIENT_DIAL_URL")*/ -var ethClientDialURL = "http://localhost:8545" -var password = "pass" -var deadline, _ = new(big.Int).SetString("ffffffffffffffffffffffffffffffff", 16) +var ethClientDialURLConst = "http://localhost:8545" +var passwordConst = "pass" +var deadlineConst, _ = new(big.Int).SetString("ffffffffffffffffffffffffffffffff", 16) + +var errEnvVar = fmt.Errorf("Some environment variable is missing") // Smart Contract Addresses var ( - auctionAddressStr = "0x038B86d9d8FAFdd0a02ebd1A476432877b0107C8" - auctionAddressConst = ethCommon.HexToAddress(auctionAddressStr) - auctionTestAddressStr = "0xEcc0a6dbC0bb4D51E4F84A315a9e5B0438cAD4f0" - auctionTestAddressConst = ethCommon.HexToAddress(auctionTestAddressStr) + password string + ethClientDialURL string + deadline *big.Int + genesisBlock int64 + auctionAddressConst ethCommon.Address + auctionTestAddressConst ethCommon.Address + tokenHEZAddressConst ethCommon.Address + hermezRollupAddressConst ethCommon.Address + wdelayerAddressConst ethCommon.Address + wdelayerTestAddressConst ethCommon.Address + tokenHEZ TokenConfig donationAddressStr = "0x6c365935CA8710200C7595F0a72EB6023A7706Cd" donationAddressConst = ethCommon.HexToAddress(donationAddressStr) bootCoordinatorAddressStr = "0xc783df8a850f42e7f7e57013759c285caa701eb6" bootCoordinatorAddressConst = ethCommon.HexToAddress(bootCoordinatorAddressStr) - tokenHEZAddressStr = "0xf4e77E5Da47AC3125140c470c71cBca77B5c638c" //nolint:gosec - tokenHEZAddressConst = ethCommon.HexToAddress(tokenHEZAddressStr) - hermezRollupAddressStr = "0xD6C850aeBFDC46D7F4c207e445cC0d6B0919BDBe" - hermezRollupAddressConst = ethCommon.HexToAddress(hermezRollupAddressStr) - wdelayerAddressStr = "0x500D1d6A4c7D8Ae28240b47c8FCde034D827fD5e" - wdelayerAddressConst = ethCommon.HexToAddress(wdelayerAddressStr) - wdelayerTestAddressStr = "0x1d80315fac6aBd3EfeEbE97dEc44461ba7556160" - wdelayerTestAddressConst = ethCommon.HexToAddress(wdelayerTestAddressStr) safetyAddressStr = "0xE5904695748fe4A84b40b3fc79De2277660BD1D3" safetyAddressConst = ethCommon.HexToAddress(safetyAddressStr) ) @@ -78,11 +74,6 @@ var ( hermezRollupAddressTestConst = ethCommon.HexToAddress(hermezRollupTestAddressStr) ) -var tokenHEZ = TokenConfig{ - Address: tokenHEZAddressConst, - Name: "Hermez Network Token", -} - var ( accountGov *accounts.Account accountKep *accounts.Account @@ -117,10 +108,48 @@ func addKey(ks *keystore.KeyStore, skHex string) *accounts.Account { return &account } +func getEnvVariables() { + err := godotenv.Load() + if err != nil { + fmt.Println("Variables loaded from command") + } else { + fmt.Println("Variables loaded from .env file") + } + var auctionAddressStr = os.Getenv("AUCTION") + var auctionTestAddressStr = os.Getenv("AUCTION_TEST") + var tokenHEZAddressStr = os.Getenv("TOKENHEZ") + var hermezRollupAddressStr = os.Getenv("HERMEZ") + var wdelayerAddressStr = os.Getenv("WDELAYER") + var wdelayerTestAddressStr = os.Getenv("WDELAYER_TEST") + genesisBlockEnv := os.Getenv("GENESIS_BLOCK") + genesisBlock, err = strconv.ParseInt(genesisBlockEnv, 10, 64) + if err != nil { + panic(errEnvVar) + } + if auctionAddressStr == "" || auctionTestAddressStr == "" || tokenHEZAddressStr == "" || hermezRollupAddressStr == "" || wdelayerAddressStr == "" || wdelayerTestAddressStr == "" || genesisBlockEnv == "" { + panic(errEnvVar) + } + + ethClientDialURL = ethClientDialURLConst + password = passwordConst + deadline = deadlineConst + auctionAddressConst = ethCommon.HexToAddress(auctionAddressStr) + auctionTestAddressConst = ethCommon.HexToAddress(auctionTestAddressStr) + tokenHEZAddressConst = ethCommon.HexToAddress(tokenHEZAddressStr) + hermezRollupAddressConst = ethCommon.HexToAddress(hermezRollupAddressStr) + wdelayerAddressConst = ethCommon.HexToAddress(wdelayerAddressStr) + wdelayerTestAddressConst = ethCommon.HexToAddress(wdelayerTestAddressStr) + tokenHEZ = TokenConfig{ + Address: tokenHEZAddressConst, + Name: "Hermez Network Token", + } +} + func TestMain(m *testing.M) { exitVal := 0 if os.Getenv("INTEGRATION") != "" { + getEnvVariables() dir, err := ioutil.TempDir("", "tmpks") if err != nil { panic(err) @@ -147,7 +176,6 @@ func TestMain(m *testing.M) { } // Controllable Governance Address - ethereumClientGov := NewEthereumClient(ethClient, accountGov, ks, nil) auctionClient, err = NewAuctionClient(ethereumClientGov, auctionAddressConst, tokenHEZ) if err != nil { diff --git a/eth/rollup_test.go b/eth/rollup_test.go index bde19be..af7b1a3 100644 --- a/eth/rollup_test.go +++ b/eth/rollup_test.go @@ -105,7 +105,7 @@ func TestRollupForgeBatch(t *testing.T) { require.Nil(t, err) // Add Blocks - blockNum := int64(int(BLOCKSPERSLOT)*int(currentSlot+4) + genesisBlock) + blockNum := int64(int(BLOCKSPERSLOT)*int(currentSlot+4) + int(genesisBlock)) currentBlockNum, _ := auctionClient.client.EthCurrentBlock() blocksToAdd := blockNum - currentBlockNum addBlocks(blocksToAdd, ethClientDialURL) diff --git a/go.mod b/go.mod index e111650..e84a74c 100644 --- a/go.mod +++ b/go.mod @@ -15,6 +15,7 @@ require ( github.com/iden3/go-merkletree v0.0.0-20200902123354-eeb949f8c334 github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a github.com/jmoiron/sqlx v1.2.0 + github.com/joho/godotenv v1.3.0 github.com/lib/pq v1.8.0 github.com/mitchellh/copystructure v1.0.0 github.com/rogpeppe/go-internal v1.6.1 // indirect diff --git a/go.sum b/go.sum index 71b5ea0..e0062fb 100644 --- a/go.sum +++ b/go.sum @@ -324,6 +324,7 @@ github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a/go.mod h1:yL958EeXv8 github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jmoiron/sqlx v1.2.0 h1:41Ip0zITnmWNR/vHV+S4m+VoUivnWY5E4OJfLZjCJMA= github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks= +github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc= github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ=