Deploy PRC20

We have multi ways to deploy a PRC20.

1. Create a contract of PRC20

A contract PRC20 need implement from base ERC20 (More detail:

In this example, we can use the standard package from openzeppelin

//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

/// @title BabyPosiToken contract
abstract contract BabyPosiToken is ERC20 {

    constructor() ERC20("BabyPosiToken", "BPOSI") {}

2. Deploy contract PRC20

We can deploy with ways below:

Last updated