Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aeolianeth committed Dec 1, 2024
1 parent b8571ec commit 55171c2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/abi-codegen.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/**
* A script to generate a selection of typescript files that contain the ABI and address of JB contracts.
*
* Behaviour differs slightly, depending on what contract we're importing.
*
* The idea is: instead asyncronously importing the JSON files at runtime, we bundle them into a TS file, and import that instead.
* This way:
* - we reduce the number of individual files that Next/webpack builds
* - we save on some total bundle size (the total TS files < the total JSON files)
* - src code is simpler to read and understand
*/

const fs = require('fs')

const core = [
Expand Down

0 comments on commit 55171c2

Please sign in to comment.