bootstrap

package
v0.37.0-preview-2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMultiCloudKMSKeysAccount added in v0.18.0

func CreateMultiCloudKMSKeysAccount(
	client *grpc.Client,
	publicKeys []string,
	payer flow.Address,
	ftAddress string,
	flowAddress string,
	key crypto.PrivateKey,
) (*flow.Address, error)

func CreateMultiKeyAccount

func CreateMultiKeyAccount(
	client *grpc.Client,
	keyCount int,
	payer flow.Address,
	ftAddress string,
	flowAddress string,
	key crypto.PrivateKey,
) (*flow.Address, []crypto.PrivateKey, error)

CreateMultiKeyAccount is used to setup an account that can be used with key-rotation mechanism // todo parts of this are copied from flowkit and go-sdk/templates and should be refactored out once the package are migrated to Cadence 1.0

func Run added in v0.31.0

func Run(ctx context.Context, cfg *config.Config, ready chan struct{}) error

Run will run complete bootstrap of the EVM gateway with all the engines. Run is a blocking call, but it does signal readiness of the service through a channel provided as an argument.

func RunCreateMultiKeyAccount added in v0.11.0

func RunCreateMultiKeyAccount()

RunCreateMultiKeyAccount command creates a new account with multiple keys, which are saved to keys.json for later use with running the gateway in a key-rotation mode (used with --coa-key-file flag).

Types

type Bootstrap added in v0.31.0

type Bootstrap struct {
	Client     *requester.CrossSporkClient
	EVMClient  requester.EVMClient
	Storages   *Storages
	Publishers *Publishers

	Server *api.Server

	Events *ingestion.Engine
	Traces *traces.Engine
	State  *state.Engine
	// contains filtered or unexported fields
}

func New added in v0.31.0

func New(config *config.Config) (*Bootstrap, error)

func (*Bootstrap) StartAPIServer added in v0.31.0

func (b *Bootstrap) StartAPIServer(ctx context.Context) error

func (*Bootstrap) StartEventIngestion added in v0.31.0

func (b *Bootstrap) StartEventIngestion(ctx context.Context) error

func (*Bootstrap) StartMetricsServer added in v0.31.0

func (b *Bootstrap) StartMetricsServer(_ context.Context) error

func (*Bootstrap) StartStateIndex

func (b *Bootstrap) StartStateIndex(ctx context.Context) error

func (*Bootstrap) StartTraceDownloader added in v0.31.0

func (b *Bootstrap) StartTraceDownloader(ctx context.Context) error

func (*Bootstrap) StopAPIServer added in v0.31.0

func (b *Bootstrap) StopAPIServer()

func (*Bootstrap) StopEventIngestion added in v0.31.0

func (b *Bootstrap) StopEventIngestion()

func (*Bootstrap) StopMetricsServer added in v0.31.0

func (b *Bootstrap) StopMetricsServer()

func (*Bootstrap) StopStateIndex

func (b *Bootstrap) StopStateIndex()

func (*Bootstrap) StopTraceDownloader added in v0.31.0

func (b *Bootstrap) StopTraceDownloader()

type Publishers added in v0.31.0

type Publishers struct {
	Block       *models.Publisher
	Transaction *models.Publisher
	Logs        *models.Publisher
}

type Storages added in v0.31.0

type Storages struct {
	Storage      *pebble.Storage
	Blocks       storage.BlockIndexer
	Transactions storage.TransactionIndexer
	Receipts     storage.ReceiptIndexer
	Accounts     storage.AccountIndexer
	Traces       storage.TraceIndexer
	Registers    *pebble.Register
}

Jump to

Keyboard shortcuts

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