Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
incorporate suggestions for method comments; add devdoc to dummy cont…
Browse files Browse the repository at this point in the history
…ract
  • Loading branch information
xianny committed Aug 2, 2019
1 parent fe579be commit 792fe8e
Show file tree
Hide file tree
Showing 27 changed files with 738 additions and 701 deletions.
4 changes: 2 additions & 2 deletions packages/abi-gen-templates/partials/callAsync.handlebars
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Calls the method
* Sends a read-only call to the contract method. Returns the result that would happen if one were to send an Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas since they don't modify state.
{{> params_docstring inputs=inputs docstrings=devdoc.params}}
{{#if devdoc.return}}
* @returns {{devdoc.return}}
Expand Down Expand Up @@ -43,7 +43,7 @@ async callAsync(
},

/**
* Returns the ABI encoded transaction data
* Returns the ABI encoded transaction data needed to send an Ethereum tx calling this method. Before sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used to create a 0x transaction (see protocol spec for more details).
{{> params_docstring inputs=inputs docstrings=devdoc.params}}
*/
getABIEncodedTransactionData(
Expand Down
6 changes: 3 additions & 3 deletions packages/abi-gen-templates/partials/tx.handlebars
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
public {{languageSpecificName}} = {
/**
* Sends the transaction
* Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write Ethereum operation and will cost gas.
{{> params_docstring inputs=inputs docstrings=devdoc.params}}
* @param txData Additional data for transaction
* @returns The hash of the transaction
Expand Down Expand Up @@ -34,7 +34,7 @@ public {{languageSpecificName}} = {
return txHash;
},
/**
* Sends the transaction and wait for it to succeed
* Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. If the transaction was mined, but reverted, an error is thrown.
{{> params_docstring inputs=inputs docstrings=devdoc.params}}
* @param txData Additional data for transaction
* @param pollingIntervalMs Interval at which to poll for success
Expand Down Expand Up @@ -68,7 +68,7 @@ public {{languageSpecificName}} = {
);
},
/**
* Estimate gas to send the transaction
* Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments.
{{> params_docstring inputs=inputs docstrings=devdoc.params}}
* @param txData Additional data for transaction
* @returns The hash of the transaction
Expand Down
174 changes: 87 additions & 87 deletions packages/abi-gen-wrappers/src/generated-wrappers/asset_proxy_owner.ts

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 792fe8e

Please sign in to comment.