Skip to content

gelatodigital/relay-bundler-new-networks-testing-suite

Repository files navigation

Test Suite

A comprehensive test suite for testing Gelato middleware endpoints including Smart Wallets, Relay, and Bundler functionality.

Configuration

Chain Configuration

Configure the target chain in chains/index.ts:

export const chain = megaETHMainnet; // Change to your desired chain

Available chains are defined in chains/customChains.ts. You can add custom chains there or modify existing ones.

Ensure your .env file contains:

  • RPC_URL - RPC endpoint for the chain
  • TESTNET_API_KEY or MAINNET_API_KEY - Gelato API key
  • PRIVATE_KEY - Private key for signing transactions

Running Tests

Run Selected Scripts

Edit the include array in run-all.ts to specify which scripts to run:

const include: string[] = [
  "smartwallet:gelato",
  "relay:sponsored",
  "bundler:estimate:gas-tank",
];

Then run:

yarn run-all
# or
npx tsx run-all.ts

Available Scripts

Smart Wallet:

  • smartwallet:gelato
  • smartwallet:kernel:4337
  • smartwallet:kernel:4337+7702

Relay:

  • relay:sponsored
  • relay:sponsored:erc2771
  • relay:sponsored:erc2771:signature
  • relay:sponsored:erc2771:concurrent
  • relay:syncfee
  • relay:syncfee:erc2771

Bundler:

  • bundler:estimate:gas-tank
  • bundler:estimate:native
  • bundler:estimate:erc20
  • bundler:estimate:sponsored
  • bundler:send:gas-tank
  • bundler:send:native
  • bundler:send:erc20
  • bundler:send:sponsored

All available script IDs are defined in scripts.config.ts.

Script Execution

Scripts run sequentially - each script must complete before the next one starts. If a script fails, execution stops.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors