mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-10 01:06:46 +01:00
Mohammed Sohail
e203c49049
* remove uncessary tasks and task handlers * reafctor custodial container * refactor gas refiller. Gas refiller can queue at a later time to match cooldown * refactor sub handler to process chain events
28 lines
513 B
Go
28 lines
513 B
Go
package tasker
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
type (
|
|
QueueName string
|
|
TaskName string
|
|
)
|
|
|
|
type Task struct {
|
|
Id string `json:"id"`
|
|
Payload json.RawMessage `json:"payload"`
|
|
}
|
|
|
|
const (
|
|
AccountRegisterTask TaskName = "sys:register_account"
|
|
AccountRefillGasTask TaskName = "sys:refill_gas"
|
|
SignTransferTask TaskName = "usr:sign_transfer"
|
|
DispatchTxTask TaskName = "rpc:dispatch"
|
|
)
|
|
|
|
const (
|
|
HighPriority QueueName = "high_priority"
|
|
DefaultPriority QueueName = "default_priority"
|
|
)
|