New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

vrc25

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vrc25

Specifications for VRC25 token and gas sponsored program

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

VRC25 Specifications

Installation

npm install vrc25

Usage

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import "vrc25/contracts/VRC25.sol";

contract MyToken is VRC25 {
  constructor() VRC25("MyToken", "TKN", 9) {
    _mint(msg.sender, 1000000 * 10 ** 9); // You can remove this line if doesn't want to initial mint
  }

  function _estimateFee(
    uint256 value
  ) internal view virtual override returns (uint256) {
    // We will require the sender pay nothing in this example.
    // In case of avoiding spams, you can charge a small number of tokens.
    return value * 0;
  }
}

How to call apply/charge to the VRC25 Issuer?

You can use the GUI here https://viction.tuphan.dev which supports both testnet and mainnet.

LICENSE

Apache-2.0

FAQs

Package last updated on 20 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts