Skip to content

EVM smart contract for address mapping ss58 <> H160

Notifications You must be signed in to change notification settings

AstarNetwork/astarbase

Repository files navigation

AstarBase (AstarPass/ShidenPass)

Introduction

There are couple of facts for Shiden/Astar ecosystem:

  1. Majority of the crowdloan participants used their Polkadot native addresses and these users are the majority of dApps-Staking participants.
  2. While we are building multi virtual Machine future, today most of the dApps are using Ethereum Virtual Machine (EVM) which uses Ethereum address space, usually referred as MetaMask accounts or H160.
  3. Our unique feature is dApps Staking which provides basic income for developers and a staking mechanism for the users. Both dApps developers and users benefit from it.

More info for the developers can be found in AstarBase documentation

The goals of this project:

  1. Bring more users to EVM dApps;
  2. Create more opportunities for end users to participate in the Astar ecosystem;
  3. Enable EVM dApps to attract and reward users even though they have majority of their funds staked on dApps Staking;
  4. Encourage users to stake and use dApps Staking mechanism.

Scope

The front-end implementation for AstarBase (called AstarPass on Astar and ShidenPass on Shiden) will allow user to connect with Polkadot and an EVM wallet (like MetaMask) at the same time and write this address pair to the EVM smart contract. The EVM smart contract (AstarBase) will verify on-chain that those addresses are valid and that users are participating in Astar dApps Staking.

Targeted users

After EVM smart contract (AstarBase) is filled with user's addresses, the dApps will be able to call it to verify if an address is used in dApps Staking.

Use Cases for Users

  • NFT smart contracts can be programmed to be minted only by users in AstarBase or give discounts to those users.
  • Gaming dApps can have a base of 20k (or more) users and they can attract them by droping exclusive items to them.
  • Claim ERC20 airdrops according to the amount staked in dApps Staking.
  • Metaverse projects can give free avatars or land...
  • DeFi Screenshot 2022-01-28 at 08 17 22

Use Cases for dApps

One of the biggest challenges for new projects is to attract users. The AstarBase is a tool that enables dApps to provide benefit to our already established community.

Example Use Case

Screenshot 2022-03-16 at 14 32 41