Skip to content

AngleProtocol/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Utils

The utils repository is used to store utils contracts and libraries that are used across multiple solidity projects. It is meant to be used as a submodule in other projects.

Installation

forge install https://github.com/AngleProtocol/utils

Setup

After installing you need to create a javascript file un utils named forwardUtils.js with the following content:

const { exec } = require("child_process");

if (process.argv.length < 3) {
    console.error('Please provide a chain input as an argument.');
    process.exit(1);
}

const command = process.argv[2];
const extraArgs = process.argv.slice(3).join(' ');


exec(`node lib/utils/utils/${command}.js ${extraArgs}`, (error, stdout, stderr) => {
    if (error) {
        console.log(error);
        return;
    }
    if (stderr) {
        console.log(stderr);
        return;
    }
    console.log(stdout);
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published