-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add OPL SDK #117
Add OPL SDK #117
Conversation
1120d57
to
91a8d99
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.
Nice!
The example above has the following in _oplReceiveScore
:
_mint(msg.sender, score);
Shouldn't it instead use whom
not msg.sender
as the sender would probably be the relayer?
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.
Looks good, would be nice to have some E2E tests for this somewhere.
7a2a9cb
to
7a7f4b4
Compare
7a7f4b4
to
75dcacd
Compare
fe8bee0
to
4561532
Compare
This SDK makes it very easy to use OPL. All you need to do is split your dapp and drop in the addresses.
Features:
_msgSender
for easier billing of gasHere's a hello world example:
I'd also like to generate a lot of overloads for the receiver methods so you get automatic decoding, but that'll might make the compiler slow.