descriptors

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressMap

type AddressMap map[string]types.Address

AddressMap is a map of address names to their corresponding addresses

type Chain

type Chain struct {
	Name      string              `json:"name"`
	ID        string              `json:"id,omitempty"`
	Services  ServiceMap          `json:"services,omitempty"`
	Nodes     []Node              `json:"nodes"`
	Addresses AddressMap          `json:"addresses,omitempty"`
	Wallets   WalletMap           `json:"wallets,omitempty"`
	JWT       string              `json:"jwt,omitempty"`
	Config    *params.ChainConfig `json:"config,omitempty"`
}

Chain represents a chain (L1 or L2) in a devnet.

type DevnetEnvironment

type DevnetEnvironment struct {
	Name string   `json:"name"`
	L1   *Chain   `json:"l1"`
	L2   []*Chain `json:"l2"`

	Features []string `json:"features,omitempty"`
}

DevnetEnvironment exposes the relevant information to interact with a devnet.

type EndpointMap

type EndpointMap map[string]PortInfo

EndpointMap is a map of service names to their endpoints.

type Node

type Node struct {
	Services ServiceMap `json:"services"`
}

Node represents a node for a chain

type PortInfo

type PortInfo struct {
	Host        string `json:"host"`
	Port        int    `json:"port,omitempty"`
	PrivatePort int    `json:"private_port,omitempty"`
}

type Service

type Service struct {
	Name      string      `json:"name"`
	Endpoints EndpointMap `json:"endpoints"`
}

Service represents a chain service (e.g. batcher, proposer, challenger)

type ServiceMap

type ServiceMap map[string]Service

ServiceMap is a map of service names to services.

type Wallet

type Wallet struct {
	Address    types.Address `json:"address"`
	PrivateKey string        `json:"private_key,omitempty"`
}

Wallet represents a wallet with an address and optional private key.

type WalletMap

type WalletMap map[string]Wallet

WalletMap is a map of wallet names to wallets.

Jump to

Keyboard shortcuts

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