open-index/open-npm huggingface dataset:
npm package: @mazito/zkapp-contracts-add
Description: A MINA zkApp example contract which adds 2 to the current state.
Author: MAZito
Latest version: 0.1.0

# MINA zkApp Add example contract 

A [MINA Protocol](https://docs.minaprotocol.com/) zkApp example contract which adds 2 to the current state.

This template uses `TypeScript` and `Node 18+`.

Built with `SnarkyJS 0.10` so may not work with different Snarky versions.

## Install

~~~
npm install @mazito/zkapp-contracts-add
~~~

## Use

Please see: [MINA Docs](https://docs.minaprotocol.com/) / [How to Write a zkApp UI](https://docs.minaprotocol.com/zkapps/how-to-write-a-zkapp-ui)

Loading at app initialization:
~~~
import { Add } from "@mazito/zkapp-contracts-add";
~~~

Dynamic loading your contract with React:
~~~
useEffect(() => {
  (async () => {
    const { YourSmartContract } = await import('your-package-name');
  })();
}, []);
~~~

Dynamic loading your contract with Svelte
~~~
onMount(async () => {
  const { YourSmartContract } = await import('your-package-name');
});
~~~

Dynamic loading your contract with Vue
~~~
onMounted(async () => {
  const { YourSmartContract } = await import('your-package-name');
});
~~~

## License

[Apache-2.0](LICENSE)