/auto-claim-service

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Auto Claim Service

Introduction

Autoclaim Script is a cron 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

  • Create .env file in all the packages with corresponding fields as present in .env.example files in corresponding directories.

  • Download all module dependencies by running

npm install

Running

  • Build using
npm run build
  • Start the server using
npm run start

License

Copyright (c) 2024 PT Services DMCC

Licensed under either:

as your option.

The SPDX license identifier for this project is MIT OR Apache-2.0.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.