-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve template of command service gen doc #617
Merged
Merged
Conversation
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
ilgooz
reviewed
Dec 4, 2018
Co-Authored-By: NicolasMahe <[email protected]>
ilgooz
reviewed
Dec 4, 2018
Co-Authored-By: NicolasMahe <[email protected]>
krhubert
previously approved these changes
Dec 4, 2018
krhubert
previously approved these changes
Dec 4, 2018
antho1404
previously approved these changes
Dec 5, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, and good, I didn’t know about the or
Co-Authored-By: NicolasMahe <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #270
Example generated from service-ethereum-erc20:
Ethereum ERC20 token
MESG Service to interact with an Ethereum ERC20 token
Contents
Installation
MESG Core
This service requires MESG Core to be install.
You can install MESG Core by running the following command or follow the install guide.
bash <(curl -fsSL https://mesg.com/install)
Service
To deploy this service, run the following command:
Definitions
Events
Approval
Event key:
approval
The approval event of a ERC20. This event happens when an approval occurs
blockNumber
Number
contractAddress
String
owner
String
spender
String
transactionHash
String
value
String
Transfer
Event key:
transfer
The transfer event of a ERC20. This event happens when a transfer occurs
blockNumber
Number
contractAddress
String
from
String
to
String
transactionHash
String
value
String
Tasks
Allowance
Task key:
allowance
Get the allowance between an owner and a spender
Inputs
contractAddress
String
owner
String
spender
String
Outputs
Error
Output key:
error
Output when an error occurs
message
String
Success
Output key:
success
Output when the task executes successfully
remaining
String
Approve
Task key:
approve
Authorize a future transfer from
Inputs
contractAddress
String
gasLimit
Number
optional
The maximum gas provided for this transactiongasPrice
String
optional
The gas price in wei to use for this transactionprivateKey
String
spender
String
value
String
Outputs
Error
Output key:
error
Output when an error occurs
message
String
Success
Output key:
success
Output when the task executes successfully
transactionHash
String
Balance of
Task key:
balanceOf
Get the balance of a given address
Inputs
address
String
contractAddress
String
Outputs
Error
Output key:
error
Output when an error occurs
message
String
Success
Output key:
success
Output when the task executes successfully
balance
String
Number of decimals
Task key:
decimals
Get the number of decimals of a ERC20
Inputs
contractAddress
String
Outputs
Error
Output key:
error
Output when an error occurs
message
String
Success
Output key:
success
Output when the task executes successfully
decimals
Number
Token's name
Task key:
name
Get the name of a ERC20
Inputs
contractAddress
String
Outputs
Error
Output key:
error
Output when an error occurs
message
String
Success
Output key:
success
Output when the task executes successfully
name
String
Token's symbol
Task key:
symbol
Get the symbol of a ERC20
Inputs
contractAddress
String
Outputs
Error
Output key:
error
Output when an error occurs
message
String
Success
Output key:
success
Output when the task executes successfully
symbol
String
Total Supply
Task key:
totalSupply
Get the total supply of a ERC20
Inputs
contractAddress
String
Outputs
Error
Output key:
error
Output when an error occurs
message
String
Success
Output key:
success
Output when the task executes successfully
totalSupply
String
Transfer
Task key:
transfer
Transfer tokens to an address
Inputs
contractAddress
String
gasLimit
Number
optional
The maximum gas provided for this transactiongasPrice
String
optional
The gas price in wei to use for this transactionprivateKey
String
to
String
value
String
Outputs
Error
Output key:
error
Output when an error occurs
message
String
Success
Output key:
success
Output when the task executes successfully
transactionHash
String
Transfer From
Task key:
transferFrom
Transfer tokens from an approved address
Inputs
contractAddress
String
from
String
gasLimit
Number
optional
The maximum gas provided for this transactiongasPrice
String
optional
The gas price in wei to use for this transactionprivateKey
String
to
String
value
String
Outputs
Error
Output key:
error
Output when an error occurs
message
String
Success
Output key:
success
Output when the task executes successfully
transactionHash
String