setup

package
v0.0.1-alpha-9 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrappedAsset

func WrappedAsset(routerInstance *router.Router, nativeAsset string) (*common.Address, error)

Types

type Config

type Config struct {
	Hedera       Hedera          `yaml:"hedera"`
	Ethereum     config.Ethereum `yaml:"ethereum"`
	Tokens       Tokens          `yaml:"tokens"`
	ValidatorUrl string          `yaml:"validator_url"`
}

e2eConfig used to load and parse from application.yml

type Hedera

type Hedera struct {
	NetworkType       string            `yaml:"network_type"`
	BridgeAccount     string            `yaml:"bridge_account"`
	FeePercentage     int64             `yaml:"fee_percentage"`
	Members           []string          `yaml:"members"`
	TopicID           string            `yaml:"topic_id"`
	Sender            Sender            `yaml:"sender"`
	DbValidationProps []config.Database `yaml:"dbs"`
	MirrorNode        config.MirrorNode `yaml:"mirror_node"`
}

hedera props from the application.yml

type Receiver added in v1.4.0

type Receiver struct {
	Account string `yaml:"account"`
}

type Sender

type Sender struct {
	Account    string `yaml:"account"`
	PrivateKey string `yaml:"private_key"`
}

sender props from the application.yml

type Setup

type Setup struct {
	BridgeAccount hederaSDK.AccountID
	EthReceiver   common.Address
	RouterAddress common.Address
	TopicID       hederaSDK.TopicID
	TokenID       hederaSDK.TokenID
	FeePercentage int64
	Members       []hederaSDK.AccountID
	Clients       *clients
	DbValidator   *db_validation.Service
}

Setup used by the e2e tests. Preloaded with all necessary dependencies

func Load

func Load() *Setup

Load loads the e2e application.yml from the ./e2e/setup folder and parses it to suitable working struct for the e2e tests

type Tokens

type Tokens struct {
	WHbar  string `yaml:"whbar"`
	WToken string `yaml:"wtoken"`
}

Jump to

Keyboard shortcuts

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