setup

package
v0.0.1-alpha-8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseToken

func ParseToken(routerInstance *router.Router, nativeToken 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"`
	Signer       string          `yaml:"eth_signer"`
}

e2eConfig used to load and parse from application.yml

type Hedera

type Hedera struct {
	NetworkType       string      `yaml:"network_type"`
	BridgeAccount     string      `yaml:"bridge_account"`
	TopicID           string      `yaml:"topic_id"`
	Sender            Sender      `yaml:"sender"`
	DbValidationProps []config.Db `yaml:"dbs"`
}

hedera props from the application.yml

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
	SenderAccount hederaSDK.AccountID
	TopicID       hederaSDK.TopicID
	TokenID       hederaSDK.TokenID
	Clients       *clients
	DbValidation  *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