You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It reads the stake requested data from the database.
It gets the worker address for the database for each chain.
It unlocks the worker address account.
It updates the database with the current status of facilitation.
For more details check the epic Facilitator #1
This ticket is about defining the interfaces of all the functions in the Worker.
The proposed functions are provided for reference.
The implementer can think this in detail and can add/remove functions.
Constructor - Accepts mosaic-config, facilitator-config as parameter.
Accepts Config object. (store in variable).
Creates DB object. (store in variable). (Still in discussion)
function to start the worker.
- [ ] **function to get pending items from `stake_request` table. (Create the ticket for this.)
- [ ] **function that handles the state machine** (Create a new ticket for this.)
- [ ] **function to get the message status from messageOutbox of the gateway.**
- [ ] **function to get the message status from messageInbox of the cogateway.**
- [ ] **function to get the latest `stateRoot` from the anchor contract (auxiliary chain).**
function to update DB with the latest state of facilitation. (Task execution table) (Update the ticket). - REQUESTED
ACCEPTED
ACCOUNT_PROVEN
STAKE_INTENT_COMFIRMED
PROGRESS_STAKE
PROGRESS_MINT
COMPLETE
function to update DB with hashlock and unlockSecret. - [ ] function to update DB with proof data.
- [ ] **function to unlock worker address.**
- Get the encrypted_account from Config for the given address.
- Read the password from the env variable.
- Decrypt the account.
- Add it to web3 account wallet.
The accounts will be unlocked at the commander level and will update the web3 wallet.
function to create hashLock and unlockSecret.
Generate hashlock and unlockSecret pair
function to approve bounty amount.
function to accept stake request.
function to generate account proof.
function to confirm stake intent.
function to progress stake.
function to progress mint.
- [ ] **function to stop the worker (handle SIGTERM).** (update the ticket.)
The text was updated successfully, but these errors were encountered:
deepesh-kn
changed the title
Define the interfaces for all the functions in Worker
Define the interfaces for all the functions in Facilitator
Jun 6, 2019
Worker facilitates the stake and mint process.
For more details check the epic Facilitator #1
This ticket is about defining the interfaces of all the functions in the Worker.
The proposed functions are provided for reference.
The implementer can think this in detail and can add/remove functions.
- Acceptsmosaic-config
,facilitator-config
as parameter.- [ ] **function to get pending items from `stake_request` table. (Create the ticket for this.) - [ ] **function that handles the state machine** (Create a new ticket for this.) - [ ] **function to get the message status from messageOutbox of the gateway.** - [ ] **function to get the message status from messageInbox of the cogateway.** - [ ] **function to get the latest `stateRoot` from the anchor contract (auxiliary chain).**-
- ACCEPTED
- ACCOUNT_PROVEN
- STAKE_INTENT_COMFIRMED
- PROGRESS_STAKE
- PROGRESS_MINT
-
-
- Generate hashlock and unlockSecret pair
-
-
-
-
-
-
- [ ] **function to stop the worker (function to update DB with the latest state of facilitation. (Task execution table) (Update the ticket).
- REQUESTEDCOMPLETEfunction to update DB with
hashlock
andunlockSecret
.- [ ] function to update DB with proof data.- [ ] **function to unlock worker address.** - Get the encrypted_account from Config for the given address. - Read the password from the env variable. - Decrypt the account. - Add it to web3 account wallet.The accounts will be unlocked at the commander level and will update the web3 wallet.function to create
hashLock
andunlockSecret
.function to approve bounty amount.
function to accept stake request.
function to generate account proof.
function to confirm stake intent.
function to progress stake.
function to progress mint.
handle SIGTERM).** (update the ticket.)The text was updated successfully, but these errors were encountered: