103 lines
1.3 KiB
Plaintext
103 lines
1.3 KiB
Plaintext
---
|
|
sidebar_position: 10
|
|
title: Oracle Queue
|
|
---
|
|
|
|
<!--
|
|
import { Box, Typography, Grid } from "@mui/material";
|
|
import Link from "@docusaurus/Link";
|
|
|
|
<Typography variant="h4">
|
|
<Link to="https://github.com/switchboard-xyz/switchboard-v2/tree/main/programs/anchor-vrf-parser">
|
|
# anchor-vrf-parser
|
|
</Link>
|
|
</Typography>
|
|
-->
|
|
|
|
import Tabs from "@theme/Tabs";
|
|
import TabItem from "@theme/TabItem";
|
|
|
|
## Create an Oracle Queue
|
|
|
|
- `oracleQueueInit`
|
|
|
|
<Tabs>
|
|
<TabItem value="Typescript" label="Typescript" default>
|
|
|
|
```ts
|
|
// Typescript code
|
|
```
|
|
|
|
</TabItem>
|
|
<TabItem value="Python" label="Python">
|
|
|
|
```python
|
|
# Python code
|
|
```
|
|
|
|
</TabItem>
|
|
<TabItem value="CLI" label="CLI">
|
|
|
|
```bash
|
|
# CLI command
|
|
```
|
|
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
## Assign Queue Permissions
|
|
|
|
- `permissionSet`
|
|
|
|
<Tabs>
|
|
<TabItem value="Typescript" label="Typescript" default>
|
|
|
|
```ts
|
|
// Typescript code
|
|
```
|
|
|
|
</TabItem>
|
|
<TabItem value="Python" label="Python">
|
|
|
|
```python
|
|
# Python code
|
|
```
|
|
|
|
</TabItem>
|
|
<TabItem value="CLI" label="CLI">
|
|
|
|
```bash
|
|
# CLI command
|
|
```
|
|
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
## Create a Crank
|
|
|
|
- `crankInit`
|
|
|
|
<Tabs>
|
|
<TabItem value="Typescript" label="Typescript" default>
|
|
|
|
```ts
|
|
// Typescript code
|
|
```
|
|
|
|
</TabItem>
|
|
<TabItem value="Python" label="Python">
|
|
|
|
```python
|
|
# Python code
|
|
```
|
|
|
|
</TabItem>
|
|
<TabItem value="CLI" label="CLI">
|
|
|
|
```bash
|
|
# CLI command
|
|
```
|
|
|
|
</TabItem>
|
|
</Tabs>
|