-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update docs & rfk scripts & add audit
- Loading branch information
Showing
22 changed files
with
139 additions
and
480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": "solhint:default", | ||
"rules": { | ||
"max-line-length": ["off", 120] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["JuanBlanco.solidity"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const fs = require("fs"); | ||
|
||
if (process.argv.length < 3) { | ||
console.error("Please provide a filename as a parameter."); | ||
process.exit(1); | ||
} | ||
|
||
const filename = process.argv[2]; | ||
|
||
const data = fs.readFileSync(filename, "utf8"); | ||
try { | ||
const jsonData = JSON.parse(data); | ||
const abi = jsonData.abi; | ||
if (!abi) { | ||
console.error("No `abi` field found in the JSON data."); | ||
process.exit(1); | ||
} | ||
|
||
fs.writeFileSync(filename, JSON.stringify(abi, null, 2)); | ||
console.log("ABI extracted and written to", filename); | ||
} catch (parseErr) { | ||
console.error(`Error parsing JSON: ${parseErr}`); | ||
process.exit(1); | ||
} |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.