parser

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 2 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       HederaParser          `yaml:"hedera"`
	EVM          map[uint64]parser.Evm `yaml:"evm"`
	Tokens       Tokens                `yaml:"tokens"`
	ValidatorUrl string                `yaml:"validator_url"`
	Bridge       parser.Bridge         `yaml:"bridge"`
	Scenario     ScenarioParser        `yaml:"scenario"`
}

Config used to load and parse from application.yml

type E2E

type E2E struct {
	Hedera       HederaParser          `yaml:"hedera"`
	EVM          map[uint64]parser.Evm `yaml:"evm"`
	Tokens       Tokens                `yaml:"tokens"`
	ValidatorUrl string                `yaml:"validator_url"`
	Bridge       parser.Bridge
}

type HederaParser

type HederaParser struct {
	NetworkType       string            `yaml:"network_type"`
	BridgeAccount     string            `yaml:"bridge_account"`
	PayerAccount      string            `yaml:"payer_account"`
	Members           []string          `yaml:"members"`
	TopicID           string            `yaml:"topic_id"`
	Sender            Sender            `yaml:"sender"`
	DbValidationProps []parser.Database `yaml:"dbs"`
	MirrorNode        parser.MirrorNode `yaml:"mirror_node"`
}

type ScenarioParser

type ScenarioParser struct {
	ExpectedValidatorsCount int           `yaml:"expectedValidatorsCount"`
	FirstEvmChainId         uint64        `yaml:"firstEvmChainId"`
	SecondEvmChainId        uint64        `yaml:"secondEvmChainId"`
	DatabaseRetryCount      int           `yaml:"databaseRetryCount"`
	DatabaseRetryTimeout    time.Duration `yaml:"databaseRetryTimeout"`
	WebRetryCount           int           `yaml:"webRetryCount"`
	WebRetryTimeout         time.Duration `yaml:"webRetryTimeout"`
	AmountHederaHbar        int64         `yaml:"amount_hedera_hbar"`
	AmountHederaNative      int64         `yaml:"amount_hedera_native"`
	AmountEvmWrappedHbar    int64         `yaml:"amount_evm_wrapped_hbar"`
	AmountEvmWrapped        int64         `yaml:"amount_evm_wrapped"`
	AmountEvmNative         int64         `yaml:"amount_evm_native"`
	AmountHederaWrapped     int64         `yaml:"amount_hedera_wrapped"`
}

type Sender

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

type Tokens

type Tokens struct {
	WHbar           string `yaml:"whbar"`
	WToken          string `yaml:"wtoken"`
	NftToken        string `yaml:"nft_token"`
	NftSerialNumber int64  `yaml:"nft_serial_number"`
	EvmNativeToken  string `yaml:"evm_native_token"`
}

Jump to

Keyboard shortcuts

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