sbv2-solana/website/docs/developers/oracle.mdx

148 lines
1.7 KiB
Plaintext

---
sidebar_position: 20
title: Oracles
---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
## Create
- `oracleInit`
<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>
## Oracle Deposit
- `tokenTransfer`
<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>
## Oracle Heartbeat
- `oracleHeartbeat`
<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>
## Save Result
- `aggregatorSaveResult`
<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>
## Oracle Withdraw
- `oracleWithdraw`
<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>