@big-whale-labs/versioned-contract
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Contract that adds the version field

Usage

  1. Install the package yarn add @big-whale-labs/versioned-contract
  2. Add to your contract as follows:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.14;

import "@big-whale-labs/versioned-contract/contracts/Versioned.sol";

contract MyContract is Versioned {
  constructor(string memory _version) Versioned(_version) {}
}

Available scripts

  • yarn build — compiles the contract ts interface to the typechain directory
  • yarn test — runs the test suite
  • yarn deploy — deploys the contract to the network
  • yarn eth-lint — runs the linter for the solidity contract
  • yarn lint — runs all the linters
  • yarn prettify — prettifies the code in th project
  • yarn release — relases the typechain directory to NPM

Readme

Keywords

none

Package Sidebar

Install

npm i @big-whale-labs/versioned-contract

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

9.01 kB

Total Files

4

Last publish

Collaborators

  • wilson.bwl.gg
  • upacyxou
  • tuansydau
  • sarmat
  • ohpaul
  • therealnorman
  • avrdude
  • t_damer
  • wsmichel
  • borodutch