Documentation ¶
Index ¶
- Constants
- func CLIFlags(envPrefix string) []cli.Flag
- func FetchAndExecute()
- func FetchPSPInGCP() (string, string, []byte, error)
- func FetchPrivateKeyInGcp() (string, error)
- func GetTheL1Client() (*ethclient.Client, error)
- func PspExecutionOnChain(ctx context.Context, l1client *ethclient.Client, ...)
- type Account
- type CLIConfig
- type Defender
- type RequestData
- type Response
Constants ¶
View Source
const ( NodeURLFlagName = "rpc.url" PrivateKeyFlagName = "privatekey" PortAPIFlagName = "port.api" ReceiverAddressFlagName = "receiver.address" DataFlagName = "data" )
View Source
const ( MetricsNamespace = "psp_executor" SepoliaRPC = "https://proxyd-l1-consensus.primary.sepolia.prod.oplabs.cloud" MainnetRPC = "https://proxyd-l1-consensus.primary.mainnet.prod.oplabs.cloud" LocalhostRPC = "http://localhost:8545" )
Variables ¶
This section is empty.
Functions ¶
func FetchAndExecute ¶
func FetchAndExecute()
FetchAndExecute() will fetch the privatekey, and correct PSP from GCP and execute it on the correct chain.
func FetchPSPInGCP ¶
FetchPSPInGCP() will fetch the correct PSPs into GCP and return the Data.
func FetchPrivateKeyInGcp ¶
FetchPrivateKey() will fetch the privatekey of the account that will execute the pause (from the GCP secret manager).
func GetTheL1Client ¶
GetTheL1Client() will return the L1 client based on the RPC provided in the config and ensure that the RPC is not production one.
func PspExecutionOnChain ¶
func PspExecutionOnChain(ctx context.Context, l1client *ethclient.Client, superchainconfig_address string, privatekey string, safe_address string, data []byte)
PSPexecution(): PSPExecutionOnChain is a core function that will check that status of the superchain is not paused and then send onchain transaction to pause the superchain.
Types ¶
type CLIConfig ¶
type CLIConfig struct { NodeUrl string // contains filtered or unexported fields }
func ReadCLIFlags ¶
type Defender ¶
type Defender struct { SuperChainConfigAddress string // contains filtered or unexported fields }
type RequestData ¶
Click to show internal directories.
Click to hide internal directories.