arnaucube
arnaucube/hermez-nodePublic Self-hosted repository
hermez-node/txselector/common/tmp.go
txselector/common/tmp.goRaw
 1package common
 2
 3import (
 4	"math/big"
 5
 6	ethCommon "github.com/ethereum/go-ethereum/common"
 7)
 8
 9// WIP this will be from hermeznetwork/common
10type Tx struct {
11	FromAx          [32]byte
12	FromAy          [32]byte
13	FromEthAddr     ethCommon.Address
14	ToAx            [32]byte
15	ToAy            [32]byte
16	ToEthAddr       ethCommon.Address
17	OnChain         bool
18	RqOffset        []byte
19	NewAccount      bool
20	TokenID         uint32
21	LoadAmount      [3]byte
22	Amount          [3]byte
23	Nonce           uint64
24	UserFee         uint8
25	UserFeeAbsolute uint64
26	R8x             [32]byte
27	R8y             [32]byte
28	S               [32]byte
29	RqTxData        [32]byte
30}
31
32// WIP this will be from hermeznetwork/common
33type Account struct {
34	EthAddr ethCommon.Address
35	TokenID uint32
36	Idx     uint32
37	Nonce   uint64
38	Balance *big.Int
39	// Ax, Ay
40}