types.go 567 B

1234567891011121314151617181920212223242526
  1. package blockchain
  2. import (
  3. "math/big"
  4. "github.com/ethereum/go-ethereum/common"
  5. )
  6. const (
  7. TOPIC_PARTICIPATE = "0x8ed860f76da405897619eab937f09dcb4d0d9b56cf68a3d489130a2489cf151f"
  8. COLLECT_PARTICIPATE = "Participate"
  9. COLLECT_CLAIMREWARDS = "claimRewards"
  10. COLLECTCONTRACT = "0xC6Ff5462e5409d11AF6B080ADC3dc0a17E94b0A6"
  11. CONFIRMINTERVAL = 450
  12. )
  13. type EventParticipate struct {
  14. Participant 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. }