-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.go
34 lines (28 loc) · 884 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package task
import "github.com/axieinfinity/bridge-v2/models"
const (
ACK_WITHDREW_TASK = "acknowledgeWithdrew"
DEPOSIT_TASK = "deposit"
WITHDRAWAL_TASK = "withdrawal"
VOTE_BRIDGE_OPERATORS_TASK = "voteBridgeOperatorsBySignatures"
RELAY_BRIDGE_OPERATORS_TASK = "relayBridgeOperators"
STATUS_PENDING = "pending"
STATUS_FAILED = "failed"
STATUS_PROCESSING = "processing"
STATUS_DONE = "done"
GATEWAY_CONTRACT = "Gateway"
GOVERNANCE_CONTRACT = "Governance"
TRUSTED_ORGANIZATION_CONTRACT = "TrustedOrganization"
ETH_GOVERNANCE_CONTRACT = "EthGovernance"
ETH_GATEWAY_CONTRACT = "EthGateway"
BRIDGEADMIN_CONTRACT = "BridgeAdmin"
)
const (
VoteStatusPending = iota
VoteStatusApproved
VoteStatusExecuted
)
type Tasker interface {
collectTask(t *models.Task)
send()
}