Skip to content

Staky-io/xcall-testing-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

X-Call testing scripts

This script is making a demo X-Call transaction between BSC Testnet and ETH Sepolia using a custom text message service.

It can eventually become the foundation for a X-Call library, to simplify the listening process of CallService and BTP events.

Installation

Install dependencies

npm install

Configuration

If needed, replace the contract addresses in src/helpers/constants.ts with your own.

Then, create a .env file with the following variable:

PRIVATE_KEY="YOUR_ETH_PRIVATE_KEY"

All the transaction logic is located in src/lib/TransactionScenario.ts.

Feel free to adapt it with your own logic !

Usage

When everything is ready, run the following commands to execute the script and make a cross-chain transaction:

npm run build
npm run start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published