keeper

package
v0.13.7 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SafeSignatureTimeout  = 10 * time.Minute
	SafeKeyBackupMaturity = 24 * time.Hour

	SafeStateApproved = common.RequestStateDone
	SafeStatePending  = common.RequestStatePending
	SafeStateClosed   = common.RequestStateFailed
)
View Source
const FinalRequestHash = "373a88f0ac8f2330cc8b92be3b54c2f2fe388fa13aa5591bd11f298547dc89ac"
View Source
const (
	SignerKeygenMaximum = 128
)

Variables

This section is empty.

Functions

func OpenSQLite3ReadOnlyStore

func OpenSQLite3ReadOnlyStore(path string) (*store.SQLite3Store, error)

func OpenSQLite3Store

func OpenSQLite3Store(path string) (*store.SQLite3Store, error)

Types

type Configuration

type Configuration struct {
	AppId                       string             `toml:"app-id"`
	SignerAppId                 string             `toml:"signer-app-id"`
	StoreDir                    string             `toml:"store-dir"`
	MonitorConversaionId        string             `toml:"monitor-conversation-id"`
	SharedKey                   string             `toml:"shared-key"`
	SignerPublicKey             string             `toml:"signer-public-key"`
	AssetId                     string             `toml:"asset-id"`
	ObserverAssetId             string             `toml:"observer-asset-id"`
	ObserverPublicKey           string             `toml:"observer-public-key"`
	ObserverUserId              string             `toml:"observer-user-id"`
	MixinMessengerAPI           string             `toml:"mixin-messenger-api"`
	MixinRPC                    string             `toml:"mixin-rpc"`
	BitcoinRPC                  string             `toml:"bitcoin-rpc"`
	LitecoinRPC                 string             `toml:"litecoin-rpc"`
	EthereumRPC                 string             `toml:"ethereum-rpc"`
	PolygonRPC                  string             `toml:"polygon-rpc"`
	PolygonFactoryAddress       string             `toml:"polygon-factory-address"`
	PolygonObserverDepositEntry string             `toml:"polygon-observer-deposit-entry"`
	PolygonKeeperDepositEntry   string             `toml:"polygon-keeper-deposit-entry"`
	MTG                         *mtg.Configuration `toml:"mtg"`
}

type Deposit

type Deposit struct {
	Chain        byte
	Asset        string
	AssetAddress string
	Hash         string
	Index        uint64
	Amount       *big.Int
}

type Node

type Node struct {
	// contains filtered or unexported fields
}

func NewNode

func NewNode(store *store.SQLite3Store, group *mtg.Group, conf *Configuration, signer *mtg.Configuration, mixin *mixin.Client) *Node

func (*Node) Boot

func (node *Node) Boot(ctx context.Context)

func (*Node) CreateHolderDeposit

func (node *Node) CreateHolderDeposit(ctx context.Context, req *common.Request) ([]*mtg.Transaction, string)

func (*Node) Index

func (node *Node) Index() int

func (*Node) Migrate added in v0.13.0

func (node *Node) Migrate(ctx context.Context) error

func (*Node) ProcessOutput

func (node *Node) ProcessOutput(ctx context.Context, out *mtg.Action) ([]*mtg.Transaction, string)

func (*Node) Terminate added in v0.8.0

func (node *Node) Terminate(ctx context.Context) ([]*mtg.Transaction, string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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