sbv2-solana/website/idl/_permission_instructions.mdx

61 lines
1.6 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>PermissionInit</b>
</td>
<td>
<a className="nowrap" href="/api/ts/classes/PermissionAccount#create">
<SiTypescript className="devicons__nowrap" /> Typescript
</a>
<br />
<a
className="nowrap"
href="/api/py/switchboardpy.html#PermissionInitParams"
>
<SiPython className="devicons__nowrap" /> Python
</a>
</td>
<td>
<Typography>
Create a new PermissionAccount with a specified configuration
</Typography>
</td>
</tr>
<tr>
<td>
<b>PermissionSet</b>
</td>
<td>
<a className="nowrap" href="/api/ts/classes/PermissionAccount#set">
<SiTypescript className="devicons__nowrap" /> Typescript
</a>
</td>
<td>
<Typography>
As the authority, set the permissions for a given PermissionAccount
</Typography>
</td>
</tr>
</tbody>
</table>