types.go 757 B

12345678910111213141516171819202122232425262728
  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. CONFIRMINTERVAL = 600
  13. TimeLayout string = "2006-01-02 15:04:05"
  14. )
  15. type EventParticipate struct {
  16. Participant common.Address
  17. Inviter common.Address
  18. Amount *big.Int
  19. }
  20. type EventClaim struct {
  21. User common.Address
  22. Amount *big.Int
  23. Signature [32]byte
  24. }