INNER CODE UNIT · Go
getVRFKeys
smartcontractkit/chainlink · core/scripts/common/vrf/setup-envs/main.go:336
func getVRFKeys(client *clcmd.Shell, app *cli.App, output *bytes.Buffer) []presenters.VRFKeyResource {
var vrfKeys []presenters.VRFKeyResource
err := client.ListVRFKeys(&cli.Context{
App: app,
})
helpers.PanicErr(err)
helpers.PanicErr(json.Unmarshal(output.Bytes(), &vrfKeys))
output.Reset()
return vrfKeys
}
func createJob(jobSpec string, client *clcmd.Shell, app *cli.App, output *bytes.Buffer) {
if err := os.WriteFile("job-spec.toml", []byte(jobSpec), 0600); err != nil {
helpers.PanicErr(err)
}
job := presenters.JobResource{}
flagSet := flag.NewFlagSet("blah", flag.ExitOnError)