Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@iconfoundation/btp2-solidity-library

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iconfoundation/btp2-solidity-library

BTP2 Library for solidity

  • 0.2.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Library for BTP2 Solidity

It includes shared codes between BTP2 Solidity Contracts.

Use this library from other contract

In the contract of the local repository, it refers this module directly.

For yarn package system, use the following command if it's located in the root of the repository.

yarn add file:../library

Use proper relative path for it in other locations.

In the contract of other repositories, use absolute name to refer it.

yarn add @iconfoundation/btp2-solidity-library

Development

Setup

It uses yarn for package management. Use the following command to install related packages.

yarn install

Compile

To compile codes, run the following command.

npx hardhat compile

Unit test

Add unit test cases in "test" directory To run the test, run the following command.

npx hardhat test

To run specific test case in the file, then append the path of the file. Here is the example to run test cases in ./test/RLPCodec.ts

npx hardhat test ./test/RLPCodec.ts

Test in other contracts

When you modify this library, you may need to apply this directly to the other contracts. To do that. Use following

Run following command in the root of this module.

yarn link

Then run following command in the root of other repository

yarn link @iconfoundation/btp2-solidity-library

FAQs

Package last updated on 28 Jun 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc