This repository has been archived by the owner on Aug 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish ABI and bytecode to npm (#34)
* Add datagen script * Bump version * Fix exported data * Update contract address
- Loading branch information
1 parent
d5dfe57
commit 7fb4a3f
Showing
4 changed files
with
21 additions
and
182 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ coverage | |
.DS_Store | ||
coverage.json | ||
.openzeppelin/unknown-*.json | ||
OneShotSchedule*.json |
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,13 @@ | ||
const fs = require('fs'); | ||
const OneShotSchedule = require('./build/contracts/OneShotSchedule'); | ||
|
||
fs.writeFileSync('./OneShotSchedule.json', JSON.stringify({ | ||
abi: OneShotSchedule.abi, | ||
bytecode: OneShotSchedule.bytecode | ||
})); | ||
|
||
fs.writeFileSync('./OneShotScheduleAddresses.json', JSON.stringify({ | ||
address: { | ||
31: '0xff349c2df8ca32771153b5868b02bc812fb0172d' | ||
} | ||
})); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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