Skip to content
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

cpp: add cpp wrappers #22

Open
mhw0 opened this issue Sep 13, 2023 · 0 comments
Open

cpp: add cpp wrappers #22

mhw0 opened this issue Sep 13, 2023 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@mhw0
Copy link
Owner

mhw0 commented Sep 13, 2023

I think it would be cool if we had cpp wrappers for our C functions. Let's say we want to encode some ABI elements:

#include <ethc/ethcxx.h> // maybe just ethc.hh?

int main(void) {
  eth::ABIEncoder abi;

  abi.encodeUint16(0xffac); // or abi.decodeUint16 on decode? and it returns the decoded element?

  std::cout << abi << std::endl; // ABIEncoder supports streams?

  return 0;
}
@mhw0 mhw0 self-assigned this Sep 13, 2023
@mhw0 mhw0 added the feature New feature or request label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant