config

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package config provides the configuration for the Scroll paymaster service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APIKeys            []string        `json:"api_keys"`
	PaymasterAddressV7 common.Address  `json:"paymaster_address_v7"`
	RateLimiterQPS     int64           `json:"rate_limiter_qps"`
	ChainID            int64           `json:"chain_id"`
	SignerPrivateKey   string          `json:"signer_private_key"`
	AWSKMSKeyID        string          `json:"aws_kms_key_id"` // FIXME: AWS KMS signer is not tested yet.
	USDTAddress        common.Address  `json:"usdt_address"`
	USDCAddress        common.Address  `json:"usdc_address"`
	EthereumRPCURLs    []string        `json:"ethereum_rpc_urls"`
	DBConfig           database.Config `json:"db_config"`
}

Config represents the configuration for the paymaster.

func NewConfig

func NewConfig(file string) (*Config, error)

NewConfig return an unmarshalled config instance.

Jump to

Keyboard shortcuts

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