New implementation is here: https://github.com/0xPolygonID/onchain-merklized-issuer-demo
This is an example of using an on-chain issuer. In this application, we communicate with Metamask to retrieve the user's balance and the issuer's claim about the user's balance via the on-chain issuer.
There are three main components in this application:
ONCHAIN_ISSUER_CONTRACT_ADDRESS=<ONCHAIN_ISSUER_CONTRACT_ADDRESS>
URL_MUMBAI_NODE=<URL_TO_POLYGON_MUMBAI_NODE>
URL_POLYGON_NODE=<URL_TO_POLYGON_MAINNET_NODE>
ONCHAIN_CONTRACT_OWNER=<PRIVATE_KEY_IS_USED_FOR_DEPLOY_ONCHAIN_ISSUER_CONTRACT>
MUMBAI_CONTRACT_STATE_ADDRESS=0x134B1BE34911E39A8397ec6289782989729807a4
MAIN_CONTRACT_STATE_ADDRESS=0xdc2A724E6bd60144Cde9DEC0A38a26C619d84B90
ONCHAIN_ISSUER_CONTRACT_BLOCKCHAIN=<BLOCKCHAIN_OF_ISSUER_CONTRACT>
ONCHAIN_ISSUER_CONTRACT_NETWORK=<BLOCKCHAIN_OF_WITH_ISSUER_CONTRACT>
NGROK_AUTHTOKEN=<NGROK_AUTHTOKEN> # use https://ngrok.com/ to get the auth token
git clone https://github.com/0xPolygonID/onchain-issuer-integration-demo
0x134B1BE34911E39A8397ec6289782989729807a4
0x624ce98D2d27b20b8f8d521723Df8fC4db71D79D
./run.sh
custom
from the drop down