Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Eosc overhaul #221

Merged
merged 12 commits into from
Aug 29, 2017
Merged

Eosc overhaul #221

merged 12 commits into from
Aug 29, 2017

Conversation

nathanielhourt
Copy link
Contributor

See discussion in #203

@nathanielhourt
Copy link
Contributor Author

Are there any docs to update other than https://eosio.github.io/eos/group__eosc.html?

@nathanielhourt nathanielhourt mentioned this pull request Aug 24, 2017
2 tasks
@bytemaster
Copy link
Contributor

This pull request needs to be rebased on current master with fixed submodule.

@@ -21,6 +22,8 @@

#include <fc/io/fstream.hpp>

#include "CLI11.hpp"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment with verison of CLI11 used might be helpful, I assume version 1.1.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this point we're using the HEAD version, as 1.1 contained a bug which I reported and he fixed, slated for release in version 1.2. I've included the header in our source distribution so there's no worries about having to go find the right version.

Add CLI11 library and begin porting commands from the old mechanism to
the new one.
Update `eosc push-trx` to `eosc push transaction`
Add Contract command to replace old setcode
Rename Exec command to Push
Fix some API naming compatibility with current eosd
Remove all the cruft and old code

TODO: Fix massive use-after-free bugs in stack-allocated CLI parameter
storage
- Put all CLI variables in full scope of main() so they live long enough
to get used
- Update CLI11.hpp to fix a bug that was affecting us: https://
github.com/CLIUtils/CLI11/issues/23
Fix a slippery little bug in the new eosc, which was causing messages'
data payloads to be a serialized Bytes object rather than merely the
bytes contained by the object. The difference was just one length byte
at the beginning of the message data payload, but of course that was
enough to break parsing.
@bytemaster bytemaster merged commit d301478 into master Aug 29, 2017
@nathanielhourt nathanielhourt deleted the eosc-overhaul-203 branch August 30, 2017 16:06
heipacker pushed a commit to TP-Lab/eos that referenced this pull request Jan 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants