Skip to content

Commit

Permalink
mod: Add more context on the script functionality and also added comm…
Browse files Browse the repository at this point in the history
…ents to .env.example
  • Loading branch information
Rahul Prabhu committed May 8, 2024
1 parent 902cbc8 commit a5bce77
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
22 changes: 11 additions & 11 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# COMMON
PRIVATE_KEY=0x
NETWORK=testnet
TRANSACTIONS_URL=
PROOF_URL=
RPC_URL=https://zkyoto.explorer.startale.com
BRIDGE_CONTRACT=0x528e26b25a34a4A5d0dbDa1d57D318153d2ED582
GAS_STATION_URL=https://gasstation-staging.polygon.technology/astar/zkyoto
SOURCE_NETWORKS=[0,1]
DESTINATION_NETWORK=2
SLACK_URL=
PRIVATE_KEY=0x # The private key of the EOA which will be submitting the claim transaction
NETWORK=testnet # testnet/mainnet
TRANSACTIONS_URL= # The transaction list endpoint of the bridge API service
PROOF_URL= # The merkle proof endpoint of the bridge API service
RPC_URL=https://zkyoto.explorer.startale.com # The rpc of your chain
BRIDGE_CONTRACT=0x528e26b25a34a4A5d0dbDa1d57D318153d2ED582 # contract address of your bridge contract
GAS_STATION_URL=https://gasstation-staging.polygon.technology/astar/zkyoto # Follow Readme to spin up your own gas estimation service
SOURCE_NETWORKS=[0,1] # The list of soruce network ID's of the chains you want to monitor and process claim transactions from
DESTINATION_NETWORK=2 # The network ID if your chain on the L1 lxly bridge contract
SLACK_URL= # Not Mandatory

# LOGGER_ENV
# LOGGER_ENV - Not Mandatory
SENTRY_DSN=
SENTRY_ENVIRONMENT=
DATADOG_API_KEY=
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

## Introduction

The Auto Claim script is the script which runs on cron job to claim the transactions on particular destination
chain in LXLY bridge.
Autoclaim Script is a cront job service which is used to process the claim transactions for the bridge transactions initiated on the lxly bridge. Bridging involves two steps. 1st Step is done on the source chain and the second on the destination chain, The script automates the second step so that users don't have to manually execute this second step. It fetches the transaction details from the transaction list endpoint of the Bridge API service, gets the merkle proof payload for each bridge transaction and then submits the claim transaction on the destination chain.

## Prerequisite

Expand All @@ -14,6 +13,9 @@ chain in LXLY bridge.
npm install
```

- You can host the gas price estimation service for your chain by following the instructions on this repo: https://github.com/maticnetwork/maticgasstation


## Running

- Build using
Expand Down

0 comments on commit a5bce77

Please sign in to comment.