types.go 532 B

1234567891011121314151617181920212223242526
  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. CONFIRMINTERVAL = 450
  12. )
  13. type EventParticipate struct {
  14. User common.Address
  15. Inviter common.Address
  16. Amount *big.Int
  17. }
  18. type EventClaim struct {
  19. User common.Address
  20. Amount *big.Int
  21. Signature []byte
  22. }