A TypeScript implementation that allows clients to connect and interact with web-based providers.
The AVM Web Provider is an interface that bridges the gap between clients (e.g. dApps) and providers (e.g. wallets), allowing clients to connect and interact with providers in a standardized way.
Both clients and providers use the window.dispatchEvent
function to emit events, and use the window.addEventListener
function to observe events.
The message schema is based on the ARC-0027 standard.
For full documentation, please see here.
- Install Node v20.9.0+
- Install Yarn v1.22.5+
- Install the dependencies:
$ yarn install
- To build simply run:
$ yarn build
This will compile the Typescript source code into a dist/
directory.
Command | Description |
---|---|
yarn build |
Builds the source code into the dist/ directory. |
yarn run docs:build |
Builds the documentation into the .docusaurus/ directory. |
yarn run docs:serve |
Serves the built documentation from the .docusaurus/ directory. |
yarn run docs:start |
Builds and runs the documentation in a development environment with hot reloading. |
yarn run lint |
Runs the linter on .js and .ts files. |
yarn run prettier |
Runs the prettier on .js and .ts files. |
yarn test |
Runs the tests. |
yarn types:check |
Performs a type check on the src/ directory. |
Please read the Contributing Guide to learn about the development process.
Please refer to the LICENSE file.