config

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_EVM_GAS_LIMIT      = 200000
	DEFAULT_TSS_FEE            = "1000000000000000000" // 1e16 0.01
	DEFAULT_ST_TOKEN_AMOUNT    = "1000000000000000000" // 1e16 0.01
	DEFAULT_DEPOSIT_STAKER_FEE = "1000000000000000000" // 1e16 0.01
)

Variables

This section is empty.

Functions

This section is empty.

Types

type E2ETestConfig

type E2ETestConfig struct {
	GasLimit uint64 `yaml:"gas_limit"`
	// Make sure that the tss address has enough tx fees
	TssFee string `yaml:"tss_fee"`
	// test pell deposit st token amount
	StTokenAmount    string `yaml:"st_token_amount"`
	DepositStakerFee string `yaml:"deposit_staker_fee"`
}

type EVM

type EVM struct {
	Rpc string `yaml:"rpc"`
	// pell releated
	Connector                     string        `yaml:"connector"`
	StERC20Addr                   string        `yaml:"st_erc20_addr"`
	StrategyAddr                  string        `yaml:"strategy_addr"`
	StrategyManagerAddr           string        `yaml:"strategy_manager_addr"`
	DelegationManagerAddr         string        `yaml:"delegation_manager_addr"`
	OmniOperatorSharesManagerAddr string        `yaml:"pell_omni_operator_shares_contract_addr"`
	TssManagerAddr                string        `yaml:"tss_manager_addr"`
	E2ETestConfig                 E2ETestConfig `yaml:"e2e_test_config"`
	PellTokenAddr                 string        `yaml:"pell_token_addr"`
	GatewayEVMAddr                string        `yaml:"gateway_evm_addr"`
	GasSwapEVMAddr                string        `yaml:"gas_swap_evm_addr"`
	CentralSchedulerAddr          string        `yaml:"central_scheduler_addr"`
	OperatorStakeManagerAddr      string        `yaml:"operator_stake_manager_addr"`
	EjectionManagerAddr           string        `yaml:"ejection_manager_addr"`
}

type PEVMContracts

type PEVMContracts struct {
	PellDelegationManageInteractor string `yaml:"pell_delegation_manager_interactor"`
	PellDelegationManager          string `yaml:"pell_delegation_manager"`
	PellDvsDirectory               string `yaml:"pell_dvs_directory"`
	PellRegistryRouter             string `yaml:"pell_registry_router"`
	PellSlasher                    string `yaml:"pell_slasher"`
	PellStrategyManager            string `yaml:"pell_strategy_manager"`
	PellTokenAddress               string `yaml:"pell_token_addr"`
	PellGatewayAddr                string `yaml:"pell_gateway_addr"`
	PellGasSwapAddr                string `yaml:"pell_gas_swap_addr"`
	PellRegistryRouterFactory      string `yaml:"pell_registry_router_factory"`
}

pell releated

type PellConfig

type PellConfig struct {
	Accounts    TestAccounts  `yaml:"accounts"`
	Rpcs        Rpcs          `yaml:"rpcs"`
	PEVM        PEVMContracts `yaml:"pevm"`
	MultiChain  []EVM         `yaml:"multi_chain"`
	PellChainId string        `yaml:"pell_chain_id"`
	Setup       SetupFlag     `yaml:"setup"`
}

func Default

func Default() *PellConfig

func LoadConfig

func LoadConfig(configFile string) (*PellConfig, error)

GetConfig returns config from file from the command line flag

func (*PellConfig) Export

func (conf *PellConfig) Export(path string) error

func (*PellConfig) Validate

func (conf *PellConfig) Validate()

type Rpcs

type Rpcs struct {
	PellCoreRpc  string `yaml:"pell_core_rpc"`
	PellCoreGrpc string `yaml:"pell_core_grpc"`
	PellEvm      string `yaml:"pell_evm"`
}

type SetupFlag

type SetupFlag struct {
	PEVMSetup bool `yaml:"pevm_setup"`
	EVMSetup  bool `yaml:"evm_setup"`
}

type TestAccounts

type TestAccounts struct {
	EVMAddress            string `yaml:"evm_address"`
	EVMPrivKey            string `yaml:"evm_priv_key"`
	EVMAdminPrivKey       string `yaml:"evm_admin_priv_key"`
	FungibleAdminMnemonic string `yaml:"fungible_admin_mnemonic"`
	DeployerPrivKey       string `yaml:"deployer_priv_key"`
	DeployerAddress       string `yaml:"deployer_address"`
}

Jump to

Keyboard shortcuts

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