https://github.com/angleprotocol/utils
https://github.com/angleprotocol/utils
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/angleprotocol/utils
- Owner: AngleProtocol
- License: gpl-3.0
- Created: 2024-01-25T23:19:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-15T11:11:32.000Z (6 months ago)
- Last Synced: 2025-07-16T01:10:39.119Z (6 months ago)
- Language: Solidity
- Size: 151 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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
```bash
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:
```javascript
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);
});
```