multisig-wallet-sdk-v2
v1.0.0
Published
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.
Downloads
3
Maintainers
Readme
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/Files | Description | | -------------- | --------------------------------------------------------------------------------------------------- | | evm | Contains evm contract and client factory classes needed to interact with Zebec Evm bridge contract | | solana | Contains solana contract factory and client classes to interact with Zebec Solana bridge contract | | portalTransfer | Contains all the functions for operation of token transfer from EVM chains to Solana and vice versa | | utils | Contains all the necessary constants, and other utility functions. | | parser | Contains 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