Created
May 15, 2022 19:15
-
-
Save mgild/9d57c951ff2e24557eb6fcfb392fa66b to your computer and use it in GitHub Desktop.
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
const bufRelayer = await sbv2.BufferRelayerAccount.create(program, { | |
name: Buffer.from("t1"), | |
minUpdateDelaySeconds, | |
queueAccount: new sbv2.OracleQueueAccount({ | |
program, | |
publicKey: queue, | |
}), | |
authority: sbv2.programWallet(program).publicKey, | |
jobAccount, | |
}); | |
const permissionAccount = await sbv2.PermissionAccount.create(program, { | |
authority: walletKeypair.publicKey, | |
granter: queue, | |
grantee: bufRelayer.publicKey, | |
}); | |
let sig = await bufRelayer.openRound(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment