dApp to mint and burn ergo tokens using EIP-12 dApp connector. Written in javascript with bootstrap v4.
It can be tried at https://thierrym1212.github.io/tokenminter/index.html
It is based on the Yoroi dApp connector example: https://github.com/Emurgo/yoroi-frontend/tree/develop/packages/yoroi-ergo-connector/example-ergo
git clone https://github.com/ThierryM1212/ergo-token-minter.git
cd ergo-token-minter
npm install
npm run build
npm run start
http://localhost:8080
This allows to deploy a static webpage for example in apache.
npm run buildstatic
The static website is generated in the ./dist folder
In the generated bootstrap.js remove two rows to avoid error loading the wasm (for me at line 270):
/******/ } else if(typeof WebAssembly.instantiateStreaming === 'function') {
/******/ promise = WebAssembly.instantiateStreaming(req, importObject);