mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 19:36:44 +01:00
Helper methods for Synchronizer and TX refactor
This commit is contained in:
@@ -8,8 +8,19 @@ import (
|
||||
|
||||
// ExitInfo represents the ExitTree Leaf data
|
||||
type ExitInfo struct {
|
||||
AccountIdx Idx
|
||||
MerkleProof *merkletree.CircomVerifierProof
|
||||
Balance *big.Int
|
||||
Nullifier *big.Int
|
||||
BatchNum BatchNum `meddler:"batch_num"`
|
||||
AccountIdx Idx `meddler:"account_idx"`
|
||||
MerkleProof *merkletree.CircomVerifierProof `meddler:"merkle_proof,json"`
|
||||
Balance *big.Int `meddler:"balance,bigint"`
|
||||
// InstantWithdrawn is the ethBlockNum in which the exit is withdrawn
|
||||
// instantly. nil means this hasn't happened.
|
||||
InstantWithdrawn *int64 `meddler:"instant_withdrawn"`
|
||||
// DelayedWithdrawRequest is the ethBlockNum in which the exit is
|
||||
// requested to be withdrawn from the delayedWithdrawn smart contract.
|
||||
// nil means this hasn't happened.
|
||||
DelayedWithdrawRequest *int64 `meddler:"delayed_withdraw_request"`
|
||||
// DelayedWithdrawn is the ethBlockNum in which the exit is withdrawn
|
||||
// from the delayedWithdrawn smart contract. nil means this hasn't
|
||||
// happened.
|
||||
DelayedWithdrawn *int64 `meddler:"delayed_withdrawn"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user