mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Add sync interface
This commit is contained in:
12
common/exittree.go
Normal file
12
common/exittree.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"math/big"
|
||||
)
|
||||
|
||||
type ExitTreeLeaf struct {
|
||||
AccountIdx Idx
|
||||
MerkleProof []byte
|
||||
Amount *big.Int
|
||||
Nullifier *big.Int
|
||||
}
|
||||
@@ -32,8 +32,6 @@ func (tx *L1Tx) Tx() *Tx {
|
||||
FromIdx: tx.FromIdx,
|
||||
ToIdx: tx.ToIdx,
|
||||
Amount: tx.Amount,
|
||||
Nonce: 0,
|
||||
Fee: 0,
|
||||
Type: tx.Type,
|
||||
}
|
||||
}
|
||||
|
||||
37
common/scvars.go
Normal file
37
common/scvars.go
Normal file
@@ -0,0 +1,37 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"math/big"
|
||||
|
||||
eth "github.com/ethereum/go-ethereum/common"
|
||||
)
|
||||
|
||||
type RollupVars struct {
|
||||
EthBlockNum uint64
|
||||
ForgeL1Timeout *big.Int
|
||||
FeeL1UserTx *big.Int
|
||||
FeeAddToken *big.Int
|
||||
TokensHEZ eth.Address
|
||||
Governance eth.Address
|
||||
}
|
||||
|
||||
type PoDVars struct {
|
||||
EthBlockNum uint64
|
||||
SlotDeadline uint
|
||||
CloseAuctionSlots uint
|
||||
OpenAuctionSlots uint
|
||||
Governance eth.Address
|
||||
MinBidSlots MinBidSlots
|
||||
Outbidding int
|
||||
DonationAddress eth.Address
|
||||
GovernanceAddress eth.Address
|
||||
AllocationRatio AllocationRatio
|
||||
}
|
||||
|
||||
type MinBidSlots [6]uint
|
||||
|
||||
type AllocationRatio struct {
|
||||
Donation uint
|
||||
Burn uint
|
||||
Forger uint
|
||||
}
|
||||
Reference in New Issue
Block a user