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

Create API wrapper for truffle contract #16

Merged
merged 8 commits into from
Dec 29, 2019

Conversation

danmuf
Copy link
Contributor

@danmuf danmuf commented Dec 20, 2019

WIP

@danmuf
Copy link
Contributor Author

danmuf commented Dec 20, 2019

#8

@danmuf
Copy link
Contributor Author

danmuf commented Dec 24, 2019

@chatch could you review the existing code so far? Did I understand the intention of the wrappers correctly?
If so, I will add some test cases.

@chatch
Copy link
Owner

chatch commented Dec 24, 2019

that looks great. one add that would be nice would be to provide an optional web3 provider parameter to the constructor. i think there is a setProvider() on Contract. passing it would allow any client - infura nodes etc. to be used.

@danmuf
Copy link
Contributor Author

danmuf commented Dec 27, 2019

I added a base test case for the base wrapper and the htlc wrapper and additional test cases for erc20 and erc721.

@chatch PR ready for review. Please let me know if something can/should be improved.

@chatch chatch merged commit 5a08efa into chatch:master Dec 29, 2019
@danmuf danmuf deleted the htc-api-wrapper branch December 29, 2019 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants