0.0.6 • Published 1 year ago

teleport-sdk v0.0.6

Weekly downloads
-
License
AGPL-3.0
Repository
-
Last release
1 year ago

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
0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago