Skip to content

Instantly share code, notes, and snippets.

@marekkirejczyk
Created November 1, 2018 14:58
Show Gist options
  • Save marekkirejczyk/cc17fe4b0bea56dd12a890a8d9d61db1 to your computer and use it in GitHub Desktop.
Save marekkirejczyk/cc17fe4b0bea56dd12a890a8d9d61db1 to your computer and use it in GitHub Desktop.
ERC 1077 calls from js
/* 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