npm.io
0.1.3 • Published 3 years ago

libsol

Licence
ISC
Version
0.1.3
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
1

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);