Skip to content

rhinestonewtf/bundle-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bundle Generator

A simple CLI tool to generate intents on the Rhinestone Orchestrator for testing.

Usage

When using the bundle generator for the first time, run pnpm i to install the dependencies. You will also need to create a .env file based on .env.example. The owner private key is just used to sign so can be a random private key. You only need the api keys of the env you're using.

Environments

The bundle generator supports three different environments:

  • Prod
  • Dev
  • Local

Note: if you're running a local testnet, set LOCAL_TESTNET=true

Usage

Command address

  • Gets the address for the smart account to send funds to

Usage: pnpm address or pnpm run address

Command balance

  • Gets the balance of the smart account across all supported chains

Usage: pnpm address or pnpm run address

Command: new

  • Creates a new intent through a cli
  • Stores the intent params for future use
  • Executes the intent

Usage: pnpm new or pnpm run new

Mode replay

  • Allows you to either replay all stored intents or a subset
  • Allows you to either execute them in sequence or parallel

Usage: pnpm replay or pnpm run replay

Testing vectors

In order to generate a large set of test cases, run ./generate.sh or ./generate_testnets.sh. The vectors are:

  • Networks: what networks to use
  • Token outs: what tokens to request on target
  • Token ins: what tokens to use as input
  • Sponsored: whether the intent is sponsored
  • Destination ops: whether there are target executions
  • Settlement layers: which settelment layers to use
  • Samechain no token transfers
  • Multi token output
  • Account deployments
  • EIP-7702
  • EOAs
  • Non-7579 accounts
  • Multi token input
  • Multi origin chain
  • Locked funds
  • Unlocked funds
  • Preclaim ops

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published