Created
November 1, 2018 14:58
-
-
Save marekkirejczyk/cc17fe4b0bea56dd12a890a8d9d61db1 to your computer and use it in GitHub Desktop.
ERC 1077 calls from js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* raw js call */ | |
data = subscriptionModule.createSubscription(...).encode(); | |
identity.executeSigned(subscriptionModule.address, 0, data, nonce, | |
gasPrice, | |
gasToken, | |
gasLimit, | |
DELEGATE_CALL, | |
bytes extraData, | |
bytes signatures); | |
/* via sdk v 1.0 */ | |
data = subscriptionModule.createSubscription(...).encode(); | |
sdk.execute({ | |
module: subscriptionModule.address, | |
data | |
}, privateKey); | |
/* via sdk v 2.0 */ | |
sdk.modules.subscriptions.createSubscription(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment