custodial

package
v0.7.3-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Approve      = "approve"
	Check        = "check"
	GiveTo       = "giveTo"
	MintTo       = "mintTo"
	NextTime     = "nextTime"
	Register     = "register"
	Transfer     = "transfer"
	TransferFrom = "transferFrom"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Custodial

type Custodial struct {
	ApprovalTimeout  time.Duration
	Abis             map[string]*w3.Func
	CeloProvider     *celoutils.Provider
	LockProvider     *redislock.Client
	Logg             logf.Logger
	Noncestore       nonce.Noncestore
	Store            store.Store
	RedisClient      *redis.Client
	RegistryMap      map[string]common.Address
	SystemPrivateKey *ecdsa.PrivateKey
	SystemPublicKey  string
	TaskerClient     *tasker.TaskerClient
}

func NewCustodial

func NewCustodial(o Opts) (*Custodial, error)

type Opts

type Opts struct {
	ApprovalTimeout  time.Duration
	CeloProvider     *celoutils.Provider
	LockProvider     *redislock.Client
	Logg             logf.Logger
	Noncestore       nonce.Noncestore
	Store            store.Store
	RedisClient      *redis.Client
	RegistryAddress  string
	SystemPrivateKey string
	SystemPublicKey  string
	TaskerClient     *tasker.TaskerClient
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL