Methods
Writes
All write methods returnPromise<Hex> (transaction hash).
| Method | Description |
|---|---|
deploy(platformHash, infoAddress, implementationId) | Deploy a treasury for a campaign |
registerTreasuryImplementation(platformHash, implementationId, implementation) | Register a new treasury implementation |
approveTreasuryImplementation(platformHash, implementationId) | Approve a registered implementation |
disapproveTreasuryImplementation(implementation) | Disapprove an implementation |
removeTreasuryImplementation(platformHash, implementationId) | Remove an implementation |
Usage examples
Deploy a treasury
Register and approve an implementation
Remove an implementation
Simulation
Related
- CampaignInfo — the campaign that the treasury serves
- PaymentTreasury — fiat payment treasury type
- AllOrNothing — all-or-nothing crowdfunding treasury type
- KeepWhatsRaised — keep-what’s-raised treasury type