teleporter

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Overview

Copyright (C) 2022, Ava Labs, Inc. All rights reserved See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Index

Constants

This section is empty.

Variables

View Source
var (
	TeleporterPrefundedAddressBalance = big.NewInt(0).Mul(big.NewInt(1e18), big.NewInt(600)) // 600 AVAX
)

Functions

func DeployRelayer

func DeployRelayer(
	binDir string,
	configPath string,
	logFilePath string,
	runFilePath string,
	storageDir string,
) error

func FundRelayer

func FundRelayer(
	rpcURL string,
	prefundedPrivateKey string,
	teleporterRelayerAddress string,
) error

func GetRelayerKeyInfo

func GetRelayerKeyInfo(keyPath string) (string, string, error)

func RelayerCleanup

func RelayerCleanup(runFilePath string, storageDir string) error

func UpdateRelayerConfig

func UpdateRelayerConfig(
	relayerConfigPath string,
	relayerStorageDir string,
	relayerAddress string,
	relayerPrivateKey string,
	network models.Network,
	subnetID string,
	blockchainID string,
	teleporterContractAddress string,
	teleporterRegistryAddress string,
) error

Types

type Deployer

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

func (*Deployer) Deploy

func (t *Deployer) Deploy(
	teleporterInstallDir string,
	version string,
	subnetName string,
	rpcURL string,
	prefundedPrivateKey string,
) (bool, string, string, error)

func (*Deployer) DeployMessenger

func (t *Deployer) DeployMessenger(
	teleporterInstallDir string,
	version string,
	subnetName string,
	rpcURL string,
	prefundedPrivateKey string,
) (bool, string, error)

func (*Deployer) DeployRegistry

func (t *Deployer) DeployRegistry(
	teleporterInstallDir string,
	version string,
	subnetName string,
	rpcURL string,
	prefundedPrivateKey string,
) (string, error)

func (*Deployer) DownloadAssets

func (t *Deployer) DownloadAssets(
	teleporterInstallDir string,
	version string,
) error

Jump to

Keyboard shortcuts

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