-
Notifications
You must be signed in to change notification settings - Fork 404
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
Caliper Ethereum documentation overhaul #1591
Caliper Ethereum documentation overhaul #1591
Conversation
Going to try closing and re-opening to see if it fixes the DCO issue |
@rmarede Due to a github problem where DCO wasn't recognised, could you try doing a force push to your PR to see if it now forces github to recognise the DCO please ? |
@davidkel I amended the last commit and force pushed it, seems like it worked |
Signed-off-by: Rodrigo Arede <aredemiguel@gmail.com>
cad3400
to
6ba304d
Compare
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.
Just a couple of minor issues here, looks really good. As this is relevant to the latest version of caliper, could you also take this and apply it to the v0.6.0 directory.
Really a great improvement to the docs, many thanks
docs/vNext/Ethereum_Configuration.md
Outdated
|
||
For each key you must provide a JSON object with the `path` field pointing to the [contract definition file](#contract-definition-file). | ||
> Defining configurations simultaneously for both pre-deployed contracts and contracts to be deployed by Caliper is currently **not supported** and may result in unexpected errors. This is because opting for pre-deployed contracts means the contract installation phase will be skipped. |
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.
For the contract configuration, we still want to refer to the path property. It's required if you want to install the smart contract but not required if the contract is already deployed. This unfortunately was the only reference to path outside of the example
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.
there's also a reference to path in line 195, in the appropriate Contracts to Deploy section. Isn't that enough?
Contracts to Deploy
Contracts to be deployed by Caliper require the specification of a contract definition file for each. In the contract configuration you must include a path
field pointing to each contract definition file. It's in this new file that you will define the contract's ABI and bytecode, as well as the gas required to deploy it.
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.
yep, must have missed that in the PR, sorry
Signed-off-by: Rodrigo Arede <aredemiguel@gmail.com>
@rmarede merged, thank you, really much appreciated |
Checklist
Issue/User story
Caliper Ethereum documentation was outdated and did not provide information on using the
--caliper-flow-skip-install
that skips the smart contract installation phase.Existing issues
Issue #1589 - Caliper ethereum documentation needs a complete overhaul
Design of the fix
--caliper-flow-skip-install
to use pre-deployed contracts. Since the contract configuration on the network config file will differ depending on whether this flag is used, I added a subsection for each use case;fromAddressSeed
when using more than 1 worker;getResut()
was not documented;invokeSmartContract
andqueryState
functions, with the newsendRequests
function;