Skip to content

Instantly share code, notes, and snippets.

@mgild
Created May 15, 2022 19:15
Show Gist options
  • Save mgild/9d57c951ff2e24557eb6fcfb392fa66b to your computer and use it in GitHub Desktop.
Save mgild/9d57c951ff2e24557eb6fcfb392fa66b to your computer and use it in GitHub Desktop.
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