You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
824 B

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