-
Notifications
You must be signed in to change notification settings - Fork 62
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
feat: Add Authenticator flow for Permissioned Keys #317
Conversation
d050d77
to
e0d1c76
Compare
834cce5
to
ca2c897
Compare
const wallet1 = await LocalWallet.fromMnemonic(DYDX_TEST_MNEMONIC, BECH32_PREFIX); | ||
const wallet2 = await LocalWallet.fromMnemonic(DYDX_TEST_MNEMONIC_2, BECH32_PREFIX); | ||
|
||
const network = Network.staging(); |
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.
Can this be set to testnet?
// Change second wallet pubkey | ||
// Add an authenticator to allow wallet2 to place orders | ||
console.log("** Adding authenticator **"); | ||
await addAuthenticator(client, subaccount1, wallet2.pubKey!.value); |
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.
Could you add some delay here, as it seems it goes to fast between adding and doing the getAuthenticators step after that
await sleep(500);
Adds functionality to enable signing transactions using the authenticator flow on the protocol.