bootstrap

package
v1.0.0-rc.12-debug Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 36 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 component.ReadyFunc) 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).

func StartEngine added in v0.36.5

func StartEngine(
	ctx context.Context,
	engine models.Engine,
	logger zerolog.Logger,
)

StartEngine starts provided engine and panics if there are startup errors.

Types

type Bootstrap added in v0.31.0

type Bootstrap struct {
	// 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(ctx context.Context) error

func (*Bootstrap) StartProfilerServer added in v0.36.4

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

func (*Bootstrap) StopAPIServer added in v0.31.0

func (b *Bootstrap) StopAPIServer()

func (*Bootstrap) StopClient added in v1.0.0

func (b *Bootstrap) StopClient()

func (*Bootstrap) StopDB added in v1.0.0

func (b *Bootstrap) StopDB()

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) StopProfilerServer added in v0.36.4

func (b *Bootstrap) StopProfilerServer()

type Publishers added in v0.31.0

type Publishers struct {
	Block       *models.Publisher[*models.Block]
	Transaction *models.Publisher[*gethTypes.Transaction]
	Logs        *models.Publisher[[]*gethTypes.Log]
}

type Storages added in v0.31.0

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

Jump to

Keyboard shortcuts

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