setup

package
v1.4.1-rc-1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Hedera          Hedera
	EVM             map[uint64]config.Evm
	Tokens          e2eParser.Tokens
	ValidatorUrl    string
	Bridge          parser.Bridge
	AssetMappings   service.Assets
	FeePercentages  map[string]int64
	NftConstantFees map[string]int64
	NftDynamicFees  map[string]decimal.Decimal
	Scenario        e2eParser.ScenarioParser
}

Config used to load and parse from application.yml

type Hedera

type Hedera struct {
	NetworkType       string
	BridgeAccount     string
	PayerAccount      string
	Members           []string
	TopicID           string
	Sender            Sender
	DbValidationProps []config.Database
	MirrorNode        config.MirrorNode
}

Hedera props from the application.yml

type Receiver added in v1.4.0

type Receiver struct {
	Account string
}

type ScenarioConfig added in v1.4.0

type ScenarioConfig struct {
	ExpectedValidatorsCount int
	FirstEvmChainId         uint64
	SecondEvmChainId        uint64
	DatabaseRetryCount      int
	DatabaseRetryTimeout    time.Duration
	WebRetryCount           int
	WebRetryTimeout         time.Duration
	AmountHederaHbar        int64
	AmountHederaNative      int64
	AmountEvmWrappedHbar    int64
	AmountEvmWrapped        int64
	AmountEvmNative         int64
	AmountHederaWrapped     int64
}

type Sender

type Sender struct {
	Account    string
	PrivateKey string
}

Sender props from the application.yml

type Setup

type Setup struct {
	BridgeAccount   hederaSDK.AccountID
	PayerAccount    hederaSDK.AccountID
	TopicID         hederaSDK.TopicID
	TokenID         hederaSDK.TokenID
	NativeEvmToken  string
	NftTokenID      hederaSDK.TokenID
	NftSerialNumber int64
	NftConstantFees map[string]int64
	NftDynamicFees  map[string]decimal.Decimal
	FeePercentages  map[string]int64
	Members         []hederaSDK.AccountID
	Clients         *clients
	DbValidator     *verify.Service
	AssetMappings   service.Assets
	Scenario        *ScenarioConfig
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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