mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-09-30 09:47:22 +02:00
Mohammed Sohail
1ddff06502
* BREAKING: remove events interface -> use jetstream struct * in-built chain subscription to update otx status * potential fix for tasks: defer rollback nonce error detection
23 lines
733 B
Go
23 lines
733 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.JetStream
|
|
Keystore keystore.Keystore
|
|
LockProvider *redislock.Client
|
|
Noncestore nonce.Noncestore
|
|
PgStore store.Store
|
|
SystemContainer *tasker.SystemContainer
|
|
TaskerClient *tasker.TaskerClient
|
|
}
|