Skip to content

This is a module built for the Reach framework. It is heavily inspired by the work OpenZepplin has done in the SafeMath.sol util.

License

Notifications You must be signed in to change notification settings

xBacked-DAO/reach-safe-math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reach-safe-math

This is a module built for the Reach framework. It is heavily inspired by the work OpenZepplin has done in the SafeMath.sol util.

Usage

Reach Documentation

import * as safeMath from '@xBacked-DAO/reach-safe-math';

Alternatively

import { tryDiv } from '@xBacked-DAO/reach-safe-math';

Then, to install the packages so compilation works use the install-pkgs flag like below.

./reach compile program.rsh --install-pkgs

⚠️ Note: this does not compile your program, run ./reach compile program.rsh after the install and add .reach to your .gitignore file.

About

This is a module built for the Reach framework. It is heavily inspired by the work OpenZepplin has done in the SafeMath.sol util.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published