Skip to content

string interpolation in dao json#239

Merged
Joeysantoro merged 2 commits intofeat/deploy-in-dao-scriptfrom
feat/remove-run-from-dao-script
Oct 12, 2021
Merged

string interpolation in dao json#239
Joeysantoro merged 2 commits intofeat/deploy-in-dao-scriptfrom
feat/remove-run-from-dao-script

Conversation

@Joeysantoro
Copy link
Contributor

Uses https://www.npmjs.com/package/string-template when constructing a proposal object to allow interpolation at arbitrary depth:

e.g.

{
    "proposal_title": "FIP-Test",
    "proposal_commands": [
        {
            "target": "bondingCurve",
            "values": "0",
            "method": "setAllocation(address[],uint256[])",
            "arguments": [
                ["{fei}", "{tribe}"],
                [9000, 1000]
            ],
            "description": "Set bonding curve allocation to FEI and TRIBE"
        }
    ]
}

@Joeysantoro Joeysantoro merged commit f06d6dd into feat/deploy-in-dao-script Oct 12, 2021
@Joeysantoro Joeysantoro deleted the feat/remove-run-from-dao-script branch October 12, 2021 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments