initialClaim

command
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 15 Imported by: 0

README

InitialClaim script

This script allows to create the claim tx and include it in a forcedBatch. This is require when the L2 network is empty and there are no funds in L2. Typically this action is used to include the claim tx to fill the bridge autoclaim wallet with ethers in L2 in order to allow the service send the claim txs for the users.

Parameters

At the beginning of the script there are the next constant variables that need to be reviewed.

    l2BridgeAddr = "0xff0EE8ea08cEf5cb4322777F5CC3E8A584B8A4A0"
	zkevmAddr      = "0x610178dA211FEF7D417bC0e6FeD39F05609AD788"

	accHexAddress    = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
	accHexPrivateKey = "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
	l1NetworkURL       = "http://localhost:8545"
	l2NetworkURL       = "http://localhost:8123"
	bridgeURL          = "http://localhost:8080"

l2BridgeAddr is the bridge address smart contract in L2 zkevmAddr is the polygonZkEvm address in L1 accHexAddress is the wallet address used to send the claim in L2 and to send the forcedBatch in L1 accHexPrivateKey is the wallet private key used to send the claim in L2 and to send the forcedBatch in L1 l1NetworkURL is the url of the L1 rpc l2NetworkURL is the url of the L2 rpc bridgeURL is the url of the bridge service

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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