types.go 504 B

12345678910111213141516171819202122232425
  1. package blockchain
  2. import (
  3. "math/big"
  4. "github.com/ethereum/go-ethereum/common"
  5. )
  6. const (
  7. TopicParticipate = "0xddd670a4142d06229b922c5d433d29131580e1a2952c86700b0a36ea9e8b87ee"
  8. COLLECT_PARTICIPATE = "participate"
  9. COLLECT_CLAIMREWARDS = "claimRewards"
  10. COLLECTCONTRACT = "0xaaaaaaaaaaaaaaaaa"
  11. )
  12. type EventParticipate struct {
  13. User common.Address
  14. Inviter common.Address
  15. Amount *big.Int
  16. }
  17. type EventClaim struct {
  18. User common.Address
  19. Amount *big.Int
  20. Signature []byte
  21. }