teleport-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Teleport SDK

Install the SDK to your project

In your project directory, run:

yarn add teleport-sdk

Build the SDK

After cloning the xdomain monorepo, navigate to the teleport-sdk package:

cd packages/teleport-sdk

To build the SDK, run:

yarn build

Running the tests

In order to be able to run the tests, you first need to build the SDK (see instructions above).

Fund an account with:

  • Goerli ETH
  • Goerli Optimism ETH
  • Goerli Arbitrum ETH

then add USER_PRIV_KEY=your-account-private-key to your .env. You can then run the tests using:

yarn test

Running a demo script

Fund an account with L2 ETH

then add DEMO_USER_PRIV_KEY=your-account-private-key to your .env. You can then run the demo using:

yarn demo:[l2Network]:[l1Network]

For example, to run the demo script on arbitrum-goerli-testnet, use:

yarn demo:arbitrum:goerli

Building the SDK documentation

yarn docs

Readme

Keywords

none

Package Sidebar

Install

npm i teleport-sdk

Weekly Downloads

66

Version

0.0.6

License

AGPL-3.0

Unpacked Size

1.09 MB

Total Files

190

Last publish

Collaborators

  • 0x2edd