1.0 KiB
1.0 KiB
Deployment flow
This briefly describes events that occur when an issue is labeled as bounty and a new contract has to be deployed.
- Issue is labeled
- Event is received via GitHub App webhook
- Contract is deployed
- GitHub issue comment "Deploying contract..." is posted
transaction_hash
is stored in theissues
table
The following items execute in scheduler threads that run each minute, so up to 60 sec delay can be expected.
update-issue-contract-address
scheduler thread fetches transaction receipt, updatescontract_address
and updates GitHub comment with a new image and current balancedeploy-pending-contracts
scheduler thread checks if there are issues that did not have corresponding contracts deployed and attempts to redeployupdate-balances
scheduler thread checks balances and updates GitHub comment accordinglyupdate-contract-internal-balances
scheduler threads updates internal ERC20 token balances for all deployed contracts. This is required by current contract code