The Bako Safe SDK manages all the logic of the Bako Safe multisig wallet, including:
- Blockchain Network Integration: Simplifying interactions with blockchain networks and managing network providers.
- Authentication and Security: Implementing secure authentication methods and security protocols.
- Vault Creation and Management: Setting up and configuring secure vaults for crypto assets.
- Signer Registration and Management: Adding and removing signers, and managing their signatures for transaction authorization.
- Transaction Management: Initiating, signing, approving, and executing transactions.
- Utility and Helper Functions: Providing error handling and SDK customization options.
Within the packages folder, you will find the following subdirectories:
- sway: Contains the predicates and libraries (e.g., webauthn).
- sdk: Our TypeScript SDK that interacts with Bako.
For for information, check out the Documentation page.
- Install Fuel Toolchain
- Install dependencies with pnpm:
pnpm install
- On
packages/sway
add your.env
file as in.env.example
- Build packages:
pnpm -w build
cd packages/tests
- Run the tests:
pnpm test
- Or run only test file
pnpm test:file ${filename}
- Install Fuel Toolchain
- Install dependencies with pnpm:
pnpm install
cd packages/tests
- Copy predicate to script debbug file
pnpm debbug:setup
- Add changes and build from script
pnpm debbug:build
- Run your changed script
pnpm debbug:script