2.0.3 • Published 1 year ago

zebec-wormhole-test v2.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Zebec Bridge SDK

This is the sdk for zebec bridge contracts which lets use bridge your transactions from multiple chains to solana via wormhole to utilize the features of Zebec Streaming and Zebec Multisig Streaming protocol in solana.

This sdk is built on top of wormhole-sdk package and requires you to install it to utilize this sdk. Since Zebec Protocol utilizes the solana's fast transaction processing ability for its streaming services, despite of the transaction payload being originated from x-chain bridges supports or will be supporting in future, the target of the payload for execution will always be in Solana.

Folders/FilesDescription
evmContains evm contract and client factory classes needed to interact with Zebec Evm bridge contract
solanaContains solana contract factory and client classes to interact with Zebec Solana bridge contract
portalTransferContains all the functions for operation of token transfer from EVM chains to Solana and vice versa
utilsContains all the necessary constants, and other utility functions.
parserContains necessary methods and types for parsing wormhole vaa payloads.

Documentation

Go to Bridge Sdk Docs for documentation

Usage

Install dependency

yarn install
// or
npm install

Format package

yarn format
// or
npm run format

Build package

yarn build
// or
npm run build

Test package

For test rename the .env.example to .env and provide value for environment variables

yarn test
// or
npm run test

Test single file

yarn test:single <file path>
// or
npm run test:single <file path>

Commit changes

yarn commit
// or
npm run commit

Build type documents

yarn document
// or
npm run document