libsol

0.1.3 • Public • Published

libsol a usefull solidity usecases library

run the following command in cli in your project location

npm i libsol

  1. Greater number from Array of Multiple Numbers

import GreaterNumber library

import "libsol/libraries/SimpleMath.sol";

using this library into your preoject fil

using SimpleMath for int;

Use the function where you need Will get maxNumber from given _ArrayOfNumbers parameter

int MaxNumber = SimpleMath.GreaterNumber(int[] calldata _ArrayOfNumbers);

  1. Smaller number from Array of Multiple Numbers

Use the function where you need Will get maxNumber from given _ArrayOfNumbers parameter

int MaxNumber = SimpleMath.SmallerNumber(int[] calldata _ArrayOfNumbers);

Readme

Keywords

none

Package Sidebar

Install

npm i libsol

Weekly Downloads

1

Version

0.1.3

License

ISC

Unpacked Size

3.62 kB

Total Files

3

Last publish

Collaborators

  • mdistiak