Messages
InstantiateMsg
{ "payment_contract": "terra1gy...", "community_pool": "terra1hw..."}
ExecuteMsg
ExecuteFundingRequest
Called by the native governance poll when it passes.
Must be executed either with sender set to Enterprise contract's address, or with sender set to community pool's address stored in this contract's config. In case of the latter, funds to be paid from the DAO to the project must be supplied in the message.
Sets up the requested payment streams between the community pool and the project.
Payments to the Enterprise in native tokens are not supported. Proposed payments in CW20 tokens from the project to the Enterprise must be preceded by an Allowance to the Enterprise contract by the project multisig.
{ "execute_funding_request": { "proposal": { "name": "Super uber funding deal", "multisig": "terra1x46rqay4d3cssq8gxxvqz8xt6nwlz4td20k38v", "from": [ { "name": "Luna from Enterprise to project", "asset": { "info": { "native": "uluna" }, "amount": "72000000" }, "start": 1657556130, "amount": "10000", "interval": "1" } ], "to": [ { "name": "Project token to Enterprise", "asset": { "info": { "cw20": "terra1lm3km2v7mtcp34wlmdd5hgksc2x3f0pm3k9jyl0kjtjwztq6408qyq84vw" }, "amount":"7200000" }, "start": 1657556130, "amount": "1000", "interval": "1" } ] } }}
ClaimTokens
Claims vested tokens in payment streams directed to the Enterprise.
{ "claim_tokens": { "deal_id": 13 }}
CancelFundingDeal
Called by the native governance poll when it passes.
Must be executed with sender set to Enterprise contract's address.
Cancels payment streams between the Enterprise and the project, if all of them are mutable. Does not claim vested funds, it has to be done manually.
{ "cancel_funding_deal": { "deal_id": 3 }}
UpdateConfig
Updates the configuration of the contract.
Must be executed with sender set to Enterprise contract's address.
{ "params": { "payment_contract": "terra1gyh4td7v96mucr4eaksd2msg0jv0mcn9a5yj85vx5l7hty3tu9pspuduqu", "community_pool": "terra1ukpw6g9dqfw3fk2mqchplgcz4jaukttf6tpyrht7sw00t7mn7dps5l9qzt" }}
NotifyFundingRequestExecuted
Internal callback message notifying the contract that all the actions regarding execution of a funding request have finished.
Must be executed with sender set to Enterprise contract's address.
{ "notify_funding_request_executed": { "deal_id": 13 }}