Skip to content

TUTORIAL

wxd56987 edited this page Jul 12, 2023 · 2 revisions

AdMeta WebApp and AdMeta Browser Extension were built to allow users to better interact with the AdMeta blockchain. It now supports AdMeta Testnet by default. here are a few steps to introduce the basic features.

Install AdMeta Extension

  1. Open the project folder https://github.com/AdMetaNetwork/admeta-mina-chort-1/tree/main/extension

  2. Run

yarn 
yarn build
  1. You will get a dist folder in the root directory, Open chrome install extension page chrome://extensions/, and Import the dist directory into the installation

Untitled

Agree the protocl and read the whitelists

In the world of AdMeta, we need to collect some of your privacy data only from whitelisted websites, and if you agree, we can serve you better and reward you with ads.

Untitled

Web APP

  1. Open the project folder https://github.com/AdMetaNetwork/admeta-mina-chort-1/tree/main/dapp

  2. Run

yarn 
yarn dev
  1. Install Auro extension and Metamask extension.

    Untitled

  2. Connect your wallet.

Untitled

  1. After successfully singed in, you will see a dashboard indicating a summary of your ad related [data.You](http://data.You) will see many data in dashboard like current all level and current single level.

    Untitled

  2. After you click the ’Data Sync’ Button,data sync service will be operated.Mina privacy data is processing now.

    Untitled

  3. Wait a moment and Mina ZK proof will be completed.And the result is uploaded to EVM.

    Untitled

  4. When come back to our Web APP homepage,the data has been sent to EVM completedly.

Untitled

Browser extension

Users can read the latest category and score information in the browser extension.The score of the corresponding category will also increase when you have performed the browsing operation of the whitelisted website.

Untitled

For example, when you browse decentraland's website for more than a certain amount of time, you will earn ten points in the gamefi field, and as your score rises, so will your rank according to the score rating model

Untitled

After you have browsed for a certain amount of time, you will need to manually sync the browser extension data to the dapp side, press 'Data Sync' to do this.

Untitled

Now we can see that your data has been synced to the dapp side!

Untitled

AdMeta SDK

We will also match each user with an ad task in our SDK based on the different user tags.Users will also be rewarded for completing different advertising tasks.

Untitled

Here is a simple example where the user needs to connect to the wallet while browsing AdMeta's telegram group and withdraw the reward after completing the above tasks

Untitled

Now you can see your rewards in your wallet.

Untitled

AdMeta EVM Contract

Open the project folder https://github.com/AdMetaNetwork/admeta-mina-chort-1/tree/main/evm-contract

Contract features include:

  1. Ad publish
  2. Ad Match
  3. User data storage
  4. Ad completes signature verification
  5. Claim reward

If you want to test manually, You can open remix and directly compile and deploy the testnet

AdMeta Mina Contract

Open the project folder https://github.com/AdMetaNetwork/admeta-mina-chort-1/tree/main/mina-contract

Contract features include:

  1. Verification score
  2. Verification level
  3. Off-Chain Merkel Storage
  4. Generate ZK proof

If you want to test manually, You can open mina tutorials deploy contract https://docs.minaprotocol.com/zkapps/tutorials/deploying-to-a-network and directly compile and deploy the testnet