@big-whale-labs/versioned-contract
v1.0.2
Published
Contract for adding a version to contract
Downloads
8
Keywords
Readme
Contract that adds the version field
Usage
- Install the package
yarn add @big-whale-labs/versioned-contract
- 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 thetypechain
directoryyarn test
— runs the test suiteyarn deploy
— deploys the contract to the networkyarn eth-lint
— runs the linter for the solidity contractyarn lint
— runs all the lintersyarn prettify
— prettifies the code in th projectyarn release
— relases thetypechain
directory to NPM