hermez-node/common/exittree.go
common/exittree.goRaw
1package common
2
3import (
4 "math/big"
5
6 "github.com/iden3/go-merkletree"
7)
8
9// ExitInfo represents the ExitTree Leaf data
10type ExitInfo struct {
11 BatchNum BatchNum `meddler:"batch_num"`
12 AccountIdx Idx `meddler:"account_idx"`
13 MerkleProof *merkletree.CircomVerifierProof `meddler:"merkle_proof,json"`
14 Balance *big.Int `meddler:"balance,bigint"`
15 // InstantWithdrawn is the ethBlockNum in which the exit is withdrawn
16 // instantly. nil means this hasn't happened.
17 InstantWithdrawn *int64 `meddler:"instant_withdrawn"`
18 // DelayedWithdrawRequest is the ethBlockNum in which the exit is
19 // requested to be withdrawn from the delayedWithdrawn smart contract.
20 // nil means this hasn't happened.
21 DelayedWithdrawRequest *int64 `meddler:"delayed_withdraw_request"`
22 // DelayedWithdrawn is the ethBlockNum in which the exit is withdrawn
23 // from the delayedWithdrawn smart contract. nil means this hasn't
24 // happened.
25 DelayedWithdrawn *int64 `meddler:"delayed_withdrawn"`
26}