types.go 818 B

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