@tasit/contract-based-account

Library for onboarding a user using a smart-contract-based account.

Usage no npm install needed!

<script type="module">
  import tasitContractBasedAccount from 'https://cdn.skypack.dev/@tasit/contract-based-account';
</script>

README

@tasit/contract-based-account

This package helps with onboarding a user using a smart-contract-based "account". Examples of such smart-contract-based accounts include the Gnosis Safe, Universal Login, Argent, the Dharma smart wallet, Abridged, and Authereum.

This functionality all "lives" in @tasit/contract-based-account, a child package of tasit that is also published to npm as a standalone module using lerna.

For context, here is an overview of how this fits in with the rest of Tasit. But this can be used as a standalone, modular package if you prefer!


Local Development

Below is a list of commands you will probably find useful.

npm start

Runs the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for your convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab.

The library will be rebuilt if you make edits.

npm run build

Bundles the package to the dist folder. The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).

npm run test:tsdx

Runs the test watcher (Jest) in an interactive mode. By default, runs tests related to files changed since the last commit.

npm run test:tsdx

Runs the tests (written with mocha)