arnaucube
arnaucube/hermez-nodePublic Self-hosted repository
hermez-node/common/scvars.go
common/scvars.goRaw
 1package common
 2
 3import (
 4	"math/big"
 5
 6	eth "github.com/ethereum/go-ethereum/common"
 7)
 8
 9// RollupVars contain the Rollup smart contract variables
10type RollupVars struct {
11	EthBlockNum    uint64
12	ForgeL1Timeout *big.Int
13	FeeL1UserTx    *big.Int
14	FeeAddToken    *big.Int
15	TokensHEZ      eth.Address
16	Governance     eth.Address
17}
18
19// AuctionVars contain the Auction smart contract variables
20type AuctionVars struct {
21	EthBlockNum       uint64
22	SlotDeadline      uint
23	CloseAuctionSlots uint
24	OpenAuctionSlots  uint
25	Governance        eth.Address
26	MinBidSlots       MinBidSlots
27	Outbidding        int
28	DonationAddress   eth.Address
29	GovernanceAddress eth.Address
30	AllocationRatio   AllocationRatio
31}
32
33// MinBidSlots TODO
34type MinBidSlots [6]uint
35
36// AllocationRatio TODO
37type AllocationRatio struct {
38	Donation uint
39	Burn     uint
40	Forger   uint
41}