sbv2-solana/website/idl/_lease_instructions.mdx

87 lines
2.4 KiB
Plaintext

import { FiType } from "react-icons/fi";
import { SiTypescript } from "react-icons/si";
import { SiJavascript } from "react-icons/si";
import { SiPython } from "react-icons/si";
import { SiRust } from "react-icons/si";
import { SiPowershell } from "react-icons/si";
import { VscJson } from "react-icons/vsc";
import { GoLinkExternal } from "react-icons/go";
import { SerumIcon } from "/src/components/icons/SerumIcon";
import { FaBook } from "react-icons/fa";
import { Typography } from "@mui/material";
<table>
<thead>
<tr>
<th>Instruction</th>
<th>API Resource(s)</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<b>LeaseInit</b>
</td>
<td>
<a className="nowrap" href="/api/ts/classes/JobAccount#create">
<SiTypescript className="devicons__nowrap" /> Typescript
</a>
<br />
<a className="nowrap" href="/api/py/lease#leaseinitparams-objects">
<SiPython className="devicons__nowrap" /> Python
</a>
</td>
<td>
<Typography>
Create a new LeaseAccount with a specified configuration
</Typography>
</td>
</tr>
<tr>
<td>
<b>LeaseExtend</b>
</td>
<td>
<a className="nowrap" href="/api/ts/classes/LeaseAccount#extend">
<SiTypescript className="devicons__nowrap" /> Typescript
</a>
<br />
<a className="nowrap" href="/api/py/lease#leaseextendparams-objects">
<SiPython className="devicons__nowrap" /> Python
</a>
<br />
<a className="nowrap" href="/api/cli/lease">
<SiPowershell className="devicons__nowrap" /> CLI
</a>
</td>
<td>
<Typography>
Extend a lease and deposit more tokens to a LeaseAccounts escrow
wallet
</Typography>
</td>
</tr>
<tr>
<td>
<b>LeaseWithdraw</b>
</td>
<td>
<a className="nowrap" href="/api/ts/classes/LeaseAccount#withdraw">
<SiTypescript className="devicons__nowrap" /> Typescript
</a>
<br />
<a className="nowrap" href="/api/py/lease#leasewithdrawparams-objects">
<SiPython className="devicons__nowrap" /> Python
</a>
</td>
<td>
<Typography>
Extend a lease and deposit more tokens to a LeaseAccounts escrow
wallet
</Typography>
</td>
</tr>
</tbody>
</table>