-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* @import {Command} from 'commander'; | ||
*/ | ||
|
||
/** | ||
* @param {Command} program | ||
*/ | ||
export const addOperatorCommands = program => { | ||
const operator = program | ||
.command('operator') | ||
.description('Oracle operator commands'); | ||
|
||
operator | ||
.command('accept') | ||
.description('Accept invitation to be an operator') | ||
.action(async options => { | ||
const { requestId } = options; | ||
console.error('TODO: Implement accept logic for request:', requestId); | ||
}); | ||
|
||
operator | ||
.command('attest') | ||
.description('Attest to an observed Fast USDC transfer') | ||
.requiredOption('--previousOfferId <string>', 'Offer id', String) | ||
.action(async options => { | ||
const { previousOfferId } = options; | ||
console.error( | ||
'TODO: Implement attest logic for request:', | ||
previousOfferId, | ||
); | ||
}); | ||
|
||
return operator; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.