Created
May 18, 2023 15:24
-
-
Save larry0x/0f677cbb5480ef9922c8ddd3607a49a6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 script generates a v1 TextProposal, that is, a v1 proposal with no | |
// message. | |
const mrc = 23; | |
const title = "Add WBTC/OSMO 14d vault tokens as a collateral asset in Mars Farm"; | |
//------------------------------------------------------------------------------ | |
const fs = require("fs"); | |
const summary = fs.readFileSync(`./mrc-${mrc}/README.md`, "utf8"); | |
const metadata = { | |
title, | |
summary, | |
}; | |
const proposal = { | |
messages: [], | |
metadata: JSON.stringify(metadata), | |
deposit: "", | |
}; | |
fs.writeFileSync(`./mrc-${mrc}/proposal.json`, JSON.stringify(proposal, null, 2) + "\n"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment