mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-27 00:06:47 +01:00
Mohammed Sohail
cf1f9f34c3
* fallback to custom ethereum checksum validator -> https://github.com/go-playground/validator/issues/1073 * decouple jetsream emitter to separate package * refactor task handlers into individual files * add error handler for echo to capture unexpected errors and log them * move handler dependencies into single struct container -> custodialContainer * replace signer to use EIP 1559 signer -> celoutils v1 * Add 1 minutes timeout to all custodial tasks
23 lines
735 B
Go
23 lines
735 B
Go
package custodial
|
|
|
|
import (
|
|
"github.com/bsm/redislock"
|
|
"github.com/grassrootseconomics/celoutils"
|
|
"github.com/grassrootseconomics/cic-custodial/internal/events"
|
|
"github.com/grassrootseconomics/cic-custodial/internal/keystore"
|
|
"github.com/grassrootseconomics/cic-custodial/internal/nonce"
|
|
"github.com/grassrootseconomics/cic-custodial/internal/store"
|
|
"github.com/grassrootseconomics/cic-custodial/internal/tasker"
|
|
)
|
|
|
|
type Custodial struct {
|
|
CeloProvider *celoutils.Provider
|
|
EventEmitter events.EventEmitter
|
|
Keystore keystore.Keystore
|
|
LockProvider *redislock.Client
|
|
Noncestore nonce.Noncestore
|
|
PgStore store.Store
|
|
SystemContainer *tasker.SystemContainer
|
|
TaskerClient *tasker.TaskerClient
|
|
}
|