types.go 792 B

1234567891011121314151617181920212223242526272829
  1. package blockchain
  2. import (
  3. "math/big"
  4. "github.com/ethereum/go-ethereum/common"
  5. )
  6. const (
  7. TOPIC_PARTICIPATE = "0x8ed860f76da405897619eab937f09dcb4d0d9b56cf68a3d489130a2489cf151f"
  8. TOPIC_CLAIM = "0x4804104ccbc53649f5b8b29ecf858272a4a6ed6b9949f0d30237c7a147e84671"
  9. COLLECT_PARTICIPATE = "Participate"
  10. COLLECT_CLAIMREWARDS = "Claim"
  11. //COLLECTCONTRACT = "0xC6Ff5462e5409d11AF6B080ADC3dc0a17E94b0A6" //test
  12. COLLECTCONTRACT = "0x4E633d9171bEf105012Cb84979Da976fC07c19b7"
  13. CONFIRMINTERVAL = 600
  14. TimeLayout string = "2006-01-02 15:04:05"
  15. )
  16. type EventParticipate struct {
  17. Participant common.Address
  18. Inviter common.Address
  19. Amount *big.Int
  20. }
  21. type EventClaim struct {
  22. User common.Address
  23. Amount *big.Int
  24. Signature [32]byte
  25. }